@sdkgen/playground 0.0.0-dev.20220131150103 → 0.0.0-dev.20220131162016
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(Be,_){"use strict";var D,l=this&&this.__extends||(D=function(w,f){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,T){I.__proto__=T}||function(I,T){for(var b in T)Object.prototype.hasOwnProperty.call(T,b)&&(I[b]=T[b])})(w,f)},function(w,f){if("function"!=typeof f&&null!==f)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function I(){this.constructor=w}D(w,f),w.prototype=null===f?Object.create(f):(I.prototype=f.prototype,new I)}),i=this&&this.__spreadArray||function(D,w,f){if(f||2===arguments.length)for(var b,I=0,T=w.length;I<T;I++)(b||!(I in w))&&(b||(b=Array.prototype.slice.call(w,0,I)),b[I]=w[I]);return D.concat(b||Array.prototype.slice.call(w))};Object.defineProperty(_,"__esModule",{value:!0}),_.decode=_.encode=void 0;var d=["string","email","phone","html","xml"],m=i(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],d,!0),u=function(D){function w(f,I,T){var R;try{R=JSON.stringify(T)}catch(j){R=String(T)}return D.call(this,"Invalid type at '".concat(f,"', expected ").concat(I,", got ").concat(R))||this}return l(w,D),w}(Error);function s(D,w,f){if("json"===w)return null==f?null:JSON.parse(JSON.stringify(f));if("bool"===w){if("boolean"!=typeof f)throw new u(D,w,f);return f}if(d.indexOf(w)>=0){if("string"!=typeof f)throw new u(D,w,f);return f}if("hex"===w){if("string"!=typeof f||!/^(?:[A-Fa-f0-9]{2})*$/u.test(f))throw new u(D,w,f);return f.toLowerCase()}if("uuid"===w){if("string"!=typeof f||!/^[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(f))throw new u(D,w,f);return f.toLowerCase()}if("base64"===w){var I=!0;try{atob(f)}catch(b){I=!1}if("string"!=typeof f||!I)throw new u(D,w,f);return f}if("int"===w){if("number"!=typeof f||(0|f)!==f)throw new u(D,w,f);return f}if("uint"===w){if("number"!=typeof f||(0|f)!==f||f<0)throw new u(D,w,f);return f}if("float"===w){if("number"!=typeof f)throw new u(D,w,f);return f}if("money"===w){if("number"!=typeof f||!Number.isInteger(f))throw new u(D,w,f);return f}if("url"===w){var T=void 0;if("string"==typeof f)try{T=new URL(f)}catch(b){}if(!T)throw new u(D,w,f);return T.toString()}if("void"===w)return null;throw new Error("Unknown type '".concat(w,"' at '").concat(D,"'"))}_.encode=function y(D,w,f,I){if("string"==typeof f&&!f.endsWith("?")&&"void"!==f&&null==I)throw new Error("Invalid type at '".concat(w,"', cannot be null"));if(Array.isArray(f)){for(var T=0,b=f;T<b.length;T++){var R=b[T];if(R===I)return I;if(Array.isArray(I)&&2===I.length&&R===I[0])return I[0];if(Array.isArray(R)&&2===R.length){if(R[0]===I)return[I,y(D,"".concat(w,".").concat(R[0]),R[1],{})];if(Array.isArray(I)&&2===I.length&&R[0]===I[0])return[I[0],y(D,"".concat(w,".").concat(R[0]),R[1],I[1])]}}throw new u(w,f,I)}if("object"==typeof f){if("object"!=typeof I)throw new u(w,f,I);for(var j={},he=0,V=Object.keys(f);he<V.length;he++){var le=V[he];j[le]=y(D,"".concat(w,".").concat(le),f[le],I[le])}return j}if(f.endsWith("?"))return null==I?null:y(D,w,f.slice(0,f.length-1),I);if(f.endsWith("[]")){if(!Array.isArray(I))throw new u(w,f,I);return I.map(function(fe,ye){return y(D,"".concat(w,"[").concat(ye,"]"),f.slice(0,f.length-2),fe)})}if(m.indexOf(f)>=0)return s(w,f,I);if("bytes"===f){if(!(I instanceof ArrayBuffer))throw new u(w,f,I);return btoa(String.fromCharCode.apply(String,new Uint8Array(I)))}if("bigint"===f){if("bigint"!=typeof I)throw new u(w,f,I);return I.toString()}if("cpf"===f){if("string"!=typeof I)throw new u(w,f,I);return I}if("cnpj"===f){if("string"!=typeof I)throw new u(w,f,I);return I}if("date"===f){if((!(I instanceof Date)||isNaN(I.getTime()))&&("string"!=typeof I||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(I)))throw new u(w,f,I);return"string"==typeof I?new Date(I).toISOString().split("T")[0]:I.toISOString().split("T")[0]}if("datetime"===f){if((!(I instanceof Date)||isNaN(I.getTime()))&&("string"!=typeof I||!/^[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(I)))throw new u(w,f,I);return("string"==typeof I?new Date(I):I).toISOString().replace("Z","")}var Me=D[f];if(Me)return y(D,w,Me,I);throw new Error("Unknown type '".concat(f,"' at '").concat(w,"'"))},_.decode=function C(D,w,f,I){if("string"==typeof f&&!f.endsWith("?")&&"void"!==f&&null==I)throw new Error("Invalid type at '".concat(w,"', cannot be null"));if(Array.isArray(f)){for(var T=0,b=f;T<b.length;T++){var R=b[T];if(R===I)return I;if(Array.isArray(I)&&2===I.length&&R===I[0])return I[0];if(Array.isArray(R)&&2===R.length){if(R[0]===I)return[I,C(D,"".concat(w,".").concat(R[0]),R[1],{})];if(Array.isArray(I)&&2===I.length&&R[0]===I[0])return[I[0],C(D,"".concat(w,".").concat(R[0]),R[1],I[1])]}}throw new u(w,f,I)}if("object"==typeof f){if("object"!=typeof I)throw new u(w,f,I);for(var j={},he=0,V=Object.keys(f);he<V.length;he++){var le=V[he];j[le]=C(D,"".concat(w,".").concat(le),f[le],I[le])}return j}if(f.endsWith("?"))return null==I?null:C(D,w,f.slice(0,f.length-1),I);if(f.endsWith("[]")){if(!Array.isArray(I))throw new u(w,f,I);return I.map(function(ke,et){return C(D,"".concat(w,"[").concat(et,"]"),f.slice(0,f.length-2),ke)})}if(m.indexOf(f)>=0)return s(w,f,I);if("bytes"!==f){if("bigint"===f){if("number"!=typeof I&&("string"!=typeof I||!/^-?[0-9]+$/u.test(I)))throw new u(w,f,I);return BigInt(I)}if("cpf"===f){if("string"!=typeof I)throw new u(w,f,I);return I}if("cnpj"===f){if("string"!=typeof I)throw new u(w,f,I);return I}if("date"===f){if("string"!=typeof I||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(I))throw new u(w,f,I);var Me=parseInt(I.split("-")[2],10),fe=parseInt(I.split("-")[1],10)-1,ye=parseInt(I.split("-")[0],10),se=new Date(ye,fe,Me);if(se.getFullYear()!==ye||se.getMonth()!==fe||se.getDate()!==Me)throw new u(w,f,I);return se}if("datetime"===f){if("string"!=typeof I||!/^[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(I))throw new u(w,f,I);return new Date("".concat(I.endsWith("Z")?I:I.concat("Z")))}var De=D[f];if(De)return C(D,w,De,I);throw new Error("Unknown type '".concat(f,"' at '").concat(w,"'"))}if("string"!=typeof I)throw new u(w,"".concat(f," (base 64)"),I);try{return Uint8Array.from(atob(I),function(ke){return ke.charCodeAt(0)})}catch(ke){throw new u(w,"".concat(f," (base 64)"),I)}}},2837:function(Be,_){"use strict";var m,l=this&&this.__extends||(m=function(u,s){return(m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,C){y.__proto__=C}||function(y,C){for(var D in C)Object.prototype.hasOwnProperty.call(C,D)&&(y[D]=C[D])})(u,s)},function(u,s){if("function"!=typeof s&&null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function y(){this.constructor=u}m(u,s),u.prototype=null===s?Object.create(s):(y.prototype=s.prototype,new y)});Object.defineProperty(_,"__esModule",{value:!0}),_.SdkgenErrorWithData=_.SdkgenError=void 0;var i=function(m){function u(){return null!==m&&m.apply(this,arguments)||this}return l(u,m),Object.defineProperty(u.prototype,"type",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),u.prototype.toJSON=function(){return{message:this.message,type:this.type}},u}(Error);_.SdkgenError=i;var d=function(m){function u(s,y){var C=m.call(this,s)||this;return C.data=y,C}return l(u,m),u.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},u}(i);_.SdkgenErrorWithData=d},2062:function(Be,_,l){"use strict";var i=this&&this.__awaiter||function(w,f,I,T){return new(I||(I=Promise))(function(R,j){function he(Me){try{le(T.next(Me))}catch(fe){j(fe)}}function V(Me){try{le(T.throw(Me))}catch(fe){j(fe)}}function le(Me){Me.done?R(Me.value):function b(R){return R instanceof I?R:new I(function(j){j(R)})}(Me.value).then(he,V)}le((T=T.apply(w,f||[])).next())})},d=this&&this.__generator||function(w,f){var T,b,R,j,I={label:0,sent:function(){if(1&R[0])throw R[1];return R[1]},trys:[],ops:[]};return j={next:he(0),throw:he(1),return:he(2)},"function"==typeof Symbol&&(j[Symbol.iterator]=function(){return this}),j;function he(le){return function(Me){return function V(le){if(T)throw new TypeError("Generator is already executing.");for(;I;)try{if(T=1,b&&(R=2&le[0]?b.return:le[0]?b.throw||((R=b.return)&&R.call(b),0):b.next)&&!(R=R.call(b,le[1])).done)return R;switch(b=0,R&&(le=[2&le[0],R.value]),le[0]){case 0:case 1:R=le;break;case 4:return I.label++,{value:le[1],done:!1};case 5:I.label++,b=le[1],le=[0];continue;case 7:le=I.ops.pop(),I.trys.pop();continue;default:if(!(R=(R=I.trys).length>0&&R[R.length-1])&&(6===le[0]||2===le[0])){I=0;continue}if(3===le[0]&&(!R||le[1]>R[0]&&le[1]<R[3])){I.label=le[1];break}if(6===le[0]&&I.label<R[1]){I.label=R[1],R=le;break}if(R&&I.label<R[2]){I.label=R[2],I.ops.push(le);break}R[2]&&I.ops.pop(),I.trys.pop();continue}le=f.call(w,I)}catch(Me){le=[6,Me],b=0}finally{T=R=0}if(5&le[0])throw le[1];return{value:le[0]?le[1]:void 0,done:!0}}([le,Me])}}};Object.defineProperty(_,"__esModule",{value:!0}),_.SdkgenHttpClient=void 0;var m=l(4602);function u(w){for(var f="",I=0;I<2*w;++I)f+="0123456789abcdef"[Math.floor(16*Math.random())];return f}var s=u(20);function y(){try{var w=localStorage.getItem("deviceId");return w||(w=s,localStorage.setItem("deviceId",w)),w}catch(f){}return s}function C(w,f){return f in w}var D=function(){function w(f,I,T){this.astJson=I,this.errClasses=T,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=f}return w.prototype.makeRequest=function(f,I){var T,b;return i(this,void 0,void 0,function(){var R,j,he,V,le,Me=this;return d(this,function(fe){switch(fe.label){case 0:if(!(R=this.astJson.functionTable[f]))throw new Error("Unknown function ".concat(f));return j={},this.extra.forEach(function(ye,se){j[se]=ye}),he={args:(0,m.encode)(this.astJson.typeTable,"".concat(f,".args"),R.args,I),deviceInfo:{id:y(),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:j,name:f,requestId:u(16),version:3},[4,new Promise(function(ye,se){var De=new XMLHttpRequest;De.open("POST","".concat(Me.baseUrl,"/").concat(f)),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,f,I)):ye(C(ke,"result")?ke.result:null)}catch(lt){var et={message:"".concat(lt),type:"Fatal"};se(et),Me.errorHook(et,f,I)}}catch(lt){se(et={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),Me.errorHook(et,f,I)}},De.send(JSON.stringify(he))}).catch(function(ye){if(Me.errorHook(ye,f,I),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 V=fe.sent(),le=(0,m.decode)(this.astJson.typeTable,"".concat(f,".ret"),R.ret,V),this.successHook(le,f,I),[2,le]}})})},w}();_.SdkgenHttpClient=D},4539:function(Be,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,y){void 0===y&&(y=s),Object.defineProperty(m,y,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,y){void 0===y&&(y=s),m[y]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(2837),_),d(l(2062),_)},3905:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateCSharpServerSource=void 0;const i=l(6676),d=l(4510);_.generateCSharpServerSource=function m(u){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 y of u.operations){const C=y.returnType instanceof i.VoidPrimitiveType?"":`<${(0,d.generateTypeName)(y.returnType)}>`;s+=`\n public virtual Task${C} ${(0,d.capitalize)(y.name)}(${["Context ctx",...y.args.map(D=>`${(0,d.generateTypeName)(D.type)} ${(0,d.ident)(D.name)}`)].join(", ")})\n {\n return Task.FromException${C}(new FatalException("Function '${y.name}' not implemented."));\n }\n`}s+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const y of u.operations){s+=`\n case ${JSON.stringify(y.name)}:\n {`;for(const C of y.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("'${y.name}().args.${C.name}' must be set to a value of type ${C.type.name}.");`}\n }\n ${(0,d.generateTypeName)(C.type)} ${(0,d.ident)(C.name)};\n ${(0,d.decodeType)(C.type,`${C.name}Json_`,`"${y.name}().args.${C.name}"`,(0,d.ident)(C.name)).replace(/\n/gu,"\n ")}`;s+=y.returnType instanceof i.VoidPrimitiveType?`\n await ${(0,d.capitalize)(y.name)}(${["context_",...y.args.map(C=>(0,d.ident)(C.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,d.capitalize)(y.name)}(${["context_",...y.args.map(C=>(0,d.ident)(C.name))].join(", ")});\n ${(0,d.encodeType)(y.returnType,"result_",`"${y.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 y of u.structTypes)s+=(0,d.generateStruct)(y);for(const y of u.enumTypes)s+=(0,d.generateEnum)(y);s+=`\n public string GetAstJson() => @"${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const y of u.errors)s+=`\n public class ${y.name}Exception : SdkgenException\n {\n public ${y.name}Exception(string message, Exception? inner = null) : base("${y.name}", message, inner) { }\n }\n`;return s+="\n}\n",s}},4510:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateEnum=_.generateStruct=_.encodeType=_.decodeType=_.generateTypeName=_.capitalize=_.ident=void 0;const i=l(6676),d=["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],u=[i.BigIntPrimitiveType,i.DatePrimitiveType,i.DateTimePrimitiveType,i.FloatPrimitiveType,i.IntPrimitiveType,i.MoneyPrimitiveType,i.UIntPrimitiveType];function s(T){return d.includes(T)?`@${T}`:T}function y(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,R,j,he=1,V=!0){switch(T.constructor){case i.IntPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetInt32(out ${j}))\n {\n throw new FatalException($"'{${R}}' 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 ${j}))\n {\n throw new FatalException($"'{${R}}' 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 ${j}) || ${j} % 1 != 0)\n {\n throw new FatalException($"'{${R}}' must be an integer amount of cents.");\n }\n ${j} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.Number || !${b}.TryGetDouble(out ${j}))\n {\n throw new FatalException($"'{${R}}' 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 ${j}))\n {\n throw new FatalException($"'{${R}}' 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($"'{${R}}' must be a string.");\n }\n ${j} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid HTML string.");\n }\n ${j} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid CPF string.");\n }\n ${j} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid CNPJ string.");\n }\n ${j} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid email.");\n }\n ${j} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid URL string.");\n }\n ${j} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid UUID.");\n }\n ${j} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a valid hex string.");\n }\n ${j} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a base64 string.");\n }\n ${j} = ${b}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a XML string.");\n }\n ${j} = ${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($"'{${R}}' must be either true or false.");\n }\n ${j} = ${b}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n if (${b}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${R}}' must be a string.");\n }\n try\n {\n ${j} = Convert.FromBase64String(${b}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${R}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return D(T.type,b,R,j,he);case i.OptionalType:if(u.includes(T.base.constructor)){const le=`${j.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n ${j} = null;\n }\n else\n {\n ${C(T.base)} ${le};\n ${D(T.base,b,R,le,he,!1).replace(/\n/gu,"\n ")}\n ${j} = ${le};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n ${j} = null;\n }\n else\n {\n ${D(T.base,b,R,j,he,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case i.EnumType:case i.StructType:return`${j} = Decode${T.name}(${b}, ${R});`;case i.JsonPrimitiveType:return V?`\n if (${b}.ValueKind == JsonValueKind.Null || ${b}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${R}}' can't be null.");\n }\n ${j} = ${b};\n `.replace(/\n {16}/gu,"\n").trim():`${j} = ${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 ${j}) || DateTime.TryParseExact(${b}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${j})))\n {\n throw new FatalException($"'{${R}}' 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 ${j})))\n {\n throw new FatalException($"'{${R}}' 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($"'{${R}}' must be a date.");\n }\n ${j} = new ${C(T)}();\n for (var i${he} = 0; i${he} < ${b}.GetArrayLength(); ++i${he})\n {\n ${C(T.base)} element${he};\n ${D(T.base,`${b}[i${he}]`,`$"{${R}}[{i${he}}]"`,`element${he}`,he+1).replace(/\n/gu,"\n ")}\n ${j}.Add(element${he});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${T.constructor.name}`)}}function w(T,b,R,j=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 he=T.base;for(;he instanceof i.TypeReference;)he=he.type;return`\n if (${b} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${w(he,m.includes(he.constructor)?b:`${b}.Value`,R,j).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case i.TypeReference:return w(T.type,b,R,j);case i.EnumType:case i.StructType:return`Encode${T.name}(${b}, resultWriter_, ${R});`;case i.JsonPrimitiveType:return`${b}.WriteTo(resultWriter_);`;case i.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${j} = 0; i${j} < ${b}.Count; ++i${j})\n {\n ${w(T.base,`${b}[i${j}]`,`$"{${R}}[{i${j}}]"`,j+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}`)}}_.ident=s,_.capitalize=y,_.generateTypeName=C,_.decodeType=D,_.encodeType=w,_.generateStruct=function f(T){return`\n public class ${T.name}\n {${T.fields.map(b=>`\n public ${C(b.type)} ${y(b.name)};`).join("")}\n public ${T.name}(${T.fields.map(b=>`${C(b.type)} ${s(b.name)}`).join(", ")})\n {${T.fields.map(b=>`\n ${y(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 ${w(b.type,`obj_.${y(b.name)}`,`$"{path_}.${b.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},_.generateEnum=function I(T){return`\n public enum ${T.name}\n {${T.values.map(({value:b})=>`\n ${y(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}.${y(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}.${y(b)})\n {\n resultWriter_.WriteStringValue("${b}");\n }`).join("")}\n }\n`}},7179:function(Be,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,y){void 0===y&&(y=s),Object.defineProperty(m,y,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,y){void 0===y&&(y=s),m[y]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(3905),_)},1911:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateDartClientSource=void 0;const i=l(6676),d=l(5235);_.generateDartClientSource=function m(u){let s="";s+="import 'dart:typed_data';\nimport 'dart:ui';\n\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n\n";for(const y of u.enumTypes)s+=(0,d.generateEnum)(y),s+="\n";for(const y of u.structTypes)s+=(0,d.generateClass)(y),s+="\n";for(const y of u.errors)s+=(0,d.generateErrorClass)(y),s+="\n";s+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl) : super(baseUrl, _typeTable, _fnTable, _errTable);\n${u.operations.filter(y=>y.annotations.every(C=>!(C instanceof i.HiddenAnnotation))).map(y=>`\n ${y.returnType instanceof i.VoidPrimitiveType?"Future<void> ":`Future<${(0,d.generateTypeName)(y.returnType)}> `}${y.name}(${0===y.args.length?"":`{${y.args.map(C=>`${C.type instanceof i.OptionalType?"":"required "}${(0,d.generateTypeName)(C.type)} ${(0,d.mangle)(C.name)}`).join(", ")}}`}) async { ${y.returnType instanceof i.VoidPrimitiveType?"":"return "}${(0,d.cast)(`await makeRequest('${y.name}', {${y.args.map(C=>`'${C.name}': ${(0,d.mangle)(C.name)}`).join(", ")}})`,y.returnType)}; }`).join("")}\n}\n\n`,s+="var _typeTable = {\n";for(const y of u.structTypes){s+=` '${y.name}': StructTypeDescription(\n`,s+=` ${y.name},\n`,s+=" {\n";for(const C of y.fields)s+=` '${C.name}': '${C.type.name}',\n`;s+=" },\n",s+=` (Map fields) => ${y.name}(\n`;for(const C of y.fields)s+=` ${(0,d.mangle)(C.name)}: ${(0,d.cast)(`fields['${C.name}']`,C.type)},\n`;s+=" ),\n",s+=` (${y.name} obj) => ({\n`;for(const C of y.fields)s+=` '${C.name}': obj.${(0,d.mangle)(C.name)},\n`;s+=" }),\n",s+=" ),\n"}for(const y of u.enumTypes)s+=` '${y.name}': EnumTypeDescription(${y.name}, ${y.name}.values, [\n ${y.values.map(C=>`'${C.value}'`).join(",\n ")}\n ]),\n`;s+="};\n\n",s+="var _fnTable = {\n";for(const y of u.operations){s+=` '${y.name}': FunctionDescription('${y.returnType.name}', {\n`;for(const C of y.args)s+=` '${C.name}': '${C.type.name}',\n`;s+=" }),\n"}s+="};\n\n",s+="var _errTable = {\n";for(const y of u.errors)s+=` '${y.name}': SdkgenErrorDescription('${y.dataType.name}', (msg, data) => ${y.name}(msg${y.dataType instanceof i.VoidPrimitiveType?"":", data"})),\n`;return s+="};\n",s}},5235:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateClass=_.cast=_.generateErrorClass=_.generateTypeName=_.generateEnum=_.mangle=void 0;const i=l(6676);function d(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 u(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`${u(T.base)}?`;case i.ArrayType:return`List<${u(T.base)}>`;case i.StructType:case i.EnumType:return T.name;case i.TypeReference:return u(T.type);default:throw new Error(`BUG: generateTypeName with ${T.constructor.name}`)}}_.mangle=d,_.generateEnum=function m(T){return`enum ${T.name} {\n ${T.values.map(b=>b.value).join(",\n ")}\n}\n`},_.generateTypeName=u,_.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=u(T.dataType);return`class ${T.name} extends SdkgenErrorWithData<${b}> {\n ${T.name}(String msg, ${b} data) : super(msg, data);\n}\n`},_.cast=function y(T,b){return b instanceof i.OptionalType?`${T} == null ? null : ${y(T,b.base)}`:b instanceof i.ArrayType?`(${T} as List).map((e) => ${y("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 ${u(b)}`},_.generateClass=function I(T){return`class ${T.name} {\n ${T.fields.map(b=>`final ${u(b.type)} ${d(b.name)};`).join("\n ")}\n\n${function C(T){let b=` ${T.name}({\n`;for(const R of T.fields)b+=R.type instanceof i.OptionalType?" ":" required ",b+=`this.${d(R.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(R=>`${d(R.name)} == other.${d(R.name)}`)].join(" && ")};\n`,b+=" }\n",b}(T)}\n${function w(T){return` @override\n int get hashCode => hashList([${T.fields.map(b=>d(b.name)).join(", ")}]);\n`}(T)}\n${function f(T){return` String toString() {\n return '${T.name} { ${T.fields.map(b=>`${b.name}: $${d(b.name).startsWith("$")?`{${d(b.name)}}`:d(b.name)}`).join(", ")} }';\n }\n`}(T)}}\n`}},1823:function(Be,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,y){void 0===y&&(y=s),Object.defineProperty(m,y,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,y){void 0===y&&(y=s),m[y]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(1911),_)},196:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateFSharpServerSource=void 0;const i=l(6676),d=l(8735);_.generateFSharpServerSource=function m(u){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 y of u.errors)s+=`\ntype ${y.name}Exception =\n inherit SdkgenException\n\n new(message: string) = {\n inherit SdkgenException("${y.name}", message, null)\n }\n\n new(message: string, inner: Exception) = {\n inherit SdkgenException("${y.name}", message, inner)\n }\n`;for(const y of u.enumTypes)s+=`\n${(0,d.generateEnum)(y)}\n`;for(const y of u.structTypes)s+=`\n${(0,d.generateStruct)(y)}\n`;s+="\ntype Api() =";for(const y of u.operations){const C=y.returnType instanceof i.VoidPrimitiveType?"":`<${(0,d.generateTypeName)(y.returnType)}>`,D=y.args.length>0?`{| ${y.args.map(w=>`${w.name}: ${(0,d.generateTypeName)(w.type)};`).join("")} |} ->`:"";s+=`\n member val ${(0,d.capitalize)(y.name)}: Context -> ${D} Task${C} =\n fun _ -> (raise (FatalException("Function '${y.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 y of u.operations){s+=`\n | ${JSON.stringify(y.name)} ->`;for(const C of y.args)s+=`\n let ${C.name}Json_ =\n match context_.Args.TryGetValue(${JSON.stringify(C.name)}) with\n | true, v -> v\n | _ -> raise (FatalException("'${y.name}().args.${C.name}' must be set to a value of type ${C.type.name}."))\n\n let ${(0,d.ident)(C.name)} =\n ${(0,d.decodeType)(C.type,`${C.name}Json_`,`"${y.name}().args.${C.name}"`,(0,d.ident)(C.name)).replace(/\n/gu,"\n ")}`;s+=y.returnType instanceof i.VoidPrimitiveType?`\n\n do! (__.${(0,d.capitalize)(y.name)} context_ ${y.args.length>0?"{|":""} ${y.args.map(C=>`${C.name} = ${(0,d.ident)(C.name)}`).join("; ")} ${y.args.length>0?"|}":""})\n `:`\n\n let! result_ = (__.${(0,d.capitalize)(y.name)} context_ ${y.args.length>0?"{|":""} ${y.args.map(C=>`${C.name} = ${(0,d.ident)(C.name)}`).join("; ")} ${y.args.length>0?"|}":""})\n ${(0,d.encodeType)(y.returnType,"result_",`"${y.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)(u),null,4).replace(/\n/gu,"\n ")}""";`,s}},8735:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateEnum=_.generateStruct=_.encodeType=_.decodeType=_.generateTypeName=_.capitalize=_.ident=void 0;const i=l(6676),d=["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"],u=[i.BigIntPrimitiveType,i.DatePrimitiveType,i.DateTimePrimitiveType,i.FloatPrimitiveType,i.IntPrimitiveType,i.MoneyPrimitiveType,i.UIntPrimitiveType,i.ArrayType];function s(T){return d.includes(T)?`${T}'`:T}function y(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,R,j,he=1,V=!0){switch(T.constructor){case i.IntPrimitiveType:return`\n decodeInt32 ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.UIntPrimitiveType:return`\n decodeUInt32 ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.MoneyPrimitiveType:return`\n (decodeMoney ${b} ${R}) / 100m\n `.replace(/\n {16}/gu,"\n").trim();case i.FloatPrimitiveType:return`\n decodeFloat ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.BigIntPrimitiveType:return`\n decodeBigInt ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.StringPrimitiveType:return`\n decodeString ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.HtmlPrimitiveType:return`\n decodeHtml ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.CpfPrimitiveType:return`\n decodeCpf ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.CnpjPrimitiveType:return`\n decodeCnpj ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.EmailPrimitiveType:return`\n decodeEmail ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.UrlPrimitiveType:return`\n decodeUrl ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.UuidPrimitiveType:return`\n decodeUuid ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.HexPrimitiveType:return`\n decodeHex ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.Base64PrimitiveType:return`\n decodeBase64 ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.XmlPrimitiveType:return`\n decodeXml ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.BoolPrimitiveType:return`\n decodeBool ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.BytesPrimitiveType:return`\n decodeBytes ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.TypeReference:return D(T.type,b,R,j,he);case i.OptionalType:return u.includes(T.base.constructor)?`match ${b}.ValueKind with\n | JsonValueKind.Null | JsonValueKind.Undefined -> None\n | _ ->\n (${D(T.base,b,R,j,he,!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,R,j,he,!1)}\n `.replace(/\n {16}/gu,"\n").trim():`\n decodeOptional ${D(T.base,b,R,j,he,!1)}\n `.replace(/\n {16}/gu,"\n").trim();case i.EnumType:case i.StructType:return`Decode${T.name} ${b} ${R}`;case i.JsonPrimitiveType:return V?`\n ${b}\n `.replace(/\n {16}/gu,"\n").trim():`${j} <- ${b}`;case i.DateTimePrimitiveType:return`\n decodeDateTime ${b} ${R}\n `.replace(/\n {16}/gu,"\n").trim();case i.DatePrimitiveType:return`\n decodeDate ${b} ${R}\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]`,`${R.slice(0,-1)}.{i1}"`,j,he,!1).replace(/\n/gu,"\n ")}\n list_ <- list_ |> List.append [ partialResult ]\n list_\n | _ -> raise (FatalException(${R.slice(0,-1)} must be an array."))\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${T.constructor.name}`)}}function w(T,b,R,j=1,he=!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 V=T.base;for(;V instanceof i.TypeReference;)V=V.type;return`\n if (${b}.IsNone) then\n resultWriter_.WriteNullValue()\n else\n ${w(V,`${b}.Value`,R,j,he)}\n `.replace(/\n {14}/gu,"\n").trim()}case i.TypeReference:return w(T.type,b,R,j,he);case i.EnumType:case i.StructType:return`Encode${T.name} ${b} resultWriter_ ${R}`;case i.JsonPrimitiveType:return`${b}.WriteTo(resultWriter_)`;case i.ArrayType:return`\n resultWriter_.WriteStartArray()\n for i${j} in 0..${b}.Length - 1 do\n ${w(T.base,`${b}.[i${j}]`,`${R}`,j+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}`)}}_.ident=s,_.capitalize=y,_.generateTypeName=C,_.decodeType=D,_.encodeType=w,_.generateStruct=function f(T){return`\ntype ${T.name} = {\n ${T.fields.map(b=>`${y(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=>`${y(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=>`${y(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 ${w(b.type,`obj_.${y(b.name)}`,`$"{path_}.${b.name}"`).replace(/\n/gu,"\n ")}`).join("\n")}\n resultWriter_.WriteEndObject()`},_.generateEnum=function I(T){return`\ntype ${T.name} =\n ${T.values.map(({value:b})=>`| ${y(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}.${y(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}.${y(b)} -> resultWriter_.WriteStringValue("${b}")`).join("\n ")}\n\n`}},2863:function(Be,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,y){void 0===y&&(y=s),Object.defineProperty(m,y,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,y){void 0===y&&(y=s),m[y]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(196),_)},9409:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateAndroidClientSource=void 0;const i=l(6676),d=l(7250);_.generateAndroidClientSource=function m(u,s){let y='@file:Suppress("UNNECESSARY_SAFE_CALL")\n\nimport android.os.Parcelable\nimport kotlinx.android.parcel.Parcelize\nimport android.content.Context\nimport android.util.Base64\nimport com.google.gson.*\nimport com.google.gson.reflect.TypeToken\nimport com.google.gson.annotations.JsonAdapter\nimport com.google.gson.annotations.SerializedName\nimport io.sdkgen.runtime.SdkgenHttpClient\nimport kotlinx.coroutines.*\nimport kotlinx.coroutines.Dispatchers.IO\nimport java.util.*\n\ninline fun <reified T> Gson.fromJson(json: String) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\ninline fun <reified T> Gson.fromJson(json: JsonElement) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\n@Suppress("DeferredIsResult", "unused")\nclass ApiClient(\n baseUrl: String,\n val applicationContext: Context,\n defaultTimeoutMillis: Long = 10000L\n) : SdkgenHttpClient(baseUrl, applicationContext, defaultTimeoutMillis) {\n\n private val gson = GsonBuilder()\n .registerTypeAdapter(object : TypeToken<ByteArray>() {}.type, ByteArrayDeserializer())\n .create()\n\n';for(const w of u.enumTypes)y+=` ${(0,d.generateEnum)(w)}`,y+="\n";y+=" open class Error(val message: String? = null)\n",y+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const w of u.structTypes)y+=` ${(0,d.generateClass)(w)}\n`;const C=[],D=new i.ErrorNode("Connection",new i.VoidPrimitiveType);C.push(D.name),y+=` ${(0,d.generateErrorClass)(D)}`;for(const w of u.errors)y+=` ${(0,d.generateErrorClass)(w)}`,C.push(w.name);return C.length>0&&(y+=`\n enum class ErrorType {\n ${C.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${C.map(w=>`${w} -> ApiClient.${w}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),y+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",y+=u.operations.filter(w=>w.annotations.every(f=>!(f instanceof i.HiddenAnnotation))).map(w=>{let f="";const I=[];I.push("timeoutMillis: Long? = null"),s&&I.push(`callback: ((response: Response<${(0,d.generateKotlinTypeName)(w.returnType)}>) -> Unit)? = null`);const T=w.args.map(b=>`${(0,d.mangle)(b.name)}: ${(0,d.generateKotlinTypeName)(b.type)}`).concat(I);return f+=` fun ${(0,d.mangle)(w.name)}(\n ${T.join(",\n ")}\n ): Deferred<Response<out ${(0,d.generateKotlinTypeName)(w.returnType)}>> = sdkgenIOScope.async {\n`,w.args.length>0?(f+=" val bodyArgs = JsonObject().apply {\n",f+=w.args.map(b=>` ${(0,d.generateJsonAddRepresentation)(b.type,b.name)}`).join("\n"),f+="\n }\n"):f+=" val bodyArgs: JsonObject? = null",f+="\n",f+=` val call = makeRequest("${w.name}", bodyArgs, timeoutMillis)\n`,f+=` val response: Response<${(0,d.generateKotlinTypeName)(w.returnType)}> = handleCallResponse(call)\n`,s&&(f+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),f+=" return@async response\n",f+=" }\n",f}).join("\n"),y+='\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',y+="}\n",y}},7250:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateErrorClass=_.generateClass=_.getAnnotation=_.generateEnum=_.generateJsonAddRepresentation=_.mangle=_.generateKotlinTypeName=void 0;const i=l(6676);function d(w){switch(w.constructor){case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:return"Int";case i.FloatPrimitiveType:return"Double";case i.BigIntPrimitiveType:return"BigInt";case i.DatePrimitiveType:case i.DateTimePrimitiveType:return"Calendar";case i.BoolPrimitiveType:return"Boolean";case i.BytesPrimitiveType:return"ByteArray";case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:return"String";case i.VoidPrimitiveType:return"Unit";case i.JsonPrimitiveType:return"JsonElement";case i.OptionalType:return`${d(w.base)}?`;case i.ArrayType:return`ArrayList<${d(w.base)}>`;case i.StructType:case i.EnumType:return w.name;case i.TypeReference:return d(w.type);default:throw new Error(`BUG: generateKotlinTypeName with ${w.constructor.name}`)}}function m(w){return["in","out","as","break","class","continue","do","else","false","for","fun","if","in","interface","is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","Double","Float","Long","Int","Short","Byte"].includes(w)?`_${w}`:w}function y(w,f){let I="";switch(f&&f!==m(f)&&(I+=` @SerializedName("${f}")\n`),w.constructor){case i.DatePrimitiveType:I+=" @JsonAdapter(DateAdapter::class)\n";break;case i.DateTimePrimitiveType:I+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case i.ArrayType:case i.OptionalType:I+=y(w.base)}return I}_.generateKotlinTypeName=d,_.mangle=m,_.generateJsonAddRepresentation=function u(w,f){switch(w.constructor){case i.StringPrimitiveType:case i.CpfPrimitiveType:case i.CnpjPrimitiveType:case i.EmailPrimitiveType:case i.HtmlPrimitiveType:case i.UrlPrimitiveType:case i.UuidPrimitiveType:case i.HexPrimitiveType:case i.Base64PrimitiveType:case i.XmlPrimitiveType:case i.IntPrimitiveType:case i.UIntPrimitiveType:case i.MoneyPrimitiveType:case i.FloatPrimitiveType:case i.BoolPrimitiveType:return`addProperty("${f}", ${m(f)})`;case i.OptionalType:return u(w.base,f);case i.DatePrimitiveType:return`addProperty("${f}", ${m(f)}?.let { DateAdapter.sdf.format(it.time)}) `;case i.DateTimePrimitiveType:return`addProperty("${f}", ${m(f)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case i.ArrayType:case i.StructType:case i.EnumType:case i.TypeReference:case i.JsonPrimitiveType:return`add("${f}", gson.toJsonTree(${m(f)}))`;case i.VoidPrimitiveType:return"";case i.BytesPrimitiveType:return`addProperty("${f}", Base64.encodeToString(${m(f)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${w.constructor.name}`)}},_.generateEnum=function s(w){let f="@Parcelize \n";return f+=` enum class ${w.name} : Parcelable { ${w.values.map(I=>m(I.value)).join(", ")} }\n`,f},_.getAnnotation=y,_.generateClass=function C(w){let f="@Parcelize\n";return f+=` data class ${w.name}(\n${w.fields.map(I=>{let T=y(I.type,I.name);return T+=` var ${m(I.name)}: ${d(I.type)}${I.type.constructor===i.OptionalType?" = null":""}`,T}).join(",\n")}\n ) : Parcelable\n`,f},_.generateErrorClass=function D(w){return`class ${w.name}(message: String) : Error(message)\n`}},7402:function(Be,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,y){void 0===y&&(y=s),Object.defineProperty(m,y,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,y){void 0===y&&(y=s),m[y]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(9409),_)},1942:function(Be,_,l){"use strict";var i=this&&this.__rest||function(xe,ge){var Je={};for(var vt in xe)Object.prototype.hasOwnProperty.call(xe,vt)&&ge.indexOf(vt)<0&&(Je[vt]=xe[vt]);if(null!=xe&&"function"==typeof Object.getOwnPropertySymbols){var Et=0;for(vt=Object.getOwnPropertySymbols(xe);Et<vt.length;Et++)ge.indexOf(vt[Et])<0&&Object.prototype.propertyIsEnumerable.call(xe,vt[Et])&&(Je[vt[Et]]=xe[vt[Et]])}return Je};Object.defineProperty(_,"__esModule",{value:!0}),_.AstRoot=_.FunctionOperation=_.TypeDefinition=_.StructType=_.TypeReference=_.Spread=_.Field=_.EnumType=_.EnumValue=_.ArrayType=_.OptionalType=_.JsonPrimitiveType=_.XmlPrimitiveType=_.Base64PrimitiveType=_.HtmlPrimitiveType=_.HexPrimitiveType=_.UuidPrimitiveType=_.UrlPrimitiveType=_.EmailPrimitiveType=_.CnpjPrimitiveType=_.CpfPrimitiveType=_.MoneyPrimitiveType=_.VoidPrimitiveType=_.BytesPrimitiveType=_.BoolPrimitiveType=_.DateTimePrimitiveType=_.DatePrimitiveType=_.BigIntPrimitiveType=_.FloatPrimitiveType=_.UIntPrimitiveType=_.IntPrimitiveType=_.StringPrimitiveType=_.PrimitiveType=_.HiddenAnnotation=_.RestAnnotation=_.ArgDescriptionAnnotation=_.ThrowsAnnotation=_.DescriptionAnnotation=_.Annotation=_.ErrorNode=_.Type=_.AstNode=void 0;const d=l(9037);class m{constructor(){this.location=new d.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(ge){return this.location=ge.location,this}atLocation(ge){return this.location=ge,this}}_.AstNode=m;class u extends m{toJSON(){const ge=Object.assign({},this);return i(ge,["name"])}}_.Type=u,_.ErrorNode=class s extends m{constructor(ge,Je){super(),this.name=ge,this.dataType=Je}};class y extends m{}_.Annotation=y,_.DescriptionAnnotation=class C extends y{constructor(ge){super(),this.text=ge}},_.ThrowsAnnotation=class D extends y{constructor(ge){super(),this.error=ge}},_.ArgDescriptionAnnotation=class w extends y{constructor(ge,Je){super(),this.argName=ge,this.text=Je}},_.RestAnnotation=class f extends y{constructor(ge,Je,vt,Et,At,ht){super(),this.method=ge,this.path=Je,this.pathVariables=vt,this.queryVariables=Et,this.headers=At,this.bodyVariable=ht}},_.HiddenAnnotation=class I extends y{};class T extends u{toJSON(){return this.name}}_.PrimitiveType=T,_.StringPrimitiveType=class b extends T{constructor(){super(...arguments),this.name="string"}},_.IntPrimitiveType=class R extends T{constructor(){super(...arguments),this.name="int"}},_.UIntPrimitiveType=class j extends T{constructor(){super(...arguments),this.name="uint"}},_.FloatPrimitiveType=class he extends T{constructor(){super(...arguments),this.name="float"}},_.BigIntPrimitiveType=class V extends T{constructor(){super(...arguments),this.name="bigint"}},_.DatePrimitiveType=class le extends T{constructor(){super(...arguments),this.name="date"}},_.DateTimePrimitiveType=class Me extends T{constructor(){super(...arguments),this.name="datetime"}},_.BoolPrimitiveType=class fe extends T{constructor(){super(...arguments),this.name="bool"}},_.BytesPrimitiveType=class ye extends T{constructor(){super(...arguments),this.name="bytes"}},_.VoidPrimitiveType=class se extends T{constructor(){super(...arguments),this.name="void"}},_.MoneyPrimitiveType=class De extends T{constructor(){super(...arguments),this.name="money"}},_.CpfPrimitiveType=class ke extends T{constructor(){super(...arguments),this.name="cpf"}},_.CnpjPrimitiveType=class et extends T{constructor(){super(...arguments),this.name="cnpj"}},_.EmailPrimitiveType=class lt extends T{constructor(){super(...arguments),this.name="email"}},_.UrlPrimitiveType=class q extends T{constructor(){super(...arguments),this.name="url"}},_.UuidPrimitiveType=class Pe extends T{constructor(){super(...arguments),this.name="uuid"}},_.HexPrimitiveType=class X extends T{constructor(){super(...arguments),this.name="hex"}},_.HtmlPrimitiveType=class ae extends T{constructor(){super(...arguments),this.name="html"}},_.Base64PrimitiveType=class Ie extends T{constructor(){super(...arguments),this.name="base64"}},_.XmlPrimitiveType=class ne extends T{constructor(){super(...arguments),this.name="xml"}},_.JsonPrimitiveType=class Ke extends T{constructor(){super(...arguments),this.name="json"}},_.OptionalType=class me extends u{constructor(ge){super(),this.base=ge}get name(){return`${this.base.name}?`}},_.ArrayType=class st extends u{constructor(ge){super(),this.base=ge}get name(){return`${this.base.name}[]`}},_.EnumValue=class ve extends m{constructor(ge){super(),this.value=ge,this.annotations=[],this.struct=null}},_.EnumType=class Ue extends u{constructor(ge){super(),this.values=ge}get hasStructValues(){return this.values.some(ge=>null!==ge.struct)}},_.Field=class ut extends m{constructor(ge,Je,vt=!1){super(),this.name=ge,this.type=Je,this.secret=vt,this.annotations=[]}},_.Spread=class Tt extends m{constructor(ge){super(),this.typeReference=ge}},_.TypeReference=class Ne extends u{constructor(ge){super(),this.name=ge}},_.StructType=class qe extends u{constructor(ge){super(),this.fieldsAndSpreads=ge,this.fields=[]}},_.TypeDefinition=class Y extends m{constructor(ge,Je){super(),this.name=ge,this.type=Je,this.annotations=[]}},_.FunctionOperation=class pe extends m{constructor(ge,Je,vt){super(),this.name=ge,this.fieldsAndSpreads=Je,this.returnType=vt,this.annotations=[],this.args=[]}},_.AstRoot=class we{constructor(ge=[],Je=[],vt=[]){this.typeDefinitions=ge,this.operations=Je,this.errors=vt,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},9747:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.compatibilityIssues=void 0;const i=l(1942);function d(s,y,C,D){var w,f;if(C instanceof i.TypeReference)d(s,y,C.type,D);else if(D instanceof i.TypeReference)d(s,y,C,D.type);else if(C instanceof i.OptionalType||!(D instanceof i.OptionalType))if(C instanceof i.OptionalType&&D instanceof i.OptionalType)d(s,y,C.base,D.base);else{if(C instanceof i.OptionalType&&!(D instanceof i.OptionalType))return y.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 d(s,y,C.base,D);if(C instanceof i.ArrayType&&D instanceof i.ArrayType)d(s,y,C.base,D.base);else if(C instanceof i.StructType&&D instanceof i.StructType)for(const I of D.fields){const T=C.fields.find(b=>b.name===I.name);if(T)d(`${s}.${T.name}`,y,T.type,I.type);else{if(I.type instanceof i.OptionalType)continue;y.push(`${s}.${I.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 I of C.values){const T=D.values.find(b=>b.value===I.value);T?d(`${s}.${I.value}`,y,null!==(w=I.struct)&&void 0!==w?w:new i.StructType([]),null!==(f=T.struct)&&void 0!==f?f:new i.StructType([])):y.push(`The enum at ${s} used to accept the value "${I.value}" that doesn't exist now. Clients that send it will fail.`)}return}C.constructor.name!==D.constructor.name&&y.push(`${s} was ${C.name} and now it is ${D.name}. They are not compatible.`)}}else d(s,y,C,D.base)}function m(s,y,C,D){var w,f;if(C instanceof i.TypeReference)m(s,y,C.type,D);else if(D instanceof i.TypeReference)m(s,y,C,D.type);else if(!(C instanceof i.OptionalType)||D instanceof i.OptionalType)if(C instanceof i.OptionalType&&D instanceof i.OptionalType)m(s,y,C.base,D.base);else{if(!(C instanceof i.OptionalType)&&D instanceof i.OptionalType)return y.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,y,C,D.base);if(C instanceof i.ArrayType&&D instanceof i.ArrayType)m(s,y,C.base,D.base);else if(C instanceof i.StructType&&D instanceof i.StructType)for(const I of C.fields){const T=D.fields.find(b=>b.name===I.name);if(T)m(`${s}.${I.name}`,y,I.type,T.type);else{if(I.type instanceof i.OptionalType)continue;y.push(`${s}.${I.name} used to exist with type ${I.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 I of D.values){const T=C.values.find(b=>b.value===I.value);T?m(`${s}.${I.value}`,y,null!==(w=T.struct)&&void 0!==w?w:new i.StructType([]),null!==(f=I.struct)&&void 0!==f?f:new i.StructType([])):y.push(`The enum at ${s} now has the value "${I.value}" that didn't exist before. Client will crash if it receives it`)}return}C.constructor.name!==D.constructor.name&&y.push(`${s} was ${C.name} and now it is ${D.name}. They are not compatible.`)}}else m(s,y,C.base,D)}_.compatibilityIssues=function u(s,y){const C=[];for(const D of s.operations){const w=y.operations.find(f=>f.name===D.name);if(w){m(`${D.name}.ret`,C,D.returnType,w.returnType);for(const f of w.args){const I=D.args.find(T=>T.name===f.name);if(I)d(`${D.name}.args.${I.name}`,C,I.type,f.type);else{if(f.type instanceof i.OptionalType)continue;C.push(`${D.name}.args.${f.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 w=y.errors.find(f=>f.name===D.name);!w||m(`${D.name}.data`,C,D.dataType,w.dataType)}return C}},6676:function(Be,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(u,s,y,C){void 0===C&&(C=y),Object.defineProperty(u,C,{enumerable:!0,get:function(){return s[y]}})}:function(u,s,y,C){void 0===C&&(C=y),u[C]=s[y]}),d=this&&this.__exportStar||function(u,s){for(var y in u)"default"!==y&&!Object.prototype.hasOwnProperty.call(s,y)&&i(s,u,y)};Object.defineProperty(_,"__esModule",{value:!0}),_.jsonToAst=_.astToJson=void 0,d(l(1942),_),d(l(9747),_);var m=l(1557);Object.defineProperty(_,"astToJson",{enumerable:!0,get:function(){return m.astToJson}}),Object.defineProperty(_,"jsonToAst",{enumerable:!0,get:function(){return m.jsonToAst}}),d(l(8053),_),d(l(2701),_),d(l(9037),_)},1557:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.jsonToAst=_.astToJson=void 0;const i=l(1942),d=l(6088),m=l(6569);function u(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(([w],[f])=>w.localeCompare(f)),method:D.method,path:D.path,pathVariables:[...D.pathVariables].sort((w,f)=>w.localeCompare(f)),queryVariables:[...D.queryVariables].sort((w,f)=>w.localeCompare(f))}};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:w,path:f,pathVariables:I,queryVariables:T,headers:b,bodyVariable:R}=D.value;return new i.RestAnnotation(w,f,I,T,new Map(b),R)}case"hidden":return new i.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${D.type}`)}}_.astToJson=function y(D){var w,f,I;const T={},b={};function R(V){return V instanceof i.ArrayType?`${R(V.base)}[]`:V instanceof i.OptionalType?`${R(V.base)}?`:V.name}for(const{name:V,fields:le}of D.structTypes){b[V]={};const Me=b[V];for(const fe of le){Me[fe.name]=R(fe.type);for(const ye of fe.annotations)if(ye instanceof i.DescriptionAnnotation){const se=`type.${V}.${fe.name}`;null!==(w=T[se])&&void 0!==w||(T[se]=[]),T[se].push(u(ye))}}}for(const{name:V,values:le}of D.enumTypes)b[V]=le.map(Me=>Me.struct?[Me.value,Me.struct.name]:Me.value);for(const{name:V,type:le}of D.typeDefinitions)le instanceof i.StructType||le instanceof i.EnumType||(b[V]=R(le));const j={};for(const V of D.operations){const le={};for(const Me of V.args){le[Me.name]=R(Me.type);for(const fe of Me.annotations)if(fe instanceof i.DescriptionAnnotation){const ye=`fn.${V.name}.${Me.name}`;null!==(f=T[ye])&&void 0!==f||(T[ye]=[]),T[ye].push(u(fe))}}j[V.name]={args:le,ret:R(V.returnType)};for(const Me of V.annotations){const fe=`fn.${V.name}`;null!==(I=T[fe])&&void 0!==I||(T[fe]=[]),T[fe].push(u(Me))}}return{annotations:T,errors:D.errors.map(V=>V.dataType instanceof i.VoidPrimitiveType?V.name:[V.name,V.dataType.name]),functionTable:j,typeTable:b}},_.jsonToAst=function C(D){var w,f;const I=[],T=[],b=[];function R(V,le){var Me;if("string"==typeof V){const ye=m.primitiveToAstClass.get(V);return ye?new ye:V.endsWith("?")?new i.OptionalType(R(V.slice(0,V.length-1))):V.endsWith("[]")?new i.ArrayType(R(V.slice(0,V.length-2))):new i.TypeReference(V)}if(Array.isArray(V))return new i.EnumType(V.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 fe=[];for(const ye of Object.keys(V)){const se=new i.Field(ye,R(V[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))}fe.push(se)}return new i.StructType(fe)}for(const[V,le]of Object.entries(D.typeTable)){const Me=R(le,V);T.push(new i.TypeDefinition(V,Me))}for(const[V,le]of Object.entries(D.functionTable)){const Me=Object.keys(le.args).map(se=>{var De;const ke=new i.Field(se,R(le.args[se])),et=`fn.${V}.${se}`;for(const lt of null!==(De=D.annotations[et])&&void 0!==De?De:[])ke.annotations.push(s(lt));return ke}),fe=new i.FunctionOperation(V,Me,R(le.ret)),ye=`fn.${V}`;for(const se of null!==(w=D.annotations[ye])&&void 0!==w?w:[])fe.annotations.push(s(se));I.push(fe)}for(const[V,le]of b){const Me=null===(f=T.find(fe=>fe.name===le))||void 0===f?void 0:f.type;Me instanceof i.StructType&&(V.struct=Me)}const j=D.errors.map(V=>Array.isArray(V)?new i.ErrorNode(V[0],R(V[1])):new i.ErrorNode(V,new i.VoidPrimitiveType)),he=new i.AstRoot(T,I,j);return(0,d.analyse)(he),he}},8053:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Lexer=_.LexerError=void 0;const i=l(9037);class d extends Error{}_.LexerError=d;class m{constructor(s,y="-"){this.source=s,this.filename=y,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 y="\\",C=this.startPos+1;for(;"\\"===y[y.length-1];){for(y=y.slice(0,y.length-1).trim();!["\0","\n"].includes(this.nextChar()););y=`${y} ${this.source.substring(C,this.pos).trim()}`.trim(),C=this.pos+1}s=new i.AnnotationToken(y.trim());break}case'"':{const y=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":y.push("\n");break;case"t":y.push("\t");break;default:y.push(this.currentChar())}break;case'"':this.nextChar(),s=new i.StringLiteralToken(y.join(""));break e;default:y.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const y=this.source.substring(this.startPos,this.pos);switch(y){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(y)?new i.PrimitiveTypeToken(y):new i.IdentifierToken(y)}}}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 d(`Unexpected end of file at ${this.filename}`):new d(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}_.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:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Parser=_.ParserError=void 0;const i=l(1942),d=l(8053),m=l(7145),u=l(6088),s=l(9037),y=l(6569);class C extends Error{}_.ParserError=C,_.Parser=class D{constructor(f){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(I){}this.lexers=f instanceof d.Lexer?[f]:[new d.Lexer(this.readFileSync(f).toString(),f)],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(f){if(!this.token)throw new C(`Expected ${Object.keys(f).map(T=>T.replace("Token","")).join(" or ")}, but found end of file`);const I=this.token.constructor.name;if(I in f)return f[I](this.token);if(f.IdentifierToken){const T=this.token.maybeAsIdentifier();if(T instanceof s.IdentifierToken)return f.IdentifierToken(T)}throw new C(`Expected ${Object.keys(f).map(T=>T.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(f){if(null===this.token)throw new C(`Expected ${f.name.replace("Token","")}, but found end of file`);if(this.token instanceof f)return this.token;if(f===s.IdentifierToken){const I=this.token.maybeAsIdentifier();if(I instanceof s.IdentifierToken)return I}throw new C(`Expected ${f.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const f=[],I=[],T=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{T.push(this.parseError())},FnKeywordToken:()=>{f.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const R=this.expect(s.StringLiteralToken),j=R.location.filename.replace(/[^/\\]+$/u,`${R.value}.sdkgen`);this.lexers.push(new d.Lexer(this.readFileSync(j).toString(),j)),this.nextToken()},TypeKeywordToken:()=>{I.push(this.parseTypeDefinition())}});const b=new i.AstRoot(I,f,T);return b.warnings=this.warnings,(0,u.analyse)(b),b}acceptAnnotations(){for(;this.token instanceof s.AnnotationToken;){const f=this.token.value.split(" "),I=this.token.value.slice(f[0].length).trim();switch(f[0]){case"description":this.annotations.push(new i.DescriptionAnnotation(I).at(this.token));break;case"arg":this.annotations.push(new i.ArgDescriptionAnnotation(f[1],this.token.value.slice(f[0].length+1+f[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new i.ThrowsAnnotation(I).at(this.token));break;case"rest":try{this.annotations.push((0,m.parseRestAnnotation)(I).at(this.token))}catch(T){throw new C(`${T instanceof Error?T.message:T} at ${this.token.location}`)}break;case"hidden":if(""!==I)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 '${f[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 f=this.expect(s.TypeKeywordToken);this.nextToken();const I=this.expect(s.IdentifierToken),T=I.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 ${I.location}`);this.nextToken();const{annotations:b}=this;this.annotations=[];const R=this.parseType(),j=new i.TypeDefinition(T,R).at(f);return j.annotations=b,j}parseError(){this.checkCannotHaveAnnotationsHere();const f=this.expect(s.ErrorKeywordToken);this.nextToken();const I=this.expect(s.IdentifierToken),T=I.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 ${I.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(f)}parseOperation(){let{annotations:f}=this;this.annotations=[],this.expect(s.FnKeywordToken),this.nextToken();const I=this.expect(s.IdentifierToken).value;this.nextToken(),this.expect(s.ParensOpenSymbolToken),this.nextToken();const T=new Set,b=[];let j,R=!1;for(;!R;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:le=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),R=!0,j=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(),R=!0,j=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(),R=!0,j=Me},CommaSymbolToken:()=>this.nextToken()})}});for(const le of f)if(le instanceof i.ArgDescriptionAnnotation){const Me=b.find(fe=>fe instanceof i.Field&&fe.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))}f=f.filter(le=>!(le instanceof i.ArgDescriptionAnnotation));let he=(new i.VoidPrimitiveType).at(j);this.token instanceof s.ColonSymbolToken&&(this.nextToken(),he=this.parseType());const V=new i.FunctionOperation(I,b,he);return V.annotations=f,V}parseEnum(){this.checkCannotHaveAnnotationsHere();const f=this.expect(s.EnumKeywordToken);this.nextToken(),this.expect(s.CurlyOpenSymbolToken),this.nextToken();const I=new i.EnumType([]).at(f);let T=!1;for(;!T;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),T=!0},IdentifierToken:b=>{const R=new i.EnumValue(b.value).at(b);if(R.annotations=this.annotations,this.annotations=[],I.values.push(R),this.nextToken(),!(this.token instanceof s.ParensOpenSymbolToken))return;this.nextToken();const j=new Set,he=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof s.IdentifierToken;){const V=this.parseField();if("tag"===V.name&&(V.name="_tag"),j.has(V.name))throw new C(`Cannot redeclare argument '${V.name}'`);if(j.add(V.name),he.push(V),!(this.token instanceof s.CommaSymbolToken))break;this.nextToken()}R.struct=new i.StructType(he).atLocation(R.location),this.expect(s.ParensCloseSymbolToken),this.nextToken()}});return I}parseField(){const f=this.expect(s.IdentifierToken);this.nextToken(),this.expect(s.ColonSymbolToken),this.nextToken();const{annotations:I}=this;this.annotations=[];const T=this.parseType(),b=new i.Field(f.value,T).at(f);for(b.annotations=I;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 f=this.expect(s.CurlyOpenSymbolToken);this.nextToken();const I=[],T=new Set;let b=!1;for(;!b;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),b=!0},IdentifierToken:()=>{const R=this.parseField();if(T.has(R.name))throw new C(`Cannot redeclare field '${R.name}'`);T.add(R.name),I.push(R)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const R=this.expect(s.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(R.value[0]))throw new C(`Expected a type but found ${JSON.stringify(R.value)} at ${R.location}`);I.push(new i.Spread(new i.TypeReference(R.value).at(R)).at(R))}});return new i.StructType(I).at(f)}parseType(){this.checkCannotHaveAnnotationsHere();let f=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:I=>{if(this.nextToken(),!/[A-Z]/u.test(I.value[0]))throw new C(`Expected a type but found ${JSON.stringify(I.value)} at ${I.location}`);return new i.TypeReference(I.value).at(I)},PrimitiveTypeToken:I=>{this.nextToken();const T=y.primitiveToAstClass.get(I.value);if(T)return(new T).at(I);throw new C(`BUG! Should handle primitive ${I.value}`)}});for(;this.token instanceof s.ArraySymbolToken||this.token instanceof s.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:I=>f=new i.ArrayType(f).at(I),OptionalSymbolToken:I=>f=new i.OptionalType(f).at(I)}),this.nextToken();return f}}},7145:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.parseRestAnnotation=void 0;const i=l(1942);function u(y){var C;const D=/\{(?<name>\w+)\}/gu,w=[];let f;for(;null!==(f=D.exec(y));)(null===(C=f.groups)||void 0===C?void 0:C.name)&&w.push(f.groups.name);return w}_.parseRestAnnotation=function s(y){const C=y.split(" "),D=C[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(D))throw new Error(`Unsupported method '${D}'`);let w=C[1];if(!w.startsWith("/"))throw new Error("Invalid path");let f=[];if(w.includes("?")){const[j,...he]=w.split("?");w=j;const V=he.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(V))throw new Error("Invalid querystring on path");f=u(V)}const I=u(w),T=C.slice(2).join(" "),b=function d(y){var C;const D=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,w=new Map;let f;for(;null!==(f=D.exec(y));)(null===(C=f.groups)||void 0===C?void 0:C.header)&&f.groups.name&&w.set(f.groups.header.toLowerCase(),f.groups.name);return w}(T),R=function m(y){var C;const D=/\[body \{(?<name>\w+)\}\]/u.exec(y);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,w,I,f,b,R)}},7629:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CheckMultipleDeclarationVisitor=void 0;const i=l(1942),d=l(3154);_.CheckMultipleDeclarationVisitor=class m extends d.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(s){if(s instanceof i.TypeDefinition){const y=this.nameToType.get(s.name);if(y&&JSON.stringify(y)!==JSON.stringify(s.type))throw new d.SemanticError(`Type '${s.name}' at ${s.location} is defined multiple times (also at ${y.location})`);this.nameToType.set(s.name,s.type)}super.visit(s)}}},6153:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.GiveStructAndEnumNamesVisitor=void 0;const i=l(1942),d=l(3154);_.GiveStructAndEnumNamesVisitor=class m extends d.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 y=this.names.get(s.name);if(y&&JSON.stringify(y.type)!==JSON.stringify(s))throw new d.SemanticError(`The name of the type '${this.path.join(".")}' at ${s.location} will conflict with '${y.path.join(".")}' at ${y.type.location}`);this.names.set(s.name,{path:[...this.path],type:s}),super.visit(s)}else super.visit(s)}}},9471:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.MatchTypeDefinitionsVisitor=void 0;const i=l(1942),d=l(3154);_.MatchTypeDefinitionsVisitor=class m extends d.Visitor{visit(s){if(s instanceof i.TypeReference){const y=this.root.typeDefinitions.find(C=>C.name===s.name);if(void 0===y)throw new d.SemanticError(`Could not find type '${s.name}' at ${s.location}`);s.type=y.type}super.visit(s)}}},4612:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CheckDontReturnSecretVisitor=void 0;const i=l(1942),d=l(3154);_.CheckDontReturnSecretVisitor=class m extends d.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 d.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:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ExpandSpreadsVisitor=void 0;const i=l(1942),d=l(3154);_.ExpandSpreadsVisitor=class m extends d.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(s,y){const C=new Map;for(const D of y){let w;if(D instanceof i.Field)w=[D];else{const f=D.typeReference.type;if(!(f instanceof i.StructType))throw new d.SemanticError(`A spread operator can't refer to something that is not a struct, in '${D.typeReference.name}' at ${D.location}.`);this.visit(f),w=f.fields}for(const f of w){const I=C.get(f.name);I?s[I]=f:(C.set(f.name,s.length),s.push(f))}}}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:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CheckEmptyStructOrEnumVisitor=void 0;const i=l(1942),d=l(3154);_.CheckEmptyStructOrEnumVisitor=class m extends d.Visitor{visit(s){if(super.visit(s),s instanceof i.EnumType&&0===s.values.length)throw new d.SemanticError(`Enum '${s.name}' at ${s.location} is empty`);if(s instanceof i.StructType&&0===s.fields.length)throw new d.SemanticError(`Struct '${s.name}' at ${s.location} is empty`)}}},4647:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ValidateRecursiveTypes=void 0;const i=l(1942),d=l(3154);_.ValidateRecursiveTypes=class m extends d.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 d.SemanticError(`Type '${s.name}' at ${s.location} is recursive but is not an struct`);if(this.isInfinitelyRecursiveType(s,s.type))throw new d.SemanticError(`Type '${s.name}' at ${s.location} is infinitely recursive`)}}isRecursiveType(s,y){return y instanceof i.TypeReference?s.name===y.name:y instanceof i.ArrayType||y instanceof i.OptionalType?this.isRecursiveType(s,y.base):y instanceof i.StructType?y.fields.some(C=>this.isRecursiveType(s,C.type)):y instanceof i.EnumType&&y.values.some(C=>C.struct&&this.isRecursiveType(s,C.struct))}isInfinitelyRecursiveType(s,y){return y instanceof i.TypeReference?y.name===s.name:y instanceof i.StructType?y.fields.some(C=>this.isInfinitelyRecursiveType(s,C.type)):y instanceof i.EnumType&&y.values.every(C=>C.struct&&this.isInfinitelyRecursiveType(s,C.struct))}}},2060:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.CollectStructAndEnumTypesVisitor=void 0;const i=l(1942),d=l(3154);_.CollectStructAndEnumTypesVisitor=class m extends d.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:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ValidateAnnotationsVisitor=void 0;const i=l(1942),d=l(3154);function u(y){return y instanceof i.TypeReference?u(y.type):y}_.ValidateAnnotationsVisitor=class s extends d.Visitor{visit(C){if(C instanceof i.EnumValue){for(const D of C.annotations)if(!(D instanceof i.DescriptionAnnotation))throw new d.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 d.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 d.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(w=>w.name===D.error))throw new d.SemanticError(`Unknown error type '${D.error}' at ${D.location}`)}else if(D instanceof i.RestAnnotation){const w=[...D.pathVariables,...D.queryVariables,...D.headers.values()];if(w.length!==new Set(w).size)throw new d.SemanticError(`Arguments must appear only once for rest annotation at ${D.location}`);for(const f of w){const I=C.args.find(b=>b.name===f);if(!I)throw new d.SemanticError(`Argument '${f}' not found at ${D.location}`);if(D.pathVariables.includes(f)&&I.type instanceof i.OptionalType)throw new d.SemanticError(`The path argument '${f}' can't be nullable at ${D.location}`);if(!((y=u(I.type instanceof i.OptionalType?I.type.base:I.type))instanceof i.BoolPrimitiveType||y instanceof i.IntPrimitiveType||y instanceof i.UIntPrimitiveType||y instanceof i.BigIntPrimitiveType||y instanceof i.FloatPrimitiveType||y instanceof i.StringPrimitiveType||y instanceof i.DatePrimitiveType||y instanceof i.DateTimePrimitiveType||y instanceof i.MoneyPrimitiveType||y instanceof i.CpfPrimitiveType||y instanceof i.CnpjPrimitiveType||y instanceof i.UuidPrimitiveType||y instanceof i.HexPrimitiveType||y instanceof i.Base64PrimitiveType||y instanceof i.EnumType))throw new d.SemanticError(`Argument '${f}' can't have type '${I.type.name}' for rest annotation at ${D.location}`)}for(const f of C.args)if(!w.includes(f.name)&&D.bodyVariable!==f.name)throw new d.SemanticError(`Argument '${f.name}' is missing from the rest annotation at ${D.location}`);if("GET"===D.method&&C.returnType instanceof i.VoidPrimitiveType)throw new d.SemanticError(`A GET rest endpoint must return something at ${D.location}`)}else if(!(D instanceof i.HiddenAnnotation))throw new d.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`);var y}}},6088:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.analyse=void 0;const i=l(1942),d=l(7629),m=l(6153),u=l(9471),s=l(4612),y=l(4978),C=l(9866),D=l(4647),w=l(2060),f=l(4212);_.analyse=function I(T){T.errors.some(b=>"Fatal"===b.name)||T.errors.push(new i.ErrorNode("Fatal",new i.VoidPrimitiveType)),new d.CheckMultipleDeclarationVisitor(T).process(),new m.GiveStructAndEnumNamesVisitor(T).process(),new u.MatchTypeDefinitionsVisitor(T).process(),new s.CheckDontReturnSecretVisitor(T).process(),new y.ExpandSpreadsVisitor(T).process(),new C.CheckEmptyStructOrEnumVisitor(T).process(),new D.ValidateRecursiveTypes(T).process(),new w.CollectStructAndEnumTypesVisitor(T).process(),new f.ValidateAnnotationsVisitor(T).process()}},3154:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.Visitor=_.SemanticError=void 0;const i=l(1942);class d extends Error{}_.SemanticError=d,_.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 y of s.args)this.visit(y);for(const y of s.fieldsAndSpreads)this.visit(y);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 y of s.fields)this.visit(y);for(const y of s.fieldsAndSpreads)this.visit(y)}else if(s instanceof i.EnumType)for(const y of s.values)this.visit(y);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:(Be,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.PrimitiveTypeToken=_.FalseKeywordToken=_.TrueKeywordToken=_.ErrorKeywordToken=_.FnKeywordToken=_.EnumKeywordToken=_.TypeKeywordToken=_.ImportKeywordToken=_.AnnotationToken=_.SpreadSymbolToken=_.CommaSymbolToken=_.ArraySymbolToken=_.OptionalSymbolToken=_.ColonSymbolToken=_.ParensCloseSymbolToken=_.ParensOpenSymbolToken=_.CurlyCloseSymbolToken=_.CurlyOpenSymbolToken=_.ExclamationMarkSymbolToken=_.EqualSymbolToken=_.StringLiteralToken=_.IdentifierToken=_.Token=_.TokenLocation=void 0;class l{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}_.TokenLocation=l;class i{constructor(et=""){this.value=et,this.location=new l,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const et=this.constructor.name.replace("Token","");return""===this.value?et:`${et}(${JSON.stringify(this.value)})`}}_.Token=i;class d extends i{}_.IdentifierToken=d,_.StringLiteralToken=class m extends i{},_.EqualSymbolToken=class u extends i{},_.ExclamationMarkSymbolToken=class s extends i{},_.CurlyOpenSymbolToken=class y extends i{},_.CurlyCloseSymbolToken=class C extends i{},_.ParensOpenSymbolToken=class D extends i{},_.ParensCloseSymbolToken=class w extends i{},_.ColonSymbolToken=class f extends i{},_.OptionalSymbolToken=class I extends i{},_.ArraySymbolToken=class T extends i{},_.CommaSymbolToken=class b extends i{},_.SpreadSymbolToken=class R extends i{},_.AnnotationToken=class j extends i{},_.ImportKeywordToken=class he extends i{maybeAsIdentifier(){return new d("import")}},_.TypeKeywordToken=class V extends i{maybeAsIdentifier(){return new d("type")}},_.EnumKeywordToken=class le extends i{maybeAsIdentifier(){return new d("enum")}},_.FnKeywordToken=class Me extends i{maybeAsIdentifier(){return new d("fn")}},_.ErrorKeywordToken=class fe extends i{maybeAsIdentifier(){return new d("error")}},_.TrueKeywordToken=class ye extends i{maybeAsIdentifier(){return new d("true")}},_.FalseKeywordToken=class se extends i{maybeAsIdentifier(){return new d("false")}},_.PrimitiveTypeToken=class De extends i{maybeAsIdentifier(){return new d(this.value)}}},6569:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.primitiveToAstClass=void 0;const i=l(1942);_.primitiveToAstClass=new Map,_.primitiveToAstClass.set("string",i.StringPrimitiveType),_.primitiveToAstClass.set("int",i.IntPrimitiveType),_.primitiveToAstClass.set("uint",i.UIntPrimitiveType),_.primitiveToAstClass.set("date",i.DatePrimitiveType),_.primitiveToAstClass.set("datetime",i.DateTimePrimitiveType),_.primitiveToAstClass.set("float",i.FloatPrimitiveType),_.primitiveToAstClass.set("bigint",i.BigIntPrimitiveType),_.primitiveToAstClass.set("bool",i.BoolPrimitiveType),_.primitiveToAstClass.set("bytes",i.BytesPrimitiveType),_.primitiveToAstClass.set("money",i.MoneyPrimitiveType),_.primitiveToAstClass.set("cpf",i.CpfPrimitiveType),_.primitiveToAstClass.set("cnpj",i.CnpjPrimitiveType),_.primitiveToAstClass.set("email",i.EmailPrimitiveType),_.primitiveToAstClass.set("html",i.HtmlPrimitiveType),_.primitiveToAstClass.set("url",i.UrlPrimitiveType),_.primitiveToAstClass.set("uuid",i.UuidPrimitiveType),_.primitiveToAstClass.set("hex",i.HexPrimitiveType),_.primitiveToAstClass.set("base64",i.Base64PrimitiveType),_.primitiveToAstClass.set("xml",i.XmlPrimitiveType),_.primitiveToAstClass.set("json",i.JsonPrimitiveType),_.primitiveToAstClass.set("void",i.VoidPrimitiveType)},5041:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.AppComponent=void 0;const i=l(655),d=l(3075),m=l(7179),u=l(1823),s=l(2863),y=l(7402),C=l(7295),D=l(2911),w=l(4327),f=(0,i.__importStar)(l(5e3)),I=(0,i.__importStar)(l(6395)),T=(0,i.__importStar)(l(2313)),b=(0,i.__importStar)(l(5245)),R=(0,i.__importStar)(l(107)),j=(0,i.__importStar)(l(2253)),he=(0,i.__importStar)(l(9808)),V=(0,i.__importStar)(l(3251)),le=(0,i.__importStar)(l(5585)),Me=(0,i.__importStar)(l(7423)),fe=(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(me,st){1&me&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275text(1,"Editor Avan\xe7ado"),f.\u0275\u0275elementContainerEnd())}function et(me,st){if(1&me&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275elementStart(1,"span",20),f.\u0275\u0275text(2),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementContainerEnd()),2&me){const ve=f.\u0275\u0275nextContext(2).$implicit;f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate1("\u25b6\xa0",ve.function,"")}}function lt(me,st){if(1&me){const ve=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"span",17),f.\u0275\u0275template(1,ke,2,0,"ng-container",18),f.\u0275\u0275template(2,et,3,1,"ng-container",18),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(3,"button",19),f.\u0275\u0275listener("click",function(){f.\u0275\u0275restoreView(ve);const ut=f.\u0275\u0275nextContext().$implicit;return f.\u0275\u0275nextContext(2).closeTab(ut)}),f.\u0275\u0275elementStart(4,"mat-icon"),f.\u0275\u0275text(5,"close"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}if(2&me){const ve=f.\u0275\u0275nextContext().$implicit;f.\u0275\u0275property("ngSwitch",ve.type),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase","advanced"),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase","simple")}}function q(me,st){1&me&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275element(1,"app-tab-editor"),f.\u0275\u0275elementContainerEnd())}function Pe(me,st){if(1&me&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275element(1,"app-simple-call",21),f.\u0275\u0275elementContainerEnd()),2&me){const ve=f.\u0275\u0275nextContext().$implicit;f.\u0275\u0275advance(1),f.\u0275\u0275property("fn",ve.function)}}function X(me,st){if(1&me&&(f.\u0275\u0275elementStart(0,"mat-tab"),f.\u0275\u0275template(1,lt,6,3,"ng-template",16),f.\u0275\u0275elementContainerStart(2,17),f.\u0275\u0275template(3,q,2,0,"ng-container",18),f.\u0275\u0275template(4,Pe,2,1,"ng-container",18),f.\u0275\u0275elementContainerEnd(),f.\u0275\u0275elementEnd()),2&me){const ve=st.$implicit;f.\u0275\u0275advance(2),f.\u0275\u0275property("ngSwitch",ve.type),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase","advanced"),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase","simple")}}function ae(me,st){if(1&me){const ve=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"button",22),f.\u0275\u0275listener("click",function(){return f.\u0275\u0275restoreView(ve),f.\u0275\u0275nextContext(2).addAdvancedTab()}),f.\u0275\u0275elementStart(1,"mat-icon"),f.\u0275\u0275text(2,"add_circle"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}}function Ie(me,st){if(1&me&&(f.\u0275\u0275elementStart(0,"button",23),f.\u0275\u0275elementStart(1,"mat-icon"),f.\u0275\u0275text(2,"download"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&me){f.\u0275\u0275nextContext(2);const ve=f.\u0275\u0275reference(5);f.\u0275\u0275property("matMenuTriggerFor",ve)}}function ne(me,st){if(1&me){const ve=f.\u0275\u0275getCurrentView();f.\u0275\u0275elementStart(0,"mat-tab-group",11),f.\u0275\u0275listener("selectedIndexChange",function(ut){return f.\u0275\u0275restoreView(ve),f.\u0275\u0275nextContext().selected.setValue(ut)}),f.\u0275\u0275elementStart(1,"mat-tab",12),f.\u0275\u0275elementStart(2,"app-tab-home",13),f.\u0275\u0275listener("runFunction",function(ut){return f.\u0275\u0275restoreView(ve),f.\u0275\u0275nextContext().addSimpleTab(ut)}),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(3,X,5,3,"mat-tab",14),f.\u0275\u0275elementStart(4,"mat-tab",15),f.\u0275\u0275template(5,ae,3,0,"ng-template",16),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(6,"mat-tab",15),f.\u0275\u0275template(7,Ie,3,1,"ng-template",16),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()}if(2&me){const ve=f.\u0275\u0275nextContext();f.\u0275\u0275property("selectedIndex",ve.selected.value),f.\u0275\u0275advance(3),f.\u0275\u0275property("ngForOf",ve.tabs)}}class Ke{constructor(st,ve,Ue){this.sdkgen=st,this.domSanitizer=ve,this.matIconRegistry=Ue,this.selected=new d.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const ut of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(ut,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${ut}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(st=>{this.state=null!=st?st:void 0})}ngOnDestroy(){var st;null===(st=this.state$)||void 0===st||st.unsubscribe()}addSimpleTab(st){this.tabs.push({id:this.tabIndex++,function:st,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(st){this.tabs.splice(this.tabs.indexOf(st),1),this.selected.setValue(0)}downloadTarget(st){if(!this.state)return;let ve,Ue;switch(st){case"typescript_nodeserver":ve=(0,D.generateNodeServerSource)(this.state.astRoot),Ue="node-server.ts";break;case"typescript_nodeclient":ve=(0,D.generateNodeClientSource)(this.state.astRoot),Ue="node-client.ts";break;case"typescript_web":ve=(0,D.generateBrowserClientSource)(this.state.astRoot),Ue="web-client.ts";break;case"typescript_interfaces":ve=(0,D.generateTypescriptInterfaces)(this.state.astRoot),Ue="interfaces.ts";break;case"flutter":ve=(0,u.generateDartClientSource)(this.state.astRoot),Ue="flutter-client.dart";break;case"csharp_server":ve=(0,m.generateCSharpServerSource)(this.state.astRoot),Ue="csharp-server.cs";break;case"fsharp_server":ve=(0,s.generateFSharpServerSource)(this.state.astRoot),Ue="fsharp-server.fs";break;case"kotlin_android":ve=(0,y.generateAndroidClientSource)(this.state.astRoot,!0),Ue="android-client.kt";break;case"kotlin_android_without_callbacks":ve=(0,y.generateAndroidClientSource)(this.state.astRoot,!1),Ue="android-client-no-callbacks.kt";break;case"swift_ios":ve=(0,C.generateSwiftClientSource)(this.state.astRoot,!1),Ue="ios-client.swift";break;case"rxswift_ios":ve=(0,C.generateSwiftClientSource)(this.state.astRoot,!0),Ue="ios-client-rx.swift"}(0,w.saveAs)(new Blob([ve],{type:"application/octet-stream"}),Ue)}}_.AppComponent=Ke,Ke.\u0275fac=function(st){return new(st||Ke)(f.\u0275\u0275directiveInject(I.SdkgenService),f.\u0275\u0275directiveInject(T.DomSanitizer),f.\u0275\u0275directiveInject(b.MatIconRegistry))},Ke.\u0275cmp=f.\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(st,ve){1&st&&(f.\u0275\u0275element(0,"ngx-monaco-editor",0),f.\u0275\u0275element(1,"app-tab-nav"),f.\u0275\u0275template(2,ne,8,2,"mat-tab-group",1),f.\u0275\u0275pipe(3,"async"),f.\u0275\u0275elementStart(4,"mat-menu",null,2),f.\u0275\u0275element(6,"div",3),f.\u0275\u0275elementStart(7,"button",4),f.\u0275\u0275text(8,"Cliente"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(9,"button",5),f.\u0275\u0275listener("click",function(){return ve.downloadTarget("typescript_nodeclient")}),f.\u0275\u0275element(10,"mat-icon",6),f.\u0275\u0275text(11,"Node.js"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(12,"button",5),f.\u0275\u0275listener("click",function(){return ve.downloadTarget("typescript_web")}),f.\u0275\u0275element(13,"mat-icon",6),f.\u0275\u0275text(14,"Web"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(15,"button",5),f.\u0275\u0275listener("click",function(){return ve.downloadTarget("flutter")}),f.\u0275\u0275element(16,"mat-icon",7),f.\u0275\u0275text(17,"Flutter"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(18,"button",5),f.\u0275\u0275listener("click",function(){return ve.downloadTarget("kotlin_android")}),f.\u0275\u0275element(19,"mat-icon",8),f.\u0275\u0275text(20,"Android"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(21,"button",5),f.\u0275\u0275listener("click",function(){return ve.downloadTarget("kotlin_android_without_callbacks")}),f.\u0275\u0275element(22,"mat-icon",8),f.\u0275\u0275text(23,"Android (sem callbacks)"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(24,"button",5),f.\u0275\u0275listener("click",function(){return ve.downloadTarget("swift_ios")}),f.\u0275\u0275element(25,"mat-icon",9),f.\u0275\u0275text(26,"iOS"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(27,"button",5),f.\u0275\u0275listener("click",function(){return ve.downloadTarget("rxswift_ios")}),f.\u0275\u0275element(28,"mat-icon",9),f.\u0275\u0275text(29,"iOS (Rx)"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(30,"button",4),f.\u0275\u0275text(31,"Servidor"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(32,"button",5),f.\u0275\u0275listener("click",function(){return ve.downloadTarget("typescript_nodeserver")}),f.\u0275\u0275element(33,"mat-icon",6),f.\u0275\u0275text(34,"Node.js"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(35,"button",5),f.\u0275\u0275listener("click",function(){return ve.downloadTarget("csharp_server")}),f.\u0275\u0275element(36,"mat-icon",10),f.\u0275\u0275text(37,"C#"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(38,"button",5),f.\u0275\u0275listener("click",function(){return ve.downloadTarget("fsharp_server")}),f.\u0275\u0275element(39,"mat-icon",10),f.\u0275\u0275text(40,"F#"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(41,"button",4),f.\u0275\u0275text(42,"Outros"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(43,"button",5),f.\u0275\u0275listener("click",function(){return ve.downloadTarget("typescript_interfaces")}),f.\u0275\u0275element(44,"mat-icon",6),f.\u0275\u0275text(45,"Interfaces"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd()),2&st&&(f.\u0275\u0275advance(2),f.\u0275\u0275property("ngIf",f.\u0275\u0275pipeBind1(3,1,ve.sdkgen.state$)))},directives:[R.MonacoEditorComponent,j.TabNavComponent,he.NgIf,V.MatTabGroup,V.MatTab,le.TabHomeComponent,he.NgForOf,V.MatTabLabel,he.NgSwitch,he.NgSwitchCase,Me.MatButton,fe.MatTooltip,b.MatIcon,ye.TabEditorComponent,se.SimpleCallComponent,De.MatMenuTrigger,De.MatMenu,De.MatMenuItem],pipes:[he.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:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.AppModule=void 0;const i=l(655),d=l(520),m=l(3075),u=l(7423),s=l(9417),y=l(508),C=l(8966),D=l(5245),w=l(2181),f=l(2075),I=l(3251),T=l(7238),b=l(2313),R=l(6360),j=l(107),he=l(1430),V=l(5109),le=l(2290),Me=l(5041),fe=(0,i.__importStar)(l(5e3));(0,i.__importStar)(l(2290));class se{}_.AppModule=se,se.\u0275fac=function(ke){return new(ke||se)},se.\u0275mod=fe.\u0275\u0275defineNgModule({type:se,bootstrap:[Me.AppComponent]}),se.\u0275inj=fe.\u0275\u0275defineInjector({providers:[{provide:j.MONACO_PATH,useValue:"assets/vs"}],imports:[[b.BrowserModule,m.FormsModule,m.ReactiveFormsModule,j.MonacoEditorModule,R.BrowserAnimationsModule,V.NgxJsonViewerModule,le.ToastrModule.forRoot(),he.AngularSplitModule,d.HttpClientModule,u.MatButtonModule,s.MatChipsModule,C.MatDialogModule,D.MatIconModule,w.MatMenuModule,y.MatRippleModule,f.MatTableModule,I.MatTabsModule,T.MatTooltipModule]]})},8495:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ConsoleComponent=void 0;const i=l(655),d=l(9972),m=(0,i.__importStar)(l(5e3)),u=(0,i.__importStar)(l(7423)),s=(0,i.__importStar)(l(5245)),y=(0,i.__importStar)(l(9808)),C=(0,i.__importStar)(l(5109));function D(R,j){1&R&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"info_outline"),m.\u0275\u0275elementContainerEnd())}function w(R,j){1&R&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"error"),m.\u0275\u0275elementContainerEnd())}function f(R,j){1&R&&(m.\u0275\u0275elementContainerStart(0),m.\u0275\u0275text(1,"public"),m.\u0275\u0275elementContainerEnd())}function I(R,j){if(1&R&&m.\u0275\u0275element(0,"ngx-json-viewer",6),2&R){const he=m.\u0275\u0275nextContext().$implicit;m.\u0275\u0275property("json",he.details)("expanded",!1)}}function T(R,j){if(1&R&&(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,w,2,0,"ng-container",4),m.\u0275\u0275template(4,f,2,0,"ng-container",4),m.\u0275\u0275elementEnd(),m.\u0275\u0275elementStart(5,"span"),m.\u0275\u0275text(6),m.\u0275\u0275elementEnd(),m.\u0275\u0275template(7,I,1,2,"ngx-json-viewer",5),m.\u0275\u0275elementEnd()),2&R){const he=j.$implicit,V=m.\u0275\u0275nextContext();m.\u0275\u0275property("ngClass",he.type),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitch",he.type)("ngClass",he.type),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",V.itemTypes.INFO),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",V.itemTypes.ERROR),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngSwitchCase",V.itemTypes.NETWORK),m.\u0275\u0275advance(2),m.\u0275\u0275textInterpolate(he.message),m.\u0275\u0275advance(1),m.\u0275\u0275property("ngIf",he.details)}}class b{constructor(){this.itemTypes=d.ConsoleItemType,this.items=[]}}_.ConsoleComponent=b,b.\u0275fac=function(j){return new(j||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(j,he){1&j&&(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 he.items.splice(0,he.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&j&&(m.\u0275\u0275advance(8),m.\u0275\u0275property("ngForOf",he.items))},directives:[u.MatButton,s.MatIcon,y.NgForOf,y.NgClass,y.NgSwitch,y.NgSwitchCase,y.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:(Be,_)=>{"use strict";var i;Object.defineProperty(_,"__esModule",{value:!0}),_.ConsoleItemType=void 0,(i=_.ConsoleItemType||(_.ConsoleItemType={})).INFO="info",i.ERROR="error",i.NETWORK="network"},4814:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.DialogAboutComponent=void 0;const i=l(655),d=l(4147),m=(0,i.__importStar)(l(5e3)),u=(0,i.__importStar)(l(8966)),s=(0,i.__importStar)(l(9417)),y=(0,i.__importStar)(l(7423)),C=(0,i.__importStar)(l(5245)),D=(0,i.__importStar)(l(9808));function w(I,T){if(1&I&&(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&I){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 f{constructor(){this.version=d.version,this.dependencies=Object.entries(d.dependencies).filter(([T])=>T.startsWith("@sdkgen"))}}_.DialogAboutComponent=f,f.\u0275fac=function(T){return new(T||f)},f.\u0275cmp=m.\u0275\u0275defineComponent({type:f,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,w,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:[u.MatDialogTitle,s.MatChipList,s.MatChip,y.MatButton,u.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:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.FilterPipe=void 0;const d=(0,l(655).__importStar)(l(5e3));class m{transform(s,y){if(!s)return[];if(!y)return s;const C=y.toLocaleLowerCase();return s.filter(D=>JSON.stringify(D).toLocaleLowerCase().includes(C))}}_.FilterPipe=m,m.\u0275fac=function(s){return new(s||m)},m.\u0275pipe=d.\u0275\u0275definePipe({name:"appFilter",type:m,pure:!0})},7120:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.ResponsiveService=void 0;const i=l(655),d=(0,i.__importStar)(l(5e3)),m=(0,i.__importStar)(l(5113));class u{constructor(y){this.observer=y}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)"])}}_.ResponsiveService=u,u.\u0275fac=function(y){return new(y||u)(d.\u0275\u0275inject(m.BreakpointObserver))},u.\u0275prov=d.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})},9435:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.getTypeDoc=_.getTypeLabels=_.getConstructorName=_.primitiveTypesExamples=_.primitiveTypes=void 0;const i=l(6676),d=l(6395);function m(y){switch(y.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 y.constructor.name}}_.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?."},_.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}']},_.getConstructorName=m,_.getTypeLabels=function u(y){const C=[];switch(y.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(...u(y.base));break;case i.TypeReference:C.push(...u(y.type));break;case i.ArrayType:C.push("Array"),C.push(...u(y.base));break;case i.EnumType:C.push("Enum");break;default:console.error("No labels for",m(y))}return C},_.getTypeDoc=function s(y){var C,D,w;switch(y.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:_.primitiveTypes[m(y)],shortDescription:_.primitiveTypes[m(y)],examples:_.primitiveTypesExamples[m(y)]};case i.OptionalType:{const b=s(y.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(y.type);case i.ArrayType:{const b=s(y.base);return Object.assign(Object.assign({},b),{longDescription:b.longDescription,shortDescription:`(array) ${b.shortDescription}`,examples:["[]",...null!==(w=null===(D=b.examples)||void 0===D?void 0:D.map(R=>`[${R}]`))&&void 0!==w?w:[]]})}case i.EnumType:const f=y,I=f.values.slice(0,3),T=I.map(b=>b.struct?`${b.value}: ${JSON.stringify((new d.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) ${I.map(b=>`${b.value}${b.struct?"(\u2026)":""}`).join(", ")}${I.length>3?"\u2026":""}`,examples:T,isEnum:!0,isStruct:!0,structFields:f.values.map(b=>{var R;return{name:b.value,type:b.struct,description:null===(R=b.annotations.find(j=>j instanceof i.DescriptionAnnotation))||void 0===R?void 0:R.text,secret:!1}})};case i.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${y.fields.slice(0,3).map(b=>b.name).join(", ")}\u2026`,isStruct:!0,structFields:y.fields.map(b=>{var R;return{name:b.name,description:null===(R=b.annotations.find(j=>j instanceof i.DescriptionAnnotation))||void 0===R?void 0:R.text,type:b.type,secret:b.secret}}),examples:[JSON.stringify((new d.SdkgenService).buildJsonObject(y.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(Be,_=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 _.has(i.name)?{}:this.buildJsonObject(i.fields,new Set([..._,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 Be.reduce((i,d)=>(i[d.name]=l(d.type),i),{})}getTypeScriptCode(Be,_){return`await client.${Be}(${JSON.stringify(_,null,2)});\n`}buildKotlinString(Be,_=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,_+1)}\n${" ".repeat(_+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return l(i.type);case parser_1.ArrayType:_++;const d=l(i.base);return _--,`arrayOf(\n${" ".repeat(_+2)}${d},\n${" ".repeat(_+2)}${d}\n${" ".repeat(_+1)})`;case parser_1.EnumType:return`"${i.values[0].value}"`;default:return"<>()"}};return Be.map(i=>`${" ".repeat(_+1)}${l(i.type)}`).join(",\n")}getKotlinCode(Be,_){return 0===_.length?`client.${Be}().await();`:`client.${Be}(\n${this.buildKotlinString(_)}\n).await();`}getDartCode(Be,_){return'print("todo");'}getSwiftCode(Be,_){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:(Be,_)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(_.toString())?clientInstance[_.toString()]:function(){var l=_asyncToGenerator(function*(i){return clientInstance.makeRequest(_.toString(),i)});return function(i){return l.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function Be(_){return new(_||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(Be){this.sdkgen=Be,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(Be=>{!Be||(this.generateFunctionCode(Be.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(Be.url,Be.astJson))})}ngOnDestroy(){var Be;null===(Be=this.state$)||void 0===Be||Be.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(Be){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Be.toString()}),delete Be.toString,_this.response={error:{type:Be.type,message:Be.message,data:Be.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(Be,_){var l;const i=null===(l=Be.operations.find(d=>d.name===_))||void 0===l?void 0:l.args;i&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(i),null,2))}}exports.SimpleCallComponent=SimpleCallComponent,SimpleCallComponent.\u0275fac=function Be(_){return new(_||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 Be(_,l){1&_&&(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(d){return l.selected.setValue(d)}),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(d){return l.code=d}),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&_&&(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(Be){this.sdkgen=Be,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(Be=>{if(!Be)return;const _=`${this.patchBrowserClientSource((0,typescript_generator_1.generateBrowserClientSource)(Be.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(Be.url,Be.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(d=>d.uri.toString().endsWith("client.d.ts"));l?l.setValue(_):monaco.editor.createModel(_,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[i]=Be.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(i.name,this.sdkgen.buildJsonObject(i.args))})}ngOnDestroy(){var Be;null===(Be=this.state$)||void 0===Be||Be.unsubscribe()}patchBrowserClientSource(Be){return`declare namespace sdkgen {\n${Be.substring(95,Be.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(Be){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Be.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function Be(_){return new(_||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 Be(_,l){1&_&&(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(d){return l.code=d}),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&_&&(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:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.TabHomeComponent=void 0;const i=l(655),d=l(5e3),m=l(9435),u=l(5281),s=(0,i.__importStar)(l(5e3)),y=(0,i.__importStar)(l(6395)),C=(0,i.__importStar)(l(8966)),D=(0,i.__importStar)(l(7120)),w=(0,i.__importStar)(l(1430)),f=(0,i.__importStar)(l(3075)),I=(0,i.__importStar)(l(9808)),T=(0,i.__importStar)(l(7238)),b=(0,i.__importStar)(l(7423)),R=(0,i.__importStar)(l(5245)),j=(0,i.__importStar)(l(9417)),he=(0,i.__importStar)(l(2075)),V=(0,i.__importStar)(l(3251)),le=(0,i.__importStar)(l(107)),Me=(0,i.__importStar)(l(4211));function fe(ht,Ze){if(1&ht&&(s.\u0275\u0275elementStart(0,"span",8),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&ht){const N=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.description)}}const ye=function(ht){return{active:ht}};function se(ht,Ze){if(1&ht){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,fe,2,1,"span",7),s.\u0275\u0275elementEnd()}if(2&ht){const N=Ze.$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(ht,Ze){1&ht&&s.\u0275\u0275element(0,"span")}function ke(ht,Ze){if(1&ht){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&ht){const N=Ze.$implicit,oe=Ze.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 et(ht,Ze){1&ht&&s.\u0275\u0275text(0,",")}function lt(ht,Ze){1&ht&&s.\u0275\u0275element(0,"br")}function q(ht,Ze){if(1&ht){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&ht){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(ht,Ze){if(1&ht&&(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&ht){const N=Ze.$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 X(ht,Ze){if(1&ht&&(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&ht){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(ht,Ze){if(1&ht&&(s.\u0275\u0275elementStart(0,"p"),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&ht){const N=s.\u0275\u0275nextContext(2);s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.selectedFunction.description)}}function Ie(ht,Ze){1&ht&&(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 ne(ht,Ze){1&ht&&(s.\u0275\u0275elementStart(0,"p",44),s.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),s.\u0275\u0275elementEnd())}function Ke(ht,Ze){1&ht&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Nome"),s.\u0275\u0275elementEnd())}function me(ht,Ze){if(1&ht&&(s.\u0275\u0275elementStart(0,"td",55),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&ht){const N=Ze.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.name)}}function st(ht,Ze){1&ht&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Tipo"),s.\u0275\u0275elementEnd())}function ve(ht,Ze){if(1&ht){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&ht){const N=Ze.$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 Ue(ht,Ze){1&ht&&(s.\u0275\u0275elementStart(0,"th",54),s.\u0275\u0275text(1,"Descri\xe7\xe3o"),s.\u0275\u0275elementEnd())}function ut(ht,Ze){if(1&ht&&(s.\u0275\u0275elementStart(0,"td",56),s.\u0275\u0275text(1),s.\u0275\u0275elementEnd()),2&ht){const N=Ze.$implicit;s.\u0275\u0275advance(1),s.\u0275\u0275textInterpolate(N.description||"-")}}function Tt(ht,Ze){1&ht&&s.\u0275\u0275element(0,"tr",57)}function Ne(ht,Ze){1&ht&&s.\u0275\u0275element(0,"tr",58)}function qe(ht,Ze){if(1&ht&&(s.\u0275\u0275elementStart(0,"table",45),s.\u0275\u0275elementContainerStart(1,46),s.\u0275\u0275template(2,Ke,2,0,"th",47),s.\u0275\u0275template(3,me,2,1,"td",48),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275elementContainerStart(4,49),s.\u0275\u0275template(5,st,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,Ue,2,0,"th",47),s.\u0275\u0275template(9,ut,2,1,"td",51),s.\u0275\u0275elementContainerEnd(),s.\u0275\u0275template(10,Tt,1,0,"tr",52),s.\u0275\u0275template(11,Ne,1,0,"tr",53),s.\u0275\u0275elementEnd()),2&ht){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(ht,Ze){1&ht&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Dart"),s.\u0275\u0275elementEnd())}function pe(ht,Ze){1&ht&&(s.\u0275\u0275elementStart(0,"span",59),s.\u0275\u0275text(1,"Swift"),s.\u0275\u0275elementEnd())}const we=function(){return{theme:"vs-dark",language:"javascript"}},xe=function(){return{theme:"vs-dark",language:"kotlin"}},ge=function(){return{theme:"vs-dark",language:"dart"}},Je=function(){return{theme:"vs-dark",language:"swift"}};function vt(ht,Ze){if(1&ht){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,et,1,0,"ng-template",null,16,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275template(19,lt,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,X,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,ne,2,0,"p",23),s.\u0275\u0275elementStart(37,"div",25),s.\u0275\u0275template(38,qe,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,pe,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&ht){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,xe))("ngModel",N.selectedFunction.examples.kotlin),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(22,ge))("ngModel",N.selectedFunction.examples.dart),s.\u0275\u0275advance(3),s.\u0275\u0275property("options",s.\u0275\u0275pureFunction0(23,Je))("ngModel",N.selectedFunction.examples.swift)}}const Et=function(){return{standalone:!0}};class At{constructor(Ze,N,oe){this.sdkgen=Ze,this.dialog=N,this.responsive=oe,this.isBelowMd=!1,this.runFunction=new d.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ze=>{!Ze||(this.selectedFunction=void 0,this.fnTable=Ze.astRoot.operations.sort((N,oe)=>N.name.localeCompare(oe.name)).map(N=>{var oe,Oe,ue;const Te=Ze.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 Ye,rt,pt;return{name:re,description:null===(pt=[...null!==(Ye=Ze.astJson.annotations[`type.${Ce}.${re}`])&&void 0!==Ye?Ye:[],...null!==(rt=Ze.astJson.annotations[`fn.${N.name}.${re}`])&&void 0!==rt?rt:[]].find(Mt=>"description"===Mt.type))||void 0===pt?void 0:pt.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=Ze.astRoot.errors.find(Ye=>Ye.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 Ze,N;null===(Ze=this.state$)||void 0===Ze||Ze.unsubscribe(),null===(N=this.responsive$)||void 0===N||N.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(Ze=>{this.isBelowMd=Ze.matches})}addSimpleCallTab(){var Ze;this.runFunction.emit(null===(Ze=this.selectedFunction)||void 0===Ze?void 0:Ze.name)}getTooltip(Ze){return(0,m.getTypeDoc)(Ze).shortDescription}showDocumentation(Ze){this.dialog.open(u.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:Ze},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}_.TabHomeComponent=At,At.\u0275fac=function(Ze){return new(Ze||At)(s.\u0275\u0275directiveInject(y.SdkgenService),s.\u0275\u0275directiveInject(C.MatDialog),s.\u0275\u0275directiveInject(D.ResponsiveService))},At.\u0275cmp=s.\u0275\u0275defineComponent({type:At,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(Ze,N){1&Ze&&(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,vt,58,24,"article",4),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()),2&Ze&&(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,Et)),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:[w.SplitComponent,w.SplitAreaDirective,f.\u0275NgNoValidate,f.NgControlStatusGroup,f.NgForm,f.DefaultValueAccessor,f.NgControlStatus,f.NgModel,I.NgForOf,I.NgClass,I.NgIf,T.MatTooltip,b.MatButton,R.MatIcon,j.MatChipList,j.MatChip,I.NgSwitch,I.NgSwitchCase,I.NgSwitchDefault,he.MatTable,he.MatColumnDef,he.MatHeaderCellDef,he.MatHeaderCell,he.MatCellDef,he.MatCell,he.MatHeaderRowDef,he.MatHeaderRow,he.MatRowDef,he.MatRow,V.MatTabGroup,V.MatTab,le.MonacoEditorComponent,V.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:(Be,_,l)=>{"use strict";var i=l(8926).default;Object.defineProperty(_,"__esModule",{value:!0}),_.TabNavComponent=void 0;const d=l(655),m=l(3075),u=l(6676),s=l(4814),y=(0,d.__importStar)(l(5e3)),C=(0,d.__importStar)(l(6395)),D=(0,d.__importStar)(l(2290)),w=(0,d.__importStar)(l(8966)),f=(0,d.__importStar)(l(3075)),I=(0,d.__importStar)(l(508)),T=(0,d.__importStar)(l(9808)),b=(0,d.__importStar)(l(5245)),R=(0,d.__importStar)(l(7423));function j(le,Me){1&le&&(y.\u0275\u0275elementContainerStart(0),y.\u0275\u0275elementStart(1,"mat-icon",6),y.\u0275\u0275text(2,"loop"),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementContainerEnd())}function he(le,Me){1&le&&(y.\u0275\u0275elementContainerStart(0),y.\u0275\u0275elementStart(1,"mat-icon"),y.\u0275\u0275text(2,"arrow_forward"),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementContainerEnd())}class V{constructor(Me,fe,ye){this.sdkgen=Me,this.toastr=fe,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 fe=this;return i(function*(){null==Me||Me.preventDefault();try{fe.loading=!0,/^https?:\/\//.test(fe.url.value)||fe.url.setValue(`https://${fe.url.value}`);const ye=new URL(fe.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),fe.sdkgen.state$.next({astJson:De,astRoot:(0,u.jsonToAst)(De),url:fe.url.value})}catch(ye){fe.toastr.error(ye instanceof Error?ye.message:JSON.stringify(ye),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{fe.loading=!1}})()}openAbout(){this.dialog.open(s.DialogAboutComponent)}}_.TabNavComponent=V,V.\u0275fac=function(Me){return new(Me||V)(y.\u0275\u0275directiveInject(C.SdkgenService),y.\u0275\u0275directiveInject(D.ToastrService),y.\u0275\u0275directiveInject(w.MatDialog))},V.\u0275cmp=y.\u0275\u0275defineComponent({type:V,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,fe){1&Me&&(y.\u0275\u0275element(0,"img",0),y.\u0275\u0275elementStart(1,"form",1),y.\u0275\u0275listener("submit",function(se){return fe.loadUrl(se)}),y.\u0275\u0275element(2,"input",2),y.\u0275\u0275elementStart(3,"button",3),y.\u0275\u0275template(4,j,3,0,"ng-container",4),y.\u0275\u0275template(5,he,3,0,"ng-container",4),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementStart(6,"button",5),y.\u0275\u0275listener("click",function(){return fe.openAbout()}),y.\u0275\u0275elementStart(7,"mat-icon"),y.\u0275\u0275text(8,"info"),y.\u0275\u0275elementEnd(),y.\u0275\u0275elementEnd()),2&Me&&(y.\u0275\u0275advance(2),y.\u0275\u0275property("formControl",fe.url)("readonly",fe.loading),y.\u0275\u0275advance(1),y.\u0275\u0275property("disabled",fe.loading)("ngSwitch",fe.loading),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngSwitchCase",!0),y.\u0275\u0275advance(1),y.\u0275\u0275property("ngSwitchCase",!1))},directives:[f.\u0275NgNoValidate,f.NgControlStatusGroup,f.NgForm,f.DefaultValueAccessor,f.NgControlStatus,f.FormControlDirective,I.MatRipple,T.NgSwitch,T.NgSwitchCase,b.MatIcon,R.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:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.TypeDetailsComponent=void 0;const i=l(655),d=l(8966),m=l(9435),u=(0,i.__importStar)(l(5e3)),s=(0,i.__importStar)(l(8966)),y=(0,i.__importStar)(l(9808)),C=(0,i.__importStar)(l(7423)),D=(0,i.__importStar)(l(5245)),w=(0,i.__importStar)(l(9417)),f=(0,i.__importStar)(l(2075)),I=(0,i.__importStar)(l(7238));function T(ae,Ie){1&ae&&(u.\u0275\u0275elementStart(0,"button",6),u.\u0275\u0275elementStart(1,"mat-icon"),u.\u0275\u0275text(2,"arrow_back"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd())}function b(ae,Ie){if(1&ae&&(u.\u0275\u0275elementStart(0,"mat-chip",7),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ae){const ne=Ie.$implicit;u.\u0275\u0275property("disableRipple",!0),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(ne)}}function R(ae,Ie){1&ae&&(u.\u0275\u0275elementStart(0,"button",8),u.\u0275\u0275elementStart(1,"mat-icon"),u.\u0275\u0275text(2,"close"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd())}function j(ae,Ie){1&ae&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Nome"),u.\u0275\u0275elementEnd())}function he(ae,Ie){if(1&ae&&(u.\u0275\u0275elementStart(0,"td",21),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ae){const ne=Ie.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(ne.name)}}function V(ae,Ie){1&ae&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Tipo"),u.\u0275\u0275elementEnd())}function le(ae,Ie){1&ae&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1,"-"),u.\u0275\u0275elementEnd())}function Me(ae,Ie){if(1&ae){const ne=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"u",25),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(ne);const me=u.\u0275\u0275nextContext().$implicit;return u.\u0275\u0275nextContext(2).showDocumentation(me.type)}),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()}if(2&ae){const ne=u.\u0275\u0275nextContext().$implicit,Ke=u.\u0275\u0275nextContext(2);u.\u0275\u0275property("matTooltip",Ke.getTooltip(ne.type)),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(ne.type.name)}}function fe(ae,Ie){1&ae&&(u.\u0275\u0275elementStart(0,"td",22),u.\u0275\u0275template(1,le,2,0,"span",23),u.\u0275\u0275template(2,Me,2,2,"u",24),u.\u0275\u0275elementEnd()),2&ae&&(u.\u0275\u0275property("ngSwitch",Ie.$implicit.type),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngSwitchCase",null))}function ye(ae,Ie){1&ae&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Descri\xe7\xe3o"),u.\u0275\u0275elementEnd())}function se(ae,Ie){if(1&ae&&(u.\u0275\u0275elementStart(0,"td",26),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&ae){const ne=Ie.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(ne.description||"-")}}function De(ae,Ie){1&ae&&u.\u0275\u0275element(0,"tr",27)}function ke(ae,Ie){1&ae&&u.\u0275\u0275element(0,"tr",28)}const et=function(){return[]};function lt(ae,Ie){if(1&ae&&(u.\u0275\u0275elementStart(0,"section"),u.\u0275\u0275elementStart(1,"div",9),u.\u0275\u0275elementStart(2,"table",10),u.\u0275\u0275elementContainerStart(3,11),u.\u0275\u0275template(4,j,2,0,"th",12),u.\u0275\u0275template(5,he,2,1,"td",13),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(6,14),u.\u0275\u0275template(7,V,2,0,"th",12),u.\u0275\u0275template(8,fe,3,2,"td",15),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(9,16),u.\u0275\u0275template(10,ye,2,0,"th",12),u.\u0275\u0275template(11,se,2,1,"td",17),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275template(12,De,1,0,"tr",18),u.\u0275\u0275template(13,ke,1,0,"tr",19),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&ae){const ne=u.\u0275\u0275nextContext();let Ke;u.\u0275\u0275advance(2),u.\u0275\u0275property("dataSource",null!==(Ke=null==ne.typeDoc?null:ne.typeDoc.structFields)&&void 0!==Ke?Ke:u.\u0275\u0275pureFunction0(3,et)),u.\u0275\u0275advance(10),u.\u0275\u0275property("matHeaderRowDef",ne.argumentsTableColumns),u.\u0275\u0275advance(1),u.\u0275\u0275property("matRowDefColumns",ne.argumentsTableColumns)}}function q(ae,Ie){if(1&ae&&(u.\u0275\u0275elementStart(0,"li"),u.\u0275\u0275elementStart(1,"code",1),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&ae){const ne=Ie.$implicit;u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(ne)}}function Pe(ae,Ie){if(1&ae&&(u.\u0275\u0275elementStart(0,"section"),u.\u0275\u0275elementStart(1,"h3"),u.\u0275\u0275text(2,"Exemplos"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"ul"),u.\u0275\u0275template(4,q,3,1,"li",29),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()),2&ae){const ne=u.\u0275\u0275nextContext();u.\u0275\u0275advance(4),u.\u0275\u0275property("ngForOf",null==ne.typeDoc?null:ne.typeDoc.examples)}}class X{constructor(Ie,ne,Ke){this.dialogRef=Ie,this.data=ne,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(X,{position:{right:"0"},data:{type:Ie,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}_.TypeDetailsComponent=X,X.\u0275fac=function(Ie){return new(Ie||X)(u.\u0275\u0275directiveInject(s.MatDialogRef),u.\u0275\u0275directiveInject(d.MAT_DIALOG_DATA),u.\u0275\u0275directiveInject(s.MatDialog))},X.\u0275cmp=u.\u0275\u0275defineComponent({type:X,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,ne){1&Ie&&(u.\u0275\u0275elementStart(0,"h1"),u.\u0275\u0275template(1,T,3,0,"button",0),u.\u0275\u0275elementStart(2,"span",1),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"mat-chip-list",2),u.\u0275\u0275template(5,b,2,2,"mat-chip",3),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(6,R,3,0,"button",4),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(7,"p"),u.\u0275\u0275text(8),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(9,lt,14,4,"section",5),u.\u0275\u0275template(10,Pe,5,1,"section",5)),2&Ie&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",ne.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(ne.data.type.name),u.\u0275\u0275advance(1),u.\u0275\u0275property("selectable",!1),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",ne.labels),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!ne.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(null==ne.typeDoc?null:ne.typeDoc.longDescription),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",(null==ne.typeDoc?null:ne.typeDoc.isStruct)&&(null==ne.typeDoc?null:ne.typeDoc.structFields)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",null==ne.typeDoc||null==ne.typeDoc.examples?null:ne.typeDoc.examples.length))},directives:[y.NgIf,C.MatButton,s.MatDialogClose,D.MatIcon,w.MatChipList,y.NgForOf,w.MatChip,f.MatTable,f.MatColumnDef,f.MatHeaderCellDef,f.MatHeaderCell,f.MatCellDef,f.MatCell,y.NgSwitch,y.NgSwitchCase,y.NgSwitchDefault,I.MatTooltip,f.MatHeaderRowDef,f.MatHeaderRow,f.MatRowDef,f.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:(Be,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.unwrap=_.wrapper=void 0,_.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',_.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(Be,_)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.environment=void 0,_.environment={production:!0}},4431:(Be,_,l)=>{"use strict";const m=(0,l(655).__importStar)(l(2313)),u=l(5e3),s=l(6747);l(2340).environment.production&&(0,u.enableProdMode)(),m.platformBrowser().bootstrapModule(s.AppModule).catch(C=>console.error(C))},4327:function(Be,_){var d;void 0!==(d=function(){"use strict";function u(f,I,T){var b=new XMLHttpRequest;b.open("GET",f),b.responseType="blob",b.onload=function(){w(b.response,I,T)},b.onerror=function(){console.error("could not download file")},b.send()}function s(f){var I=new XMLHttpRequest;I.open("HEAD",f,!1);try{I.send()}catch(T){}return 200<=I.status&&299>=I.status}function y(f){try{f.dispatchEvent(new MouseEvent("click"))}catch(T){var I=document.createEvent("MouseEvents");I.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),f.dispatchEvent(I)}}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),w=C.saveAs||("object"!=typeof window||window!==C?function(){}:"download"in HTMLAnchorElement.prototype&&!D?function(f,I,T){var b=C.URL||C.webkitURL,R=document.createElement("a");R.download=I=I||f.name||"download",R.rel="noopener","string"==typeof f?(R.href=f,R.origin===location.origin?y(R):s(R.href)?u(f,I,T):y(R,R.target="_blank")):(R.href=b.createObjectURL(f),setTimeout(function(){b.revokeObjectURL(R.href)},4e4),setTimeout(function(){y(R)},0))}:"msSaveOrOpenBlob"in navigator?function(f,I,T){if(I=I||f.name||"download","string"!=typeof f)navigator.msSaveOrOpenBlob(function m(f,I){return void 0===I?I={autoBom:!1}:"object"!=typeof I&&(console.warn("Deprecated: Expected third argument to be a object"),I={autoBom:!I}),I.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(f.type)?new Blob(["\ufeff",f],{type:f.type}):f}(f,T),I);else if(s(f))u(f,I,T);else{var b=document.createElement("a");b.href=f,b.target="_blank",setTimeout(function(){y(b)})}}:function(f,I,T,b){if((b=b||open("","_blank"))&&(b.document.title=b.document.body.innerText="downloading..."),"string"==typeof f)return u(f,I,T);var R="application/octet-stream"===f.type,j=/constructor/i.test(C.HTMLElement)||C.safari,he=/CriOS\/[\d]+/.test(navigator.userAgent);if((he||R&&j||D)&&"undefined"!=typeof FileReader){var V=new FileReader;V.onloadend=function(){var fe=V.result;fe=he?fe:fe.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=fe:location=fe,b=null},V.readAsDataURL(f)}else{var le=C.URL||C.webkitURL,Me=le.createObjectURL(f);b?b.location=Me:location.href=Me,b=null,setTimeout(function(){le.revokeObjectURL(Me)},4e4)}});C.saveAs=w.saveAs=w,Be.exports=w}.apply(_,[]))&&(Be.exports=d)},5109:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{NgxJsonViewerComponent:()=>w,NgxJsonViewerModule:()=>f});var i=l(9808),d=l(5e3);function m(I,T){1&I&&d.\u0275\u0275element(0,"div",9)}function u(I,T){if(1&I&&(d.\u0275\u0275elementStart(0,"span",10),d.\u0275\u0275text(1),d.\u0275\u0275elementEnd()),2&I){const b=d.\u0275\u0275nextContext().$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275textInterpolate(b.description)}}function s(I,T){if(1&I&&(d.\u0275\u0275elementStart(0,"section",11),d.\u0275\u0275element(1,"ngx-json-viewer",12),d.\u0275\u0275elementEnd()),2&I){const b=d.\u0275\u0275nextContext().$implicit,R=d.\u0275\u0275nextContext();d.\u0275\u0275advance(1),d.\u0275\u0275property("json",b.value)("expanded",R.expanded)("depth",R.depth)("_currentDepth",R._currentDepth)}}const y=function(I){return["segment",I]},C=function(I,T){return{"segment-main":!0,expandable:I,expanded:T}};function D(I,T){if(1&I){const b=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"section",2),d.\u0275\u0275elementStart(1,"section",3),d.\u0275\u0275listener("click",function(){const he=d.\u0275\u0275restoreView(b).$implicit;return d.\u0275\u0275nextContext().toggle(he)}),d.\u0275\u0275template(2,m,1,0,"div",4),d.\u0275\u0275elementStart(3,"span",5),d.\u0275\u0275text(4),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(5,"span",6),d.\u0275\u0275text(6,": "),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(7,u,2,1,"span",7),d.\u0275\u0275elementEnd(),d.\u0275\u0275template(8,s,2,4,"section",8),d.\u0275\u0275elementEnd()}if(2&I){const b=T.$implicit,R=d.\u0275\u0275nextContext();d.\u0275\u0275property("ngClass",d.\u0275\u0275pureFunction1(6,y,"segment-type-"+b.type)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngClass",d.\u0275\u0275pureFunction2(8,C,R.isExpandable(b),b.expanded)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",R.isExpandable(b)),d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate(b.key),d.\u0275\u0275advance(3),d.\u0275\u0275property("ngIf",!b.expanded||!R.isExpandable(b)),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngIf",b.expanded&&R.isExpandable(b))}}let w=(()=>{class I{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,R){const j={key:b,value:R,type:void 0,description:""+R,expanded:this.isExpanded()};switch(typeof j.value){case"number":j.type="number";break;case"boolean":j.type="boolean";break;case"function":j.type="function";break;case"string":j.type="string",j.description='"'+j.value+'"';break;case"undefined":j.type="undefined",j.description="undefined";break;case"object":null===j.value?(j.type="null",j.description="null"):Array.isArray(j.value)?(j.type="array",j.description="Array["+j.value.length+"] "+JSON.stringify(j.value)):j.value instanceof Date?j.type="date":(j.type="object",j.description="Object "+JSON.stringify(j.value))}return j}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(b){const R=new WeakMap;return function j(he,V){let le,Me;return"object"!=typeof he||null===he||he instanceof Boolean||he instanceof Date||he instanceof Number||he instanceof RegExp||he instanceof String?he:(le=R.get(he),void 0!==le?{$ref:le}:(R.set(he,V),Array.isArray(he)?(Me=[],he.forEach(function(fe,ye){Me[ye]=j(fe,V+"["+ye+"]")})):(Me={},Object.keys(he).forEach(function(fe){Me[fe]=j(he[fe],V+"["+JSON.stringify(fe)+"]")})),Me))}(b,"$")}}return I.\u0275fac=function(b){return new(b||I)},I.\u0275cmp=d.\u0275\u0275defineComponent({type:I,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth",json:"json"},features:[d.\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,R){1&b&&(d.\u0275\u0275elementStart(0,"section",0),d.\u0275\u0275template(1,D,9,11,"section",1),d.\u0275\u0275elementEnd()),2&b&&(d.\u0275\u0275advance(1),d.\u0275\u0275property("ngForOf",R.segments))},directives:[i.NgForOf,i.NgClass,i.NgIf,I],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}']}),I})(),f=(()=>{class I{}return I.\u0275fac=function(b){return new(b||I)},I.\u0275mod=d.\u0275\u0275defineNgModule({type:I}),I.\u0275inj=d.\u0275\u0275defineInjector({imports:[[i.CommonModule]]}),I})()},9802:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{ArgumentOutOfRangeError:()=>ge,AsyncSubject:()=>V,BehaviorSubject:()=>R.X,ConnectableObservable:()=>y,EMPTY:()=>Ie.E,EmptyError:()=>pe,NEVER:()=>P,NotFoundError:()=>Je,Notification:()=>ve,NotificationKind:()=>st,ObjectUnsubscribedError:()=>vt.N,Observable:()=>i.y,ReplaySubject:()=>he,Scheduler:()=>X.b,SequenceError:()=>Et,Subject:()=>b.x,Subscriber:()=>ae.Lv,Subscription:()=>d.w0,TimeoutError:()=>N,UnsubscriptionError:()=>ue.B,VirtualAction:()=>Pe,VirtualTimeScheduler:()=>q,animationFrame:()=>lt.r,animationFrameScheduler:()=>lt.Z,animationFrames:()=>f,asap:()=>le.e,asapScheduler:()=>le.E,async:()=>Me.P,asyncScheduler:()=>Me.z,audit:()=>hi.U,auditTime:()=>Jn.e,bindCallback:()=>rt,bindNodeCallback:()=>pt,buffer:()=>Nn,bufferCount:()=>Ln,bufferTime:()=>H,bufferToggle:()=>Se,bufferWhen:()=>z,catchError:()=>Ae.K,combineAll:()=>Pn,combineLatest:()=>gt.a,combineLatestAll:()=>Bt,combineLatestWith:()=>jn,concat:()=>Mt.z,concatAll:()=>$n.u,concatMap:()=>In.b,concatMapTo:()=>Rn,concatWith:()=>An,config:()=>Vn.v,connect:()=>ci,connectable:()=>Vt,count:()=>Wn,debounce:()=>zn,debounceTime:()=>bi.b,defaultIfEmpty:()=>Ti,defer:()=>jt.P,delay:()=>fi.g,delayWhen:()=>Hn.j,dematerialize:()=>Dr,distinct:()=>Xi,distinctUntilChanged:()=>lr.x,distinctUntilKeyChanged:()=>Kn,elementAt:()=>Nr,empty:()=>Ie.c,endWith:()=>ji,every:()=>Tr,exhaust:()=>Vi,exhaustAll:()=>Si,exhaustMap:()=>cr,expand:()=>Mr,filter:()=>Fe.h,finalize:()=>wr.x,find:()=>$i,findIndex:()=>Hi,first:()=>Sr,firstValueFrom:()=>xe,flatMap:()=>tr,forkJoin:()=>Tn.D,from:()=>rn.D,fromEvent:()=>zt.R,fromEventPattern:()=>wt,generate:()=>Jt,groupBy:()=>Pi,identity:()=>Ne.y,ignoreElements:()=>pi.l,iif:()=>on,interval:()=>Qe,isEmpty:()=>Ai,isObservable:()=>qe.b,last:()=>Ui,lastValueFrom:()=>we,map:()=>ui.U,mapTo:()=>gi.h,materialize:()=>qi,max:()=>er,merge:()=>W.T,mergeAll:()=>Wi.J,mergeMap:()=>tt.z,mergeMapTo:()=>oi,mergeScan:()=>dr,mergeWith:()=>zi,min:()=>Ki,multicast:()=>Oi,never:()=>L,noop:()=>Tt.Z,observable:()=>C.L,observeOn:()=>Ce.Q,of:()=>ne.of,onErrorResumeNext:()=>ot,pairs:()=>kt,pairwise:()=>Ir,partition:()=>$e,pipe:()=>ut.z,pluck:()=>Gi,publish:()=>Mi,publishBehavior:()=>Pr,publishLast:()=>wi,publishReplay:()=>Lr,queue:()=>et,queueScheduler:()=>ke,race:()=>de,raceWith:()=>On,range:()=>ft,reduce:()=>St,refCount:()=>s,repeat:()=>F,repeatWhen:()=>Z,retry:()=>x,retryWhen:()=>ie,sample:()=>ze,sampleTime:()=>dt,scan:()=>Ct,scheduled:()=>Mn.x,sequenceEqual:()=>Ut,share:()=>yn.B,shareReplay:()=>hn,single:()=>_n,skip:()=>Bn.T,skipLast:()=>k,skipUntil:()=>A,skipWhile:()=>S,startWith:()=>J.O,subscribeOn:()=>be.R,switchAll:()=>Wt,switchMap:()=>Xe.w,switchMapTo:()=>Fn,switchScan:()=>Xn,take:()=>Bi.q,takeLast:()=>mi,takeUntil:()=>xi.R,takeWhile:()=>hr,tap:()=>K.b,throttle:()=>c,throttleTime:()=>E,throwError:()=>Ke._,throwIfEmpty:()=>Gn,timeInterval:()=>U,timeout:()=>oe,timeoutWith:()=>Le,timer:()=>Ge.H,timestamp:()=>He,toArray:()=>qt,using:()=>Lt,window:()=>nt,windowCount:()=>mt,windowTime:()=>Ot,windowToggle:()=>Gt,windowWhen:()=>cn,withLatestFrom:()=>pn,zip:()=>an,zipAll:()=>Zt,zipWith:()=>un});var i=l(9751),d=l(6921),m=l(4482),u=l(5403);function s(){return(0,m.e)((ee,$)=>{let Q=null;ee._refCount++;const te=new u.Q($,void 0,void 0,void 0,()=>{if(!ee||ee._refCount<=0||0<--ee._refCount)return void(Q=null);const Re=ee._connection,je=Q;Q=null,Re&&(!je||Re===je)&&Re.unsubscribe(),$.unsubscribe()});ee.subscribe(te),te.closed||(Q=ee.connect())})}class y extends i.y{constructor($,Q){super(),this.source=$,this.subjectFactory=Q,this._subject=null,this._refCount=0,this._connection=null,(0,m.A)($)&&(this.lift=$.lift)}_subscribe($){return this.getSubject().subscribe($)}getSubject(){const $=this._subject;return(!$||$.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:$}=this;this._subject=this._connection=null,null==$||$.unsubscribe()}connect(){let $=this._connection;if(!$){$=this._connection=new d.w0;const Q=this.getSubject();$.add(this.source.subscribe(new u.Q(Q,void 0,()=>{this._teardown(),Q.complete()},te=>{this._teardown(),Q.error(te)},()=>this._teardown()))),$.closed&&(this._connection=null,$=d.w0.EMPTY)}return $}refCount(){return s()(this)}}var C=l(8822);const D={now:()=>(D.delegate||performance).now(),delegate:void 0};var w=l(3399);function f(ee){return ee?I(ee):T}function I(ee){const{schedule:$}=w.l;return new i.y(Q=>{const te=new d.w0,Re=ee||D,je=Re.now(),it=bt=>{const _t=Re.now();Q.next({timestamp:ee?_t:bt,elapsed:_t-je}),Q.closed||te.add($(it))};return te.add($(it)),te})}const T=I();var b=l(6758),R=l(1135),j=l(6063);class he extends b.x{constructor($=1/0,Q=1/0,te=j.l){super(),this._bufferSize=$,this._windowTime=Q,this._timestampProvider=te,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=Q===1/0,this._bufferSize=Math.max(1,$),this._windowTime=Math.max(1,Q)}next($){const{isStopped:Q,_buffer:te,_infiniteTimeWindow:Re,_timestampProvider:je,_windowTime:it}=this;Q||(te.push($),!Re&&te.push(je.now()+it)),this._trimBuffer(),super.next($)}_subscribe($){this._throwIfClosed(),this._trimBuffer();const Q=this._innerSubscribe($),{_infiniteTimeWindow:te,_buffer:Re}=this,je=Re.slice();for(let it=0;it<je.length&&!$.closed;it+=te?1:2)$.next(je[it]);return this._checkFinalizedStatuses($),Q}_trimBuffer(){const{_bufferSize:$,_timestampProvider:Q,_buffer:te,_infiniteTimeWindow:Re}=this,je=(Re?1:2)*$;if($<1/0&&je<te.length&&te.splice(0,te.length-je),!Re){const it=Q.now();let bt=0;for(let _t=1;_t<te.length&&te[_t]<=it;_t+=2)bt=_t;bt&&te.splice(0,bt+1)}}}class V extends b.x{constructor(){super(...arguments),this._value=null,this._hasValue=!1,this._isComplete=!1}_checkFinalizedStatuses($){const{hasError:Q,_hasValue:te,_value:Re,thrownError:je,isStopped:it,_isComplete:bt}=this;Q?$.error(je):(it||bt)&&(te&&$.next(Re),$.complete())}next($){this.isStopped||(this._value=$,this._hasValue=!0)}complete(){const{_hasValue:$,_value:Q,_isComplete:te}=this;te||(this._isComplete=!0,$&&super.next(Q),super.complete())}}var le=l(3101),Me=l(4986),fe=l(4408),se=l(8950);const ke=new class De extends se.v{}(class ye extends fe.o{constructor($,Q){super($,Q),this.scheduler=$,this.work=Q}schedule($,Q=0){return Q>0?super.schedule($,Q):(this.delay=Q,this.state=$,this.scheduler.flush(this),this)}execute($,Q){return Q>0||this.closed?super.execute($,Q):this._execute($,Q)}requestAsyncId($,Q,te=0){return null!=te&&te>0||null==te&&this.delay>0?super.requestAsyncId($,Q,te):$.flush(this)}}),et=ke;var lt=l(29);let q=(()=>{class ee extends se.v{constructor(Q=Pe,te=1/0){super(Q,()=>this.frame),this.maxFrames=te,this.frame=0,this.index=-1}flush(){const{actions:Q,maxFrames:te}=this;let Re,je;for(;(je=Q[0])&&je.delay<=te&&(Q.shift(),this.frame=je.delay,!(Re=je.execute(je.state,je.delay))););if(Re){for(;je=Q.shift();)je.unsubscribe();throw Re}}}return ee.frameTimeFactor=10,ee})();class Pe extends fe.o{constructor($,Q,te=($.index+=1)){super($,Q),this.scheduler=$,this.work=Q,this.index=te,this.active=!0,this.index=$.index=te}schedule($,Q=0){if(Number.isFinite(Q)){if(!this.id)return super.schedule($,Q);this.active=!1;const te=new Pe(this.scheduler,this.work);return this.add(te),te.schedule($,Q)}return d.w0.EMPTY}requestAsyncId($,Q,te=0){this.delay=$.frame+te;const{actions:Re}=$;return Re.push(this),Re.sort(Pe.sortActions),!0}recycleAsyncId($,Q,te=0){}_execute($,Q){if(!0===this.active)return super._execute($,Q)}static sortActions($,Q){return $.delay===Q.delay?$.index===Q.index?0:$.index>Q.index?1:-1:$.delay>Q.delay?1:-1}}var X=l(6646),ae=l(930),Ie=l(515),ne=l(9646),Ke=l(2843),me=l(576),st=(()=>{return(ee=st||(st={})).NEXT="N",ee.ERROR="E",ee.COMPLETE="C",st;var ee})();class ve{constructor($,Q,te){this.kind=$,this.value=Q,this.error=te,this.hasValue="N"===$}observe($){return Ue(this,$)}do($,Q,te){const{kind:Re,value:je,error:it}=this;return"N"===Re?null==$?void 0:$(je):"E"===Re?null==Q?void 0:Q(it):null==te?void 0:te()}accept($,Q,te){var Re;return(0,me.m)(null===(Re=$)||void 0===Re?void 0:Re.next)?this.observe($):this.do($,Q,te)}toObservable(){const{kind:$,value:Q,error:te}=this,Re="N"===$?(0,ne.of)(Q):"E"===$?(0,Ke._)(()=>te):"C"===$?Ie.E:0;if(!Re)throw new TypeError(`Unexpected notification kind ${$}`);return Re}static createNext($){return new ve("N",$)}static createError($){return new ve("E",void 0,$)}static createComplete(){return ve.completeNotification}}function Ue(ee,$){var Q,te,Re;const{kind:je,value:it,error:bt}=ee;if("string"!=typeof je)throw new TypeError('Invalid notification, missing "kind"');"N"===je?null===(Q=$.next)||void 0===Q||Q.call($,it):"E"===je?null===(te=$.error)||void 0===te||te.call($,bt):null===(Re=$.complete)||void 0===Re||Re.call($)}ve.completeNotification=new ve("C");var ut=l(9635),Tt=l(5032),Ne=l(4671),qe=l(5191),Y=l(3888);const pe=(0,Y.d)(ee=>function(){ee(this),this.name="EmptyError",this.message="no elements in sequence"});function we(ee,$){const Q="object"==typeof $;return new Promise((te,Re)=>{let it,je=!1;ee.subscribe({next:bt=>{it=bt,je=!0},error:Re,complete:()=>{je?te(it):Q?te($.defaultValue):Re(new pe)}})})}function xe(ee,$){const Q="object"==typeof $;return new Promise((te,Re)=>{const je=new ae.Hp({next:it=>{te(it),je.unsubscribe()},error:Re,complete:()=>{Q?te($.defaultValue):Re(new pe)}});ee.subscribe(je)})}const ge=(0,Y.d)(ee=>function(){ee(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}),Je=(0,Y.d)(ee=>function(Q){ee(this),this.name="NotFoundError",this.message=Q});var vt=l(7448);const Et=(0,Y.d)(ee=>function(Q){ee(this),this.name="SequenceError",this.message=Q});var At=l(1165),ht=l(8421),Ze=l(9672);const N=(0,Y.d)(ee=>function(Q=null){ee(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=Q});function oe(ee,$){const{first:Q,each:te,with:Re=Oe,scheduler:je=(null!=$?$:Me.z),meta:it=null}=(0,At.q)(ee)?{first:ee}:"number"==typeof ee?{each:ee}:ee;if(null==Q&&null==te)throw new TypeError("No timeout provided.");return(0,m.e)((bt,_t)=>{let $t,Yt,vn=null,sn=0;const Sn=gn=>{Yt=(0,Ze.f)(_t,je,()=>{try{$t.unsubscribe(),(0,ht.Xf)(Re({meta:it,lastValue:vn,seen:sn})).subscribe(_t)}catch(It){_t.error(It)}},gn)};$t=bt.subscribe(new u.Q(_t,gn=>{null==Yt||Yt.unsubscribe(),sn++,_t.next(vn=gn),te>0&&Sn(te)},void 0,void 0,()=>{(null==Yt?void 0:Yt.closed)||null==Yt||Yt.unsubscribe(),vn=null})),Sn(null!=Q?"number"==typeof Q?Q:+Q-je.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 Ye(ee,$,Q,te){if(Q){if(!(0,Te.K)(Q))return function(...Re){return Ye(ee,$,te).apply(this,Re).pipe((0,re.Z)(Q))};te=Q}return te?function(...Re){return Ye(ee,$).apply(this,Re).pipe((0,be.R)(te),(0,Ce.Q)(te))}:function(...Re){const je=new V;let it=!0;return new i.y(bt=>{const _t=je.subscribe(bt);if(it){it=!1;let $t=!1,Yt=!1;$.apply(this,[...Re,(...vn)=>{if(ee){const sn=vn.shift();if(null!=sn)return void je.error(sn)}je.next(1<vn.length?vn:vn[0]),Yt=!0,$t&&je.complete()}]),Yt&&je.complete(),$t=!0}return _t})}}function rt(ee,$,Q){return Ye(!1,ee,$,Q)}function pt(ee,$,Q){return Ye(!0,ee,$,Q)}var gt=l(9841),Mt=l(1350),jt=l(9770);const tn={connector:()=>new b.x,resetOnDisconnect:!0};function Vt(ee,$=tn){let Q=null;const{connector:te,resetOnDisconnect:Re=!0}=$;let je=te();const it=new i.y(bt=>je.subscribe(bt));return it.connect=()=>((!Q||Q.closed)&&(Q=(0,jt.P)(()=>ee).subscribe(je),Re&&Q.add(()=>je=te())),Q),it}var Tn=l(4128),rn=l(188),zt=l(4968);function wt(ee,$,Q){return Q?wt(ee,$).pipe((0,re.Z)(Q)):new i.y(te=>{const Re=(...it)=>te.next(1===it.length?it[0]:it),je=ee(Re);return(0,me.m)($)?()=>$(Re,je):void 0})}var bn=l(6340);function Jt(ee,$,Q,te,Re){let je,it;function*bt(){for(let _t=it;!$||$(_t);_t=Q(_t))yield je(_t)}return 1===arguments.length?({initialState:it,condition:$,iterate:Q,resultSelector:je=Ne.y,scheduler:Re}=ee):(it=ee,!te||(0,Te.K)(te)?(je=Ne.y,Re=te):je=te),(0,jt.P)(Re?()=>(0,bn.Q)(bt(),Re):bt)}function on(ee,$,Q){return(0,jt.P)(()=>ee()?$:Q)}var Ge=l(2805);function Qe(ee=0,$=Me.z){return ee<0&&(ee=0),(0,Ge.H)(ee,ee,$)}var W=l(6451);const P=new i.y(Tt.Z);function L(){return P}const{isArray:g}=Array;function O(ee){return 1===ee.length&&g(ee[0])?ee[0]:ee}function ot(...ee){return function _e(...ee){const $=O(ee);return(0,m.e)((Q,te)=>{const Re=[Q,...$],je=()=>{if(!te.closed)if(Re.length>0){let it;try{it=(0,ht.Xf)(Re.shift())}catch(_t){return void je()}const bt=new u.Q(te,void 0,Tt.Z,Tt.Z);te.add(it.subscribe(bt)),bt.add(je)}else te.complete()};je()})}(O(ee))(Ie.E)}function kt(ee,$){return(0,rn.D)(Object.entries(ee),$)}function Ht(ee,$){return(Q,te)=>!ee.call($,Q,te)}var Fe=l(9300);function $e(ee,$,Q){return[(0,Fe.h)($,Q)((0,ht.Xf)(ee)),(0,Fe.h)(Ht($,Q))((0,ht.Xf)(ee))]}function de(...ee){return 1===(ee=O(ee)).length?(0,ht.Xf)(ee[0]):new i.y(Ve(ee))}function Ve(ee){return $=>{let Q=[];for(let te=0;Q&&!$.closed&&te<ee.length;te++)Q.push((0,ht.Xf)(ee[te]).subscribe(new u.Q($,Re=>{if(Q){for(let je=0;je<Q.length;je++)je!==te&&Q[je].unsubscribe();Q=null}$.next(Re)})))}}function ft(ee,$,Q){if(null==$&&($=ee,ee=0),$<=0)return Ie.E;const te=$+ee;return new i.y(Q?Re=>{let je=ee;return Q.schedule(function(){je<te?(Re.next(je++),this.schedule()):Re.complete()})}:Re=>{let je=ee;for(;je<te&&!Re.closed;)Re.next(je++);Re.complete()})}function Lt(ee,$){return new i.y(Q=>{const te=ee(),Re=$(te);return(Re?(0,ht.Xf)(Re):Ie.E).subscribe(Q),()=>{te&&te.unsubscribe()}})}var Ft=l(3269);function an(...ee){const $=(0,Ft.jO)(ee),Q=O(ee);return Q.length?new i.y(te=>{let Re=Q.map(()=>[]),je=Q.map(()=>!1);te.add(()=>{Re=je=null});for(let it=0;!te.closed&&it<Q.length;it++)(0,ht.Xf)(Q[it]).subscribe(new u.Q(te,bt=>{if(Re[it].push(bt),Re.every(_t=>_t.length)){const _t=Re.map($t=>$t.shift());te.next($?$(..._t):_t),Re.some(($t,Yt)=>!$t.length&&je[Yt])&&te.complete()}},()=>{je[it]=!0,!Re[it].length&&te.complete()}));return()=>{Re=je=null}}):Ie.E}var Mn=l(3762),Vn=l(2416),hi=l(5615),Jn=l(453);function Nn(ee){return(0,m.e)(($,Q)=>{let te=[];return $.subscribe(new u.Q(Q,Re=>te.push(Re),()=>{Q.next(te),Q.complete()})),ee.subscribe(new u.Q(Q,()=>{const Re=te;te=[],Q.next(Re)},Tt.Z)),()=>{te=null}})}var Un=l(8737);function Ln(ee,$=null){return $=null!=$?$:ee,(0,m.e)((Q,te)=>{let Re=[],je=0;Q.subscribe(new u.Q(te,it=>{let bt=null;je++%$==0&&Re.push([]);for(const _t of Re)_t.push(it),ee<=_t.length&&(bt=null!=bt?bt:[],bt.push(_t));if(bt)for(const _t of bt)(0,Un.P)(Re,_t),te.next(_t)},()=>{for(const it of Re)te.next(it);te.complete()},void 0,()=>{Re=null}))})}function H(ee,...$){var Q,te;const Re=null!==(Q=(0,Ft.yG)($))&&void 0!==Q?Q:Me.z,je=null!==(te=$[0])&&void 0!==te?te:null,it=$[1]||1/0;return(0,m.e)((bt,_t)=>{let $t=[],Yt=!1;const vn=gn=>{const{buffer:It,subs:xt}=gn;xt.unsubscribe(),(0,Un.P)($t,gn),_t.next(It),Yt&&sn()},sn=()=>{if($t){const gn=new d.w0;_t.add(gn);const xt={buffer:[],subs:gn};$t.push(xt),(0,Ze.f)(gn,Re,()=>vn(xt),ee)}};null!==je&&je>=0?(0,Ze.f)(_t,Re,sn,je,!0):Yt=!0,sn();const Sn=new u.Q(_t,gn=>{const It=$t.slice();for(const xt of It){const{buffer:Xt}=xt;Xt.push(gn),it<=Xt.length&&vn(xt)}},()=>{for(;null==$t?void 0:$t.length;)_t.next($t.shift().buffer);null==Sn||Sn.unsubscribe(),_t.complete(),_t.unsubscribe()},void 0,()=>$t=null);bt.subscribe(Sn)})}function Se(ee,$){return(0,m.e)((Q,te)=>{const Re=[];(0,ht.Xf)(ee).subscribe(new u.Q(te,je=>{const it=[];Re.push(it);const bt=new d.w0;bt.add((0,ht.Xf)($(je)).subscribe(new u.Q(te,()=>{(0,Un.P)(Re,it),te.next(it),bt.unsubscribe()},Tt.Z)))},Tt.Z)),Q.subscribe(new u.Q(te,je=>{for(const it of Re)it.push(je)},()=>{for(;Re.length>0;)te.next(Re.shift());te.complete()}))})}function z(ee){return(0,m.e)(($,Q)=>{let te=null,Re=null;const je=()=>{null==Re||Re.unsubscribe();const it=te;te=[],it&&Q.next(it),(0,ht.Xf)(ee()).subscribe(Re=new u.Q(Q,je,Tt.Z))};je(),$.subscribe(new u.Q(Q,it=>null==te?void 0:te.push(it),()=>{te&&Q.next(te),Q.complete()},void 0,()=>te=Re=null))})}var Ae=l(262),tt=l(6099);function ct(ee,$,Q,te,Re){return(je,it)=>{let bt=Q,_t=$,$t=0;je.subscribe(new u.Q(it,Yt=>{const vn=$t++;_t=bt?ee(_t,Yt,vn):(bt=!0,Yt),te&&it.next(_t)},Re&&(()=>{bt&&it.next(_t),it.complete()})))}}function St(ee,$){return(0,m.e)(ct(ee,$,arguments.length>=2,!1,!0))}const Nt=(ee,$)=>(ee.push($),ee);function qt(){return(0,m.e)((ee,$)=>{St(Nt,[])(ee).subscribe($)})}function Cn(ee,$){return(0,ut.z)(qt(),(0,tt.z)(Q=>ee(Q)),$?(0,re.Z)($):Ne.y)}function Bt(ee){return Cn(gt.a,ee)}const Pn=Bt;function ln(...ee){const $=(0,Ft.jO)(ee);return $?(0,ut.z)(ln(...ee),(0,re.Z)($)):(0,m.e)((Q,te)=>{(0,gt.l)([Q,...O(ee)])(te)})}function jn(...ee){return ln(...ee)}var $n=l(7886),In=l(4351);function Rn(ee,$){return(0,me.m)($)?(0,In.b)(()=>ee,$):(0,In.b)(()=>ee)}function An(...ee){return function li(...ee){const $=(0,Ft.yG)(ee);return(0,m.e)((Q,te)=>{(0,$n.u)()((0,rn.D)([Q,...ee],$)).subscribe(te)})}(...ee)}const ti={connector:()=>new b.x};function ci(ee,$=ti){const{connector:Q}=$;return(0,m.e)((te,Re)=>{const je=Q();(0,rn.D)(ee(function mn(ee){return new i.y($=>ee.subscribe($))}(je))).subscribe(Re),Re.add(te.subscribe(je))})}function Wn(ee){return St(($,Q,te)=>!ee||ee(Q,te)?$+1:$,0)}function zn(ee){return(0,m.e)(($,Q)=>{let te=!1,Re=null,je=null;const it=()=>{if(null==je||je.unsubscribe(),je=null,te){te=!1;const bt=Re;Re=null,Q.next(bt)}};$.subscribe(new u.Q(Q,bt=>{null==je||je.unsubscribe(),te=!0,Re=bt,je=new u.Q(Q,it,Tt.Z),(0,ht.Xf)(ee(bt)).subscribe(je)},()=>{it(),Q.complete()},void 0,()=>{Re=je=null}))})}var bi=l(8372);function Ti(ee){return(0,m.e)(($,Q)=>{let te=!1;$.subscribe(new u.Q(Q,Re=>{te=!0,Q.next(Re)},()=>{te||Q.next(ee),Q.complete()}))})}var fi=l(4326),Hn=l(1260);function Dr(){return(0,m.e)((ee,$)=>{ee.subscribe(new u.Q($,Q=>Ue(Q,$)))})}function Xi(ee,$){return(0,m.e)((Q,te)=>{const Re=new Set;Q.subscribe(new u.Q(te,je=>{const it=ee?ee(je):je;Re.has(it)||(Re.add(it),te.next(je))})),null==$||$.subscribe(new u.Q(te,()=>Re.clear(),Tt.Z))})}var lr=l(1884);function Kn(ee,$){return(0,lr.x)((Q,te)=>$?$(Q[ee],te[ee]):Q[ee]===te[ee])}function Gn(ee=Ci){return(0,m.e)(($,Q)=>{let te=!1;$.subscribe(new u.Q(Q,Re=>{te=!0,Q.next(Re)},()=>te?Q.complete():Q.error(ee())))})}function Ci(){return new pe}var Bi=l(5698);function Nr(ee,$){if(ee<0)throw new ge;const Q=arguments.length>=2;return te=>te.pipe((0,Fe.h)((Re,je)=>je===ee),(0,Bi.q)(1),Q?Ti($):Gn(()=>new ge))}function ji(...ee){return $=>(0,Mt.z)($,(0,ne.of)(...ee))}function Tr(ee,$){return(0,m.e)((Q,te)=>{let Re=0;Q.subscribe(new u.Q(te,je=>{ee.call($,je,Re++,Q)||(te.next(!1),te.complete())},()=>{te.next(!0),te.complete()}))})}function Si(){return(0,m.e)((ee,$)=>{let Q=!1,te=null;ee.subscribe(new u.Q($,Re=>{te||(te=(0,ht.Xf)(Re).subscribe(new u.Q($,void 0,()=>{te=null,Q&&$.complete()})))},()=>{Q=!0,!te&&$.complete()}))})}const Vi=Si;var ui=l(4004);function cr(ee,$){return $?Q=>Q.pipe(cr((te,Re)=>(0,ht.Xf)(ee(te,Re)).pipe((0,ui.U)((je,it)=>$(te,je,Re,it))))):(0,m.e)((Q,te)=>{let Re=0,je=null,it=!1;Q.subscribe(new u.Q(te,bt=>{je||(je=new u.Q(te,void 0,()=>{je=null,it&&te.complete()}),(0,ht.Xf)(ee(bt,Re++)).subscribe(je))},()=>{it=!0,!je&&te.complete()}))})}var Ei=l(2733);function Mr(ee,$=1/0,Q){return $=($||0)<1?1/0:$,(0,m.e)((te,Re)=>(0,Ei.p)(te,Re,ee,$,void 0,!0,Q))}var wr=l(8746);function $i(ee,$){return(0,m.e)(Ii(ee,$,"value"))}function Ii(ee,$,Q){const te="index"===Q;return(Re,je)=>{let it=0;Re.subscribe(new u.Q(je,bt=>{const _t=it++;ee.call($,bt,_t,Re)&&(je.next(te?_t:bt),je.complete())},()=>{je.next(te?-1:void 0),je.complete()}))}}function Hi(ee,$){return(0,m.e)(Ii(ee,$,"index"))}function Sr(ee,$){const Q=arguments.length>=2;return te=>te.pipe(ee?(0,Fe.h)((Re,je)=>ee(Re,je,te)):Ne.y,(0,Bi.q)(1),Q?Ti($):Gn(()=>new pe))}function Pi(ee,$,Q,te){return(0,m.e)((Re,je)=>{let it;$&&"function"!=typeof $?({duration:Q,element:it,connector:te}=$):it=$;const bt=new Map,_t=sn=>{bt.forEach(sn),sn(je)},$t=sn=>_t(Sn=>Sn.error(sn)),Yt=new ur(je,sn=>{try{const Sn=ee(sn);let gn=bt.get(Sn);if(!gn){bt.set(Sn,gn=te?te():new b.x);const It=function vn(sn,Sn){const gn=new i.y(It=>{Yt.activeGroups++;const xt=Sn.subscribe(It);return()=>{xt.unsubscribe(),0==--Yt.activeGroups&&Yt.teardownAttempted&&Yt.unsubscribe()}});return gn.key=sn,gn}(Sn,gn);if(je.next(It),Q){const xt=new u.Q(gn,()=>{gn.complete(),null==xt||xt.unsubscribe()},void 0,void 0,()=>bt.delete(Sn));Yt.add((0,ht.Xf)(Q(It)).subscribe(xt))}}gn.next(it?it(sn):sn)}catch(Sn){$t(Sn)}},()=>_t(sn=>sn.complete()),$t,()=>bt.clear());Re.subscribe(Yt)})}class ur extends u.Q{constructor(){super(...arguments),this.activeGroups=0,this.teardownAttempted=!1}unsubscribe(){this.teardownAttempted=!0,0===this.activeGroups&&super.unsubscribe()}}var pi=l(8502);function Ai(){return(0,m.e)((ee,$)=>{ee.subscribe(new u.Q($,()=>{$.next(!1),$.complete()},()=>{$.next(!0),$.complete()}))})}function mi(ee){return ee<=0?()=>Ie.E:(0,m.e)(($,Q)=>{let te=[];$.subscribe(new u.Q(Q,Re=>{te.push(Re),ee<te.length&&te.shift()},()=>{for(const Re of te)Q.next(Re);Q.complete()},void 0,()=>{te=null}))})}function Ui(ee,$){const Q=arguments.length>=2;return te=>te.pipe(ee?(0,Fe.h)((Re,je)=>ee(Re,je,te)):Ne.y,mi(1),Q?Ti($):Gn(()=>new pe))}var gi=l(9718);function qi(){return(0,m.e)((ee,$)=>{ee.subscribe(new u.Q($,Q=>{$.next(ve.createNext(Q))},()=>{$.next(ve.createComplete()),$.complete()},Q=>{$.next(ve.createError(Q)),$.complete()}))})}function er(ee){return St((0,me.m)(ee)?($,Q)=>ee($,Q)>0?$:Q:($,Q)=>$>Q?$:Q)}var Wi=l(8189);const tr=tt.z;function oi(ee,$,Q=1/0){return(0,me.m)($)?(0,tt.z)(()=>ee,$,Q):("number"==typeof $&&(Q=$),(0,tt.z)(()=>ee,Q))}function dr(ee,$,Q=1/0){return(0,m.e)((te,Re)=>{let je=$;return(0,Ei.p)(te,Re,(it,bt)=>ee(je,it,bt),Q,it=>{je=it},!1,void 0,()=>je=null)})}function zi(...ee){return function Qn(...ee){const $=(0,Ft.yG)(ee),Q=(0,Ft._6)(ee,1/0);return ee=O(ee),(0,m.e)((te,Re)=>{(0,Wi.J)(Q)((0,rn.D)([te,...ee],$)).subscribe(Re)})}(...ee)}function Ki(ee){return St((0,me.m)(ee)?($,Q)=>ee($,Q)<0?$:Q:($,Q)=>$<Q?$:Q)}function Oi(ee,$){const Q=(0,me.m)(ee)?ee:()=>ee;return(0,me.m)($)?ci($,{connector:Q}):te=>new y(te,Q)}function Ir(){return(0,m.e)((ee,$)=>{let Q,te=!1;ee.subscribe(new u.Q($,Re=>{const je=Q;Q=Re,te&&$.next([je,Re]),te=!0}))})}function Gi(...ee){const $=ee.length;if(0===$)throw new Error("list of properties cannot be empty.");return(0,ui.U)(Q=>{let te=Q;for(let Re=0;Re<$;Re++){const je=null==te?void 0:te[ee[Re]];if(void 0===je)return;te=je}return te})}function Mi(ee){return ee?$=>ci(ee)($):$=>Oi(new b.x)($)}function Pr(ee){return $=>{const Q=new R.X(ee);return new y($,()=>Q)}}function wi(){return ee=>{const $=new V;return new y(ee,()=>$)}}function Lr(ee,$,Q,te){Q&&!(0,me.m)(Q)&&(te=Q);const Re=(0,me.m)(Q)?Q:void 0;return je=>Oi(new he(ee,$,te),Re)(je)}function On(...ee){return ee.length?(0,m.e)(($,Q)=>{Ve([$,...ee])(Q)}):Ne.y}function F(ee){let Q,$=1/0;return null!=ee&&("object"==typeof ee?({count:$=1/0,delay:Q}=ee):$=ee),$<=0?()=>Ie.E:(0,m.e)((te,Re)=>{let it,je=0;const bt=()=>{if(null==it||it.unsubscribe(),it=null,null!=Q){const $t="number"==typeof Q?(0,Ge.H)(Q):(0,ht.Xf)(Q(je)),Yt=new u.Q(Re,()=>{Yt.unsubscribe(),_t()});$t.subscribe(Yt)}else _t()},_t=()=>{let $t=!1;it=te.subscribe(new u.Q(Re,void 0,()=>{++je<$?it?bt():$t=!0:Re.complete()})),$t&&bt()};_t()})}function Z(ee){return(0,m.e)(($,Q)=>{let te,je,Re=!1,it=!1,bt=!1;const _t=()=>bt&&it&&(Q.complete(),!0),Yt=()=>{bt=!1,te=$.subscribe(new u.Q(Q,void 0,()=>{bt=!0,!_t()&&(je||(je=new b.x,ee(je).subscribe(new u.Q(Q,()=>{te?Yt():Re=!0},()=>{it=!0,_t()}))),je).next()})),Re&&(te.unsubscribe(),te=null,Re=!1,Yt())};Yt()})}function x(ee=1/0){let $;$=ee&&"object"==typeof ee?ee:{count:ee};const{count:Q=1/0,delay:te,resetOnSuccess:Re=!1}=$;return Q<=0?Ne.y:(0,m.e)((je,it)=>{let _t,bt=0;const $t=()=>{let Yt=!1;_t=je.subscribe(new u.Q(it,vn=>{Re&&(bt=0),it.next(vn)},void 0,vn=>{if(bt++<Q){const sn=()=>{_t?(_t.unsubscribe(),_t=null,$t()):Yt=!0};if(null!=te){const Sn="number"==typeof te?(0,Ge.H)(te):(0,ht.Xf)(te(vn,bt)),gn=new u.Q(it,()=>{gn.unsubscribe(),sn()},()=>{it.complete()});Sn.subscribe(gn)}else sn()}else it.error(vn)})),Yt&&(_t.unsubscribe(),_t=null,$t())};$t()})}function ie(ee){return(0,m.e)(($,Q)=>{let te,je,Re=!1;const it=()=>{te=$.subscribe(new u.Q(Q,void 0,void 0,bt=>{je||(je=new b.x,ee(je).subscribe(new u.Q(Q,()=>te?it():Re=!0))),je&&je.next(bt)})),Re&&(te.unsubscribe(),te=null,Re=!1,it())};it()})}function ze(ee){return(0,m.e)(($,Q)=>{let te=!1,Re=null;$.subscribe(new u.Q(Q,it=>{te=!0,Re=it})),ee.subscribe(new u.Q(Q,()=>{if(te){te=!1;const it=Re;Re=null,Q.next(it)}},Tt.Z))})}function dt(ee,$=Me.z){return ze(Qe(ee,$))}function Ct(ee,$){return(0,m.e)(ct(ee,$,arguments.length>=2,!0))}function Ut(ee,$=((Q,te)=>Q===te)){return(0,m.e)((Q,te)=>{const Re={buffer:[],complete:!1},je={buffer:[],complete:!1},it=_t=>{te.next(_t),te.complete()},bt=(_t,$t)=>{const Yt=new u.Q(te,vn=>{const{buffer:sn,complete:Sn}=$t;0===sn.length?Sn?it(!1):_t.buffer.push(vn):!$(vn,sn.shift())&&it(!1)},()=>{_t.complete=!0;const{complete:vn,buffer:sn}=$t;vn&&it(0===sn.length),null==Yt||Yt.unsubscribe()});return Yt};Q.subscribe(bt(Re,je)),ee.subscribe(bt(je,Re))})}var yn=l(3099);function hn(ee,$,Q){var te,Re;let je,it=!1;return ee&&"object"==typeof ee?(je=null!==(te=ee.bufferSize)&&void 0!==te?te:1/0,$=null!==(Re=ee.windowTime)&&void 0!==Re?Re:1/0,it=!!ee.refCount,Q=ee.scheduler):je=null!=ee?ee:1/0,(0,yn.B)({connector:()=>new he(je,$,Q),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:it})}function _n(ee){return(0,m.e)(($,Q)=>{let Re,te=!1,je=!1,it=0;$.subscribe(new u.Q(Q,bt=>{je=!0,(!ee||ee(bt,it++,$))&&(te&&Q.error(new Et("Too many matching values")),te=!0,Re=bt)},()=>{te?(Q.next(Re),Q.complete()):Q.error(je?new Je("No matching values"):new pe)}))})}var Bn=l(5684);function k(ee){return ee<=0?Ne.y:(0,m.e)(($,Q)=>{let te=new Array(ee),Re=0;return $.subscribe(new u.Q(Q,je=>{const it=Re++;if(it<ee)te[it]=je;else{const bt=it%ee,_t=te[bt];te[bt]=je,Q.next(_t)}})),()=>{te=null}})}function A(ee){return(0,m.e)(($,Q)=>{let te=!1;const Re=new u.Q(Q,()=>{null==Re||Re.unsubscribe(),te=!0},Tt.Z);(0,ht.Xf)(ee).subscribe(Re),$.subscribe(new u.Q(Q,je=>te&&Q.next(je)))})}function S(ee){return(0,m.e)(($,Q)=>{let te=!1,Re=0;$.subscribe(new u.Q(Q,je=>(te||(te=!ee(je,Re++)))&&Q.next(je)))})}var J=l(8675),Xe=l(3900);function Wt(){return(0,Xe.w)(Ne.y)}function Fn(ee,$){return(0,me.m)($)?(0,Xe.w)(()=>ee,$):(0,Xe.w)(()=>ee)}function Xn(ee,$){return(0,m.e)((Q,te)=>{let Re=$;return(0,Xe.w)((je,it)=>ee(Re,je,it),(je,it)=>(Re=it,it))(Q).subscribe(te),()=>{Re=null}})}var xi=l(2722);function hr(ee,$=!1){return(0,m.e)((Q,te)=>{let Re=0;Q.subscribe(new u.Q(te,je=>{const it=ee(je,Re++);(it||$)&&te.next(je),!it&&te.complete()}))})}var K=l(8505);const h={leading:!0,trailing:!1};function c(ee,$=h){return(0,m.e)((Q,te)=>{const{leading:Re,trailing:je}=$;let it=!1,bt=null,_t=null,$t=!1;const Yt=()=>{null==_t||_t.unsubscribe(),_t=null,je&&(Sn(),$t&&te.complete())},vn=()=>{_t=null,$t&&te.complete()},sn=gn=>_t=(0,ht.Xf)(ee(gn)).subscribe(new u.Q(te,Yt,vn)),Sn=()=>{if(it){it=!1;const gn=bt;bt=null,te.next(gn),!$t&&sn(gn)}};Q.subscribe(new u.Q(te,gn=>{it=!0,bt=gn,(!_t||_t.closed)&&(Re?Sn():sn(gn))},()=>{$t=!0,(!(je&&it&&_t)||_t.closed)&&te.complete()}))})}function E(ee,$=Me.z,Q=h){const te=(0,Ge.H)(ee,$);return c(()=>te,Q)}function U(ee=Me.z){return $=>(0,jt.P)(()=>$.pipe(Ct(({current:Q},te)=>({value:te,current:ee.now(),last:Q}),{current:ee.now(),value:void 0,last:void 0}),(0,ui.U)(({current:Q,last:te,value:Re})=>new ce(Re,Q-te))))}class ce{constructor($,Q){this.value=$,this.interval=Q}}function Le(ee,$,Q){let te,Re,je;if(Q=null!=Q?Q:Me.P,(0,At.q)(ee)?te=ee:"number"==typeof ee&&(Re=ee),!$)throw new TypeError("No observable provided to switch to");if(je=()=>$,null==te&&null==Re)throw new TypeError("No timeout provided.");return oe({first:te,each:Re,scheduler:Q,with:je})}function He(ee=j.l){return(0,ui.U)($=>({value:$,timestamp:ee.now()}))}function nt(ee){return(0,m.e)(($,Q)=>{let te=new b.x;Q.next(te.asObservable());const Re=je=>{te.error(je),Q.error(je)};return $.subscribe(new u.Q(Q,je=>null==te?void 0:te.next(je),()=>{te.complete(),Q.complete()},Re)),ee.subscribe(new u.Q(Q,()=>{te.complete(),Q.next(te=new b.x)},Tt.Z,Re)),()=>{null==te||te.unsubscribe(),te=null}})}function mt(ee,$=0){const Q=$>0?$:ee;return(0,m.e)((te,Re)=>{let je=[new b.x],it=[],bt=0;Re.next(je[0].asObservable()),te.subscribe(new u.Q(Re,_t=>{for(const Yt of je)Yt.next(_t);const $t=bt-ee+1;if($t>=0&&$t%Q==0&&je.shift().complete(),++bt%Q==0){const Yt=new b.x;je.push(Yt),Re.next(Yt.asObservable())}},()=>{for(;je.length>0;)je.shift().complete();Re.complete()},_t=>{for(;je.length>0;)je.shift().error(_t);Re.error(_t)},()=>{it=null,je=null}))})}function Ot(ee,...$){var Q,te;const Re=null!==(Q=(0,Ft.yG)($))&&void 0!==Q?Q:Me.z,je=null!==(te=$[0])&&void 0!==te?te:null,it=$[1]||1/0;return(0,m.e)((bt,_t)=>{let $t=[],Yt=!1;const vn=It=>{const{window:xt,subs:Xt}=It;xt.complete(),Xt.unsubscribe(),(0,Un.P)($t,It),Yt&&sn()},sn=()=>{if($t){const It=new d.w0;_t.add(It);const xt=new b.x,Xt={window:xt,subs:It,seen:0};$t.push(Xt),_t.next(xt.asObservable()),(0,Ze.f)(It,Re,()=>vn(Xt),ee)}};null!==je&&je>=0?(0,Ze.f)(_t,Re,sn,je,!0):Yt=!0,sn();const Sn=It=>$t.slice().forEach(It),gn=It=>{Sn(({window:xt})=>It(xt)),It(_t),_t.unsubscribe()};return bt.subscribe(new u.Q(_t,It=>{Sn(xt=>{xt.window.next(It),it<=++xt.seen&&vn(xt)})},()=>gn(It=>It.complete()),It=>gn(xt=>xt.error(It)))),()=>{$t=null}})}function Gt(ee,$){return(0,m.e)((Q,te)=>{const Re=[],je=it=>{for(;0<Re.length;)Re.shift().error(it);te.error(it)};(0,ht.Xf)(ee).subscribe(new u.Q(te,it=>{const bt=new b.x;Re.push(bt);const _t=new d.w0;let Yt;try{Yt=(0,ht.Xf)($(it))}catch(vn){return void je(vn)}te.next(bt.asObservable()),_t.add(Yt.subscribe(new u.Q(te,()=>{(0,Un.P)(Re,bt),bt.complete(),_t.unsubscribe()},Tt.Z,je)))},Tt.Z)),Q.subscribe(new u.Q(te,it=>{const bt=Re.slice();for(const _t of bt)_t.next(it)},()=>{for(;0<Re.length;)Re.shift().complete();te.complete()},je,()=>{for(;0<Re.length;)Re.shift().unsubscribe()}))})}function cn(ee){return(0,m.e)(($,Q)=>{let te,Re;const je=bt=>{te.error(bt),Q.error(bt)},it=()=>{let bt;null==Re||Re.unsubscribe(),null==te||te.complete(),te=new b.x,Q.next(te.asObservable());try{bt=(0,ht.Xf)(ee())}catch(_t){return void je(_t)}bt.subscribe(Re=new u.Q(Q,it,it,je))};it(),$.subscribe(new u.Q(Q,bt=>te.next(bt),()=>{te.complete(),Q.complete()},je,()=>{null==Re||Re.unsubscribe(),te=null}))})}function pn(...ee){const $=(0,Ft.jO)(ee);return(0,m.e)((Q,te)=>{const Re=ee.length,je=new Array(Re);let it=ee.map(()=>!1),bt=!1;for(let _t=0;_t<Re;_t++)(0,ht.Xf)(ee[_t]).subscribe(new u.Q(te,$t=>{je[_t]=$t,!bt&&!it[_t]&&(it[_t]=!0,(bt=it.every(Ne.y))&&(it=null))},Tt.Z));Q.subscribe(new u.Q(te,_t=>{if(bt){const $t=[_t,...je];te.next($?$(...$t):$t)}}))})}function Zt(ee){return Cn(an,ee)}function un(...ee){return function Qt(...ee){return(0,m.e)(($,Q)=>{an($,...ee).subscribe(Q)})}(...ee)}},1135:(Be,_,l)=>{"use strict";l.d(_,{X:()=>d});var i=l(6758);class d extends i.x{constructor(u){super(),this._value=u}get value(){return this.getValue()}_subscribe(u){const s=super._subscribe(u);return!s.closed&&u.next(this._value),s}getValue(){const{hasError:u,thrownError:s,_value:y}=this;if(u)throw s;return this._throwIfClosed(),y}next(u){super.next(this._value=u)}}},9751:(Be,_,l)=>{"use strict";l.d(_,{y:()=>D});var i=l(930),d=l(6921),m=l(8822),u=l(9635),s=l(2416),y=l(576),C=l(2806);let D=(()=>{class T{constructor(R){R&&(this._subscribe=R)}lift(R){const j=new T;return j.source=this,j.operator=R,j}subscribe(R,j,he){const V=function I(T){return T&&T instanceof i.Lv||function f(T){return T&&(0,y.m)(T.next)&&(0,y.m)(T.error)&&(0,y.m)(T.complete)}(T)&&(0,d.Nn)(T)}(R)?R:new i.Hp(R,j,he);return(0,C.x)(()=>{const{operator:le,source:Me}=this;V.add(le?le.call(V,Me):Me?this._subscribe(V):this._trySubscribe(V))}),V}_trySubscribe(R){try{return this._subscribe(R)}catch(j){R.error(j)}}forEach(R,j){return new(j=w(j))((he,V)=>{const le=new i.Hp({next:Me=>{try{R(Me)}catch(fe){V(fe),le.unsubscribe()}},error:V,complete:he});this.subscribe(le)})}_subscribe(R){var j;return null===(j=this.source)||void 0===j?void 0:j.subscribe(R)}[m.L](){return this}pipe(...R){return(0,u.U)(R)(this)}toPromise(R){return new(R=w(R))((j,he)=>{let V;this.subscribe(le=>V=le,le=>he(le),()=>j(V))})}}return T.create=b=>new T(b),T})();function w(T){var b;return null!==(b=null!=T?T:s.v.Promise)&&void 0!==b?b:Promise}},6646:(Be,_,l)=>{"use strict";l.d(_,{b:()=>d});var i=l(6063);class d{constructor(u,s=d.now){this.schedulerActionCtor=u,this.now=s}schedule(u,s=0,y){return new this.schedulerActionCtor(this,u).schedule(y,s)}}d.now=i.l.now},6758:(Be,_,l)=>{"use strict";l.d(_,{x:()=>y});var i=l(9751),d=l(6921),m=l(7448),u=l(8737),s=l(2806);let y=(()=>{class D extends i.y{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(f){const I=new C(this,this);return I.operator=f,I}_throwIfClosed(){if(this.closed)throw new m.N}next(f){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){const I=this.observers.slice();for(const T of I)T.next(f)}})}error(f){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=f;const{observers:I}=this;for(;I.length;)I.shift().error(f)}})}complete(){(0,s.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:f}=this;for(;f.length;)f.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var f;return(null===(f=this.observers)||void 0===f?void 0:f.length)>0}_trySubscribe(f){return this._throwIfClosed(),super._trySubscribe(f)}_subscribe(f){return this._throwIfClosed(),this._checkFinalizedStatuses(f),this._innerSubscribe(f)}_innerSubscribe(f){const{hasError:I,isStopped:T,observers:b}=this;return I||T?d.Lc:(b.push(f),new d.w0(()=>(0,u.P)(b,f)))}_checkFinalizedStatuses(f){const{hasError:I,thrownError:T,isStopped:b}=this;I?f.error(T):b&&f.complete()}asObservable(){const f=new i.y;return f.source=this,f}}return D.create=(w,f)=>new C(w,f),D})();class C extends y{constructor(w,f){super(),this.destination=w,this.source=f}next(w){var f,I;null===(I=null===(f=this.destination)||void 0===f?void 0:f.next)||void 0===I||I.call(f,w)}error(w){var f,I;null===(I=null===(f=this.destination)||void 0===f?void 0:f.error)||void 0===I||I.call(f,w)}complete(){var w,f;null===(f=null===(w=this.destination)||void 0===w?void 0:w.complete)||void 0===f||f.call(w)}_subscribe(w){var f,I;return null!==(I=null===(f=this.source)||void 0===f?void 0:f.subscribe(w))&&void 0!==I?I:d.Lc}}},930:(Be,_,l)=>{"use strict";l.d(_,{Hp:()=>b,Lv:()=>T});var i=l(576),d=l(6921),m=l(2416),u=l(7849),s=l(5032);const y=w("C",void 0,void 0);function w(le,Me,fe){return{kind:le,value:Me,error:fe}}var f=l(3410),I=l(2806);class T extends d.w0{constructor(Me){super(),this.isStopped=!1,Me?(this.destination=Me,(0,d.Nn)(Me)&&Me.add(this)):this.destination=V}static create(Me,fe,ye){return new b(Me,fe,ye)}next(Me){this.isStopped?he(function D(le){return w("N",le,void 0)}(Me),this):this._next(Me)}error(Me){this.isStopped?he(function C(le){return w("E",void 0,le)}(Me),this):(this.isStopped=!0,this._error(Me))}complete(){this.isStopped?he(y,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,fe,ye){let se;if(super(),(0,i.m)(Me))se=Me;else if(Me){let De;({next:se,error:fe,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),fe=null==fe?void 0:fe.bind(De),ye=null==ye?void 0:ye.bind(De)}this.destination={next:se?R(se):s.Z,error:R(null!=fe?fe:j),complete:ye?R(ye):s.Z}}}function R(le,Me){return(...fe)=>{try{le(...fe)}catch(ye){m.v.useDeprecatedSynchronousErrorHandling?(0,I.O)(ye):(0,u.h)(ye)}}}function j(le){throw le}function he(le,Me){const{onStoppedNotification:fe}=m.v;fe&&f.z.setTimeout(()=>fe(le,Me))}const V={closed:!0,next:s.Z,error:j,complete:s.Z}},6921:(Be,_,l)=>{"use strict";l.d(_,{w0:()=>u,Lc:()=>s,Nn:()=>y});var i=l(576),d=l(7896),m=l(8737);class u{constructor(w){this.initialTeardown=w,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let w;if(!this.closed){this.closed=!0;const{_parentage:f}=this;if(f)if(this._parentage=null,Array.isArray(f))for(const b of f)b.remove(this);else f.remove(this);const{initialTeardown:I}=this;if((0,i.m)(I))try{I()}catch(b){w=b instanceof d.B?b.errors:[b]}const{_teardowns:T}=this;if(T){this._teardowns=null;for(const b of T)try{C(b)}catch(R){w=null!=w?w:[],R instanceof d.B?w=[...w,...R.errors]:w.push(R)}}if(w)throw new d.B(w)}}add(w){var f;if(w&&w!==this)if(this.closed)C(w);else{if(w instanceof u){if(w.closed||w._hasParent(this))return;w._addParent(this)}(this._teardowns=null!==(f=this._teardowns)&&void 0!==f?f:[]).push(w)}}_hasParent(w){const{_parentage:f}=this;return f===w||Array.isArray(f)&&f.includes(w)}_addParent(w){const{_parentage:f}=this;this._parentage=Array.isArray(f)?(f.push(w),f):f?[f,w]:w}_removeParent(w){const{_parentage:f}=this;f===w?this._parentage=null:Array.isArray(f)&&(0,m.P)(f,w)}remove(w){const{_teardowns:f}=this;f&&(0,m.P)(f,w),w instanceof u&&w._removeParent(this)}}u.EMPTY=(()=>{const D=new u;return D.closed=!0,D})();const s=u.EMPTY;function y(D){return D instanceof u||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:(Be,_,l)=>{"use strict";l.d(_,{v:()=>i});const i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Be,_,l)=>{"use strict";l.d(_,{a:()=>f,l:()=>I});var i=l(9751),d=l(4742),m=l(188),u=l(4671),s=l(3268),y=l(3269),C=l(1810),D=l(5403),w=l(9672);function f(...b){const R=(0,y.yG)(b),j=(0,y.jO)(b),{args:he,keys:V}=(0,d.D)(b);if(0===he.length)return(0,m.D)([],R);const le=new i.y(I(he,R,V?Me=>(0,C.n)(V,Me):u.y));return j?le.pipe((0,s.Z)(j)):le}function I(b,R,j=u.y){return he=>{T(R,()=>{const{length:V}=b,le=new Array(V);let Me=V,fe=V;for(let ye=0;ye<V;ye++)T(R,()=>{const se=(0,m.D)(b[ye],R);let De=!1;se.subscribe(new D.Q(he,ke=>{le[ye]=ke,De||(De=!0,fe--),fe||he.next(j(le.slice()))},()=>{--Me||he.complete()}))},he)},he)}}function T(b,R,j){b?(0,w.f)(j,b,R):R()}},1350:(Be,_,l)=>{"use strict";l.d(_,{z:()=>u});var i=l(7886),d=l(3269),m=l(188);function u(...s){return(0,i.u)()((0,m.D)(s,(0,d.yG)(s)))}},9770:(Be,_,l)=>{"use strict";l.d(_,{P:()=>m});var i=l(9751),d=l(8421);function m(u){return new i.y(s=>{(0,d.Xf)(u()).subscribe(s)})}},515:(Be,_,l)=>{"use strict";l.d(_,{E:()=>d,c:()=>m});var i=l(9751);const d=new i.y(s=>s.complete());function m(s){return s?function u(s){return new i.y(y=>s.schedule(()=>y.complete()))}(s):d}},4128:(Be,_,l)=>{"use strict";l.d(_,{D:()=>D});var i=l(9751),d=l(4742),m=l(8421),u=l(3269),s=l(5403),y=l(3268),C=l(1810);function D(...w){const f=(0,u.jO)(w),{args:I,keys:T}=(0,d.D)(w),b=new i.y(R=>{const{length:j}=I;if(!j)return void R.complete();const he=new Array(j);let V=j,le=j;for(let Me=0;Me<j;Me++){let fe=!1;(0,m.Xf)(I[Me]).subscribe(new s.Q(R,ye=>{fe||(fe=!0,le--),he[Me]=ye},()=>V--,void 0,()=>{(!V||!fe)&&(le||R.next(T?(0,C.n)(T,he):he),R.complete())}))}});return f?b.pipe((0,y.Z)(f)):b}},188:(Be,_,l)=>{"use strict";l.d(_,{D:()=>m});var i=l(3762),d=l(8421);function m(u,s){return s?(0,i.x)(u,s):(0,d.Xf)(u)}},4968:(Be,_,l)=>{"use strict";l.d(_,{R:()=>f});var i=l(8421),d=l(9751),m=l(6099),u=l(1144),s=l(576),y=l(3268);const C=["addListener","removeListener"],D=["addEventListener","removeEventListener"],w=["on","off"];function f(j,he,V,le){if((0,s.m)(V)&&(le=V,V=void 0),le)return f(j,he,V).pipe((0,y.Z)(le));const[Me,fe]=function R(j){return(0,s.m)(j.addEventListener)&&(0,s.m)(j.removeEventListener)}(j)?D.map(ye=>se=>j[ye](he,se,V)):function T(j){return(0,s.m)(j.addListener)&&(0,s.m)(j.removeListener)}(j)?C.map(I(j,he)):function b(j){return(0,s.m)(j.on)&&(0,s.m)(j.off)}(j)?w.map(I(j,he)):[];if(!Me&&(0,u.z)(j))return(0,m.z)(ye=>f(ye,he,V))((0,i.Xf)(j));if(!Me)throw new TypeError("Invalid event target");return new d.y(ye=>{const se=(...De)=>ye.next(1<De.length?De:De[0]);return Me(se),()=>fe(se)})}function I(j,he){return V=>le=>j[V](he,le)}},8421:(Be,_,l)=>{"use strict";l.d(_,{Xf:()=>b});var i=l(655),d=l(1144),m=l(8239),u=l(9751),s=l(3670),y=l(2206),C=l(4532),D=l(6495),w=l(3260),f=l(576),I=l(7849),T=l(8822);function b(ye){if(ye instanceof u.y)return ye;if(null!=ye){if((0,s.c)(ye))return function R(ye){return new u.y(se=>{const De=ye[T.L]();if((0,f.m)(De.subscribe))return De.subscribe(se);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ye);if((0,d.z)(ye))return function j(ye){return new u.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 he(ye){return new u.y(se=>{ye.then(De=>{se.closed||(se.next(De),se.complete())},De=>se.error(De)).then(null,I.h)})}(ye);if((0,y.D)(ye))return le(ye);if((0,D.T)(ye))return function V(ye){return new u.y(se=>{for(const De of ye)if(se.next(De),se.closed)return;se.complete()})}(ye);if((0,w.L)(ye))return function Me(ye){return le((0,w.Q)(ye))}(ye)}throw(0,C.z)(ye)}function le(ye){return new u.y(se=>{(function fe(ye,se){var De,ke,et,lt;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){et={error:q}}finally{try{ke&&!ke.done&&(lt=De.return)&&(yield lt.call(De))}finally{if(et)throw et.error}}se.complete()})})(ye,se).catch(De=>se.error(De))})}},6451:(Be,_,l)=>{"use strict";l.d(_,{T:()=>y});var i=l(8189),d=l(8421),m=l(515),u=l(3269),s=l(188);function y(...C){const D=(0,u.yG)(C),w=(0,u._6)(C,1/0),f=C;return f.length?1===f.length?(0,d.Xf)(f[0]):(0,i.J)(w)((0,s.D)(f,D)):m.E}},9646:(Be,_,l)=>{"use strict";l.d(_,{of:()=>m});var i=l(3269),d=l(188);function m(...u){const s=(0,i.yG)(u);return(0,d.D)(u,s)}},2843:(Be,_,l)=>{"use strict";l.d(_,{_:()=>m});var i=l(9751),d=l(576);function m(u,s){const y=(0,d.m)(u)?u:()=>u,C=D=>D.error(y());return new i.y(s?D=>s.schedule(C,0,D):C)}},2805:(Be,_,l)=>{"use strict";l.d(_,{H:()=>s});var i=l(9751),d=l(4986),m=l(3532),u=l(1165);function s(y=0,C,D=d.P){let w=-1;return null!=C&&((0,m.K)(C)?D=C:w=C),new i.y(f=>{let I=(0,u.q)(y)?+y-D.now():y;I<0&&(I=0);let T=0;return D.schedule(function(){f.closed||(f.next(T++),0<=w?this.schedule(void 0,w):f.complete())},I)})}},5403:(Be,_,l)=>{"use strict";l.d(_,{Q:()=>d});var i=l(930);class d extends i.Lv{constructor(u,s,y,C,D){super(u),this.onFinalize=D,this._next=s?function(w){try{s(w)}catch(f){u.error(f)}}:super._next,this._error=C?function(w){try{C(w)}catch(f){u.error(f)}finally{this.unsubscribe()}}:super._error,this._complete=y?function(){try{y()}catch(w){u.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var u;const{closed:s}=this;super.unsubscribe(),!s&&(null===(u=this.onFinalize)||void 0===u||u.call(this))}}},5615:(Be,_,l)=>{"use strict";l.d(_,{U:()=>u});var i=l(4482),d=l(8421),m=l(5403);function u(s){return(0,i.e)((y,C)=>{let D=!1,w=null,f=null,I=!1;const T=()=>{if(null==f||f.unsubscribe(),f=null,D){D=!1;const R=w;w=null,C.next(R)}I&&C.complete()},b=()=>{f=null,I&&C.complete()};y.subscribe(new m.Q(C,R=>{D=!0,w=R,f||(0,d.Xf)(s(R)).subscribe(f=new m.Q(C,T,b))},()=>{I=!0,(!D||!f||f.closed)&&C.complete()}))})}},453:(Be,_,l)=>{"use strict";l.d(_,{e:()=>u});var i=l(4986),d=l(5615),m=l(2805);function u(s,y=i.z){return(0,d.U)(()=>(0,m.H)(s,y))}},262:(Be,_,l)=>{"use strict";l.d(_,{K:()=>u});var i=l(8421),d=l(5403),m=l(4482);function u(s){return(0,m.e)((y,C)=>{let f,D=null,w=!1;D=y.subscribe(new d.Q(C,void 0,void 0,I=>{f=(0,i.Xf)(s(I,u(s)(y))),D?(D.unsubscribe(),D=null,f.subscribe(C)):w=!0})),w&&(D.unsubscribe(),D=null,f.subscribe(C))})}},7886:(Be,_,l)=>{"use strict";l.d(_,{u:()=>d});var i=l(8189);function d(){return(0,i.J)(1)}},4351:(Be,_,l)=>{"use strict";l.d(_,{b:()=>m});var i=l(6099),d=l(576);function m(u,s){return(0,d.m)(s)?(0,i.z)(u,s,1):(0,i.z)(u,1)}},8372:(Be,_,l)=>{"use strict";l.d(_,{b:()=>u});var i=l(4986),d=l(4482),m=l(5403);function u(s,y=i.z){return(0,d.e)((C,D)=>{let w=null,f=null,I=null;const T=()=>{if(w){w.unsubscribe(),w=null;const R=f;f=null,D.next(R)}};function b(){const R=I+s,j=y.now();if(j<R)return w=this.schedule(void 0,R-j),void D.add(w);T()}C.subscribe(new m.Q(D,R=>{f=R,I=y.now(),w||(w=y.schedule(b,s),D.add(w))},()=>{T(),D.complete()},void 0,()=>{f=w=null}))})}},4326:(Be,_,l)=>{"use strict";l.d(_,{g:()=>u});var i=l(4986),d=l(1260),m=l(2805);function u(s,y=i.z){const C=(0,m.H)(s,y);return(0,d.j)(()=>C)}},1260:(Be,_,l)=>{"use strict";l.d(_,{j:()=>y});var i=l(1350),d=l(5698),m=l(8502),u=l(9718),s=l(6099);function y(C,D){return D?w=>(0,i.z)(D.pipe((0,d.q)(1),(0,m.l)()),w.pipe(y(C))):(0,s.z)((w,f)=>C(w,f).pipe((0,d.q)(1),(0,u.h)(w)))}},1884:(Be,_,l)=>{"use strict";l.d(_,{x:()=>u});var i=l(4671),d=l(4482),m=l(5403);function u(y,C=i.y){return y=null!=y?y:s,(0,d.e)((D,w)=>{let f,I=!0;D.subscribe(new m.Q(w,T=>{const b=C(T);(I||!y(f,b))&&(I=!1,f=b,w.next(T))}))})}function s(y,C){return y===C}},9300:(Be,_,l)=>{"use strict";l.d(_,{h:()=>m});var i=l(4482),d=l(5403);function m(u,s){return(0,i.e)((y,C)=>{let D=0;y.subscribe(new d.Q(C,w=>u.call(s,w,D++)&&C.next(w)))})}},8746:(Be,_,l)=>{"use strict";l.d(_,{x:()=>d});var i=l(4482);function d(m){return(0,i.e)((u,s)=>{try{u.subscribe(s)}finally{s.add(m)}})}},8502:(Be,_,l)=>{"use strict";l.d(_,{l:()=>u});var i=l(4482),d=l(5403),m=l(5032);function u(){return(0,i.e)((s,y)=>{s.subscribe(new d.Q(y,m.Z))})}},4004:(Be,_,l)=>{"use strict";l.d(_,{U:()=>m});var i=l(4482),d=l(5403);function m(u,s){return(0,i.e)((y,C)=>{let D=0;y.subscribe(new d.Q(C,w=>{C.next(u.call(s,w,D++))}))})}},9718:(Be,_,l)=>{"use strict";l.d(_,{h:()=>d});var i=l(4004);function d(m){return(0,i.U)(()=>m)}},8189:(Be,_,l)=>{"use strict";l.d(_,{J:()=>m});var i=l(6099),d=l(4671);function m(u=1/0){return(0,i.z)(d.y,u)}},2733:(Be,_,l)=>{"use strict";l.d(_,{p:()=>u});var i=l(8421),d=l(9672),m=l(5403);function u(s,y,C,D,w,f,I,T){const b=[];let R=0,j=0,he=!1;const V=()=>{he&&!b.length&&!R&&y.complete()},le=fe=>R<D?Me(fe):b.push(fe),Me=fe=>{f&&y.next(fe),R++;let ye=!1;(0,i.Xf)(C(fe,j++)).subscribe(new m.Q(y,se=>{null==w||w(se),f?le(se):y.next(se)},()=>{ye=!0},void 0,()=>{if(ye)try{for(R--;b.length&&R<D;){const se=b.shift();I?(0,d.f)(y,I,()=>Me(se)):Me(se)}V()}catch(se){y.error(se)}}))};return s.subscribe(new m.Q(y,le,()=>{he=!0,V()})),()=>{null==T||T()}}},6099:(Be,_,l)=>{"use strict";l.d(_,{z:()=>y});var i=l(4004),d=l(8421),m=l(4482),u=l(2733),s=l(576);function y(C,D,w=1/0){return(0,s.m)(D)?y((f,I)=>(0,i.U)((T,b)=>D(f,T,I,b))((0,d.Xf)(C(f,I))),w):("number"==typeof D&&(w=D),(0,m.e)((f,I)=>(0,u.p)(f,I,C,w)))}},5363:(Be,_,l)=>{"use strict";l.d(_,{Q:()=>u});var i=l(9672),d=l(4482),m=l(5403);function u(s,y=0){return(0,d.e)((C,D)=>{C.subscribe(new m.Q(D,w=>(0,i.f)(D,s,()=>D.next(w),y),()=>(0,i.f)(D,s,()=>D.complete(),y),w=>(0,i.f)(D,s,()=>D.error(w),y)))})}},3099:(Be,_,l)=>{"use strict";l.d(_,{B:()=>y});var i=l(188),d=l(5698),m=l(6758),u=l(930),s=l(4482);function y(D={}){const{connector:w=(()=>new m.x),resetOnError:f=!0,resetOnComplete:I=!0,resetOnRefCountZero:T=!0}=D;return b=>{let R=null,j=null,he=null,V=0,le=!1,Me=!1;const fe=()=>{null==j||j.unsubscribe(),j=null},ye=()=>{fe(),R=he=null,le=Me=!1},se=()=>{const De=R;ye(),null==De||De.unsubscribe()};return(0,s.e)((De,ke)=>{V++,!Me&&!le&&fe();const et=he=null!=he?he:w();ke.add(()=>{V--,0===V&&!Me&&!le&&(j=C(se,T))}),et.subscribe(ke),R||(R=new u.Hp({next:lt=>et.next(lt),error:lt=>{Me=!0,fe(),j=C(ye,f,lt),et.error(lt)},complete:()=>{le=!0,fe(),j=C(ye,I),et.complete()}}),(0,i.D)(De).subscribe(R))})(b)}}function C(D,w,...f){return!0===w?(D(),null):!1===w?null:w(...f).pipe((0,d.q)(1)).subscribe(()=>D())}},5684:(Be,_,l)=>{"use strict";l.d(_,{T:()=>d});var i=l(9300);function d(m){return(0,i.h)((u,s)=>m<=s)}},8675:(Be,_,l)=>{"use strict";l.d(_,{O:()=>u});var i=l(1350),d=l(3269),m=l(4482);function u(...s){const y=(0,d.yG)(s);return(0,m.e)((C,D)=>{(y?(0,i.z)(s,C,y):(0,i.z)(s,C)).subscribe(D)})}},9468:(Be,_,l)=>{"use strict";l.d(_,{R:()=>d});var i=l(4482);function d(m,u=0){return(0,i.e)((s,y)=>{y.add(m.schedule(()=>s.subscribe(y),u))})}},3900:(Be,_,l)=>{"use strict";l.d(_,{w:()=>u});var i=l(8421),d=l(4482),m=l(5403);function u(s,y){return(0,d.e)((C,D)=>{let w=null,f=0,I=!1;const T=()=>I&&!w&&D.complete();C.subscribe(new m.Q(D,b=>{null==w||w.unsubscribe();let R=0;const j=f++;(0,i.Xf)(s(b,j)).subscribe(w=new m.Q(D,he=>D.next(y?y(b,he,j,R++):he),()=>{w=null,T()}))},()=>{I=!0,T()}))})}},5698:(Be,_,l)=>{"use strict";l.d(_,{q:()=>u});var i=l(515),d=l(4482),m=l(5403);function u(s){return s<=0?()=>i.E:(0,d.e)((y,C)=>{let D=0;y.subscribe(new m.Q(C,w=>{++D<=s&&(C.next(w),s<=D&&C.complete())}))})}},2722:(Be,_,l)=>{"use strict";l.d(_,{R:()=>s});var i=l(4482),d=l(5403),m=l(8421),u=l(5032);function s(y){return(0,i.e)((C,D)=>{(0,m.Xf)(y).subscribe(new d.Q(D,()=>D.complete(),u.Z)),!D.closed&&C.subscribe(D)})}},8505:(Be,_,l)=>{"use strict";l.d(_,{b:()=>s});var i=l(576),d=l(4482),m=l(5403),u=l(4671);function s(y,C,D){const w=(0,i.m)(y)||C||D?{next:y,error:C,complete:D}:y;return w?(0,d.e)((f,I)=>{var T;null===(T=w.subscribe)||void 0===T||T.call(w);let b=!0;f.subscribe(new m.Q(I,R=>{var j;null===(j=w.next)||void 0===j||j.call(w,R),I.next(R)},()=>{var R;b=!1,null===(R=w.complete)||void 0===R||R.call(w),I.complete()},R=>{var j;b=!1,null===(j=w.error)||void 0===j||j.call(w,R),I.error(R)},()=>{var R,j;b&&(null===(R=w.unsubscribe)||void 0===R||R.call(w)),null===(j=w.finalize)||void 0===j||j.call(w)}))}):u.y}},6340:(Be,_,l)=>{"use strict";l.d(_,{Q:()=>s});var i=l(9751),d=l(2202),m=l(576),u=l(9672);function s(y,C){return new i.y(D=>{let w;return(0,u.f)(D,C,()=>{w=y[d.h](),(0,u.f)(D,C,()=>{let f,I;try{({value:f,done:I}=w.next())}catch(T){return void D.error(T)}I?D.complete():D.next(f)},0,!0)}),()=>(0,m.m)(null==w?void 0:w.return)&&w.return()})}},3762:(Be,_,l)=>{"use strict";l.d(_,{x:()=>Me});var i=l(8421),d=l(5363),m=l(9468),y=l(9751),D=l(6340),w=l(9672);function f(fe,ye){if(!fe)throw new Error("Iterable cannot be null");return new y.y(se=>{(0,w.f)(se,ye,()=>{const De=fe[Symbol.asyncIterator]();(0,w.f)(se,ye,()=>{De.next().then(ke=>{ke.done?se.complete():se.next(ke.value)})},0,!0)})})}var I=l(3670),T=l(8239),b=l(1144),R=l(6495),j=l(2206),he=l(4532),V=l(3260);function Me(fe,ye){if(null!=fe){if((0,I.c)(fe))return function u(fe,ye){return(0,i.Xf)(fe).pipe((0,m.R)(ye),(0,d.Q)(ye))}(fe,ye);if((0,b.z)(fe))return function C(fe,ye){return new y.y(se=>{let De=0;return ye.schedule(function(){De===fe.length?se.complete():(se.next(fe[De++]),se.closed||this.schedule())})})}(fe,ye);if((0,T.t)(fe))return function s(fe,ye){return(0,i.Xf)(fe).pipe((0,m.R)(ye),(0,d.Q)(ye))}(fe,ye);if((0,j.D)(fe))return f(fe,ye);if((0,R.T)(fe))return(0,D.Q)(fe,ye);if((0,V.L)(fe))return function le(fe,ye){return f((0,V.Q)(fe),ye)}(fe,ye)}throw(0,he.z)(fe)}},4408:(Be,_,l)=>{"use strict";l.d(_,{o:()=>s});var i=l(6921);class d extends i.w0{constructor(C,D){super()}schedule(C,D=0){return this}}const m={setInterval(...y){const{delegate:C}=m;return((null==C?void 0:C.setInterval)||setInterval)(...y)},clearInterval(y){const{delegate:C}=m;return((null==C?void 0:C.clearInterval)||clearInterval)(y)},delegate:void 0};var u=l(8737);class s extends d{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 w=this.id,f=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(f,w,D)),this.pending=!0,this.delay=D,this.id=this.id||this.requestAsyncId(f,this.id,D),this}requestAsyncId(C,D,w=0){return m.setInterval(C.flush.bind(C,this),w)}recycleAsyncId(C,D,w=0){if(null!=w&&this.delay===w&&!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 w=this._execute(C,D);if(w)return w;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(C,D){let f,w=!1;try{this.work(C)}catch(I){w=!0,f=I||new Error("Scheduled action threw falsy error")}if(w)return this.unsubscribe(),f}unsubscribe(){if(!this.closed){const{id:C,scheduler:D}=this,{actions:w}=D;this.work=this.state=this.scheduler=null,this.pending=!1,(0,u.P)(w,this),null!=C&&(this.id=this.recycleAsyncId(D,C,null)),this.delay=null,super.unsubscribe()}}}},8950:(Be,_,l)=>{"use strict";l.d(_,{v:()=>d});var i=l(6646);class d extends i.b{constructor(u,s=i.b.now){super(u,s),this.actions=[],this._active=!1,this._scheduled=void 0}flush(u){const{actions:s}=this;if(this._active)return void s.push(u);let y;this._active=!0;do{if(y=u.execute(u.state,u.delay))break}while(u=s.shift());if(this._active=!1,y){for(;u=s.shift();)u.unsubscribe();throw y}}}},29:(Be,_,l)=>{"use strict";l.d(_,{r:()=>C,Z:()=>y});var i=l(4408),d=l(3399),u=l(8950);const y=new class s extends u.v{flush(w){this._active=!0;const f=this._scheduled;this._scheduled=void 0;const{actions:I}=this;let T;w=w||I.shift();do{if(T=w.execute(w.state,w.delay))break}while((w=I[0])&&w.id===f&&I.shift());if(this._active=!1,T){for(;(w=I[0])&&w.id===f&&I.shift();)w.unsubscribe();throw T}}}(class m extends i.o{constructor(w,f){super(w,f),this.scheduler=w,this.work=f}requestAsyncId(w,f,I=0){return null!==I&&I>0?super.requestAsyncId(w,f,I):(w.actions.push(this),w._scheduled||(w._scheduled=d.l.requestAnimationFrame(()=>w.flush(void 0))))}recycleAsyncId(w,f,I=0){if(null!=I&&I>0||null==I&&this.delay>0)return super.recycleAsyncId(w,f,I);w.actions.some(T=>T.id===f)||(d.l.cancelAnimationFrame(f),w._scheduled=void 0)}}),C=y},3399:(Be,_,l)=>{"use strict";l.d(_,{l:()=>d});var i=l(6921);const d={schedule(m){let u=requestAnimationFrame,s=cancelAnimationFrame;const{delegate:y}=d;y&&(u=y.requestAnimationFrame,s=y.cancelAnimationFrame);const C=u(D=>{s=void 0,m(D)});return new i.w0(()=>null==s?void 0:s(C))},requestAnimationFrame(...m){const{delegate:u}=d;return((null==u?void 0:u.requestAnimationFrame)||requestAnimationFrame)(...m)},cancelAnimationFrame(...m){const{delegate:u}=d;return((null==u?void 0:u.cancelAnimationFrame)||cancelAnimationFrame)(...m)},delegate:void 0}},3101:(Be,_,l)=>{"use strict";l.d(_,{e:()=>j,E:()=>R});var i=l(4408);let m,d=1;const u={};function s(he){return he in u&&(delete u[he],!0)}const y={setImmediate(he){const V=d++;return u[V]=!0,m||(m=Promise.resolve()),m.then(()=>s(V)&&he()),V},clearImmediate(he){s(he)}},{setImmediate:D,clearImmediate:w}=y,f={setImmediate(...he){const{delegate:V}=f;return((null==V?void 0:V.setImmediate)||D)(...he)},clearImmediate(he){const{delegate:V}=f;return((null==V?void 0:V.clearImmediate)||w)(he)},delegate:void 0};var T=l(8950);const R=new class b extends T.v{flush(V){this._active=!0;const le=this._scheduled;this._scheduled=void 0;const{actions:Me}=this;let fe;V=V||Me.shift();do{if(fe=V.execute(V.state,V.delay))break}while((V=Me[0])&&V.id===le&&Me.shift());if(this._active=!1,fe){for(;(V=Me[0])&&V.id===le&&Me.shift();)V.unsubscribe();throw fe}}}(class I extends i.o{constructor(V,le){super(V,le),this.scheduler=V,this.work=le}requestAsyncId(V,le,Me=0){return null!==Me&&Me>0?super.requestAsyncId(V,le,Me):(V.actions.push(this),V._scheduled||(V._scheduled=f.setImmediate(V.flush.bind(V,void 0))))}recycleAsyncId(V,le,Me=0){if(null!=Me&&Me>0||null==Me&&this.delay>0)return super.recycleAsyncId(V,le,Me);V.actions.some(fe=>fe.id===le)||(f.clearImmediate(le),V._scheduled=void 0)}}),j=R},4986:(Be,_,l)=>{"use strict";l.d(_,{z:()=>m,P:()=>u});var i=l(4408);const m=new(l(8950).v)(i.o),u=m},6063:(Be,_,l)=>{"use strict";l.d(_,{l:()=>i});const i={now:()=>(i.delegate||Date).now(),delegate:void 0}},3410:(Be,_,l)=>{"use strict";l.d(_,{z:()=>i});const i={setTimeout(...d){const{delegate:m}=i;return((null==m?void 0:m.setTimeout)||setTimeout)(...d)},clearTimeout(d){const{delegate:m}=i;return((null==m?void 0:m.clearTimeout)||clearTimeout)(d)},delegate:void 0}},2202:(Be,_,l)=>{"use strict";l.d(_,{h:()=>d});const d=function i(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Be,_,l)=>{"use strict";l.d(_,{L:()=>i});const i="function"==typeof Symbol&&Symbol.observable||"@@observable"},7448:(Be,_,l)=>{"use strict";l.d(_,{N:()=>d});const d=(0,l(3888).d)(m=>function(){m(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"})},7896:(Be,_,l)=>{"use strict";l.d(_,{B:()=>d});const d=(0,l(3888).d)(m=>function(s){m(this),this.message=s?`${s.length} errors occurred during unsubscription:\n${s.map((y,C)=>`${C+1}) ${y.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=s})},3269:(Be,_,l)=>{"use strict";l.d(_,{jO:()=>u,yG:()=>s,_6:()=>y});var i=l(576),d=l(3532);function m(C){return C[C.length-1]}function u(C){return(0,i.m)(m(C))?C.pop():void 0}function s(C){return(0,d.K)(m(C))?C.pop():void 0}function y(C,D){return"number"==typeof m(C)?C.pop():D}},4742:(Be,_,l)=>{"use strict";l.d(_,{D:()=>s});const{isArray:i}=Array,{getPrototypeOf:d,prototype:m,keys:u}=Object;function s(C){if(1===C.length){const D=C[0];if(i(D))return{args:D,keys:null};if(function y(C){return C&&"object"==typeof C&&d(C)===m}(D)){const w=u(D);return{args:w.map(f=>D[f]),keys:w}}}return{args:C,keys:null}}},8737:(Be,_,l)=>{"use strict";function i(d,m){if(d){const u=d.indexOf(m);0<=u&&d.splice(u,1)}}l.d(_,{P:()=>i})},3888:(Be,_,l)=>{"use strict";function i(d){const u=d(s=>{Error.call(s),s.stack=(new Error).stack});return u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u}l.d(_,{d:()=>i})},1810:(Be,_,l)=>{"use strict";function i(d,m){return d.reduce((u,s,y)=>(u[s]=m[y],u),{})}l.d(_,{n:()=>i})},2806:(Be,_,l)=>{"use strict";l.d(_,{x:()=>m,O:()=>u});var i=l(2416);let d=null;function m(s){if(i.v.useDeprecatedSynchronousErrorHandling){const y=!d;if(y&&(d={errorThrown:!1,error:null}),s(),y){const{errorThrown:C,error:D}=d;if(d=null,C)throw D}}else s()}function u(s){i.v.useDeprecatedSynchronousErrorHandling&&d&&(d.errorThrown=!0,d.error=s)}},9672:(Be,_,l)=>{"use strict";function i(d,m,u,s=0,y=!1){const C=m.schedule(function(){u(),y?d.add(this.schedule(null,s)):this.unsubscribe()},s);if(d.add(C),!y)return C}l.d(_,{f:()=>i})},4671:(Be,_,l)=>{"use strict";function i(d){return d}l.d(_,{y:()=>i})},1144:(Be,_,l)=>{"use strict";l.d(_,{z:()=>i});const i=d=>d&&"number"==typeof d.length&&"function"!=typeof d},2206:(Be,_,l)=>{"use strict";l.d(_,{D:()=>d});var i=l(576);function d(m){return Symbol.asyncIterator&&(0,i.m)(null==m?void 0:m[Symbol.asyncIterator])}},1165:(Be,_,l)=>{"use strict";function i(d){return d instanceof Date&&!isNaN(d)}l.d(_,{q:()=>i})},576:(Be,_,l)=>{"use strict";function i(d){return"function"==typeof d}l.d(_,{m:()=>i})},3670:(Be,_,l)=>{"use strict";l.d(_,{c:()=>m});var i=l(8822),d=l(576);function m(u){return(0,d.m)(u[i.L])}},6495:(Be,_,l)=>{"use strict";l.d(_,{T:()=>m});var i=l(2202),d=l(576);function m(u){return(0,d.m)(null==u?void 0:u[i.h])}},5191:(Be,_,l)=>{"use strict";l.d(_,{b:()=>m});var i=l(9751),d=l(576);function m(u){return!!u&&(u instanceof i.y||(0,d.m)(u.lift)&&(0,d.m)(u.subscribe))}},8239:(Be,_,l)=>{"use strict";l.d(_,{t:()=>d});var i=l(576);function d(m){return(0,i.m)(null==m?void 0:m.then)}},3260:(Be,_,l)=>{"use strict";l.d(_,{Q:()=>m,L:()=>u});var i=l(655),d=l(576);function m(s){return(0,i.__asyncGenerator)(this,arguments,function*(){const C=s.getReader();try{for(;;){const{value:D,done:w}=yield(0,i.__await)(C.read());if(w)return yield(0,i.__await)(void 0);yield yield(0,i.__await)(D)}}finally{C.releaseLock()}})}function u(s){return(0,d.m)(null==s?void 0:s.getReader)}},3532:(Be,_,l)=>{"use strict";l.d(_,{K:()=>d});var i=l(576);function d(m){return m&&(0,i.m)(m.schedule)}},4482:(Be,_,l)=>{"use strict";l.d(_,{A:()=>d,e:()=>m});var i=l(576);function d(u){return(0,i.m)(null==u?void 0:u.lift)}function m(u){return s=>{if(d(s))return s.lift(function(y){try{return u(y,this)}catch(C){this.error(C)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Be,_,l)=>{"use strict";l.d(_,{Z:()=>u});var i=l(4004);const{isArray:d}=Array;function u(s){return(0,i.U)(y=>function m(s,y){return d(y)?s(...y):s(y)}(s,y))}},5032:(Be,_,l)=>{"use strict";function i(){}l.d(_,{Z:()=>i})},9635:(Be,_,l)=>{"use strict";l.d(_,{z:()=>d,U:()=>m});var i=l(4671);function d(...u){return m(u)}function m(u){return 0===u.length?i.y:1===u.length?u[0]:function(y){return u.reduce((C,D)=>D(C),y)}}},7849:(Be,_,l)=>{"use strict";l.d(_,{h:()=>m});var i=l(2416),d=l(3410);function m(u){d.z.setTimeout(()=>{const{onUnhandledError:s}=i.v;if(!s)throw u;s(u)})}},4532:(Be,_,l)=>{"use strict";function i(d){return new TypeError(`You provided ${null!==d&&"object"==typeof d?"an invalid object":`'${d}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}l.d(_,{z:()=>i})},3642:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateRxMethod=_.generateMethodSignature=_.generateErrorClass=_.generateClass=_.generateErrorType=_.generateEnum=_.generateJsonRepresentation=_.mangle=_.generateSwiftTypeName=void 0;const i=l(6676);function d(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`${d(b.base)}?`;case i.ArrayType:return`[${d(b.base)}]`;case i.StructType:case i.EnumType:return`API.${b.name}`;case i.TypeReference:return d(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 u(b,R){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`${R}`;case i.OptionalType:return`${R} == nil ? nil : ${u(b.base,`${R}!`)}`;case i.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${R})`;case i.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${R})`;case i.EnumType:return`${R}.rawValue`;case i.TypeReference:return`${u(b.type,`${R}`)}`;case i.StructType:return`${R}.toJSON()`;case i.ArrayType:return`${R}.map({ return ${u(b.base,"$0")} })`;case i.JsonPrimitiveType:return`try? ${R}.toJson()`;case i.VoidPrimitiveType:return"nil";case i.BytesPrimitiveType:return`${R}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${b.constructor.name}`)}}_.generateSwiftTypeName=d,_.mangle=m,_.generateJsonRepresentation=u,_.generateEnum=function s(b){let R=` public enum ${b.name}: String, Codable {\n`;return R+=b.values.map(j=>` case ${m(j.value)} = "${j.value}"`).join("\n"),R+="\n }\n",R},_.generateErrorType=function y(b){let R=" public enum ErrorType: String, Codable {\n";return R+=b.map(j=>` case ${m(j)} = "${j}"`).join("\n"),R+="\n }\n",R},_.generateClass=function w(b){return` public struct ${b.name}: Codable {\n${b.fields.map(R=>` var ${m(R.name)}: ${d(R.type)}`).join("\n")}\n\n${function C(b){let R=" init(";return R+=b.fields.map(j=>`${m(j.name)}: ${d(j.type)}`).join(", "),R+=") {\n",R+=b.fields.map(j=>` self.${m(j.name)} = ${m(j.name)}`).join("\n"),R+="\n }\n",R}(b)}\n${function D(b){let R=" func toJSON() -> [String: Any] {\n";return R+=" var json = [String: Any]()\n",R+=b.fields.map(j=>` json["${m(j.name)}"] = ${u(j.type,j.name)}`).join("\n"),R+="\n return json",R+="\n }\n",R}(b)}\n }\n`},_.generateErrorClass=function f(){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"},_.generateMethodSignature=function I(b){const R=b.args.map(j=>`${m(j.name)}: ${d(j.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${b.returnType instanceof i.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${d(b.returnType)}>`}) -> Void)?`]);return` func ${m(b.name)}(${R.join(", ")})`},_.generateRxMethod=function T(b){const R=b.args.map(he=>`${m(he.name)}: ${d(he.type)}`).concat(["timeoutSeconds: Double? = nil"]);let j=` static func ${m(b.name)}(${R.join(", ")}) -> ${b.returnType instanceof i.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${d(b.returnType)}>>`} {\n`;return j+=" return Observable.create { observer -> Disposable in\n",j+=` API.calls.${m(b.name)}(${b.args.map(he=>`${m(he.name)}: ${m(he.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,j+=" observer.on(.next(result))\n",j+=" observer.on(.completed)\n",j+=" }\n",j+=" return Disposables.create()\n",j+=" }\n",j+=" }\n",j}},7295:function(Be,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,y){void 0===y&&(y=s),Object.defineProperty(m,y,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,y){void 0===y&&(y=s),m[y]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(7636),_)},7636:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateSwiftClientSource=void 0;const i=l(6676),d=l(3642);_.generateSwiftClientSource=function m(u,s){let y="import Foundation\nimport SdkgenRuntime\n";y+=s?"import RxSwift\nimport RxCocoa\n\n":"\n",y+="protocol APICallsProtocol {\n",y+=u.operations.filter(w=>w.annotations.every(f=>!(f instanceof i.HiddenAnnotation))).map(w=>`${(0,d.generateMethodSignature)(w)}`).join("\n"),y+="\n}\n\n",y+='class API: SdkgenResponse {\n\n static var calls: APICallsProtocol = Calls(baseUrl: "")\n static var baseUrl: String? {\n didSet {\n self.calls = Calls(baseUrl: baseUrl ?? "")\n }\n }\n \n override init() {\n super.init()\n }\n\n';for(const w of u.enumTypes)y+=(0,d.generateEnum)(w),y+="\n";for(const w of u.structTypes)y+=(0,d.generateClass)(w),y+="\n";const C=[],D=new i.ErrorNode("Connection",new i.VoidPrimitiveType);C.push(D.name);for(const w of u.errors)C.push(w.name);return C.length>0&&(y+=(0,d.generateErrorType)(C),y+="\n"),y+=(0,d.generateErrorClass)(),y+="\n",y+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",y+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",y+=u.operations.filter(w=>w.annotations.every(f=>!(f instanceof i.HiddenAnnotation))).map(w=>{let f="";return f+=` ${(0,d.generateMethodSignature)(w)} {\n`,w.args.length>0?(f+=" var jsonArgs = [String: Any]()\n",f+=w.args.map(I=>` jsonArgs["${(0,d.mangle)(I.name)}"] = ${(0,d.generateJsonRepresentation)(I.type,(0,d.mangle)(I.name))}`).join("\n")):f+=" let jsonArgs = [String: Any]()",f+="\n\n",f+=` request("${w.name}", jsonArgs, timeoutSeconds, completion: { (value: ${w.returnType instanceof i.VoidPrimitiveType?"API.NoReply":(0,d.generateSwiftTypeName)(w.returnType)}) in\n`,f+=" callback?(API.Result.success(value))\n",f+=" }, onError: { error in\n",f+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",f+=" })",f+="\n }\n",f}).join("\n"),y+=" }\n",y+="}\n",s&&(y+="\n",y+="extension API: ReactiveCompatible {}\n\n",y+="extension Reactive where Base: API {\n",y+=u.operations.filter(w=>w.annotations.every(f=>!(f instanceof i.HiddenAnnotation))).map(w=>`${(0,d.generateRxMethod)(w)}`).join("\n"),y+="}\n"),y}},8173:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateBrowserClientSource=void 0;const i=l(6676),d=l(5596);_.generateBrowserClientSource=function m(u){let s="";s+=`/* eslint-disable */\nimport { SdkgenError${u.errors.some(C=>!(C.dataType instanceof i.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n\n`;for(const C of u.enumTypes)s+=(0,d.generateTypescriptEnum)(C),s+="\n";for(const C of u.structTypes)s+=(0,d.generateTypescriptInterface)(C,!0),s+="\n";for(const C of u.errors)s+=(0,d.generateTypescriptErrorClass)(C,!0),s+="\n";return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${u.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,d.generateTypescriptTypeName)(D.type,!0)}`).join(", ")}}): Promise<${(0,d.generateTypescriptTypeName)(C.returnType,!0)}> { return this.makeRequest("${C.name}", args || {}); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${u.errors.map(C=>` ${C.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},5596:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.clearForLogging=_.generateTypescriptErrorClass=_.generateTypescriptEnum=_.generateTypescriptInterface=_.generateTypescriptTypeName=void 0;const i=l(6676);function d(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`${d(C.base,D)} | null`;case i.ArrayType:{const{base:w}=C,f=d(w,D);return w instanceof i.OptionalType?`(${f})[]`:`${f}[]`}case i.StructType:case i.EnumType:return C.name;case i.TypeReference:return d(C.type,D);default:throw new Error(`BUG: generateTypescriptTypeName with ${C.constructor.name}`)}}_.generateTypescriptTypeName=d,_.generateTypescriptInterface=function m(C,D){return`export interface ${C.name} {\n${C.fields.map(w=>` ${w.name}: ${d(w.type,D)}`).join("\n")}\n}\n`},_.generateTypescriptEnum=function u(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`},_.generateTypescriptErrorClass=function s(C,D){return`export class ${C.name} extends ${C.dataType instanceof i.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${d(C.dataType,D)}>`} {}\n`},_.clearForLogging=function y(C,D){switch(D.constructor){case i.TypeReference:return y(C,D.type);case i.OptionalType:{const w=y(C,D.base);return w?`if (${C} !== null && ${C} !== undefined) { ${w} }`:""}case i.ArrayType:{const w=y("el",D.base);return w?`for (const el of ${C}) { ${w} }`:""}case i.StructType:{const w=[];for(const f of D.fields)if(f.secret)w.push(`${C}.${f.name} = "<secret>";`);else{const I=y(`${C}.${f.name}`,f.type);I&&w.push(I)}return w.join(" ")}default:return""}}},2911:function(Be,_,l){"use strict";var i=this&&this.__createBinding||(Object.create?function(m,u,s,y){void 0===y&&(y=s),Object.defineProperty(m,y,{enumerable:!0,get:function(){return u[s]}})}:function(m,u,s,y){void 0===y&&(y=s),m[y]=u[s]}),d=this&&this.__exportStar||function(m,u){for(var s in m)"default"!==s&&!Object.prototype.hasOwnProperty.call(u,s)&&i(u,m,s)};Object.defineProperty(_,"__esModule",{value:!0}),d(l(8173),_),d(l(7538),_),d(l(1727),_),d(l(615),_)},7538:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateTypescriptInterfaces=void 0;const i=l(5596);_.generateTypescriptInterfaces=function d(m){let u="";for(const s of m.enumTypes)u+=(0,i.generateTypescriptEnum)(s);u+="\n";for(const s of m.structTypes)u+=(0,i.generateTypescriptInterface)(s,!1),u+="\n";return u}},1727:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateNodeClientSource=void 0;const i=l(6676),d=l(5596);_.generateNodeClientSource=function m(u){let s="";const y=u.errors.some(D=>!(D.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { Context, Fatal${u.errors.filter(D=>"Fatal"!==D.name).some(D=>D.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${y?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const D of u.enumTypes)s+=(0,d.generateTypescriptEnum)(D),s+="\n";for(const D of u.structTypes)s+=(0,d.generateTypescriptInterface)(D,!1),s+="\n";for(const D of u.errors)"Fatal"!==D.name&&(s+=(0,d.generateTypescriptErrorClass)(D,!1),s+="\n");return s+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${u.operations.filter(D=>D.annotations.every(w=>!(w instanceof i.HiddenAnnotation))).map(D=>`\n ${D.name}(ctx: PartialDeep<Context> | null, args: {${D.args.map(w=>`${w.name}${w.type.name.endsWith("?")?"?":""}: ${(0,d.generateTypescriptTypeName)(w.type,!1)}`).join(", ")}}): Promise<${(0,d.generateTypescriptTypeName)(D.returnType,!1)}> { return this.makeRequest(ctx, "${D.name}", args); }`).join("")}\n}\n\n`,s+=`const errClasses = {\n${u.errors.map(D=>` ${D.name}`).join(",\n")}\n};\n\n`,s+=`const astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,s}},615:(Be,_,l)=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.generateNodeServerSource=void 0;const i=l(6676),d=l(5596);_.generateNodeServerSource=function m(u){let s="";const y=u.errors.some(D=>!(D.dataType instanceof i.VoidPrimitiveType));s+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${u.errors.filter(D=>"Fatal"!==D.name).some(D=>D.dataType instanceof i.VoidPrimitiveType)?", SdkgenError":""}${y?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const D of u.enumTypes)s+=(0,d.generateTypescriptEnum)(D),s+="\n";for(const D of u.structTypes)s+=(0,d.generateTypescriptInterface)(D,!1),s+="\n";for(const D of u.errors)"Fatal"!==D.name&&(s+=(0,d.generateTypescriptErrorClass)(D,!1),s+="\n");return s+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n fn!: {${u.operations.map(D=>`\n ${D.name}: (ctx: Context & ExtraContextT, args: {${D.args.map(w=>`${w.name}: ${(0,d.generateTypescriptTypeName)(w.type,!1)}`).join(", ")}}) => Promise<${(0,d.generateTypescriptTypeName)(D.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,i.astToJson)(u),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,s}},8926:Be=>{function _(i,d,m,u,s,y,C){try{var D=i[y](C),w=D.value}catch(f){return void m(f)}D.done?d(w):Promise.resolve(w).then(u,s)}Be.exports=function l(i){return function(){var d=this,m=arguments;return new Promise(function(u,s){var y=i.apply(d,m);function C(w){_(y,u,s,C,D,"next",w)}function D(w){_(y,u,s,C,D,"throw",w)}C(void 0)})}},Be.exports.__esModule=!0,Be.exports.default=Be.exports},655:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{__extends:()=>d,__assign:()=>m,__rest:()=>u,__decorate:()=>s,__param:()=>y,__metadata:()=>C,__awaiter:()=>D,__generator:()=>w,__createBinding:()=>f,__exportStar:()=>I,__values:()=>T,__read:()=>b,__spread:()=>R,__spreadArrays:()=>j,__spreadArray:()=>he,__await:()=>V,__asyncGenerator:()=>le,__asyncDelegator:()=>Me,__asyncValues:()=>fe,__makeTemplateObject:()=>ye,__importStar:()=>De,__importDefault:()=>ke,__classPrivateFieldGet:()=>et,__classPrivateFieldSet:()=>lt});var i=function(q,Pe){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,ae){X.__proto__=ae}||function(X,ae){for(var Ie in ae)Object.prototype.hasOwnProperty.call(ae,Ie)&&(X[Ie]=ae[Ie])})(q,Pe)};function d(q,Pe){if("function"!=typeof Pe&&null!==Pe)throw new TypeError("Class extends value "+String(Pe)+" is not a constructor or null");function X(){this.constructor=q}i(q,Pe),q.prototype=null===Pe?Object.create(Pe):(X.prototype=Pe.prototype,new X)}var m=function(){return m=Object.assign||function(Pe){for(var X,ae=1,Ie=arguments.length;ae<Ie;ae++)for(var ne in X=arguments[ae])Object.prototype.hasOwnProperty.call(X,ne)&&(Pe[ne]=X[ne]);return Pe},m.apply(this,arguments)};function u(q,Pe){var X={};for(var ae in q)Object.prototype.hasOwnProperty.call(q,ae)&&Pe.indexOf(ae)<0&&(X[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])&&(X[ae[Ie]]=q[ae[Ie]])}return X}function s(q,Pe,X,ae){var Ke,Ie=arguments.length,ne=Ie<3?Pe:null===ae?ae=Object.getOwnPropertyDescriptor(Pe,X):ae;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ne=Reflect.decorate(q,Pe,X,ae);else for(var me=q.length-1;me>=0;me--)(Ke=q[me])&&(ne=(Ie<3?Ke(ne):Ie>3?Ke(Pe,X,ne):Ke(Pe,X))||ne);return Ie>3&&ne&&Object.defineProperty(Pe,X,ne),ne}function y(q,Pe){return function(X,ae){Pe(X,ae,q)}}function C(q,Pe){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(q,Pe)}function D(q,Pe,X,ae){return new(X||(X=Promise))(function(ne,Ke){function me(Ue){try{ve(ae.next(Ue))}catch(ut){Ke(ut)}}function st(Ue){try{ve(ae.throw(Ue))}catch(ut){Ke(ut)}}function ve(Ue){Ue.done?ne(Ue.value):function Ie(ne){return ne instanceof X?ne:new X(function(Ke){Ke(ne)})}(Ue.value).then(me,st)}ve((ae=ae.apply(q,Pe||[])).next())})}function w(q,Pe){var ae,Ie,ne,Ke,X={label:0,sent:function(){if(1&ne[0])throw ne[1];return ne[1]},trys:[],ops:[]};return Ke={next:me(0),throw:me(1),return:me(2)},"function"==typeof Symbol&&(Ke[Symbol.iterator]=function(){return this}),Ke;function me(ve){return function(Ue){return function st(ve){if(ae)throw new TypeError("Generator is already executing.");for(;X;)try{if(ae=1,Ie&&(ne=2&ve[0]?Ie.return:ve[0]?Ie.throw||((ne=Ie.return)&&ne.call(Ie),0):Ie.next)&&!(ne=ne.call(Ie,ve[1])).done)return ne;switch(Ie=0,ne&&(ve=[2&ve[0],ne.value]),ve[0]){case 0:case 1:ne=ve;break;case 4:return X.label++,{value:ve[1],done:!1};case 5:X.label++,Ie=ve[1],ve=[0];continue;case 7:ve=X.ops.pop(),X.trys.pop();continue;default:if(!(ne=(ne=X.trys).length>0&&ne[ne.length-1])&&(6===ve[0]||2===ve[0])){X=0;continue}if(3===ve[0]&&(!ne||ve[1]>ne[0]&&ve[1]<ne[3])){X.label=ve[1];break}if(6===ve[0]&&X.label<ne[1]){X.label=ne[1],ne=ve;break}if(ne&&X.label<ne[2]){X.label=ne[2],X.ops.push(ve);break}ne[2]&&X.ops.pop(),X.trys.pop();continue}ve=Pe.call(q,X)}catch(Ue){ve=[6,Ue],Ie=0}finally{ae=ne=0}if(5&ve[0])throw ve[1];return{value:ve[0]?ve[1]:void 0,done:!0}}([ve,Ue])}}}var f=Object.create?function(q,Pe,X,ae){void 0===ae&&(ae=X),Object.defineProperty(q,ae,{enumerable:!0,get:function(){return Pe[X]}})}:function(q,Pe,X,ae){void 0===ae&&(ae=X),q[ae]=Pe[X]};function I(q,Pe){for(var X in q)"default"!==X&&!Object.prototype.hasOwnProperty.call(Pe,X)&&f(Pe,q,X)}function T(q){var Pe="function"==typeof Symbol&&Symbol.iterator,X=Pe&&q[Pe],ae=0;if(X)return X.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 X="function"==typeof Symbol&&q[Symbol.iterator];if(!X)return q;var Ie,Ke,ae=X.call(q),ne=[];try{for(;(void 0===Pe||Pe-- >0)&&!(Ie=ae.next()).done;)ne.push(Ie.value)}catch(me){Ke={error:me}}finally{try{Ie&&!Ie.done&&(X=ae.return)&&X.call(ae)}finally{if(Ke)throw Ke.error}}return ne}function R(){for(var q=[],Pe=0;Pe<arguments.length;Pe++)q=q.concat(b(arguments[Pe]));return q}function j(){for(var q=0,Pe=0,X=arguments.length;Pe<X;Pe++)q+=arguments[Pe].length;var ae=Array(q),Ie=0;for(Pe=0;Pe<X;Pe++)for(var ne=arguments[Pe],Ke=0,me=ne.length;Ke<me;Ke++,Ie++)ae[Ie]=ne[Ke];return ae}function he(q,Pe,X){if(X||2===arguments.length)for(var ne,ae=0,Ie=Pe.length;ae<Ie;ae++)(ne||!(ae in Pe))&&(ne||(ne=Array.prototype.slice.call(Pe,0,ae)),ne[ae]=Pe[ae]);return q.concat(ne||Array.prototype.slice.call(Pe))}function V(q){return this instanceof V?(this.v=q,this):new V(q)}function le(q,Pe,X){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ie,ae=X.apply(q,Pe||[]),ne=[];return Ie={},Ke("next"),Ke("throw"),Ke("return"),Ie[Symbol.asyncIterator]=function(){return this},Ie;function Ke(Tt){ae[Tt]&&(Ie[Tt]=function(Ne){return new Promise(function(qe,Y){ne.push([Tt,Ne,qe,Y])>1||me(Tt,Ne)})})}function me(Tt,Ne){try{!function st(Tt){Tt.value instanceof V?Promise.resolve(Tt.value.v).then(ve,Ue):ut(ne[0][2],Tt)}(ae[Tt](Ne))}catch(qe){ut(ne[0][3],qe)}}function ve(Tt){me("next",Tt)}function Ue(Tt){me("throw",Tt)}function ut(Tt,Ne){Tt(Ne),ne.shift(),ne.length&&me(ne[0][0],ne[0][1])}}function Me(q){var Pe,X;return Pe={},ae("next"),ae("throw",function(Ie){throw Ie}),ae("return"),Pe[Symbol.iterator]=function(){return this},Pe;function ae(Ie,ne){Pe[Ie]=q[Ie]?function(Ke){return(X=!X)?{value:V(q[Ie](Ke)),done:"return"===Ie}:ne?ne(Ke):Ke}:ne}}function fe(q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,Pe=q[Symbol.asyncIterator];return Pe?Pe.call(q):(q=T(q),X={},ae("next"),ae("throw"),ae("return"),X[Symbol.asyncIterator]=function(){return this},X);function ae(ne){X[ne]=q[ne]&&function(Ke){return new Promise(function(me,st){!function Ie(ne,Ke,me,st){Promise.resolve(st).then(function(ve){ne({value:ve,done:me})},Ke)}(me,st,(Ke=q[ne](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 X in q)"default"!==X&&Object.prototype.hasOwnProperty.call(q,X)&&f(Pe,q,X);return se(Pe,q),Pe}function ke(q){return q&&q.__esModule?q:{default:q}}function et(q,Pe,X,ae){if("a"===X&&!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"===X?ae:"a"===X?ae.call(q):ae?ae.value:Pe.get(q)}function lt(q,Pe,X,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,X):Ie?Ie.value=X:Pe.set(q,X),X}},1777:(Be,_,l)=>{"use strict";l.d(_,{l3:()=>m,_j:()=>i,LC:()=>d,ZN:()=>le,jt:()=>s,F4:()=>f,vP:()=>C,SB:()=>w,oB:()=>D,eR:()=>I,X$:()=>u,ZE:()=>Me,k1:()=>fe});class i{}class d{}const m="*";function u(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 w(ye,se,De){return{type:0,name:ye,styles:se,options:De}}function f(ye){return{type:5,steps:ye}}function I(ye,se,De=null){return{type:1,expr:ye,animation:se,options:De}}function V(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(){V(()=>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,et=0;const lt=this.players.length;0==lt?V(()=>this._onFinish()):this.players.forEach(q=>{q.onDone(()=>{++De==lt&&this._onFinish()}),q.onDestroy(()=>{++ke==lt&&this._onDestroy()}),q.onStart(()=>{++et==lt&&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 et=ke.totalTime?Math.min(1,De/ke.totalTime):1;ke.setPosition(et)})}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 fe="!"},5664:(Be,_,l)=>{"use strict";l.d(_,{rt:()=>Qe,$s:()=>X,kH:()=>wt,Em:()=>me,tE:()=>zt,qV:()=>At,qm:()=>Ge,ic:()=>ve,X6:()=>Te,yG:()=>be});var i=l(9808),d=l(5e3),m=l(6758),u=l(6921),s=l(1135),y=l(9646),C=l(1159),D=l(8505),w=l(8372),f=l(9300),I=l(4004),T=l(5698),b=l(5684),R=l(1884),j=l(2722),he=l(3191),V=l(925),le=l(7144);function se(W,P){return(W.getAttribute(P)||"").match(/\S+/g)||[]}const De="cdk-describedby-message-container",ke="cdk-describedby-message",et="cdk-describedby-host";let lt=0;const q=new Map;let Pe=null,X=(()=>{class W{constructor(L){this._document=L}describe(L,g,O){if(!this._canBeDescribed(L,g))return;const _e=ae(g,O);"string"!=typeof g?(Ie(g),q.set(_e,{messageElement:g,referenceCount:0})):q.has(_e)||this._createMessageElement(g,O),this._isElementDescribedByMessage(L,_e)||this._addMessageReference(L,_e)}removeDescription(L,g,O){if(!g||!this._isElementNode(L))return;const _e=ae(g,O);if(this._isElementDescribedByMessage(L,_e)&&this._removeMessageReference(L,_e),"string"==typeof g){const ot=q.get(_e);ot&&0===ot.referenceCount&&this._deleteMessageElement(_e)}Pe&&0===Pe.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const L=this._document.querySelectorAll(`[${et}]`);for(let g=0;g<L.length;g++)this._removeCdkDescribedByReferenceIds(L[g]),L[g].removeAttribute(et);Pe&&this._deleteMessagesContainer(),q.clear()}_createMessageElement(L,g){const O=this._document.createElement("div");Ie(O),O.textContent=L,g&&O.setAttribute("role",g),this._createMessagesContainer(),Pe.appendChild(O),q.set(ae(L,g),{messageElement:O,referenceCount:0})}_deleteMessageElement(L){var g;const O=q.get(L);null===(g=null==O?void 0:O.messageElement)||void 0===g||g.remove(),q.delete(L)}_createMessagesContainer(){if(!Pe){const L=this._document.getElementById(De);null==L||L.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(L){const g=se(L,"aria-describedby").filter(O=>0!=O.indexOf(ke));L.setAttribute("aria-describedby",g.join(" "))}_addMessageReference(L,g){const O=q.get(g);(function fe(W,P,L){const g=se(W,P);g.some(O=>O.trim()==L.trim())||(g.push(L.trim()),W.setAttribute(P,g.join(" ")))})(L,"aria-describedby",O.messageElement.id),L.setAttribute(et,""),O.referenceCount++}_removeMessageReference(L,g){const O=q.get(g);O.referenceCount--,function ye(W,P,L){const O=se(W,P).filter(_e=>_e!=L.trim());O.length?W.setAttribute(P,O.join(" ")):W.removeAttribute(P)}(L,"aria-describedby",O.messageElement.id),L.removeAttribute(et)}_isElementDescribedByMessage(L,g){const O=se(L,"aria-describedby"),_e=q.get(g),ot=_e&&_e.messageElement.id;return!!ot&&-1!=O.indexOf(ot)}_canBeDescribed(L,g){if(!this._isElementNode(L))return!1;if(g&&"object"==typeof g)return!0;const O=null==g?"":`${g}`.trim(),_e=L.getAttribute("aria-label");return!(!O||_e&&_e.trim()===O)}_isElementNode(L){return L.nodeType===this._document.ELEMENT_NODE}}return W.\u0275fac=function(L){return new(L||W)(d.\u0275\u0275inject(i.DOCUMENT))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();function ae(W,P){return"string"==typeof W?`${P||""}/${W}`:W}function Ie(W){W.id||(W.id=`${ke}-${lt++}`)}class me extends class ne{constructor(P){this._items=P,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new m.x,this._typeaheadSubscription=u.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=L=>L.disabled,this._pressedLetters=[],this.tabOut=new m.x,this.change=new m.x,P instanceof d.QueryList&&P.changes.subscribe(L=>{if(this._activeItem){const O=L.toArray().indexOf(this._activeItem);O>-1&&O!==this._activeItemIndex&&(this._activeItemIndex=O)}})}skipPredicate(P){return this._skipPredicateFn=P,this}withWrap(P=!0){return this._wrap=P,this}withVerticalOrientation(P=!0){return this._vertical=P,this}withHorizontalOrientation(P){return this._horizontal=P,this}withAllowedModifierKeys(P){return this._allowedModifierKeys=P,this}withTypeAhead(P=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)(L=>this._pressedLetters.push(L)),(0,w.b)(P),(0,f.h)(()=>this._pressedLetters.length>0),(0,I.U)(()=>this._pressedLetters.join(""))).subscribe(L=>{const g=this._getItemsArray();for(let O=1;O<g.length+1;O++){const _e=(this._activeItemIndex+O)%g.length,ot=g[_e];if(!this._skipPredicateFn(ot)&&0===ot.getLabel().toUpperCase().trim().indexOf(L)){this.setActiveItem(_e);break}}this._pressedLetters=[]}),this}withHomeAndEnd(P=!0){return this._homeAndEnd=P,this}setActiveItem(P){const L=this._activeItem;this.updateActiveItem(P),this._activeItem!==L&&this.change.next(this._activeItemIndex)}onKeydown(P){const L=P.keyCode,O=["altKey","ctrlKey","metaKey","shiftKey"].every(_e=>!P[_e]||this._allowedModifierKeys.indexOf(_e)>-1);switch(L){case C.Mf:return void this.tabOut.next();case C.JH:if(this._vertical&&O){this.setNextItemActive();break}return;case C.LH:if(this._vertical&&O){this.setPreviousItemActive();break}return;case C.SV:if(this._horizontal&&O){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case C.oh:if(this._horizontal&&O){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case C.Sd:if(this._homeAndEnd&&O){this.setFirstItemActive();break}return;case C.uR:if(this._homeAndEnd&&O){this.setLastItemActive();break}return;default:return void((O||(0,C.Vb)(P,"shiftKey"))&&(P.key&&1===P.key.length?this._letterKeyStream.next(P.key.toLocaleUpperCase()):(L>=C.A&&L<=C.Z||L>=C.xE&&L<=C.aO)&&this._letterKeyStream.next(String.fromCharCode(L))))}this._pressedLetters=[],P.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(P){const L=this._getItemsArray(),g="number"==typeof P?P:L.indexOf(P),O=L[g];this._activeItem=null==O?null:O,this._activeItemIndex=g}_setActiveItemByDelta(P){this._wrap?this._setActiveInWrapMode(P):this._setActiveInDefaultMode(P)}_setActiveInWrapMode(P){const L=this._getItemsArray();for(let g=1;g<=L.length;g++){const O=(this._activeItemIndex+P*g+L.length)%L.length;if(!this._skipPredicateFn(L[O]))return void this.setActiveItem(O)}}_setActiveInDefaultMode(P){this._setActiveItemByIndex(this._activeItemIndex+P,P)}_setActiveItemByIndex(P,L){const g=this._getItemsArray();if(g[P]){for(;this._skipPredicateFn(g[P]);)if(!g[P+=L])return;this.setActiveItem(P)}}_getItemsArray(){return this._items instanceof d.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(P){return this._origin=P,this}setActiveItem(P){super.setActiveItem(P),this.activeItem&&this.activeItem.focus(this._origin)}}let ve=(()=>{class W{constructor(L){this._platform=L}isDisabled(L){return L.hasAttribute("disabled")}isVisible(L){return function ut(W){return!!(W.offsetWidth||W.offsetHeight||"function"==typeof W.getClientRects&&W.getClientRects().length)}(L)&&"visible"===getComputedStyle(L).visibility}isTabbable(L){if(!this._platform.isBrowser)return!1;const g=function Ue(W){try{return W.frameElement}catch(P){return null}}(function vt(W){return W.ownerDocument&&W.ownerDocument.defaultView||window}(L));if(g&&(-1===xe(g)||!this.isVisible(g)))return!1;let O=L.nodeName.toLowerCase(),_e=xe(L);return L.hasAttribute("contenteditable")?-1!==_e:!("iframe"===O||"object"===O||this._platform.WEBKIT&&this._platform.IOS&&!function ge(W){let P=W.nodeName.toLowerCase(),L="input"===P&&W.type;return"text"===L||"password"===L||"select"===P||"textarea"===P}(L))&&("audio"===O?!!L.hasAttribute("controls")&&-1!==_e:"video"===O?-1!==_e&&(null!==_e||this._platform.FIREFOX||L.hasAttribute("controls")):L.tabIndex>=0)}isFocusable(L,g){return function Je(W){return!function Ne(W){return function Y(W){return"input"==W.nodeName.toLowerCase()}(W)&&"hidden"==W.type}(W)&&(function Tt(W){let P=W.nodeName.toLowerCase();return"input"===P||"select"===P||"button"===P||"textarea"===P}(W)||function qe(W){return function pe(W){return"a"==W.nodeName.toLowerCase()}(W)&&W.hasAttribute("href")}(W)||W.hasAttribute("contenteditable")||we(W))}(L)&&!this.isDisabled(L)&&((null==g?void 0:g.ignoreVisibility)||this.isVisible(L))}}return W.\u0275fac=function(L){return new(L||W)(d.\u0275\u0275inject(V.t4))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();function we(W){if(!W.hasAttribute("tabindex")||void 0===W.tabIndex)return!1;let P=W.getAttribute("tabindex");return!(!P||isNaN(parseInt(P,10)))}function xe(W){if(!we(W))return null;const P=parseInt(W.getAttribute("tabindex")||"",10);return isNaN(P)?-1:P}class Et{constructor(P,L,g,O,_e=!1){this._element=P,this._checker=L,this._ngZone=g,this._document=O,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,_e||this.attachAnchors()}get enabled(){return this._enabled}set enabled(P){this._enabled=P,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(P,this._startAnchor),this._toggleAnchorTabIndex(P,this._endAnchor))}destroy(){const P=this._startAnchor,L=this._endAnchor;P&&(P.removeEventListener("focus",this.startAnchorListener),P.remove()),L&&(L.removeEventListener("focus",this.endAnchorListener),L.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(P){return new Promise(L=>{this._executeOnStable(()=>L(this.focusInitialElement(P)))})}focusFirstTabbableElementWhenReady(P){return new Promise(L=>{this._executeOnStable(()=>L(this.focusFirstTabbableElement(P)))})}focusLastTabbableElementWhenReady(P){return new Promise(L=>{this._executeOnStable(()=>L(this.focusLastTabbableElement(P)))})}_getRegionBoundary(P){const L=this._element.querySelectorAll(`[cdk-focus-region-${P}], [cdkFocusRegion${P}], [cdk-focus-${P}]`);return"start"==P?L.length?L[0]:this._getFirstTabbableElement(this._element):L.length?L[L.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(P){const L=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(L){if(!this._checker.isFocusable(L)){const g=this._getFirstTabbableElement(L);return null==g||g.focus(P),!!g}return L.focus(P),!0}return this.focusFirstTabbableElement(P)}focusFirstTabbableElement(P){const L=this._getRegionBoundary("start");return L&&L.focus(P),!!L}focusLastTabbableElement(P){const L=this._getRegionBoundary("end");return L&&L.focus(P),!!L}hasAttached(){return this._hasAttached}_getFirstTabbableElement(P){if(this._checker.isFocusable(P)&&this._checker.isTabbable(P))return P;const L=P.children;for(let g=0;g<L.length;g++){const O=L[g].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(L[g]):null;if(O)return O}return null}_getLastTabbableElement(P){if(this._checker.isFocusable(P)&&this._checker.isTabbable(P))return P;const L=P.children;for(let g=L.length-1;g>=0;g--){const O=L[g].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(L[g]):null;if(O)return O}return null}_createAnchor(){const P=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,P),P.classList.add("cdk-visually-hidden"),P.classList.add("cdk-focus-trap-anchor"),P.setAttribute("aria-hidden","true"),P}_toggleAnchorTabIndex(P,L){P?L.setAttribute("tabindex","0"):L.removeAttribute("tabindex")}toggleAnchors(P){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(P,this._startAnchor),this._toggleAnchorTabIndex(P,this._endAnchor))}_executeOnStable(P){this._ngZone.isStable?P():this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(P)}}let At=(()=>{class W{constructor(L,g,O){this._checker=L,this._ngZone=g,this._document=O}create(L,g=!1){return new Et(L,this._checker,this._ngZone,this._document,g)}}return W.\u0275fac=function(L){return new(L||W)(d.\u0275\u0275inject(ve),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(i.DOCUMENT))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();function Te(W){return 0===W.buttons||0===W.offsetX&&0===W.offsetY}function be(W){const P=W.touches&&W.touches[0]||W.changedTouches&&W.changedTouches[0];return!(!P||-1!==P.identifier||null!=P.radiusX&&1!==P.radiusX||null!=P.radiusY&&1!==P.radiusY)}const re=new d.InjectionToken("cdk-input-modality-detector-options"),Ce={ignoreKeys:[C.zL,C.jx,C.b2,C.MW,C.JU]},rt=(0,V.i$)({passive:!0,capture:!0});let pt=(()=>{class W{constructor(L,g,O,_e){this._platform=L,this._mostRecentTarget=null,this._modality=new s.X(null),this._lastTouchMs=0,this._onKeydown=ot=>{var kt,Ht;(null===(Ht=null===(kt=this._options)||void 0===kt?void 0:kt.ignoreKeys)||void 0===Ht?void 0:Ht.some(Fe=>Fe===ot.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,V.sA)(ot))},this._onMousedown=ot=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Te(ot)?"keyboard":"mouse"),this._mostRecentTarget=(0,V.sA)(ot))},this._onTouchstart=ot=>{be(ot)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,V.sA)(ot))},this._options=Object.assign(Object.assign({},Ce),_e),this.modalityDetected=this._modality.pipe((0,b.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,R.x)()),L.isBrowser&&g.runOutsideAngular(()=>{O.addEventListener("keydown",this._onKeydown,rt),O.addEventListener("mousedown",this._onMousedown,rt),O.addEventListener("touchstart",this._onTouchstart,rt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,rt),document.removeEventListener("mousedown",this._onMousedown,rt),document.removeEventListener("touchstart",this._onTouchstart,rt))}}return W.\u0275fac=function(L){return new(L||W)(d.\u0275\u0275inject(V.t4),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(re,8))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();const Tn=new d.InjectionToken("cdk-focus-monitor-default-options"),rn=(0,V.i$)({passive:!0,capture:!0});let zt=(()=>{class W{constructor(L,g,O,_e,ot){this._ngZone=L,this._platform=g,this._inputModalityDetector=O,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 Ht=(0,V.sA)(kt),Fe="focus"===kt.type?this._onFocus:this._onBlur;for(let $e=Ht;$e;$e=$e.parentElement)Fe.call(this,kt,$e)},this._document=_e,this._detectionMode=(null==ot?void 0:ot.detectionMode)||0}monitor(L,g=!1){const O=(0,he.fI)(L);if(!this._platform.isBrowser||1!==O.nodeType)return(0,y.of)(null);const _e=(0,V.kV)(O)||this._getDocument(),ot=this._elementInfo.get(O);if(ot)return g&&(ot.checkChildren=!0),ot.subject;const kt={checkChildren:g,subject:new m.x,rootNode:_e};return this._elementInfo.set(O,kt),this._registerGlobalListeners(kt),kt.subject}stopMonitoring(L){const g=(0,he.fI)(L),O=this._elementInfo.get(g);O&&(O.subject.complete(),this._setClasses(g),this._elementInfo.delete(g),this._removeGlobalListeners(O))}focusVia(L,g,O){const _e=(0,he.fI)(L);_e===this._getDocument().activeElement?this._getClosestElementsInfo(_e).forEach(([kt,Ht])=>this._originChanged(kt,g,Ht)):(this._setOrigin(g),"function"==typeof _e.focus&&_e.focus(O))}ngOnDestroy(){this._elementInfo.forEach((L,g)=>this.stopMonitoring(g))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(L){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(L)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(L){return 1===this._detectionMode||!!(null==L?void 0:L.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(L,g){L.classList.toggle("cdk-focused",!!g),L.classList.toggle("cdk-touch-focused","touch"===g),L.classList.toggle("cdk-keyboard-focused","keyboard"===g),L.classList.toggle("cdk-mouse-focused","mouse"===g),L.classList.toggle("cdk-program-focused","program"===g)}_setOrigin(L,g=!1){this._ngZone.runOutsideAngular(()=>{this._origin=L,this._originFromTouchInteraction="touch"===L&&g,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(L,g){const O=this._elementInfo.get(g),_e=(0,V.sA)(L);!O||!O.checkChildren&&g!==_e||this._originChanged(g,this._getFocusOrigin(_e),O)}_onBlur(L,g){const O=this._elementInfo.get(g);!O||O.checkChildren&&L.relatedTarget instanceof Node&&g.contains(L.relatedTarget)||(this._setClasses(g),this._emitOrigin(O.subject,null))}_emitOrigin(L,g){this._ngZone.run(()=>L.next(g))}_registerGlobalListeners(L){if(!this._platform.isBrowser)return;const g=L.rootNode,O=this._rootNodeFocusListenerCount.get(g)||0;O||this._ngZone.runOutsideAngular(()=>{g.addEventListener("focus",this._rootNodeFocusAndBlurListener,rn),g.addEventListener("blur",this._rootNodeFocusAndBlurListener,rn)}),this._rootNodeFocusListenerCount.set(g,O+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,j.R)(this._stopInputModalityDetector)).subscribe(_e=>{this._setOrigin(_e,!0)}))}_removeGlobalListeners(L){const g=L.rootNode;if(this._rootNodeFocusListenerCount.has(g)){const O=this._rootNodeFocusListenerCount.get(g);O>1?this._rootNodeFocusListenerCount.set(g,O-1):(g.removeEventListener("focus",this._rootNodeFocusAndBlurListener,rn),g.removeEventListener("blur",this._rootNodeFocusAndBlurListener,rn),this._rootNodeFocusListenerCount.delete(g))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(L,g,O){this._setClasses(L,g),this._emitOrigin(O.subject,g),this._lastFocusOrigin=g}_getClosestElementsInfo(L){const g=[];return this._elementInfo.forEach((O,_e)=>{(_e===L||O.checkChildren&&_e.contains(L))&&g.push([_e,O])}),g}}return W.\u0275fac=function(L){return new(L||W)(d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(V.t4),d.\u0275\u0275inject(pt),d.\u0275\u0275inject(i.DOCUMENT,8),d.\u0275\u0275inject(Tn,8))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})(),wt=(()=>{class W{constructor(L,g){this._elementRef=L,this._focusMonitor=g,this.cdkFocusChange=new d.EventEmitter}ngAfterViewInit(){const L=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(L,1===L.nodeType&&L.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(g=>this.cdkFocusChange.emit(g))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return W.\u0275fac=function(L){return new(L||W)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(zt))},W.\u0275dir=d.\u0275\u0275defineDirective({type:W,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),W})();const bn="cdk-high-contrast-black-on-white",Jt="cdk-high-contrast-white-on-black",on="cdk-high-contrast-active";let Ge=(()=>{class W{constructor(L,g){this._platform=L,this._document=g}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const L=this._document.createElement("div");L.style.backgroundColor="rgb(1,2,3)",L.style.position="absolute",this._document.body.appendChild(L);const g=this._document.defaultView||window,O=g&&g.getComputedStyle?g.getComputedStyle(L):null,_e=(O&&O.backgroundColor||"").replace(/ /g,"");switch(L.remove(),_e){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 L=this._document.body.classList;L.remove(on),L.remove(bn),L.remove(Jt),this._hasCheckedHighContrastMode=!0;const g=this.getHighContrastMode();1===g?(L.add(on),L.add(bn)):2===g&&(L.add(on),L.add(Jt))}}}return W.\u0275fac=function(L){return new(L||W)(d.\u0275\u0275inject(V.t4),d.\u0275\u0275inject(i.DOCUMENT))},W.\u0275prov=d.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac,providedIn:"root"}),W})(),Qe=(()=>{class W{constructor(L){L._applyBodyHighContrastModeCssClasses()}}return W.\u0275fac=function(L){return new(L||W)(d.\u0275\u0275inject(Ge))},W.\u0275mod=d.\u0275\u0275defineNgModule({type:W}),W.\u0275inj=d.\u0275\u0275defineInjector({imports:[[V.ud,le.Q8]]}),W})()},226:(Be,_,l)=>{"use strict";l.d(_,{vT:()=>w,Is:()=>C});var i=l(5e3),d=l(9808);const m=new i.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function u(){return(0,i.inject)(d.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 f{constructor(T){if(this.value="ltr",this.change=new i.EventEmitter,T){const R=T.documentElement?T.documentElement.dir:null;this.value=function y(f){const I=(null==f?void 0:f.toLowerCase())||"";return"auto"===I&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?s.test(navigator.language)?"rtl":"ltr":"rtl"===I?"rtl":"ltr"}((T.body?T.body.dir:null)||R||"ltr")}}ngOnDestroy(){this.change.complete()}}return f.\u0275fac=function(T){return new(T||f)(i.\u0275\u0275inject(m,8))},f.\u0275prov=i.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),w=(()=>{class f{}return f.\u0275fac=function(T){return new(T||f)},f.\u0275mod=i.\u0275\u0275defineNgModule({type:f}),f.\u0275inj=i.\u0275\u0275defineInjector({}),f})()},3191:(Be,_,l)=>{"use strict";l.d(_,{t6:()=>u,Eq:()=>s,Ig:()=>d,HM:()=>y,fI:()=>C,su:()=>m});var i=l(5e3);function d(w){return null!=w&&"false"!=`${w}`}function m(w,f=0){return u(w)?Number(w):f}function u(w){return!isNaN(parseFloat(w))&&!isNaN(Number(w))}function s(w){return Array.isArray(w)?w:[w]}function y(w){return null==w?"":"string"==typeof w?w:`${w}px`}function C(w){return w instanceof i.ElementRef?w.nativeElement:w}},449:(Be,_,l)=>{"use strict";l.d(_,{o2:()=>m,Ov:()=>D,yy:()=>y,eX:()=>C,k:()=>I,Z9:()=>u});var i=l(6758),d=l(5e3);class m{}function u(T){return T&&"function"==typeof T.connect}class y{applyChanges(b,R,j,he,V){b.forEachOperation((le,Me,fe)=>{let ye,se;if(null==le.previousIndex){const De=j(le,Me,fe);ye=R.createEmbeddedView(De.templateRef,De.context,De.index),se=1}else null==fe?(R.remove(Me),se=3):(ye=R.get(Me),R.move(ye,fe),se=2);V&&V({context:null==ye?void 0:ye.context,operation:se,record:le})})}detach(){}}class C{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(b,R,j,he,V){b.forEachOperation((le,Me,fe)=>{let ye,se;null==le.previousIndex?(ye=this._insertView(()=>j(le,Me,fe),fe,R,he(le)),se=ye?1:0):null==fe?(this._detachAndCacheView(Me,R),se=3):(ye=this._moveView(Me,fe,R,he(le)),se=2),V&&V({context:null==ye?void 0:ye.context,operation:se,record:le})})}detach(){for(const b of this._viewCache)b.destroy();this._viewCache=[]}_insertView(b,R,j,he){const V=this._insertViewFromCache(R,j);if(V)return void(V.context.$implicit=he);const le=b();return j.createEmbeddedView(le.templateRef,le.context,le.index)}_detachAndCacheView(b,R){const j=R.detach(b);this._maybeCacheView(j,R)}_moveView(b,R,j,he){const V=j.get(b);return j.move(V,R),V.context.$implicit=he,V}_maybeCacheView(b,R){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(b);else{const j=R.indexOf(b);-1===j?b.destroy():R.remove(j)}}_insertViewFromCache(b,R){const j=this._viewCache.pop();return j&&R.insert(j,b),j||null}}class D{constructor(b=!1,R,j=!0){this._multiple=b,this._emitChanges=j,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new i.x,R&&R.length&&(b?R.forEach(he=>this._markSelected(he)):this._markSelected(R[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(R=>this._markSelected(R)),this._emitChangeEvent()}deselect(...b){this._verifyValueAssignment(b),b.forEach(R=>this._unmarkSelected(R)),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 I=new d.InjectionToken("_ViewRepeater")},1159:(Be,_,l)=>{"use strict";l.d(_,{A:()=>Tt,zL:()=>D,ZH:()=>d,jx:()=>C,yY:()=>ke,JH:()=>fe,uR:()=>j,K5:()=>s,hY:()=>I,Sd:()=>he,oh:()=>V,b2:()=>li,MW:()=>Mt,aO:()=>me,SV:()=>Me,JU:()=>y,L_:()=>T,Mf:()=>m,LH:()=>le,Z:()=>gt,xE:()=>et,Vb:()=>An});const d=8,m=9,s=13,y=16,C=17,D=18,I=27,T=32,j=35,he=36,V=37,le=38,Me=39,fe=40,ke=46,et=48,me=57,Tt=65,gt=90,Mt=91,li=224;function An(mn,...ti){return ti.length?ti.some(ci=>mn[ci]):mn.altKey||mn.shiftKey||mn.ctrlKey||mn.metaKey}},5113:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{BreakpointObserver:()=>fe,Breakpoints:()=>se,LayoutModule:()=>R,MediaMatcher:()=>V});var i=l(5e3),d=l(3191),m=l(6758),u=l(9841),s=l(1350),y=l(9751),C=l(5698),D=l(5684),w=l(8372),f=l(4004),I=l(8675),T=l(2722),b=l(925);let R=(()=>{class De{}return De.\u0275fac=function(et){return new(et||De)},De.\u0275mod=i.\u0275\u0275defineNgModule({type:De}),De.\u0275inj=i.\u0275\u0275defineInjector({}),De})();const j=new Set;let he,V=(()=>{class De{constructor(et){this._platform=et,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Me}matchMedia(et){return(this._platform.WEBKIT||this._platform.BLINK)&&function le(De){if(!j.has(De))try{he||(he=document.createElement("style"),he.setAttribute("type","text/css"),document.head.appendChild(he)),he.sheet&&(he.sheet.insertRule(`@media ${De} {body{ }}`,0),j.add(De))}catch(ke){console.error(ke)}}(et),this._matchMedia(et)}}return De.\u0275fac=function(et){return new(et||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 fe=(()=>{class De{constructor(et,lt){this._mediaMatcher=et,this._zone=lt,this._queries=new Map,this._destroySubject=new m.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(et){return ye((0,d.Eq)(et)).some(q=>this._registerQuery(q).mql.matches)}observe(et){const q=ye((0,d.Eq)(et)).map(X=>this._registerQuery(X).observable);let Pe=(0,u.a)(q);return Pe=(0,s.z)(Pe.pipe((0,C.q)(1)),Pe.pipe((0,D.T)(1),(0,w.b)(0))),Pe.pipe((0,f.U)(X=>{const ae={matches:!1,breakpoints:{}};return X.forEach(({matches:Ie,query:ne})=>{ae.matches=ae.matches||Ie,ae.breakpoints[ne]=Ie}),ae}))}_registerQuery(et){if(this._queries.has(et))return this._queries.get(et);const lt=this._mediaMatcher.matchMedia(et),Pe={observable:new y.y(X=>{const ae=Ie=>this._zone.run(()=>X.next(Ie));return lt.addListener(ae),()=>{lt.removeListener(ae)}}).pipe((0,I.O)(lt),(0,f.U)(({matches:X})=>({query:et,matches:X})),(0,T.R)(this._destroySubject)),mql:lt};return this._queries.set(et,Pe),Pe}}return De.\u0275fac=function(et){return new(et||De)(i.\u0275\u0275inject(V),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,et)=>ke.concat(et)).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:(Be,_,l)=>{"use strict";l.d(_,{wD:()=>D,Q8:()=>w});var i=l(3191),d=l(5e3),m=l(9751),u=l(6758),s=l(8372);let y=(()=>{class f{create(T){return"undefined"==typeof MutationObserver?null:new MutationObserver(T)}}return f.\u0275fac=function(T){return new(T||f)},f.\u0275prov=d.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),C=(()=>{class f{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(R=>{const he=this._observeElement(b).subscribe(R);return()=>{he.unsubscribe(),this._unobserveElement(b)}})}_observeElement(T){if(this._observedElements.has(T))this._observedElements.get(T).count++;else{const b=new u.x,R=this._mutationObserverFactory.create(j=>b.next(j));R&&R.observe(T,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(T,{observer:R,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:R}=this._observedElements.get(T);b&&b.disconnect(),R.complete(),this._observedElements.delete(T)}}}return f.\u0275fac=function(T){return new(T||f)(d.\u0275\u0275inject(y))},f.\u0275prov=d.\u0275\u0275defineInjectable({token:f,factory:f.\u0275fac,providedIn:"root"}),f})(),D=(()=>{class f{constructor(T,b,R){this._contentObserver=T,this._elementRef=b,this._ngZone=R,this.event=new d.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 f.\u0275fac=function(T){return new(T||f)(d.\u0275\u0275directiveInject(C),d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.NgZone))},f.\u0275dir=d.\u0275\u0275defineDirective({type:f,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),f})(),w=(()=>{class f{}return f.\u0275fac=function(T){return new(T||f)},f.\u0275mod=d.\u0275\u0275defineNgModule({type:f}),f.\u0275inj=d.\u0275\u0275defineInjector({providers:[y]}),f})()},1314:(Be,_,l)=>{"use strict";l.d(_,{aV:()=>pe,X_:()=>se,Xj:()=>X,U8:()=>At});var i=l(9071),d=l(9808),m=l(5e3),u=l(3191),s=l(925),y=l(226),C=l(7429),D=l(6758),w=l(6921),f=l(6451),I=l(5698),T=l(2722);const b=(0,s.Mq)();class R{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,u.HM)(-this._previousScrollPosition.left),N.style.top=(0,u.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 he{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 V{enable(){}disable(){}attach(){}}function le(Ze,N){return N.some(oe=>Ze.bottom<oe.top||Ze.top>oe.bottom||Ze.right<oe.left||Ze.left>oe.right)}function Me(Ze,N){return N.some(oe=>Ze.top<oe.top||Ze.bottom>oe.bottom||Ze.left<oe.left||Ze.right>oe.right)}class fe{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 Ze{constructor(oe,Oe,ue,Te){this._scrollDispatcher=oe,this._viewportRuler=Oe,this._ngZone=ue,this.noop=()=>new V,this.close=be=>new he(this._scrollDispatcher,this._ngZone,this._viewportRuler,be),this.block=()=>new R(this._viewportRuler,this._document),this.reposition=be=>new fe(this._scrollDispatcher,this._viewportRuler,this._ngZone,be),this._document=Te}}return Ze.\u0275fac=function(oe){return new(oe||Ze)(m.\u0275\u0275inject(i.mF),m.\u0275\u0275inject(i.rL),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(d.DOCUMENT))},Ze.\u0275prov=m.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();class se{constructor(N){if(this.scrollStrategy=new V,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 et{constructor(N,oe){this.connectionPair=N,this.scrollableViewProperties=oe}}class Pe{constructor(N,oe,Oe,ue,Te,be,re,Ce,Ye){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=Ye,this._backdropElement=null,this._backdropClick=new D.x,this._attachments=new D.x,this._detachments=new D.x,this._locationChanges=w.w0.EMPTY,this._backdropClickHandler=rt=>this._backdropClick.next(rt),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,I.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,u.HM)(this._config.width),N.height=(0,u.HM)(this._config.height),N.minWidth=(0,u.HM)(this._config.minWidth),N.minHeight=(0,u.HM)(this._config.minHeight),N.maxWidth=(0,u.HM)(this._config.maxWidth),N.maxHeight=(0,u.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,u.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,f.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 X=(()=>{class Ze{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 Ze.\u0275fac=function(oe){return new(oe||Ze)(m.\u0275\u0275inject(d.DOCUMENT),m.\u0275\u0275inject(s.t4))},Ze.\u0275prov=m.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})();const ae="cdk-overlay-connected-position-bounding-box",Ie=/([A-Za-z%]+)$/;class ne{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=w.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),Ye=this._getOverlayPoint(Ce,oe,re),rt=this._getOverlayFit(Ye,oe,Oe,re);if(rt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(re,Ce);this._canFitWithFlexibleDimensions(rt,Ye,Oe)?Te.push({position:re,origin:Ce,overlayRect:oe,boundingBoxRect:this._calculateBoundingBoxRect(Ce,re)}):(!be||be.overlayFit.visibleArea<rt.visibleArea)&&(be={overlayFit:rt,overlayPoint:Ye,originPoint:Ce,position:re,overlayRect:oe})}if(Te.length){let re=null,Ce=-1;for(const Ye of Te){const rt=Ye.boundingBoxRect.width*Ye.boundingBoxRect.height*(Ye.position.weight||1);rt>Ce&&(Ce=rt,re=Ye)}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=st(oe);let{x:be,y:re}=N,Ce=this._getOffset(ue,"x"),Ye=this._getOffset(ue,"y");Ce&&(be+=Ce),Ye&&(re+=Ye);let gt=0-re,Mt=re+Te.height-Oe.height,jt=this._subtractOverflows(Te.width,0-be,be+Te.width-Oe.width),tn=this._subtractOverflows(Te.height,gt,Mt),Vt=jt*tn;return{visibleArea:Vt,isCompletelyWithinViewport:Te.width*Te.height===Vt,fitsInViewportVertically:tn===Te.height,fitsInViewportHorizontally:jt==Te.width}}_canFitWithFlexibleDimensions(N,oe,Oe){if(this._hasFlexibleDimensions){const ue=Oe.bottom-oe.y,Te=Oe.right-oe.x,be=me(this._overlayRef.getConfig().minHeight),re=me(this._overlayRef.getConfig().minWidth),Ye=N.fitsInViewportHorizontally||null!=re&&re<=Te;return(N.fitsInViewportVertically||null!=be&&be<=ue)&&Ye}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=st(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),Ye=Math.max(Te.left-Oe.left-N.x,0);let rt=0,pt=0;return rt=ue.width<=Te.width?Ye||-be:N.x<this._viewportMargin?Te.left-Oe.left-N.x:0,pt=ue.height<=Te.height?Ce||-re:N.y<this._viewportMargin?Te.top-Oe.top-N.y:0,this._previousPushAmount={x:rt,y:pt},{x:N.x+rt,y:N.y+pt}}_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 et(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,rt,pt,gt;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 Mt=Math.min(Oe.bottom-N.y+Oe.top,N.y),jt=this._lastBoundingBoxSize.height;Te=2*Mt,be=N.y-Mt,Te>jt&&!this._isInitialRender&&!this._growAfterOpen&&(be=N.y-jt/2)}if("end"===oe.overlayX&&!ue||"start"===oe.overlayX&&ue)gt=Oe.width-N.x+this._viewportMargin,rt=N.x-this._viewportMargin;else if("start"===oe.overlayX&&!ue||"end"===oe.overlayX&&ue)pt=N.x,rt=Oe.right-N.x;else{const Mt=Math.min(Oe.right-N.x+Oe.left,N.x),jt=this._lastBoundingBoxSize.width;rt=2*Mt,pt=N.x-Mt,rt>jt&&!this._isInitialRender&&!this._growAfterOpen&&(pt=N.x-jt/2)}return{top:be,left:pt,bottom:re,right:gt,width:rt,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,u.HM)(Oe.height),ue.top=(0,u.HM)(Oe.top),ue.bottom=(0,u.HM)(Oe.bottom),ue.width=(0,u.HM)(Oe.width),ue.left=(0,u.HM)(Oe.left),ue.right=(0,u.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,u.HM)(Te)),be&&(ue.maxWidth=(0,u.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 rt=this._viewportRuler.getViewportScrollPosition();Ke(Oe,this._getExactOverlayY(oe,N,rt)),Ke(Oe,this._getExactOverlayX(oe,N,rt))}else Oe.position="static";let re="",Ce=this._getOffset(oe,"x"),Ye=this._getOffset(oe,"y");Ce&&(re+=`translateX(${Ce}px) `),Ye&&(re+=`translateY(${Ye}px)`),Oe.transform=re.trim(),be.maxHeight&&(ue?Oe.maxHeight=(0,u.HM)(be.maxHeight):Te&&(Oe.maxHeight="")),be.maxWidth&&(ue?Oe.maxWidth=(0,u.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,u.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,u.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,u.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(Ze,N){for(let oe in N)N.hasOwnProperty(oe)&&(Ze[oe]=N[oe]);return Ze}function me(Ze){if("number"!=typeof Ze&&null!=Ze){const[N,oe]=Ze.split(Ie);return oe&&"px"!==oe?null:parseFloat(N)}return Ze||null}function st(Ze){return{top:Math.floor(Ze.top),right:Math.floor(Ze.right),bottom:Math.floor(Ze.bottom),left:Math.floor(Ze.left),width:Math.floor(Ze.width),height:Math.floor(Ze.height)}}const ve="cdk-global-overlay-wrapper";class Ue{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),Ye=!("100%"!==Te&&"100vh"!==Te||re&&"100%"!==re&&"100vh"!==re);N.position=this._cssPosition,N.marginLeft=Ce?"0":this._leftOffset,N.marginTop=Ye?"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=Ye?"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 ut=(()=>{class Ze{constructor(oe,Oe,ue,Te){this._viewportRuler=oe,this._document=Oe,this._platform=ue,this._overlayContainer=Te}global(){return new Ue}flexibleConnectedTo(oe){return new ne(oe,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ze.\u0275fac=function(oe){return new(oe||Ze)(m.\u0275\u0275inject(i.rL),m.\u0275\u0275inject(d.DOCUMENT),m.\u0275\u0275inject(s.t4),m.\u0275\u0275inject(X))},Ze.\u0275prov=m.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),Tt=(()=>{class Ze{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 Ze.\u0275fac=function(oe){return new(oe||Ze)(m.\u0275\u0275inject(d.DOCUMENT))},Ze.\u0275prov=m.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),Ne=(()=>{class Ze 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 Ze.\u0275fac=function(oe){return new(oe||Ze)(m.\u0275\u0275inject(d.DOCUMENT))},Ze.\u0275prov=m.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),qe=(()=>{class Ze 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 Ye=re[Ce];if(!(Ye._outsidePointerEvents.observers.length<1)&&Ye.hasAttached()){if(Ye.overlayElement.contains(Te)||Ye.overlayElement.contains(be))break;Ye._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 Ze.\u0275fac=function(oe){return new(oe||Ze)(m.\u0275\u0275inject(d.DOCUMENT),m.\u0275\u0275inject(s.t4))},Ze.\u0275prov=m.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac,providedIn:"root"}),Ze})(),Y=0,pe=(()=>{class Ze{constructor(oe,Oe,ue,Te,be,re,Ce,Ye,rt,pt,gt){this.scrollStrategies=oe,this._overlayContainer=Oe,this._componentFactoryResolver=ue,this._positionBuilder=Te,this._keyboardDispatcher=be,this._injector=re,this._ngZone=Ce,this._document=Ye,this._directionality=rt,this._location=pt,this._outsideClickDispatcher=gt}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 Ze.\u0275fac=function(oe){return new(oe||Ze)(m.\u0275\u0275inject(ye),m.\u0275\u0275inject(X),m.\u0275\u0275inject(m.ComponentFactoryResolver),m.\u0275\u0275inject(ut),m.\u0275\u0275inject(Ne),m.\u0275\u0275inject(m.Injector),m.\u0275\u0275inject(m.NgZone),m.\u0275\u0275inject(d.DOCUMENT),m.\u0275\u0275inject(y.Is),m.\u0275\u0275inject(d.Location),m.\u0275\u0275inject(qe))},Ze.\u0275prov=m.\u0275\u0275defineInjectable({token:Ze,factory:Ze.\u0275fac}),Ze})();const Et={provide:new m.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[pe],useFactory:function vt(Ze){return()=>Ze.scrollStrategies.reposition()}};let At=(()=>{class Ze{}return Ze.\u0275fac=function(oe){return new(oe||Ze)},Ze.\u0275mod=m.\u0275\u0275defineNgModule({type:Ze}),Ze.\u0275inj=m.\u0275\u0275defineInjector({providers:[pe,Et],imports:[[y.vT,C.eL,i.Cl],i.Cl]}),Ze})()},925:(Be,_,l)=>{"use strict";l.d(_,{t4:()=>u,ud:()=>s,sA:()=>fe,ht:()=>Me,kV:()=>le,Oy:()=>ye,i$:()=>I,Mq:()=>R});var i=l(5e3),d=l(9808);let m;try{m="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(se){m=!1}let w,b,he,u=(()=>{class se{constructor(ke){this._platformId=ke,this.isBrowser=this._platformId?(0,d.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 I(se){return function f(){if(null==w&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>w=!0}))}finally{w=w||!1}return w}()?se:!!se.capture}function R(){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 V(){if(null==he){const se="undefined"!=typeof document?document.head:null;he=!(!se||!se.createShadowRoot&&!se.attachShadow)}return he}()){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 fe(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:(Be,_,l)=>{"use strict";l.d(_,{en:()=>b,ig:()=>V,Pl:()=>Me,C5:()=>f,u0:()=>j,eL:()=>ye,UE:()=>I});var i=l(5e3),d=l(9808);class w{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 f extends w{constructor(ke,et,lt,q){super(),this.component=ke,this.viewContainerRef=et,this.injector=lt,this.componentFactoryResolver=q}}class I extends w{constructor(ke,et,lt){super(),this.templateRef=ke,this.viewContainerRef=et,this.context=lt}get origin(){return this.templateRef.elementRef}attach(ke,et=this.context){return this.context=et,super.attach(ke)}detach(){return this.context=void 0,super.detach()}}class T extends w{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 f?(this._attachedPortal=ke,this.attachComponentPortal(ke)):ke instanceof I?(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 j extends b{constructor(ke,et,lt,q,Pe){super(),this.outletElement=ke,this._componentFactoryResolver=et,this._appRef=lt,this._defaultInjector=q,this.attachDomPortal=X=>{const ae=X.element,Ie=this._document.createComment("dom-portal");ae.parentNode.insertBefore(Ie,ae),this.outletElement.appendChild(ae),this._attachedPortal=X,super.setDisposeFn(()=>{Ie.parentNode&&Ie.parentNode.replaceChild(ae,Ie)})},this._document=Pe}attachComponentPortal(ke){const lt=(ke.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ke.component);let q;return ke.viewContainerRef?(q=ke.viewContainerRef.createComponent(lt,ke.viewContainerRef.length,ke.injector||ke.viewContainerRef.injector),this.setDisposeFn(()=>q.destroy())):(q=lt.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 et=ke.viewContainerRef,lt=et.createEmbeddedView(ke.templateRef,ke.context);return lt.rootNodes.forEach(q=>this.outletElement.appendChild(q)),lt.detectChanges(),this.setDisposeFn(()=>{let q=et.indexOf(lt);-1!==q&&et.remove(q)}),this._attachedPortal=ke,lt}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ke){return ke.hostView.rootNodes[0]}}let V=(()=>{class De extends I{constructor(et,lt){super(et,lt)}}return De.\u0275fac=function(et){return new(et||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(et,lt,q){super(),this._componentFactoryResolver=et,this._viewContainerRef=lt,this._isInitialized=!1,this.attached=new i.EventEmitter,this.attachDomPortal=Pe=>{const X=Pe.element,ae=this._document.createComment("dom-portal");Pe.setAttachedHost(this),X.parentNode.insertBefore(ae,X),this._getRootNode().appendChild(X),this._attachedPortal=Pe,super.setDisposeFn(()=>{ae.parentNode&&ae.parentNode.replaceChild(X,ae)})},this._document=q}get portal(){return this._attachedPortal}set portal(et){this.hasAttached()&&!et&&!this._isInitialized||(this.hasAttached()&&super.detach(),et&&super.attach(et),this._attachedPortal=et||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(et){et.setAttachedHost(this);const lt=null!=et.viewContainerRef?et.viewContainerRef:this._viewContainerRef,Pe=(et.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(et.component),X=lt.createComponent(Pe,lt.length,et.injector||lt.injector);return lt!==this._viewContainerRef&&this._getRootNode().appendChild(X.hostView.rootNodes[0]),super.setDisposeFn(()=>X.destroy()),this._attachedPortal=et,this._attachedRef=X,this.attached.emit(X),X}attachTemplatePortal(et){et.setAttachedHost(this);const lt=this._viewContainerRef.createEmbeddedView(et.templateRef,et.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=et,this._attachedRef=lt,this.attached.emit(lt),lt}_getRootNode(){const et=this._viewContainerRef.element.nativeElement;return et.nodeType===et.ELEMENT_NODE?et:et.parentNode}}return De.\u0275fac=function(et){return new(et||De)(i.\u0275\u0275directiveInject(i.ComponentFactoryResolver),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(d.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(et){return new(et||De)},De.\u0275mod=i.\u0275\u0275defineNgModule({type:De}),De.\u0275inj=i.\u0275\u0275defineInjector({}),De})()},9071:(Be,_,l)=>{"use strict";l.d(_,{ZD:()=>ae,mF:()=>ye,Cl:()=>Ie,rL:()=>ke});var i=l(3191),d=l(5e3),m=l(6758),u=l(9646),s=l(9751),y=l(4968),w=(l(29),l(3101),l(453)),f=l(9300),I=l(9808),T=l(925),b=l(226);let ye=(()=>{class ne{constructor(me,st,ve){this._ngZone=me,this._platform=st,this._scrolled=new m.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ve}register(me){this.scrollContainers.has(me)||this.scrollContainers.set(me,me.elementScrolled().subscribe(()=>this._scrolled.next(me)))}deregister(me){const st=this.scrollContainers.get(me);st&&(st.unsubscribe(),this.scrollContainers.delete(me))}scrolled(me=20){return this._platform.isBrowser?new s.y(st=>{this._globalSubscription||this._addGlobalListener();const ve=me>0?this._scrolled.pipe((0,w.e)(me)).subscribe(st):this._scrolled.subscribe(st);return this._scrolledCount++,()=>{ve.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,u.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((me,st)=>this.deregister(st)),this._scrolled.complete()}ancestorScrolled(me,st){const ve=this.getAncestorScrollContainers(me);return this.scrolled(st).pipe((0,f.h)(Ue=>!Ue||ve.indexOf(Ue)>-1))}getAncestorScrollContainers(me){const st=[];return this.scrollContainers.forEach((ve,Ue)=>{this._scrollableContainsElement(Ue,me)&&st.push(Ue)}),st}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(me,st){let ve=(0,i.fI)(st),Ue=me.getElementRef().nativeElement;do{if(ve==Ue)return!0}while(ve=ve.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const me=this._getWindow();return(0,y.R)(me.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ne.\u0275fac=function(me){return new(me||ne)(d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(T.t4),d.\u0275\u0275inject(I.DOCUMENT,8))},ne.\u0275prov=d.\u0275\u0275defineInjectable({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),ke=(()=>{class ne{constructor(me,st,ve){this._platform=me,this._change=new m.x,this._changeListener=Ue=>{this._change.next(Ue)},this._document=ve,st.runOutsideAngular(()=>{if(me.isBrowser){const Ue=this._getWindow();Ue.addEventListener("resize",this._changeListener),Ue.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const me=this._getWindow();me.removeEventListener("resize",this._changeListener),me.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const me={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),me}getViewportRect(){const me=this.getViewportScrollPosition(),{width:st,height:ve}=this.getViewportSize();return{top:me.top,left:me.left,bottom:me.top+ve,right:me.left+st,height:ve,width:st}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const me=this._document,st=this._getWindow(),ve=me.documentElement,Ue=ve.getBoundingClientRect();return{top:-Ue.top||me.body.scrollTop||st.scrollY||ve.scrollTop||0,left:-Ue.left||me.body.scrollLeft||st.scrollX||ve.scrollLeft||0}}change(me=20){return me>0?this._change.pipe((0,w.e)(me)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const me=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:me.innerWidth,height:me.innerHeight}:{width:0,height:0}}}return ne.\u0275fac=function(me){return new(me||ne)(d.\u0275\u0275inject(T.t4),d.\u0275\u0275inject(d.NgZone),d.\u0275\u0275inject(I.DOCUMENT,8))},ne.\u0275prov=d.\u0275\u0275defineInjectable({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})(),ae=(()=>{class ne{}return ne.\u0275fac=function(me){return new(me||ne)},ne.\u0275mod=d.\u0275\u0275defineNgModule({type:ne}),ne.\u0275inj=d.\u0275\u0275defineInjector({}),ne})(),Ie=(()=>{class ne{}return ne.\u0275fac=function(me){return new(me||ne)},ne.\u0275mod=d.\u0275\u0275defineNgModule({type:ne}),ne.\u0275inj=d.\u0275\u0275defineInjector({imports:[[b.vT,T.ud,ae],b.vT,ae]}),ne})()},9808:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{APP_BASE_HREF:()=>Me,AsyncPipe:()=>ji,CommonModule:()=>er,CurrencyPipe:()=>Ai,DATE_PIPE_DEFAULT_TIMEZONE:()=>cr,DOCUMENT:()=>C,DatePipe:()=>Ei,DecimalPipe:()=>ur,FormStyle:()=>X,FormatWidth:()=>Ie,HashLocationStrategy:()=>ye,I18nPluralPipe:()=>wr,I18nSelectPipe:()=>$i,JsonPipe:()=>Ii,KeyValuePipe:()=>Sr,LOCATION_INITIALIZED:()=>f,Location:()=>se,LocationStrategy:()=>V,LowerCasePipe:()=>Tr,NgClass:()=>ln,NgComponentOutlet:()=>jn,NgForOf:()=>In,NgForOfContext:()=>$n,NgIf:()=>An,NgIfContext:()=>mn,NgLocaleLocalization:()=>Cn,NgLocalization:()=>Nt,NgPlural:()=>fi,NgPluralCase:()=>Hn,NgStyle:()=>Dr,NgSwitch:()=>Wn,NgSwitchCase:()=>zn,NgSwitchDefault:()=>bi,NgTemplateOutlet:()=>Xi,NumberFormatStyle:()=>q,NumberSymbol:()=>ne,PathLocationStrategy:()=>fe,PercentPipe:()=>pi,PlatformLocation:()=>D,Plural:()=>Pe,SlicePipe:()=>gi,TitleCasePipe:()=>Vi,TranslationWidth:()=>ae,UpperCasePipe:()=>ui,VERSION:()=>Ir,ViewportScroller:()=>Gi,WeekDay:()=>Ke,XhrFactory:()=>On,formatCurrency:()=>Ln,formatDate:()=>jt,formatNumber:()=>Se,formatPercent:()=>H,getCurrencySymbol:()=>Te,getLocaleCurrencyCode:()=>vt,getLocaleCurrencyName:()=>Je,getLocaleCurrencySymbol:()=>ge,getLocaleDateFormat:()=>qe,getLocaleDateTimeFormat:()=>pe,getLocaleDayNames:()=>ve,getLocaleDayPeriods:()=>st,getLocaleDirection:()=>oe,getLocaleEraNames:()=>ut,getLocaleExtraDayPeriodRules:()=>Ze,getLocaleExtraDayPeriods:()=>N,getLocaleFirstDayOfWeek:()=>Tt,getLocaleId:()=>me,getLocaleMonthNames:()=>Ue,getLocaleNumberFormat:()=>xe,getLocaleNumberSymbol:()=>we,getLocalePluralCase:()=>At,getLocaleTimeFormat:()=>Y,getLocaleWeekEndRange:()=>Ne,getNumberOfCurrencyDigits:()=>re,isPlatformBrowser:()=>Qn,isPlatformServer:()=>zi,isPlatformWorkerApp:()=>Ki,isPlatformWorkerUi:()=>Oi,registerLocaleData:()=>Bt,\u0275BrowserPlatformLocation:()=>I,\u0275DomAdapter:()=>y,\u0275NullViewportScroller:()=>Lr,\u0275PLATFORM_BROWSER_ID:()=>Wi,\u0275PLATFORM_SERVER_ID:()=>tr,\u0275PLATFORM_WORKER_APP_ID:()=>oi,\u0275PLATFORM_WORKER_UI_ID:()=>dr,\u0275getDOM:()=>m,\u0275parseCookieValue:()=>Pn,\u0275setRootDomAdapter:()=>s});var i=l(5e3);let d=null;function m(){return d}function s(F){d||(d=F)}class y{}const C=new i.InjectionToken("DocumentToken");let D=(()=>{class F{historyGo(x){throw new Error("Not implemented")}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:function(){return function w(){return(0,i.\u0275\u0275inject)(I)}()},providedIn:"platform"}),F})();const f=new i.InjectionToken("Location Initialized");let I=(()=>{class F extends D{constructor(x){super(),this._doc=x,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return m().getBaseHref(this._doc)}onPopState(x){const ie=m().getGlobalEventTarget(this._doc,"window");return ie.addEventListener("popstate",x,!1),()=>ie.removeEventListener("popstate",x)}onHashChange(x){const ie=m().getGlobalEventTarget(this._doc,"window");return ie.addEventListener("hashchange",x,!1),()=>ie.removeEventListener("hashchange",x)}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(x){this.location.pathname=x}pushState(x,ie,ze){T()?this._history.pushState(x,ie,ze):this.location.hash=ze}replaceState(x,ie,ze){T()?this._history.replaceState(x,ie,ze):this.location.hash=ze}forward(){this._history.forward()}back(){this._history.back()}historyGo(x=0){this._history.go(x)}getState(){return this._history.state}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275inject(C))},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:function(){return function b(){return new I((0,i.\u0275\u0275inject)(C))}()},providedIn:"platform"}),F})();function T(){return!!window.history.pushState}function R(F,Z){if(0==F.length)return Z;if(0==Z.length)return F;let x=0;return F.endsWith("/")&&x++,Z.startsWith("/")&&x++,2==x?F+Z.substring(1):1==x?F+Z:F+"/"+Z}function j(F){const Z=F.match(/#|\?|$/),x=Z&&Z.index||F.length;return F.slice(0,x-("/"===F[x-1]?1:0))+F.slice(x)}function he(F){return F&&"?"!==F[0]?"?"+F:F}let V=(()=>{class F{historyGo(x){throw new Error("Not implemented")}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:function(){return function le(F){const Z=(0,i.\u0275\u0275inject)(C).location;return new fe((0,i.\u0275\u0275inject)(D),Z&&Z.origin||"")}()},providedIn:"root"}),F})();const Me=new i.InjectionToken("appBaseHref");let fe=(()=>{class F extends V{constructor(x,ie){if(super(),this._platformLocation=x,this._removeListenerFns=[],null==ie&&(ie=this._platformLocation.getBaseHrefFromDOM()),null==ie)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=ie}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(x){this._removeListenerFns.push(this._platformLocation.onPopState(x),this._platformLocation.onHashChange(x))}getBaseHref(){return this._baseHref}prepareExternalUrl(x){return R(this._baseHref,x)}path(x=!1){const ie=this._platformLocation.pathname+he(this._platformLocation.search),ze=this._platformLocation.hash;return ze&&x?`${ie}${ze}`:ie}pushState(x,ie,ze,dt){const Ct=this.prepareExternalUrl(ze+he(dt));this._platformLocation.pushState(x,ie,Ct)}replaceState(x,ie,ze,dt){const Ct=this.prepareExternalUrl(ze+he(dt));this._platformLocation.replaceState(x,ie,Ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(x=0){var ie,ze;null===(ze=(ie=this._platformLocation).historyGo)||void 0===ze||ze.call(ie,x)}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275inject(D),i.\u0275\u0275inject(Me,8))},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac}),F})(),ye=(()=>{class F extends V{constructor(x,ie){super(),this._platformLocation=x,this._baseHref="",this._removeListenerFns=[],null!=ie&&(this._baseHref=ie)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(x){this._removeListenerFns.push(this._platformLocation.onPopState(x),this._platformLocation.onHashChange(x))}getBaseHref(){return this._baseHref}path(x=!1){let ie=this._platformLocation.hash;return null==ie&&(ie="#"),ie.length>0?ie.substring(1):ie}prepareExternalUrl(x){const ie=R(this._baseHref,x);return ie.length>0?"#"+ie:ie}pushState(x,ie,ze,dt){let Ct=this.prepareExternalUrl(ze+he(dt));0==Ct.length&&(Ct=this._platformLocation.pathname),this._platformLocation.pushState(x,ie,Ct)}replaceState(x,ie,ze,dt){let Ct=this.prepareExternalUrl(ze+he(dt));0==Ct.length&&(Ct=this._platformLocation.pathname),this._platformLocation.replaceState(x,ie,Ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(x=0){var ie,ze;null===(ze=(ie=this._platformLocation).historyGo)||void 0===ze||ze.call(ie,x)}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275inject(D),i.\u0275\u0275inject(Me,8))},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac}),F})(),se=(()=>{class F{constructor(x,ie){this._subject=new i.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=x;const ze=this._platformStrategy.getBaseHref();this._platformLocation=ie,this._baseHref=j(et(ze)),this._platformStrategy.onPopState(dt=>{this._subject.emit({url:this.path(!0),pop:!0,state:dt.state,type:dt.type})})}path(x=!1){return this.normalize(this._platformStrategy.path(x))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(x,ie=""){return this.path()==this.normalize(x+he(ie))}normalize(x){return F.stripTrailingSlash(function ke(F,Z){return F&&Z.startsWith(F)?Z.substring(F.length):Z}(this._baseHref,et(x)))}prepareExternalUrl(x){return x&&"/"!==x[0]&&(x="/"+x),this._platformStrategy.prepareExternalUrl(x)}go(x,ie="",ze=null){this._platformStrategy.pushState(ze,"",x,ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(x+he(ie)),ze)}replaceState(x,ie="",ze=null){this._platformStrategy.replaceState(ze,"",x,ie),this._notifyUrlChangeListeners(this.prepareExternalUrl(x+he(ie)),ze)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(x=0){var ie,ze;null===(ze=(ie=this._platformStrategy).historyGo)||void 0===ze||ze.call(ie,x)}onUrlChange(x){this._urlChangeListeners.push(x),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(ie=>{this._notifyUrlChangeListeners(ie.url,ie.state)}))}_notifyUrlChangeListeners(x="",ie){this._urlChangeListeners.forEach(ze=>ze(x,ie))}subscribe(x,ie,ze){return this._subject.subscribe({next:x,error:ie,complete:ze})}}return F.normalizeQueryParams=he,F.joinWithSlash=R,F.stripTrailingSlash=j,F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275inject(V),i.\u0275\u0275inject(D))},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:function(){return function De(){return new se((0,i.\u0275\u0275inject)(V),(0,i.\u0275\u0275inject)(D))}()},providedIn:"root"}),F})();function et(F){return F.replace(/\/index.html$/,"")}const lt={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))(),X=(()=>((X=X||{})[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X))(),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))(),ne=(()=>((ne=ne||{})[ne.Decimal=0]="Decimal",ne[ne.Group=1]="Group",ne[ne.List=2]="List",ne[ne.PercentSign=3]="PercentSign",ne[ne.PlusSign=4]="PlusSign",ne[ne.MinusSign=5]="MinusSign",ne[ne.Exponential=6]="Exponential",ne[ne.SuperscriptingExponent=7]="SuperscriptingExponent",ne[ne.PerMille=8]="PerMille",ne[ne.Infinity=9]="Infinity",ne[ne.NaN=10]="NaN",ne[ne.TimeSeparator=11]="TimeSeparator",ne[ne.CurrencyDecimal=12]="CurrencyDecimal",ne[ne.CurrencyGroup=13]="CurrencyGroup",ne))(),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 me(F){return(0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.LocaleId]}function st(F,Z,x){const ie=(0,i.\u0275findLocaleData)(F),dt=Oe([ie[i.\u0275LocaleDataIndex.DayPeriodsFormat],ie[i.\u0275LocaleDataIndex.DayPeriodsStandalone]],Z);return Oe(dt,x)}function ve(F,Z,x){const ie=(0,i.\u0275findLocaleData)(F),dt=Oe([ie[i.\u0275LocaleDataIndex.DaysFormat],ie[i.\u0275LocaleDataIndex.DaysStandalone]],Z);return Oe(dt,x)}function Ue(F,Z,x){const ie=(0,i.\u0275findLocaleData)(F),dt=Oe([ie[i.\u0275LocaleDataIndex.MonthsFormat],ie[i.\u0275LocaleDataIndex.MonthsStandalone]],Z);return Oe(dt,x)}function ut(F,Z){return Oe((0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.Eras],Z)}function Tt(F){return(0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.FirstDayOfWeek]}function Ne(F){return(0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.WeekendRange]}function qe(F,Z){return Oe((0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.DateFormat],Z)}function Y(F,Z){return Oe((0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.TimeFormat],Z)}function pe(F,Z){return Oe((0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.DateTimeFormat],Z)}function we(F,Z){const x=(0,i.\u0275findLocaleData)(F),ie=x[i.\u0275LocaleDataIndex.NumberSymbols][Z];if(void 0===ie){if(Z===ne.CurrencyDecimal)return x[i.\u0275LocaleDataIndex.NumberSymbols][ne.Decimal];if(Z===ne.CurrencyGroup)return x[i.\u0275LocaleDataIndex.NumberSymbols][ne.Group]}return ie}function xe(F,Z){return(0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.NumberFormats][Z]}function ge(F){return(0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.CurrencySymbol]||null}function Je(F){return(0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.CurrencyName]||null}function vt(F){return(0,i.\u0275getLocaleCurrencyCode)(F)}const At=i.\u0275getLocalePluralCase;function ht(F){if(!F[i.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${F[i.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ze(F){const Z=(0,i.\u0275findLocaleData)(F);return ht(Z),(Z[i.\u0275LocaleDataIndex.ExtraData][2]||[]).map(ie=>"string"==typeof ie?ue(ie):[ue(ie[0]),ue(ie[1])])}function N(F,Z,x){const ie=(0,i.\u0275findLocaleData)(F);ht(ie);const dt=Oe([ie[i.\u0275LocaleDataIndex.ExtraData][0],ie[i.\u0275LocaleDataIndex.ExtraData][1]],Z)||[];return Oe(dt,x)||[]}function oe(F){return(0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.Directionality]}function Oe(F,Z){for(let x=Z;x>-1;x--)if(void 0!==F[x])return F[x];throw new Error("Locale data API: locale data undefined")}function ue(F){const[Z,x]=F.split(":");return{hours:+Z,minutes:+x}}function Te(F,Z,x="en"){const ie=function Et(F){return(0,i.\u0275findLocaleData)(F)[i.\u0275LocaleDataIndex.Currencies]}(x)[F]||lt[F]||[],ze=ie[1];return"narrow"===Z&&"string"==typeof ze?ze:ie[0]||F}function re(F){let Z;const x=lt[F];return x&&(Z=x[2]),"number"==typeof Z?Z:2}const Ce=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Ye={},rt=/((?:[^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 pt=(()=>((pt=pt||{})[pt.Short=0]="Short",pt[pt.ShortGMT=1]="ShortGMT",pt[pt.Long=2]="Long",pt[pt.Extended=3]="Extended",pt))(),gt=(()=>((gt=gt||{})[gt.FullYear=0]="FullYear",gt[gt.Month=1]="Month",gt[gt.Date=2]="Date",gt[gt.Hours=3]="Hours",gt[gt.Minutes=4]="Minutes",gt[gt.Seconds=5]="Seconds",gt[gt.FractionalSeconds=6]="FractionalSeconds",gt[gt.Day=7]="Day",gt))(),Mt=(()=>((Mt=Mt||{})[Mt.DayPeriods=0]="DayPeriods",Mt[Mt.Days=1]="Days",Mt[Mt.Months=2]="Months",Mt[Mt.Eras=3]="Eras",Mt))();function jt(F,Z,x,ie){let ze=function $e(F){if(Ve(F))return F;if("number"==typeof F&&!isNaN(F))return new Date(F);if("string"==typeof F){if(F=F.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(F)){const[ze,dt=1,Ct=1]=F.split("-").map(Ut=>+Ut);return tn(ze,dt-1,Ct)}const x=parseFloat(F);if(!isNaN(F-x))return new Date(x);let ie;if(ie=F.match(Ce))return function de(F){const Z=new Date(0);let x=0,ie=0;const ze=F[8]?Z.setUTCFullYear:Z.setFullYear,dt=F[8]?Z.setUTCHours:Z.setHours;F[9]&&(x=Number(F[9]+F[10]),ie=Number(F[9]+F[11])),ze.call(Z,Number(F[1]),Number(F[2])-1,Number(F[3]));const Ct=Number(F[4]||0)-x,Ut=Number(F[5]||0)-ie,wn=Number(F[6]||0),yn=Math.floor(1e3*parseFloat("0."+(F[7]||0)));return dt.call(Z,Ct,Ut,wn,yn),Z}(ie)}const Z=new Date(F);if(!Ve(Z))throw new Error(`Unable to convert "${F}" into a date`);return Z}(F);Z=Vt(x,Z)||Z;let Ut,Ct=[];for(;Z;){if(Ut=rt.exec(Z),!Ut){Ct.push(Z);break}{Ct=Ct.concat(Ut.slice(1));const hn=Ct.pop();if(!hn)break;Z=hn}}let wn=ze.getTimezoneOffset();ie&&(wn=kt(ie,wn),ze=function Fe(F,Z,x){const ie=x?-1:1,ze=F.getTimezoneOffset();return function Ht(F,Z){return(F=new Date(F.getTime())).setMinutes(F.getMinutes()+Z),F}(F,ie*(kt(Z,ze)-ze))}(ze,ie,!0));let yn="";return Ct.forEach(hn=>{const _n=function ot(F){if(_e[F])return _e[F];let Z;switch(F){case"G":case"GG":case"GGG":Z=Jt(Mt.Eras,ae.Abbreviated);break;case"GGGG":Z=Jt(Mt.Eras,ae.Wide);break;case"GGGGG":Z=Jt(Mt.Eras,ae.Narrow);break;case"y":Z=wt(gt.FullYear,1,0,!1,!0);break;case"yy":Z=wt(gt.FullYear,2,0,!0,!0);break;case"yyy":Z=wt(gt.FullYear,3,0,!1,!0);break;case"yyyy":Z=wt(gt.FullYear,4,0,!1,!0);break;case"Y":Z=O(1);break;case"YY":Z=O(2,!0);break;case"YYY":Z=O(3);break;case"YYYY":Z=O(4);break;case"M":case"L":Z=wt(gt.Month,1,1);break;case"MM":case"LL":Z=wt(gt.Month,2,1);break;case"MMM":Z=Jt(Mt.Months,ae.Abbreviated);break;case"MMMM":Z=Jt(Mt.Months,ae.Wide);break;case"MMMMM":Z=Jt(Mt.Months,ae.Narrow);break;case"LLL":Z=Jt(Mt.Months,ae.Abbreviated,X.Standalone);break;case"LLLL":Z=Jt(Mt.Months,ae.Wide,X.Standalone);break;case"LLLLL":Z=Jt(Mt.Months,ae.Narrow,X.Standalone);break;case"w":Z=g(1);break;case"ww":Z=g(2);break;case"W":Z=g(1,!0);break;case"d":Z=wt(gt.Date,1);break;case"dd":Z=wt(gt.Date,2);break;case"c":case"cc":Z=wt(gt.Day,1);break;case"ccc":Z=Jt(Mt.Days,ae.Abbreviated,X.Standalone);break;case"cccc":Z=Jt(Mt.Days,ae.Wide,X.Standalone);break;case"ccccc":Z=Jt(Mt.Days,ae.Narrow,X.Standalone);break;case"cccccc":Z=Jt(Mt.Days,ae.Short,X.Standalone);break;case"E":case"EE":case"EEE":Z=Jt(Mt.Days,ae.Abbreviated);break;case"EEEE":Z=Jt(Mt.Days,ae.Wide);break;case"EEEEE":Z=Jt(Mt.Days,ae.Narrow);break;case"EEEEEE":Z=Jt(Mt.Days,ae.Short);break;case"a":case"aa":case"aaa":Z=Jt(Mt.DayPeriods,ae.Abbreviated);break;case"aaaa":Z=Jt(Mt.DayPeriods,ae.Wide);break;case"aaaaa":Z=Jt(Mt.DayPeriods,ae.Narrow);break;case"b":case"bb":case"bbb":Z=Jt(Mt.DayPeriods,ae.Abbreviated,X.Standalone,!0);break;case"bbbb":Z=Jt(Mt.DayPeriods,ae.Wide,X.Standalone,!0);break;case"bbbbb":Z=Jt(Mt.DayPeriods,ae.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":Z=Jt(Mt.DayPeriods,ae.Abbreviated,X.Format,!0);break;case"BBBB":Z=Jt(Mt.DayPeriods,ae.Wide,X.Format,!0);break;case"BBBBB":Z=Jt(Mt.DayPeriods,ae.Narrow,X.Format,!0);break;case"h":Z=wt(gt.Hours,1,-12);break;case"hh":Z=wt(gt.Hours,2,-12);break;case"H":Z=wt(gt.Hours,1);break;case"HH":Z=wt(gt.Hours,2);break;case"m":Z=wt(gt.Minutes,1);break;case"mm":Z=wt(gt.Minutes,2);break;case"s":Z=wt(gt.Seconds,1);break;case"ss":Z=wt(gt.Seconds,2);break;case"S":Z=wt(gt.FractionalSeconds,1);break;case"SS":Z=wt(gt.FractionalSeconds,2);break;case"SSS":Z=wt(gt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Z=Ge(pt.Short);break;case"ZZZZZ":Z=Ge(pt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Z=Ge(pt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Z=Ge(pt.Long);break;default:return null}return _e[F]=Z,Z}(hn);yn+=_n?_n(ze,x,wn):"''"===hn?"'":hn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),yn}function tn(F,Z,x){const ie=new Date(0);return ie.setFullYear(F,Z,x),ie.setHours(0,0,0),ie}function Vt(F,Z){const x=me(F);if(Ye[x]=Ye[x]||{},Ye[x][Z])return Ye[x][Z];let ie="";switch(Z){case"shortDate":ie=qe(F,Ie.Short);break;case"mediumDate":ie=qe(F,Ie.Medium);break;case"longDate":ie=qe(F,Ie.Long);break;case"fullDate":ie=qe(F,Ie.Full);break;case"shortTime":ie=Y(F,Ie.Short);break;case"mediumTime":ie=Y(F,Ie.Medium);break;case"longTime":ie=Y(F,Ie.Long);break;case"fullTime":ie=Y(F,Ie.Full);break;case"short":const ze=Vt(F,"shortTime"),dt=Vt(F,"shortDate");ie=Tn(pe(F,Ie.Short),[ze,dt]);break;case"medium":const Ct=Vt(F,"mediumTime"),Ut=Vt(F,"mediumDate");ie=Tn(pe(F,Ie.Medium),[Ct,Ut]);break;case"long":const wn=Vt(F,"longTime"),yn=Vt(F,"longDate");ie=Tn(pe(F,Ie.Long),[wn,yn]);break;case"full":const hn=Vt(F,"fullTime"),_n=Vt(F,"fullDate");ie=Tn(pe(F,Ie.Full),[hn,_n])}return ie&&(Ye[x][Z]=ie),ie}function Tn(F,Z){return Z&&(F=F.replace(/\{([^}]+)}/g,function(x,ie){return null!=Z&&ie in Z?Z[ie]:x})),F}function rn(F,Z,x="-",ie,ze){let dt="";(F<0||ze&&F<=0)&&(ze?F=1-F:(F=-F,dt=x));let Ct=String(F);for(;Ct.length<Z;)Ct="0"+Ct;return ie&&(Ct=Ct.substr(Ct.length-Z)),dt+Ct}function wt(F,Z,x=0,ie=!1,ze=!1){return function(dt,Ct){let Ut=function bn(F,Z){switch(F){case gt.FullYear:return Z.getFullYear();case gt.Month:return Z.getMonth();case gt.Date:return Z.getDate();case gt.Hours:return Z.getHours();case gt.Minutes:return Z.getMinutes();case gt.Seconds:return Z.getSeconds();case gt.FractionalSeconds:return Z.getMilliseconds();case gt.Day:return Z.getDay();default:throw new Error(`Unknown DateType value "${F}".`)}}(F,dt);if((x>0||Ut>-x)&&(Ut+=x),F===gt.Hours)0===Ut&&-12===x&&(Ut=12);else if(F===gt.FractionalSeconds)return function zt(F,Z){return rn(F,3).substr(0,Z)}(Ut,Z);const wn=we(Ct,ne.MinusSign);return rn(Ut,Z,wn,ie,ze)}}function Jt(F,Z,x=X.Format,ie=!1){return function(ze,dt){return function on(F,Z,x,ie,ze,dt){switch(x){case Mt.Months:return Ue(Z,ze,ie)[F.getMonth()];case Mt.Days:return ve(Z,ze,ie)[F.getDay()];case Mt.DayPeriods:const Ct=F.getHours(),Ut=F.getMinutes();if(dt){const yn=Ze(Z),hn=N(Z,ze,ie),_n=yn.findIndex(Bn=>{if(Array.isArray(Bn)){const[k,A]=Bn,S=Ct>=k.hours&&Ut>=k.minutes,J=Ct<A.hours||Ct===A.hours&&Ut<A.minutes;if(k.hours<A.hours){if(S&&J)return!0}else if(S||J)return!0}else if(Bn.hours===Ct&&Bn.minutes===Ut)return!0;return!1});if(-1!==_n)return hn[_n]}return st(Z,ze,ie)[Ct<12?0:1];case Mt.Eras:return ut(Z,ie)[F.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${x}`)}}(ze,dt,F,Z,x,ie)}}function Ge(F){return function(Z,x,ie){const ze=-1*ie,dt=we(x,ne.MinusSign),Ct=ze>0?Math.floor(ze/60):Math.ceil(ze/60);switch(F){case pt.Short:return(ze>=0?"+":"")+rn(Ct,2,dt)+rn(Math.abs(ze%60),2,dt);case pt.ShortGMT:return"GMT"+(ze>=0?"+":"")+rn(Ct,1,dt);case pt.Long:return"GMT"+(ze>=0?"+":"")+rn(Ct,2,dt)+":"+rn(Math.abs(ze%60),2,dt);case pt.Extended:return 0===ie?"Z":(ze>=0?"+":"")+rn(Ct,2,dt)+":"+rn(Math.abs(ze%60),2,dt);default:throw new Error(`Unknown zone width "${F}"`)}}}function L(F){return tn(F.getFullYear(),F.getMonth(),F.getDate()+(4-F.getDay()))}function g(F,Z=!1){return function(x,ie){let ze;if(Z){const dt=new Date(x.getFullYear(),x.getMonth(),1).getDay()-1,Ct=x.getDate();ze=1+Math.floor((Ct+dt)/7)}else{const dt=L(x),Ct=function P(F){const Z=tn(F,0,1).getDay();return tn(F,0,1+(Z<=4?4:11)-Z)}(dt.getFullYear()),Ut=dt.getTime()-Ct.getTime();ze=1+Math.round(Ut/6048e5)}return rn(ze,F,we(ie,ne.MinusSign))}}function O(F,Z=!1){return function(x,ie){return rn(L(x).getFullYear(),F,we(ie,ne.MinusSign),Z)}}const _e={};function kt(F,Z){F=F.replace(/:/g,"");const x=Date.parse("Jan 01, 1970 00:00:00 "+F)/6e4;return isNaN(x)?Z:x}function Ve(F){return F instanceof Date&&!isNaN(F.valueOf())}const ft=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Un(F,Z,x,ie,ze,dt,Ct=!1){let Ut="",wn=!1;if(isFinite(F)){let yn=function tt(F){let ie,ze,dt,Ct,Ut,Z=Math.abs(F)+"",x=0;for((ze=Z.indexOf("."))>-1&&(Z=Z.replace(".","")),(dt=Z.search(/e/i))>0?(ze<0&&(ze=dt),ze+=+Z.slice(dt+1),Z=Z.substring(0,dt)):ze<0&&(ze=Z.length),dt=0;"0"===Z.charAt(dt);dt++);if(dt===(Ut=Z.length))ie=[0],ze=1;else{for(Ut--;"0"===Z.charAt(Ut);)Ut--;for(ze-=dt,ie=[],Ct=0;dt<=Ut;dt++,Ct++)ie[Ct]=Number(Z.charAt(dt))}return ze>22&&(ie=ie.splice(0,21),x=ze-1,ze=1),{digits:ie,exponent:x,integerLen:ze}}(F);Ct&&(yn=function Ae(F){if(0===F.digits[0])return F;const Z=F.digits.length-F.integerLen;return F.exponent?F.exponent+=2:(0===Z?F.digits.push(0,0):1===Z&&F.digits.push(0),F.integerLen+=2),F}(yn));let hn=Z.minInt,_n=Z.minFrac,Bn=Z.maxFrac;if(dt){const Wt=dt.match(ft);if(null===Wt)throw new Error(`${dt} is not a valid digit info`);const Fn=Wt[1],Xn=Wt[3],xi=Wt[5];null!=Fn&&(hn=St(Fn)),null!=Xn&&(_n=St(Xn)),null!=xi?Bn=St(xi):null!=Xn&&_n>Bn&&(Bn=_n)}!function ct(F,Z,x){if(Z>x)throw new Error(`The minimum number of digits after fraction (${Z}) is higher than the maximum (${x}).`);let ie=F.digits,ze=ie.length-F.integerLen;const dt=Math.min(Math.max(Z,ze),x);let Ct=dt+F.integerLen,Ut=ie[Ct];if(Ct>0){ie.splice(Math.max(F.integerLen,Ct));for(let _n=Ct;_n<ie.length;_n++)ie[_n]=0}else{ze=Math.max(0,ze),F.integerLen=1,ie.length=Math.max(1,Ct=dt+1),ie[0]=0;for(let _n=1;_n<Ct;_n++)ie[_n]=0}if(Ut>=5)if(Ct-1<0){for(let _n=0;_n>Ct;_n--)ie.unshift(0),F.integerLen++;ie.unshift(1),F.integerLen++}else ie[Ct-1]++;for(;ze<Math.max(0,dt);ze++)ie.push(0);let wn=0!==dt;const yn=Z+F.integerLen,hn=ie.reduceRight(function(_n,Bn,k,A){return A[k]=(Bn+=_n)<10?Bn:Bn-10,wn&&(0===A[k]&&k>=yn?A.pop():wn=!1),Bn>=10?1:0},0);hn&&(ie.unshift(hn),F.integerLen++)}(yn,_n,Bn);let k=yn.digits,A=yn.integerLen;const S=yn.exponent;let J=[];for(wn=k.every(Wt=>!Wt);A<hn;A++)k.unshift(0);for(;A<0;A++)k.unshift(0);A>0?J=k.splice(A,k.length):(J=k,k=[0]);const Xe=[];for(k.length>=Z.lgSize&&Xe.unshift(k.splice(-Z.lgSize,k.length).join(""));k.length>Z.gSize;)Xe.unshift(k.splice(-Z.gSize,k.length).join(""));k.length&&Xe.unshift(k.join("")),Ut=Xe.join(we(x,ie)),J.length&&(Ut+=we(x,ze)+J.join("")),S&&(Ut+=we(x,ne.Exponential)+"+"+S)}else Ut=we(x,ne.Infinity);return Ut=F<0&&!wn?Z.negPre+Ut+Z.negSuf:Z.posPre+Ut+Z.posSuf,Ut}function Ln(F,Z,x,ie,ze){const Ct=z(xe(Z,q.Currency),we(Z,ne.MinusSign));return Ct.minFrac=re(ie),Ct.maxFrac=Ct.minFrac,Un(F,Ct,Z,ne.CurrencyGroup,ne.CurrencyDecimal,ze).replace("\xa4",x).replace("\xa4","").trim()}function H(F,Z,x){return Un(F,z(xe(Z,q.Percent),we(Z,ne.MinusSign)),Z,ne.Group,ne.Decimal,x,!0).replace(new RegExp("%","g"),we(Z,ne.PercentSign))}function Se(F,Z,x){return Un(F,z(xe(Z,q.Decimal),we(Z,ne.MinusSign)),Z,ne.Group,ne.Decimal,x)}function z(F,Z="-"){const x={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},ie=F.split(";"),ze=ie[0],dt=ie[1],Ct=-1!==ze.indexOf(".")?ze.split("."):[ze.substring(0,ze.lastIndexOf("0")+1),ze.substring(ze.lastIndexOf("0")+1)],Ut=Ct[0],wn=Ct[1]||"";x.posPre=Ut.substr(0,Ut.indexOf("#"));for(let hn=0;hn<wn.length;hn++){const _n=wn.charAt(hn);"0"===_n?x.minFrac=x.maxFrac=hn+1:"#"===_n?x.maxFrac=hn+1:x.posSuf+=_n}const yn=Ut.split(",");if(x.gSize=yn[1]?yn[1].length:0,x.lgSize=yn[2]||yn[1]?(yn[2]||yn[1]).length:0,dt){const hn=ze.length-x.posPre.length-x.posSuf.length,_n=dt.indexOf("#");x.negPre=dt.substr(0,_n).replace(/'/g,""),x.negSuf=dt.substr(_n+hn).replace(/'/g,"")}else x.negPre=Z+x.posPre,x.negSuf=x.posSuf;return x}function St(F){const Z=parseInt(F);if(isNaN(Z))throw new Error("Invalid integer literal when parsing "+F);return Z}class Nt{}function qt(F,Z,x,ie){let ze=`=${F}`;if(Z.indexOf(ze)>-1||(ze=x.getPluralCategory(F,ie),Z.indexOf(ze)>-1))return ze;if(Z.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${F}"`)}let Cn=(()=>{class F extends Nt{constructor(x){super(),this.locale=x}getPluralCategory(x,ie){switch(At(ie||this.locale)(x)){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 F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275inject(i.LOCALE_ID))},F.\u0275prov=i.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac}),F})();function Bt(F,Z,x){return(0,i.\u0275registerLocaleData)(F,Z,x)}function Pn(F,Z){Z=encodeURIComponent(Z);for(const x of F.split(";")){const ie=x.indexOf("="),[ze,dt]=-1==ie?[x,""]:[x.slice(0,ie),x.slice(ie+1)];if(ze.trim()===Z)return decodeURIComponent(dt)}return null}let ln=(()=>{class F{constructor(x,ie,ze,dt){this._iterableDiffers=x,this._keyValueDiffers=ie,this._ngEl=ze,this._renderer=dt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(x){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof x?x.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(x){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof x?x.split(/\s+/):x,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 x=this._iterableDiffer.diff(this._rawClass);x&&this._applyIterableChanges(x)}else if(this._keyValueDiffer){const x=this._keyValueDiffer.diff(this._rawClass);x&&this._applyKeyValueChanges(x)}}_applyKeyValueChanges(x){x.forEachAddedItem(ie=>this._toggleClass(ie.key,ie.currentValue)),x.forEachChangedItem(ie=>this._toggleClass(ie.key,ie.currentValue)),x.forEachRemovedItem(ie=>{ie.previousValue&&this._toggleClass(ie.key,!1)})}_applyIterableChanges(x){x.forEachAddedItem(ie=>{if("string"!=typeof ie.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,i.\u0275stringify)(ie.item)}`);this._toggleClass(ie.item,!0)}),x.forEachRemovedItem(ie=>this._toggleClass(ie.item,!1))}_applyClasses(x){x&&(Array.isArray(x)||x instanceof Set?x.forEach(ie=>this._toggleClass(ie,!0)):Object.keys(x).forEach(ie=>this._toggleClass(ie,!!x[ie])))}_removeClasses(x){x&&(Array.isArray(x)||x instanceof Set?x.forEach(ie=>this._toggleClass(ie,!1)):Object.keys(x).forEach(ie=>this._toggleClass(ie,!1)))}_toggleClass(x,ie){(x=x.trim())&&x.split(/\s+/g).forEach(ze=>{ie?this._renderer.addClass(this._ngEl.nativeElement,ze):this._renderer.removeClass(this._ngEl.nativeElement,ze)})}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),F})(),jn=(()=>{class F{constructor(x){this._viewContainerRef=x,this._componentRef=null,this._moduleRef=null}ngOnChanges(x){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const ie=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(x.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const Ct=ie.get(i.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(Ct.injector)}else this._moduleRef=null;const dt=(this._moduleRef?this._moduleRef.componentFactoryResolver:ie.get(i.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(dt,this._viewContainerRef.length,ie,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[i.\u0275\u0275NgOnChangesFeature]}),F})();class $n{constructor(Z,x,ie,ze){this.$implicit=Z,this.ngForOf=x,this.index=ie,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 In=(()=>{class F{constructor(x,ie,ze){this._viewContainer=x,this._template=ie,this._differs=ze,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(x){this._ngForOf=x,this._ngForOfDirty=!0}set ngForTrackBy(x){this._trackByFn=x}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(x){x&&(this._template=x)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const x=this._ngForOf;!this._differ&&x&&(this._differ=this._differs.find(x).create(this.ngForTrackBy))}if(this._differ){const x=this._differ.diff(this._ngForOf);x&&this._applyChanges(x)}}_applyChanges(x){const ie=this._viewContainer;x.forEachOperation((ze,dt,Ct)=>{if(null==ze.previousIndex)ie.createEmbeddedView(this._template,new $n(ze.item,this._ngForOf,-1,-1),null===Ct?void 0:Ct);else if(null==Ct)ie.remove(null===dt?void 0:dt);else if(null!==dt){const Ut=ie.get(dt);ie.move(Ut,Ct),Rn(Ut,ze)}});for(let ze=0,dt=ie.length;ze<dt;ze++){const Ut=ie.get(ze).context;Ut.index=ze,Ut.count=dt,Ut.ngForOf=this._ngForOf}x.forEachIdentityChange(ze=>{Rn(ie.get(ze.currentIndex),ze)})}static ngTemplateContextGuard(x,ie){return!0}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),F})();function Rn(F,Z){F.context.$implicit=Z.item}let An=(()=>{class F{constructor(x,ie){this._viewContainer=x,this._context=new mn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=ie}set ngIf(x){this._context.$implicit=this._context.ngIf=x,this._updateView()}set ngIfThen(x){ti("ngIfThen",x),this._thenTemplateRef=x,this._thenViewRef=null,this._updateView()}set ngIfElse(x){ti("ngIfElse",x),this._elseTemplateRef=x,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(x,ie){return!0}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),F})();class mn{constructor(){this.$implicit=null,this.ngIf=null}}function ti(F,Z){if(Z&&!Z.createEmbeddedView)throw new Error(`${F} must be a TemplateRef, but received '${(0,i.\u0275stringify)(Z)}'.`)}class ci{constructor(Z,x){this._viewContainerRef=Z,this._templateRef=x,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Z){Z&&!this._created?this.create():!Z&&this._created&&this.destroy()}}let Wn=(()=>{class F{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(x){this._ngSwitch=x,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(x){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(x)}_matchCase(x){const ie=x==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||ie,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),ie}_updateDefaultCases(x){if(this._defaultViews&&x!==this._defaultUsed){this._defaultUsed=x;for(let ie=0;ie<this._defaultViews.length;ie++)this._defaultViews[ie].enforceState(x)}}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),F})(),zn=(()=>{class F{constructor(x,ie,ze){this.ngSwitch=ze,ze._addCase(),this._view=new ci(x,ie)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Wn,9))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),F})(),bi=(()=>{class F{constructor(x,ie,ze){ze._addDefault(new ci(x,ie))}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(Wn,9))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngSwitchDefault",""]]}),F})(),fi=(()=>{class F{constructor(x){this._localization=x,this._caseViews={}}set ngPlural(x){this._switchValue=x,this._updateView()}addCase(x,ie){this._caseViews[x]=ie}_updateView(){this._clearViews();const x=Object.keys(this._caseViews),ie=qt(this._switchValue,x,this._localization);this._activateView(this._caseViews[ie])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(x){x&&(this._activeView=x,this._activeView.create())}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(Nt))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),F})(),Hn=(()=>{class F{constructor(x,ie,ze,dt){this.value=x;const Ct=!isNaN(Number(x));dt.addCase(Ct?`=${x}`:x,new ci(ze,ie))}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275injectAttribute("ngPluralCase"),i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.ViewContainerRef),i.\u0275\u0275directiveInject(fi,1))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngPluralCase",""]]}),F})(),Dr=(()=>{class F{constructor(x,ie,ze){this._ngEl=x,this._differs=ie,this._renderer=ze,this._ngStyle=null,this._differ=null}set ngStyle(x){this._ngStyle=x,!this._differ&&x&&(this._differ=this._differs.find(x).create())}ngDoCheck(){if(this._differ){const x=this._differ.diff(this._ngStyle);x&&this._applyChanges(x)}}_setStyle(x,ie){const[ze,dt]=x.split(".");null!=(ie=null!=ie&&dt?`${ie}${dt}`:ie)?this._renderer.setStyle(this._ngEl.nativeElement,ze,ie):this._renderer.removeStyle(this._ngEl.nativeElement,ze)}_applyChanges(x){x.forEachRemovedItem(ie=>this._setStyle(ie.key,null)),x.forEachAddedItem(ie=>this._setStyle(ie.key,ie.currentValue)),x.forEachChangedItem(ie=>this._setStyle(ie.key,ie.currentValue))}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.KeyValueDiffers),i.\u0275\u0275directiveInject(i.Renderer2))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),F})(),Xi=(()=>{class F{constructor(x){this._viewContainerRef=x,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(x){if(x.ngTemplateOutlet){const ie=this._viewContainerRef;this._viewRef&&ie.remove(ie.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?ie.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&x.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.ViewContainerRef))},F.\u0275dir=i.\u0275\u0275defineDirective({type:F,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[i.\u0275\u0275NgOnChangesFeature]}),F})();function Kn(F,Z){return new i.\u0275RuntimeError(2100,"")}class Gn{createSubscription(Z,x){return Z.subscribe({next:x,error:ie=>{throw ie}})}dispose(Z){Z.unsubscribe()}onDestroy(Z){Z.unsubscribe()}}class Ci{createSubscription(Z,x){return Z.then(x,ie=>{throw ie})}dispose(Z){}onDestroy(Z){}}const Bi=new Ci,Nr=new Gn;let ji=(()=>{class F{constructor(x){this._ref=x,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(x){return this._obj?x!==this._obj?(this._dispose(),this.transform(x)):this._latestValue:(x&&this._subscribe(x),this._latestValue)}_subscribe(x){this._obj=x,this._strategy=this._selectStrategy(x),this._subscription=this._strategy.createSubscription(x,ie=>this._updateLatestValue(x,ie))}_selectStrategy(x){if((0,i.\u0275isPromise)(x))return Bi;if((0,i.\u0275isSubscribable)(x))return Nr;throw Kn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(x,ie){x===this._obj&&(this._latestValue=ie,this._ref.markForCheck())}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.ChangeDetectorRef,16))},F.\u0275pipe=i.\u0275\u0275definePipe({name:"async",type:F,pure:!1}),F})(),Tr=(()=>{class F{transform(x){if(null==x)return null;if("string"!=typeof x)throw Kn();return x.toLowerCase()}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275pipe=i.\u0275\u0275definePipe({name:"lowercase",type:F,pure:!0}),F})();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 Vi=(()=>{class F{transform(x){if(null==x)return null;if("string"!=typeof x)throw Kn();return x.replace(Si,ie=>ie[0].toUpperCase()+ie.substr(1).toLowerCase())}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275pipe=i.\u0275\u0275definePipe({name:"titlecase",type:F,pure:!0}),F})(),ui=(()=>{class F{transform(x){if(null==x)return null;if("string"!=typeof x)throw Kn();return x.toUpperCase()}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275pipe=i.\u0275\u0275definePipe({name:"uppercase",type:F,pure:!0}),F})();const cr=new i.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let Ei=(()=>{class F{constructor(x,ie){this.locale=x,this.defaultTimezone=ie}transform(x,ie="mediumDate",ze,dt){var Ct;if(null==x||""===x||x!=x)return null;try{return jt(x,ie,dt||this.locale,null!==(Ct=null!=ze?ze:this.defaultTimezone)&&void 0!==Ct?Ct:void 0)}catch(Ut){throw Kn()}}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(cr,24))},F.\u0275pipe=i.\u0275\u0275definePipe({name:"date",type:F,pure:!0}),F})();const Mr=/#/g;let wr=(()=>{class F{constructor(x){this._localization=x}transform(x,ie,ze){if(null==x)return"";if("object"!=typeof ie||null===ie)throw Kn();return ie[qt(x,Object.keys(ie),this._localization,ze)].replace(Mr,x.toString())}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(Nt,16))},F.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nPlural",type:F,pure:!0}),F})(),$i=(()=>{class F{transform(x,ie){if(null==x)return"";if("object"!=typeof ie||"string"!=typeof x)throw Kn();return ie.hasOwnProperty(x)?ie[x]:ie.hasOwnProperty("other")?ie.other:""}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275pipe=i.\u0275\u0275definePipe({name:"i18nSelect",type:F,pure:!0}),F})(),Ii=(()=>{class F{transform(x){return JSON.stringify(x,null,2)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275pipe=i.\u0275\u0275definePipe({name:"json",type:F,pure:!1}),F})(),Sr=(()=>{class F{constructor(x){this.differs=x,this.keyValues=[],this.compareFn=Pi}transform(x,ie=Pi){if(!x||!(x instanceof Map)&&"object"!=typeof x)return null;this.differ||(this.differ=this.differs.find(x).create());const ze=this.differ.diff(x),dt=ie!==this.compareFn;return ze&&(this.keyValues=[],ze.forEachItem(Ct=>{this.keyValues.push(function Hi(F,Z){return{key:F,value:Z}}(Ct.key,Ct.currentValue))})),(ze||dt)&&(this.keyValues.sort(ie),this.compareFn=ie),this.keyValues}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.KeyValueDiffers,16))},F.\u0275pipe=i.\u0275\u0275definePipe({name:"keyvalue",type:F,pure:!1}),F})();function Pi(F,Z){const x=F.key,ie=Z.key;if(x===ie)return 0;if(void 0===x)return 1;if(void 0===ie)return-1;if(null===x)return 1;if(null===ie)return-1;if("string"==typeof x&&"string"==typeof ie)return x<ie?-1:1;if("number"==typeof x&&"number"==typeof ie)return x-ie;if("boolean"==typeof x&&"boolean"==typeof ie)return x<ie?-1:1;const ze=String(x),dt=String(ie);return ze==dt?0:ze<dt?-1:1}let ur=(()=>{class F{constructor(x){this._locale=x}transform(x,ie,ze){if(!mi(x))return null;ze=ze||this._locale;try{return Se(Ui(x),ze,ie)}catch(dt){throw Kn()}}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},F.\u0275pipe=i.\u0275\u0275definePipe({name:"number",type:F,pure:!0}),F})(),pi=(()=>{class F{constructor(x){this._locale=x}transform(x,ie,ze){if(!mi(x))return null;ze=ze||this._locale;try{return H(Ui(x),ze,ie)}catch(dt){throw Kn()}}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16))},F.\u0275pipe=i.\u0275\u0275definePipe({name:"percent",type:F,pure:!0}),F})(),Ai=(()=>{class F{constructor(x,ie="USD"){this._locale=x,this._defaultCurrencyCode=ie}transform(x,ie=this._defaultCurrencyCode,ze="symbol",dt,Ct){if(!mi(x))return null;Ct=Ct||this._locale,"boolean"==typeof ze&&(ze=ze?"symbol":"code");let Ut=ie||this._defaultCurrencyCode;"code"!==ze&&(Ut="symbol"===ze||"symbol-narrow"===ze?Te(Ut,"symbol"===ze?"wide":"narrow",Ct):ze);try{return Ln(Ui(x),Ct,Ut,ie,dt)}catch(wn){throw Kn()}}}return F.\u0275fac=function(x){return new(x||F)(i.\u0275\u0275directiveInject(i.LOCALE_ID,16),i.\u0275\u0275directiveInject(i.DEFAULT_CURRENCY_CODE,16))},F.\u0275pipe=i.\u0275\u0275definePipe({name:"currency",type:F,pure:!0}),F})();function mi(F){return!(null==F||""===F||F!=F)}function Ui(F){if("string"==typeof F&&!isNaN(Number(F)-parseFloat(F)))return Number(F);if("number"!=typeof F)throw new Error(`${F} is not a number`);return F}let gi=(()=>{class F{transform(x,ie,ze){if(null==x)return null;if(!this.supports(x))throw Kn();return x.slice(ie,ze)}supports(x){return"string"==typeof x||Array.isArray(x)}}return F.\u0275fac=function(x){return new(x||F)},F.\u0275pipe=i.\u0275\u0275definePipe({name:"slice",type:F,pure:!1}),F})(),er=(()=>{class F{}return F.\u0275fac=function(x){return new(x||F)},F.\u0275mod=i.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:Nt,useClass:Cn}]}),F})();const Wi="browser",tr="server",oi="browserWorkerApp",dr="browserWorkerUi";function Qn(F){return F===Wi}function zi(F){return F===tr}function Ki(F){return F===oi}function Oi(F){return F===dr}const Ir=new i.Version("13.2.0");let Gi=(()=>{class F{}return F.\u0275prov=(0,i.\u0275\u0275defineInjectable)({token:F,providedIn:"root",factory:()=>new Mi((0,i.\u0275\u0275inject)(C),window)}),F})();class Mi{constructor(Z,x){this.document=Z,this.window=x,this.offset=()=>[0,0]}setOffset(Z){this.offset=Array.isArray(Z)?()=>Z:Z}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Z){this.supportsScrolling()&&this.window.scrollTo(Z[0],Z[1])}scrollToAnchor(Z){if(!this.supportsScrolling())return;const x=function wi(F,Z){const x=F.getElementById(Z)||F.getElementsByName(Z)[0];if(x)return x;if("function"==typeof F.createTreeWalker&&F.body&&(F.body.createShadowRoot||F.body.attachShadow)){const ie=F.createTreeWalker(F.body,NodeFilter.SHOW_ELEMENT);let ze=ie.currentNode;for(;ze;){const dt=ze.shadowRoot;if(dt){const Ct=dt.getElementById(Z)||dt.querySelector(`[name="${Z}"]`);if(Ct)return Ct}ze=ie.nextNode()}}return null}(this.document,Z);x&&(this.scrollToElement(x),x.focus())}setHistoryScrollRestoration(Z){if(this.supportScrollRestoration()){const x=this.window.history;x&&x.scrollRestoration&&(x.scrollRestoration=Z)}}scrollToElement(Z){const x=Z.getBoundingClientRect(),ie=x.left+this.window.pageXOffset,ze=x.top+this.window.pageYOffset,dt=this.offset();this.window.scrollTo(ie-dt[0],ze-dt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Z=Pr(this.window.history)||Pr(Object.getPrototypeOf(this.window.history));return!(!Z||!Z.writable&&!Z.set)}catch(Z){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Z){return!1}}}function Pr(F){return Object.getOwnPropertyDescriptor(F,"scrollRestoration")}class Lr{setOffset(Z){}getScrollPosition(){return[0,0]}scrollToPosition(Z){}scrollToAnchor(Z){}setHistoryScrollRestoration(Z){}}class On{}},520:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{HTTP_INTERCEPTORS:()=>me,HttpBackend:()=>w,HttpClient:()=>ne,HttpClientJsonpModule:()=>ue,HttpClientModule:()=>Oe,HttpClientXsrfModule:()=>oe,HttpContext:()=>Me,HttpContextToken:()=>le,HttpErrorResponse:()=>ae,HttpEventType:()=>lt,HttpHandler:()=>D,HttpHeaderResponse:()=>Pe,HttpHeaders:()=>f,HttpParams:()=>V,HttpRequest:()=>et,HttpResponse:()=>X,HttpResponseBase:()=>q,HttpUrlEncodingCodec:()=>I,HttpXhrBackend:()=>xe,HttpXsrfTokenExtractor:()=>vt,JsonpClientBackend:()=>qe,JsonpInterceptor:()=>Y,XhrFactory:()=>Te,\u0275HttpInterceptingHandler:()=>ht});var i=l(9808),d=l(5e3),m=l(9646),u=l(9751),s=l(4351),y=l(9300),C=l(4004);class D{}class w{}class f{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 Ye=Ce.indexOf(":");if(Ye>0){const rt=Ce.slice(0,Ye),pt=rt.toLowerCase(),gt=Ce.slice(Ye+1).trim();this.maybeSetNormalizedName(rt,pt),this.headers.has(pt)?this.headers.get(pt).push(gt):this.headers.set(pt,[gt])}})}:()=>{this.headers=new Map,Object.keys(re).forEach(Ce=>{let Ye=re[Ce];const rt=Ce.toLowerCase();"string"==typeof Ye&&(Ye=[Ye]),Ye.length>0&&(this.headers.set(rt,Ye),this.maybeSetNormalizedName(Ce,rt))})}: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 f?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 f;return Ce.lazyInit=this.lazyInit&&this.lazyInit instanceof f?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 Ye=re.value;if("string"==typeof Ye&&(Ye=[Ye]),0===Ye.length)return;this.maybeSetNormalizedName(re.name,Ce);const rt=("a"===re.op?this.headers.get(Ce):void 0)||[];rt.push(...Ye),this.headers.set(Ce,rt);break;case"d":const pt=re.value;if(pt){let gt=this.headers.get(Ce);if(!gt)return;gt=gt.filter(Mt=>-1===pt.indexOf(Mt)),0===gt.length?(this.headers.delete(Ce),this.normalizedNames.delete(Ce)):this.headers.set(Ce,gt)}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 I{encodeKey(re){return j(re)}encodeValue(re){return j(re)}decodeKey(re){return decodeURIComponent(re)}decodeValue(re){return decodeURIComponent(re)}}const b=/%(\d[a-f0-9])/gi,R={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function j(be){return encodeURIComponent(be).replace(b,(re,Ce)=>{var Ye;return null!==(Ye=R[Ce])&&void 0!==Ye?Ye:re})}function he(be){return`${be}`}class V{constructor(re={}){if(this.updates=null,this.cloneFrom=null,this.encoder=re.encoder||new I,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(rt=>{const pt=rt.indexOf("="),[gt,Mt]=-1==pt?[re.decodeKey(rt),""]:[re.decodeKey(rt.slice(0,pt)),re.decodeValue(rt.slice(pt+1))],jt=Ce.get(gt)||[];jt.push(Mt),Ce.set(gt,jt)}),Ce}(re.fromString,this.encoder)}else re.fromObject?(this.map=new Map,Object.keys(re.fromObject).forEach(Ce=>{const Ye=re.fromObject[Ce];this.map.set(Ce,Array.isArray(Ye)?Ye:[Ye])})):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(Ye=>{const rt=re[Ye];Array.isArray(rt)?rt.forEach(pt=>{Ce.push({param:Ye,value:pt,op:"a"})}):Ce.push({param:Ye,value:rt,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(Ye=>Ce+"="+this.encoder.encodeValue(Ye)).join("&")}).filter(re=>""!==re).join("&")}clone(re){const Ce=new V({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(he(re.value)),this.map.set(re.param,Ce);break;case"d":if(void 0===re.value){this.map.delete(re.param);break}{let Ye=this.map.get(re.param)||[];const rt=Ye.indexOf(he(re.value));-1!==rt&&Ye.splice(rt,1),Ye.length>0?this.map.set(re.param,Ye):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 et{constructor(re,Ce,Ye,rt){let pt;if(this.url=Ce,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=re.toUpperCase(),function fe(be){switch(be){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||rt?(this.body=void 0!==Ye?Ye:null,pt=rt):pt=Ye,pt&&(this.reportProgress=!!pt.reportProgress,this.withCredentials=!!pt.withCredentials,pt.responseType&&(this.responseType=pt.responseType),pt.headers&&(this.headers=pt.headers),pt.context&&(this.context=pt.context),pt.params&&(this.params=pt.params)),this.headers||(this.headers=new f),this.context||(this.context=new Me),this.params){const gt=this.params.toString();if(0===gt.length)this.urlWithParams=Ce;else{const Mt=Ce.indexOf("?");this.urlWithParams=Ce+(-1===Mt?"?":Mt<Ce.length-1?"&":"")+gt}}else this.params=new V,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 V?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 V?"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 Ye=re.method||this.method,rt=re.url||this.url,pt=re.responseType||this.responseType,gt=void 0!==re.body?re.body:this.body,Mt=void 0!==re.withCredentials?re.withCredentials:this.withCredentials,jt=void 0!==re.reportProgress?re.reportProgress:this.reportProgress;let tn=re.headers||this.headers,Vt=re.params||this.params;const Tn=null!==(Ce=re.context)&&void 0!==Ce?Ce:this.context;return void 0!==re.setHeaders&&(tn=Object.keys(re.setHeaders).reduce((rn,zt)=>rn.set(zt,re.setHeaders[zt]),tn)),re.setParams&&(Vt=Object.keys(re.setParams).reduce((rn,zt)=>rn.set(zt,re.setParams[zt]),Vt)),new et(Ye,rt,gt,{params:Vt,headers:tn,context:Tn,reportProgress:jt,responseType:pt,withCredentials:Mt})}}var lt=(()=>((lt=lt||{})[lt.Sent=0]="Sent",lt[lt.UploadProgress=1]="UploadProgress",lt[lt.ResponseHeader=2]="ResponseHeader",lt[lt.DownloadProgress=3]="DownloadProgress",lt[lt.Response=4]="Response",lt[lt.User=5]="User",lt))();class q{constructor(re,Ce=200,Ye="OK"){this.headers=re.headers||new f,this.status=void 0!==re.status?re.status:Ce,this.statusText=re.statusText||Ye,this.url=re.url||null,this.ok=this.status>=200&&this.status<300}}class Pe extends q{constructor(re={}){super(re),this.type=lt.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 X extends q{constructor(re={}){super(re),this.type=lt.Response,this.body=void 0!==re.body?re.body:null}clone(re={}){return new X({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 ne=(()=>{class be{constructor(Ce){this.handler=Ce}request(Ce,Ye,rt={}){let pt;if(Ce instanceof et)pt=Ce;else{let jt,tn;jt=rt.headers instanceof f?rt.headers:new f(rt.headers),rt.params&&(tn=rt.params instanceof V?rt.params:new V({fromObject:rt.params})),pt=new et(Ce,Ye,void 0!==rt.body?rt.body:null,{headers:jt,context:rt.context,params:tn,reportProgress:rt.reportProgress,responseType:rt.responseType||"json",withCredentials:rt.withCredentials})}const gt=(0,m.of)(pt).pipe((0,s.b)(jt=>this.handler.handle(jt)));if(Ce instanceof et||"events"===rt.observe)return gt;const Mt=gt.pipe((0,y.h)(jt=>jt instanceof X));switch(rt.observe||"body"){case"body":switch(pt.responseType){case"arraybuffer":return Mt.pipe((0,C.U)(jt=>{if(null!==jt.body&&!(jt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return jt.body}));case"blob":return Mt.pipe((0,C.U)(jt=>{if(null!==jt.body&&!(jt.body instanceof Blob))throw new Error("Response is not a Blob.");return jt.body}));case"text":return Mt.pipe((0,C.U)(jt=>{if(null!==jt.body&&"string"!=typeof jt.body)throw new Error("Response is not a string.");return jt.body}));default:return Mt.pipe((0,C.U)(jt=>jt.body))}case"response":return Mt;default:throw new Error(`Unreachable: unhandled observe type ${rt.observe}}`)}}delete(Ce,Ye={}){return this.request("DELETE",Ce,Ye)}get(Ce,Ye={}){return this.request("GET",Ce,Ye)}head(Ce,Ye={}){return this.request("HEAD",Ce,Ye)}jsonp(Ce,Ye){return this.request("JSONP",Ce,{params:(new V).append(Ye,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Ce,Ye={}){return this.request("OPTIONS",Ce,Ye)}patch(Ce,Ye,rt={}){return this.request("PATCH",Ce,Ie(rt,Ye))}post(Ce,Ye,rt={}){return this.request("POST",Ce,Ie(rt,Ye))}put(Ce,Ye,rt={}){return this.request("PUT",Ce,Ie(rt,Ye))}}return be.\u0275fac=function(Ce){return new(Ce||be)(d.\u0275\u0275inject(D))},be.\u0275prov=d.\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 me=new d.InjectionToken("HTTP_INTERCEPTORS");let st=(()=>{class be{intercept(Ce,Ye){return Ye.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)},be.\u0275prov=d.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),ve=0;class Ne{}let qe=(()=>{class be{constructor(Ce,Ye){this.callbackMap=Ce,this.document=Ye,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 u.y(Ye=>{const rt=this.nextCallback(),pt=Ce.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${rt}$1`),gt=this.document.createElement("script");gt.src=pt;let Mt=null,jt=!1,tn=!1;this.callbackMap[rt]=zt=>{delete this.callbackMap[rt],!tn&&(Mt=zt,jt=!0)};const Vt=()=>{gt.parentNode&>.parentNode.removeChild(gt),delete this.callbackMap[rt]},Tn=zt=>{tn||this.resolvedPromise.then(()=>{Vt(),jt?(Ye.next(new X({body:Mt,status:200,statusText:"OK",url:pt})),Ye.complete()):Ye.error(new ae({url:pt,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},rn=zt=>{tn||(Vt(),Ye.error(new ae({error:zt,status:0,statusText:"JSONP Error",url:pt})))};return gt.addEventListener("load",Tn),gt.addEventListener("error",rn),this.document.body.appendChild(gt),Ye.next({type:lt.Sent}),()=>{tn=!0,gt.removeEventListener("load",Tn),gt.removeEventListener("error",rn),Vt()}})}}return be.\u0275fac=function(Ce){return new(Ce||be)(d.\u0275\u0275inject(Ne),d.\u0275\u0275inject(i.DOCUMENT))},be.\u0275prov=d.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),Y=(()=>{class be{constructor(Ce){this.jsonp=Ce}intercept(Ce,Ye){return"JSONP"===Ce.method?this.jsonp.handle(Ce):Ye.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)(d.\u0275\u0275inject(qe))},be.\u0275prov=d.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();const pe=/^\)\]\}',?\n/;let xe=(()=>{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 u.y(Ye=>{const rt=this.xhrFactory.build();if(rt.open(Ce.method,Ce.urlWithParams),Ce.withCredentials&&(rt.withCredentials=!0),Ce.headers.forEach((zt,wt)=>rt.setRequestHeader(zt,wt.join(","))),Ce.headers.has("Accept")||rt.setRequestHeader("Accept","application/json, text/plain, */*"),!Ce.headers.has("Content-Type")){const zt=Ce.detectContentTypeHeader();null!==zt&&rt.setRequestHeader("Content-Type",zt)}if(Ce.responseType){const zt=Ce.responseType.toLowerCase();rt.responseType="json"!==zt?zt:"text"}const pt=Ce.serializeBody();let gt=null;const Mt=()=>{if(null!==gt)return gt;const zt=1223===rt.status?204:rt.status,wt=rt.statusText||"OK",bn=new f(rt.getAllResponseHeaders()),Jt=function we(be){return"responseURL"in be&&be.responseURL?be.responseURL:/^X-Request-URL:/m.test(be.getAllResponseHeaders())?be.getResponseHeader("X-Request-URL"):null}(rt)||Ce.url;return gt=new Pe({headers:bn,status:zt,statusText:wt,url:Jt}),gt},jt=()=>{let{headers:zt,status:wt,statusText:bn,url:Jt}=Mt(),on=null;204!==wt&&(on=void 0===rt.response?rt.responseText:rt.response),0===wt&&(wt=on?200:0);let Ge=wt>=200&&wt<300;if("json"===Ce.responseType&&"string"==typeof on){const Qe=on;on=on.replace(pe,"");try{on=""!==on?JSON.parse(on):null}catch(W){on=Qe,Ge&&(Ge=!1,on={error:W,text:on})}}Ge?(Ye.next(new X({body:on,headers:zt,status:wt,statusText:bn,url:Jt||void 0})),Ye.complete()):Ye.error(new ae({error:on,headers:zt,status:wt,statusText:bn,url:Jt||void 0}))},tn=zt=>{const{url:wt}=Mt(),bn=new ae({error:zt,status:rt.status||0,statusText:rt.statusText||"Unknown Error",url:wt||void 0});Ye.error(bn)};let Vt=!1;const Tn=zt=>{Vt||(Ye.next(Mt()),Vt=!0);let wt={type:lt.DownloadProgress,loaded:zt.loaded};zt.lengthComputable&&(wt.total=zt.total),"text"===Ce.responseType&&!!rt.responseText&&(wt.partialText=rt.responseText),Ye.next(wt)},rn=zt=>{let wt={type:lt.UploadProgress,loaded:zt.loaded};zt.lengthComputable&&(wt.total=zt.total),Ye.next(wt)};return rt.addEventListener("load",jt),rt.addEventListener("error",tn),rt.addEventListener("timeout",tn),rt.addEventListener("abort",tn),Ce.reportProgress&&(rt.addEventListener("progress",Tn),null!==pt&&rt.upload&&rt.upload.addEventListener("progress",rn)),rt.send(pt),Ye.next({type:lt.Sent}),()=>{rt.removeEventListener("error",tn),rt.removeEventListener("abort",tn),rt.removeEventListener("load",jt),rt.removeEventListener("timeout",tn),Ce.reportProgress&&(rt.removeEventListener("progress",Tn),null!==pt&&rt.upload&&rt.upload.removeEventListener("progress",rn)),rt.readyState!==rt.DONE&&rt.abort()}})}}return be.\u0275fac=function(Ce){return new(Ce||be)(d.\u0275\u0275inject(i.XhrFactory))},be.\u0275prov=d.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})();const ge=new d.InjectionToken("XSRF_COOKIE_NAME"),Je=new d.InjectionToken("XSRF_HEADER_NAME");class vt{}let Et=(()=>{class be{constructor(Ce,Ye,rt){this.doc=Ce,this.platform=Ye,this.cookieName=rt,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)(d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(d.PLATFORM_ID),d.\u0275\u0275inject(ge))},be.\u0275prov=d.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),At=(()=>{class be{constructor(Ce,Ye){this.tokenService=Ce,this.headerName=Ye}intercept(Ce,Ye){const rt=Ce.url.toLowerCase();if("GET"===Ce.method||"HEAD"===Ce.method||rt.startsWith("http://")||rt.startsWith("https://"))return Ye.handle(Ce);const pt=this.tokenService.getToken();return null!==pt&&!Ce.headers.has(this.headerName)&&(Ce=Ce.clone({headers:Ce.headers.set(this.headerName,pt)})),Ye.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)(d.\u0275\u0275inject(vt),d.\u0275\u0275inject(Je))},be.\u0275prov=d.\u0275\u0275defineInjectable({token:be,factory:be.\u0275fac}),be})(),ht=(()=>{class be{constructor(Ce,Ye){this.backend=Ce,this.injector=Ye,this.chain=null}handle(Ce){if(null===this.chain){const Ye=this.injector.get(me,[]);this.chain=Ye.reduceRight((rt,pt)=>new Ke(rt,pt),this.backend)}return this.chain.handle(Ce)}}return be.\u0275fac=function(Ce){return new(Ce||be)(d.\u0275\u0275inject(w),d.\u0275\u0275inject(d.Injector))},be.\u0275prov=d.\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:At,useClass:st}]}}static withOptions(Ce={}){return{ngModule:be,providers:[Ce.cookieName?{provide:ge,useValue:Ce.cookieName}:[],Ce.headerName?{provide:Je,useValue:Ce.headerName}:[]]}}}return be.\u0275fac=function(Ce){return new(Ce||be)},be.\u0275mod=d.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=d.\u0275\u0275defineInjector({providers:[At,{provide:me,useExisting:At,multi:!0},{provide:vt,useClass:Et},{provide:ge,useValue:"XSRF-TOKEN"},{provide:Je,useValue:"X-XSRF-TOKEN"}]}),be})(),Oe=(()=>{class be{}return be.\u0275fac=function(Ce){return new(Ce||be)},be.\u0275mod=d.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=d.\u0275\u0275defineInjector({providers:[ne,{provide:D,useClass:ht},xe,{provide:w,useExisting:xe}],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=d.\u0275\u0275defineNgModule({type:be}),be.\u0275inj=d.\u0275\u0275defineInjector({providers:[qe,{provide:Ne,useFactory:N},{provide:me,useClass:Y,multi:!0}]}),be})();const Te=i.XhrFactory},5e3:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>s_,APP_BOOTSTRAP_LISTENER:()=>mg,APP_ID:()=>dg,APP_INITIALIZER:()=>fu,ApplicationInitStatus:()=>Lo,ApplicationModule:()=>LE,ApplicationRef:()=>Ds,Attribute:()=>qu,COMPILER_OPTIONS:()=>vg,CUSTOM_ELEMENTS_SCHEMA:()=>kd,ChangeDetectionStrategy:()=>Ce,ChangeDetectorRef:()=>Fg,Compiler:()=>mu,CompilerFactory:()=>Z0,Component:()=>B0,ComponentFactory:()=>ca,ComponentFactoryResolver:()=>gs,ComponentRef:()=>Yp,ContentChild:()=>l_,ContentChildren:()=>a_,DEFAULT_CURRENCY_CODE:()=>_g,DebugElement:()=>EE,DebugEventListener:()=>pE,DebugNode:()=>CE,DefaultIterableDiffer:()=>Vg,Directive:()=>ug,ElementRef:()=>_s,EmbeddedViewRef:()=>fE,ErrorHandler:()=>es,EventEmitter:()=>Cr,Host:()=>sd,HostBinding:()=>H0,HostListener:()=>U0,INJECTOR:()=>Xs,Inject:()=>Qo,InjectFlags:()=>N,Injectable:()=>cb,InjectionToken:()=>Zn,Injector:()=>ki,Input:()=>V0,IterableDiffers:()=>Ca,KeyValueDiffers:()=>Ea,LOCALE_ID:()=>va,MissingTranslationStrategy:()=>Er,ModuleWithComponentFactories:()=>yg,NO_ERRORS_SCHEMA:()=>Nd,NgModule:()=>W0,NgModuleFactory:()=>sm,NgModuleRef:()=>Fo,NgProbeToken:()=>iE,NgZone:()=>Ni,Optional:()=>Wr,Output:()=>$0,PACKAGE_ROOT_URL:()=>K0,PLATFORM_ID:()=>pg,PLATFORM_INITIALIZER:()=>fg,Pipe:()=>j0,PlatformRef:()=>Du,Query:()=>Uo,QueryList:()=>pa,ReflectiveInjector:()=>Io,ReflectiveKey:()=>kr,Renderer2:()=>XC,RendererFactory2:()=>Xp,RendererStyleFlags2:()=>_r,ResolvedReflectiveFactory:()=>wf,Sanitizer:()=>qp,SecurityContext:()=>qn,Self:()=>Bs,SimpleChange:()=>Ai,SkipSelf:()=>zr,TRANSLATIONS:()=>G0,TRANSLATIONS_FORMAT:()=>Q0,TemplateRef:()=>bs,Testability:()=>Dg,TestabilityRegistry:()=>vu,Type:()=>Fs,VERSION:()=>tm,Version:()=>em,ViewChild:()=>u_,ViewChildren:()=>c_,ViewContainerRef:()=>ga,ViewEncapsulation:()=>pt,ViewRef:()=>Ng,asNativeElements:()=>mE,assertPlatform:()=>Ig,createNgModuleRef:()=>a0,createPlatform:()=>wg,createPlatformFactory:()=>Sg,defineInjectable:()=>Y,destroyPlatform:()=>rE,enableProdMode:()=>cE,forwardRef:()=>I,getDebugNode:()=>ba,getModuleFactory:()=>uE,getNgModuleById:()=>dE,getPlatform:()=>Eu,inject:()=>T_,isDevMode:()=>lE,platformCore:()=>AE,resolveForwardRef:()=>T,setTestabilityGetter:()=>nE,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Cu,\u0275APP_ID_RANDOM_PROVIDER:()=>hg,\u0275ChangeDetectorStatus:()=>Ye,\u0275ComponentFactory:()=>ca,\u0275Console:()=>gg,\u0275DEFAULT_LOCALE_ID:()=>ds,\u0275INJECTOR_SCOPE:()=>Ol,\u0275LifecycleHooksFeature:()=>hf,\u0275LocaleDataIndex:()=>nn,\u0275NG_COMP_DEF:()=>bn,\u0275NG_DIR_DEF:()=>Jt,\u0275NG_ELEMENT_ID:()=>W,\u0275NG_INJ_DEF:()=>At,\u0275NG_MOD_DEF:()=>Ge,\u0275NG_PIPE_DEF:()=>on,\u0275NG_PROV_DEF:()=>Et,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>ua,\u0275NO_CHANGE:()=>fn,\u0275NgModuleFactory:()=>fa,\u0275NoopNgZone:()=>Eg,\u0275ReflectionCapabilities:()=>Ra,\u0275Render3ComponentFactory:()=>ha,\u0275Render3ComponentRef:()=>rm,\u0275Render3NgModuleRef:()=>Xc,\u0275RuntimeError:()=>j,\u0275ViewRef:()=>Ro,\u0275_sanitizeHtml:()=>Dd,\u0275_sanitizeUrl:()=>Yo,\u0275allowSanitizationBypassAndThrow:()=>co,\u0275bypassSanitizationTrustHtml:()=>V_,\u0275bypassSanitizationTrustResourceUrl:()=>W_,\u0275bypassSanitizationTrustScript:()=>H_,\u0275bypassSanitizationTrustStyle:()=>$_,\u0275bypassSanitizationTrustUrl:()=>U_,\u0275clearResolutionOfComponentResourcesQueue:()=>dd,\u0275compileComponent:()=>Xm,\u0275compileDirective:()=>hu,\u0275compileNgModule:()=>Km,\u0275compileNgModuleDefs:()=>Gm,\u0275compileNgModuleFactory:()=>Tg,\u0275compilePipe:()=>lg,\u0275createInjector:()=>Rl,\u0275defaultIterableDiffers:()=>Kg,\u0275defaultKeyValueDiffers:()=>Gg,\u0275detectChanges:()=>Kh,\u0275devModeEqual:()=>mf,\u0275findLocaleData:()=>Hc,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>Wm,\u0275getDebugNode:()=>ba,\u0275getDebugNodeR2:()=>bE,\u0275getDirectives:()=>rf,\u0275getHostElement:()=>Nl,\u0275getInjectableDef:()=>we,\u0275getLContext:()=>_i,\u0275getLocaleCurrencyCode:()=>Xb,\u0275getLocalePluralCase:()=>bp,\u0275getSanitizationBypassType:()=>md,\u0275global:()=>Vt,\u0275injectChangeDetectorRef:()=>kg,\u0275isBoundToModule:()=>Mg,\u0275isDefaultChangeDetectionStrategy:()=>rt,\u0275isListLikeIterable:()=>ss,\u0275isObservable:()=>kf,\u0275isPromise:()=>sc,\u0275isSubscribable:()=>Ff,\u0275ivyEnabled:()=>BE,\u0275makeDecorator:()=>ro,\u0275markDirty:()=>Gh,\u0275noSideEffects:()=>re,\u0275patchComponentDefWithScope:()=>cu,\u0275publishDefaultGlobalUtils:()=>Kv,\u0275publishGlobalUtil:()=>Yi,\u0275registerLocaleData:()=>Jb,\u0275registerNgModuleType:()=>lm,\u0275renderComponent:()=>Gv,\u0275resetCompiledComponents:()=>I0,\u0275resetJitOptions:()=>w0,\u0275resolveComponentResources:()=>cd,\u0275setClassMetadata:()=>om,\u0275setCurrentInjector:()=>Na,\u0275setDocument:()=>Pr,\u0275setLocaleId:()=>Dp,\u0275store:()=>_f,\u0275stringify:()=>D,\u0275transitiveScopesFor:()=>Es,\u0275unregisterLocaleData:()=>qb,\u0275unwrapSafeValue:()=>xr,\u0275whenRendered:()=>Qv,\u0275\u0275CopyDefinitionFeature:()=>pf,\u0275\u0275FactoryTarget:()=>ni,\u0275\u0275InheritDefinitionFeature:()=>Bl,\u0275\u0275NgOnChangesFeature:()=>mi,\u0275\u0275ProvidersFeature:()=>Zp,\u0275\u0275advance:()=>fh,\u0275\u0275attribute:()=>$l,\u0275\u0275attributeInterpolate1:()=>Hl,\u0275\u0275attributeInterpolate2:()=>Ul,\u0275\u0275attributeInterpolate3:()=>Wl,\u0275\u0275attributeInterpolate4:()=>zl,\u0275\u0275attributeInterpolate5:()=>Kl,\u0275\u0275attributeInterpolate6:()=>Gl,\u0275\u0275attributeInterpolate7:()=>Ql,\u0275\u0275attributeInterpolate8:()=>Zl,\u0275\u0275attributeInterpolateV:()=>Yl,\u0275\u0275classMap:()=>Qf,\u0275\u0275classMapInterpolate1:()=>np,\u0275\u0275classMapInterpolate2:()=>ip,\u0275\u0275classMapInterpolate3:()=>rp,\u0275\u0275classMapInterpolate4:()=>op,\u0275\u0275classMapInterpolate5:()=>sp,\u0275\u0275classMapInterpolate6:()=>ap,\u0275\u0275classMapInterpolate7:()=>lp,\u0275\u0275classMapInterpolate8:()=>cp,\u0275\u0275classMapInterpolateV:()=>up,\u0275\u0275classProp:()=>bc,\u0275\u0275contentQuery:()=>Bm,\u0275\u0275defineComponent:()=>L,\u0275\u0275defineDirective:()=>$e,\u0275\u0275defineInjectable:()=>qe,\u0275\u0275defineInjector:()=>pe,\u0275\u0275defineNgModule:()=>kt,\u0275\u0275definePipe:()=>de,\u0275\u0275directiveInject:()=>cs,\u0275\u0275disableBindings:()=>h,\u0275\u0275element:()=>Of,\u0275\u0275elementContainer:()=>xf,\u0275\u0275elementContainerEnd:()=>oc,\u0275\u0275elementContainerStart:()=>rc,\u0275\u0275elementEnd:()=>ic,\u0275\u0275elementStart:()=>nc,\u0275\u0275enableBindings:()=>K,\u0275\u0275getCurrentView:()=>Rf,\u0275\u0275getInheritedFactory:()=>Xu,\u0275\u0275hostProperty:()=>Vc,\u0275\u0275i18n:()=>Wp,\u0275\u0275i18nApply:()=>Kp,\u0275\u0275i18nAttributes:()=>zp,\u0275\u0275i18nEnd:()=>Kc,\u0275\u0275i18nExp:()=>Gc,\u0275\u0275i18nPostprocess:()=>Gp,\u0275\u0275i18nStart:()=>zc,\u0275\u0275inject:()=>ai,\u0275\u0275injectAttribute:()=>Aa,\u0275\u0275invalidFactory:()=>Af,\u0275\u0275invalidFactoryDep:()=>La,\u0275\u0275listener:()=>ac,\u0275\u0275loadQuery:()=>jm,\u0275\u0275namespaceHTML:()=>si,\u0275\u0275namespaceMathML:()=>Ms,\u0275\u0275namespaceSVG:()=>Bo,\u0275\u0275nextContext:()=>Bf,\u0275\u0275ngDeclareClassMetadata:()=>VE,\u0275\u0275ngDeclareComponent:()=>$E,\u0275\u0275ngDeclareDirective:()=>jE,\u0275\u0275ngDeclareFactory:()=>HE,\u0275\u0275ngDeclareInjectable:()=>WE,\u0275\u0275ngDeclareInjector:()=>zE,\u0275\u0275ngDeclareNgModule:()=>KE,\u0275\u0275ngDeclarePipe:()=>GE,\u0275\u0275pipe:()=>Mm,\u0275\u0275pipeBind1:()=>wm,\u0275\u0275pipeBind2:()=>Sm,\u0275\u0275pipeBind3:()=>Im,\u0275\u0275pipeBind4:()=>Pm,\u0275\u0275pipeBindV:()=>Am,\u0275\u0275projection:()=>Vf,\u0275\u0275projectionDef:()=>jf,\u0275\u0275property:()=>ec,\u0275\u0275propertyInterpolate:()=>uc,\u0275\u0275propertyInterpolate1:()=>na,\u0275\u0275propertyInterpolate2:()=>dc,\u0275\u0275propertyInterpolate3:()=>hc,\u0275\u0275propertyInterpolate4:()=>fc,\u0275\u0275propertyInterpolate5:()=>pc,\u0275\u0275propertyInterpolate6:()=>mc,\u0275\u0275propertyInterpolate7:()=>gc,\u0275\u0275propertyInterpolate8:()=>_c,\u0275\u0275propertyInterpolateV:()=>yc,\u0275\u0275pureFunction0:()=>um,\u0275\u0275pureFunction1:()=>dm,\u0275\u0275pureFunction2:()=>hm,\u0275\u0275pureFunction3:()=>fm,\u0275\u0275pureFunction4:()=>pm,\u0275\u0275pureFunction5:()=>mm,\u0275\u0275pureFunction6:()=>gm,\u0275\u0275pureFunction7:()=>_m,\u0275\u0275pureFunction8:()=>ym,\u0275\u0275pureFunctionV:()=>vm,\u0275\u0275queryRefresh:()=>Nm,\u0275\u0275reference:()=>yf,\u0275\u0275resolveBody:()=>$d,\u0275\u0275resolveDocument:()=>Vd,\u0275\u0275resolveWindow:()=>jd,\u0275\u0275restoreView:()=>U,\u0275\u0275sanitizeHtml:()=>Td,\u0275\u0275sanitizeResourceUrl:()=>Ga,\u0275\u0275sanitizeScript:()=>wd,\u0275\u0275sanitizeStyle:()=>Md,\u0275\u0275sanitizeUrl:()=>Ka,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Pd,\u0275\u0275setComponentScope:()=>g,\u0275\u0275setNgModuleScope:()=>Ht,\u0275\u0275styleMap:()=>rr,\u0275\u0275styleMapInterpolate1:()=>dp,\u0275\u0275styleMapInterpolate2:()=>hp,\u0275\u0275styleMapInterpolate3:()=>fp,\u0275\u0275styleMapInterpolate4:()=>pp,\u0275\u0275styleMapInterpolate5:()=>mp,\u0275\u0275styleMapInterpolate6:()=>gp,\u0275\u0275styleMapInterpolate7:()=>_p,\u0275\u0275styleMapInterpolate8:()=>yp,\u0275\u0275styleMapInterpolateV:()=>vp,\u0275\u0275styleProp:()=>vc,\u0275\u0275stylePropInterpolate1:()=>Oc,\u0275\u0275stylePropInterpolate2:()=>xc,\u0275\u0275stylePropInterpolate3:()=>Rc,\u0275\u0275stylePropInterpolate4:()=>Fc,\u0275\u0275stylePropInterpolate5:()=>kc,\u0275\u0275stylePropInterpolate6:()=>Nc,\u0275\u0275stylePropInterpolate7:()=>Lc,\u0275\u0275stylePropInterpolate8:()=>Bc,\u0275\u0275stylePropInterpolateV:()=>jc,\u0275\u0275syntheticHostListener:()=>lc,\u0275\u0275syntheticHostProperty:()=>$c,\u0275\u0275template:()=>gf,\u0275\u0275templateRefExtractor:()=>Um,\u0275\u0275text:()=>tp,\u0275\u0275textInterpolate:()=>Ec,\u0275\u0275textInterpolate1:()=>ra,\u0275\u0275textInterpolate2:()=>Dc,\u0275\u0275textInterpolate3:()=>Tc,\u0275\u0275textInterpolate4:()=>Mc,\u0275\u0275textInterpolate5:()=>wc,\u0275\u0275textInterpolate6:()=>Sc,\u0275\u0275textInterpolate7:()=>Ic,\u0275\u0275textInterpolate8:()=>Pc,\u0275\u0275textInterpolateV:()=>Ac,\u0275\u0275trustConstantHtml:()=>Sd,\u0275\u0275trustConstantResourceUrl:()=>Id,\u0275\u0275viewQuery:()=>Lm});var i=l(6758),d=l(6921),m=l(9751),u=l(6451),s=l(3099);function y(e){for(let t in e)if(e[t]===y)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 w(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const f=y({__forward_ref__:y});function I(e){return e.__forward_ref__=I,e.toString=function(){return D(this())},e}function T(e){return b(e)?e():e}function b(e){return"function"==typeof e&&e.hasOwnProperty(f)&&e.__forward_ref__===I}class j extends Error{constructor(t,n){super(function he(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function V(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():V(e)}function se(e,t){const n=t?` in ${t}`:"";throw new j(-201,`No provider for ${le(e)} found${n}`)}function Ue(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}function qe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Y=qe;function pe(e){return{providers:e.providers||[],imports:e.imports||[]}}function we(e){return xe(e,Et)||xe(e,ht)}function xe(e,t){return e.hasOwnProperty(t)?e[t]:null}function vt(e){return e&&(e.hasOwnProperty(At)||e.hasOwnProperty(Ze))?e[At]:null}const Et=y({\u0275prov:y}),At=y({\u0275inj:y}),ht=y({ngInjectableDef:y}),Ze=y({ngInjectorDef:y});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))(),Ye=(()=>((Ye=Ye||{})[Ye.CheckOnce=0]="CheckOnce",Ye[Ye.Checked=1]="Checked",Ye[Ye.CheckAlways=2]="CheckAlways",Ye[Ye.Detached=3]="Detached",Ye[Ye.Errored=4]="Errored",Ye[Ye.Destroyed=5]="Destroyed",Ye))();function rt(e){return null==e||e===Ce.Default}var pt=(()=>{return(e=pt||(pt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",pt;var e})();const gt="undefined"!=typeof globalThis&&globalThis,Mt="undefined"!=typeof window&&window,jt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Vt=gt||"undefined"!=typeof global&&global||Mt||jt,zt={},wt=[],bn=y({\u0275cmp:y}),Jt=y({\u0275dir:y}),on=y({\u0275pipe:y}),Ge=y({\u0275mod:y}),Qe=y({\u0275fac:y}),W=y({__NG_ELEMENT_ID__:y});let P=0;function L(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||wt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||pt.Emulated,id:"c",styles:e.styles||wt,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,a=e.features,p=e.pipes;return r.id+=P++,r.inputs=Fe(e.inputs,n),r.outputs=Fe(e.outputs),a&&a.forEach(v=>v(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(O):null,r.pipeDefs=p?()=>("function"==typeof p?p():p).map(_e):null,r})}function g(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(O),r.pipeDefs=()=>n.map(_e)}function O(e){return Ve(e)||ft(e)}function _e(e){return Lt(e)}const ot={};function kt(e){return re(()=>{const t={type:e.type,bootstrap:e.bootstrap||wt,declarations:e.declarations||wt,imports:e.imports||wt,exports:e.exports||wt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ot[e.id]=e.type),t})}function Ht(e,t){return re(()=>{const n=Ft(e,!0);n.declarations=t.declarations||wt,n.imports=t.imports||wt,n.exports=t.exports||wt})}function Fe(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 $e=L;function de(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 ft(e){return e[Jt]||null}function Lt(e){return e[on]||null}function Ft(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 Wn(e){return Array.isArray(e)&&"object"==typeof e[1]}function zn(e){return Array.isArray(e)&&!0===e[1]}function bi(e){return 0!=(8&e.flags)}function Ti(e){return 2==(2&e.flags)}function fi(e){return 1==(1&e.flags)}function Hn(e){return null!==e.template}function Dr(e){return 0!=(512&e[2])}function pi(e,t){return e.hasOwnProperty(Qe)?e[Qe]:null}class Ai{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function mi(){return Ui}function Ui(e){return e.type.prototype.ngOnChanges&&(e.setInput=qi),gi}function gi(){const e=Wi(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 qi(e,t,n,r){const o=Wi(e)||function tr(e,t){return e[er]=t}(e,{previous:zt,current:null}),a=o.current||(o.current={}),p=o.previous,v=this.declaredInputs[n],M=p[v];a[v]=new Ai(M&&M.currentValue,t,p===zt),e[r]=t}mi.ngInherit=!0;const er="__ngSimpleChanges__";function Wi(e){return e[er]||null}let oi=null;const dr=e=>{oi=e},Qn=function(e,t,n){null!=oi&&oi(e,t,n)},Oi="math";let Mi;function Pr(e){Mi=e}function wi(){return void 0!==Mi?Mi:"undefined"!=typeof document?document:void 0}function On(e){return!!e.listen}const F={createRenderer:(e,t)=>wi()};function x(e){for(;Array.isArray(e);)e=e[0];return e}function dt(e,t){return x(t[e])}function Ct(e,t){return x(t[e.index])}function wn(e,t){return e.data[t]}function yn(e,t){return e[t]}function hn(e,t){const n=t[e];return Wn(n)?n:n[0]}function _n(e){return 4==(4&e[2])}function Bn(e){return 128==(128&e[2])}function A(e,t){return null==t?null:e[t]}function S(e){e[18]=0}function J(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Xe={lFrame:It(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function hr(){return Xe.bindingsEnabled}function K(){Xe.bindingsEnabled=!0}function h(){Xe.bindingsEnabled=!1}function c(){return Xe.lFrame.lView}function E(){return Xe.lFrame.tView}function U(e){return Xe.lFrame.contextLView=e,e[8]}function ce(){let e=Le();for(;null!==e&&64===e.type;)e=e.parent;return e}function Le(){return Xe.lFrame.currentTNode}function He(){const e=Xe.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function nt(e,t){const n=Xe.lFrame;n.currentTNode=e,n.isParent=t}function mt(){return Xe.lFrame.isParent}function Ot(){Xe.lFrame.isParent=!1}function pn(){return Xe.isInCheckNoChangesMode}function Zt(e){Xe.isInCheckNoChangesMode=e}function Qt(){const e=Xe.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function un(){return Xe.lFrame.bindingIndex}function ee(e){return Xe.lFrame.bindingIndex=e}function $(){return Xe.lFrame.bindingIndex++}function Q(e){const t=Xe.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Re(e){Xe.lFrame.inI18n=e}function je(e,t){const n=Xe.lFrame;n.bindingIndex=n.bindingRootIndex=e,bt(t)}function bt(e){Xe.lFrame.currentDirectiveIndex=e}function _t(e){const t=Xe.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function $t(){return Xe.lFrame.currentQueryIndex}function Yt(e){Xe.lFrame.currentQueryIndex=e}function vn(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function sn(e,t,n){if(n&N.SkipSelf){let o=t,a=e;for(;!(o=o.parent,null!==o||n&N.Host||(o=vn(a),null===o||(a=a[15],10&o.type))););if(null===o)return!1;t=o,e=a}const r=Xe.lFrame=gn();return r.currentTNode=t,r.lView=e,!0}function Sn(e){const t=gn(),n=e[1];Xe.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function gn(){const e=Xe.lFrame,t=null===e?null:e.child;return null===t?It(e):t}function It(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 xt(){const e=Xe.lFrame;return Xe.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Xt=xt;function En(){const e=xt();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 kn(){return Xe.lFrame.selectedIndex}function di(e){Xe.lFrame.selectedIndex=e}function dn(){const e=Xe.lFrame;return wn(e.tView,e.selectedIndex)}function Bo(){Xe.lFrame.currentNamespace="svg"}function Ms(){Xe.lFrame.currentNamespace=Oi}function si(){!function Ar(){Xe.lFrame.currentNamespace=null}()}function Br(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const a=e.data[n].type.prototype,{ngAfterContentInit:p,ngAfterContentChecked:v,ngAfterViewInit:M,ngAfterViewChecked:B,ngOnDestroy:G}=a;p&&(e.contentHooks||(e.contentHooks=[])).push(-n,p),v&&((e.contentHooks||(e.contentHooks=[])).push(n,v),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,v)),M&&(e.viewHooks||(e.viewHooks=[])).push(-n,M),B&&((e.viewHooks||(e.viewHooks=[])).push(n,B),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,B)),null!=G&&(e.destroyHooks||(e.destroyHooks=[])).push(n,G)}}function ws(e,t,n){Vu(e,t,3,n)}function Ss(e,t,n,r){(3&e[2])===n&&Vu(e,t,n,r)}function Da(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Vu(e,t,n,r){const a=null!=r?r:-1,p=t.length-1;let v=0;for(let M=void 0!==r?65535&e[18]:0;M<p;M++)if("number"==typeof t[M+1]){if(v=t[M],null!=r&&v>=r)break}else t[M]<0&&(e[18]+=65536),(v<a||-1==a)&&(Qg(e,n,t,M),e[18]=(4294901760&e[18])+M+2),M++}function Qg(e,t,n,r){const o=n[r]<0,a=n[r+1],v=e[o?-n[r]:n[r]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,Qn(4,v,a);try{a.call(v)}finally{Qn(5,v,a)}}}else{Qn(4,v,a);try{a.call(v)}finally{Qn(5,v,a)}}}class jo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Is(e,t,n){const r=On(e);let o=0;for(;o<n.length;){const a=n[o];if("number"==typeof a){if(0!==a)break;o++;const p=n[o++],v=n[o++],M=n[o++];r?e.setAttribute(t,v,M,p):t.setAttributeNS(p,v,M)}else{const p=a,v=n[++o];Ma(p)?r&&e.setProperty(t,p,v):r?e.setAttribute(t,p,v):t.setAttribute(p,v),o++}}return o}function $u(e){return 3===e||4===e||6===e}function Ma(e){return 64===e.charCodeAt(0)}function Ps(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||Hu(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function Hu(e,t,n,r,o){let a=0,p=e.length;if(-1===t)p=-1;else for(;a<e.length;){const v=e[a++];if("number"==typeof v){if(v===t){p=-1;break}if(v>t){p=a-1;break}}}for(;a<e.length;){const v=e[a];if("number"==typeof v)break;if(v===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!==p&&(e.splice(p,0,t),a=p+1),e.splice(a++,0,n),null!==r&&e.splice(a++,0,r),null!==o&&e.splice(a++,0,o)}function Uu(e){return-1!==e}function Xr(e){return 32767&e}function qr(e,t){let n=function qg(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let wa=!0;function As(e){const t=wa;return wa=e,t}let e_=0;function $o(e,t){const n=Ia(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Sa(r.data,e),Sa(t,null),Sa(r.blueprint,null));const o=Os(e,t),a=e.injectorIndex;if(Uu(o)){const p=Xr(o),v=qr(o,t),M=v[1].data;for(let B=0;B<8;B++)t[a+B]=v[p+B]|M[p+B]}return t[a+8]=o,a}function Sa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ia(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Os(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],p=a.type;if(r=2===p?a.declTNode:1===p?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function xs(e,t,n){!function t_(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(W)&&(r=n[W]),null==r&&(r=n[W]=e_++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function Ku(e,t,n){if(n&N.Optional)return e;se(t,"NodeInjector")}function Gu(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 Ku(r,t,n)}function Qu(e,t,n,r=N.Default,o){if(null!==e){const a=function o_(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(W)?e[W]:void 0;return"number"==typeof t?t>=0?255&t:i_:t}(n);if("function"==typeof a){if(!sn(t,e,r))return r&N.Host?Ku(o,n,r):Gu(t,n,r,o);try{const p=a(r);if(null!=p||r&N.Optional)return p;se(n)}finally{Xt()}}else if("number"==typeof a){let p=null,v=Ia(e,t),M=-1,B=r&N.Host?t[16][6]:null;for((-1===v||r&N.SkipSelf)&&(M=-1===v?Os(e,t):t[v+8],-1!==M&&Ju(r,!1)?(p=t[1],v=Xr(M),t=qr(M,t)):v=-1);-1!==v;){const G=t[1];if(Yu(a,v,G.data)){const Ee=r_(v,t,n,p,r,B);if(Ee!==Zu)return Ee}M=t[v+8],-1!==M&&Ju(r,t[1].data[v+8]===B)&&Yu(a,v,t)?(p=G,v=Xr(M),t=qr(M,t)):v=-1}}}return Gu(t,n,r,o)}const Zu={};function i_(){return new eo(ce(),c())}function r_(e,t,n,r,o,a){const p=t[1],v=p.data[e+8],G=Rs(v,p,n,null==r?Ti(v)&&wa:r!=p&&0!=(3&v.type),o&N.Host&&a===v);return null!==G?Ho(t,p,G,v):Zu}function Rs(e,t,n,r,o){const a=e.providerIndexes,p=t.data,v=1048575&a,M=e.directiveStart,G=a>>20,We=o?v+G:e.directiveEnd;for(let at=r?v:v+G;at<We;at++){const yt=p[at];if(at<M&&n===yt||at>=M&&yt.type===n)return at}if(o){const at=p[M];if(at&&Hn(at)&&at.type===n)return M}return null}function Ho(e,t,n,r){let o=e[n];const a=t.data;if(function Zg(e){return e instanceof jo}(o)){const p=o;p.resolving&&function Me(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new j(-200,`Circular dependency in DI detected for ${e}${n}`)}(le(a[n]));const v=As(p.canSeeViewProviders);p.resolving=!0;const M=p.injectImpl?ue(p.injectImpl):null;sn(e,r,N.Default);try{o=e[n]=p.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function Or(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:a}=t.type.prototype;if(r){const p=Ui(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,p),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,p)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==M&&ue(M),As(v),p.resolving=!1,Xt()}}return o}function Yu(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Ju(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 Qu(this._tNode,this._lView,t,r,n)}}function Xu(e){return re(()=>{const t=e.prototype.constructor,n=t[Qe]||Pa(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const a=o[Qe]||Pa(o);if(a&&a!==n)return a;o=Object.getPrototypeOf(o)}return a=>new a})}function Pa(e){return b(e)?()=>{const t=Pa(T(e));return t&&t()}:pi(e)}function Aa(e){return function n_(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($u(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}(ce(),e)}const to="__annotations__",no="__parameters__",io="__prop__metadata__";function ro(e,t,n,r,o){return re(()=>{const a=Oa(t);function p(...v){if(this instanceof p)return a.call(this,...v),this;const M=new p(...v);return function(G){return o&&o(G,...v),(G.hasOwnProperty(to)?G[to]:Object.defineProperty(G,to,{value:[]})[to]).push(M),r&&r(G),G}}return n&&(p.prototype=Object.create(n.prototype)),p.prototype.ngMetadataName=e,p.annotationCls=p,p})}function Oa(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=Oa(t);function o(...a){if(this instanceof o)return r.apply(this,a),this;const p=new o(...a);return v.annotation=p,v;function v(M,B,G){const Ee=M.hasOwnProperty(no)?M[no]:Object.defineProperty(M,no,{value:[]})[no];for(;Ee.length<=G;)Ee.push(null);return(Ee[G]=Ee[G]||[]).push(p),M}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function Vr(e,t,n,r){return re(()=>{const o=Oa(t);function a(...p){if(this instanceof a)return o.apply(this,p),this;const v=new a(...p);return function M(B,G){const Ee=B.constructor,We=Ee.hasOwnProperty(io)?Ee[io]:Object.defineProperty(Ee,io,{value:{}})[io];We[G]=We.hasOwnProperty(G)&&We[G]||[],We[G].unshift(v),r&&r(B,G,...p)}}return n&&(a.prototype=Object.create(n.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const qu=oo("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Aa(e)}));class Zn{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=qe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const s_=new Zn("AnalyzeForEntryComponents");class Uo{}const a_=Vr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),Uo),l_=Vr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Uo),c_=Vr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),Uo),u_=Vr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Uo);var ni=(()=>((ni=ni||{})[ni.Directive=0]="Directive",ni[ni.Component=1]="Component",ni[ni.Injectable=2]="Injectable",ni[ni.Pipe=3]="Pipe",ni[ni.NgModule=4]="NgModule",ni))();function ii(e){const t=Vt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Fs=Function;function Wo(e){return"function"==typeof e}function Zi(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)),Zi(r,t)):t!==e&&t.push(r)}return t}function pr(e,t){e.forEach(n=>Array.isArray(n)?pr(n,t):t(n))}function td(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function ks(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function zo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function Ri(e,t,n){let r=so(e,t);return r>=0?e[1|r]=n:(r=~r,function f_(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 xa(e,t){const n=so(e,t);if(n>=0)return e[1|n]}function so(e,t){return function rd(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const a=r+(o-r>>1),p=e[a<<n];if(t===p)return a<<n;p>t?o=a:r=a+1}return~(o<<n)}(e,t,1)}const p_=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,m_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,g_=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,__=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Ra{constructor(t){this._reflect=t||Vt.Reflect}isReflectionEnabled(){return!0}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let r;r=zo(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 y_(e){return p_.test(e)||__.test(e)||m_.test(e)&&!g_.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 v="function"==typeof o?o():o,M=v.map(G=>G&&G.type),B=v.map(G=>G&&Fa(G.decorators));return this._zipTypesAndAnnotations(M,B)}const a=t.hasOwnProperty(no)&&t[no],p=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return p||a?this._zipTypesAndAnnotations(p,a):zo(t.length)}parameters(t){if(!Wo(t))return[];const n=Ns(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?Fa(t.decorators):t.hasOwnProperty(to)?t[to]:null}annotations(t){if(!Wo(t))return[];const n=Ns(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]=Fa(r[a])}),o}return t.hasOwnProperty(io)?t[io]:null}propMetadata(t){if(!Wo(t))return{};const n=Ns(t),r={};if(n!==Object){const a=this.propMetadata(n);Object.keys(a).forEach(p=>{r[p]=a[p]})}const o=this._ownPropMetadata(t,n);return o&&Object.keys(o).forEach(a=>{const p=[];r.hasOwnProperty(a)&&p.push(...r[a]),p.push(...o[a]),r[a]=p}),r}ownPropMetadata(t){return Wo(t)&&this._ownPropMetadata(t,Ns(t))||{}}hasLifecycleHook(t,n){return t instanceof Fs&&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 Fa(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Ns(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const $r={},ka="__NG_DI_FLAG__",Ls="ngTempTokenPath",b_=/\n/gm,od="__source",E_=y({provide:String,useValue:y});let Ko;function Na(e){const t=Ko;return Ko=e,t}function D_(e,t=N.Default){if(void 0===Ko)throw new j(203,"");return null===Ko?Te(e,void 0,t):Ko.get(e,t&N.Optional?null:void 0,t)}function ai(e,t=N.Default){return(function Oe(){return oe}()||D_)(T(e),t)}function La(e){throw new Error("invalid")}const T_=ai;function Ba(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 j(900,"");let o,a=N.Default;for(let p=0;p<r.length;p++){const v=r[p],M=M_(v);"number"==typeof M?-1===M?o=v.token:a|=M:o=v}t.push(ai(o,a))}else t.push(ai(r))}return t}function Go(e,t){return e[ka]=t,e.prototype[ka]=t,e}function M_(e){return e[ka]}const Qo=Go(oo("Inject",e=>({token:e})),-1),Wr=Go(oo("Optional"),8),Bs=Go(oo("Self"),2),zr=Go(oo("SkipSelf"),4),sd=Go(oo("Host"),1);let ad=null;function ja(){return ad=ad||new Ra}function js(e){return ld(ja().parameters(e))}function ld(e){return e.map(t=>function I_(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 Bs||"Self"===o.ngMetadataName)t.self=!0;else if(r instanceof sd||"Host"===o.ngMetadataName)t.host=!0;else if(r instanceof Qo)t.token=r.token;else if(r instanceof qu){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 cd(e){const t=[],n=new Map;function r(o){let a=n.get(o);if(!a){const p=e(o);n.set(o,a=p.then(O_))}return a}return ao.forEach((o,a)=>{const p=[];o.templateUrl&&p.push(r(o.templateUrl).then(Ee=>{o.template=Ee}));const v=o.styleUrls,M=o.styles||(o.styles=[]),B=o.styles.length;v&&v.forEach((Ee,We)=>{M.push(""),p.push(r(Ee).then(at=>{M[B+We]=at,v.splice(v.indexOf(Ee),1),0==v.length&&(o.styleUrls=void 0)}))});const G=Promise.all(p).then(()=>function x_(e){Zo.delete(e)}(a));t.push(G)}),dd(),Promise.all(t).then(()=>{})}let ao=new Map;const Zo=new Set;function ud(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function dd(){const e=ao;return ao=new Map,e}function O_(e){return"string"==typeof e?e:e.text()}let Vs,$s;function Va(){if(void 0===Vs&&(Vs=null,Vt.trustedTypes))try{Vs=Vt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Vs}function lo(e){var t;return(null===(t=Va())||void 0===t?void 0:t.createHTML(e))||e}function $a(){if(void 0===$s&&($s=null,Vt.trustedTypes))try{$s=Vt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return $s}function hd(e){var t;return(null===(t=$a())||void 0===t?void 0:t.createHTML(e))||e}function fd(e){var t;return(null===(t=$a())||void 0===t?void 0:t.createScript(e))||e}function pd(e){var t;return(null===(t=$a())||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 k_ extends Kr{getTypeName(){return"HTML"}}class N_ extends Kr{getTypeName(){return"Style"}}class L_ extends Kr{getTypeName(){return"Script"}}class B_ extends Kr{getTypeName(){return"URL"}}class j_ extends Kr{getTypeName(){return"ResourceURL"}}function xr(e){return e instanceof Kr?e.changingThisBreaksApplicationSecurity:e}function co(e,t){const n=md(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 md(e){return e instanceof Kr&&e.getTypeName()||null}function V_(e){return new k_(e)}function $_(e){return new N_(e)}function H_(e){return new L_(e)}function U_(e){return new B_(e)}function W_(e){return new j_(e)}function gd(e){const t=new K_(e);return function G_(){try{return!!(new window.DOMParser).parseFromString(lo(""),"text/html")}catch(e){return!1}}()?new z_(t):t}class z_{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 K_{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 p=n.item(o).name;("xmlns:ns1"===p||0===p.indexOf("ns1:"))&&t.removeAttribute(p)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const Q_=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Z_=/^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 Yo(e){return(e=String(e)).match(Q_)||e.match(Z_)?e:"unsafe:"+e}function _d(e){return(e=String(e)).split(",").map(t=>Yo(t.trim())).join(", ")}function mr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Jo(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const yd=mr("area,br,col,hr,img,wbr"),vd=mr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),bd=mr("rp,rt"),Ha=Jo(yd,Jo(vd,mr("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")),Jo(bd,mr("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")),Jo(bd,vd)),Ua=mr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Wa=mr("srcset"),Cd=Jo(Ua,Wa,mr("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"),mr("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")),Y_=mr("script,style,template");class J_{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(!Ha.hasOwnProperty(n))return this.sanitizedSomething=!0,!Y_.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),p=a.name,v=p.toLowerCase();if(!Cd.hasOwnProperty(v)){this.sanitizedSomething=!0;continue}let M=a.value;Ua[v]&&(M=Yo(M)),Wa[v]&&(M=_d(M)),this.buf.push(" ",p,'="',Ed(M),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Ha.hasOwnProperty(n)&&!yd.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Ed(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 X_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,q_=/([^\#-~ |!])/g;function Ed(e){return e.replace(/&/g,"&").replace(X_,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(q_,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Hs;function Dd(e,t){let n=null;try{Hs=Hs||gd(e);let r=t?String(t):"";n=Hs.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=Hs.getInertBodyElement(r)}while(r!==a);return lo((new J_).sanitizeChildren(za(n)||n))}finally{if(n){const r=za(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function za(e){return"content"in e&&function ey(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var qn=(()=>((qn=qn||{})[qn.NONE=0]="NONE",qn[qn.HTML=1]="HTML",qn[qn.STYLE=2]="STYLE",qn[qn.SCRIPT=3]="SCRIPT",qn[qn.URL=4]="URL",qn[qn.RESOURCE_URL=5]="RESOURCE_URL",qn))();function Td(e){const t=Xo();return t?hd(t.sanitize(qn.HTML,e)||""):co(e,"HTML")?hd(xr(e)):Dd(wi(),V(e))}function Md(e){const t=Xo();return t?t.sanitize(qn.STYLE,e)||"":co(e,"Style")?xr(e):V(e)}function Ka(e){const t=Xo();return t?t.sanitize(qn.URL,e)||"":co(e,"URL")?xr(e):Yo(V(e))}function Ga(e){const t=Xo();if(t)return pd(t.sanitize(qn.RESOURCE_URL,e)||"");if(co(e,"ResourceURL"))return pd(xr(e));throw new j(904,"")}function wd(e){const t=Xo();if(t)return fd(t.sanitize(qn.SCRIPT,e)||"");if(co(e,"Script"))return fd(xr(e));throw new j(905,"")}function Sd(e){return lo(e[0])}function Id(e){return function F_(e){var t;return(null===(t=Va())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Pd(e,t,n){return function ty(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Ga:Ka}(t,n)(e)}function Xo(){const e=c();return e&&e[12]}function _i(e){let t=qo(e);if(t){if(Array.isArray(t)){const n=t;let r,o,a;if(function ny(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(r=Rd(n,e),-1==r)throw new Error("The provided component was not found in the application");o=e}else if(function iy(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(r=function oy(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=ry(n)}return-1}(n,e),-1==r)throw new Error("The provided directive was not found in the application");a=Fd(r,n,!1)}else if(r=xd(n,e),-1==r)return null;const p=x(n[r]),v=qo(p),M=v&&!Array.isArray(v)?v:Qa(n,r,p);if(o&&void 0===M.component&&(M.component=o,yi(M.component,M)),a&&void 0===M.directives){M.directives=a;for(let B=0;B<a.length;B++)yi(a[B],M)}yi(M.native,M),t=M}}else{const n=e;let r=n;for(;r=r.parentNode;){const o=qo(r);if(o){let a;if(a=Array.isArray(o)?o:o.lView,!a)return null;const p=xd(a,n);if(p>=0){const v=x(a[p]),M=Qa(a,p,v);yi(v,M),t=M;break}}}}return t||null}function Qa(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Ad(e){let n,t=qo(e);if(Array.isArray(t)){const r=Rd(t,e);n=hn(r,t);const o=Qa(t,r,n[0]);o.component=e,yi(e,o),yi(o.native,o)}else n=hn(t.nodeIndex,t.lView);return n}const Od="__ngContext__";function yi(e,t){e[Od]=t}function qo(e){return e[Od]||null}function Za(e){const t=qo(e);return t?Array.isArray(t)?t:t.lView:null}function xd(e,t){const n=e[1];for(let r=20;r<n.bindingStartIndex;r++)if(x(e[r])===t)return r;return-1}function ry(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 Rd(e,t){const n=e[1].components;if(n)for(let r=0;r<n.length;r++){const o=n[r];if(hn(o,e)[8]===t)return o}else if(hn(20,e)[8]===t)return 20;return-1}function Fd(e,t,n){const r=t[1].data[e];let o=r.directiveStart;return 0==o?wt:(!n&&2&r.flags&&o++,t.slice(o,r.directiveEnd))}const Ya="ngOriginalError";function Ja(e){return e[Ya]}function dy(e,...t){e.error(...t)}class es{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function uy(e){return e&&e.ngErrorLogger||dy}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Ja(t);for(;n&&Ja(n);)n=Ja(n);return n||null}}const kd={name:"custom-elements"},Nd={name:"no-errors-schema"},hy=/^>|^->|<!--|-->|--!>|<!-$/g,fy=/(<|>)/;const Bd=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Vt))();function jd(e){return e.ownerDocument.defaultView}function Vd(e){return e.ownerDocument}function $d(e){return e.ownerDocument.body}function gr(e){return e instanceof Function?e():e}var _r=(()=>((_r=_r||{})[_r.Important=1]="Important",_r[_r.DashCase=2]="DashCase",_r))();let Xa;function qa(e,t){return Xa(e,t)}function ts(e){const t=e[3];return zn(t)?t[3]:t}function zd(e){return function Wd(e){let t=Wn(e)?e:Za(e);for(;t&&!(512&t[2]);)t=ts(t);return t}(e)[8]}function el(e){return Kd(e[13])}function tl(e){return Kd(e[4])}function Kd(e){for(;null!==e&&!zn(e);)e=e[4];return e}function ho(e,t,n,r,o){if(null!=r){let a,p=!1;zn(r)?a=r:Wn(r)&&(p=!0,r=r[0]);const v=x(r);0===e&&null!==n?null==o?Xd(t,n,v):Gr(t,n,v,o||null,!0):1===e&&null!==n?Gr(t,n,v,o||null,!0):2===e?oh(t,v,p):3===e&&t.destroyNode(v),null!=a&&function xy(e,t,n,r,o){const a=n[7];a!==x(n)&&ho(t,e,r,a,o);for(let v=10;v<n.length;v++){const M=n[v];ns(M[1],M,e,t,r,a)}}(t,e,a,n,o)}}function nl(e,t){return On(e)?e.createText(t):e.createTextNode(t)}function Gd(e,t,n){On(e)?e.setValue(t,n):t.textContent=n}function by(e,t){return e.createComment(function Ld(e){return e.replace(hy,t=>t.replace(fy,"\u200b$1\u200b"))}(t))}function il(e,t,n){if(On(e))return e.createElement(t,n);{const r=null!==n?function Gi(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":t===Oi?"http://www.w3.org/1998/MathML/":null}(n):null;return null===r?e.createElement(t):e.createElementNS(r,t)}}function Qd(e,t){const n=e[9],r=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,J(o,-1)),n.splice(r,1)}function rl(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&Qd(o,r),t>0&&(e[n-1][4]=r[4]);const a=ks(e,10+t);!function Cy(e,t){ns(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const p=a[19];null!==p&&p.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Zd(e,t){if(!(256&t[2])){const n=t[11];On(n)&&n.destroyNode&&ns(e,t,n,3,null,null),function Ty(e){let t=e[13];if(!t)return ol(e[1],e);for(;t;){let n=null;if(Wn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Wn(t)&&ol(t[1],t),t=t[3];null===t&&(t=e),Wn(t)&&ol(t[1],t),n=t&&t[4]}t=n}}(t)}}function ol(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Iy(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 jo)){const a=n[r+1];if(Array.isArray(a))for(let p=0;p<a.length;p+=2){const v=o[a[p]],M=a[p+1];Qn(4,v,M);try{M.call(v)}finally{Qn(5,v,M)}}else{Qn(4,o,a);try{a.call(o)}finally{Qn(5,o,a)}}}}}(e,t),function Sy(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 p=n[a+1],v="function"==typeof p?p(t):x(t[p]),M=r[o=n[a+2]],B=n[a+3];"boolean"==typeof B?v.removeEventListener(n[a],M,B):B>=0?r[o=B]():r[o=-B].unsubscribe(),a+=2}else{const p=r[o=n[a+1]];n[a].call(p)}if(null!==r){for(let a=o+1;a<r.length;a++)r[a]();t[7]=null}}(e,t),1===t[1].type&&On(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&zn(t[3])){n!==t[3]&&Qd(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Yd(e,t,n){return Jd(e,t.parent,n)}function Jd(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===pt.None||o===pt.Emulated)return null}return Ct(r,n)}function Gr(e,t,n,r,o){On(e)?e.insertBefore(t,n,r,o):t.insertBefore(n,r,o)}function Xd(e,t,n){On(e)?e.appendChild(t,n):t.appendChild(n)}function qd(e,t,n,r,o){null!==r?Gr(e,t,n,r,o):Xd(e,t,n)}function Us(e,t){return On(e)?e.parentNode(t):t.parentNode}function eh(e,t,n){return nh(e,t,n)}function th(e,t,n){return 40&e.type?Ct(e,n):null}let sl,nh=th;function ih(e,t){nh=e,sl=t}function Ws(e,t,n,r){const o=Yd(e,r,t),a=t[11],v=eh(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let M=0;M<n.length;M++)qd(a,o,n[M],v,!1);else qd(a,o,n,v,!1);void 0!==sl&&sl(a,r,t,n,o)}function zs(e,t){if(null!==t){const n=t.type;if(3&n)return Ct(t,e);if(4&n)return al(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return zs(e,r);{const o=e[t.index];return zn(o)?al(-1,o):x(o)}}if(32&n)return qa(t,e)()||x(e[t.index]);{const r=rh(e,t);return null!==r?Array.isArray(r)?r[0]:zs(ts(e[16]),r):zs(e,t.next)}}return null}function rh(e,t){return null!==t?e[16][6].projection[t.projection]:null}function al(e,t){const n=10+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return zs(r,o)}return t[7]}function oh(e,t,n){const r=Us(e,t);r&&function Py(e,t,n,r){On(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}function ll(e,t,n,r,o,a,p){for(;null!=n;){const v=r[n.index],M=n.type;if(p&&0===t&&(v&&yi(x(v),r),n.flags|=4),64!=(64&n.flags))if(8&M)ll(e,t,n.child,r,o,a,!1),ho(t,e,o,v,a);else if(32&M){const B=qa(n,r);let G;for(;G=B();)ho(t,e,o,G,a);ho(t,e,o,v,a)}else 16&M?sh(e,t,r,n,o,a):ho(t,e,o,v,a);n=p?n.projectionNext:n.next}}function ns(e,t,n,r,o,a){ll(n,r,e.firstChild,t,o,a,!1)}function sh(e,t,n,r,o,a){const p=n[16],M=p[6].projection[r.projection];if(Array.isArray(M))for(let B=0;B<M.length;B++)ho(t,e,o,M[B],a);else ll(e,t,M,p[3],o,a,!0)}function ah(e,t,n){On(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function cl(e,t,n){On(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function lh(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 ch="ng-template";function Fy(e,t,n){let r=0;for(;r<e.length;){let o=e[r++];if(n&&"class"===o){if(o=e[r],-1!==lh(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 uh(e){return 4===e.type&&e.value!==ch}function ky(e,t,n){return t===(4!==e.type||n?e.value:ch)}function Ny(e,t,n){let r=4;const o=e.attrs||[],a=function jy(e){for(let t=0;t<e.length;t++)if($u(e[t]))return t;return e.length}(o);let p=!1;for(let v=0;v<t.length;v++){const M=t[v];if("number"!=typeof M){if(!p)if(4&r){if(r=2|1&r,""!==M&&!ky(e,M,n)||""===M&&1===t.length){if(nr(r))return!1;p=!0}}else{const B=8&r?M:t[++v];if(8&r&&null!==e.attrs){if(!Fy(e.attrs,B,n)){if(nr(r))return!1;p=!0}continue}const Ee=Ly(8&r?"class":M,o,uh(e),n);if(-1===Ee){if(nr(r))return!1;p=!0;continue}if(""!==B){let We;We=Ee>a?"":o[Ee+1].toLowerCase();const at=8&r?We:null;if(at&&-1!==lh(at,B,0)||2&r&&B!==We){if(nr(r))return!1;p=!0}}}}else{if(!p&&!nr(r)&&!nr(M))return!1;if(p&&nr(M))continue;p=!1,r=M|1&r}}return nr(r)||p}function nr(e){return 0==(1&e)}function Ly(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let a=!1;for(;o<t.length;){const p=t[o];if(p===e)return o;if(3===p||6===p)a=!0;else{if(1===p||2===p){let v=t[++o];for(;"string"==typeof v;)v=t[++o];continue}if(4===p)break;if(0===p){o+=4;continue}}o+=a?1:2}return-1}return function Vy(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 dh(e,t,n=!1){for(let r=0;r<t.length;r++)if(Ny(e,t[r],n))return!0;return!1}function $y(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 hh(e,t){return e?":not("+t.trim()+")":t}function Hy(e){let t=e[0],n=1,r=2,o="",a=!1;for(;n<e.length;){let p=e[n];if("string"==typeof p)if(2&r){const v=e[++n];o+="["+p+(v.length>0?'="'+v+'"':"")+"]"}else 8&r?o+="."+p:4&r&&(o+=" "+p);else""!==o&&!nr(p)&&(t+=hh(a,o),o=""),r=p,a=a||!nr(r);n++}return""!==o&&(t+=hh(a,o)),t}const fn={};function fh(e){ph(E(),c(),kn()+e,pn())}function ph(e,t,n,r){if(!r)if(3==(3&t[2])){const a=e.preOrderCheckHooks;null!==a&&ws(t,a,n)}else{const a=e.preOrderHooks;null!==a&&Ss(t,a,0,n)}di(n)}function Ks(e,t){return e<<17|t<<2}function ir(e){return e>>17&32767}function ul(e){return 2|e}function Rr(e){return(131068&e)>>2}function dl(e,t){return-131069&e|t<<2}function hl(e){return 1|e}const bl=(()=>Promise.resolve(null))();function Mh(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 p=e.data[a];Yt(o),p.contentQueries(2,t[a],a)}}}function is(e,t,n,r,o,a,p,v,M,B){const G=t.blueprint.slice();return G[0]=o,G[2]=140|r,S(G),G[3]=G[15]=e,G[8]=n,G[10]=p||e&&e[10],G[11]=v||e&&e[11],G[12]=M||e&&e[12]||null,G[9]=B||e&&e[9]||null,G[6]=a,G[16]=2==t.type?e[16]:G,G}function fo(e,t,n,r,o){let a=e.data[t];if(null===a)a=Cl(e,t,n,r,o),function te(){return Xe.lFrame.inI18n}()&&(a.flags|=64);else if(64&a.type){a.type=n,a.value=r,a.attrs=o;const p=He();a.injectorIndex=null===p?-1:p.injectorIndex}return nt(a,!0),a}function Cl(e,t,n,r,o){const a=Le(),p=mt(),M=e.data[t]=function sv(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,p?a:a&&a.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=M),null!==a&&(p?null==a.child&&null!==M.parent&&(a.child=M):null===a.next&&(a.next=M)),M}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 rs(e,t,n){Sn(t);try{const r=e.viewQuery;null!==r&&Al(1,r,n);const o=e.template;null!==o&&wh(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Mh(e,t),e.staticViewQueries&&Al(2,e.viewQuery,n);const a=e.components;null!==a&&function iv(e,t){for(let n=0;n<t.length;n++)Tv(e,t[n])}(t,a)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,En()}}function mo(e,t,n,r){const o=t[2];if(256==(256&o))return;Sn(t);const a=pn();try{S(t),ee(e.bindingStartIndex),null!==n&&wh(e,t,n,2,r);const p=3==(3&o);if(!a)if(p){const B=e.preOrderCheckHooks;null!==B&&ws(t,B,null)}else{const B=e.preOrderHooks;null!==B&&Ss(t,B,0,null),Da(t,0)}if(function Ev(e){for(let t=el(e);null!==t;t=tl(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])&&J(a,1),o[2]|=1024}}}(t),function Cv(e){for(let t=el(e);null!==t;t=tl(t))for(let n=10;n<t.length;n++){const r=t[n],o=r[1];Bn(r)&&mo(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&Mh(e,t),!a)if(p){const B=e.contentCheckHooks;null!==B&&ws(t,B)}else{const B=e.contentHooks;null!==B&&Ss(t,B,1),Da(t,1)}!function tv(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)di(~o);else{const a=o,p=n[++r],v=n[++r];je(p,a),v(2,t[a])}}}finally{di(-1)}}(e,t);const v=e.components;null!==v&&function nv(e,t){for(let n=0;n<t.length;n++)Dv(e,t[n])}(t,v);const M=e.viewQuery;if(null!==M&&Al(2,M,r),!a)if(p){const B=e.viewCheckHooks;null!==B&&ws(t,B)}else{const B=e.viewHooks;null!==B&&Ss(t,B,2),Da(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),a||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,J(t[3],-1))}finally{En()}}function rv(e,t,n,r){const o=t[10],a=!pn(),p=_n(t);try{a&&!p&&o.begin&&o.begin(),p&&rs(e,t,r),mo(e,t,n,r)}finally{a&&!p&&o.end&&o.end()}}function wh(e,t,n,r,o){const a=kn(),p=2&r;try{di(-1),p&&t.length>20&&ph(e,t,20,pn()),Qn(p?2:0,o),n(r,o)}finally{di(a),Qn(p?3:1,o)}}function Sh(e,t,n){if(bi(t)){const o=t.directiveEnd;for(let a=t.directiveStart;a<o;a++){const p=e.data[a];p.contentQueries&&p.contentQueries(1,n[a],a)}}}function El(e,t,n){!hr()||(function fv(e,t,n,r){const o=n.directiveStart,a=n.directiveEnd;e.firstCreatePass||$o(n,t),yi(r,t);const p=n.initialInputs;for(let v=o;v<a;v++){const M=e.data[v],B=Hn(M);B&&yv(t,n,M);const G=Ho(t,e,v,n);yi(G,t),null!==p&&vv(0,v-o,G,M,0,p),B&&(hn(n.index,t)[8]=G)}}(e,t,n,Ct(n,t)),128==(128&n.flags)&&function pv(e,t,n){const r=n.directiveStart,o=n.directiveEnd,p=n.index,v=function it(){return Xe.lFrame.currentDirectiveIndex}();try{di(p);for(let M=r;M<o;M++){const B=e.data[M],G=t[M];bt(M),(null!==B.hostBindings||0!==B.hostVars||null!==B.hostAttrs)&&kh(B,G)}}finally{di(-1),bt(v)}}(e,t,n))}function Dl(e,t,n=Ct){const r=t.localNames;if(null!==r){let o=t.index+1;for(let a=0;a<r.length;a+=2){const p=r[a+1],v=-1===p?n(t,e):e[p];e[o++]=v}}}function Ih(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Zs(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Zs(e,t,n,r,o,a,p,v,M,B){const G=20+r,Ee=G+o,We=function ov(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:fn);return n}(G,Ee),at="function"==typeof B?B():B;return We[1]={type:e,blueprint:We,template:n,queries:null,viewQuery:v,declTNode:t,data:We.slice().fill(null,G),bindingStartIndex:G,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 p?p():p,firstChild:null,schemas:M,consts:at,incompleteFirstPass:!1}}function Ah(e,t,n){if(On(e))return e.selectRootElement(t,n===pt.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}function Oh(e,t,n,r){const o=$h(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Hh(e).push(r,o.length-1))}function xh(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 Fi(e,t,n,r,o,a,p,v){const M=Ct(t,n);let G,B=t.inputs;!v&&null!=B&&(G=B[r])?(zh(e,n,G,r,o),Ti(t)&&function cv(e,t){const n=hn(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function lv(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=p?p(o,t.value||"",r):o,On(a)?a.setProperty(M,r,o):Ma(r)||(M.setProperty?M.setProperty(r,o):M[r]=o))}function Tl(e,t,n,r){let o=!1;if(hr()){const a=function mv(e,t,n){const r=e.directiveRegistry;let o=null;if(r)for(let a=0;a<r.length;a++){const p=r[a];dh(n,p.selectors,!1)&&(o||(o=[]),xs($o(n,t),e,p.type),Hn(p)?(Nh(e,n),o.unshift(p)):o.push(p))}return o}(e,t,n),p=null===r?null:{"":-1};if(null!==a){o=!0,Lh(n,e.data.length,a.length);for(let G=0;G<a.length;G++){const Ee=a[G];Ee.providersResolver&&Ee.providersResolver(Ee)}let v=!1,M=!1,B=po(e,t,a.length,null);for(let G=0;G<a.length;G++){const Ee=a[G];n.mergedAttrs=Ps(n.mergedAttrs,Ee.hostAttrs),Bh(e,n,t,B,Ee),_v(B,Ee,p),null!==Ee.contentQueries&&(n.flags|=8),(null!==Ee.hostBindings||null!==Ee.hostAttrs||0!==Ee.hostVars)&&(n.flags|=128);const We=Ee.type.prototype;!v&&(We.ngOnChanges||We.ngOnInit||We.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),v=!0),!M&&(We.ngOnChanges||We.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),M=!0),B++}!function av(e,t){const r=t.directiveEnd,o=e.data,a=t.attrs,p=[];let v=null,M=null;for(let B=t.directiveStart;B<r;B++){const G=o[B],Ee=G.inputs,We=null===a||uh(t)?null:bv(Ee,a);p.push(We),v=xh(Ee,B,v),M=xh(G.outputs,B,M)}null!==v&&(v.hasOwnProperty("class")&&(t.flags|=16),v.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=p,t.inputs=v,t.outputs=M}(e,n)}p&&function gv(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 j(-301,`Export of name '${t[o+1]}' not found!`);r.push(t[o],a)}}}(n,r,p)}return n.mergedAttrs=Ps(n.mergedAttrs,n.attrs),o}function Fh(e,t,n,r,o,a){const p=a.hostBindings;if(p){let v=e.hostBindingOpCodes;null===v&&(v=e.hostBindingOpCodes=[]);const M=~t.index;(function hv(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(v)!=M&&v.push(M),v.push(r,o,p)}}function kh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Nh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function _v(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Hn(t)&&(n[""]=e)}}function Lh(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Bh(e,t,n,r,o){e.data[r]=o;const a=o.factory||(o.factory=pi(o.type)),p=new jo(a,Hn(o),null);e.blueprint[r]=p,n[r]=p,Fh(e,t,0,r,po(e,n,o.hostVars,fn),o)}function yv(e,t,n){const r=Ct(t,e),o=Ih(n),a=e[10],p=Ys(e,is(e,o,null,n.onPush?64:16,r,t,a,a.createRenderer(r,n),null,null));e[t.index]=p}function yr(e,t,n,r,o,a){const p=Ct(e,t);Ml(t[11],p,a,e.value,n,r,o)}function Ml(e,t,n,r,o,a,p){if(null==a)On(e)?e.removeAttribute(t,o,n):t.removeAttribute(o);else{const v=null==p?V(a):p(a,r||"",o);On(e)?e.setAttribute(t,o,v,n):n?t.setAttributeNS(n,o,v):t.setAttribute(o,v)}}function vv(e,t,n,r,o,a){const p=a[t];if(null!==p){const v=r.setInput;for(let M=0;M<p.length;){const B=p[M++],G=p[M++],Ee=p[M++];null!==v?r.setInput(n,Ee,B,G):n[G]=Ee}}}function bv(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 jh(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function Dv(e,t){const n=hn(t,e);if(Bn(n)){const r=n[1];80&n[2]?mo(r,n,r.template,n[8]):n[5]>0&&wl(n)}}function wl(e){for(let r=el(e);null!==r;r=tl(r))for(let o=10;o<r.length;o++){const a=r[o];if(1024&a[2]){const p=a[1];mo(p,a,p.template,a[8])}else a[5]>0&&wl(a)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=hn(n[r],e);Bn(o)&&o[5]>0&&wl(o)}}function Tv(e,t){const n=hn(t,e),r=n[1];(function Mv(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),rs(r,n,n[8])}function Ys(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Sl(e){for(;e;){e[2]|=64;const t=ts(e);if(Dr(e)&&!t)return e;e=t}return null}function Il(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=Za(n),o=r[1];rv(o,r,o.template,n)}}function Pl(e,t,n){const r=t[10];r.begin&&r.begin();try{mo(e,t,e.template,n)}catch(o){throw Wh(t,o),o}finally{r.end&&r.end()}}function Vh(e){Il(e[8])}function Al(e,t,n){Yt(0),t(e,n)}const Pv=bl;function $h(e){return e[7]||(e[7]=[])}function Hh(e){return e.cleanup||(e.cleanup=[])}function Uh(e,t,n){return(null===e||Hn(e))&&(n=function ie(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Wh(e,t){const n=e[9],r=n?n.get(es,null):null;r&&r.handleError(t)}function zh(e,t,n,r,o){for(let a=0;a<n.length;){const p=n[a++],v=n[a++],M=t[p],B=e.data[p];null!==B.setInput?B.setInput(M,o,r,v):M[v]=o}}function Fr(e,t,n){const r=dt(t,e);Gd(e[11],r,n)}function Js(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,a=0;if(null!==t)for(let p=0;p<t.length;p++){const v=t[p];"number"==typeof v?a=v:1==a?o=w(o,v):2==a&&(r=w(r,v+": "+t[++p]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function Kh(e){const t=Ad(e);Pl(t[1],t,e)}function Gh(e){!function wv(e,t){if(0===e.flags&&e.clean==bl){let r;e.flags|=t,e.clean=new Promise(o=>r=o),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Il(e)),2&e.flags){e.flags&=-3;const o=e.playerHandler;o&&o.flushPlayers()}e.clean=bl,r(null)})}}(Sl(Ad(e))[8],1)}const Xs=new Zn("INJECTOR",-1);class Qh{get(t,n=$r){if(n===$r){const r=new Error(`NullInjectorError: No provider for ${D(t)}!`);throw r.name="NullInjectorError",r}return n}}const Ol=new Zn("Set Injector scope."),os={},Av={};let xl;function Zh(){return void 0===xl&&(xl=new Qh),xl}function Rl(e,t=null,n=null,r){const o=Yh(e,t,n,r);return o._resolveInjectorDefTypes(),o}function Yh(e,t=null,n=null,r){return new Ov(e,n,t||Zh(),r)}class Ov{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&&pr(n,v=>this.processProvider(v,t,n)),pr([t],v=>this.processInjectorType(v,[],a)),this.records.set(Xs,go(void 0,this));const p=this.records.get(Ol);this.scope=null!=p?p.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=$r,r=N.Default){this.assertNotDestroyed();const o=Na(this),a=ue(void 0);try{if(!(r&N.SkipSelf)){let v=this.records.get(t);if(void 0===v){const M=function jv(e){return"function"==typeof e||"object"==typeof e&&e instanceof Zn}(t)&&we(t);v=M&&this.injectableDefInScope(M)?go(Fl(t),os):null,this.records.set(t,v)}if(null!=v)return this.hydrate(t,v)}return(r&N.Self?Zh():this.parent).get(t,n=r&N.Optional&&n===$r?null:n)}catch(p){if("NullInjectorError"===p.name){if((p[Ls]=p[Ls]||[]).unshift(D(t)),o)throw p;return function w_(e,t,n,r){const o=e[Ls];throw t[od]&&o.unshift(t[od]),e.message=function S_(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 p in t)if(t.hasOwnProperty(p)){let v=t[p];a.push(p+":"+("string"==typeof v?JSON.stringify(v):D(v)))}o=`{${a.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(b_,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Ls]=null,e}(p,t,"R3InjectorError",this.source)}throw p}finally{ue(a),Na(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 j(205,"")}processInjectorType(t,n,r){if(!(t=T(t)))return!1;let o=vt(t);const a=null==o&&t.ngModule||void 0,p=void 0===a?t:a,v=-1!==r.indexOf(p);if(void 0!==a&&(o=vt(a)),null==o)return!1;if(null!=o.imports&&!v){let G;r.push(p);try{pr(o.imports,Ee=>{this.processInjectorType(Ee,n,r)&&(void 0===G&&(G=[]),G.push(Ee))})}finally{}if(void 0!==G)for(let Ee=0;Ee<G.length;Ee++){const{ngModule:We,providers:at}=G[Ee];pr(at,yt=>this.processProvider(yt,We,at||wt))}}this.injectorDefTypes.add(p);const M=pi(p)||(()=>new p);this.records.set(p,go(M,os));const B=o.providers;if(null!=B&&!v){const G=t;pr(B,Ee=>this.processProvider(Ee,G,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 Rv(e,t,n){return Xh(e)?go(void 0,e.useValue):go(Jh(e),os)}(t);if(_o(t)||!0!==t.multi)this.records.get(o);else{let p=this.records.get(o);p||(p=go(void 0,os,!0),p.factory=()=>Ba(p.multi),this.records.set(o,p)),o=t,p.multi.push(t)}this.records.set(o,a)}hydrate(t,n){return n.value===os&&(n.value=Av,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Bv(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 Fl(e){const t=we(e),n=null!==t?t.factory:pi(e);if(null!==n)return n;if(e instanceof Zn)throw new j(204,"");if(e instanceof Function)return function xv(e){const t=e.length;if(t>0)throw zo(t,"?"),new j(204,"");const n=function ge(e){const t=e&&(e[Et]||e[ht]);if(t){const n=function Je(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 j(204,"")}function Jh(e,t,n){let r;if(_o(e)){const o=T(e);return pi(o)||Fl(o)}if(Xh(e))r=()=>T(e.useValue);else if(function kv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ba(e.deps||[]));else if(function Fv(e){return!(!e||!e.useExisting)}(e))r=()=>ai(T(e.useExisting));else{const o=T(e&&(e.useClass||e.provide));if(!function Lv(e){return!!e.deps}(e))return pi(o)||Fl(o);r=()=>new o(...Ba(e.deps))}return r}function go(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Xh(e){return null!==e&&"object"==typeof e&&E_ in e}function _o(e){return"function"==typeof e}let ki=(()=>{class e{static create(n,r){var o;if(Array.isArray(n))return Rl({name:""},r,n,"");{const a=null!==(o=n.name)&&void 0!==o?o:"";return Rl({name:a},n.parent,n.providers,a)}}}return e.THROW_IF_NOT_FOUND=$r,e.NULL=new Qh,e.\u0275prov=qe({token:e,providedIn:"any",factory:()=>ai(Xs)}),e.__NG_ELEMENT_ID__=-1,e})();function kl(e){Ll(e);const t=_i(e);return null===t?null:(void 0===t.component&&(t.component=function sy(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function qh(e){Ll(e);const t=_i(e);return null===t?null:t.lView[8]}function ef(e){const t=_i(e);if(null===t)return null;let r,n=t.lView;for(;2===n[1].type&&(r=ts(n));)n=r;return 512&n[2]?null:n[8]}function tf(e){return[...zd(e).components]}function nf(e){const t=_i(e);return null===t?ki.NULL:new eo(t.lView[1].data[t.nodeIndex],t.lView)}function rf(e){if(e instanceof Text)return[];const t=_i(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=Fd(o,n,!1)),null===t.directives?[]:[...t.directives]):[]}function $v(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=ft(t);return r?{inputs:r.inputs,outputs:r.outputs}:null}function Nl(e){return _i(e).native}function sf(e){Ll(e);const t=_i(e);if(null===t)return[];const n=t.lView,o=n[7],a=n[1].cleanup,p=[];if(a&&o)for(let v=0;v<a.length;){const M=a[v++],B=a[v++];if("string"==typeof M){const G=M,Ee=x(n[B]),We=o[a[v++]],at=a[v++],yt="boolean"==typeof at||at>=0?"dom":"output",Pt="boolean"==typeof at&&at;e==Ee&&p.push({element:e,name:G,callback:We,useCapture:Pt,type:yt})}}return p.sort(Uv),p}function Uv(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function Wv(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function Ll(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function zv(e){Gh(e),tf(e).forEach(t=>Kh(t))}let lf=!1;function Kv(){lf||(lf=!0,Yi("\u0275setProfiler",dr),Yi("getDirectiveMetadata",$v),Yi("getComponent",kl),Yi("getContext",qh),Yi("getListeners",sf),Yi("getOwningComponent",ef),Yi("getHostElement",Nl),Yi("getInjector",nf),Yi("getRootComponents",tf),Yi("getDirectives",rf),Yi("applyChanges",zv))}function Yi(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Vt;if(n){let r=n.ng;r||(r=n.ng={}),r[e]=t}}}function Gv(e,t={}){const n=t.rendererFactory||F,r=t.sanitizer||null,o=Ve(e);o.type!=e&&(o.type=e);const a=o.selectors[0][0],v=Ah(n.createRenderer(null,null),t.host||a,o.encapsulation),M=o.onPush?576:528,B=df(t.scheduler,t.playerHandler),G=n.createRenderer(v,o),Ee=Zs(0,null,null,1,0,null,null,null,null,null),We=is(null,Ee,B,M,null,null,n,G,null,t.injector||null);let at;Sn(We);try{n.begin&&n.begin(),at=uf(cf(v,o,We,n,G,r),o,We,B,t.hostFeatures||null),rs(Ee,We,null),mo(Ee,We,null,null)}finally{En(),n.end&&n.end()}return at}function cf(e,t,n,r,o,a){const p=n[1];n[20]=e;const M=fo(p,20,2,"#host",null),B=M.mergedAttrs=t.hostAttrs;null!==B&&(Js(M,B,!0),null!==e&&(Is(o,e,B),null!==M.classes&&cl(o,e,M.classes),null!==M.styles&&ah(o,e,M.styles)));const G=r.createRenderer(e,t),Ee=is(n,Ih(t),null,t.onPush?64:16,n[20],M,r,G,a||null,null);return p.firstCreatePass&&(xs($o(M,n),p,t.type),Nh(p,M),Lh(M,n.length,1)),Ys(n,Ee),n[20]=Ee}function uf(e,t,n,r,o){const a=n[1],p=function dv(e,t,n){const r=ce();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Bh(e,r,t,po(e,t,1,null),n));const o=Ho(t,e,r.directiveStart,r);yi(o,t);const a=Ct(r,t);return a&&yi(a,t),o}(a,n,t);if(r.components.push(p),e[8]=p,o&&o.forEach(M=>M(p,t)),t.contentQueries){const M=ce();t.contentQueries(1,p,M.directiveStart)}const v=ce();return!a.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(di(v.index),Fh(n[1],v,0,v.directiveStart,v.directiveEnd,t),kh(t,p)),p}function df(e,t){return{components:[],scheduler:e||Bd,clean:Pv,playerHandler:t||null,flags:0}}function hf(e,t){Br(Za(e)[1],ce())}function Qv(e){return zd(e).clean}function ff(e){return Object.getPrototypeOf(e.prototype).constructor}function Bl(e){let t=ff(e.type),n=!0;const r=[e];for(;t;){let o;if(Hn(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new j(903,"");o=t.\u0275dir}if(o){if(n){r.push(o);const p=e;p.inputs=jl(e.inputs),p.declaredInputs=jl(e.declaredInputs),p.outputs=jl(e.outputs);const v=o.hostBindings;v&&Xv(e,v);const M=o.viewQuery,B=o.contentQueries;if(M&&Yv(e,M),B&&Jv(e,B),C(e.inputs,o.inputs),C(e.declaredInputs,o.declaredInputs),C(e.outputs,o.outputs),Hn(o)&&o.data.animation){const G=e.data;G.animation=(G.animation||[]).concat(o.data.animation)}}const a=o.features;if(a)for(let p=0;p<a.length;p++){const v=a[p];v&&v.ngInherit&&v(e),v===Bl&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Zv(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=Ps(o.hostAttrs,n=Ps(n,o.hostAttrs))}}(r)}function jl(e){return e===zt?{}:e===wt?[]:e}function Yv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Jv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,a)=>{t(r,o,a),n(r,o,a)}:t}function Xv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}const qv=["providersResolver"],eb=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function pf(e){let n,t=ff(e.type);n=Hn(e)?t.\u0275cmp:t.\u0275dir;const r=e;for(const o of qv)r[o]=n[o];if(Hn(n))for(const o of eb)r[o]=n[o]}let qs=null;function yo(){if(!qs){const e=Vt.Symbol;if(e&&e.iterator)qs=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&&(qs=r)}}}return qs}function mf(e,t){const n=ss(e),r=ss(t);return n&&r?function tb(e,t,n){const r=e[yo()](),o=t[yo()]();for(;;){const a=r.next(),p=o.next();if(a.done&&p.done)return!0;if(a.done||p.done||!n(a.value,p.value))return!1}}(e,t,mf):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function ss(e){return!!Vl(e)&&(Array.isArray(e)||!(e instanceof Map)&&yo()in e)}function Vl(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function vr(e,t,n){return e[t]=n}function as(e,t){return e[t]}function vi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Qr(e,t,n,r){const o=vi(e,t,n);return vi(e,t+1,r)||o}function ea(e,t,n,r,o){const a=Qr(e,t,n,r);return vi(e,t+2,o)||a}function Ji(e,t,n,r,o,a){const p=Qr(e,t,n,r);return Qr(e,t+2,o,a)||p}function $l(e,t,n,r){const o=c();return vi(o,$(),t)&&(E(),yr(dn(),o,e,t,n,r)),$l}function vo(e,t){let n=!1,r=un();for(let a=1;a<t.length;a+=2)n=vi(e,r++,t[a])||n;if(ee(r),!n)return fn;let o=t[0];for(let a=1;a<t.length;a+=2)o+=V(t[a])+t[a+1];return o}function bo(e,t,n,r){return vi(e,$(),n)?t+V(n)+r:fn}function Co(e,t,n,r,o,a){const v=Qr(e,un(),n,o);return Q(2),v?t+V(n)+r+V(o)+a:fn}function Eo(e,t,n,r,o,a,p,v){const B=ea(e,un(),n,o,p);return Q(3),B?t+V(n)+r+V(o)+a+V(p)+v:fn}function Do(e,t,n,r,o,a,p,v,M,B){const Ee=Ji(e,un(),n,o,p,M);return Q(4),Ee?t+V(n)+r+V(o)+a+V(p)+v+V(M)+B:fn}function To(e,t,n,r,o,a,p,v,M,B,G,Ee){const We=un();let at=Ji(e,We,n,o,p,M);return at=vi(e,We+4,G)||at,Q(5),at?t+V(n)+r+V(o)+a+V(p)+v+V(M)+B+V(G)+Ee:fn}function Mo(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at){const yt=un();let Pt=Ji(e,yt,n,o,p,M);return Pt=Qr(e,yt+4,G,We)||Pt,Q(6),Pt?t+V(n)+r+V(o)+a+V(p)+v+V(M)+B+V(G)+Ee+V(We)+at:fn}function wo(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt){const Rt=un();let Kt=Ji(e,Rt,n,o,p,M);return Kt=ea(e,Rt+4,G,We,yt)||Kt,Q(7),Kt?t+V(n)+r+V(o)+a+V(p)+v+V(M)+B+V(G)+Ee+V(We)+at+V(yt)+Pt:fn}function So(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt,Kt){const Dt=un();let en=Ji(e,Dt,n,o,p,M);return en=Ji(e,Dt+4,G,We,yt,Rt)||en,Q(8),en?t+V(n)+r+V(o)+a+V(p)+v+V(M)+B+V(G)+Ee+V(We)+at+V(yt)+Pt+V(Rt)+Kt:fn}function Hl(e,t,n,r,o,a){const p=c(),v=bo(p,t,n,r);return v!==fn&&yr(dn(),p,e,v,o,a),Hl}function Ul(e,t,n,r,o,a,p,v){const M=c(),B=Co(M,t,n,r,o,a);return B!==fn&&yr(dn(),M,e,B,p,v),Ul}function Wl(e,t,n,r,o,a,p,v,M,B){const G=c(),Ee=Eo(G,t,n,r,o,a,p,v);return Ee!==fn&&yr(dn(),G,e,Ee,M,B),Wl}function zl(e,t,n,r,o,a,p,v,M,B,G,Ee){const We=c(),at=Do(We,t,n,r,o,a,p,v,M,B);return at!==fn&&yr(dn(),We,e,at,G,Ee),zl}function Kl(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at){const yt=c(),Pt=To(yt,t,n,r,o,a,p,v,M,B,G,Ee);return Pt!==fn&&yr(dn(),yt,e,Pt,We,at),Kl}function Gl(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt){const Rt=c(),Kt=Mo(Rt,t,n,r,o,a,p,v,M,B,G,Ee,We,at);return Kt!==fn&&yr(dn(),Rt,e,Kt,yt,Pt),Gl}function Ql(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt,Kt){const Dt=c(),en=wo(Dt,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt);return en!==fn&&yr(dn(),Dt,e,en,Rt,Kt),Ql}function Zl(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt,Kt,Dt,en){const Dn=c(),xn=So(Dn,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt,Kt);return xn!==fn&&yr(dn(),Dn,e,xn,Dt,en),Zl}function Yl(e,t,n,r){const o=c(),a=vo(o,t);return a!==fn&&yr(dn(),o,e,a,n,r),Yl}function gf(e,t,n,r,o,a,p,v){const M=c(),B=E(),G=e+20,Ee=B.firstCreatePass?function ib(e,t,n,r,o,a,p,v,M){const B=t.consts,G=fo(t,e,4,p||null,A(B,v));Tl(t,n,G,A(B,M)),Br(t,G);const Ee=G.tViews=Zs(2,G,r,o,a,t.directiveRegistry,t.pipeRegistry,null,t.schemas,B);return null!==t.queries&&(t.queries.template(t,G),Ee.queries=t.queries.embeddedTView(G)),G}(G,B,M,t,n,r,o,a,p):B.data[G];nt(Ee,!1);const We=M[11].createComment("");Ws(B,M,We,Ee),yi(We,M),Ys(M,M[G]=jh(We,M,We,Ee)),fi(Ee)&&El(B,M,Ee),null!=p&&Dl(M,Ee,v)}function _f(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function yf(e){return yn(function cn(){return Xe.lFrame.contextLView}(),20+e)}const vf={\u0275\u0275defineInjectable:qe,\u0275\u0275defineInjector:pe,\u0275\u0275inject:ai,\u0275\u0275invalidFactoryDep:La,resolveForwardRef:T};const ob=y({provide:String,useValue:y});function bf(e){return void 0!==e.useClass}function Cf(e){return void 0!==e.useFactory}const cb=ro("Injectable",void 0,void 0,void 0,(e,t)=>function rb(e,t){let n=null,r=null;e.hasOwnProperty(Et)||Object.defineProperty(e,Et,{get:()=>(null===n&&(n=ii().compileInjectable(vf,`ng:///${e.name}/\u0275prov.js`,function lb(e,t){const n=t||{providedIn:null},r={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(bf(n)||Cf(n))&&void 0!==n.deps&&(r.deps=ld(n.deps)),bf(n)?r.useClass=n.useClass:function sb(e){return ob in e}(n)?r.useValue=n.useValue:Cf(n)?r.useFactory=n.useFactory:function ab(e){return void 0!==e.useExisting}(n)&&(r.useExisting=n.useExisting),r}(e,t))),n)}),e.hasOwnProperty(Qe)||Object.defineProperty(e,Qe,{get:()=>{if(null===r){const o=ii();r=o.compileFactory(vf,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:js(e),target:o.FactoryTarget.Injectable})}return r},configurable:!0})}(e,t));function Jl(e){return e.length>1?" ("+function ub(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 Xl(e,t,n,r){const o=[t],a=n(o),p=r?function cy(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,r=Error(n);return r[Ya]=t,r}(a,r):Error(a);return p.addKey=db,p.keys=o,p.injectors=[e],p.constructResolvingMessage=n,p[Ya]=r,p}function db(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function Ef(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 _b(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class kr{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 Df.get(T(t))}static get numberOfKeys(){return Df.numberOfKeys}}class yb{constructor(){this._allKeys=new Map}get(t){if(t instanceof kr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const n=new kr(t,kr.numberOfKeys);return this._allKeys.set(t,n),n}get numberOfKeys(){return this._allKeys.size}}const Df=new yb;class vb{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 Tf=new vb(new Ra);class ta{constructor(t,n,r){this.key=t,this.optional=n,this.visibility=r}static fromKey(t){return new ta(t,!1,null)}}const bb=[];class Mf{constructor(t,n,r){this.key=t,this.resolvedFactories=n,this.multiProvider=r,this.resolvedFactory=this.resolvedFactories[0]}}class wf{constructor(t,n){this.factory=t,this.dependencies=n}}function Cb(e){let t,n;if(e.useClass){const r=T(e.useClass);t=Tf.factory(r),n=If(r)}else e.useExisting?(t=r=>r,n=[ta.fromKey(kr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function Mb(e,t){if(t){const n=t.map(r=>[r]);return t.map(r=>Pf(e,r,n))}return If(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=bb);return new wf(t,n)}function Eb(e){return new Mf(kr.get(e.provide),[Cb(e)],e.multi||!1)}function Db(e){const r=function Tb(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 _b(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 Mf(r.key,r.resolvedFactories.slice(),r.multiProvider):r,t.set(r.key.id,a)}}return t}(Sf(e,[]).map(Eb),new Map);return Array.from(r.values())}function Sf(e,t){return e.forEach(n=>{if(n instanceof Fs)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 mb(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(n);Sf(n,t)}}),t}function If(e){const t=Tf.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw Ef(e,t);return t.map(n=>Pf(e,n,t))}function Pf(e,t,n){let r=null,o=!1;if(!Array.isArray(t))return ql(t instanceof Qo?t.token:t,o,null);let a=null;for(let p=0;p<t.length;++p){const v=t[p];v instanceof Fs?r=v:v instanceof Qo?r=v.token:v instanceof Wr?o=!0:v instanceof Bs||v instanceof zr?a=v:v instanceof Zn&&(r=v)}if(r=T(r),null!=r)return ql(r,o,a);throw Ef(e,n)}function ql(e,t,n){return new ta(kr.get(e),t,n)}const ls={};class Io{static resolve(t){return Db(t)}static resolveAndCreate(t,n){const r=Io.resolve(t);return Io.fromResolvedProviders(r,n)}static fromResolvedProviders(t,n){return new wb(t,n)}}let wb=(()=>{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]=ls}get(n,r=$r){return this._getByKey(kr.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 gb(e){return Error(`Index ${e} is out-of-bounds.`)}(n);return this._providers[n]}_new(n){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function fb(e,t){return Xl(e,t,function(n){return`Cannot instantiate cyclic dependency!${Jl(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,p;try{a=r.dependencies.map(v=>this._getByReflectiveDependency(v))}catch(v){throw v.addKey&&v.addKey(this,n.key),v}try{p=o(...a)}catch(v){throw function pb(e,t,n,r){return Xl(e,r,function(o){const a=D(o[0].token);return`${t.message}: Error during instantiation of ${a}!${Jl(o)}.`},t)}(this,v,0,n.key)}return p}_getByReflectiveDependency(n){return this._getByKey(n.key,n.visibility,n.optional?null:$r)}_getByKey(n,r,o){return n===e.INJECTOR_KEY?this:r instanceof Bs?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]===ls&&(this.objs[r]=this._new(this._providers[r])),this.objs[r];return ls}_throwOrNull(n,r){if(r!==$r)return r;throw function hb(e,t){return Xl(e,t,function(n){return`No provider for ${D(n[0].token)}!${Jl(n)}`})}(this,n)}_getByKeySelf(n,r){const o=this._getObjByKeyId(n.id);return o!==ls?o:this._throwOrNull(n,r)}_getByKeyDefault(n,r,o){let a;for(a=o instanceof zr?this.parent:this;a instanceof e;){const p=a,v=p._getObjByKeyId(n.id);if(v!==ls)return v;a=p.parent}return null!==a?a.get(n.token,r):this._throwOrNull(n,r)}get displayName(){return`ReflectiveInjector(providers: [${function Sb(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=kr.get(ki),e})();function cs(e,t=N.Default){const n=c();return null===n?ai(e,t):Qu(ce(),n,T(e),t)}function Af(){throw new Error("invalid")}function ec(e,t,n){const r=c();return vi(r,$(),t)&&Fi(E(),dn(),r,e,t,r[11],n,!1),ec}function tc(e,t,n,r,o){const p=o?"class":"style";zh(e,n,t.inputs[p],p,r)}function nc(e,t,n,r){const o=c(),a=E(),p=20+e,v=o[11],M=o[p]=il(v,t,function fr(){return Xe.lFrame.currentNamespace}()),B=a.firstCreatePass?function Ib(e,t,n,r,o,a,p){const v=t.consts,B=fo(t,e,2,o,A(v,a));return Tl(t,n,B,A(v,p)),null!==B.attrs&&Js(B,B.attrs,!1),null!==B.mergedAttrs&&Js(B,B.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,B),B}(p,a,o,0,t,n,r):a.data[p];nt(B,!0);const G=B.mergedAttrs;null!==G&&Is(v,M,G);const Ee=B.classes;null!==Ee&&cl(v,M,Ee);const We=B.styles;null!==We&&ah(v,M,We),64!=(64&B.flags)&&Ws(a,o,M,B),0===function Fn(){return Xe.lFrame.elementDepthCount}()&&yi(M,o),function Xn(){Xe.lFrame.elementDepthCount++}(),fi(B)&&(El(a,o,B),Sh(a,B,o)),null!==r&&Dl(o,B)}function ic(){let e=ce();mt()?Ot():(e=e.parent,nt(e,!1));const t=e;!function xi(){Xe.lFrame.elementDepthCount--}();const n=E();n.firstCreatePass&&(Br(n,e),bi(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Jg(e){return 0!=(16&e.flags)}(t)&&tc(n,t,c(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Xg(e){return 0!=(32&e.flags)}(t)&&tc(n,t,c(),t.stylesWithoutHost,!1)}function Of(e,t,n,r){nc(e,t,n,r),ic()}function rc(e,t,n){const r=c(),o=E(),a=e+20,p=o.firstCreatePass?function Pb(e,t,n,r,o){const a=t.consts,p=A(a,r),v=fo(t,e,8,"ng-container",p);return null!==p&&Js(v,p,!0),Tl(t,n,v,A(a,o)),null!==t.queries&&t.queries.elementStart(t,v),v}(a,o,r,t,n):o.data[a];nt(p,!0);const v=r[a]=r[11].createComment("");Ws(o,r,v,p),yi(v,r),fi(p)&&(El(o,r,p),Sh(o,p,r)),null!=n&&Dl(r,p)}function oc(){let e=ce();const t=E();mt()?Ot():(e=e.parent,nt(e,!1)),t.firstCreatePass&&(Br(t,e),bi(e)&&t.queries.elementEnd(e))}function xf(e,t,n){rc(e,t,n),oc()}function Rf(){return c()}function sc(e){return!!e&&"function"==typeof e.then}function Ff(e){return!!e&&"function"==typeof e.subscribe}const kf=Ff;function ac(e,t,n,r){const o=c(),a=E(),p=ce();return Nf(a,o,o[11],p,e,t,!!n,r),ac}function lc(e,t){const n=ce(),r=c(),o=E();return Nf(o,r,Uh(_t(o.data),n,r),n,e,t,!1),lc}function Nf(e,t,n,r,o,a,p,v){const M=fi(r),G=e.firstCreatePass&&Hh(e),Ee=t[8],We=$h(t);let at=!0;if(3&r.type||v){const Rt=Ct(r,t),Kt=v?v(Rt):Rt,Dt=We.length,en=v?Dn=>v(x(Dn[r.index])):r.index;if(On(n)){let Dn=null;if(!v&&M&&(Dn=function Ab(e,t,n,r){const o=e.cleanup;if(null!=o)for(let a=0;a<o.length-1;a+=2){const p=o[a];if(p===n&&o[a+1]===r){const v=t[7],M=o[a+2];return v.length>M?v[M]:null}"string"==typeof p&&(a+=2)}return null}(e,t,o,r.index)),null!==Dn)(Dn.__ngLastListenerFn__||Dn).__ngNextListenerFn__=a,Dn.__ngLastListenerFn__=a,at=!1;else{a=cc(r,t,Ee,a,!1);const xn=n.listen(Kt,o,a);We.push(a,xn),G&&G.push(o,en,Dt,Dt+1)}}else a=cc(r,t,Ee,a,!0),Kt.addEventListener(o,a,p),We.push(a),G&&G.push(o,en,Dt,p)}else a=cc(r,t,Ee,a,!1);const yt=r.outputs;let Pt;if(at&&null!==yt&&(Pt=yt[o])){const Rt=Pt.length;if(Rt)for(let Kt=0;Kt<Rt;Kt+=2){const Li=t[Pt[Kt]][Pt[Kt+1]].subscribe(a),Jr=We.length;We.push(a,Li),G&&G.push(o,r.index,Jr,-(Jr+1))}}}function Lf(e,t,n,r){try{return Qn(6,t,n),!1!==n(r)}catch(o){return Wh(e,o),!1}finally{Qn(7,t,n)}}function cc(e,t,n,r,o){return function a(p){if(p===Function)return r;const v=2&e.flags?hn(e.index,t):t;0==(32&t[2])&&Sl(v);let M=Lf(t,n,r,p),B=a.__ngNextListenerFn__;for(;B;)M=Lf(t,n,B,p)&&M,B=B.__ngNextListenerFn__;return o&&!1===M&&(p.preventDefault(),p.returnValue=!1),M}}function Bf(e=1){return function ei(e){return(Xe.lFrame.contextLView=function Qi(e,t){for(;e>0;)t=t[15],e--;return t}(e,Xe.lFrame.contextLView))[8]}(e)}function Ob(e,t){let n=null;const r=function By(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?dh(e,a,!0):$y(r,a))return o}else n=o}return n}function jf(e){const t=c()[16][6];if(!t.projection){const r=t.projection=zo(e?e.length:1,null),o=r.slice();let a=t.child;for(;null!==a;){const p=e?Ob(a,e):0;null!==p&&(o[p]?o[p].projectionNext=a:r[p]=a,o[p]=a),a=a.next}}}function Vf(e,t=0,n){const r=c(),o=E(),a=fo(o,20+e,16,null,n||null);null===a.projection&&(a.projection=t),Ot(),64!=(64&a.flags)&&function Oy(e,t,n){sh(t[11],0,t,n,Yd(e,n,t),eh(n.parent||t[6],n,t))}(o,r,a)}function uc(e,t,n){return na(e,"",t,"",n),uc}function na(e,t,n,r,o){const a=c(),p=bo(a,t,n,r);return p!==fn&&Fi(E(),dn(),a,e,p,a[11],o,!1),na}function dc(e,t,n,r,o,a,p){const v=c(),M=Co(v,t,n,r,o,a);return M!==fn&&Fi(E(),dn(),v,e,M,v[11],p,!1),dc}function hc(e,t,n,r,o,a,p,v,M){const B=c(),G=Eo(B,t,n,r,o,a,p,v);return G!==fn&&Fi(E(),dn(),B,e,G,B[11],M,!1),hc}function fc(e,t,n,r,o,a,p,v,M,B,G){const Ee=c(),We=Do(Ee,t,n,r,o,a,p,v,M,B);return We!==fn&&Fi(E(),dn(),Ee,e,We,Ee[11],G,!1),fc}function pc(e,t,n,r,o,a,p,v,M,B,G,Ee,We){const at=c(),yt=To(at,t,n,r,o,a,p,v,M,B,G,Ee);return yt!==fn&&Fi(E(),dn(),at,e,yt,at[11],We,!1),pc}function mc(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt){const Pt=c(),Rt=Mo(Pt,t,n,r,o,a,p,v,M,B,G,Ee,We,at);return Rt!==fn&&Fi(E(),dn(),Pt,e,Rt,Pt[11],yt,!1),mc}function gc(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt){const Kt=c(),Dt=wo(Kt,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt);return Dt!==fn&&Fi(E(),dn(),Kt,e,Dt,Kt[11],Rt,!1),gc}function _c(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt,Kt,Dt){const en=c(),Dn=So(en,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt,Kt);return Dn!==fn&&Fi(E(),dn(),en,e,Dn,en[11],Dt,!1),_c}function yc(e,t,n){const r=c(),o=vo(r,t);return o!==fn&&Fi(E(),dn(),r,e,o,r[11],n,!1),yc}function $f(e,t,n,r,o){const a=e[n+1],p=null===t;let v=r?ir(a):Rr(a),M=!1;for(;0!==v&&(!1===M||p);){const G=e[v+1];Fb(e[v],t)&&(M=!0,e[v+1]=r?hl(G):ul(G)),v=r?ir(G):Rr(G)}M&&(e[n+1]=r?ul(a):hl(a))}function Fb(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 ri={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Hf(e){return e.substring(ri.key,ri.keyEnd)}function kb(e){return e.substring(ri.value,ri.valueEnd)}function Uf(e,t){const n=ri.textEnd;return n===t?-1:(t=ri.keyEnd=function Bb(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ri.key=t,n),Po(e,t,n))}function Wf(e,t){const n=ri.textEnd;let r=ri.key=Po(e,t,n);return n===r?-1:(r=ri.keyEnd=function jb(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=Kf(e,r,n),r=ri.value=Po(e,r,n),r=ri.valueEnd=function Vb(e,t,n){let r=-1,o=-1,a=-1,p=t,v=p;for(;p<n;){const M=e.charCodeAt(p++);if(59===M)return v;34===M||39===M?v=p=Gf(e,M,p,n):t===p-4&&85===a&&82===o&&76===r&&40===M?v=p=Gf(e,41,p,n):M>32&&(v=p),a=o,o=r,r=-33&M}return v}(e,r,n),Kf(e,r,n))}function zf(e){ri.key=0,ri.keyEnd=0,ri.value=0,ri.valueEnd=0,ri.textEnd=e.length}function Po(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Kf(e,t,n,r){return(t=Po(e,t,n))<n&&t++,t}function Gf(e,t,n,r){let o=-1,a=n;for(;a<r;){const p=e.charCodeAt(a++);if(p==t&&92!==o)return a;o=92==p&&92===o?0:p}throw new Error}function vc(e,t,n){return or(e,t,n,!1),vc}function bc(e,t){return or(e,t,null,!0),bc}function rr(e){sr(Jf,$b,e,!1)}function $b(e,t){for(let n=function Lb(e){return zf(e),Wf(e,Po(e,0,ri.textEnd))}(t);n>=0;n=Wf(t,n))Jf(e,Hf(t),kb(t))}function Qf(e){sr(Ri,br,e,!0)}function br(e,t){for(let n=function Nb(e){return zf(e),Uf(e,Po(e,0,ri.textEnd))}(t);n>=0;n=Uf(t,n))Ri(e,Hf(t),!0)}function or(e,t,n,r){const o=c(),a=E(),p=Q(2);a.firstUpdatePass&&Yf(a,e,p,r),t!==fn&&vi(o,p,t)&&Xf(a,a.data[kn()],o,o[11],e,o[p+1]=function Qb(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=D(xr(e)))),e}(t,n),r,p)}function sr(e,t,n,r){const o=E(),a=Q(2);o.firstUpdatePass&&Yf(o,null,a,r);const p=c();if(n!==fn&&vi(p,a,n)){const v=o.data[kn()];if(ep(v,r)&&!Zf(o,a)){let M=r?v.classesWithoutHost:v.stylesWithoutHost;null!==M&&(n=w(M,n||"")),tc(o,v,p,n,r)}else!function Gb(e,t,n,r,o,a,p,v){o===fn&&(o=wt);let M=0,B=0,G=0<o.length?o[0]:null,Ee=0<a.length?a[0]:null;for(;null!==G||null!==Ee;){const We=M<o.length?o[M+1]:void 0,at=B<a.length?a[B+1]:void 0;let Pt,yt=null;G===Ee?(M+=2,B+=2,We!==at&&(yt=Ee,Pt=at)):null===Ee||null!==G&&G<Ee?(M+=2,yt=G):(B+=2,yt=Ee,Pt=at),null!==yt&&Xf(e,t,n,r,yt,Pt,p,v),G=M<o.length?o[M]:null,Ee=B<a.length?a[B]:null}}(o,v,p,p[11],p[a+1],p[a+1]=function Kb(e,t,n){if(null==n||""===n)return wt;const r=[],o=xr(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 Zf(e,t){return t>=e.expandoStartIndex}function Yf(e,t,n,r){const o=e.data;if(null===o[n+1]){const a=o[kn()],p=Zf(e,n);ep(a,r)&&null===t&&!p&&(t=!1),t=function Hb(e,t,n,r){const o=_t(e);let a=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=us(n=Cc(null,e,t,n,r),t.attrs,r),a=null);else{const p=t.directiveStylingLast;if(-1===p||e[p]!==o)if(n=Cc(o,e,t,n,r),null===a){let M=function Ub(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Rr(r))return e[ir(r)]}(e,t,r);void 0!==M&&Array.isArray(M)&&(M=Cc(null,e,t,M[1],r),M=us(M,t.attrs,r),function Wb(e,t,n,r){e[ir(n?t.classBindings:t.styleBindings)]=r}(e,t,r,M))}else a=function zb(e,t,n){let r;const o=t.directiveEnd;for(let a=1+t.directiveStylingLast;a<o;a++)r=us(r,e[a].hostAttrs,n);return us(r,t.attrs,n)}(e,t,r)}return void 0!==a&&(r?t.residualClasses=a:t.residualStyles=a),n}(o,a,t,r),function xb(e,t,n,r,o,a){let p=a?t.classBindings:t.styleBindings,v=ir(p),M=Rr(p);e[r]=n;let G,B=!1;if(Array.isArray(n)){const Ee=n;G=Ee[1],(null===G||so(Ee,G)>0)&&(B=!0)}else G=n;if(o)if(0!==M){const We=ir(e[v+1]);e[r+1]=Ks(We,v),0!==We&&(e[We+1]=dl(e[We+1],r)),e[v+1]=function zy(e,t){return 131071&e|t<<17}(e[v+1],r)}else e[r+1]=Ks(v,0),0!==v&&(e[v+1]=dl(e[v+1],r)),v=r;else e[r+1]=Ks(M,0),0===v?v=r:e[M+1]=dl(e[M+1],r),M=r;B&&(e[r+1]=ul(e[r+1])),$f(e,G,r,!0),$f(e,G,r,!1),function Rb(e,t,n,r,o){const a=o?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&so(a,t)>=0&&(n[r+1]=hl(n[r+1]))}(t,G,e,r,a),p=Ks(v,M),a?t.classBindings=p:t.styleBindings=p}(o,a,t,n,p,r)}}function Cc(e,t,n,r,o){let a=null;const p=n.directiveEnd;let v=n.directiveStylingLast;for(-1===v?v=n.directiveStart:v++;v<p&&(a=t[v],r=us(r,a.hostAttrs,o),a!==e);)v++;return null!==e&&(n.directiveStylingLast=v),r}function us(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let a=0;a<t.length;a++){const p=t[a];"number"==typeof p?o=p:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ri(e,p,!!n||t[++a]))}return void 0===e?null:e}function Jf(e,t,n){Ri(e,t,xr(n))}function Xf(e,t,n,r,o,a,p,v){if(!(3&t.type))return;const M=e.data,B=M[v+1];ia(function _h(e){return 1==(1&e)}(B)?qf(M,t,n,o,Rr(B),p):void 0)||(ia(a)||function gh(e){return 2==(2&e)}(B)&&(a=qf(M,null,n,o,v,p)),function Ry(e,t,n,r,o){const a=On(e);if(t)o?a?e.addClass(n,r):n.classList.add(r):a?e.removeClass(n,r):n.classList.remove(r);else{let p=-1===r.indexOf("-")?void 0:_r.DashCase;if(null==o)a?e.removeStyle(n,r,p):n.style.removeProperty(r);else{const v="string"==typeof o&&o.endsWith("!important");v&&(o=o.slice(0,-10),p|=_r.Important),a?e.setStyle(n,r,o,p):n.style.setProperty(r,o,v?"important":"")}}}(r,p,dt(kn(),n),o,a))}function qf(e,t,n,r,o,a){const p=null===t;let v;for(;o>0;){const M=e[o],B=Array.isArray(M),G=B?M[1]:M,Ee=null===G;let We=n[o+1];We===fn&&(We=Ee?wt:void 0);let at=Ee?xa(We,r):G===r?We:void 0;if(B&&!ia(at)&&(at=xa(M,r)),ia(at)&&(v=at,p))return v;const yt=e[o+1];o=p?ir(yt):Rr(yt)}if(null!==t){let M=a?t.residualClasses:t.residualStyles;null!=M&&(v=xa(M,r))}return v}function ia(e){return void 0!==e}function ep(e,t){return 0!=(e.flags&(t?16:32))}function tp(e,t=""){const n=c(),r=E(),o=e+20,a=r.firstCreatePass?fo(r,o,1,t,null):r.data[o],p=n[o]=nl(n[11],t);Ws(r,n,p,a),nt(a,!1)}function Ec(e){return ra("",e,""),Ec}function ra(e,t,n){const r=c(),o=bo(r,e,t,n);return o!==fn&&Fr(r,kn(),o),ra}function Dc(e,t,n,r,o){const a=c(),p=Co(a,e,t,n,r,o);return p!==fn&&Fr(a,kn(),p),Dc}function Tc(e,t,n,r,o,a,p){const v=c(),M=Eo(v,e,t,n,r,o,a,p);return M!==fn&&Fr(v,kn(),M),Tc}function Mc(e,t,n,r,o,a,p,v,M){const B=c(),G=Do(B,e,t,n,r,o,a,p,v,M);return G!==fn&&Fr(B,kn(),G),Mc}function wc(e,t,n,r,o,a,p,v,M,B,G){const Ee=c(),We=To(Ee,e,t,n,r,o,a,p,v,M,B,G);return We!==fn&&Fr(Ee,kn(),We),wc}function Sc(e,t,n,r,o,a,p,v,M,B,G,Ee,We){const at=c(),yt=Mo(at,e,t,n,r,o,a,p,v,M,B,G,Ee,We);return yt!==fn&&Fr(at,kn(),yt),Sc}function Ic(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt){const Pt=c(),Rt=wo(Pt,e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt);return Rt!==fn&&Fr(Pt,kn(),Rt),Ic}function Pc(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt){const Kt=c(),Dt=So(Kt,e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt);return Dt!==fn&&Fr(Kt,kn(),Dt),Pc}function Ac(e){const t=c(),n=vo(t,e);return n!==fn&&Fr(t,kn(),n),Ac}function np(e,t,n){sr(Ri,br,bo(c(),e,t,n),!0)}function ip(e,t,n,r,o){sr(Ri,br,Co(c(),e,t,n,r,o),!0)}function rp(e,t,n,r,o,a,p){sr(Ri,br,Eo(c(),e,t,n,r,o,a,p),!0)}function op(e,t,n,r,o,a,p,v,M){sr(Ri,br,Do(c(),e,t,n,r,o,a,p,v,M),!0)}function sp(e,t,n,r,o,a,p,v,M,B,G){sr(Ri,br,To(c(),e,t,n,r,o,a,p,v,M,B,G),!0)}function ap(e,t,n,r,o,a,p,v,M,B,G,Ee,We){sr(Ri,br,Mo(c(),e,t,n,r,o,a,p,v,M,B,G,Ee,We),!0)}function lp(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt){sr(Ri,br,wo(c(),e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt),!0)}function cp(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt){sr(Ri,br,So(c(),e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt),!0)}function up(e){sr(Ri,br,vo(c(),e),!0)}function dp(e,t,n){rr(bo(c(),e,t,n))}function hp(e,t,n,r,o){rr(Co(c(),e,t,n,r,o))}function fp(e,t,n,r,o,a,p){rr(Eo(c(),e,t,n,r,o,a,p))}function pp(e,t,n,r,o,a,p,v,M){rr(Do(c(),e,t,n,r,o,a,p,v,M))}function mp(e,t,n,r,o,a,p,v,M,B,G){rr(To(c(),e,t,n,r,o,a,p,v,M,B,G))}function gp(e,t,n,r,o,a,p,v,M,B,G,Ee,We){rr(Mo(c(),e,t,n,r,o,a,p,v,M,B,G,Ee,We))}function _p(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt){rr(wo(c(),e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt))}function yp(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt){rr(So(c(),e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt))}function vp(e){rr(vo(c(),e))}function Oc(e,t,n,r,o){return or(e,bo(c(),t,n,r),o,!1),Oc}function xc(e,t,n,r,o,a,p){return or(e,Co(c(),t,n,r,o,a),p,!1),xc}function Rc(e,t,n,r,o,a,p,v,M){return or(e,Eo(c(),t,n,r,o,a,p,v),M,!1),Rc}function Fc(e,t,n,r,o,a,p,v,M,B,G){return or(e,Do(c(),t,n,r,o,a,p,v,M,B),G,!1),Fc}function kc(e,t,n,r,o,a,p,v,M,B,G,Ee,We){return or(e,To(c(),t,n,r,o,a,p,v,M,B,G,Ee),We,!1),kc}function Nc(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt){return or(e,Mo(c(),t,n,r,o,a,p,v,M,B,G,Ee,We,at),yt,!1),Nc}function Lc(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt){return or(e,wo(c(),t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt),Rt,!1),Lc}function Bc(e,t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt,Kt,Dt){return or(e,So(c(),t,n,r,o,a,p,v,M,B,G,Ee,We,at,yt,Pt,Rt,Kt),Dt,!1),Bc}function jc(e,t,n){return or(e,vo(c(),t),n,!1),jc}function Vc(e,t,n){const r=c();return vi(r,$(),t)&&Fi(E(),dn(),r,e,t,r[11],n,!0),Vc}function $c(e,t,n){const r=c();if(vi(r,$(),t)){const a=E(),p=dn();Fi(a,p,r,e,t,Uh(_t(a.data),p,r),n,!0)}return $c}const Zr=void 0;var Yb=["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 Zb(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Ao={};function Jb(e,t,n){"string"!=typeof t&&(n=t,t=e[nn.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Ao[t]=e,n&&(Ao[t][nn.ExtraData]=n)}function Hc(e){const t=function eC(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Cp(t);if(n)return n;const r=t.split("-")[0];if(n=Cp(r),n)return n;if("en"===r)return Yb;throw new Error(`Missing locale data for the locale "${e}".`)}function Xb(e){return Hc(e)[nn.CurrencyCode]||null}function bp(e){return Hc(e)[nn.PluralCase]}function Cp(e){return e in Ao||(Ao[e]=Vt.ng&&Vt.ng.common&&Vt.ng.common.locales&&Vt.ng.common.locales[e]),Ao[e]}function qb(){Ao={}}var nn=(()=>((nn=nn||{})[nn.LocaleId=0]="LocaleId",nn[nn.DayPeriodsFormat=1]="DayPeriodsFormat",nn[nn.DayPeriodsStandalone=2]="DayPeriodsStandalone",nn[nn.DaysFormat=3]="DaysFormat",nn[nn.DaysStandalone=4]="DaysStandalone",nn[nn.MonthsFormat=5]="MonthsFormat",nn[nn.MonthsStandalone=6]="MonthsStandalone",nn[nn.Eras=7]="Eras",nn[nn.FirstDayOfWeek=8]="FirstDayOfWeek",nn[nn.WeekendRange=9]="WeekendRange",nn[nn.DateFormat=10]="DateFormat",nn[nn.TimeFormat=11]="TimeFormat",nn[nn.DateTimeFormat=12]="DateTimeFormat",nn[nn.NumberSymbols=13]="NumberSymbols",nn[nn.NumberFormats=14]="NumberFormats",nn[nn.CurrencyCode=15]="CurrencyCode",nn[nn.CurrencySymbol=16]="CurrencySymbol",nn[nn.CurrencyName=17]="CurrencyName",nn[nn.Currencies=18]="Currencies",nn[nn.Directionality=19]="Directionality",nn[nn.PluralCase=20]="PluralCase",nn[nn.ExtraData=21]="ExtraData",nn))();const tC=["zero","one","two","few","many"],ds="en-US",oa={marker:"element"},sa={marker:"ICU"};var Yn=(()=>((Yn=Yn||{})[Yn.SHIFT=2]="SHIFT",Yn[Yn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Yn[Yn.COMMENT=2]="COMMENT",Yn))();let Ep=ds;function Dp(e){(function ve(e,t){null==e&&Ue(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Ep=e.toLowerCase().replace(/_/g,"-"))}function Tp(e,t,n){const r=t.insertBeforeIndex,o=Array.isArray(r)?r[0]:r;return null===o?th(e,0,n):x(n[o])}function Mp(e,t,n,r,o){const a=t.insertBeforeIndex;if(Array.isArray(a)){let p=r,v=null;if(3&t.type||(v=p,p=o),null!==p&&0==(2&t.flags))for(let M=1;M<a.length;M++)Gr(e,p,n[a[M]],v,!1)}}function wp(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const r=e[n];Sp(r)||oC(r,t)&&null===sC(r)&&aC(r,t.index)}}function Sp(e){return!(64&e.type)}function oC(e,t){return Sp(t)||e.index>t.index}function sC(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function aC(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(ih(Tp,Mp),e.insertBeforeIndex=t)}function hs(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function uC(e,t,n){const r=Cl(e,n,64,null,null);return wp(t,r),r}function aa(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Ip(e){return e>>>17}function Pp(e){return(131070&e)>>>1}let fs=0,ps=0;function Op(e,t,n,r){const o=n[11];let p,a=null;for(let v=0;v<t.length;v++){const M=t[v];if("string"==typeof M){const B=t[++v];null===n[B]&&(n[B]=nl(o,M))}else if("number"==typeof M)switch(1&M){case 0:const B=Ip(M);let G,Ee;if(null===a&&(a=B,p=Us(o,r)),B===a?(G=r,Ee=p):(G=null,Ee=x(n[B])),null!==Ee){const Pt=Pp(M);Gr(o,Ee,n[Pt],G,!1);const Kt=hs(e,Pt);if(null!==Kt&&"object"==typeof Kt){const Dt=aa(Kt,n);null!==Dt&&Op(e,Kt.create[Dt],n,n[Kt.anchorIdx])}}break;case 1:const at=t[++v],yt=t[++v];Ml(o,dt(M>>>1,n),null,null,at,yt,null)}else switch(M){case sa:const B=t[++v],G=t[++v];null===n[G]&&yi(n[G]=by(o,B),n);break;case oa:const Ee=t[++v],We=t[++v];null===n[We]&&yi(n[We]=il(o,Ee,null),n)}}}function xp(e,t,n,r,o){for(let a=0;a<n.length;a++){const p=n[a],v=n[++a];if(p&o){let M="";for(let B=a+1;B<=a+v;B++){const G=n[B];if("string"==typeof G)M+=G;else if("number"==typeof G)if(G<0)M+=V(t[r-G]);else{const Ee=G>>>2;switch(3&G){case 1:const We=n[++B],at=n[++B],yt=e.data[Ee];"string"==typeof yt?Ml(t[11],t[Ee],null,yt,We,M,at):Fi(e,yt,t,We,M,t[11],at,!1);break;case 0:const Pt=t[Ee];null!==Pt&&Gd(t[11],Pt,M);break;case 2:mC(e,hs(e,Ee),t,M);break;case 3:Rp(e,hs(e,Ee),r,t)}}}}else{const M=n[a+1];if(M>0&&3==(3&M)){const G=hs(e,M>>>2);t[G.currentCaseLViewIndex]<0&&Rp(e,G,r,t)}}a+=v}}function Rp(e,t,n,r){let o=r[t.currentCaseLViewIndex];if(null!==o){let a=fs;o<0&&(o=r[t.currentCaseLViewIndex]=~o,a=-1),xp(e,r,t.update[o],n,a)}}function mC(e,t,n,r){const o=function gC(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const r=function nC(e,t){const n=bp(t)(parseInt(e,10)),r=tC[n];return void 0!==r?r:"other"}(t,function rC(){return Ep}());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(aa(t,n)!==o&&(Fp(e,t,n),n[t.currentCaseLViewIndex]=null===o?null:~o,null!==o)){const p=n[t.anchorIdx];p&&Op(e,t.create[o],n,p)}}function Fp(e,t,n){let r=aa(t,n);if(null!==r){const o=t.remove[r];for(let a=0;a<o.length;a++){const p=o[a];if(p>0){const v=dt(p,n);null!==v&&oh(n[11],v)}else Fp(e,hs(e,~p),n)}}}function _C(){const e=[];let n,r,t=-1;function a(v,M){t=0;const B=aa(v,M);r=null!==B?v.remove[B]:wt}function p(){if(t<r.length){const v=r[t++];return v>0?n[v]:(e.push(t,r),a(n[1].data[~v],n),p())}return 0===e.length?null:(r=e.pop(),t=e.pop(),p())}return function o(v,M){for(n=M;e.length;)e.pop();return a(v.value,M),p}}const la=/\ufffd(\d+):?\d*\ufffd/gi,yC=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,vC=/\ufffd(\d+)\ufffd/,Np=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,bC=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,CC=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,EC=/\uE500/g;function Lp(e,t,n,r,o,a,p){const v=po(e,r,1,null);let M=v<<Yn.SHIFT,B=He();t===B&&(B=null),null===B&&(M|=Yn.APPEND_EAGERLY),p&&(M|=Yn.COMMENT,function vy(e){void 0===Xa&&(Xa=e())}(_C)),o.push(M,null===a?"":a);const G=Cl(e,v,p?32:1,null===a?"":a,null);wp(n,G);const Ee=G.index;return nt(G,!1),null!==B&&t!==B&&function cC(e,t){let n=e.insertBeforeIndex;null===n?(ih(Tp,Mp),n=e.insertBeforeIndex=[null,t]):(function q(e,t,n){e!=t&&Ue(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(B,Ee),G}function MC(e,t,n,r,o,a,p){const v=p.match(la),M=Lp(e,t,n,a,r,v?null:p,!1);v&&Oo(o,p,M.index,null,0,null)}function Oo(e,t,n,r,o,a){const p=e.length,v=p+1;e.push(null,null);const M=p+2,B=t.split(la);let G=0;for(let Ee=0;Ee<B.length;Ee++){const We=B[Ee];if(1&Ee){const at=o+parseInt(We,10);e.push(-1-at),G|=Bp(at)}else""!==We&&e.push(We)}return e.push(n<<2|(r?1:0)),r&&e.push(r,a),e[p]=G,e[v]=e.length-M,G}function SC(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 Bp(e){return 1<<Math.min(e,31)}function jp(e){let t,a,n="",r=0,o=!1;for(;null!==(t=bC.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 Vp(e,t,n,r,o,a){let p=0;const v={type:o.type,currentCaseLViewIndex:po(e,t,1,null),anchorIdx:a,cases:[],create:[],remove:[],update:[]};(function RC(e,t,n){e.push(Bp(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,o,a),function lC(e,t,n){const r=e.data[t];null===r?e.data[t]=n:r.value=n}(e,a,v);const M=o.values;for(let B=0;B<M.length;B++){const G=M[B],Ee=[];for(let We=0;We<G.length;We++){const at=G[We];if("string"!=typeof at){const yt=Ee.push(at)-1;G[We]=`\x3c!--\ufffd${yt}\ufffd--\x3e`}}p=OC(e,v,t,n,r,o.cases[B],G.join(""),Ee)|p}p&&function FC(e,t,n){e.push(t,1,n<<2|3)}(n,p,a)}function AC(e){const t=[],n=[];let r=1,o=0;const a=Uc(e=e.replace(Np,function(p,v,M){return r="select"===M?0:1,o=parseInt(v.substr(1),10),""}));for(let p=0;p<a.length;){let v=a[p++].trim();1===r&&(v=v.replace(/\s*(?:=)?(\w+)\s*/,"$1")),v.length&&t.push(v);const M=Uc(a[p++]);t.length>n.length&&n.push(M)}return{type:r,mainBinding:o,cases:t,values:n}}function Uc(e){if(!e)return[];let t=0;const n=[],r=[],o=/[{}]/g;let a;for(o.lastIndex=0;a=o.exec(e);){const v=a.index;if("}"==a[0]){if(n.pop(),0==n.length){const M=e.substring(t,v);Np.test(M)?r.push(AC(M)):r.push(M),t=v+1}}else{if(0==n.length){const M=e.substring(t,v);r.push(M),t=v+1}n.push("{")}}const p=e.substring(t);return r.push(p),r}function OC(e,t,n,r,o,a,p,v){const M=[],B=[],G=[];t.cases.push(a),t.create.push(M),t.remove.push(B),t.update.push(G);const We=gd(wi()).getInertBodyElement(p),at=za(We)||We;return at?$p(e,t,n,r,M,B,G,at,o,v,0):0}function $p(e,t,n,r,o,a,p,v,M,B,G){let Ee=0,We=v.firstChild;for(;We;){const at=po(e,n,1,null);switch(We.nodeType){case Node.ELEMENT_NODE:const yt=We,Pt=yt.tagName.toLowerCase();if(Ha.hasOwnProperty(Pt)){Wc(o,oa,Pt,M,at),e.data[at]=Pt;const en=yt.attributes;for(let Dn=0;Dn<en.length;Dn++){const xn=en.item(Dn),Li=xn.name.toLowerCase();xn.value.match(la)?Cd.hasOwnProperty(Li)&&Oo(p,xn.value,at,xn.name,0,Ua[Li]?Yo:Wa[Li]?_d:null):kC(o,at,xn)}Ee=$p(e,t,n,r,o,a,p,We,at,B,G+1)|Ee,Hp(a,at,G)}break;case Node.TEXT_NODE:const Rt=We.textContent||"",Kt=Rt.match(la);Wc(o,null,Kt?"":Rt,M,at),Hp(a,at,G),Kt&&(Ee=Oo(p,Rt,at,null,0,null)|Ee);break;case Node.COMMENT_NODE:const Dt=vC.exec(We.textContent||"");if(Dt){const Dn=B[parseInt(Dt[1],10)];Wc(o,sa,"",M,at),Vp(e,n,r,M,Dn,at),xC(a,at,G)}}We=We.nextSibling}return Ee}function Hp(e,t,n){0===n&&e.push(t)}function xC(e,t,n){0===n&&(e.push(~t),e.push(t))}function Wc(e,t,n,r,o){null!==t&&e.push(t),e.push(n,o,function dC(e,t,n){return e|t<<17|n<<1}(0,r,o))}function kC(e,t,n){e.push(t<<1|1,n.name,n.value)}const NC=/\[(\ufffd.+?\ufffd?)\]/,LC=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,BC=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,jC=/{([A-Z0-9_]+)}/g,VC=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,$C=/\/\*/,HC=/\d+\:(\d+)/;function zc(e,t,n=-1){const r=E(),o=c(),a=20+e,p=A(r.consts,t),v=He();r.firstCreatePass&&function TC(e,t,n,r,o,a){const p=He(),v=[],M=[],B=[[]];o=function PC(e,t){if(function IC(e){return-1===e}(t))return jp(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,r=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return jp(e.substring(n,r))}}(o,a);const G=function DC(e){return e.replace(EC," ")}(o).split(CC);for(let Ee=0;Ee<G.length;Ee++){let We=G[Ee];if(0==(1&Ee)){const at=Uc(We);for(let yt=0;yt<at.length;yt++){let Pt=at[yt];if(0==(1&yt)){const Rt=Pt;""!==Rt&&MC(e,p,B[0],v,M,n,Rt)}else{const Rt=Pt;if("object"!=typeof Rt)throw new Error(`Unable to parse ICU expression in "${o}" message.`);Vp(e,n,M,t,Rt,Lp(e,p,B[0],n,v,"",!0).index)}}}else{const at=47===We.charCodeAt(0),Pt=(We.charCodeAt(at?1:0),20+Number.parseInt(We.substring(at?2:1)));if(at)B.shift(),nt(He(),!1);else{const Rt=uC(e,B[0],Pt);B.unshift([]),nt(Rt,!0)}}}e.data[r]={create:v,update:M}}(r,null===v?0:v.index,o,a,p,n);const M=r.data[a],G=Jd(r,v===o[6]?null:v,o);(function pC(e,t,n,r){const o=e[11];for(let a=0;a<t.length;a++){const p=t[a++],v=t[a],M=(p&Yn.COMMENT)===Yn.COMMENT,B=(p&Yn.APPEND_EAGERLY)===Yn.APPEND_EAGERLY,G=p>>>Yn.SHIFT;let Ee=e[G];null===Ee&&(Ee=e[G]=M?o.createComment(v):nl(o,v)),B&&null!==n&&Gr(o,n,Ee,r,!1)}})(o,M.create,G,v&&8&v.type?o[v.index]:null),Re(!0)}function Kc(){Re(!1)}function Wp(e,t,n){zc(e,t,n),Kc()}function zp(e,t){const n=E();!function wC(e,t,n){const o=ce().index,a=[];if(e.firstCreatePass&&null===e.data[t]){for(let p=0;p<n.length;p+=2){const v=n[p],M=n[p+1];if(""!==M){if(yC.test(M))throw new Error(`ICU expressions are not supported in attributes. Message: "${M}".`);Oo(a,M,o,v,SC(a),null)}}e.data[t]=a}}(n,e+20,A(n.consts,t))}function Gc(e){return function hC(e){e&&(fs|=1<<Math.min(ps,31)),ps++}(vi(c(),$(),e)),Gc}function Kp(e){!function fC(e,t,n){if(ps>0){const r=e.data[n];xp(e,t,Array.isArray(r)?r:r.update,un()-ps-1,fs)}fs=0,ps=0}(E(),c(),e+20)}function Gp(e,t={}){return function UC(e,t={}){let n=e;if(NC.test(e)){const r={},o=[0];n=n.replace(LC,(a,p,v)=>{const M=p||v,B=r[M]||[];if(B.length||(M.split("|").forEach(Pt=>{const Rt=Pt.match(HC),Kt=Rt?parseInt(Rt[1],10):0,Dt=$C.test(Pt);B.push([Kt,Dt,Pt])}),r[M]=B),!B.length)throw new Error(`i18n postprocess: unmatched placeholder - ${M}`);const G=o[o.length-1];let Ee=0;for(let Pt=0;Pt<B.length;Pt++)if(B[Pt][0]===G){Ee=Pt;break}const[We,at,yt]=B[Ee];return at?o.pop():G!==We&&o.push(We),B.splice(Ee,1),yt})}return Object.keys(t).length&&(n=n.replace(BC,(r,o,a,p,v,M)=>t.hasOwnProperty(a)?`${o}${t[a]}${M}`:r),n=n.replace(jC,(r,o)=>t.hasOwnProperty(o)?t[o]:r),n=n.replace(VC,(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 Qc(e,t,n,r,o){if(e=T(e),Array.isArray(e))for(let a=0;a<e.length;a++)Qc(e[a],t,n,r,o);else{const a=E(),p=c();let v=_o(e)?e:T(e.provide),M=Jh(e);const B=ce(),G=1048575&B.providerIndexes,Ee=B.directiveStart,We=B.providerIndexes>>20;if(_o(e)||!e.multi){const at=new jo(M,o,cs),yt=Yc(v,t,o?G:G+We,Ee);-1===yt?(xs($o(B,p),a,v),Zc(a,e,t.length),t.push(v),B.directiveStart++,B.directiveEnd++,o&&(B.providerIndexes+=1048576),n.push(at),p.push(at)):(n[yt]=at,p[yt]=at)}else{const at=Yc(v,t,G+We,Ee),yt=Yc(v,t,G,G+We),Pt=at>=0&&n[at],Rt=yt>=0&&n[yt];if(o&&!Rt||!o&&!Pt){xs($o(B,p),a,v);const Kt=function GC(e,t,n,r,o){const a=new jo(e,n,cs);return a.multi=[],a.index=t,a.componentProviders=0,Qp(a,o,r&&!n),a}(o?KC:zC,n.length,o,r,M);!o&&Rt&&(n[yt].providerFactory=Kt),Zc(a,e,t.length,0),t.push(v),B.directiveStart++,B.directiveEnd++,o&&(B.providerIndexes+=1048576),n.push(Kt),p.push(Kt)}else Zc(a,e,at>-1?at:yt,Qp(n[o?yt:at],M,!o&&r));!o&&r&&Rt&&n[yt].componentProviders++}}}function Zc(e,t,n,r){const o=_o(t),a=function Nv(e){return!!e.useClass}(t);if(o||a){const M=(a?T(t.useClass):t).prototype.ngOnDestroy;if(M){const B=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const G=B.indexOf(n);-1===G?B.push(n,[r,M]):B[G+1].push(r,M)}else B.push(n,M)}}}function Qp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Yc(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function zC(e,t,n,r){return Jc(this.multi,[])}function KC(e,t,n,r){const o=this.multi;let a;if(this.providerFactory){const p=this.providerFactory.componentProviders,v=Ho(n,n[1],this.providerFactory.index,r);a=v.slice(0,p),Jc(o,a);for(let M=p;M<v.length;M++)a.push(v[M])}else a=[],Jc(o,a);return a}function Jc(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function Zp(e,t=[]){return n=>{n.providersResolver=(r,o)=>function WC(e,t,n){const r=E();if(r.firstCreatePass){const o=Hn(e);Qc(n,r.data,r.blueprint,o,!0),Qc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Yp{}class ca{}class ZC{resolveComponentFactory(t){throw function QC(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 gs=(()=>{class e{}return e.NULL=new ZC,e})();function YC(){return xo(ce(),c())}function xo(e,t){return new _s(Ct(e,t))}let _s=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=YC,e})();function JC(e){return e instanceof _s?e.nativeElement:e}class Xp{}let XC=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function e0(){const e=c(),n=hn(ce().index,e);return function qC(e){return e[11]}(Wn(n)?n:e)}(),e})(),qp=(()=>{class e{}return e.\u0275prov=qe({token:e,providedIn:"root",factory:()=>null}),e})();class em{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const tm=new em("13.2.0"),ua={};function da(e,t,n,r,o=!1){for(;null!==n;){const a=t[n.index];if(null!==a&&r.push(x(a)),zn(a))for(let v=10;v<a.length;v++){const M=a[v],B=M[1].firstChild;null!==B&&da(M[1],M,B,r)}const p=n.type;if(8&p)da(e,t,n.child,r);else if(32&p){const v=qa(n,t);let M;for(;M=v();)r.push(M)}else if(16&p){const v=rh(t,n);if(Array.isArray(v))r.push(...v);else{const M=ts(t[16]);da(M[1],M,v,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 da(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(zn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(rl(t,r),ks(n,r))}this._attachedToViewContainer=!1}Zd(this._lView[1],this._lView)}onDestroy(t){Oh(this._lView[1],this._lView,null,t)}markForCheck(){Sl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Pl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function Sv(e,t,n){Zt(!0);try{Pl(e,t,n)}finally{Zt(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new j(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Dy(e,t){ns(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new j(902,"");this._appRef=t}}class t0 extends Ro{constructor(t){super(t),this._view=t}detectChanges(){Vh(this._view)}checkNoChanges(){!function Iv(e){Zt(!0);try{Vh(e)}finally{Zt(!1)}}(this._view)}get context(){return null}}class nm extends gs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ve(t);return new ha(n,this.ngModule)}}function im(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const r0=new Zn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Bd});class ha extends ca{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Uy(e){return e.map(Hy).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return im(this.componentDef.inputs)}get outputs(){return im(this.componentDef.outputs)}create(t,n,r,o){const a=(o=o||this.ngModule)?function o0(e,t){return{get:(n,r,o)=>{const a=e.get(n,ua,o);return a!==ua||r===ua?a:t.get(n,r,o)}}}(t,o.injector):t,p=a.get(Xp,F),v=a.get(qp,null),M=p.createRenderer(null,this.componentDef),B=this.componentDef.selectors[0][0]||"div",G=r?Ah(M,r,this.componentDef.encapsulation):il(p.createRenderer(null,this.componentDef),B,function n0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?Oi:null}(B)),Ee=this.componentDef.onPush?576:528,We=df(),at=Zs(0,null,null,1,0,null,null,null,null,null),yt=is(null,at,We,Ee,null,null,p,M,v,a);let Pt,Rt;Sn(yt);try{const Kt=cf(G,this.componentDef,yt,p,M);if(G)if(r)Is(M,G,["ng-version",tm.full]);else{const{attrs:Dt,classes:en}=function Wy(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(!nr(o))break;o=a}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Dt&&Is(M,G,Dt),en&&en.length>0&&cl(M,G,en.join(" "))}if(Rt=wn(at,20),void 0!==n){const Dt=Rt.projection=[];for(let en=0;en<this.ngContentSelectors.length;en++){const Dn=n[en];Dt.push(null!=Dn?Array.from(Dn):null)}}Pt=uf(Kt,this.componentDef,yt,We,[hf]),rs(at,yt,null)}finally{En()}return new rm(this.componentType,Pt,xo(Rt,yt),yt,Rt)}}class rm extends Yp{constructor(t,n,r,o,a){super(),this.location=r,this._rootLView=o,this._tNode=a,this.instance=n,this.hostView=this.changeDetectorRef=new t0(o),this.componentType=t}get injector(){return new eo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function om(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 sm{}const ko=new Map;function lm(e){const t=new Set;!function n(r){const o=Ft(r,!0),a=o.id;if(null!==a){(function am(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 p=gr(o.imports);for(const v of p)t.has(v)||(t.add(v),n(v))}(e)}function cm(e){return ko.get(e)||ot[e]}function a0(e,t){return new Xc(e,null!=t?t:null)}class Xc extends Fo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new nm(this);const r=Ft(t);this._bootstrapComponents=gr(r.bootstrap),this._r3Injector=Yh(t,n,[{provide:Fo,useValue:this},{provide:gs,useValue:this.componentFactoryResolver}],D(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=ki.THROW_IF_NOT_FOUND,r=N.Default){return t===ki||t===Fo||t===Xs?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 fa extends sm{constructor(t){super(),this.moduleType=t,null!==Ft(t)&&lm(t)}create(t){return new Xc(this.moduleType,t)}}function um(e,t,n){const r=Qt()+e,o=c();return o[r]===fn?vr(o,r,n?t.call(n):t()):as(o,r)}function dm(e,t,n,r){return bm(c(),Qt(),e,t,n,r)}function hm(e,t,n,r,o){return Cm(c(),Qt(),e,t,n,r,o)}function fm(e,t,n,r,o,a){return Em(c(),Qt(),e,t,n,r,o,a)}function pm(e,t,n,r,o,a,p){return Dm(c(),Qt(),e,t,n,r,o,a,p)}function mm(e,t,n,r,o,a,p,v){const M=Qt()+e,B=c(),G=Ji(B,M,n,r,o,a);return vi(B,M+4,p)||G?vr(B,M+5,v?t.call(v,n,r,o,a,p):t(n,r,o,a,p)):as(B,M+5)}function gm(e,t,n,r,o,a,p,v,M){const B=Qt()+e,G=c(),Ee=Ji(G,B,n,r,o,a);return Qr(G,B+4,p,v)||Ee?vr(G,B+6,M?t.call(M,n,r,o,a,p,v):t(n,r,o,a,p,v)):as(G,B+6)}function _m(e,t,n,r,o,a,p,v,M,B){const G=Qt()+e,Ee=c();let We=Ji(Ee,G,n,r,o,a);return ea(Ee,G+4,p,v,M)||We?vr(Ee,G+7,B?t.call(B,n,r,o,a,p,v,M):t(n,r,o,a,p,v,M)):as(Ee,G+7)}function ym(e,t,n,r,o,a,p,v,M,B,G){const Ee=Qt()+e,We=c(),at=Ji(We,Ee,n,r,o,a);return Ji(We,Ee+4,p,v,M,B)||at?vr(We,Ee+8,G?t.call(G,n,r,o,a,p,v,M,B):t(n,r,o,a,p,v,M,B)):as(We,Ee+8)}function vm(e,t,n,r){return Tm(c(),Qt(),e,t,n,r)}function ys(e,t){const n=e[t];return n===fn?void 0:n}function bm(e,t,n,r,o,a){const p=t+n;return vi(e,p,o)?vr(e,p+1,a?r.call(a,o):r(o)):ys(e,p+1)}function Cm(e,t,n,r,o,a,p){const v=t+n;return Qr(e,v,o,a)?vr(e,v+2,p?r.call(p,o,a):r(o,a)):ys(e,v+2)}function Em(e,t,n,r,o,a,p,v){const M=t+n;return ea(e,M,o,a,p)?vr(e,M+3,v?r.call(v,o,a,p):r(o,a,p)):ys(e,M+3)}function Dm(e,t,n,r,o,a,p,v,M){const B=t+n;return Ji(e,B,o,a,p,v)?vr(e,B+4,M?r.call(M,o,a,p,v):r(o,a,p,v)):ys(e,B+4)}function Tm(e,t,n,r,o,a){let p=t+n,v=!1;for(let M=0;M<o.length;M++)vi(e,p++,o[M])&&(v=!0);return v?vr(e,p,r.apply(a,o)):ys(e,p)}function Mm(e,t){const n=E();let r;const o=e+20;n.firstCreatePass?(r=function l0(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=pi(r.type)),p=ue(cs);try{const v=As(!1),M=a();return As(v),_f(n,c(),o,M),M}finally{ue(p)}}function wm(e,t,n){const r=e+20,o=c(),a=yn(o,r);return vs(o,r)?bm(o,Qt(),t,a.transform,n,a):a.transform(n)}function Sm(e,t,n,r){const o=e+20,a=c(),p=yn(a,o);return vs(a,o)?Cm(a,Qt(),t,p.transform,n,r,p):p.transform(n,r)}function Im(e,t,n,r,o){const a=e+20,p=c(),v=yn(p,a);return vs(p,a)?Em(p,Qt(),t,v.transform,n,r,o,v):v.transform(n,r,o)}function Pm(e,t,n,r,o,a){const p=e+20,v=c(),M=yn(v,p);return vs(v,p)?Dm(v,Qt(),t,M.transform,n,r,o,a,M):M.transform(n,r,o,a)}function Am(e,t,n){const r=e+20,o=c(),a=yn(o,r);return vs(o,r)?Tm(o,Qt(),t,a.transform,n,a):a.transform.apply(a,n)}function vs(e,t){return e[1].data[t].pure}function qc(e){return t=>{setTimeout(e,void 0,t)}}const Cr=class c0 extends i.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,a,p;let v=t,M=n||(()=>null),B=r;if(t&&"object"==typeof t){const Ee=t;v=null===(o=Ee.next)||void 0===o?void 0:o.bind(Ee),M=null===(a=Ee.error)||void 0===a?void 0:a.bind(Ee),B=null===(p=Ee.complete)||void 0===p?void 0:p.bind(Ee)}this.__isAsync&&(M=qc(M),v&&(v=qc(v)),B&&(B=qc(B)));const G=super.subscribe({next:v,error:M,complete:B});return t instanceof d.w0&&t.add(G),G}};function u0(){return this._results[yo()]()}class pa{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=pa.prototype;r[n]||(r[n]=u0)}get changes(){return this._changes||(this._changes=new Cr)}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=Zi(t);(this._changesDetected=!function d_(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 bs=(()=>{class e{}return e.__NG_ELEMENT_ID__=f0,e})();const d0=bs,h0=class extends d0{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=is(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)),rs(n,r,t),new Ro(r)}};function f0(){return ma(ce(),c())}function ma(e,t){return 4&e.type?new h0(t,e,xo(e,t)):null}let ga=(()=>{class e{}return e.__NG_ELEMENT_ID__=p0,e})();function p0(){return Rm(ce(),c())}const m0=ga,Om=class extends m0{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=Os(this._hostTNode,this._hostLView);if(Uu(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=xm(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 p=t&&!Wo(t);let v;if(p)v=n;else{const Ee=n||{};v=Ee.index,r=Ee.injector,o=Ee.projectableNodes,a=Ee.ngModuleRef}const M=p?t:new ha(Ve(t)),B=r||this.parentInjector;if(!a&&null==M.ngModule&&B){const Ee=B.get(Fo,null);Ee&&(a=Ee)}const G=M.create(B,o,void 0,a);return this.insert(G.hostView,v),G}insert(t,n){const r=t._lView,o=r[1];if(function k(e){return zn(e[3])}(r)){const G=this.indexOf(t);if(-1!==G)this.detach(G);else{const Ee=r[3],We=new Om(Ee,Ee[6],Ee[3]);We.detach(We.indexOf(t))}}const a=this._adjustIndex(n),p=this._lContainer;!function My(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],td(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const p=t[17];null!==p&&n!==p&&function wy(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(p,t);const v=t[19];null!==v&&v.insertView(e),t[2]|=128}(o,r,p,a);const v=al(a,p),M=r[11],B=Us(M,p[7]);return null!==B&&function Ey(e,t,n,r,o,a){r[0]=o,r[6]=t,ns(e,r,n,1,o,a)}(o,p[6],M,r,B,v),t.attachToViewContainerRef(),td(eu(p),a,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=xm(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=rl(this._lContainer,n);r&&(ks(eu(this._lContainer),n),Zd(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=rl(this._lContainer,n);return r&&null!=ks(eu(this._lContainer),n)?new Ro(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function xm(e){return e[8]}function eu(e){return e[8]||(e[8]=[])}function Rm(e,t){let n;const r=t[e.index];if(zn(r))n=r;else{let o;if(8&e.type)o=x(r);else{const a=t[11];o=a.createComment("");const p=Ct(e,t);Gr(a,Us(a,p),o,function Ay(e,t){return On(e)?e.nextSibling(t):t.nextSibling}(a,p),!1)}t[e.index]=n=jh(r,t,o,e),Ys(t,n)}return new Om(n,e,t)}class tu{constructor(t){this.queryList=t,this.matches=null}clone(){return new tu(this.queryList)}setDirty(){this.queryList.setDirty()}}class nu{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 p=n.getByIndex(a);o.push(this.queries[p.indexInDeclarationView].clone())}return new nu(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!==Hm(t,n).matches&&this.queries[n].setDirty()}}class Fm{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class iu{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 iu(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 ru{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 ru(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,y0(n,a)),this.matchTNodeWithReadOption(t,n,Rs(n,t,a,!1,!1))}else r===bs?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Rs(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const o=this.metadata.read;if(null!==o)if(o===_s||o===ga||o===bs&&4&n.type)this.addMatch(n.index,-2);else{const a=Rs(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 y0(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 b0(e,t,n,r){return-1===n?function v0(e,t){return 11&e.type?xo(e,t):4&e.type?ma(e,t):null}(t,e):-2===n?function C0(e,t,n){return n===_s?xo(t,e):n===bs?ma(t,e):n===ga?Rm(t,e):void 0}(e,t,r):Ho(e,e[1],n,t)}function km(e,t,n,r){const o=t[19].queries[r];if(null===o.matches){const a=e.data,p=n.matches,v=[];for(let M=0;M<p.length;M+=2){const B=p[M];v.push(B<0?null:b0(t,a[B],p[M+1],n.metadata.read))}o.matches=v}return o.matches}function ou(e,t,n,r){const o=e.queries.getByIndex(n),a=o.matches;if(null!==a){const p=km(e,t,o,n);for(let v=0;v<a.length;v+=2){const M=a[v];if(M>0)r.push(p[v/2]);else{const B=a[v+1],G=t[-M];for(let Ee=10;Ee<G.length;Ee++){const We=G[Ee];We[17]===We[3]&&ou(We[1],We,B,r)}if(null!==G[9]){const Ee=G[9];for(let We=0;We<Ee.length;We++){const at=Ee[We];ou(at[1],at,B,r)}}}}}return r}function Nm(e){const t=c(),n=E(),r=$t();Yt(r+1);const o=Hm(n,r);if(e.dirty&&_n(t)===(2==(2&o.metadata.flags))){if(null===o.matches)e.reset([]);else{const a=o.crossesNgTemplate?ou(n,t,r,[]):km(n,t,o,r);e.reset(a,JC),e.notifyOnChanges()}return!0}return!1}function Lm(e,t,n){const r=E();r.firstCreatePass&&($m(r,new Fm(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Vm(r,c(),t)}function Bm(e,t,n,r){const o=E();if(o.firstCreatePass){const a=ce();$m(o,new Fm(t,n,r),a.index),function D0(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)}Vm(o,c(),n)}function jm(){return function E0(e,t){return e[19].queries[t].queryList}(c(),$t())}function Vm(e,t,n){const r=new pa(4==(4&n));Oh(e,t,r,r.destroy),null===t[19]&&(t[19]=new nu),t[19].queries.push(new tu(r))}function $m(e,t,n){null===e.queries&&(e.queries=new iu),e.queries.track(new ru(t,n))}function Hm(e,t){return e.queries.getByIndex(t)}function Um(e,t){return ma(e,t)}const Di=(()=>({\u0275\u0275attribute:$l,\u0275\u0275attributeInterpolate1:Hl,\u0275\u0275attributeInterpolate2:Ul,\u0275\u0275attributeInterpolate3:Wl,\u0275\u0275attributeInterpolate4:zl,\u0275\u0275attributeInterpolate5:Kl,\u0275\u0275attributeInterpolate6:Gl,\u0275\u0275attributeInterpolate7:Ql,\u0275\u0275attributeInterpolate8:Zl,\u0275\u0275attributeInterpolateV:Yl,\u0275\u0275defineComponent:L,\u0275\u0275defineDirective:$e,\u0275\u0275defineInjectable:qe,\u0275\u0275defineInjector:pe,\u0275\u0275defineNgModule:kt,\u0275\u0275definePipe:de,\u0275\u0275directiveInject:cs,\u0275\u0275getInheritedFactory:Xu,\u0275\u0275inject:ai,\u0275\u0275injectAttribute:Aa,\u0275\u0275invalidFactory:Af,\u0275\u0275invalidFactoryDep:La,\u0275\u0275templateRefExtractor:Um,\u0275\u0275NgOnChangesFeature:mi,\u0275\u0275ProvidersFeature:Zp,\u0275\u0275CopyDefinitionFeature:pf,\u0275\u0275InheritDefinitionFeature:Bl,\u0275\u0275nextContext:Bf,\u0275\u0275namespaceHTML:si,\u0275\u0275namespaceMathML:Ms,\u0275\u0275namespaceSVG:Bo,\u0275\u0275enableBindings:K,\u0275\u0275disableBindings:h,\u0275\u0275elementStart:nc,\u0275\u0275elementEnd:ic,\u0275\u0275element:Of,\u0275\u0275elementContainerStart:rc,\u0275\u0275elementContainerEnd:oc,\u0275\u0275elementContainer:xf,\u0275\u0275pureFunction0:um,\u0275\u0275pureFunction1:dm,\u0275\u0275pureFunction2:hm,\u0275\u0275pureFunction3:fm,\u0275\u0275pureFunction4:pm,\u0275\u0275pureFunction5:mm,\u0275\u0275pureFunction6:gm,\u0275\u0275pureFunction7:_m,\u0275\u0275pureFunction8:ym,\u0275\u0275pureFunctionV:vm,\u0275\u0275getCurrentView:Rf,\u0275\u0275restoreView:U,\u0275\u0275listener:ac,\u0275\u0275projection:Vf,\u0275\u0275syntheticHostProperty:$c,\u0275\u0275syntheticHostListener:lc,\u0275\u0275pipeBind1:wm,\u0275\u0275pipeBind2:Sm,\u0275\u0275pipeBind3:Im,\u0275\u0275pipeBind4:Pm,\u0275\u0275pipeBindV:Am,\u0275\u0275projectionDef:jf,\u0275\u0275hostProperty:Vc,\u0275\u0275property:ec,\u0275\u0275propertyInterpolate:uc,\u0275\u0275propertyInterpolate1:na,\u0275\u0275propertyInterpolate2:dc,\u0275\u0275propertyInterpolate3:hc,\u0275\u0275propertyInterpolate4:fc,\u0275\u0275propertyInterpolate5:pc,\u0275\u0275propertyInterpolate6:mc,\u0275\u0275propertyInterpolate7:gc,\u0275\u0275propertyInterpolate8:_c,\u0275\u0275propertyInterpolateV:yc,\u0275\u0275pipe:Mm,\u0275\u0275queryRefresh:Nm,\u0275\u0275viewQuery:Lm,\u0275\u0275loadQuery:jm,\u0275\u0275contentQuery:Bm,\u0275\u0275reference:yf,\u0275\u0275classMap:Qf,\u0275\u0275classMapInterpolate1:np,\u0275\u0275classMapInterpolate2:ip,\u0275\u0275classMapInterpolate3:rp,\u0275\u0275classMapInterpolate4:op,\u0275\u0275classMapInterpolate5:sp,\u0275\u0275classMapInterpolate6:ap,\u0275\u0275classMapInterpolate7:lp,\u0275\u0275classMapInterpolate8:cp,\u0275\u0275classMapInterpolateV:up,\u0275\u0275styleMap:rr,\u0275\u0275styleMapInterpolate1:dp,\u0275\u0275styleMapInterpolate2:hp,\u0275\u0275styleMapInterpolate3:fp,\u0275\u0275styleMapInterpolate4:pp,\u0275\u0275styleMapInterpolate5:mp,\u0275\u0275styleMapInterpolate6:gp,\u0275\u0275styleMapInterpolate7:_p,\u0275\u0275styleMapInterpolate8:yp,\u0275\u0275styleMapInterpolateV:vp,\u0275\u0275styleProp:vc,\u0275\u0275stylePropInterpolate1:Oc,\u0275\u0275stylePropInterpolate2:xc,\u0275\u0275stylePropInterpolate3:Rc,\u0275\u0275stylePropInterpolate4:Fc,\u0275\u0275stylePropInterpolate5:kc,\u0275\u0275stylePropInterpolate6:Nc,\u0275\u0275stylePropInterpolate7:Lc,\u0275\u0275stylePropInterpolate8:Bc,\u0275\u0275stylePropInterpolateV:jc,\u0275\u0275classProp:bc,\u0275\u0275advance:fh,\u0275\u0275template:gf,\u0275\u0275text:tp,\u0275\u0275textInterpolate:Ec,\u0275\u0275textInterpolate1:ra,\u0275\u0275textInterpolate2:Dc,\u0275\u0275textInterpolate3:Tc,\u0275\u0275textInterpolate4:Mc,\u0275\u0275textInterpolate5:wc,\u0275\u0275textInterpolate6:Sc,\u0275\u0275textInterpolate7:Ic,\u0275\u0275textInterpolate8:Pc,\u0275\u0275textInterpolateV:Ac,\u0275\u0275i18n:Wp,\u0275\u0275i18nAttributes:zp,\u0275\u0275i18nExp:Gc,\u0275\u0275i18nStart:zc,\u0275\u0275i18nEnd:Kc,\u0275\u0275i18nApply:Kp,\u0275\u0275i18nPostprocess:Gp,\u0275\u0275resolveWindow:jd,\u0275\u0275resolveDocument:Vd,\u0275\u0275resolveBody:$d,\u0275\u0275setComponentScope:g,\u0275\u0275setNgModuleScope:Ht,\u0275\u0275sanitizeHtml:Td,\u0275\u0275sanitizeStyle:Md,\u0275\u0275sanitizeResourceUrl:Ga,\u0275\u0275sanitizeScript:wd,\u0275\u0275sanitizeUrl:Ka,\u0275\u0275sanitizeUrlOrResourceUrl:Pd,\u0275\u0275trustConstantHtml:Sd,\u0275\u0275trustConstantResourceUrl:Id,forwardRef:I,resolveForwardRef:T}))();let No=null;function w0(){No=null}const Cs=[];let su=!1;function Wm(){if(!su){su=!0;try{for(let e=Cs.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=Cs[e];n.declarations&&n.declarations.every(zm)&&(Cs.splice(e,1),P0(t,n))}}finally{su=!1}}}function zm(e){return Array.isArray(e)?e.every(zm):!!T(e)}function Km(e,t={}){Gm(e,t),function S0(e,t){Cs.push({moduleType:e,ngModule:t})}(e,t)}function Gm(e,t,n=!1){const r=Zi(t.declarations||wt);let o=null;Object.defineProperty(e,Ge,{configurable:!0,get:()=>(null===o&&(o=ii().compileNgModule(Di,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Zi(t.bootstrap||wt).map(T),declarations:r.map(T),imports:Zi(t.imports||wt).map(T).map(Jm),exports:Zi(t.exports||wt).map(T).map(Jm),schemas:t.schemas?Zi(t.schemas):null,id:t.id||null}),o.schemas||(o.schemas=[])),o)});let a=null;Object.defineProperty(e,Qe,{get:()=>{if(null===a){const v=ii();a=v.compileFactory(Di,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:js(e),target:v.FactoryTarget.NgModule,typeArgumentCount:0})}return a},configurable:!1});let p=null;Object.defineProperty(e,At,{get:()=>{if(null===p){const v={name:e.name,type:e,providers:t.providers||wt,imports:[(t.imports||wt).map(T),(t.exports||wt).map(T)]};p=ii().compileInjector(Di,`ng:///${e.name}/\u0275inj.js`,v)}return p},configurable:!1})}let _a=new WeakMap,lu=new WeakMap;function I0(){_a=new WeakMap,lu=new WeakMap,Cs.length=0}function P0(e,t){const n=Zi(t.declarations||wt),r=Es(e);n.forEach(o=>{o.hasOwnProperty(bn)?cu(Ve(o),r):!o.hasOwnProperty(Jt)&&!o.hasOwnProperty(on)&&(o.ngSelectorScope=e)})}function cu(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(bn)?Ve(n):ft(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>Lt(n)),e.schemas=t.schemas,e.tView=null}function Es(e){if(!uu(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=Ft(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 gr(t.imports).forEach(r=>{const o=r;if(!uu(o))throw new Error(`Importing ${o.name} which does not have a \u0275mod property`);const a=Es(o);a.exported.directives.forEach(p=>n.compilation.directives.add(p)),a.exported.pipes.forEach(p=>n.compilation.pipes.add(p))}),gr(t.declarations).forEach(r=>{Lt(r)?n.compilation.pipes.add(r):n.compilation.directives.add(r)}),gr(t.exports).forEach(r=>{const o=r;if(uu(o)){const a=Es(o);a.exported.directives.forEach(p=>{n.compilation.directives.add(p),n.exported.directives.add(p)}),a.exported.pipes.forEach(p=>{n.compilation.pipes.add(p),n.exported.pipes.add(p)})}else Lt(o)?n.exported.pipes.add(o):n.exported.directives.add(o)}),t.transitiveCompileScopes=n,n}function Jm(e){return function A0(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function uu(e){return!!Ft(e)}let du=0;function Xm(e,t){let n=null;(function P_(e,t){ud(t)&&(ao.set(e,t),Zo.add(e))})(e,t),eg(e,t),Object.defineProperty(e,bn,{get:()=>{if(null===n){const r=ii();if(ud(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 M0(){return No}();let a=t.preserveWhitespaces;void 0===a&&(a=null!==o&&void 0!==o.preserveWhitespaces&&o.preserveWhitespaces);let p=t.encapsulation;void 0===p&&(p=null!==o&&void 0!==o.defaultEncapsulation?o.defaultEncapsulation:pt.Emulated);const v=t.templateUrl||`ng:///${e.name}/template.html`,M=Object.assign(Object.assign({},tg(e,t)),{typeSourceSpan:r.createParseSourceSpan("Component",e.name,v),template:t.template||"",preserveWhitespaces:a,styles:t.styles||wt,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:p,interpolation:t.interpolation,viewProviders:t.viewProviders||null});du++;try{M.usesInheritance&&ng(e),n=r.compileComponent(Di,v,M)}finally{du--}if(0===du&&Wm(),function O0(e){return void 0!==e.ngSelectorScope}(e)){const B=Es(e.ngSelectorScope);cu(n,B)}}return n},configurable:!1})}function hu(e,t){let n=null;eg(e,t||{}),Object.defineProperty(e,Jt,{get:()=>{if(null===n){const r=qm(e,t||{});n=ii().compileDirective(Di,r.sourceMapUrl,r.metadata)}return n},configurable:!1})}function qm(e,t){const n=e&&e.name,r=`ng:///${n}/\u0275dir.js`,o=ii(),a=tg(e,t);return a.typeSourceSpan=o.createParseSourceSpan("Directive",n,r),a.usesInheritance&&ng(e),{metadata:a,sourceMapUrl:r}}function eg(e,t){let n=null;Object.defineProperty(e,Qe,{get:()=>{if(null===n){const r=qm(e,t),o=ii();n=o.compileFactory(Di,`ng:///${e.name}/\u0275fac.js`,{name:r.metadata.name,type:r.metadata.type,typeArgumentCount:0,deps:js(e),target:o.FactoryTarget.Directive})}return n},configurable:!1})}function x0(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function tg(e,t){const n=ja(),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||wt,outputs:t.outputs||wt,queries:ig(e,r,rg),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!x0(e),exportAs:k0(t.exportAs),providers:t.providers||null,viewQueries:ig(e,r,og)}}function ng(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!ft(n)&&!Ve(n)&&L0(n)&&hu(n,null),n=Object.getPrototypeOf(n)}function R0(e){return"string"==typeof e?ag(e):T(e)}function F0(e,t){return{propertyName:e,predicate:R0(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function ig(e,t,n){const r=[];for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];a.forEach(p=>{if(n(p)){if(!p.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(sg))throw new Error("Cannot combine @Input decorators with query decorators");r.push(F0(o,p))}})}return r}function k0(e){return void 0===e?null:ag(e)}function rg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function og(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function sg(e){return"Input"===e.ngMetadataName}function ag(e){return e.split(",").map(t=>t.trim())}const N0=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function L0(e){const t=ja();if(N0.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 p=o[a],v=p.ngMetadataName;if(sg(p)||rg(p)||og(p)||"Output"===v||"HostBinding"===v||"HostListener"===v)return!0}}return!1}function lg(e,t){let n=null,r=null;Object.defineProperty(e,Qe,{get:()=>{if(null===r){const o=cg(e,t),a=ii();r=a.compileFactory(Di,`ng:///${o.name}/\u0275fac.js`,{name:o.name,type:o.type,typeArgumentCount:0,deps:js(e),target:a.FactoryTarget.Pipe})}return r},configurable:!1}),Object.defineProperty(e,on,{get:()=>{if(null===n){const o=cg(e,t);n=ii().compilePipe(Di,`ng:///${o.name}/\u0275pipe.js`,o)}return n},configurable:!1})}function cg(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const ug=ro("Directive",(e={})=>e,void 0,void 0,(e,t)=>hu(e,t)),B0=ro("Component",(e={})=>Object.assign({changeDetection:Ce.Default},e),ug,void 0,(e,t)=>Xm(e,t)),j0=ro("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>lg(e,t)),V0=Vr("Input",e=>({bindingPropertyName:e})),$0=Vr("Output",e=>({bindingPropertyName:e})),H0=Vr("HostBinding",e=>({hostPropertyName:e})),U0=Vr("HostListener",(e,t)=>({eventName:e,args:t})),W0=ro("NgModule",e=>e,void 0,void 0,(e,t)=>Km(e,t));function ya(...e){}const fu=new Zn("Application Initializer");let Lo=(()=>{class e{constructor(n){this.appInits=n,this.resolve=ya,this.reject=ya,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(sc(a))n.push(a);else if(kf(a)){const p=new Promise((v,M)=>{a.subscribe({complete:v,error:M})});n.push(p)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(ai(fu,8))},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();const dg=new Zn("AppId"),hg={provide:dg,useFactory:function z0(){return`${pu()}${pu()}${pu()}`},deps:[]};function pu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const fg=new Zn("Platform Initializer"),pg=new Zn("Platform ID"),mg=new Zn("appBootstrapListener"),K0=new Zn("Application Packages Root URL");let gg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();const va=new Zn("LocaleId"),_g=new Zn("DefaultCurrencyCode"),G0=new Zn("Translations"),Q0=new Zn("TranslationsFormat");var Er=(()=>((Er=Er||{})[Er.Error=0]="Error",Er[Er.Warning=1]="Warning",Er[Er.Ignore=2]="Ignore",Er))();class yg{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let mu=(()=>{class e{compileModuleSync(n){return new fa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),a=gr(Ft(n).declarations).reduce((p,v)=>{const M=Ve(v);return M&&p.push(new ha(M)),p},[]);return new yg(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=qe({token:e,factory:e.\u0275fac}),e})();const vg=new Zn("compilerOptions");class Z0{}const Y0=(()=>Promise.resolve(0))();function gu(e){"undefined"==typeof Zone?Y0.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ni{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Cr(!1),this.onMicrotaskEmpty=new Cr(!1),this.onStable=new Cr(!1),this.onError=new Cr(!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 J0(){let e=Vt.requestAnimationFrame,t=Vt.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 eE(e){const t=()=>{!function q0(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Vt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,yu(e),e.isCheckStableRunning=!0,_u(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),yu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,a,p,v)=>{try{return bg(e),n.invokeTask(o,a,p,v)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===a.type||e.shouldCoalesceRunChangeDetection)&&t(),Cg(e)}},onInvoke:(n,r,o,a,p,v,M)=>{try{return bg(e),n.invoke(o,a,p,v,M)}finally{e.shouldCoalesceRunChangeDetection&&t(),Cg(e)}},onHasTask:(n,r,o,a)=>{n.hasTask(o,a),r===o&&("microTask"==a.change?(e._hasPendingMicrotasks=a.microTask,yu(e),_u(e)):"macroTask"==a.change&&(e.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,r,o,a)=>(n.handleError(o,a),e.runOutsideAngular(()=>e.onError.emit(a)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ni.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ni.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,p=a.scheduleEventTask("NgZoneEvent: "+o,t,X0,ya,ya);try{return a.runTask(p,n,r)}finally{a.cancelTask(p)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const X0={};function _u(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 yu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Cg(e){e._nesting--,_u(e)}class Eg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Cr,this.onMicrotaskEmpty=new Cr,this.onStable=new Cr,this.onError=new Cr}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 Dg=(()=>{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:()=>{Ni.assertNotInAngularZone(),gu(()=>{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())gu(()=>{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(p=>p.timeoutId!==a),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:a,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(ai(Ni))},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})(),vu=(()=>{class e{constructor(){this._applications=new Map,bu.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 bu.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();class tE{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function nE(e){bu=e}let ar,bu=new tE;function Tg(e,t,n){const r=new fa(n);return Promise.resolve(r)}function Mg(e){return e.isBoundToModule}const Cu=new Zn("AllowMultipleToken");class iE{constructor(t,n){this.name=t,this.token=n}}function wg(e){if(ar&&!ar.destroyed&&!ar.injector.get(Cu,!1))throw new j(400,"");ar=e.get(Du);const t=e.get(fg,null);return t&&t.forEach(n=>n()),ar}function Sg(e,t,n=[]){const r=`Platform: ${t}`,o=new Zn(r);return(a=[])=>{let p=Eu();if(!p||p.injector.get(Cu,!1))if(e)e(n.concat(a).concat({provide:o,useValue:!0}));else{const v=n.concat(a).concat({provide:o,useValue:!0},{provide:Ol,useValue:"platform"});wg(ki.create({providers:v,name:r}))}return Ig()}}function Ig(e){const t=Eu();if(!t)throw new j(401,"");return t}function rE(){ar&&!ar.destroyed&&ar.destroy()}function Eu(){return ar&&!ar.destroyed?ar:null}let Du=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const v=function oE(e,t){let n;return n="noop"===e?new Eg:("zone.js"===e?void 0:e)||new Ni({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),M=[{provide:Ni,useValue:v}];return v.run(()=>{const B=ki.create({providers:M,parent:this.injector,name:n.moduleType.name}),G=n.create(B),Ee=G.injector.get(es,null);if(!Ee)throw new j(402,"");return v.runOutsideAngular(()=>{const We=v.onError.subscribe({next:at=>{Ee.handleError(at)}});G.onDestroy(()=>{Tu(this._modules,G),We.unsubscribe()})}),function sE(e,t,n){try{const r=n();return sc(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(Ee,v,()=>{const We=G.injector.get(Lo);return We.runInitializers(),We.donePromise.then(()=>(Dp(G.injector.get(va,ds)||ds),this._moduleDoBootstrap(G),G))})})}bootstrapModule(n,r=[]){const o=Pg({},r);return Tg(0,0,n).then(a=>this.bootstrapModuleFactory(a,o))}_moduleDoBootstrap(n){const r=n.injector.get(Ds);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new j(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 j(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(ai(ki))},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();function Pg(e,t){return Array.isArray(t)?t.reduce(Pg,e):Object.assign(Object.assign({},e),t)}let Ds=(()=>{class e{constructor(n,r,o,a,p){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=a,this._initStatus=p,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 v=new m.y(B=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{B.next(this._stable),B.complete()})}),M=new m.y(B=>{let G;this._zone.runOutsideAngular(()=>{G=this._zone.onStable.subscribe(()=>{Ni.assertNotInAngularZone(),gu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,B.next(!0))})})});const Ee=this._zone.onUnstable.subscribe(()=>{Ni.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{B.next(!1)}))});return()=>{G.unsubscribe(),Ee.unsubscribe()}});this.isStable=(0,u.T)(v,M.pipe((0,s.B)()))}bootstrap(n,r){if(!this._initStatus.done)throw new j(405,"");let o;o=n instanceof ca?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const a=Mg(o)?void 0:this._injector.get(Fo),v=o.create(ki.NULL,[],r||o.selector,a),M=v.location.nativeElement,B=v.injector.get(Dg,null),G=B&&v.injector.get(vu);return B&&G&&G.registerApplication(M,B),v.onDestroy(()=>{this.detachView(v.hostView),Tu(this.components,v),G&&G.unregisterApplication(M)}),this._loadComponent(v),v}tick(){if(this._runningTick)throw new j(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;Tu(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(mg,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(ai(Ni),ai(ki),ai(es),ai(gs),ai(Lo))},e.\u0275prov=qe({token:e,factory:e.\u0275fac}),e})();function Tu(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Og=!0,xg=!1;function lE(){return xg=!0,Og}function cE(){if(xg)throw new Error("Cannot enable prod mode after platform setup.");Og=!1}function uE(e){const t=cm(e);if(!t)throw Rg(e);return new fa(t)}function dE(e){const t=cm(e);if(!t)throw Rg(e);return t}function Rg(e){return new Error(`No module with ID ${e} loaded`)}let Fg=(()=>{class e{}return e.__NG_ELEMENT_ID__=kg,e})();function kg(e){return function hE(e,t,n){if(Ti(e)&&!n){const r=hn(e.index,t);return new Ro(r,r)}return 47&e.type?new Ro(t[16],t):null}(ce(),c(),16==(16&e))}class Ng extends Fg{}class fE extends Ng{}class pE{constructor(t,n){this.name=t,this.callback=n}}function mE(e){return e.map(t=>t.nativeElement)}class Mu{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new Ts(t):null}get injector(){return nf(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(kl(t)||ef(t))}get context(){return kl(this.nativeNode)||qh(this.nativeNode)}get listeners(){return sf(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function Hv(e){const t=_i(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function ay(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 Vv(e){const t=_i(e);if(null===t)return[];const r=t.lView[1],o=r.data[t.nodeIndex],a=[],v=o.directiveEnd;for(let M=1048575&o.providerIndexes;M<v;M++){let B=r.data[M];Wv(B)&&(B=B.type),a.push(B)}return a}(this.nativeNode)}}class Ts extends Mu{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=_i(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=_i(this.nativeNode);if(null===t)return{};const n=t.lView,r=n[1].data,o=r[t.nodeIndex],a={};return function gE(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 p=e[a];_E(p)&&(t[a]=p)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,a),function yE(e,t,n,r){let o=t.propertyBindings;if(null!==o)for(let a=0;a<o.length;a++){const p=o[a],M=r[p].split("\ufffd"),B=M[0];if(M.length>1){let G=M[1];for(let Ee=1;Ee<M.length-1;Ee++)G+=V(n[p+Ee-1])+M[Ee+1];e[B]=G}else e[B]=n[p]}}(a,o,n,r),a}get attributes(){const t={},n=this.nativeElement;if(!n)return t;const r=_i(n);if(null===r)return{};const a=r.lView[1].data[r.nodeIndex].attrs,p=[];if(a){let M=0;for(;M<a.length;){const B=a[M];if("string"!=typeof B)break;t[B]=a[M+1],p.push(B.toLowerCase()),M+=2}}const v=n.attributes;for(let M=0;M<v.length;M++){const B=v[M],G=B.name.toLowerCase();-1===p.indexOf(G)&&(t[G]=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(Au(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(Au(n[o]));return r}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Lg(this,t,n,!0),n}queryAllNodes(t){const n=[];return Lg(this,t,n,!1),n}triggerEventHandler(t,n){const r=this.nativeNode,o=[];this.listeners.forEach(a=>{if(a.name===t){const p=a.callback;p.call(r,n),o.push(p)}}),"function"==typeof r.eventListeners&&r.eventListeners(t).forEach(a=>{if(-1!==a.toString().indexOf("__ngUnwrap__")){const p=a("__ngUnwrap__");return-1===o.indexOf(p)&&p.call(r,n)}})}}function _E(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Lg(e,t,n,r){const o=_i(e.nativeNode);null!==o?Yr(o.lView[1].data[o.nodeIndex],o.lView,t,n,r,e.nativeNode):Su(e.nativeNode,t,n,r)}function Yr(e,t,n,r,o,a){const p=function Ut(e,t){const n=null===e?-1:e.index;return-1!==n?x(t[n]):null}(e,t);if(11&e.type){if(wu(p,n,r,o,a),Ti(e)){const M=hn(e.index,t);M&&M[1].firstChild&&Yr(M[1].firstChild,M,n,r,o,a)}else e.child&&Yr(e.child,t,n,r,o,a),p&&Su(p,n,r,o);const v=t[e.index];zn(v)&&Bg(v,n,r,o,a)}else if(4&e.type){const v=t[e.index];wu(v[7],n,r,o,a),Bg(v,n,r,o,a)}else if(16&e.type){const v=t[16],B=v[6].projection[e.projection];if(Array.isArray(B))for(let G of B)wu(G,n,r,o,a);else if(B){const G=v[3];Yr(G[1].data[B.index],G,n,r,o,a)}}else e.child&&Yr(e.child,t,n,r,o,a);if(a!==p){const v=4&e.flags?e.projectionNext:e.next;v&&Yr(v,t,n,r,o,a)}}function Bg(e,t,n,r,o){for(let a=10;a<e.length;a++){const p=e[a],v=p[1].firstChild;v&&Yr(v,p,t,n,r,o)}}function wu(e,t,n,r,o){if(o!==e){const a=ba(e);if(!a)return;(r&&a instanceof Ts&&t(a)&&-1===n.indexOf(a)||!r&&t(a)&&-1===n.indexOf(a))&&n.push(a)}}function Su(e,t,n,r){const o=e.childNodes,a=o.length;for(let p=0;p<a;p++){const v=o[p],M=ba(v);M&&((r&&M instanceof Ts&&t(M)&&-1===n.indexOf(M)||!r&&t(M)&&-1===n.indexOf(M))&&n.push(M),Su(v,t,n,r))}}const Pu="__ng_debug__";function Au(e){return e instanceof Node?(e.hasOwnProperty(Pu)||(e[Pu]=e.nodeType==Node.ELEMENT_NODE?new Ts(e):new Mu(e)),e[Pu]):null}const ba=Au,bE=function vE(e){return null},CE=Mu,EE=Ts;class jg{constructor(){}supports(t){return ss(t)}create(t){return new Vg(t)}}const DE=(e,t)=>t;class Vg{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||DE}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 p=!r||n&&n.currentIndex<Hg(r,o,a)?n:r,v=Hg(p,o,a),M=p.currentIndex;if(p===r)o--,r=r._nextRemoved;else if(n=n._next,null==p.previousIndex)o++;else{a||(a=[]);const B=v-o,G=M-o;if(B!=G){for(let We=0;We<B;We++){const at=We<a.length?a[We]:a[We]=0,yt=at+We;G<=yt&&yt<B&&(a[We]=at+1)}a[p.previousIndex]=G-B}}v!==M&&t(p,v,M)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!ss(t))throw new j(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,a,p,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let v=0;v<this.length;v++)a=t[v],p=this._trackByFn(v,a),null!==n&&Object.is(n.trackById,p)?(r&&(n=this._verifyReinsertion(n,a,p,v)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,p,v),r=!0),n=n._next}else o=0,function nb(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,v=>{p=this._trackByFn(o,v),null!==n&&Object.is(n.trackById,p)?(r&&(n=this._verifyReinsertion(n,v,p,o)),Object.is(n.item,v)||this._addIdentityChange(n,v)):(n=this._mismatch(n,v,p,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 TE(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 $g),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 $g),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 TE{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 ME{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 $g{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new ME,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 Hg(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 Ug{constructor(){}supports(t){return t instanceof Map||Vl(t)}create(){return new wE}}class wE{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||Vl(t)))throw new j(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,p=o._next;return a&&(a._next=p),p&&(p._prev=a),o._next=null,o._prev=null,o}const r=new SE(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 SE{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 Wg(){return new Ca([new jg])}let Ca=(()=>{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||Wg()),deps:[[e,new zr,new Wr]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new j(901,"")}}return e.\u0275prov=qe({token:e,providedIn:"root",factory:Wg}),e})();function zg(){return new Ea([new Ug])}let Ea=(()=>{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||zg()),deps:[[e,new zr,new Wr]]}}find(n){const r=this.factories.find(a=>a.supports(n));if(r)return r;throw new j(901,"")}}return e.\u0275prov=qe({token:e,providedIn:"root",factory:zg}),e})();const IE=[new Ug],Kg=new Ca([new jg]),Gg=new Ea(IE),AE=Sg(null,"core",[{provide:pg,useValue:"unknown"},{provide:Du,deps:[ki]},{provide:vu,deps:[]},{provide:gg,deps:[]}]),kE=[{provide:Ds,useClass:Ds,deps:[Ni,ki,es,gs,Lo]},{provide:r0,deps:[Ni],useFactory:function NE(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Lo,useClass:Lo,deps:[[new Wr,fu]]},{provide:mu,useClass:mu,deps:[]},hg,{provide:Ca,useFactory:function OE(){return Kg},deps:[]},{provide:Ea,useFactory:function xE(){return Gg},deps:[]},{provide:va,useFactory:function RE(e){return e||function FE(){return"undefined"!=typeof $localize&&$localize.locale||ds}()},deps:[[new Qo(va),new Wr,new zr]]},{provide:_g,useValue:"USD"}];let LE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(ai(Ds))},e.\u0275mod=kt({type:e}),e.\u0275inj=pe({providers:kE}),e})();const BE=!0;function jE(e){return ii().compileDirectiveDeclaration(Di,`ng:///${e.type.name}/\u0275fac.js`,e)}function VE(e){var t,n;om(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function $E(e){return ii().compileComponentDeclaration(Di,`ng:///${e.type.name}/\u0275cmp.js`,e)}function HE(e){return ii(function UE(e){switch(e){case ni.Directive:return"directive";case ni.Component:return"component";case ni.Injectable:return"injectable";case ni.Pipe:return"pipe";case ni.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(Di,`ng:///${e.type.name}/\u0275fac.js`,e)}function WE(e){return ii().compileInjectableDeclaration(Di,`ng:///${e.type.name}/\u0275prov.js`,e)}function zE(e){return ii().compileInjectorDeclaration(Di,`ng:///${e.type.name}/\u0275inj.js`,e)}function KE(e){return ii().compileNgModuleDeclaration(Di,`ng:///${e.type.name}/\u0275mod.js`,e)}function GE(e){return ii().compilePipeDeclaration(Di,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3075:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{AbstractControl:()=>Nt,AbstractControlDirective:()=>Je,AbstractFormGroupDirective:()=>$n,COMPOSITION_BUFFER_MODE:()=>b,CheckboxControlValueAccessor:()=>f,CheckboxRequiredValidator:()=>Mi,ControlContainer:()=>Et,DefaultValueAccessor:()=>R,EmailValidator:()=>wi,FormArray:()=>Bt,FormArrayName:()=>Ei,FormBuilder:()=>_n,FormControl:()=>qt,FormControlDirective:()=>ji,FormControlName:()=>$i,FormGroup:()=>Cn,FormGroupDirective:()=>Si,FormGroupName:()=>ui,FormsModule:()=>wn,MaxLengthValidator:()=>Z,MaxValidator:()=>Qn,MinLengthValidator:()=>On,MinValidator:()=>Ki,NG_ASYNC_VALIDATORS:()=>le,NG_VALIDATORS:()=>V,NG_VALUE_ACCESSOR:()=>D,NgControl:()=>vt,NgControlStatus:()=>N,NgControlStatusGroup:()=>oe,NgForm:()=>jn,NgModel:()=>zn,NgModelGroup:()=>ti,NgSelectOption:()=>ur,NumberValueAccessor:()=>fi,PatternValidator:()=>ie,RadioControlValueAccessor:()=>Kn,RangeValueAccessor:()=>Ci,ReactiveFormsModule:()=>yn,RequiredValidator:()=>Gi,SelectControlValueAccessor:()=>Pi,SelectMultipleControlValueAccessor:()=>gi,VERSION:()=>Bn,Validators:()=>fe,\u0275InternalFormsSharedModule:()=>Ut,\u0275NgNoValidate:()=>bi,\u0275NgSelectMultipleOption:()=>qi});var i=l(5e3),d=l(9808),m=l(188),u=l(4128),s=l(4004);let y=(()=>{class k{constructor(S,J){this._renderer=S,this._elementRef=J,this.onChange=Xe=>{},this.onTouched=()=>{}}setProperty(S,J){this._renderer.setProperty(this._elementRef.nativeElement,S,J)}registerOnTouched(S){this.onTouched=S}registerOnChange(S){this.onChange=S}setDisabledState(S){this.setProperty("disabled",S)}}return k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k}),k})(),C=(()=>{class k extends y{}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,features:[i.\u0275\u0275InheritDefinitionFeature]}),k})();const D=new i.InjectionToken("NgValueAccessor"),w={provide:D,useExisting:(0,i.forwardRef)(()=>f),multi:!0};let f=(()=>{class k extends C{writeValue(S){this.setProperty("checked",S)}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(S,J){1&S&&i.\u0275\u0275listener("change",function(Wt){return J.onChange(Wt.target.checked)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([w]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const I={provide:D,useExisting:(0,i.forwardRef)(()=>R),multi:!0},b=new i.InjectionToken("CompositionEventMode");let R=(()=>{class k extends y{constructor(S,J,Xe){super(S,J),this._compositionMode=Xe,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function T(){const k=(0,d.\u0275getDOM)()?(0,d.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(k.toLowerCase())}())}writeValue(S){this.setProperty("value",null==S?"":S)}_handleInput(S){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(S)}_compositionStart(){this._composing=!0}_compositionEnd(S){this._composing=!1,this._compositionMode&&this.onChange(S)}}return k.\u0275fac=function(S){return new(S||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(S,J){1&S&&i.\u0275\u0275listener("input",function(Wt){return J._handleInput(Wt.target.value)})("blur",function(){return J.onTouched()})("compositionstart",function(){return J._compositionStart()})("compositionend",function(Wt){return J._compositionEnd(Wt.target.value)})},features:[i.\u0275\u0275ProvidersFeature([I]),i.\u0275\u0275InheritDefinitionFeature]}),k})();function j(k){return null==k||0===k.length}function he(k){return null!=k&&"number"==typeof k.length}const V=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 fe{static min(A){return ye(A)}static max(A){return se(A)}static required(A){return De(A)}static requiredTrue(A){return ke(A)}static email(A){return et(A)}static minLength(A){return lt(A)}static maxLength(A){return q(A)}static pattern(A){return Pe(A)}static nullValidator(A){return null}static compose(A){return ve(A)}static composeAsync(A){return ut(A)}}function ye(k){return A=>{if(j(A.value)||j(k))return null;const S=parseFloat(A.value);return!isNaN(S)&&S<k?{min:{min:k,actual:A.value}}:null}}function se(k){return A=>{if(j(A.value)||j(k))return null;const S=parseFloat(A.value);return!isNaN(S)&&S>k?{max:{max:k,actual:A.value}}:null}}function De(k){return j(k.value)?{required:!0}:null}function ke(k){return!0===k.value?null:{required:!0}}function et(k){return j(k.value)||Me.test(k.value)?null:{email:!0}}function lt(k){return A=>j(A.value)||!he(A.value)?null:A.value.length<k?{minlength:{requiredLength:k,actualLength:A.value.length}}:null}function q(k){return A=>he(A.value)&&A.value.length>k?{maxlength:{requiredLength:k,actualLength:A.value.length}}:null}function Pe(k){if(!k)return X;let A,S;return"string"==typeof k?(S="","^"!==k.charAt(0)&&(S+="^"),S+=k,"$"!==k.charAt(k.length-1)&&(S+="$"),A=new RegExp(S)):(S=k.toString(),A=k),J=>{if(j(J.value))return null;const Xe=J.value;return A.test(Xe)?null:{pattern:{requiredPattern:S,actualValue:Xe}}}}function X(k){return null}function ae(k){return null!=k}function Ie(k){const A=(0,i.\u0275isPromise)(k)?(0,m.D)(k):k;return(0,i.\u0275isObservable)(A),A}function ne(k){let A={};return k.forEach(S=>{A=null!=S?Object.assign(Object.assign({},A),S):A}),0===Object.keys(A).length?null:A}function Ke(k,A){return A.map(S=>S(k))}function st(k){return k.map(A=>function me(k){return!k.validate}(A)?A:S=>A.validate(S))}function ve(k){if(!k)return null;const A=k.filter(ae);return 0==A.length?null:function(S){return ne(Ke(S,A))}}function Ue(k){return null!=k?ve(st(k)):null}function ut(k){if(!k)return null;const A=k.filter(ae);return 0==A.length?null:function(S){const J=Ke(S,A).map(Ie);return(0,u.D)(J).pipe((0,s.U)(ne))}}function Tt(k){return null!=k?ut(st(k)):null}function Ne(k,A){return null===k?[A]:Array.isArray(k)?[...k,A]:[k,A]}function qe(k){return k._rawValidators}function Y(k){return k._rawAsyncValidators}function pe(k){return k?Array.isArray(k)?k:[k]:[]}function we(k,A){return Array.isArray(k)?k.includes(A):k===A}function xe(k,A){const S=pe(A);return pe(k).forEach(Xe=>{we(S,Xe)||S.push(Xe)}),S}function ge(k,A){return pe(A).filter(S=>!we(k,S))}class Je{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(A){this._rawValidators=A||[],this._composedValidatorFn=Ue(this._rawValidators)}_setAsyncValidators(A){this._rawAsyncValidators=A||[],this._composedAsyncValidatorFn=Tt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(A){this._onDestroyCallbacks.push(A)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(A=>A()),this._onDestroyCallbacks=[]}reset(A){this.control&&this.control.reset(A)}hasError(A,S){return!!this.control&&this.control.hasError(A,S)}getError(A,S){return this.control?this.control.getError(A,S):null}}class vt extends Je{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Et extends Je{get formDirective(){return null}get path(){return null}}class At{constructor(A){this._cd=A}is(A){var S,J,Xe;return"submitted"===A?!!(null===(S=this._cd)||void 0===S?void 0:S.submitted):!!(null===(Xe=null===(J=this._cd)||void 0===J?void 0:J.control)||void 0===Xe?void 0:Xe[A])}}let N=(()=>{class k extends At{constructor(S){super(S)}}return k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(vt,2))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(S,J){2&S&&i.\u0275\u0275classProp("ng-untouched",J.is("untouched"))("ng-touched",J.is("touched"))("ng-pristine",J.is("pristine"))("ng-dirty",J.is("dirty"))("ng-valid",J.is("valid"))("ng-invalid",J.is("invalid"))("ng-pending",J.is("pending"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),k})(),oe=(()=>{class k extends At{constructor(S){super(S)}}return k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(Et,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(S,J){2&S&&i.\u0275\u0275classProp("ng-untouched",J.is("untouched"))("ng-touched",J.is("touched"))("ng-pristine",J.is("pristine"))("ng-dirty",J.is("dirty"))("ng-valid",J.is("valid"))("ng-invalid",J.is("invalid"))("ng-pending",J.is("pending"))("ng-submitted",J.is("submitted"))},features:[i.\u0275\u0275InheritDefinitionFeature]}),k})();function zt(k,A){return[...A.path,k]}function wt(k,A){Ge(k,A),A.valueAccessor.writeValue(k.value),function W(k,A){A.valueAccessor.registerOnChange(S=>{k._pendingValue=S,k._pendingChange=!0,k._pendingDirty=!0,"change"===k.updateOn&&L(k,A)})}(k,A),function g(k,A){const S=(J,Xe)=>{A.valueAccessor.writeValue(J),Xe&&A.viewToModelUpdate(J)};k.registerOnChange(S),A._registerOnDestroy(()=>{k._unregisterOnChange(S)})}(k,A),function P(k,A){A.valueAccessor.registerOnTouched(()=>{k._pendingTouched=!0,"blur"===k.updateOn&&k._pendingChange&&L(k,A),"submit"!==k.updateOn&&k.markAsTouched()})}(k,A),function on(k,A){if(A.valueAccessor.setDisabledState){const S=J=>{A.valueAccessor.setDisabledState(J)};k.registerOnDisabledChange(S),A._registerOnDestroy(()=>{k._unregisterOnDisabledChange(S)})}}(k,A)}function bn(k,A,S=!0){const J=()=>{};A.valueAccessor&&(A.valueAccessor.registerOnChange(J),A.valueAccessor.registerOnTouched(J)),Qe(k,A),k&&(A._invokeOnDestroyCallbacks(),k._registerOnCollectionChange(()=>{}))}function Jt(k,A){k.forEach(S=>{S.registerOnValidatorChange&&S.registerOnValidatorChange(A)})}function Ge(k,A){const S=qe(k);null!==A.validator?k.setValidators(Ne(S,A.validator)):"function"==typeof S&&k.setValidators([S]);const J=Y(k);null!==A.asyncValidator?k.setAsyncValidators(Ne(J,A.asyncValidator)):"function"==typeof J&&k.setAsyncValidators([J]);const Xe=()=>k.updateValueAndValidity();Jt(A._rawValidators,Xe),Jt(A._rawAsyncValidators,Xe)}function Qe(k,A){let S=!1;if(null!==k){if(null!==A.validator){const Xe=qe(k);if(Array.isArray(Xe)&&Xe.length>0){const Wt=Xe.filter(Fn=>Fn!==A.validator);Wt.length!==Xe.length&&(S=!0,k.setValidators(Wt))}}if(null!==A.asyncValidator){const Xe=Y(k);if(Array.isArray(Xe)&&Xe.length>0){const Wt=Xe.filter(Fn=>Fn!==A.asyncValidator);Wt.length!==Xe.length&&(S=!0,k.setAsyncValidators(Wt))}}}const J=()=>{};return Jt(A._rawValidators,J),Jt(A._rawAsyncValidators,J),S}function L(k,A){k._pendingDirty&&k.markAsDirty(),k.setValue(k._pendingValue,{emitModelToViewChange:!1}),A.viewToModelUpdate(k._pendingValue),k._pendingChange=!1}function O(k,A){Ge(k,A)}function Ht(k,A){if(!k.hasOwnProperty("model"))return!1;const S=k.model;return!!S.isFirstChange()||!Object.is(A,S.currentValue)}function $e(k,A){k._syncPendingControls(),A.forEach(S=>{const J=S.control;"submit"===J.updateOn&&J._pendingChange&&(S.viewToModelUpdate(J._pendingValue),J._pendingChange=!1)})}function de(k,A){if(!A)return null;let S,J,Xe;return Array.isArray(A),A.forEach(Wt=>{Wt.constructor===R?S=Wt:function Fe(k){return Object.getPrototypeOf(k.constructor)===C}(Wt)?J=Wt:Xe=Wt}),Xe||J||S||null}function Ve(k,A){const S=k.indexOf(A);S>-1&&k.splice(S,1)}const Ft="VALID",an="INVALID",Mn="PENDING",Vn="DISABLED";function Jn(k){return(H(k)?k.validators:k)||null}function Nn(k){return Array.isArray(k)?Ue(k):k||null}function Un(k,A){return(H(A)?A.asyncValidators:k)||null}function Ln(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 Cn,Ae=k=>k instanceof Bt;function tt(k){return Se(k)?k.value:k.getRawValue()}function ct(k,A){const S=z(k),J=k.controls;if(!(S?Object.keys(J):J).length)throw new i.\u0275RuntimeError(1e3,"");if(!J[A])throw new i.\u0275RuntimeError(1001,"")}function St(k,A){z(k),k._forEachChild((J,Xe)=>{if(void 0===A[Xe])throw new i.\u0275RuntimeError(1002,"")})}class Nt{constructor(A,S){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=A,this._rawAsyncValidators=S,this._composedValidatorFn=Nn(this._rawValidators),this._composedAsyncValidatorFn=Ln(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(A){this._rawValidators=this._composedValidatorFn=A}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(A){this._rawAsyncValidators=this._composedAsyncValidatorFn=A}get parent(){return this._parent}get valid(){return this.status===Ft}get invalid(){return this.status===an}get pending(){return this.status==Mn}get disabled(){return this.status===Vn}get enabled(){return this.status!==Vn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(A){this._rawValidators=A,this._composedValidatorFn=Nn(A)}setAsyncValidators(A){this._rawAsyncValidators=A,this._composedAsyncValidatorFn=Ln(A)}addValidators(A){this.setValidators(xe(A,this._rawValidators))}addAsyncValidators(A){this.setAsyncValidators(xe(A,this._rawAsyncValidators))}removeValidators(A){this.setValidators(ge(A,this._rawValidators))}removeAsyncValidators(A){this.setAsyncValidators(ge(A,this._rawAsyncValidators))}hasValidator(A){return we(this._rawValidators,A)}hasAsyncValidator(A){return we(this._rawAsyncValidators,A)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(A={}){this.touched=!0,this._parent&&!A.onlySelf&&this._parent.markAsTouched(A)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(A=>A.markAllAsTouched())}markAsUntouched(A={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(S=>{S.markAsUntouched({onlySelf:!0})}),this._parent&&!A.onlySelf&&this._parent._updateTouched(A)}markAsDirty(A={}){this.pristine=!1,this._parent&&!A.onlySelf&&this._parent.markAsDirty(A)}markAsPristine(A={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(S=>{S.markAsPristine({onlySelf:!0})}),this._parent&&!A.onlySelf&&this._parent._updatePristine(A)}markAsPending(A={}){this.status=Mn,!1!==A.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!A.onlySelf&&this._parent.markAsPending(A)}disable(A={}){const S=this._parentMarkedDirty(A.onlySelf);this.status=Vn,this.errors=null,this._forEachChild(J=>{J.disable(Object.assign(Object.assign({},A),{onlySelf:!0}))}),this._updateValue(),!1!==A.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},A),{skipPristineCheck:S})),this._onDisabledChange.forEach(J=>J(!0))}enable(A={}){const S=this._parentMarkedDirty(A.onlySelf);this.status=Ft,this._forEachChild(J=>{J.enable(Object.assign(Object.assign({},A),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:A.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},A),{skipPristineCheck:S})),this._onDisabledChange.forEach(J=>J(!1))}_updateAncestors(A){this._parent&&!A.onlySelf&&(this._parent.updateValueAndValidity(A),A.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(A){this._parent=A}updateValueAndValidity(A={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ft||this.status===Mn)&&this._runAsyncValidator(A.emitEvent)),!1!==A.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!A.onlySelf&&this._parent.updateValueAndValidity(A)}_updateTreeValidity(A={emitEvent:!0}){this._forEachChild(S=>S._updateTreeValidity(A)),this.updateValueAndValidity({onlySelf:!0,emitEvent:A.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Vn:Ft}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(A){if(this.asyncValidator){this.status=Mn,this._hasOwnPendingAsyncValidator=!0;const S=Ie(this.asyncValidator(this));this._asyncValidationSubscription=S.subscribe(J=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(J,{emitEvent:A})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(A,S={}){this.errors=A,this._updateControlsErrors(!1!==S.emitEvent)}get(A){return function hi(k,A,S){if(null==A||(Array.isArray(A)||(A=A.split(S)),Array.isArray(A)&&0===A.length))return null;let J=k;return A.forEach(Xe=>{J=z(J)?J.controls.hasOwnProperty(Xe)?J.controls[Xe]:null:Ae(J)&&J.at(Xe)||null}),J}(this,A,".")}getError(A,S){const J=S?this.get(S):this;return J&&J.errors?J.errors[A]:null}hasError(A,S){return!!this.getError(A,S)}get root(){let A=this;for(;A._parent;)A=A._parent;return A}_updateControlsErrors(A){this.status=this._calculateStatus(),A&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(A)}_initObservables(){this.valueChanges=new i.EventEmitter,this.statusChanges=new i.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?Vn:this.errors?an:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Mn)?Mn:this._anyControlsHaveStatus(an)?an:Ft}_anyControlsHaveStatus(A){return this._anyControls(S=>S.status===A)}_anyControlsDirty(){return this._anyControls(A=>A.dirty)}_anyControlsTouched(){return this._anyControls(A=>A.touched)}_updatePristine(A={}){this.pristine=!this._anyControlsDirty(),this._parent&&!A.onlySelf&&this._parent._updatePristine(A)}_updateTouched(A={}){this.touched=this._anyControlsTouched(),this._parent&&!A.onlySelf&&this._parent._updateTouched(A)}_isBoxedValue(A){return"object"==typeof A&&null!==A&&2===Object.keys(A).length&&"value"in A&&"disabled"in A}_registerOnCollectionChange(A){this._onCollectionChange=A}_setUpdateStrategy(A){H(A)&&null!=A.updateOn&&(this._updateOn=A.updateOn)}_parentMarkedDirty(A){return!A&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class qt extends Nt{constructor(A=null,S,J){super(Jn(S),Un(J,S)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(A),this._setUpdateStrategy(S),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),H(S)&&S.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(A)?A.value:A)}setValue(A,S={}){this.value=this._pendingValue=A,this._onChange.length&&!1!==S.emitModelToViewChange&&this._onChange.forEach(J=>J(this.value,!1!==S.emitViewToModelChange)),this.updateValueAndValidity(S)}patchValue(A,S={}){this.setValue(A,S)}reset(A=this.defaultValue,S={}){this._applyFormState(A),this.markAsPristine(S),this.markAsUntouched(S),this.setValue(this.value,S),this._pendingChange=!1}_updateValue(){}_anyControls(A){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(A){this._onChange.push(A)}_unregisterOnChange(A){Ve(this._onChange,A)}registerOnDisabledChange(A){this._onDisabledChange.push(A)}_unregisterOnDisabledChange(A){Ve(this._onDisabledChange,A)}_forEachChild(A){}_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(A){this._isBoxedValue(A)?(this.value=this._pendingValue=A.value,A.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=A}}class Cn extends Nt{constructor(A,S,J){super(Jn(S),Un(J,S)),this.controls=A,this._initObservables(),this._setUpdateStrategy(S),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(A,S){return this.controls[A]?this.controls[A]:(this.controls[A]=S,S.setParent(this),S._registerOnCollectionChange(this._onCollectionChange),S)}addControl(A,S,J={}){this.registerControl(A,S),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}removeControl(A,S={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),delete this.controls[A],this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}setControl(A,S,J={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),delete this.controls[A],S&&this.registerControl(A,S),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}contains(A){return this.controls.hasOwnProperty(A)&&this.controls[A].enabled}setValue(A,S={}){St(this,A),Object.keys(A).forEach(J=>{ct(this,J),this.controls[J].setValue(A[J],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(A,S={}){null!=A&&(Object.keys(A).forEach(J=>{this.controls[J]&&this.controls[J].patchValue(A[J],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(A={},S={}){this._forEachChild((J,Xe)=>{J.reset(A[Xe],{onlySelf:!0,emitEvent:S.emitEvent})}),this._updatePristine(S),this._updateTouched(S),this.updateValueAndValidity(S)}getRawValue(){return this._reduceChildren({},(A,S,J)=>(A[J]=tt(S),A))}_syncPendingControls(){let A=this._reduceChildren(!1,(S,J)=>!!J._syncPendingControls()||S);return A&&this.updateValueAndValidity({onlySelf:!0}),A}_forEachChild(A){Object.keys(this.controls).forEach(S=>{const J=this.controls[S];J&&A(J,S)})}_setUpControls(){this._forEachChild(A=>{A.setParent(this),A._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(A){for(const S of Object.keys(this.controls)){const J=this.controls[S];if(this.contains(S)&&A(J))return!0}return!1}_reduceValue(){return this._reduceChildren({},(A,S,J)=>((S.enabled||this.disabled)&&(A[J]=S.value),A))}_reduceChildren(A,S){let J=A;return this._forEachChild((Xe,Wt)=>{J=S(J,Xe,Wt)}),J}_allControlsDisabled(){for(const A of Object.keys(this.controls))if(this.controls[A].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Bt extends Nt{constructor(A,S,J){super(Jn(S),Un(J,S)),this.controls=A,this._initObservables(),this._setUpdateStrategy(S),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(A){return this.controls[A]}push(A,S={}){this.controls.push(A),this._registerControl(A),this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}insert(A,S,J={}){this.controls.splice(A,0,S),this._registerControl(S),this.updateValueAndValidity({emitEvent:J.emitEvent})}removeAt(A,S={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),this.controls.splice(A,1),this.updateValueAndValidity({emitEvent:S.emitEvent})}setControl(A,S,J={}){this.controls[A]&&this.controls[A]._registerOnCollectionChange(()=>{}),this.controls.splice(A,1),S&&(this.controls.splice(A,0,S),this._registerControl(S)),this.updateValueAndValidity({emitEvent:J.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(A,S={}){St(this,A),A.forEach((J,Xe)=>{ct(this,Xe),this.at(Xe).setValue(J,{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(A,S={}){null!=A&&(A.forEach((J,Xe)=>{this.at(Xe)&&this.at(Xe).patchValue(J,{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(A=[],S={}){this._forEachChild((J,Xe)=>{J.reset(A[Xe],{onlySelf:!0,emitEvent:S.emitEvent})}),this._updatePristine(S),this._updateTouched(S),this.updateValueAndValidity(S)}getRawValue(){return this.controls.map(A=>tt(A))}clear(A={}){this.controls.length<1||(this._forEachChild(S=>S._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:A.emitEvent}))}_syncPendingControls(){let A=this.controls.reduce((S,J)=>!!J._syncPendingControls()||S,!1);return A&&this.updateValueAndValidity({onlySelf:!0}),A}_forEachChild(A){this.controls.forEach((S,J)=>{A(S,J)})}_updateValue(){this.value=this.controls.filter(A=>A.enabled||this.disabled).map(A=>A.value)}_anyControls(A){return this.controls.some(S=>S.enabled&&A(S))}_setUpControls(){this._forEachChild(A=>this._registerControl(A))}_allControlsDisabled(){for(const A of this.controls)if(A.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(A){A.setParent(this),A._registerOnCollectionChange(this._onCollectionChange)}}const Pn={provide:Et,useExisting:(0,i.forwardRef)(()=>jn)},ln=(()=>Promise.resolve(null))();let jn=(()=>{class k extends Et{constructor(S,J){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new i.EventEmitter,this.form=new Cn({},Ue(S),Tt(J))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(S){ln.then(()=>{const J=this._findContainer(S.path);S.control=J.registerControl(S.name,S.control),wt(S.control,S),S.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(S)})}getControl(S){return this.form.get(S.path)}removeControl(S){ln.then(()=>{const J=this._findContainer(S.path);J&&J.removeControl(S.name),Ve(this._directives,S)})}addFormGroup(S){ln.then(()=>{const J=this._findContainer(S.path),Xe=new Cn({});O(Xe,S),J.registerControl(S.name,Xe),Xe.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(S){ln.then(()=>{const J=this._findContainer(S.path);J&&J.removeControl(S.name)})}getFormGroup(S){return this.form.get(S.path)}updateModel(S,J){ln.then(()=>{this.form.get(S.path).setValue(J)})}setValue(S){this.control.setValue(S)}onSubmit(S){return this.submitted=!0,$e(this.form,this._directives),this.ngSubmit.emit(S),!1}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(S){return S.pop(),S.length?this.form.get(S):this.form}}return k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(V,10),i.\u0275\u0275directiveInject(le,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(S,J){1&S&&i.\u0275\u0275listener("submit",function(Wt){return J.onSubmit(Wt)})("reset",function(){return J.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Pn]),i.\u0275\u0275InheritDefinitionFeature]}),k})(),$n=(()=>{class k extends Et{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 A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,features:[i.\u0275\u0275InheritDefinitionFeature]}),k})();const mn={provide:Et,useExisting:(0,i.forwardRef)(()=>ti)};let ti=(()=>{class k extends $n{constructor(S,J,Xe){super(),this._parent=S,this._setValidators(J),this._setAsyncValidators(Xe)}_checkParentType(){}}return k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(Et,5),i.\u0275\u0275directiveInject(V,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([mn]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const ci={provide:vt,useExisting:(0,i.forwardRef)(()=>zn)},Wn=(()=>Promise.resolve(null))();let zn=(()=>{class k extends vt{constructor(S,J,Xe,Wt){super(),this.control=new qt,this._registered=!1,this.update=new i.EventEmitter,this._parent=S,this._setValidators(J),this._setAsyncValidators(Xe),this.valueAccessor=de(0,Wt)}ngOnChanges(S){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in S&&this._updateDisabled(S),Ht(S,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(S){this.viewModel=S,this.update.emit(S)}_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(){wt(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(S){Wn.then(()=>{this.control.setValue(S,{emitViewToModelChange:!1})})}_updateDisabled(S){const J=S.isDisabled.currentValue,Xe=""===J||J&&"false"!==J;Wn.then(()=>{Xe&&!this.control.disabled?this.control.disable():!Xe&&this.control.disabled&&this.control.enable()})}}return k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(Et,9),i.\u0275\u0275directiveInject(V,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([ci]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),k})(),bi=(()=>{class k{}return k.\u0275fac=function(S){return new(S||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),k})();const Ti={provide:D,useExisting:(0,i.forwardRef)(()=>fi),multi:!0};let fi=(()=>{class k extends C{writeValue(S){this.setProperty("value",null==S?"":S)}registerOnChange(S){this.onChange=J=>{S(""==J?null:parseFloat(J))}}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(S,J){1&S&&i.\u0275\u0275listener("input",function(Wt){return J.onChange(Wt.target.value)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Ti]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Hn={provide:D,useExisting:(0,i.forwardRef)(()=>Kn),multi:!0};let Xi=(()=>{class k{}return k.\u0275fac=function(S){return new(S||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({}),k})(),lr=(()=>{class k{constructor(){this._accessors=[]}add(S,J){this._accessors.push([S,J])}remove(S){for(let J=this._accessors.length-1;J>=0;--J)if(this._accessors[J][1]===S)return void this._accessors.splice(J,1)}select(S){this._accessors.forEach(J=>{this._isSameGroup(J,S)&&J[1]!==S&&J[1].fireUncheck(S.value)})}_isSameGroup(S,J){return!!S[0].control&&S[0]._parent===J._control._parent&&S[1].name===J.name}}return k.\u0275fac=function(S){return new(S||k)},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:Xi}),k})(),Kn=(()=>{class k extends C{constructor(S,J,Xe,Wt){super(S,J),this._registry=Xe,this._injector=Wt,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(vt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(S){this._state=S===this.value,this.setProperty("checked",this._state)}registerOnChange(S){this._fn=S,this.onChange=()=>{S(this.value),this._registry.select(this)}}fireUncheck(S){this.writeValue(S)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(lr),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(S,J){1&S&&i.\u0275\u0275listener("change",function(){return J.onChange()})("blur",function(){return J.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[i.\u0275\u0275ProvidersFeature([Hn]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Gn={provide:D,useExisting:(0,i.forwardRef)(()=>Ci),multi:!0};let Ci=(()=>{class k extends C{writeValue(S){this.setProperty("value",parseFloat(S))}registerOnChange(S){this.onChange=J=>{S(""==J?null:parseFloat(J))}}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(S,J){1&S&&i.\u0275\u0275listener("change",function(Wt){return J.onChange(Wt.target.value)})("input",function(Wt){return J.onChange(Wt.target.value)})("blur",function(){return J.onTouched()})},features:[i.\u0275\u0275ProvidersFeature([Gn]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Bi=new i.InjectionToken("NgModelWithFormControlWarning"),Nr={provide:vt,useExisting:(0,i.forwardRef)(()=>ji)};let ji=(()=>{class k extends vt{constructor(S,J,Xe,Wt){super(),this._ngModelWarningConfig=Wt,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(S),this._setAsyncValidators(J),this.valueAccessor=de(0,Xe)}set isDisabled(S){}ngOnChanges(S){if(this._isControlChanged(S)){const J=S.form.previousValue;J&&bn(J,this,!1),wt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ht(S,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(S){this.viewModel=S,this.update.emit(S)}_isControlChanged(S){return S.hasOwnProperty("form")}}return k._ngModelWarningSentOnce=!1,k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(V,10),i.\u0275\u0275directiveInject(le,10),i.\u0275\u0275directiveInject(D,10),i.\u0275\u0275directiveInject(Bi,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([Nr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),k})();const Tr={provide:Et,useExisting:(0,i.forwardRef)(()=>Si)};let Si=(()=>{class k extends Et{constructor(S,J){super(),this.validators=S,this.asyncValidators=J,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new i.EventEmitter,this._setValidators(S),this._setAsyncValidators(J)}ngOnChanges(S){this._checkFormPresent(),S.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Qe(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(S){const J=this.form.get(S.path);return wt(J,S),J.updateValueAndValidity({emitEvent:!1}),this.directives.push(S),J}getControl(S){return this.form.get(S.path)}removeControl(S){bn(S.control||null,S,!1),Ve(this.directives,S)}addFormGroup(S){this._setUpFormContainer(S)}removeFormGroup(S){this._cleanUpFormContainer(S)}getFormGroup(S){return this.form.get(S.path)}addFormArray(S){this._setUpFormContainer(S)}removeFormArray(S){this._cleanUpFormContainer(S)}getFormArray(S){return this.form.get(S.path)}updateModel(S,J){this.form.get(S.path).setValue(J)}onSubmit(S){return this.submitted=!0,$e(this.form,this.directives),this.ngSubmit.emit(S),!1}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_updateDomValue(){this.directives.forEach(S=>{const J=S.control,Xe=this.form.get(S.path);J!==Xe&&(bn(J||null,S),Se(Xe)&&(wt(Xe,S),S.control=Xe))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(S){const J=this.form.get(S.path);O(J,S),J.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(S){if(this.form){const J=this.form.get(S.path);J&&function _e(k,A){return Qe(k,A)}(J,S)&&J.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ge(this.form,this),this._oldForm&&Qe(this._oldForm,this)}_checkFormPresent(){}}return k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(V,10),i.\u0275\u0275directiveInject(le,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formGroup",""]],hostBindings:function(S,J){1&S&&i.\u0275\u0275listener("submit",function(Wt){return J.onSubmit(Wt)})("reset",function(){return J.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[i.\u0275\u0275ProvidersFeature([Tr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),k})();const Vi={provide:Et,useExisting:(0,i.forwardRef)(()=>ui)};let ui=(()=>{class k extends $n{constructor(S,J,Xe){super(),this._parent=S,this._setValidators(J),this._setAsyncValidators(Xe)}_checkParentType(){Mr(this._parent)}}return k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(Et,13),i.\u0275\u0275directiveInject(V,10),i.\u0275\u0275directiveInject(le,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[i.\u0275\u0275ProvidersFeature([Vi]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const cr={provide:Et,useExisting:(0,i.forwardRef)(()=>Ei)};let Ei=(()=>{class k extends Et{constructor(S,J,Xe){super(),this._parent=S,this._setValidators(J),this._setAsyncValidators(Xe)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return zt(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){Mr(this._parent)}}return k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(Et,13),i.\u0275\u0275directiveInject(V,10),i.\u0275\u0275directiveInject(le,10))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[i.\u0275\u0275ProvidersFeature([cr]),i.\u0275\u0275InheritDefinitionFeature]}),k})();function Mr(k){return!(k instanceof ui||k instanceof Si||k instanceof Ei)}const wr={provide:vt,useExisting:(0,i.forwardRef)(()=>$i)};let $i=(()=>{class k extends vt{constructor(S,J,Xe,Wt,Fn){super(),this._ngModelWarningConfig=Fn,this._added=!1,this.update=new i.EventEmitter,this._ngModelWarningSent=!1,this._parent=S,this._setValidators(J),this._setAsyncValidators(Xe),this.valueAccessor=de(0,Wt)}set isDisabled(S){}ngOnChanges(S){this._added||this._setUpControl(),Ht(S,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}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(S){return new(S||k)(i.\u0275\u0275directiveInject(Et,13),i.\u0275\u0275directiveInject(V,10),i.\u0275\u0275directiveInject(le,10),i.\u0275\u0275directiveInject(D,10),i.\u0275\u0275directiveInject(Bi,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([wr]),i.\u0275\u0275InheritDefinitionFeature,i.\u0275\u0275NgOnChangesFeature]}),k})();const Ii={provide:D,useExisting:(0,i.forwardRef)(()=>Pi),multi:!0};function Hi(k,A){return null==k?`${A}`:(A&&"object"==typeof A&&(A="Object"),`${k}: ${A}`.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(S){this._compareWith=S}writeValue(S){this.value=S;const J=this._getOptionId(S);null==J&&this.setProperty("selectedIndex",-1);const Xe=Hi(J,S);this.setProperty("value",Xe)}registerOnChange(S){this.onChange=J=>{this.value=this._getOptionValue(J),S(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(S){for(const J of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(J),S))return J;return null}_getOptionValue(S){const J=function Sr(k){return k.split(":")[0]}(S);return this._optionMap.has(J)?this._optionMap.get(J):S}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(S,J){1&S&&i.\u0275\u0275listener("change",function(Wt){return J.onChange(Wt.target.value)})("blur",function(){return J.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([Ii]),i.\u0275\u0275InheritDefinitionFeature]}),k})(),ur=(()=>{class k{constructor(S,J,Xe){this._element=S,this._renderer=J,this._select=Xe,this._select&&(this.id=this._select._registerOption())}set ngValue(S){null!=this._select&&(this._select._optionMap.set(this.id,S),this._setElementValue(Hi(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._setElementValue(S),this._select&&this._select.writeValue(this._select.value)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return k.\u0275fac=function(S){return new(S||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 pi={provide:D,useExisting:(0,i.forwardRef)(()=>gi),multi:!0};function Ai(k,A){return null==k?`${A}`:("string"==typeof A&&(A=`'${A}'`),A&&"object"==typeof A&&(A="Object"),`${k}: ${A}`.slice(0,50))}let gi=(()=>{class k extends C{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(S){this._compareWith=S}writeValue(S){let J;if(this.value=S,Array.isArray(S)){const Xe=S.map(Wt=>this._getOptionId(Wt));J=(Wt,Fn)=>{Wt._setSelected(Xe.indexOf(Fn.toString())>-1)}}else J=(Xe,Wt)=>{Xe._setSelected(!1)};this._optionMap.forEach(J)}registerOnChange(S){this.onChange=J=>{const Xe=[],Wt=J.selectedOptions;if(void 0!==Wt){const Fn=Wt;for(let Xn=0;Xn<Fn.length;Xn++){const hr=this._getOptionValue(Fn[Xn].value);Xe.push(hr)}}else{const Fn=J.options;for(let Xn=0;Xn<Fn.length;Xn++){const xi=Fn[Xn];if(xi.selected){const hr=this._getOptionValue(xi.value);Xe.push(hr)}}}this.value=Xe,S(Xe)}}_registerOption(S){const J=(this._idCounter++).toString();return this._optionMap.set(J,S),J}_getOptionId(S){for(const J of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(J)._value,S))return J;return null}_getOptionValue(S){const J=function mi(k){return k.split(":")[0]}(S);return this._optionMap.has(J)?this._optionMap.get(J)._value:S}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(S,J){1&S&&i.\u0275\u0275listener("change",function(Wt){return J.onChange(Wt.target)})("blur",function(){return J.onTouched()})},inputs:{compareWith:"compareWith"},features:[i.\u0275\u0275ProvidersFeature([pi]),i.\u0275\u0275InheritDefinitionFeature]}),k})(),qi=(()=>{class k{constructor(S,J,Xe){this._element=S,this._renderer=J,this._select=Xe,this._select&&(this.id=this._select._registerOption(this))}set ngValue(S){null!=this._select&&(this._value=S,this._setElementValue(Ai(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._select?(this._value=S,this._setElementValue(Ai(this.id,S)),this._select.writeValue(this._select.value)):this._setElementValue(S)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}_setSelected(S){this._renderer.setProperty(this._element.nativeElement,"selected",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return k.\u0275fac=function(S){return new(S||k)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.Renderer2),i.\u0275\u0275directiveInject(gi,9))},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),k})();function er(k){return"number"==typeof k?k:parseInt(k,10)}function tr(k){return"number"==typeof k?k:parseFloat(k)}let oi=(()=>{class k{constructor(){this._validator=X}ngOnChanges(S){if(this.inputName in S){const J=this.normalizeInput(S[this.inputName].currentValue);this._enabled=this.enabled(J),this._validator=this._enabled?this.createValidator(J):X,this._onChange&&this._onChange()}}validate(S){return this._validator(S)}registerOnValidatorChange(S){this._onChange=S}enabled(S){return null!=S}}return k.\u0275fac=function(S){return new(S||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,features:[i.\u0275\u0275NgOnChangesFeature]}),k})();const dr={provide:V,useExisting:(0,i.forwardRef)(()=>Qn),multi:!0};let Qn=(()=>{class k extends oi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=S=>tr(S),this.createValidator=S=>se(S)}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||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(S,J){2&S&&i.\u0275\u0275attribute("max",J._enabled?J.max:null)},inputs:{max:"max"},features:[i.\u0275\u0275ProvidersFeature([dr]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const zi={provide:V,useExisting:(0,i.forwardRef)(()=>Ki),multi:!0};let Ki=(()=>{class k extends oi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=S=>tr(S),this.createValidator=S=>ye(S)}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||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(S,J){2&S&&i.\u0275\u0275attribute("min",J._enabled?J.min:null)},inputs:{min:"min"},features:[i.\u0275\u0275ProvidersFeature([zi]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Oi={provide:V,useExisting:(0,i.forwardRef)(()=>Gi),multi:!0},Ir={provide:V,useExisting:(0,i.forwardRef)(()=>Mi),multi:!0};let Gi=(()=>{class k extends oi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=S=>function Wi(k){return null!=k&&!1!==k&&"false"!=`${k}`}(S),this.createValidator=S=>De}enabled(S){return S}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||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(S,J){2&S&&i.\u0275\u0275attribute("required",J._enabled?"":null)},inputs:{required:"required"},features:[i.\u0275\u0275ProvidersFeature([Oi]),i.\u0275\u0275InheritDefinitionFeature]}),k})(),Mi=(()=>{class k extends Gi{constructor(){super(...arguments),this.createValidator=S=>ke}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||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(S,J){2&S&&i.\u0275\u0275attribute("required",J._enabled?"":null)},features:[i.\u0275\u0275ProvidersFeature([Ir]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Pr={provide:V,useExisting:(0,i.forwardRef)(()=>wi),multi:!0};let wi=(()=>{class k extends oi{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=S=>""===S||!0===S||"true"===S,this.createValidator=S=>et}enabled(S){return S}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[i.\u0275\u0275ProvidersFeature([Pr]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const Lr={provide:V,useExisting:(0,i.forwardRef)(()=>On),multi:!0};let On=(()=>{class k extends oi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=S=>er(S),this.createValidator=S=>lt(S)}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(S,J){2&S&&i.\u0275\u0275attribute("minlength",J._enabled?J.minlength:null)},inputs:{minlength:"minlength"},features:[i.\u0275\u0275ProvidersFeature([Lr]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const F={provide:V,useExisting:(0,i.forwardRef)(()=>Z),multi:!0};let Z=(()=>{class k extends oi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=S=>er(S),this.createValidator=S=>q(S)}}return k.\u0275fac=function(){let A;return function(J){return(A||(A=i.\u0275\u0275getInheritedFactory(k)))(J||k)}}(),k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(S,J){2&S&&i.\u0275\u0275attribute("maxlength",J._enabled?J.maxlength:null)},inputs:{maxlength:"maxlength"},features:[i.\u0275\u0275ProvidersFeature([F]),i.\u0275\u0275InheritDefinitionFeature]}),k})();const x={provide:V,useExisting:(0,i.forwardRef)(()=>ie),multi:!0};let ie=(()=>{class k{constructor(){this._validator=X}ngOnChanges(S){"pattern"in S&&(this._createValidator(),this._onChange&&this._onChange())}validate(S){return this._validator(S)}registerOnValidatorChange(S){this._onChange=S}_createValidator(){this._validator=Pe(this.pattern)}}return k.\u0275fac=function(S){return new(S||k)},k.\u0275dir=i.\u0275\u0275defineDirective({type:k,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(S,J){2&S&&i.\u0275\u0275attribute("pattern",J.pattern?J.pattern:null)},inputs:{pattern:"pattern"},features:[i.\u0275\u0275ProvidersFeature([x]),i.\u0275\u0275NgOnChangesFeature]}),k})(),Ut=(()=>{class k{}return k.\u0275fac=function(S){return new(S||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Xi]]}),k})(),wn=(()=>{class k{}return k.\u0275fac=function(S){return new(S||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[Ut]}),k})(),yn=(()=>{class k{static withConfig(S){return{ngModule:k,providers:[{provide:Bi,useValue:S.warnOnNgModelWithFormControl}]}}}return k.\u0275fac=function(S){return new(S||k)},k.\u0275mod=i.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=i.\u0275\u0275defineInjector({imports:[Ut]}),k})(),_n=(()=>{class k{group(S,J=null){const Xe=this._reduceControls(S);let Xn,Wt=null,Fn=null;return null!=J&&(function hn(k){return void 0!==k.asyncValidators||void 0!==k.validators||void 0!==k.updateOn}(J)?(Wt=null!=J.validators?J.validators:null,Fn=null!=J.asyncValidators?J.asyncValidators:null,Xn=null!=J.updateOn?J.updateOn:void 0):(Wt=null!=J.validator?J.validator:null,Fn=null!=J.asyncValidator?J.asyncValidator:null)),new Cn(Xe,{asyncValidators:Fn,updateOn:Xn,validators:Wt})}control(S,J,Xe){return new qt(S,J,Xe)}array(S,J,Xe){const Wt=S.map(Fn=>this._createControl(Fn));return new Bt(Wt,J,Xe)}_reduceControls(S){const J={};return Object.keys(S).forEach(Xe=>{J[Xe]=this._createControl(S[Xe])}),J}_createControl(S){return Se(S)||z(S)||Ae(S)?S:Array.isArray(S)?this.control(S[0],S.length>1?S[1]:null,S.length>2?S[2]:null):this.control(S)}}return k.\u0275fac=function(S){return new(S||k)},k.\u0275prov=i.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:yn}),k})();const Bn=new i.Version("13.2.0")},7423:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{MatAnchor:()=>T,MatButton:()=>I,MatButtonModule:()=>b});var i=l(5e3),d=l(508),m=l(6360),u=l(5664);const s=["mat-button",""],y=["*"],w=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],f=(0,d.mixinColor)((0,d.mixinDisabled)((0,d.mixinDisableRipple)(class{constructor(R){this._elementRef=R}})));let I=(()=>{class R extends f{constructor(he,V,le){super(he),this._focusMonitor=V,this._animationMode=le,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const Me of w)this._hasHostAttributes(Me)&&this._getHostElement().classList.add(Me);he.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(he,V){he?this._focusMonitor.focusVia(this._getHostElement(),he,V):this._getHostElement().focus(V)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...he){return he.some(V=>this._getHostElement().hasAttribute(V))}}return R.\u0275fac=function(he){return new(he||R)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(u.tE),i.\u0275\u0275directiveInject(m.ANIMATION_MODULE_TYPE,8))},R.\u0275cmp=i.\u0275\u0275defineComponent({type:R,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(he,V){if(1&he&&i.\u0275\u0275viewQuery(d.MatRipple,5),2&he){let le;i.\u0275\u0275queryRefresh(le=i.\u0275\u0275loadQuery())&&(V.ripple=le.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(he,V){2&he&&(i.\u0275\u0275attribute("disabled",V.disabled||null),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===V._animationMode)("mat-button-disabled",V.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:y,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(he,V){1&he&&(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&he&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",V.isRoundButton||V.isIconButton),i.\u0275\u0275property("matRippleDisabled",V._isRippleDisabled())("matRippleCentered",V.isIconButton)("matRippleTrigger",V._getHostElement()))},directives:[d.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}),R})(),T=(()=>{class R extends I{constructor(he,V,le,Me){super(V,he,le),this._ngZone=Me,this._haltDisabledEvents=fe=>{this.disabled&&(fe.preventDefault(),fe.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 R.\u0275fac=function(he){return new(he||R)(i.\u0275\u0275directiveInject(u.tE),i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(m.ANIMATION_MODULE_TYPE,8),i.\u0275\u0275directiveInject(i.NgZone,8))},R.\u0275cmp=i.\u0275\u0275defineComponent({type:R,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(he,V){2&he&&(i.\u0275\u0275attribute("tabindex",V.disabled?-1:V.tabIndex||0)("disabled",V.disabled||null)("aria-disabled",V.disabled.toString()),i.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===V._animationMode)("mat-button-disabled",V.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[i.\u0275\u0275InheritDefinitionFeature],attrs:s,ngContentSelectors:y,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(he,V){1&he&&(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&he&&(i.\u0275\u0275advance(2),i.\u0275\u0275classProp("mat-button-ripple-round",V.isRoundButton||V.isIconButton),i.\u0275\u0275property("matRippleDisabled",V._isRippleDisabled())("matRippleCentered",V.isIconButton)("matRippleTrigger",V._getHostElement()))},directives:[d.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}),R})(),b=(()=>{class R{}return R.\u0275fac=function(he){return new(he||R)},R.\u0275mod=i.\u0275\u0275defineNgModule({type:R}),R.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.MatRippleModule,d.MatCommonModule],d.MatCommonModule]}),R})()},9417:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_CHIPS_DEFAULT_OPTIONS:()=>rn,MAT_CHIP_AVATAR:()=>rt,MAT_CHIP_REMOVE:()=>Ye,MAT_CHIP_TRAILING_ICON:()=>pt,MatChip:()=>Vt,MatChipAvatar:()=>jt,MatChipInput:()=>wt,MatChipList:()=>Ge,MatChipListChange:()=>on,MatChipRemove:()=>Tn,MatChipSelectionChange:()=>Ce,MatChipTrailingIcon:()=>tn,MatChipsModule:()=>W});var i=l(1159),d=l(5e3),m=l(508),u=l(3191),s=l(9808),y=l(6360),C=l(6758),D=l(6451),w=l(5698),f=l(2722),I=l(8675),T=l(925),b=l(5664),R=l(449),j=l(3075);l(1777);let Ue=(()=>{class P{}return P.\u0275fac=function(g){return new(g||P)},P.\u0275dir=d.\u0275\u0275defineDirective({type:P}),P})();var be=l(226);const re=["*"];class Ce{constructor(L,g,O=!1){this.source=L,this.selected=g,this.isUserInput=O}}const Ye=new d.InjectionToken("MatChipRemove"),rt=new d.InjectionToken("MatChipAvatar"),pt=new d.InjectionToken("MatChipTrailingIcon");class gt{constructor(L){this._elementRef=L}}const Mt=(0,m.mixinTabIndex)((0,m.mixinColor)((0,m.mixinDisableRipple)(gt),"primary"),-1);let jt=(()=>{class P{}return P.\u0275fac=function(g){return new(g||P)},P.\u0275dir=d.\u0275\u0275defineDirective({type:P,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[d.\u0275\u0275ProvidersFeature([{provide:rt,useExisting:P}])]}),P})(),tn=(()=>{class P{}return P.\u0275fac=function(g){return new(g||P)},P.\u0275dir=d.\u0275\u0275defineDirective({type:P,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[d.\u0275\u0275ProvidersFeature([{provide:pt,useExisting:P}])]}),P})(),Vt=(()=>{class P extends Mt{constructor(g,O,_e,ot,kt,Ht,Fe,$e){super(g),this._ngZone=O,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 d.EventEmitter,this.destroyed=new d.EventEmitter,this.removed=new d.EventEmitter,this._addHostClassName(),this._chipRippleTarget=Ht.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new m.RippleRenderer(this,O,this._chipRippleTarget,_e),this._chipRipple.setupTriggerEvents(g),this.rippleConfig=ot||{},this._animationsDisabled="NoopAnimations"===Fe,this.tabIndex=null!=$e&&parseInt($e)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(g){const O=(0,u.Ig)(g);O!==this._selected&&(this._selected=O,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(g){this._value=g}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(g){this._selectable=(0,u.Ig)(g)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(g){this._disabled=(0,u.Ig)(g)}get removable(){return this._removable}set removable(g){this._removable=(0,u.Ig)(g)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const g="mat-basic-chip",O=this._elementRef.nativeElement;O.hasAttribute(g)||O.tagName.toLowerCase()===g?O.classList.add(g):O.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(g=!1){return this._selected=!this.selected,this._dispatchSelectionChange(g),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(g){this.disabled&&g.preventDefault()}_handleKeydown(g){if(!this.disabled)switch(g.keyCode){case i.yY:case i.ZH:this.remove(),g.preventDefault();break;case i.L_:this.selectable&&this.toggleSelected(!0),g.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,w.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(g=!1){this.selectionChange.emit({source:this,isUserInput:g,selected:this._selected})}}return P.\u0275fac=function(g){return new(g||P)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.NgZone),d.\u0275\u0275directiveInject(T.t4),d.\u0275\u0275directiveInject(m.MAT_RIPPLE_GLOBAL_OPTIONS,8),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(s.DOCUMENT),d.\u0275\u0275directiveInject(y.ANIMATION_MODULE_TYPE,8),d.\u0275\u0275injectAttribute("tabindex"))},P.\u0275dir=d.\u0275\u0275defineDirective({type:P,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(g,O,_e){if(1&g&&(d.\u0275\u0275contentQuery(_e,rt,5),d.\u0275\u0275contentQuery(_e,pt,5),d.\u0275\u0275contentQuery(_e,Ye,5)),2&g){let ot;d.\u0275\u0275queryRefresh(ot=d.\u0275\u0275loadQuery())&&(O.avatar=ot.first),d.\u0275\u0275queryRefresh(ot=d.\u0275\u0275loadQuery())&&(O.trailingIcon=ot.first),d.\u0275\u0275queryRefresh(ot=d.\u0275\u0275loadQuery())&&(O.removeIcon=ot.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(g,O){1&g&&d.\u0275\u0275listener("click",function(ot){return O._handleClick(ot)})("keydown",function(ot){return O._handleKeydown(ot)})("focus",function(){return O.focus()})("blur",function(){return O._blur()}),2&g&&(d.\u0275\u0275attribute("tabindex",O.disabled?null:O.tabIndex)("disabled",O.disabled||null)("aria-disabled",O.disabled.toString())("aria-selected",O.ariaSelected),d.\u0275\u0275classProp("mat-chip-selected",O.selected)("mat-chip-with-avatar",O.avatar)("mat-chip-with-trailing-icon",O.trailingIcon||O.removeIcon)("mat-chip-disabled",O.disabled)("_mat-animation-noopable",O._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:[d.\u0275\u0275InheritDefinitionFeature]}),P})(),Tn=(()=>{class P{constructor(g,O){this._parentChip=g,"BUTTON"===O.nativeElement.nodeName&&O.nativeElement.setAttribute("type","button")}_handleClick(g){const O=this._parentChip;O.removable&&!O.disabled&&O.remove(),g.stopPropagation()}}return P.\u0275fac=function(g){return new(g||P)(d.\u0275\u0275directiveInject(Vt),d.\u0275\u0275directiveInject(d.ElementRef))},P.\u0275dir=d.\u0275\u0275defineDirective({type:P,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(g,O){1&g&&d.\u0275\u0275listener("click",function(ot){return O._handleClick(ot)})},features:[d.\u0275\u0275ProvidersFeature([{provide:Ye,useExisting:P}])]}),P})();const rn=new d.InjectionToken("mat-chips-default-options");let zt=0,wt=(()=>{class P{constructor(g,O){this._elementRef=g,this._defaultOptions=O,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new d.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+zt++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(g){g&&(this._chipList=g,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(g){this._addOnBlur=(0,u.Ig)(g)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(g){this._disabled=(0,u.Ig)(g)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(g){if(g){if(g.keyCode===i.Mf&&!(0,i.Vb)(g,"shiftKey")&&this._chipList._allowFocusEscape(),g.keyCode===i.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void g.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(g)}_keyup(g){!this._focusLastChipOnBackspace&&g.keyCode===i.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,g.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(g){!this.inputElement.value&&!!g&&this._chipList._keydown(g),(!g||this._isSeparatorKey(g))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==g||g.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(g){this.inputElement.focus(g)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(g){return!(0,i.Vb)(g)&&new Set(this.separatorKeyCodes).has(g.keyCode)}}return P.\u0275fac=function(g){return new(g||P)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(rn))},P.\u0275dir=d.\u0275\u0275defineDirective({type:P,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(g,O){1&g&&d.\u0275\u0275listener("keydown",function(ot){return O._keydown(ot)})("keyup",function(ot){return O._keyup(ot)})("blur",function(){return O._blur()})("focus",function(){return O._focus()})("input",function(){return O._onInput()}),2&g&&(d.\u0275\u0275hostProperty("id",O.id),d.\u0275\u0275attribute("disabled",O.disabled||null)("placeholder",O.placeholder||null)("aria-invalid",O._chipList&&O._chipList.ngControl?O._chipList.ngControl.invalid:null)("aria-required",O._chipList&&O._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:[d.\u0275\u0275NgOnChangesFeature]}),P})();const bn=(0,m.mixinErrorState)(class{constructor(P,L,g,O){this._defaultErrorStateMatcher=P,this._parentForm=L,this._parentFormGroup=g,this.ngControl=O}});let Jt=0;class on{constructor(L,g){this.source=L,this.value=g}}let Ge=(()=>{class P extends bn{constructor(g,O,_e,ot,kt,Ht,Fe){super(Ht,ot,kt,Fe),this._elementRef=g,this._changeDetectorRef=O,this._dir=_e,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new C.x,this._uid="mat-chip-list-"+Jt++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=($e,de)=>$e===de,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new d.EventEmitter,this.valueChange=new d.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var g,O;return this.multiple?(null===(g=this._selectionModel)||void 0===g?void 0:g.selected)||[]:null===(O=this._selectionModel)||void 0===O?void 0:O.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(g){this._multiple=(0,u.Ig)(g),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(g){this._compareWith=g,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(g){this.writeValue(g),this._value=g}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var g,O,_e,ot;return null!==(ot=null!==(g=this._required)&&void 0!==g?g:null===(_e=null===(O=this.ngControl)||void 0===O?void 0:O.control)||void 0===_e?void 0:_e.hasValidator(j.Validators.required))&&void 0!==ot&&ot}set required(g){this._required=(0,u.Ig)(g),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(g){this._placeholder=g,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(g){this._disabled=(0,u.Ig)(g),this._syncChipsState()}get selectable(){return this._selectable}set selectable(g){this._selectable=(0,u.Ig)(g),this.chips&&this.chips.forEach(O=>O.chipListSelectable=this._selectable)}set tabIndex(g){this._userTabIndex=g,this._tabIndex=g}get chipSelectionChanges(){return(0,D.T)(...this.chips.map(g=>g.selectionChange))}get chipFocusChanges(){return(0,D.T)(...this.chips.map(g=>g._onFocus))}get chipBlurChanges(){return(0,D.T)(...this.chips.map(g=>g._onBlur))}get chipRemoveChanges(){return(0,D.T)(...this.chips.map(g=>g.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,f.R)(this._destroyed)).subscribe(g=>this._keyManager.withHorizontalOrientation(g)),this._keyManager.tabOut.pipe((0,f.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,I.O)(null),(0,f.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 R.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(g){this._chipInput=g,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",g.id)}setDescribedByIds(g){this._ariaDescribedby=g.join(" ")}writeValue(g){this.chips&&this._setSelectionByValue(g,!1)}registerOnChange(g){this._onChange=g}registerOnTouched(g){this._onTouched=g}setDisabledState(g){this.disabled=g,this.stateChanges.next()}onContainerClick(g){this._originatesFromChip(g)||this.focus()}focus(g){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(g),this.stateChanges.next()))}_focusInput(g){this._chipInput&&this._chipInput.focus(g)}_keydown(g){const O=g.target;O&&O.classList.contains("mat-chip")&&(this._keyManager.onKeydown(g),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const g=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(g)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(g){return g>=0&&g<this.chips.length}_setSelectionByValue(g,O=!0){if(this._clearSelection(),this.chips.forEach(_e=>_e.deselect()),Array.isArray(g))g.forEach(_e=>this._selectValue(_e,O)),this._sortValues();else{const _e=this._selectValue(g,O);_e&&O&&this._keyManager.setActiveItem(_e)}}_selectValue(g,O=!0){const _e=this.chips.find(ot=>null!=ot.value&&this._compareWith(ot.value,g));return _e&&(O?_e.selectViaInteraction():_e.select(),this._selectionModel.select(_e)),_e}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(g){this._selectionModel.clear(),this.chips.forEach(O=>{O!==g&&O.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(g=>{g.selected&&this._selectionModel.select(g)}),this.stateChanges.next())}_propagateChanges(g){let O=null;O=Array.isArray(this.selected)?this.selected.map(_e=>_e.value):this.selected?this.selected.value:g,this._value=O,this.change.emit(new on(this,O)),this.valueChange.emit(O),this._onChange(O),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(g=>{g.source.selected?this._selectionModel.select(g.source):this._selectionModel.deselect(g.source),this.multiple||this.chips.forEach(O=>{!this._selectionModel.isSelected(O)&&O.selected&&O.deselect()}),g.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(g=>{let O=this.chips.toArray().indexOf(g.chip);this._isValidIndex(O)&&this._keyManager.updateActiveItem(O),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(g=>{const O=g.chip,_e=this.chips.toArray().indexOf(g.chip);this._isValidIndex(_e)&&O._hasFocus&&(this._lastDestroyedChipIndex=_e)})}_originatesFromChip(g){let O=g.target;for(;O&&O!==this._elementRef.nativeElement;){if(O.classList.contains("mat-chip"))return!0;O=O.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(g=>g._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(g=>{g._chipListDisabled=this._disabled,g._chipListMultiple=this.multiple})}}return P.\u0275fac=function(g){return new(g||P)(d.\u0275\u0275directiveInject(d.ElementRef),d.\u0275\u0275directiveInject(d.ChangeDetectorRef),d.\u0275\u0275directiveInject(be.Is,8),d.\u0275\u0275directiveInject(j.NgForm,8),d.\u0275\u0275directiveInject(j.FormGroupDirective,8),d.\u0275\u0275directiveInject(m.ErrorStateMatcher),d.\u0275\u0275directiveInject(j.NgControl,10))},P.\u0275cmp=d.\u0275\u0275defineComponent({type:P,selectors:[["mat-chip-list"]],contentQueries:function(g,O,_e){if(1&g&&d.\u0275\u0275contentQuery(_e,Vt,5),2&g){let ot;d.\u0275\u0275queryRefresh(ot=d.\u0275\u0275loadQuery())&&(O.chips=ot)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(g,O){1&g&&d.\u0275\u0275listener("focus",function(){return O.focus()})("blur",function(){return O._blur()})("keydown",function(ot){return O._keydown(ot)}),2&g&&(d.\u0275\u0275hostProperty("id",O._uid),d.\u0275\u0275attribute("tabindex",O.disabled?null:O._tabIndex)("aria-describedby",O._ariaDescribedby||null)("aria-required",O.role?O.required:null)("aria-disabled",O.disabled.toString())("aria-invalid",O.errorState)("aria-multiselectable",O.multiple)("role",O.role)("aria-orientation",O.ariaOrientation),d.\u0275\u0275classProp("mat-chip-list-disabled",O.disabled)("mat-chip-list-invalid",O.errorState)("mat-chip-list-required",O.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:[d.\u0275\u0275ProvidersFeature([{provide:Ue,useExisting:P}]),d.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:re,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(g,O){1&g&&(d.\u0275\u0275projectionDef(),d.\u0275\u0275elementStart(0,"div",0),d.\u0275\u0275projection(1),d.\u0275\u0275elementEnd())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),P})(),W=(()=>{class P{}return P.\u0275fac=function(g){return new(g||P)},P.\u0275mod=d.\u0275\u0275defineNgModule({type:P}),P.\u0275inj=d.\u0275\u0275defineInjector({providers:[m.ErrorStateMatcher,{provide:rn,useValue:{separatorKeyCodes:[i.K5]}}],imports:[[m.MatCommonModule]]}),P})()},508:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{AnimationCurves:()=>Me,AnimationDurations:()=>fe,DateAdapter:()=>st,ErrorStateMatcher:()=>we,MATERIAL_SANITY_CHECKS:()=>se,MAT_DATE_FORMATS:()=>ve,MAT_DATE_LOCALE:()=>Ke,MAT_DATE_LOCALE_FACTORY:()=>me,MAT_NATIVE_DATE_FORMATS:()=>Ne,MAT_OPTGROUP:()=>tn,MAT_OPTION_PARENT_COMPONENT:()=>pt,MAT_RIPPLE_GLOBAL_OPTIONS:()=>be,MatCommonModule:()=>De,MatLine:()=>xe,MatLineModule:()=>vt,MatNativeDateModule:()=>Y,MatOptgroup:()=>Vt,MatOption:()=>wt,MatOptionModule:()=>on,MatOptionSelectionChange:()=>rn,MatPseudoCheckbox:()=>Ye,MatPseudoCheckboxModule:()=>rt,MatRipple:()=>re,MatRippleModule:()=>Ce,NativeDateAdapter:()=>Tt,NativeDateModule:()=>qe,RippleRef:()=>Et,RippleRenderer:()=>Oe,ShowOnDirtyErrorStateMatcher:()=>pe,VERSION:()=>le,_MatOptgroupBase:()=>jt,_MatOptionBase:()=>zt,_countGroupLabelsBeforeOption:()=>bn,_getOptionScrollPosition:()=>Jt,defaultRippleAnimationConfig:()=>At,mixinColor:()=>Pe,mixinDisableRipple:()=>X,mixinDisabled:()=>q,mixinErrorState:()=>Ie,mixinInitialized:()=>ne,mixinTabIndex:()=>ae,setLines:()=>ge});var i=l(5e3),d=l(226),u=l(9808),s=l(925),y=l(5664),C=l(3191),D=l(6758),w=l(9751),f=l(8675),I=l(6360),T=l(1159);const b=["*",[["mat-option"],["ng-container"]]],R=["*","mat-option, ng-container"];function j(Ge,Qe){if(1&Ge&&i.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&Ge){const W=i.\u0275\u0275nextContext();i.\u0275\u0275property("state",W.selected?"checked":"unchecked")("disabled",W.disabled)}}function he(Ge,Qe){if(1&Ge&&(i.\u0275\u0275elementStart(0,"span",5),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Ge){const W=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("(",W.group.label,")")}}const V=["*"],le=new i.Version("13.2.0");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})(),fe=(()=>{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(W,P,L){this._sanityChecks=P,this._document=L,this._hasDoneGlobalChecks=!1,W._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(W){return!(0,s.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[W])}}return Ge.\u0275fac=function(W){return new(W||Ge)(i.\u0275\u0275inject(y.qm),i.\u0275\u0275inject(se,8),i.\u0275\u0275inject(u.DOCUMENT))},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.vT],d.vT]}),Ge})();function q(Ge){return class extends Ge{constructor(...Qe){super(...Qe),this._disabled=!1}get disabled(){return this._disabled}set disabled(Qe){this._disabled=(0,C.Ig)(Qe)}}}function Pe(Ge,Qe){return class extends Ge{constructor(...W){super(...W),this.defaultColor=Qe,this.color=Qe}get color(){return this._color}set color(W){const P=W||this.defaultColor;P!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),P&&this._elementRef.nativeElement.classList.add(`mat-${P}`),this._color=P)}}}function X(Ge){return class extends Ge{constructor(...Qe){super(...Qe),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Qe){this._disableRipple=(0,C.Ig)(Qe)}}}function ae(Ge,Qe=0){return class extends Ge{constructor(...W){super(...W),this._tabIndex=Qe,this.defaultTabIndex=Qe}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(W){this._tabIndex=null!=W?(0,C.su)(W):this.defaultTabIndex}}}function Ie(Ge){return class extends Ge{constructor(...Qe){super(...Qe),this.stateChanges=new D.x,this.errorState=!1}updateErrorState(){const Qe=this.errorState,g=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);g!==Qe&&(this.errorState=g,this.stateChanges.next())}}}function ne(Ge){return class extends Ge{constructor(...Qe){super(...Qe),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new w.y(W=>{this._isInitialized?this._notifySubscriber(W):this._pendingSubscribers.push(W)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Qe){Qe.next(),Qe.complete()}}}const Ke=new i.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:me});function me(){return(0,i.inject)(i.LOCALE_ID)}class st{constructor(){this._localeChanges=new D.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Qe){return this.isDateInstance(Qe)&&this.isValid(Qe)?Qe:null}deserialize(Qe){return null==Qe||this.isDateInstance(Qe)&&this.isValid(Qe)?Qe:this.invalid()}setLocale(Qe){this.locale=Qe,this._localeChanges.next()}compareDate(Qe,W){return this.getYear(Qe)-this.getYear(W)||this.getMonth(Qe)-this.getMonth(W)||this.getDate(Qe)-this.getDate(W)}sameDate(Qe,W){if(Qe&&W){let P=this.isValid(Qe),L=this.isValid(W);return P&&L?!this.compareDate(Qe,W):P==L}return Qe==W}clampDate(Qe,W,P){return W&&this.compareDate(Qe,W)<0?W:P&&this.compareDate(Qe,P)>0?P:Qe}}const ve=new i.InjectionToken("mat-date-formats"),Ue=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function ut(Ge,Qe){const W=Array(Ge);for(let P=0;P<Ge;P++)W[P]=Qe(P);return W}let Tt=(()=>{class Ge extends st{constructor(W,P){super(),this.useUtcForDisplay=!1,super.setLocale(W)}getYear(W){return W.getFullYear()}getMonth(W){return W.getMonth()}getDate(W){return W.getDate()}getDayOfWeek(W){return W.getDay()}getMonthNames(W){const P=new Intl.DateTimeFormat(this.locale,{month:W,timeZone:"utc"});return ut(12,L=>this._format(P,new Date(2017,L,1)))}getDateNames(){const W=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return ut(31,P=>this._format(W,new Date(2017,0,P+1)))}getDayOfWeekNames(W){const P=new Intl.DateTimeFormat(this.locale,{weekday:W,timeZone:"utc"});return ut(7,L=>this._format(P,new Date(2017,0,L+1)))}getYearName(W){const P=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(P,W)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(W){return this.getDate(this._createDateWithOverflow(this.getYear(W),this.getMonth(W)+1,0))}clone(W){return new Date(W.getTime())}createDate(W,P,L){let g=this._createDateWithOverflow(W,P,L);return g.getMonth(),g}today(){return new Date}parse(W){return"number"==typeof W?new Date(W):W?new Date(Date.parse(W)):null}format(W,P){if(!this.isValid(W))throw Error("NativeDateAdapter: Cannot format invalid date.");const L=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},P),{timeZone:"utc"}));return this._format(L,W)}addCalendarYears(W,P){return this.addCalendarMonths(W,12*P)}addCalendarMonths(W,P){let L=this._createDateWithOverflow(this.getYear(W),this.getMonth(W)+P,this.getDate(W));return this.getMonth(L)!=((this.getMonth(W)+P)%12+12)%12&&(L=this._createDateWithOverflow(this.getYear(L),this.getMonth(L),0)),L}addCalendarDays(W,P){return this._createDateWithOverflow(this.getYear(W),this.getMonth(W),this.getDate(W)+P)}toIso8601(W){return[W.getUTCFullYear(),this._2digit(W.getUTCMonth()+1),this._2digit(W.getUTCDate())].join("-")}deserialize(W){if("string"==typeof W){if(!W)return null;if(Ue.test(W)){let P=new Date(W);if(this.isValid(P))return P}}return super.deserialize(W)}isDateInstance(W){return W instanceof Date}isValid(W){return!isNaN(W.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(W,P,L){const g=new Date;return g.setFullYear(W,P,L),g.setHours(0,0,0,0),g}_2digit(W){return("00"+W).slice(-2)}_format(W,P){const L=new Date;return L.setUTCFullYear(P.getFullYear(),P.getMonth(),P.getDate()),L.setUTCHours(P.getHours(),P.getMinutes(),P.getSeconds(),P.getMilliseconds()),W.format(L)}}return Ge.\u0275fac=function(W){return new(W||Ge)(i.\u0275\u0275inject(Ke,8),i.\u0275\u0275inject(s.t4))},Ge.\u0275prov=i.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})();const Ne={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 qe=(()=>{class Ge{}return Ge.\u0275fac=function(W){return new(W||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:st,useClass:Tt}],imports:[[s.ud]]}),Ge})(),Y=(()=>{class Ge{}return Ge.\u0275fac=function(W){return new(W||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({providers:[{provide:ve,useValue:Ne}],imports:[[qe]]}),Ge})(),pe=(()=>{class Ge{isErrorState(W,P){return!!(W&&W.invalid&&(W.dirty||P&&P.submitted))}}return Ge.\u0275fac=function(W){return new(W||Ge)},Ge.\u0275prov=i.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac}),Ge})(),we=(()=>{class Ge{isErrorState(W,P){return!!(W&&W.invalid&&(W.touched||P&&P.submitted))}}return Ge.\u0275fac=function(W){return new(W||Ge)},Ge.\u0275prov=i.\u0275\u0275defineInjectable({token:Ge,factory:Ge.\u0275fac,providedIn:"root"}),Ge})(),xe=(()=>{class Ge{}return Ge.\u0275fac=function(W){return new(W||Ge)},Ge.\u0275dir=i.\u0275\u0275defineDirective({type:Ge,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ge})();function ge(Ge,Qe,W="mat"){Ge.changes.pipe((0,f.O)(Ge)).subscribe(({length:P})=>{Je(Qe,`${W}-2-line`,!1),Je(Qe,`${W}-3-line`,!1),Je(Qe,`${W}-multi-line`,!1),2===P||3===P?Je(Qe,`${W}-${P}-line`,!0):P>3&&Je(Qe,`${W}-multi-line`,!0)})}function Je(Ge,Qe,W){Ge.nativeElement.classList.toggle(Qe,W)}let vt=(()=>{class Ge{}return Ge.\u0275fac=function(W){return new(W||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({imports:[[De],De]}),Ge})();class Et{constructor(Qe,W,P){this._renderer=Qe,this.element=W,this.config=P,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const At={enterDuration:225,exitDuration:150},Ze=(0,s.i$)({passive:!0}),N=["mousedown","touchstart"],oe=["mouseup","mouseleave","touchend","touchcancel"];class Oe{constructor(Qe,W,P,L){this._target=Qe,this._ngZone=W,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,L.isBrowser&&(this._containerElement=(0,C.fI)(P))}fadeInRipple(Qe,W,P={}){const L=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),g=Object.assign(Object.assign({},At),P.animation);P.centered&&(Qe=L.left+L.width/2,W=L.top+L.height/2);const O=P.radius||function Te(Ge,Qe,W){const P=Math.max(Math.abs(Ge-W.left),Math.abs(Ge-W.right)),L=Math.max(Math.abs(Qe-W.top),Math.abs(Qe-W.bottom));return Math.sqrt(P*P+L*L)}(Qe,W,L),_e=Qe-L.left,ot=W-L.top,kt=g.enterDuration,Ht=document.createElement("div");Ht.classList.add("mat-ripple-element"),Ht.style.left=_e-O+"px",Ht.style.top=ot-O+"px",Ht.style.height=2*O+"px",Ht.style.width=2*O+"px",null!=P.color&&(Ht.style.backgroundColor=P.color),Ht.style.transitionDuration=`${kt}ms`,this._containerElement.appendChild(Ht),function ue(Ge){window.getComputedStyle(Ge).getPropertyValue("opacity")}(Ht),Ht.style.transform="scale(1)";const Fe=new Et(this,Ht,P);return Fe.state=0,this._activeRipples.add(Fe),P.persistent||(this._mostRecentTransientRipple=Fe),this._runTimeoutOutsideZone(()=>{const $e=Fe===this._mostRecentTransientRipple;Fe.state=1,!P.persistent&&(!$e||!this._isPointerDown)&&Fe.fadeOut()},kt),Fe}fadeOutRipple(Qe){const W=this._activeRipples.delete(Qe);if(Qe===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!W)return;const P=Qe.element,L=Object.assign(Object.assign({},At),Qe.config.animation);P.style.transitionDuration=`${L.exitDuration}ms`,P.style.opacity="0",Qe.state=2,this._runTimeoutOutsideZone(()=>{Qe.state=3,P.remove()},L.exitDuration)}fadeOutAll(){this._activeRipples.forEach(Qe=>Qe.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(Qe=>{Qe.config.persistent||Qe.fadeOut()})}setupTriggerEvents(Qe){const W=(0,C.fI)(Qe);!W||W===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=W,this._registerEvents(N))}handleEvent(Qe){"mousedown"===Qe.type?this._onMousedown(Qe):"touchstart"===Qe.type?this._onTouchStart(Qe):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(oe),this._pointerUpEventsRegistered=!0)}_onMousedown(Qe){const W=(0,y.X6)(Qe),P=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!W&&!P&&(this._isPointerDown=!0,this.fadeInRipple(Qe.clientX,Qe.clientY,this._target.rippleConfig))}_onTouchStart(Qe){if(!this._target.rippleDisabled&&!(0,y.yG)(Qe)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const W=Qe.changedTouches;for(let P=0;P<W.length;P++)this.fadeInRipple(W[P].clientX,W[P].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(Qe=>{!Qe.config.persistent&&(1===Qe.state||Qe.config.terminateOnPointerUp&&0===Qe.state)&&Qe.fadeOut()}))}_runTimeoutOutsideZone(Qe,W=0){this._ngZone.runOutsideAngular(()=>setTimeout(Qe,W))}_registerEvents(Qe){this._ngZone.runOutsideAngular(()=>{Qe.forEach(W=>{this._triggerElement.addEventListener(W,this,Ze)})})}_removeTriggerEvents(){this._triggerElement&&(N.forEach(Qe=>{this._triggerElement.removeEventListener(Qe,this,Ze)}),this._pointerUpEventsRegistered&&oe.forEach(Qe=>{this._triggerElement.removeEventListener(Qe,this,Ze)}))}}const be=new i.InjectionToken("mat-ripple-global-options");let re=(()=>{class Ge{constructor(W,P,L,g,O){this._elementRef=W,this._animationMode=O,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=g||{},this._rippleRenderer=new Oe(this,P,W,L)}get disabled(){return this._disabled}set disabled(W){W&&this.fadeOutAllNonPersistent(),this._disabled=W,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(W){this._trigger=W,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(W,P=0,L){return"number"==typeof W?this._rippleRenderer.fadeInRipple(W,P,Object.assign(Object.assign({},this.rippleConfig),L)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),W))}}return Ge.\u0275fac=function(W){return new(W||Ge)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.NgZone),i.\u0275\u0275directiveInject(s.t4),i.\u0275\u0275directiveInject(be,8),i.\u0275\u0275directiveInject(I.ANIMATION_MODULE_TYPE,8))},Ge.\u0275dir=i.\u0275\u0275defineDirective({type:Ge,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(W,P){2&W&&i.\u0275\u0275classProp("mat-ripple-unbounded",P.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ge})(),Ce=(()=>{class Ge{}return Ge.\u0275fac=function(W){return new(W||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({imports:[[De,s.ud],De]}),Ge})(),Ye=(()=>{class Ge{constructor(W){this._animationMode=W,this.state="unchecked",this.disabled=!1}}return Ge.\u0275fac=function(W){return new(W||Ge)(i.\u0275\u0275directiveInject(I.ANIMATION_MODULE_TYPE,8))},Ge.\u0275cmp=i.\u0275\u0275defineComponent({type:Ge,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(W,P){2&W&&i.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===P.state)("mat-pseudo-checkbox-checked","checked"===P.state)("mat-pseudo-checkbox-disabled",P.disabled)("_mat-animation-noopable","NoopAnimations"===P._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(W,P){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),Ge})(),rt=(()=>{class Ge{}return Ge.\u0275fac=function(W){return new(W||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({imports:[[De]]}),Ge})();const pt=new i.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),gt=q(class{});let Mt=0,jt=(()=>{class Ge extends gt{constructor(W){var P;super(),this._labelId="mat-optgroup-label-"+Mt++,this._inert=null!==(P=null==W?void 0:W.inertGroups)&&void 0!==P&&P}}return Ge.\u0275fac=function(W){return new(W||Ge)(i.\u0275\u0275directiveInject(pt,8))},Ge.\u0275dir=i.\u0275\u0275defineDirective({type:Ge,inputs:{label:"label"},features:[i.\u0275\u0275InheritDefinitionFeature]}),Ge})();const tn=new i.InjectionToken("MatOptgroup");let Vt=(()=>{class Ge extends jt{}return Ge.\u0275fac=function(){let Qe;return function(P){return(Qe||(Qe=i.\u0275\u0275getInheritedFactory(Ge)))(P||Ge)}}(),Ge.\u0275cmp=i.\u0275\u0275defineComponent({type:Ge,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(W,P){2&W&&(i.\u0275\u0275attribute("role",P._inert?null:"group")("aria-disabled",P._inert?null:P.disabled.toString())("aria-labelledby",P._inert?null:P._labelId),i.\u0275\u0275classProp("mat-optgroup-disabled",P.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[i.\u0275\u0275ProvidersFeature([{provide:tn,useExisting:Ge}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:R,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(W,P){1&W&&(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&W&&(i.\u0275\u0275property("id",P._labelId),i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("",P.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),Ge})(),Tn=0;class rn{constructor(Qe,W=!1){this.source=Qe,this.isUserInput=W}}let zt=(()=>{class Ge{constructor(W,P,L,g){this._element=W,this._changeDetectorRef=P,this._parent=L,this.group=g,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Tn++,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(W){this._disabled=(0,C.Ig)(W)}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(W,P){const L=this._getHostElement();"function"==typeof L.focus&&L.focus(P)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(W){(W.keyCode===T.K5||W.keyCode===T.L_)&&!(0,T.Vb)(W)&&(this._selectViaInteraction(),W.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 W=this.viewValue;W!==this._mostRecentViewValue&&(this._mostRecentViewValue=W,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(W=!1){this.onSelectionChange.emit(new rn(this,W))}}return Ge.\u0275fac=function(W){i.\u0275\u0275invalidFactory()},Ge.\u0275dir=i.\u0275\u0275defineDirective({type:Ge,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ge})(),wt=(()=>{class Ge extends zt{constructor(W,P,L,g){super(W,P,L,g)}}return Ge.\u0275fac=function(W){return new(W||Ge)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(i.ChangeDetectorRef),i.\u0275\u0275directiveInject(pt,8),i.\u0275\u0275directiveInject(tn,8))},Ge.\u0275cmp=i.\u0275\u0275defineComponent({type:Ge,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(W,P){1&W&&i.\u0275\u0275listener("click",function(){return P._selectViaInteraction()})("keydown",function(g){return P._handleKeydown(g)}),2&W&&(i.\u0275\u0275hostProperty("id",P.id),i.\u0275\u0275attribute("tabindex",P._getTabIndex())("aria-selected",P._getAriaSelected())("aria-disabled",P.disabled.toString()),i.\u0275\u0275classProp("mat-selected",P.selected)("mat-option-multiple",P.multiple)("mat-active",P.active)("mat-option-disabled",P.disabled))},exportAs:["matOption"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:V,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(W,P){1&W&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275template(0,j,1,2,"mat-pseudo-checkbox",0),i.\u0275\u0275elementStart(1,"span",1),i.\u0275\u0275projection(2),i.\u0275\u0275elementEnd(),i.\u0275\u0275template(3,he,2,1,"span",2),i.\u0275\u0275element(4,"div",3)),2&W&&(i.\u0275\u0275property("ngIf",P.multiple),i.\u0275\u0275advance(3),i.\u0275\u0275property("ngIf",P.group&&P.group._inert),i.\u0275\u0275advance(1),i.\u0275\u0275property("matRippleTrigger",P._getHostElement())("matRippleDisabled",P.disabled||P.disableRipple))},directives:[Ye,u.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,Qe,W){if(W.length){let P=Qe.toArray(),L=W.toArray(),g=0;for(let O=0;O<Ge+1;O++)P[O].group&&P[O].group===L[g]&&g++;return g}return 0}function Jt(Ge,Qe,W,P){return Ge<W?Ge:Ge+Qe>W+P?Math.max(0,Ge-P+Qe):W}let on=(()=>{class Ge{}return Ge.\u0275fac=function(W){return new(W||Ge)},Ge.\u0275mod=i.\u0275\u0275defineNgModule({type:Ge}),Ge.\u0275inj=i.\u0275\u0275defineInjector({imports:[[Ce,u.CommonModule,De,rt]]}),Ge})()},8966:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_DIALOG_DATA:()=>Pe,MAT_DIALOG_DEFAULT_OPTIONS:()=>X,MAT_DIALOG_SCROLL_STRATEGY:()=>ae,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>Ie,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>Ke,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>ne,MatDialog:()=>st,MatDialogActions:()=>qe,MatDialogClose:()=>ut,MatDialogConfig:()=>fe,MatDialogContainer:()=>ke,MatDialogContent:()=>Ne,MatDialogModule:()=>pe,MatDialogRef:()=>lt,MatDialogTitle:()=>Tt,_MatDialogBase:()=>me,_MatDialogContainerBase:()=>De,_closeDialogVia:()=>q,matDialogAnimations:()=>ye,throwMatDialogContentAlreadyAttachedError:()=>se});var i=l(1314),d=l(7429),m=l(5e3),u=l(508),s=l(226),y=l(6758),C=l(9770),D=l(6921),w=l(9646),f=l(9300),I=l(5698),T=l(8675),b=l(925),R=l(9808),j=l(1777),he=l(5664),V=l(1159),le=l(6360);function Me(we,xe){}class fe{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,j.X$)("dialogContainer",[(0,j.SB)("void, exit",(0,j.oB)({opacity:0,transform:"scale(0.7)"})),(0,j.SB)("enter",(0,j.oB)({transform:"none"})),(0,j.eR)("* => enter",(0,j.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,j.oB)({transform:"none",opacity:1}))),(0,j.eR)("* => void, * => exit",(0,j.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,j.oB)({opacity:0})))])};function se(){throw Error("Attempting to attach dialog content after content is already attached")}let De=(()=>{class we extends d.en{constructor(ge,Je,vt,Et,At,ht,Ze,N){super(),this._elementRef=ge,this._focusTrapFactory=Je,this._changeDetectorRef=vt,this._config=At,this._interactivityChecker=ht,this._ngZone=Ze,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=At.ariaLabelledBy||null,this._document=Et}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement()}attachComponentPortal(ge){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(ge)}attachTemplatePortal(ge){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(ge)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ge,Je){this._interactivityChecker.isFocusable(ge)||(ge.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{ge.addEventListener("blur",()=>ge.removeAttribute("tabindex")),ge.addEventListener("mousedown",()=>ge.removeAttribute("tabindex"))})),ge.focus(Je)}_focusByCssSelector(ge,Je){let vt=this._elementRef.nativeElement.querySelector(ge);vt&&this._forceFocus(vt,Je)}_trapFocus(){const ge=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ge.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Je=>{Je||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 ge=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&ge&&"function"==typeof ge.focus){const Je=(0,b.ht)(),vt=this._elementRef.nativeElement;(!Je||Je===this._document.body||Je===vt||vt.contains(Je))&&(this._focusMonitor?(this._focusMonitor.focusVia(ge,this._closeInteractionType),this._closeInteractionType=null):ge.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 ge=this._elementRef.nativeElement,Je=(0,b.ht)();return ge===Je||ge.contains(Je)}}return we.\u0275fac=function(ge){return new(ge||we)(m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(he.qV),m.\u0275\u0275directiveInject(m.ChangeDetectorRef),m.\u0275\u0275directiveInject(R.DOCUMENT,8),m.\u0275\u0275directiveInject(fe),m.\u0275\u0275directiveInject(he.ic),m.\u0275\u0275directiveInject(m.NgZone),m.\u0275\u0275directiveInject(he.tE))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,viewQuery:function(ge,Je){if(1&ge&&m.\u0275\u0275viewQuery(d.Pl,7),2&ge){let vt;m.\u0275\u0275queryRefresh(vt=m.\u0275\u0275loadQuery())&&(Je._portalOutlet=vt.first)}},features:[m.\u0275\u0275InheritDefinitionFeature]}),we})(),ke=(()=>{class we extends De{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:ge,totalTime:Je}){"enter"===ge?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:Je})):"exit"===ge&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:Je}))}_onAnimationStart({toState:ge,totalTime:Je}){"enter"===ge?this._animationStateChanged.next({state:"opening",totalTime:Je}):("exit"===ge||"void"===ge)&&this._animationStateChanged.next({state:"closing",totalTime:Je})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return we.\u0275fac=function(){let xe;return function(Je){return(xe||(xe=m.\u0275\u0275getInheritedFactory(we)))(Je||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(ge,Je){1&ge&&m.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(Et){return Je._onAnimationStart(Et)})("@dialogContainer.done",function(Et){return Je._onAnimationDone(Et)}),2&ge&&(m.\u0275\u0275hostProperty("id",Je._id),m.\u0275\u0275attribute("role",Je._config.role)("aria-labelledby",Je._config.ariaLabel?null:Je._ariaLabelledBy)("aria-label",Je._config.ariaLabel)("aria-describedby",Je._config.ariaDescribedBy||null),m.\u0275\u0275syntheticHostProperty("@dialogContainer",Je._state))},features:[m.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ge,Je){1&ge&&m.\u0275\u0275template(0,Me,0,0,"ng-template",0)},directives:[d.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})(),et=0;class lt{constructor(xe,ge,Je="mat-dialog-"+et++){this._overlayRef=xe,this._containerInstance=ge,this.id=Je,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new y.x,this._afterClosed=new y.x,this._beforeClosed=new y.x,this._state=0,ge._id=Je,ge._animationStateChanged.pipe((0,f.h)(vt=>"opened"===vt.state),(0,I.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),ge._animationStateChanged.pipe((0,f.h)(vt=>"closed"===vt.state),(0,I.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),xe.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),xe.keydownEvents().pipe((0,f.h)(vt=>vt.keyCode===V.hY&&!this.disableClose&&!(0,V.Vb)(vt))).subscribe(vt=>{vt.preventDefault(),q(this,"keyboard")}),xe.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():q(this,"mouse")})}close(xe){this._result=xe,this._containerInstance._animationStateChanged.pipe((0,f.h)(ge=>"closing"===ge.state),(0,I.q)(1)).subscribe(ge=>{this._beforeClosed.next(xe),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ge.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(xe){let ge=this._getPositionStrategy();return xe&&(xe.left||xe.right)?xe.left?ge.left(xe.left):ge.right(xe.right):ge.centerHorizontally(),xe&&(xe.top||xe.bottom)?xe.top?ge.top(xe.top):ge.bottom(xe.bottom):ge.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(xe="",ge=""){return this._overlayRef.updateSize({width:xe,height:ge}),this._overlayRef.updatePosition(),this}addPanelClass(xe){return this._overlayRef.addPanelClass(xe),this}removePanelClass(xe){return this._overlayRef.removePanelClass(xe),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function q(we,xe,ge){return void 0!==we._containerInstance&&(we._containerInstance._closeInteractionType=xe),we.close(ge)}const Pe=new m.InjectionToken("MatDialogData"),X=new m.InjectionToken("mat-dialog-default-options"),ae=new m.InjectionToken("mat-dialog-scroll-strategy");function Ie(we){return()=>we.scrollStrategies.block()}function ne(we){return()=>we.scrollStrategies.block()}const Ke={provide:ae,deps:[i.aV],useFactory:ne};let me=(()=>{class we{constructor(ge,Je,vt,Et,At,ht,Ze,N,oe,Oe){this._overlay=ge,this._injector=Je,this._defaultOptions=vt,this._parentDialog=Et,this._overlayContainer=At,this._dialogRefConstructor=Ze,this._dialogContainerType=N,this._dialogDataToken=oe,this._animationMode=Oe,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new y.x,this._afterOpenedAtThisLevel=new y.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=ht}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ge=this._parentDialog;return ge?ge._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(ge,Je){if(Je=function ve(we,xe){return Object.assign(Object.assign({},xe),we)}(Je,this._defaultOptions||new fe),Je.id&&this.getDialogById(Je.id),this._dialogAnimatingOpen)return this._lastDialogRef;const vt=this._createOverlay(Je),Et=this._attachDialogContainer(vt,Je);if("NoopAnimations"!==this._animationMode){const ht=Et._animationStateChanged.subscribe(Ze=>{"opening"===Ze.state&&(this._dialogAnimatingOpen=!0),"opened"===Ze.state&&(this._dialogAnimatingOpen=!1,ht.unsubscribe())});this._animationStateSubscriptions||(this._animationStateSubscriptions=new D.w0),this._animationStateSubscriptions.add(ht)}const At=this._attachDialogContent(ge,Et,vt,Je);return this._lastDialogRef=At,this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(At),At.afterClosed().subscribe(()=>this._removeOpenDialog(At)),this.afterOpened.next(At),Et._initializeWithAttachedContent(),At}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ge){return this.openDialogs.find(Je=>Je.id===ge)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._animationStateSubscriptions&&this._animationStateSubscriptions.unsubscribe()}_createOverlay(ge){const Je=this._getOverlayConfig(ge);return this._overlay.create(Je)}_getOverlayConfig(ge){const Je=new i.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:ge.scrollStrategy||this._scrollStrategy(),panelClass:ge.panelClass,hasBackdrop:ge.hasBackdrop,direction:ge.direction,minWidth:ge.minWidth,minHeight:ge.minHeight,maxWidth:ge.maxWidth,maxHeight:ge.maxHeight,disposeOnNavigation:ge.closeOnNavigation});return ge.backdropClass&&(Je.backdropClass=ge.backdropClass),Je}_attachDialogContainer(ge,Je){const Et=m.Injector.create({parent:Je&&Je.viewContainerRef&&Je.viewContainerRef.injector||this._injector,providers:[{provide:fe,useValue:Je}]}),At=new d.C5(this._dialogContainerType,Je.viewContainerRef,Et,Je.componentFactoryResolver);return ge.attach(At).instance}_attachDialogContent(ge,Je,vt,Et){const At=new this._dialogRefConstructor(vt,Je,Et.id);if(ge instanceof m.TemplateRef)Je.attachTemplatePortal(new d.UE(ge,null,{$implicit:Et.data,dialogRef:At}));else{const ht=this._createInjector(Et,At,Je),Ze=Je.attachComponentPortal(new d.C5(ge,Et.viewContainerRef,ht));At.componentInstance=Ze.instance}return At.updateSize(Et.width,Et.height).updatePosition(Et.position),At}_createInjector(ge,Je,vt){const Et=ge&&ge.viewContainerRef&&ge.viewContainerRef.injector,At=[{provide:this._dialogContainerType,useValue:vt},{provide:this._dialogDataToken,useValue:ge.data},{provide:this._dialogRefConstructor,useValue:Je}];return ge.direction&&(!Et||!Et.get(s.Is,null,m.InjectFlags.Optional))&&At.push({provide:s.Is,useValue:{value:ge.direction,change:(0,w.of)()}}),m.Injector.create({parent:Et||this._injector,providers:At})}_removeOpenDialog(ge){const Je=this.openDialogs.indexOf(ge);Je>-1&&(this.openDialogs.splice(Je,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((vt,Et)=>{vt?Et.setAttribute("aria-hidden",vt):Et.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ge=this._overlayContainer.getContainerElement();if(ge.parentElement){const Je=ge.parentElement.children;for(let vt=Je.length-1;vt>-1;vt--){let Et=Je[vt];Et!==ge&&"SCRIPT"!==Et.nodeName&&"STYLE"!==Et.nodeName&&!Et.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Et,Et.getAttribute("aria-hidden")),Et.setAttribute("aria-hidden","true"))}}}_closeDialogs(ge){let Je=ge.length;for(;Je--;)ge[Je].close()}}return we.\u0275fac=function(ge){m.\u0275\u0275invalidFactory()},we.\u0275dir=m.\u0275\u0275defineDirective({type:we}),we})(),st=(()=>{class we extends me{constructor(ge,Je,vt,Et,At,ht,Ze,N){super(ge,Je,Et,ht,Ze,At,lt,ke,Pe,N)}}return we.\u0275fac=function(ge){return new(ge||we)(m.\u0275\u0275inject(i.aV),m.\u0275\u0275inject(m.Injector),m.\u0275\u0275inject(R.Location,8),m.\u0275\u0275inject(X,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})(),Ue=0,ut=(()=>{class we{constructor(ge,Je,vt){this.dialogRef=ge,this._elementRef=Je,this._dialog=vt,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Y(this._elementRef,this._dialog.openDialogs))}ngOnChanges(ge){const Je=ge._matDialogClose||ge._matDialogCloseResult;Je&&(this.dialogResult=Je.currentValue)}_onButtonClick(ge){q(this.dialogRef,0===ge.screenX&&0===ge.screenY?"keyboard":"mouse",this.dialogResult)}}return we.\u0275fac=function(ge){return new(ge||we)(m.\u0275\u0275directiveInject(lt,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(st))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ge,Je){1&ge&&m.\u0275\u0275listener("click",function(Et){return Je._onButtonClick(Et)}),2&ge&&m.\u0275\u0275attribute("aria-label",Je.ariaLabel||null)("type",Je.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(ge,Je,vt){this._dialogRef=ge,this._elementRef=Je,this._dialog=vt,this.id="mat-dialog-title-"+Ue++}ngOnInit(){this._dialogRef||(this._dialogRef=Y(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const ge=this._dialogRef._containerInstance;ge&&!ge._ariaLabelledBy&&(ge._ariaLabelledBy=this.id)})}}return we.\u0275fac=function(ge){return new(ge||we)(m.\u0275\u0275directiveInject(lt,8),m.\u0275\u0275directiveInject(m.ElementRef),m.\u0275\u0275directiveInject(st))},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(ge,Je){2&ge&&m.\u0275\u0275hostProperty("id",Je.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),we})(),Ne=(()=>{class we{}return we.\u0275fac=function(ge){return new(ge||we)},we.\u0275dir=m.\u0275\u0275defineDirective({type:we,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),we})(),qe=(()=>{class we{}return we.\u0275fac=function(ge){return new(ge||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,xe){let ge=we.nativeElement.parentElement;for(;ge&&!ge.classList.contains("mat-dialog-container");)ge=ge.parentElement;return ge?xe.find(Je=>Je.id===ge.id):null}let pe=(()=>{class we{}return we.\u0275fac=function(ge){return new(ge||we)},we.\u0275mod=m.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=m.\u0275\u0275defineInjector({providers:[st,Ke],imports:[[i.U8,d.eL,u.MatCommonModule],u.MatCommonModule]}),we})()},5245:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{ICON_REGISTRY_PROVIDER:()=>Pe,ICON_REGISTRY_PROVIDER_FACTORY:()=>q,MAT_ICON_LOCATION:()=>Ke,MAT_ICON_LOCATION_FACTORY:()=>me,MatIcon:()=>ut,MatIconModule:()=>Tt,MatIconRegistry:()=>lt,getMatIconFailedToSanitizeLiteralError:()=>ke,getMatIconFailedToSanitizeUrlError:()=>De,getMatIconNameNotFoundError:()=>ye,getMatIconNoHttpProviderError:()=>se});var i=l(5e3),d=l(508),m=l(3191),u=l(9808),s=l(9646),y=l(2843),C=l(4128),D=l(6921),w=l(8505),f=l(4004),I=l(262),T=l(8746),b=l(3099),R=l(5698),j=l(520),he=l(2313);const V=["*"];let le;function fe(Ne){var qe;return(null===(qe=function Me(){if(void 0===le&&(le=null,"undefined"!=typeof window)){const Ne=window;void 0!==Ne.trustedTypes&&(le=Ne.trustedTypes.createPolicy("angular#components",{createHTML:qe=>qe}))}return le}())||void 0===qe?void 0:qe.createHTML(Ne))||Ne}function ye(Ne){return Error(`Unable to find icon with the name "${Ne}"`)}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(Ne){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Ne}".`)}function ke(Ne){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Ne}".`)}class et{constructor(qe,Y,pe){this.url=qe,this.svgText=Y,this.options=pe}}let lt=(()=>{class Ne{constructor(Y,pe,we,xe){this._httpClient=Y,this._sanitizer=pe,this._errorHandler=xe,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,pe,we){return this.addSvgIconInNamespace("",Y,pe,we)}addSvgIconLiteral(Y,pe,we){return this.addSvgIconLiteralInNamespace("",Y,pe,we)}addSvgIconInNamespace(Y,pe,we,xe){return this._addSvgIconConfig(Y,pe,new et(we,null,xe))}addSvgIconResolver(Y){return this._resolvers.push(Y),this}addSvgIconLiteralInNamespace(Y,pe,we,xe){const ge=this._sanitizer.sanitize(i.SecurityContext.HTML,we);if(!ge)throw ke(we);const Je=fe(ge);return this._addSvgIconConfig(Y,pe,new et("",Je,xe))}addSvgIconSet(Y,pe){return this.addSvgIconSetInNamespace("",Y,pe)}addSvgIconSetLiteral(Y,pe){return this.addSvgIconSetLiteralInNamespace("",Y,pe)}addSvgIconSetInNamespace(Y,pe,we){return this._addSvgIconSetConfig(Y,new et(pe,null,we))}addSvgIconSetLiteralInNamespace(Y,pe,we){const xe=this._sanitizer.sanitize(i.SecurityContext.HTML,pe);if(!xe)throw ke(pe);const ge=fe(xe);return this._addSvgIconSetConfig(Y,new et("",ge,we))}registerFontClassAlias(Y,pe=Y){return this._fontCssClassesByAlias.set(Y,pe),this}classNameForFontAlias(Y){return this._fontCssClassesByAlias.get(Y)||Y}setDefaultFontSetClass(Y){return this._defaultFontSetClass=Y,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Y){const pe=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,Y);if(!pe)throw De(Y);const we=this._cachedIconsByUrl.get(pe);return we?(0,s.of)(X(we)):this._loadSvgIconFromConfig(new et(Y,null)).pipe((0,w.b)(xe=>this._cachedIconsByUrl.set(pe,xe)),(0,f.U)(xe=>X(xe)))}getNamedSvgIcon(Y,pe=""){const we=ae(pe,Y);let xe=this._svgIconConfigs.get(we);if(xe)return this._getSvgFromConfig(xe);if(xe=this._getIconConfigFromResolvers(pe,Y),xe)return this._svgIconConfigs.set(we,xe),this._getSvgFromConfig(xe);const ge=this._iconSetConfigs.get(pe);return ge?this._getSvgFromIconSetConfigs(Y,ge):(0,y._)(ye(we))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Y){return Y.svgText?(0,s.of)(X(this._svgElementFromConfig(Y))):this._loadSvgIconFromConfig(Y).pipe((0,f.U)(pe=>X(pe)))}_getSvgFromIconSetConfigs(Y,pe){const we=this._extractIconWithNameFromAnySet(Y,pe);if(we)return(0,s.of)(we);const xe=pe.filter(ge=>!ge.svgText).map(ge=>this._loadSvgIconSetFromConfig(ge).pipe((0,I.K)(Je=>{const Et=`Loading icon set URL: ${this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,ge.url)} failed: ${Je.message}`;return this._errorHandler.handleError(new Error(Et)),(0,s.of)(null)})));return(0,C.D)(xe).pipe((0,f.U)(()=>{const ge=this._extractIconWithNameFromAnySet(Y,pe);if(!ge)throw ye(Y);return ge}))}_extractIconWithNameFromAnySet(Y,pe){for(let we=pe.length-1;we>=0;we--){const xe=pe[we];if(xe.svgText&&xe.svgText.toString().indexOf(Y)>-1){const ge=this._svgElementFromConfig(xe),Je=this._extractSvgIconFromSet(ge,Y,xe.options);if(Je)return Je}}return null}_loadSvgIconFromConfig(Y){return this._fetchIcon(Y).pipe((0,w.b)(pe=>Y.svgText=pe),(0,f.U)(()=>this._svgElementFromConfig(Y)))}_loadSvgIconSetFromConfig(Y){return Y.svgText?(0,s.of)(null):this._fetchIcon(Y).pipe((0,w.b)(pe=>Y.svgText=pe))}_extractSvgIconFromSet(Y,pe,we){const xe=Y.querySelector(`[id="${pe}"]`);if(!xe)return null;const ge=xe.cloneNode(!0);if(ge.removeAttribute("id"),"svg"===ge.nodeName.toLowerCase())return this._setSvgAttributes(ge,we);if("symbol"===ge.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ge),we);const Je=this._svgElementFromString(fe("<svg></svg>"));return Je.appendChild(ge),this._setSvgAttributes(Je,we)}_svgElementFromString(Y){const pe=this._document.createElement("DIV");pe.innerHTML=Y;const we=pe.querySelector("svg");if(!we)throw Error("<svg> tag not found");return we}_toSvgElement(Y){const pe=this._svgElementFromString(fe("<svg></svg>")),we=Y.attributes;for(let xe=0;xe<we.length;xe++){const{name:ge,value:Je}=we[xe];"id"!==ge&&pe.setAttribute(ge,Je)}for(let xe=0;xe<Y.childNodes.length;xe++)Y.childNodes[xe].nodeType===this._document.ELEMENT_NODE&&pe.appendChild(Y.childNodes[xe].cloneNode(!0));return pe}_setSvgAttributes(Y,pe){return Y.setAttribute("fit",""),Y.setAttribute("height","100%"),Y.setAttribute("width","100%"),Y.setAttribute("preserveAspectRatio","xMidYMid meet"),Y.setAttribute("focusable","false"),pe&&pe.viewBox&&Y.setAttribute("viewBox",pe.viewBox),Y}_fetchIcon(Y){var pe;const{url:we,options:xe}=Y,ge=null!==(pe=null==xe?void 0:xe.withCredentials)&&void 0!==pe&&pe;if(!this._httpClient)throw se();if(null==we)throw Error(`Cannot fetch icon from URL "${we}".`);const Je=this._sanitizer.sanitize(i.SecurityContext.RESOURCE_URL,we);if(!Je)throw De(we);const vt=this._inProgressUrlFetches.get(Je);if(vt)return vt;const Et=this._httpClient.get(Je,{responseType:"text",withCredentials:ge}).pipe((0,f.U)(At=>fe(At)),(0,T.x)(()=>this._inProgressUrlFetches.delete(Je)),(0,b.B)());return this._inProgressUrlFetches.set(Je,Et),Et}_addSvgIconConfig(Y,pe,we){return this._svgIconConfigs.set(ae(Y,pe),we),this}_addSvgIconSetConfig(Y,pe){const we=this._iconSetConfigs.get(Y);return we?we.push(pe):this._iconSetConfigs.set(Y,[pe]),this}_svgElementFromConfig(Y){if(!Y.svgElement){const pe=this._svgElementFromString(Y.svgText);this._setSvgAttributes(pe,Y.options),Y.svgElement=pe}return Y.svgElement}_getIconConfigFromResolvers(Y,pe){for(let we=0;we<this._resolvers.length;we++){const xe=this._resolvers[we](pe,Y);if(xe)return Ie(xe)?new et(xe.url,null,xe.options):new et(xe,null)}}}return Ne.\u0275fac=function(Y){return new(Y||Ne)(i.\u0275\u0275inject(j.HttpClient,8),i.\u0275\u0275inject(he.DomSanitizer),i.\u0275\u0275inject(u.DOCUMENT,8),i.\u0275\u0275inject(i.ErrorHandler))},Ne.\u0275prov=i.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})();function q(Ne,qe,Y,pe,we){return Ne||new lt(qe,Y,we,pe)}const Pe={provide:lt,deps:[[new i.Optional,new i.SkipSelf,lt],[new i.Optional,j.HttpClient],he.DomSanitizer,i.ErrorHandler,[new i.Optional,u.DOCUMENT]],useFactory:q};function X(Ne){return Ne.cloneNode(!0)}function ae(Ne,qe){return Ne+":"+qe}function Ie(Ne){return!(!Ne.url||!Ne.options)}const ne=(0,d.mixinColor)(class{constructor(Ne){this._elementRef=Ne}}),Ke=new i.InjectionToken("mat-icon-location",{providedIn:"root",factory:me});function me(){const Ne=(0,i.inject)(u.DOCUMENT),qe=Ne?Ne.location:null;return{getPathname:()=>qe?qe.pathname+qe.search:""}}const st=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],ve=st.map(Ne=>`[${Ne}]`).join(", "),Ue=/^url\(['"]?#(.*?)['"]?\)$/;let ut=(()=>{class Ne extends ne{constructor(Y,pe,we,xe,ge){super(Y),this._iconRegistry=pe,this._location=xe,this._errorHandler=ge,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 pe=this._cleanupFontValue(Y);pe!==this._fontSet&&(this._fontSet=pe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Y){const pe=this._cleanupFontValue(Y);pe!==this._fontIcon&&(this._fontIcon=pe,this._updateFontIconClasses())}_splitIconName(Y){if(!Y)return["",""];const pe=Y.split(":");switch(pe.length){case 1:return["",pe[0]];case 2:return pe;default:throw Error(`Invalid icon name: "${Y}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Y=this._elementsWithExternalReferences;if(Y&&Y.size){const pe=this._location.getPathname();pe!==this._previousPath&&(this._previousPath=pe,this._prependPathToReferences(pe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(Y){this._clearSvgElement();const pe=Y.querySelectorAll("style");for(let xe=0;xe<pe.length;xe++)pe[xe].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 pe=Y.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();pe--;){const we=Y.childNodes[pe];(1!==we.nodeType||"svg"===we.nodeName.toLowerCase())&&we.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Y=this._elementRef.nativeElement,pe=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();pe!=this._previousFontSetClass&&(this._previousFontSetClass&&Y.classList.remove(this._previousFontSetClass),pe&&Y.classList.add(pe),this._previousFontSetClass=pe),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 pe=this._elementsWithExternalReferences;pe&&pe.forEach((we,xe)=>{we.forEach(ge=>{xe.setAttribute(ge.name,`url('${Y}#${ge.value}')`)})})}_cacheChildrenWithExternalReferences(Y){const pe=Y.querySelectorAll(ve),we=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let xe=0;xe<pe.length;xe++)st.forEach(ge=>{const Je=pe[xe],vt=Je.getAttribute(ge),Et=vt?vt.match(Ue):null;if(Et){let At=we.get(Je);At||(At=[],we.set(Je,At)),At.push({name:ge,value:Et[1]})}})}_updateSvgIcon(Y){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Y){const[pe,we]=this._splitIconName(Y);pe&&(this._svgNamespace=pe),we&&(this._svgName=we),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(we,pe).pipe((0,R.q)(1)).subscribe(xe=>this._setSvgElement(xe),xe=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${pe}:${we}! ${xe.message}`))})}}}return Ne.\u0275fac=function(Y){return new(Y||Ne)(i.\u0275\u0275directiveInject(i.ElementRef),i.\u0275\u0275directiveInject(lt),i.\u0275\u0275injectAttribute("aria-hidden"),i.\u0275\u0275directiveInject(Ke),i.\u0275\u0275directiveInject(i.ErrorHandler))},Ne.\u0275cmp=i.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(Y,pe){2&Y&&(i.\u0275\u0275attribute("data-mat-icon-type",pe._usingFontIcon()?"font":"svg")("data-mat-icon-name",pe._svgName||pe.fontIcon)("data-mat-icon-namespace",pe._svgNamespace||pe.fontSet),i.\u0275\u0275classProp("mat-icon-inline",pe.inline)("mat-icon-no-color","primary"!==pe.color&&"accent"!==pe.color&&"warn"!==pe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:V,decls:1,vars:0,template:function(Y,pe){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}),Ne})(),Tt=(()=>{class Ne{}return Ne.\u0275fac=function(Y){return new(Y||Ne)},Ne.\u0275mod=i.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.MatCommonModule],d.MatCommonModule]}),Ne})()},2181:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_MENU_CONTENT:()=>Ie,MAT_MENU_DEFAULT_OPTIONS:()=>qe,MAT_MENU_PANEL:()=>ut,MAT_MENU_SCROLL_STRATEGY:()=>ge,MatMenu:()=>xe,MatMenuContent:()=>Ke,MatMenuItem:()=>Ne,MatMenuModule:()=>N,MatMenuTrigger:()=>Ze,_MatMenuBase:()=>we,_MatMenuContentBase:()=>ne,_MatMenuTriggerBase:()=>ht,fadeInItems:()=>X,matMenuAnimations:()=>Pe,transformMenu:()=>ae});var i=l(5664),d=l(3191),m=l(1159),u=l(5e3),s=l(6758),y=l(6921),C=l(6451),D=l(9646),w=l(3101),f=l(8675),I=l(3900),T=l(5698),b=l(9300),R=l(2722),j=l(4326),he=l(1777),V=l(7429),le=l(9808),Me=l(508),fe=l(1314),ye=l(925),se=l(226),De=l(9071);const ke=["mat-menu-item",""];function et(oe,Oe){1&oe&&(u.\u0275\u0275namespaceSVG(),u.\u0275\u0275elementStart(0,"svg",2),u.\u0275\u0275element(1,"polygon",3),u.\u0275\u0275elementEnd())}const lt=["*"];function q(oe,Oe){if(1&oe){const ue=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("keydown",function(be){return u.\u0275\u0275restoreView(ue),u.\u0275\u0275nextContext()._handleKeydown(be)})("click",function(){return u.\u0275\u0275restoreView(ue),u.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(be){return u.\u0275\u0275restoreView(ue),u.\u0275\u0275nextContext()._onAnimationStart(be)})("@transformMenu.done",function(be){return u.\u0275\u0275restoreView(ue),u.\u0275\u0275nextContext()._onAnimationDone(be)}),u.\u0275\u0275elementStart(1,"div",1),u.\u0275\u0275projection(2),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementEnd()}if(2&oe){const ue=u.\u0275\u0275nextContext();u.\u0275\u0275property("id",ue.panelId)("ngClass",ue._classList)("@transformMenu",ue._panelAnimationState),u.\u0275\u0275attribute("aria-label",ue.ariaLabel||null)("aria-labelledby",ue.ariaLabelledby||null)("aria-describedby",ue.ariaDescribedby||null)}}const Pe={transformMenu:(0,he.X$)("transformMenu",[(0,he.SB)("void",(0,he.oB)({opacity:0,transform:"scale(0.8)"})),(0,he.eR)("void => enter",(0,he.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,he.oB)({opacity:1,transform:"scale(1)"}))),(0,he.eR)("* => void",(0,he.jt)("100ms 25ms linear",(0,he.oB)({opacity:0})))]),fadeInItems:(0,he.X$)("fadeInItems",[(0,he.SB)("showing",(0,he.oB)({opacity:1})),(0,he.eR)("void => *",[(0,he.oB)({opacity:0}),(0,he.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},X=Pe.fadeInItems,ae=Pe.transformMenu,Ie=new u.InjectionToken("MatMenuContent");let ne=(()=>{class oe{constructor(ue,Te,be,re,Ce,Ye,rt){this._template=ue,this._componentFactoryResolver=Te,this._appRef=be,this._injector=re,this._viewContainerRef=Ce,this._document=Ye,this._changeDetectorRef=rt,this._attached=new s.x}attach(ue={}){var Te;this._portal||(this._portal=new V.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new V.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)(u.\u0275\u0275directiveInject(u.TemplateRef),u.\u0275\u0275directiveInject(u.ComponentFactoryResolver),u.\u0275\u0275directiveInject(u.ApplicationRef),u.\u0275\u0275directiveInject(u.Injector),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(le.DOCUMENT),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},oe.\u0275dir=u.\u0275\u0275defineDirective({type:oe}),oe})(),Ke=(()=>{class oe extends ne{}return oe.\u0275fac=function(){let Oe;return function(Te){return(Oe||(Oe=u.\u0275\u0275getInheritedFactory(oe)))(Te||oe)}}(),oe.\u0275dir=u.\u0275\u0275defineDirective({type:oe,selectors:[["ng-template","matMenuContent",""]],features:[u.\u0275\u0275ProvidersFeature([{provide:Ie,useExisting:oe}]),u.\u0275\u0275InheritDefinitionFeature]}),oe})();const ut=new u.InjectionToken("MAT_MENU_PANEL"),Tt=(0,Me.mixinDisableRipple)((0,Me.mixinDisabled)(class{}));let Ne=(()=>{class oe extends Tt{constructor(ue,Te,be,re,Ce){var Ye;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===(Ye=null==re?void 0:re.addItem)||void 0===Ye||Ye.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)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(le.DOCUMENT),u.\u0275\u0275directiveInject(i.tE),u.\u0275\u0275directiveInject(ut,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},oe.\u0275cmp=u.\u0275\u0275defineComponent({type:oe,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ue,Te){1&ue&&u.\u0275\u0275listener("click",function(re){return Te._checkDisabled(re)})("mouseenter",function(){return Te._handleMouseEnter()}),2&ue&&(u.\u0275\u0275attribute("role",Te.role)("tabindex",Te._getTabIndex())("aria-disabled",Te.disabled.toString())("disabled",Te.disabled||null),u.\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:[u.\u0275\u0275InheritDefinitionFeature],attrs:ke,ngContentSelectors:lt,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&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275projection(0),u.\u0275\u0275element(1,"div",0),u.\u0275\u0275template(2,et,2,0,"svg",1)),2&ue&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("matRippleDisabled",Te.disableRipple||Te.disabled)("matRippleTrigger",Te._getHostElement()),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Te._triggersSubmenu))},directives:[Me.MatRipple,le.NgIf],encapsulation:2,changeDetection:0}),oe})();const qe=new u.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function Y(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let pe=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 u.QueryList,this._tabSubscription=y.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 u.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+pe++}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,d.Ig)(ue)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ue){this._hasBackdrop=(0,d.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,f.O)(this._directDescendantItems),(0,I.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,f.O)(this._directDescendantItems),(0,I.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,f.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)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(qe))},oe.\u0275dir=u.\u0275\u0275defineDirective({type:oe,contentQueries:function(ue,Te,be){if(1&ue&&(u.\u0275\u0275contentQuery(be,Ie,5),u.\u0275\u0275contentQuery(be,Ne,5),u.\u0275\u0275contentQuery(be,Ne,4)),2&ue){let re;u.\u0275\u0275queryRefresh(re=u.\u0275\u0275loadQuery())&&(Te.lazyContent=re.first),u.\u0275\u0275queryRefresh(re=u.\u0275\u0275loadQuery())&&(Te._allItems=re),u.\u0275\u0275queryRefresh(re=u.\u0275\u0275loadQuery())&&(Te.items=re)}},viewQuery:function(ue,Te){if(1&ue&&u.\u0275\u0275viewQuery(u.TemplateRef,5),2&ue){let be;u.\u0275\u0275queryRefresh(be=u.\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})(),xe=(()=>{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)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(qe))},oe.\u0275cmp=u.\u0275\u0275defineComponent({type:oe,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ue,Te){2&ue&&u.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[u.\u0275\u0275ProvidersFeature([{provide:ut,useExisting:oe}]),u.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:lt,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&&(u.\u0275\u0275projectionDef(),u.\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 ge=new u.InjectionToken("mat-menu-scroll-strategy"),vt={provide:ge,deps:[fe.aV],useFactory:function Je(oe){return()=>oe.scrollStrategies.reposition()}},At=(0,ye.i$)({passive:!0});let ht=(()=>{class oe{constructor(ue,Te,be,re,Ce,Ye,rt,pt){this._overlay=ue,this._element=Te,this._viewContainerRef=be,this._menuItemInstance=Ye,this._dir=rt,this._focusMonitor=pt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=y.w0.EMPTY,this._hoverSubscription=y.w0.EMPTY,this._menuCloseSubscription=y.w0.EMPTY,this._handleTouchStart=gt=>{(0,i.yG)(gt)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=re,this._parentMaterialMenu=Ce instanceof we?Ce:void 0,Te.nativeElement.addEventListener("touchstart",this._handleTouchStart,At),Ye&&(Ye._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,At),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,R.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 fe.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"],[Ye,rt]=[re,Ce],[pt,gt]=[Te,be],Mt=0;this.triggersSubmenu()?(gt=Te="before"===this.menu.xPosition?"start":"end",be=pt="end"===Te?"start":"end",Mt="bottom"===re?8:-8):this.menu.overlapTrigger||(Ye="top"===re?"bottom":"top",rt="top"===Ce?"bottom":"top"),ue.withPositions([{originX:Te,originY:Ye,overlayX:pt,overlayY:re,offsetY:Mt},{originX:be,originY:Ye,overlayX:gt,overlayY:re,offsetY:Mt},{originX:Te,originY:rt,overlayX:pt,overlayY:Ce,offsetY:-Mt},{originX:be,originY:rt,overlayX:gt,overlayY:Ce,offsetY:-Mt}])}_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,j.g)(0,w.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof we&&this.menu._isAnimating?this.menu._animationDone.pipe((0,T.q)(1),(0,j.g)(0,w.E),(0,R.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new V.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return oe.\u0275fac=function(ue){return new(ue||oe)(u.\u0275\u0275directiveInject(fe.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(ge),u.\u0275\u0275directiveInject(ut,8),u.\u0275\u0275directiveInject(Ne,10),u.\u0275\u0275directiveInject(se.Is,8),u.\u0275\u0275directiveInject(i.tE))},oe.\u0275dir=u.\u0275\u0275defineDirective({type:oe,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(ue,Te){1&ue&&u.\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&&u.\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})(),Ze=(()=>{class oe extends ht{}return oe.\u0275fac=function(){let Oe;return function(Te){return(Oe||(Oe=u.\u0275\u0275getInheritedFactory(oe)))(Te||oe)}}(),oe.\u0275dir=u.\u0275\u0275defineDirective({type:oe,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[u.\u0275\u0275InheritDefinitionFeature]}),oe})(),N=(()=>{class oe{}return oe.\u0275fac=function(ue){return new(ue||oe)},oe.\u0275mod=u.\u0275\u0275defineNgModule({type:oe}),oe.\u0275inj=u.\u0275\u0275defineInjector({providers:[vt],imports:[[le.CommonModule,Me.MatCommonModule,Me.MatRippleModule,fe.U8],De.ZD,Me.MatCommonModule]}),oe})()},2075:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{MatCell:()=>$e,MatCellDef:()=>O,MatColumnDef:()=>kt,MatFooterCell:()=>Fe,MatFooterCellDef:()=>ot,MatFooterRow:()=>Ft,MatFooterRowDef:()=>Ve,MatHeaderCell:()=>Ht,MatHeaderCellDef:()=>_e,MatHeaderRow:()=>Lt,MatHeaderRowDef:()=>de,MatNoDataRow:()=>Mn,MatRecycleRows:()=>L,MatRow:()=>an,MatRowDef:()=>ft,MatTable:()=>g,MatTableDataSource:()=>Ln,MatTableModule:()=>Jn,MatTextColumn:()=>Vn,_MatTableDataSource:()=>Un});var i=l(5e3),d=l(3191),m=l(449),u=l(9808),s=l(6758),y=l(188),C=l(1135),D=l(5191),w=l(9646),f=l(2722),I=l(5698),T=l(226),b=l(925),R=l(9071);const j=[[["caption"]],[["colgroup"],["col"]]],he=["caption","colgroup, col"];function V(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,d.Ig)(Se),this._hasStickyChanged=z!==this._sticky}hasStickyChanged(){const Se=this._hasStickyChanged;return this._hasStickyChanged=!1,Se}resetStickyChanged(){this._hasStickyChanged=!1}}}const fe=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 et{}const lt=Me(et);let q=(()=>{class H extends lt{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,d.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(fe,8))},H.\u0275dir=i.\u0275\u0275defineDirective({type:H,selectors:[["","cdkColumnDef",""]],contentQueries:function(z,Ae,tt){if(1&z&&(i.\u0275\u0275contentQuery(tt,se,5),i.\u0275\u0275contentQuery(tt,De,5),i.\u0275\u0275contentQuery(tt,ke,5)),2&z){let ct;i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Ae.cell=ct.first),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Ae.headerCell=ct.first),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Ae.footerCell=ct.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 X=(()=>{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 tt;if(super(z,Ae),1===(null===(tt=z._table)||void 0===tt?void 0:tt._elementRef.nativeElement.nodeType)){const ct=z._table._elementRef.nativeElement.getAttribute("role");Ae.nativeElement.setAttribute("role","grid"===ct||"treegrid"===ct?"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 tt;if(super(z,Ae),1===(null===(tt=z._table)||void 0===tt?void 0:tt._elementRef.nativeElement.nodeType)){const ct=z._table._elementRef.nativeElement.getAttribute("role");Ae.nativeElement.setAttribute("role","grid"===ct||"treegrid"===ct?"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 ne{constructor(){this.tasks=[],this.endTasks=[]}}const Ke=new i.InjectionToken("_COALESCED_STYLE_SCHEDULER");let me=(()=>{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 ne,this._getScheduleObservable().pipe((0,f.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const z=this._currentSchedule;this._currentSchedule=new ne;for(const Ae of z.tasks)Ae();for(const Ae of z.endTasks)Ae()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,y.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,I.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 Ue extends ve{}const ut=Me(Ue);let Tt=(()=>{class H extends ut{constructor(z,Ae,tt){super(z,Ae),this._table=tt}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(fe,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 Ne extends ve{}const qe=Me(Ne);let Y=(()=>{class H extends qe{constructor(z,Ae,tt){super(z,Ae),this._table=tt}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(fe,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})(),pe=(()=>{class H extends ve{constructor(z,Ae,tt){super(z,Ae),this._table=tt}}return H.\u0275fac=function(z){return new(z||H)(i.\u0275\u0275directiveInject(i.TemplateRef),i.\u0275\u0275directiveInject(i.IterableDiffers),i.\u0275\u0275directiveInject(fe,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})(),xe=(()=>{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})(),ge=(()=>{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})(),Je=(()=>{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})(),vt=(()=>{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 Et=["top","bottom","left","right"];class At{constructor(Se,z,Ae,tt,ct=!0,St=!0,Nt){this._isNativeHtmlTable=Se,this._stickCellCss=z,this.direction=Ae,this._coalescedStyleScheduler=tt,this._isBrowser=ct,this._needsPositionStickyOnElement=St,this._positionListener=Nt,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 tt of Se)if(tt.nodeType===tt.ELEMENT_NODE){Ae.push(tt);for(let ct=0;ct<tt.children.length;ct++)Ae.push(tt.children[ct])}this._coalescedStyleScheduler.schedule(()=>{for(const tt of Ae)this._removeStickyStyle(tt,z)})}updateStickyColumns(Se,z,Ae,tt=!0){if(!Se.length||!this._isBrowser||!z.some(ln=>ln)&&!Ae.some(ln=>ln))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const ct=Se[0],St=ct.children.length,Nt=this._getCellWidths(ct,tt),qt=this._getStickyStartColumnPositions(Nt,z),Cn=this._getStickyEndColumnPositions(Nt,Ae),Bt=z.lastIndexOf(!0),Pn=Ae.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const ln="rtl"===this.direction,jn=ln?"right":"left",$n=ln?"left":"right";for(const In of Se)for(let Rn=0;Rn<St;Rn++){const li=In.children[Rn];z[Rn]&&this._addStickyStyle(li,jn,qt[Rn],Rn===Bt),Ae[Rn]&&this._addStickyStyle(li,$n,Cn[Rn],Rn===Pn)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Bt?[]:Nt.slice(0,Bt+1).map((In,Rn)=>z[Rn]?In:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Pn?[]:Nt.slice(Pn).map((In,Rn)=>Ae[Rn+Pn]?In:null).reverse()}))})}stickRows(Se,z,Ae){if(!this._isBrowser)return;const tt="bottom"===Ae?Se.slice().reverse():Se,ct="bottom"===Ae?z.slice().reverse():z,St=[],Nt=[],qt=[];for(let Bt=0,Pn=0;Bt<tt.length;Bt++){if(!ct[Bt])continue;St[Bt]=Pn;const ln=tt[Bt];qt[Bt]=this._isNativeHtmlTable?Array.from(ln.children):[ln];const jn=ln.getBoundingClientRect().height;Pn+=jn,Nt[Bt]=jn}const Cn=ct.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Bt,Pn;for(let ln=0;ln<tt.length;ln++){if(!ct[ln])continue;const jn=St[ln],$n=ln===Cn;for(const In of qt[ln])this._addStickyStyle(In,Ae,jn,$n)}"top"===Ae?null===(Bt=this._positionListener)||void 0===Bt||Bt.stickyHeaderRowsUpdated({sizes:Nt,offsets:St,elements:qt}):null===(Pn=this._positionListener)||void 0===Pn||Pn.stickyFooterRowsUpdated({sizes:Nt,offsets:St,elements:qt})})}updateStickyFooterContainer(Se,z){if(!this._isNativeHtmlTable)return;const Ae=Se.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{z.some(tt=>!tt)?this._removeStickyStyle(Ae,["bottom"]):this._addStickyStyle(Ae,"bottom",0,!1)})}_removeStickyStyle(Se,z){for(const tt of z)Se.style[tt]="",Se.classList.remove(this._borderCellCss[tt]);Et.some(tt=>-1===z.indexOf(tt)&&Se.style[tt])?Se.style.zIndex=this._getCalculatedZIndex(Se):(Se.style.zIndex="",this._needsPositionStickyOnElement&&(Se.style.position=""),Se.classList.remove(this._stickCellCss))}_addStickyStyle(Se,z,Ae,tt){Se.classList.add(this._stickCellCss),tt&&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 tt of Et)Se.style[tt]&&(Ae+=z[tt]);return Ae?`${Ae}`:""}_getCellWidths(Se,z=!0){if(!z&&this._cachedCellWidths.length)return this._cachedCellWidths;const Ae=[],tt=Se.children;for(let ct=0;ct<tt.length;ct++)Ae.push(tt[ct].getBoundingClientRect().width);return this._cachedCellWidths=Ae,Ae}_getStickyStartColumnPositions(Se,z){const Ae=[];let tt=0;for(let ct=0;ct<Se.length;ct++)z[ct]&&(Ae[ct]=tt,tt+=Se[ct]);return Ae}_getStickyEndColumnPositions(Se,z){const Ae=[];let tt=0;for(let ct=Se.length;ct>0;ct--)z[ct]&&(Ae[ct]=tt,tt+=Se[ct]);return Ae}}const re=new i.InjectionToken("CDK_SPL");let Ye=(()=>{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})(),rt=(()=>{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})(),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:[["","footerRowOutlet",""]]}),H})(),gt=(()=>{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})(),tn=(()=>{class H{constructor(z,Ae,tt,ct,St,Nt,qt,Cn,Bt,Pn,ln,jn){this._differs=z,this._changeDetectorRef=Ae,this._elementRef=tt,this._dir=St,this._platform=qt,this._viewRepeater=Cn,this._coalescedStyleScheduler=Bt,this._viewportRuler=Pn,this._stickyPositioningListener=ln,this._ngZone=jn,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}),ct||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Nt,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,d.Ig)(z),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(z){this._fixedLayout=(0,d.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,f.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,(tt,ct,St)=>this._getEmbeddedViewArgs(tt.item,St),tt=>tt.item.data,tt=>{1===tt.operation&&tt.context&&this._renderCellTemplateForItem(tt.record.item.rowDef,tt.context)}),this._updateRowIndexContext(),z.forEachIdentityChange(tt=>{Ae.get(tt.currentIndex).context.$implicit=tt.item.data}),this._updateNoDataRow(),this._ngZone&&i.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,I.q)(1),(0,f.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),tt=this._elementRef.nativeElement.querySelector("thead");tt&&(tt.style.display=z.length?"":"none");const ct=this._headerRowDefs.map(St=>St.sticky);this._stickyStyler.clearStickyPositioning(z,["top"]),this._stickyStyler.stickRows(z,ct,"top"),this._headerRowDefs.forEach(St=>St.resetStickyChanged())}updateStickyFooterRowStyles(){const z=this._getRenderedRows(this._footerRowOutlet),tt=this._elementRef.nativeElement.querySelector("tfoot");tt&&(tt.style.display=z.length?"":"none");const ct=this._footerRowDefs.map(St=>St.sticky);this._stickyStyler.clearStickyPositioning(z,["bottom"]),this._stickyStyler.stickRows(z,ct,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,ct),this._footerRowDefs.forEach(St=>St.resetStickyChanged())}updateStickyColumnStyles(){const z=this._getRenderedRows(this._headerRowOutlet),Ae=this._getRenderedRows(this._rowOutlet),tt=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...z,...Ae,...tt],["left","right"]),this._stickyColumnStylesNeedReset=!1),z.forEach((ct,St)=>{this._addStickyColumnStyles([ct],this._headerRowDefs[St])}),this._rowDefs.forEach(ct=>{const St=[];for(let Nt=0;Nt<Ae.length;Nt++)this._renderRows[Nt].rowDef===ct&&St.push(Ae[Nt]);this._addStickyColumnStyles(St,ct)}),tt.forEach((ct,St)=>{this._addStickyColumnStyles([ct],this._footerRowDefs[St])}),Array.from(this._columnDefsByName.values()).forEach(ct=>ct.resetStickyChanged())}_getAllRenderRows(){const z=[],Ae=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let tt=0;tt<this._data.length;tt++){let ct=this._data[tt];const St=this._getRenderRowsForData(ct,tt,Ae.get(ct));this._cachedRenderRowsMap.has(ct)||this._cachedRenderRowsMap.set(ct,new WeakMap);for(let Nt=0;Nt<St.length;Nt++){let qt=St[Nt];const Cn=this._cachedRenderRowsMap.get(qt.data);Cn.has(qt.rowDef)?Cn.get(qt.rowDef).push(qt):Cn.set(qt.rowDef,[qt]),z.push(qt)}}return z}_getRenderRowsForData(z,Ae,tt){return this._getRowDefs(z,Ae).map(St=>{const Nt=tt&&tt.has(St)?tt.get(St):[];if(Nt.length){const qt=Nt.shift();return qt.dataIndex=Ae,qt}return{data:z,rowDef:St,dataIndex:Ae}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Vt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Ae=>{this._columnDefsByName.has(Ae.name),this._columnDefsByName.set(Ae.name,Ae)})}_cacheRowDefs(){this._headerRowDefs=Vt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Vt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Vt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const z=this._rowDefs.filter(Ae=>!Ae.when);this._defaultRowDef=z[0]}_renderUpdatedColumns(){const z=(St,Nt)=>St||!!Nt.getColumnsDiff(),Ae=this._rowDefs.reduce(z,!1);Ae&&this._forceRenderDataRows();const tt=this._headerRowDefs.reduce(z,!1);tt&&this._forceRenderHeaderRows();const ct=this._footerRowDefs.reduce(z,!1);return ct&&this._forceRenderFooterRows(),Ae||tt||ct}_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,w.of)(this.dataSource)),this._renderChangeSubscription=z.pipe((0,f.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 tt=Array.from(Ae.columns||[]).map(Nt=>this._columnDefsByName.get(Nt)),ct=tt.map(Nt=>Nt.sticky),St=tt.map(Nt=>Nt.stickyEnd);this._stickyStyler.updateStickyColumns(z,ct,St,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(z){const Ae=[];for(let tt=0;tt<z.viewContainer.length;tt++){const ct=z.viewContainer.get(tt);Ae.push(ct.rootNodes[0])}return Ae}_getRowDefs(z,Ae){if(1==this._rowDefs.length)return[this._rowDefs[0]];let tt=[];if(this.multiTemplateDataRows)tt=this._rowDefs.filter(ct=>!ct.when||ct.when(Ae,z));else{let ct=this._rowDefs.find(St=>St.when&&St.when(Ae,z))||this._defaultRowDef;ct&&tt.push(ct)}return tt}_getEmbeddedViewArgs(z,Ae){return{templateRef:z.rowDef.template,context:{$implicit:z.data},index:Ae}}_renderRow(z,Ae,tt,ct={}){const St=z.viewContainer.createEmbeddedView(Ae.template,ct,tt);return this._renderCellTemplateForItem(Ae,ct),St}_renderCellTemplateForItem(z,Ae){for(let tt of this._getCellTemplates(z))we.mostRecentCellOutlet&&we.mostRecentCellOutlet._viewContainer.createEmbeddedView(tt,Ae);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const z=this._rowOutlet.viewContainer;for(let Ae=0,tt=z.length;Ae<tt;Ae++){const St=z.get(Ae).context;St.count=tt,St.first=0===Ae,St.last=Ae===tt-1,St.even=Ae%2==0,St.odd=!St.even,this.multiTemplateDataRows?(St.dataIndex=this._renderRows[Ae].dataIndex,St.renderIndex=Ae):St.index=this._renderRows[Ae].dataIndex}}_getCellTemplates(z){return z&&z.columns?Array.from(z.columns,Ae=>{const tt=this._columnDefsByName.get(Ae);return z.extractCellTemplate(tt)}):[]}_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 tt of Ae){const ct=this._document.createElement(tt.tag);ct.setAttribute("role","rowgroup");for(const St of tt.outlets)ct.appendChild(St.elementRef.nativeElement);z.appendChild(ct)}this._elementRef.nativeElement.appendChild(z)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const z=(Ae,tt)=>Ae||tt.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 At(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,w.of)()).pipe((0,f.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 tt=this._noDataRowOutlet.viewContainer;if(Ae){const ct=tt.createEmbeddedView(z.templateRef),St=ct.rootNodes[0];1===ct.rootNodes.length&&(null==St?void 0:St.nodeType)===this._document.ELEMENT_NODE&&(St.setAttribute("role","row"),St.classList.add(z._contentClassName))}else tt.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(u.DOCUMENT),i.\u0275\u0275directiveInject(b.t4),i.\u0275\u0275directiveInject(m.k),i.\u0275\u0275directiveInject(Ke),i.\u0275\u0275directiveInject(R.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,tt){if(1&z&&(i.\u0275\u0275contentQuery(tt,vt,5),i.\u0275\u0275contentQuery(tt,q,5),i.\u0275\u0275contentQuery(tt,pe,5),i.\u0275\u0275contentQuery(tt,Tt,5),i.\u0275\u0275contentQuery(tt,Y,5)),2&z){let ct;i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Ae._noDataRow=ct.first),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Ae._contentColumnDefs=ct),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Ae._contentRowDefs=ct),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Ae._contentHeaderRowDefs=ct),i.\u0275\u0275queryRefresh(ct=i.\u0275\u0275loadQuery())&&(Ae._contentFooterRowDefs=ct)}},viewQuery:function(z,Ae){if(1&z&&(i.\u0275\u0275viewQuery(Ye,7),i.\u0275\u0275viewQuery(rt,7),i.\u0275\u0275viewQuery(pt,7),i.\u0275\u0275viewQuery(gt,7)),2&z){let tt;i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae._rowOutlet=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae._headerRowOutlet=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae._footerRowOutlet=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae._noDataRowOutlet=tt.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:fe,useExisting:H},{provide:m.k,useClass:m.yy},{provide:Ke,useClass:me},{provide:re,useValue:null}])],ngContentSelectors:he,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(z,Ae){1&z&&(i.\u0275\u0275projectionDef(j),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:[rt,Ye,gt,pt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),H})();function Vt(H,Se){return H.concat(Array.from(Se))}let Tn=(()=>{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(tn,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 tt;i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae.columnDef=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae.cell=tt.first),i.\u0275\u0275queryRefresh(tt=i.\u0275\u0275loadQuery())&&(Ae.headerCell=tt.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,V,2,3,"th",1),i.\u0275\u0275template(2,le,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[q,De,X,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:[[R.Cl]]}),H})();var wt=l(508),bn=l(6451),Jt=l(9841),on=l(4004);const Ge=[[["caption"]],[["colgroup"],["col"]]],Qe=["caption","colgroup, col"];function W(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 P(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 L=(()=>{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})(),g=(()=>{class H extends tn{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:tn,useExisting:H},{provide:fe,useExisting:H},{provide:Ke,useClass:me},{provide:re,useValue:null}]),i.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Qe,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:[rt,Ye,gt,pt],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})(),O=(()=>{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})(),_e=(()=>{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})(),ot=(()=>{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})(),Ht=(()=>{class H extends X{}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})(),Fe=(()=>{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})(),$e=(()=>{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})(),de=(()=>{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})(),ft=(()=>{class H extends pe{}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:pe,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Lt=(()=>{class H extends xe{}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:xe,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})(),Ft=(()=>{class H extends ge{}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:ge,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})(),an=(()=>{class H extends Je{}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:Je,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})(),Mn=(()=>{class H extends vt{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:vt,useExisting:H}]),i.\u0275\u0275InheritDefinitionFeature]}),H})(),Vn=(()=>{class H extends Tn{}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,W,2,3,"th",1),i.\u0275\u0275template(2,P,2,3,"td",2),i.\u0275\u0275elementContainerEnd())},directives:[kt,_e,Ht,O,$e],encapsulation:2}),H})(),Jn=(()=>{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,wt.MatCommonModule],wt.MatCommonModule]}),H})();class Un 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 tt=z[Ae];if((0,d.t6)(tt)){const ct=Number(tt);return ct<9007199254740991?ct:tt}return tt},this.sortData=(z,Ae)=>{const tt=Ae.active,ct=Ae.direction;return tt&&""!=ct?z.sort((St,Nt)=>{let qt=this.sortingDataAccessor(St,tt),Cn=this.sortingDataAccessor(Nt,tt);const Bt=typeof qt,Pn=typeof Cn;Bt!==Pn&&("number"===Bt&&(qt+=""),"number"===Pn&&(Cn+=""));let ln=0;return null!=qt&&null!=Cn?qt>Cn?ln=1:qt<Cn&&(ln=-1):null!=qt?ln=1:null!=Cn&&(ln=-1),ln*("asc"==ct?1:-1)}):z},this.filterPredicate=(z,Ae)=>{const tt=Object.keys(z).reduce((St,Nt)=>St+z[Nt]+"\u25ec","").toLowerCase(),ct=Ae.trim().toLowerCase();return-1!=tt.indexOf(ct)},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,w.of)(null),Ae=this._paginator?(0,bn.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,w.of)(null),ct=(0,Jt.a)([this._data,this._filter]).pipe((0,on.U)(([qt])=>this._filterData(qt))),St=(0,Jt.a)([ct,z]).pipe((0,on.U)(([qt])=>this._orderData(qt))),Nt=(0,Jt.a)([St,Ae]).pipe((0,on.U)(([qt])=>this._pageData(qt)));null===(Se=this._renderChangesSubscription)||void 0===Se||Se.unsubscribe(),this._renderChangesSubscription=Nt.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,tt=Math.min(z.pageIndex,Ae);tt!==z.pageIndex&&(z.pageIndex=tt,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 Ln extends Un{}},3251:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_TAB:()=>Je,MAT_TABS_CONFIG:()=>ue,MAT_TAB_GROUP:()=>At,MatInkBar:()=>pe,MatTab:()=>ht,MatTabBody:()=>Oe,MatTabBodyPortal:()=>N,MatTabChangeEvent:()=>tn,MatTabContent:()=>xe,MatTabGroup:()=>rn,MatTabHeader:()=>Mt,MatTabLabel:()=>vt,MatTabLabelWrapper:()=>be,MatTabLink:()=>Ge,MatTabNav:()=>bn,MatTabNavPanel:()=>Qe,MatTabsModule:()=>W,_MAT_INK_BAR_POSITIONER:()=>qe,_MatTabBodyBase:()=>oe,_MatTabGroupBase:()=>Tn,_MatTabHeaderBase:()=>gt,_MatTabLinkBase:()=>on,_MatTabNavBase:()=>wt,matTabsAnimations:()=>Ze});var i=l(5664),d=l(7144),m=l(7429),u=l(9808),s=l(5e3),y=l(508),C=l(6360),D=l(6758),w=l(6921),f=l(4968),I=l(9646),T=l(6451),b=l(2805),R=l(1777),j=l(8675),he=l(1884),V=l(2722),le=l(226),Me=l(3191),fe=l(1159),ye=l(925),se=l(9071);function De(P,L){1&P&&s.\u0275\u0275projection(0)}const ke=["*"];function et(P,L){}const lt=function(P){return{animationDuration:P}},q=function(P,L){return{value:P,params:L}},Pe=["tabListContainer"],X=["tabList"],ae=["tabListInner"],Ie=["nextPaginator"],ne=["previousPaginator"],Ke=["tabBodyWrapper"],me=["tabHeader"];function st(P,L){}function ve(P,L){if(1&P&&s.\u0275\u0275template(0,st,0,0,"ng-template",10),2&P){const g=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275property("cdkPortalOutlet",g.templateLabel)}}function Ue(P,L){if(1&P&&s.\u0275\u0275text(0),2&P){const g=s.\u0275\u0275nextContext().$implicit;s.\u0275\u0275textInterpolate(g.textLabel)}}function ut(P,L){if(1&P){const g=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"div",6),s.\u0275\u0275listener("click",function(){const _e=s.\u0275\u0275restoreView(g),ot=_e.$implicit,kt=_e.index,Ht=s.\u0275\u0275nextContext(),Fe=s.\u0275\u0275reference(1);return Ht._handleClick(ot,Fe,kt)})("cdkFocusChange",function(_e){const kt=s.\u0275\u0275restoreView(g).index;return s.\u0275\u0275nextContext()._tabFocusChanged(_e,kt)}),s.\u0275\u0275elementStart(1,"div",7),s.\u0275\u0275template(2,ve,1,1,"ng-template",8),s.\u0275\u0275template(3,Ue,1,1,"ng-template",null,9,s.\u0275\u0275templateRefExtractor),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementEnd()}if(2&P){const g=L.$implicit,O=L.index,_e=s.\u0275\u0275reference(4),ot=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-label-active",ot.selectedIndex===O),s.\u0275\u0275property("id",ot._getTabLabelId(O))("ngClass",g.labelClass)("disabled",g.disabled)("matRippleDisabled",g.disabled||ot.disableRipple),s.\u0275\u0275attribute("tabIndex",ot._getTabIndex(g,O))("aria-posinset",O+1)("aria-setsize",ot._tabs.length)("aria-controls",ot._getTabContentId(O))("aria-selected",ot.selectedIndex===O)("aria-label",g.ariaLabel||null)("aria-labelledby",!g.ariaLabel&&g.ariaLabelledby?g.ariaLabelledby:null),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngIf",g.templateLabel)("ngIfElse",_e)}}function Tt(P,L){if(1&P){const g=s.\u0275\u0275getCurrentView();s.\u0275\u0275elementStart(0,"mat-tab-body",11),s.\u0275\u0275listener("_onCentered",function(){return s.\u0275\u0275restoreView(g),s.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(_e){return s.\u0275\u0275restoreView(g),s.\u0275\u0275nextContext()._setTabBodyWrapperHeight(_e)}),s.\u0275\u0275elementEnd()}if(2&P){const g=L.$implicit,O=L.index,_e=s.\u0275\u0275nextContext();s.\u0275\u0275classProp("mat-tab-body-active",_e.selectedIndex===O),s.\u0275\u0275property("id",_e._getTabContentId(O))("ngClass",g.bodyClass)("content",g.content)("position",g.position)("origin",g.origin)("animationDuration",_e.animationDuration),s.\u0275\u0275attribute("tabindex",null!=_e.contentTabIndex&&_e.selectedIndex===O?_e.contentTabIndex:null)("aria-labelledby",_e._getTabLabelId(O))}}const Ne=["mat-tab-nav-bar",""],qe=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 pe=(()=>{class P{constructor(g,O,_e,ot){this._elementRef=g,this._ngZone=O,this._inkBarPositioner=_e,this._animationMode=ot}alignToElement(g){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(g))}):this._setStyles(g)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(g){const O=this._inkBarPositioner(g),_e=this._elementRef.nativeElement;_e.style.left=O.left,_e.style.width=O.width}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(qe),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(g,O){2&g&&s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===O._animationMode)}}),P})();const we=new s.InjectionToken("MatTabContent");let xe=(()=>{class P{constructor(g){this.template=g}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(s.TemplateRef))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["","matTabContent",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:we,useExisting:P}])]}),P})();const ge=new s.InjectionToken("MatTabLabel"),Je=new s.InjectionToken("MAT_TAB");let vt=(()=>{class P extends m.ig{constructor(g,O,_e){super(g,O),this._closestTab=_e}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(s.TemplateRef),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(Je,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[s.\u0275\u0275ProvidersFeature([{provide:ge,useExisting:P}]),s.\u0275\u0275InheritDefinitionFeature]}),P})();const Et=(0,y.mixinDisabled)(class{}),At=new s.InjectionToken("MAT_TAB_GROUP");let ht=(()=>{class P extends Et{constructor(g,O){super(),this._viewContainerRef=g,this._closestTabGroup=O,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(g){this._setTemplateLabelInput(g)}get content(){return this._contentPortal}ngOnChanges(g){(g.hasOwnProperty("textLabel")||g.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new m.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(g){g&&g._closestTab===this&&(this._templateLabel=g)}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject(At,8))},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["mat-tab"]],contentQueries:function(g,O,_e){if(1&g&&(s.\u0275\u0275contentQuery(_e,ge,5),s.\u0275\u0275contentQuery(_e,we,7,s.TemplateRef)),2&g){let ot;s.\u0275\u0275queryRefresh(ot=s.\u0275\u0275loadQuery())&&(O.templateLabel=ot.first),s.\u0275\u0275queryRefresh(ot=s.\u0275\u0275loadQuery())&&(O._explicitContent=ot.first)}},viewQuery:function(g,O){if(1&g&&s.\u0275\u0275viewQuery(s.TemplateRef,7),2&g){let _e;s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._implicitContent=_e.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[s.\u0275\u0275ProvidersFeature([{provide:Je,useExisting:P}]),s.\u0275\u0275InheritDefinitionFeature,s.\u0275\u0275NgOnChangesFeature],ngContentSelectors:ke,decls:1,vars:0,template:function(g,O){1&g&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275template(0,De,1,0,"ng-template"))},encapsulation:2}),P})();const Ze={translateTab:(0,R.X$)("translateTab",[(0,R.SB)("center, void, left-origin-center, right-origin-center",(0,R.oB)({transform:"none"})),(0,R.SB)("left",(0,R.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,R.SB)("right",(0,R.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,R.eR)("* => left, * => right, left => center, right => center",(0,R.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,R.eR)("void => left-origin-center",[(0,R.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,R.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,R.eR)("void => right-origin-center",[(0,R.oB)({transform:"translate3d(100%, 0, 0)"}),(0,R.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let N=(()=>{class P extends m.Pl{constructor(g,O,_e,ot){super(g,O,ot),this._host=_e,this._centeringSub=w.w0.EMPTY,this._leavingSub=w.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,j.O)(this._host._isCenterPosition(this._host._position))).subscribe(g=>{g&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(s.ComponentFactoryResolver),s.\u0275\u0275directiveInject(s.ViewContainerRef),s.\u0275\u0275directiveInject((0,s.forwardRef)(()=>Oe)),s.\u0275\u0275directiveInject(u.DOCUMENT))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["","matTabBodyHost",""]],features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),oe=(()=>{class P{constructor(g,O,_e){this._elementRef=g,this._dir=O,this._dirChangeSubscription=w.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",O&&(this._dirChangeSubscription=O.change.subscribe(ot=>{this._computePositionAnimationState(ot),_e.markForCheck()})),this._translateTabComplete.pipe((0,he.x)((ot,kt)=>ot.fromState===kt.fromState&&ot.toState===kt.toState)).subscribe(ot=>{this._isCenterPosition(ot.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(ot.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(g){this._positionIndex=g,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(g){const O=this._isCenterPosition(g.toState);this._beforeCentering.emit(O),O&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(g){return"center"==g||"left-origin-center"==g||"right-origin-center"==g}_computePositionAnimationState(g=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==g?"left":"right":this._positionIndex>0?"ltr"==g?"right":"left":"center"}_computePositionFromOrigin(g){const O=this._getLayoutDirection();return"ltr"==O&&g<=0||"rtl"==O&&g>0?"left-origin-center":"right-origin-center"}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(le.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),P})(),Oe=(()=>{class P extends oe{constructor(g,O,_e){super(g,O,_e)}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(le.Is,8),s.\u0275\u0275directiveInject(s.ChangeDetectorRef))},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["mat-tab-body"]],viewQuery:function(g,O){if(1&g&&s.\u0275\u0275viewQuery(m.Pl,5),2&g){let _e;s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._portalHost=_e.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(g,O){1&g&&(s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("@translateTab.start",function(ot){return O._onTranslateTabStarted(ot)})("@translateTab.done",function(ot){return O._translateTabComplete.next(ot)}),s.\u0275\u0275template(2,et,0,0,"ng-template",2),s.\u0275\u0275elementEnd()),2&g&&s.\u0275\u0275property("@translateTab",s.\u0275\u0275pureFunction2(3,q,O._position,s.\u0275\u0275pureFunction1(1,lt,O.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:[Ze.translateTab]}}),P})();const ue=new s.InjectionToken("MAT_TABS_CONFIG"),Te=(0,y.mixinDisabled)(class{});let be=(()=>{class P extends Te{constructor(g){super(),this.elementRef=g}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(s.ElementRef))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(g,O){2&g&&(s.\u0275\u0275attribute("aria-disabled",!!O.disabled),s.\u0275\u0275classProp("mat-tab-disabled",O.disabled))},inputs:{disabled:"disabled"},features:[s.\u0275\u0275InheritDefinitionFeature]}),P})();const re=(0,ye.i$)({passive:!0});let pt=(()=>{class P{constructor(g,O,_e,ot,kt,Ht,Fe){this._elementRef=g,this._changeDetectorRef=O,this._viewportRuler=_e,this._dir=ot,this._ngZone=kt,this._platform=Ht,this._animationMode=Fe,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,kt.runOutsideAngular(()=>{(0,f.R)(g.nativeElement,"mouseleave").pipe((0,V.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(g){g=(0,Me.su)(g),this._selectedIndex!=g&&(this._selectedIndexChanged=!0,this._selectedIndex=g,this._keyManager&&this._keyManager.updateActiveItem(g))}ngAfterViewInit(){(0,f.R)(this._previousPaginator.nativeElement,"touchstart",re).pipe((0,V.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,f.R)(this._nextPaginator.nativeElement,"touchstart",re).pipe((0,V.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const g=this._dir?this._dir.change:(0,I.of)("ltr"),O=this._viewportRuler.change(150),_e=()=>{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(_e):_e(),(0,T.T)(g,O,this._items.changes).pipe((0,V.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(_e)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,V.R)(this._destroyed)).subscribe(ot=>{this.indexFocused.emit(ot),this._setTabFocus(ot)})}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(g){if(!(0,fe.Vb)(g))switch(g.keyCode){case fe.K5:case fe.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(g));break;default:this._keyManager.onKeydown(g)}}_onContentChanges(){const g=this._elementRef.nativeElement.textContent;g!==this._currentTextContent&&(this._currentTextContent=g||"",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(g){!this._isValidIndex(g)||this.focusIndex===g||!this._keyManager||this._keyManager.setActiveItem(g)}_isValidIndex(g){if(!this._items)return!0;const O=this._items?this._items.toArray()[g]:null;return!!O&&!O.disabled}_setTabFocus(g){if(this._showPaginationControls&&this._scrollToLabel(g),this._items&&this._items.length){this._items.toArray()[g].focus();const O=this._tabListContainer.nativeElement;O.scrollLeft="ltr"==this._getLayoutDirection()?0:O.scrollWidth-O.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const g=this.scrollDistance,O="ltr"===this._getLayoutDirection()?-g:g;this._tabList.nativeElement.style.transform=`translateX(${Math.round(O)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(g){this._scrollTo(g)}_scrollHeader(g){return this._scrollTo(this._scrollDistance+("before"==g?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(g){this._stopInterval(),this._scrollHeader(g)}_scrollToLabel(g){if(this.disablePagination)return;const O=this._items?this._items.toArray()[g]:null;if(!O)return;const _e=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:ot,offsetWidth:kt}=O.elementRef.nativeElement;let Ht,Fe;"ltr"==this._getLayoutDirection()?(Ht=ot,Fe=Ht+kt):(Fe=this._tabListInner.nativeElement.offsetWidth-ot,Ht=Fe-kt);const $e=this.scrollDistance,de=this.scrollDistance+_e;Ht<$e?this.scrollDistance-=$e-Ht+60:Fe>de&&(this.scrollDistance+=Fe-de+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const g=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;g||(this.scrollDistance=0),g!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=g}}_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 g=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,O=g?g.elementRef.nativeElement:null;O?this._inkBar.alignToElement(O):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(g,O){O&&null!=O.button&&0!==O.button||(this._stopInterval(),(0,b.H)(650,100).pipe((0,V.R)((0,T.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:_e,distance:ot}=this._scrollHeader(g);(0===ot||ot>=_e)&&this._stopInterval()}))}_scrollTo(g){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const O=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(O,g)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:O,distance:this._scrollDistance}}}return P.\u0275fac=function(g){return new(g||P)(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))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{disablePagination:"disablePagination"}}),P})(),gt=(()=>{class P extends pt{constructor(g,O,_e,ot,kt,Ht,Fe){super(g,O,_e,ot,kt,Ht,Fe),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(g){this._disableRipple=(0,Me.Ig)(g)}_itemSelected(g){g.preventDefault()}}return P.\u0275fac=function(g){return new(g||P)(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))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{disableRipple:"disableRipple"},features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),Mt=(()=>{class P extends gt{constructor(g,O,_e,ot,kt,Ht,Fe){super(g,O,_e,ot,kt,Ht,Fe)}}return P.\u0275fac=function(g){return new(g||P)(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))},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["mat-tab-header"]],contentQueries:function(g,O,_e){if(1&g&&s.\u0275\u0275contentQuery(_e,be,4),2&g){let ot;s.\u0275\u0275queryRefresh(ot=s.\u0275\u0275loadQuery())&&(O._items=ot)}},viewQuery:function(g,O){if(1&g&&(s.\u0275\u0275viewQuery(pe,7),s.\u0275\u0275viewQuery(Pe,7),s.\u0275\u0275viewQuery(X,7),s.\u0275\u0275viewQuery(ae,7),s.\u0275\u0275viewQuery(Ie,5),s.\u0275\u0275viewQuery(ne,5)),2&g){let _e;s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._inkBar=_e.first),s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._tabListContainer=_e.first),s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._tabList=_e.first),s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._tabListInner=_e.first),s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._nextPaginator=_e.first),s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._previousPaginator=_e.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(g,O){2&g&&s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",O._showPaginationControls)("mat-tab-header-rtl","rtl"==O._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(g,O){1&g&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return O._handlePaginatorClick("before")})("mousedown",function(ot){return O._handlePaginatorPress("before",ot)})("touchend",function(){return O._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(ot){return O._handleKeydown(ot)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return O._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(ot){return O._handlePaginatorPress("after",ot)})("click",function(){return O._handlePaginatorClick("after")})("touchend",function(){return O._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&g&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",O._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",O._disableScrollBefore||O.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===O._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",O._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",O._disableScrollAfter||O.disableRipple))},directives:[y.MatRipple,d.wD,pe],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n"],encapsulation:2}),P})(),jt=0;class tn{}const Vt=(0,y.mixinColor)((0,y.mixinDisableRipple)(class{constructor(P){this._elementRef=P}}),"primary");let Tn=(()=>{class P extends Vt{constructor(g,O,_e,ot){var kt;super(g),this._changeDetectorRef=O,this._animationMode=ot,this._tabs=new s.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=w.w0.EMPTY,this._tabLabelSubscription=w.w0.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new s.EventEmitter,this.focusChange=new s.EventEmitter,this.animationDone=new s.EventEmitter,this.selectedTabChange=new s.EventEmitter(!0),this._groupId=jt++,this.animationDuration=_e&&_e.animationDuration?_e.animationDuration:"500ms",this.disablePagination=!(!_e||null==_e.disablePagination)&&_e.disablePagination,this.dynamicHeight=!(!_e||null==_e.dynamicHeight)&&_e.dynamicHeight,this.contentTabIndex=null!==(kt=null==_e?void 0:_e.contentTabIndex)&&void 0!==kt?kt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(g){this._dynamicHeight=(0,Me.Ig)(g)}get selectedIndex(){return this._selectedIndex}set selectedIndex(g){this._indexToSelect=(0,Me.su)(g,null)}get animationDuration(){return this._animationDuration}set animationDuration(g){this._animationDuration=/^\d+$/.test(g+"")?g+"ms":g}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(g){this._contentTabIndex=(0,Me.su)(g,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(g){const O=this._elementRef.nativeElement;O.classList.remove(`mat-background-${this.backgroundColor}`),g&&O.classList.add(`mat-background-${g}`),this._backgroundColor=g}ngAfterContentChecked(){const g=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=g){const O=null==this._selectedIndex;if(!O){this.selectedTabChange.emit(this._createChangeEvent(g));const _e=this._tabBodyWrapper.nativeElement;_e.style.minHeight=_e.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((_e,ot)=>_e.isActive=ot===g),O||(this.selectedIndexChange.emit(g),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((O,_e)=>{O.position=_e-g,null!=this._selectedIndex&&0==O.position&&!O.origin&&(O.origin=g-this._selectedIndex)}),this._selectedIndex!==g&&(this._selectedIndex=g,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const O=this._tabs.toArray();for(let _e=0;_e<O.length;_e++)if(O[_e].isActive){this._indexToSelect=this._selectedIndex=_e;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,j.O)(this._allTabs)).subscribe(g=>{this._tabs.reset(g.filter(O=>O._closestTabGroup===this||!O._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(g){const O=this._tabHeader;O&&(O.focusIndex=g)}_focusChanged(g){this.focusChange.emit(this._createChangeEvent(g))}_createChangeEvent(g){const O=new tn;return O.index=g,this._tabs&&this._tabs.length&&(O.tab=this._tabs.toArray()[g]),O}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,T.T)(...this._tabs.map(g=>g._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(g){return Math.min(this._tabs.length-1,Math.max(g||0,0))}_getTabLabelId(g){return`mat-tab-label-${this._groupId}-${g}`}_getTabContentId(g){return`mat-tab-content-${this._groupId}-${g}`}_setTabBodyWrapperHeight(g){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const O=this._tabBodyWrapper.nativeElement;O.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(O.style.height=g+"px")}_removeTabBodyWrapperHeight(){const g=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=g.clientHeight,g.style.height="",this.animationDone.emit()}_handleClick(g,O,_e){g.disabled||(this.selectedIndex=O.focusIndex=_e)}_getTabIndex(g,O){return g.disabled?null:this.selectedIndex===O?0:-1}_tabFocusChanged(g,O){g&&"mouse"!==g&&"touch"!==g&&(this._tabHeader.focusIndex=O)}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue,8),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),rn=(()=>{class P extends Tn{constructor(g,O,_e,ot){super(g,O,_e,ot)}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.ChangeDetectorRef),s.\u0275\u0275directiveInject(ue,8),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["mat-tab-group"]],contentQueries:function(g,O,_e){if(1&g&&s.\u0275\u0275contentQuery(_e,ht,5),2&g){let ot;s.\u0275\u0275queryRefresh(ot=s.\u0275\u0275loadQuery())&&(O._allTabs=ot)}},viewQuery:function(g,O){if(1&g&&(s.\u0275\u0275viewQuery(Ke,5),s.\u0275\u0275viewQuery(me,5)),2&g){let _e;s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._tabBodyWrapper=_e.first),s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._tabHeader=_e.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(g,O){2&g&&s.\u0275\u0275classProp("mat-tab-group-dynamic-height",O.dynamicHeight)("mat-tab-group-inverted-header","below"===O.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[s.\u0275\u0275ProvidersFeature([{provide:At,useExisting:P}]),s.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(g,O){1&g&&(s.\u0275\u0275elementStart(0,"mat-tab-header",0,1),s.\u0275\u0275listener("indexFocused",function(ot){return O._focusChanged(ot)})("selectFocusedIndex",function(ot){return O.selectedIndex=ot}),s.\u0275\u0275template(2,ut,5,15,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275template(5,Tt,1,10,"mat-tab-body",5),s.\u0275\u0275elementEnd()),2&g&&(s.\u0275\u0275property("selectedIndex",O.selectedIndex||0)("disableRipple",O.disableRipple)("disablePagination",O.disablePagination),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",O._tabs),s.\u0275\u0275advance(1),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===O._animationMode),s.\u0275\u0275advance(2),s.\u0275\u0275property("ngForOf",O._tabs))},directives:[Mt,Oe,u.NgForOf,be,y.MatRipple,i.kH,u.NgClass,u.NgIf,m.Pl],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),P})(),zt=0,wt=(()=>{class P extends pt{constructor(g,O,_e,ot,kt,Ht,Fe){super(g,ot,kt,O,_e,Ht,Fe),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(g){const O=this._elementRef.nativeElement.classList;O.remove(`mat-background-${this.backgroundColor}`),g&&O.add(`mat-background-${g}`),this._backgroundColor=g}get disableRipple(){return this._disableRipple}set disableRipple(g){this._disableRipple=(0,Me.Ig)(g)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,j.O)(null),(0,V.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const g=this._items.toArray();for(let O=0;O<g.length;O++)if(g[O].active)return this.selectedIndex=O,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=g[O].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return P.\u0275fac=function(g){return new(g||P)(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))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),bn=(()=>{class P extends wt{constructor(g,O,_e,ot,kt,Ht,Fe){super(g,O,_e,ot,kt,Ht,Fe)}}return P.\u0275fac=function(g){return new(g||P)(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))},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(g,O,_e){if(1&g&&s.\u0275\u0275contentQuery(_e,Ge,5),2&g){let ot;s.\u0275\u0275queryRefresh(ot=s.\u0275\u0275loadQuery())&&(O._items=ot)}},viewQuery:function(g,O){if(1&g&&(s.\u0275\u0275viewQuery(pe,7),s.\u0275\u0275viewQuery(Pe,7),s.\u0275\u0275viewQuery(X,7),s.\u0275\u0275viewQuery(ae,7),s.\u0275\u0275viewQuery(Ie,5),s.\u0275\u0275viewQuery(ne,5)),2&g){let _e;s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._inkBar=_e.first),s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._tabListContainer=_e.first),s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._tabList=_e.first),s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._tabListInner=_e.first),s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._nextPaginator=_e.first),s.\u0275\u0275queryRefresh(_e=s.\u0275\u0275loadQuery())&&(O._previousPaginator=_e.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(g,O){2&g&&(s.\u0275\u0275attribute("role",O._getRole()),s.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",O._showPaginationControls)("mat-tab-header-rtl","rtl"==O._getLayoutDirection())("mat-primary","warn"!==O.color&&"accent"!==O.color)("mat-accent","accent"===O.color)("mat-warn","warn"===O.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[s.\u0275\u0275InheritDefinitionFeature],attrs:Ne,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(g,O){1&g&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275elementStart(0,"div",0,1),s.\u0275\u0275listener("click",function(){return O._handlePaginatorClick("before")})("mousedown",function(ot){return O._handlePaginatorPress("before",ot)})("touchend",function(){return O._stopInterval()}),s.\u0275\u0275element(2,"div",2),s.\u0275\u0275elementEnd(),s.\u0275\u0275elementStart(3,"div",3,4),s.\u0275\u0275listener("keydown",function(ot){return O._handleKeydown(ot)}),s.\u0275\u0275elementStart(5,"div",5,6),s.\u0275\u0275listener("cdkObserveContent",function(){return O._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(ot){return O._handlePaginatorPress("after",ot)})("click",function(){return O._handlePaginatorClick("after")})("touchend",function(){return O._stopInterval()}),s.\u0275\u0275element(13,"div",2),s.\u0275\u0275elementEnd()),2&g&&(s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",O._disableScrollBefore),s.\u0275\u0275property("matRippleDisabled",O._disableScrollBefore||O.disableRipple),s.\u0275\u0275advance(5),s.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===O._animationMode),s.\u0275\u0275advance(6),s.\u0275\u0275classProp("mat-tab-header-pagination-disabled",O._disableScrollAfter),s.\u0275\u0275property("matRippleDisabled",O._disableScrollAfter||O.disableRipple))},directives:[y.MatRipple,d.wD,pe],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n"],encapsulation:2}),P})();const Jt=(0,y.mixinTabIndex)((0,y.mixinDisableRipple)((0,y.mixinDisabled)(class{})));let on=(()=>{class P extends Jt{constructor(g,O,_e,ot,kt,Ht){super(),this._tabNavBar=g,this.elementRef=O,this._focusMonitor=kt,this._isActive=!1,this.id="mat-tab-link-"+zt++,this.rippleConfig=_e||{},this.tabIndex=parseInt(ot)||0,"NoopAnimations"===Ht&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(g){const O=(0,Me.Ig)(g);O!==this._isActive&&(this._isActive=O,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(g){this._tabNavBar.tabPanel&&g.keyCode===fe.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var g;return this._tabNavBar.tabPanel?null===(g=this._tabNavBar.tabPanel)||void 0===g?void 0:g.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive?0:-1:this.tabIndex}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(wt),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(y.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,inputs:{active:"active",id:"id"},features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),Ge=(()=>{class P extends on{constructor(g,O,_e,ot,kt,Ht,Fe,$e){super(g,O,kt,Ht,Fe,$e),this._tabLinkRipple=new y.RippleRenderer(this,_e,O,ot),this._tabLinkRipple.setupTriggerEvents(O.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return P.\u0275fac=function(g){return new(g||P)(s.\u0275\u0275directiveInject(bn),s.\u0275\u0275directiveInject(s.ElementRef),s.\u0275\u0275directiveInject(s.NgZone),s.\u0275\u0275directiveInject(ye.t4),s.\u0275\u0275directiveInject(y.MAT_RIPPLE_GLOBAL_OPTIONS,8),s.\u0275\u0275injectAttribute("tabindex"),s.\u0275\u0275directiveInject(i.tE),s.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8))},P.\u0275dir=s.\u0275\u0275defineDirective({type:P,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(g,O){1&g&&s.\u0275\u0275listener("focus",function(){return O._handleFocus()})("keydown",function(ot){return O._handleKeydown(ot)}),2&g&&(s.\u0275\u0275attribute("aria-controls",O._getAriaControls())("aria-current",O._getAriaCurrent())("aria-disabled",O.disabled)("aria-selected",O._getAriaSelected())("id",O.id)("tabIndex",O._getTabIndex())("role",O._getRole()),s.\u0275\u0275classProp("mat-tab-disabled",O.disabled)("mat-tab-label-active",O.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[s.\u0275\u0275InheritDefinitionFeature]}),P})(),Qe=(()=>{class P{constructor(){this.id="mat-tab-nav-panel-"+zt++}}return P.\u0275fac=function(g){return new(g||P)},P.\u0275cmp=s.\u0275\u0275defineComponent({type:P,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(g,O){2&g&&s.\u0275\u0275attribute("aria-labelledby",O._activeTabId)("id",O.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:ke,decls:1,vars:0,template:function(g,O){1&g&&(s.\u0275\u0275projectionDef(),s.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),P})(),W=(()=>{class P{}return P.\u0275fac=function(g){return new(g||P)},P.\u0275mod=s.\u0275\u0275defineNgModule({type:P}),P.\u0275inj=s.\u0275\u0275defineInjector({imports:[[u.CommonModule,y.MatCommonModule,m.eL,y.MatRippleModule,d.Q8,i.rt],y.MatCommonModule]}),P})()},7238:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>q,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>Pe,MAT_TOOLTIP_SCROLL_STRATEGY:()=>ke,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>et,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>lt,MatTooltip:()=>ae,MatTooltipModule:()=>Ke,SCROLL_THROTTLE_MS:()=>le,TOOLTIP_PANEL_CLASS:()=>Me,TooltipComponent:()=>ne,_MatTooltipBase:()=>X,_TooltipComponentBase:()=>Ie,getMatTooltipInvalidPositionError:()=>De,matTooltipAnimations:()=>V});var i=l(1314),d=l(5664),m=l(9808),u=l(5e3),s=l(508),y=l(9071),C=l(3191),D=l(1159),w=l(5113),f=l(925),I=l(7429),T=l(6758),b=l(2722),R=l(5698),j=l(1777),he=l(226);const V={tooltipState:(0,j.X$)("state",[(0,j.SB)("initial, void, hidden",(0,j.oB)({opacity:0,transform:"scale(0)"})),(0,j.SB)("visible",(0,j.oB)({transform:"scale(1)"})),(0,j.eR)("* => visible",(0,j.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,j.F4)([(0,j.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,j.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,j.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,j.eR)("* => hidden",(0,j.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,j.oB)({opacity:0})))])},le=20,Me="mat-tooltip-panel",fe="tooltip-panel",ye=(0,f.i$)({passive:!0});function De(me){return Error(`Tooltip position "${me}" is invalid.`)}const ke=new u.InjectionToken("mat-tooltip-scroll-strategy");function et(me){return()=>me.scrollStrategies.reposition({scrollThrottle:le})}const lt={provide:ke,deps:[i.aV],useFactory:et},q=new u.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:Pe});function Pe(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let X=(()=>{class me{constructor(ve,Ue,ut,Tt,Ne,qe,Y,pe,we,xe,ge,Je){this._overlay=ve,this._elementRef=Ue,this._scrollDispatcher=ut,this._viewContainerRef=Tt,this._ngZone=Ne,this._platform=qe,this._ariaDescriber=Y,this._focusMonitor=pe,this._dir=xe,this._defaultOptions=ge,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=Je,ge&&(ge.position&&(this.position=ge.position),ge.touchGestures&&(this.touchGestures=ge.touchGestures)),xe.change.pipe((0,b.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(ve){var Ue;ve!==this._position&&(this._position=ve,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(Ue=this._tooltipInstance)||void 0===Ue||Ue.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(([Ue,ut])=>{ve.removeEventListener(Ue,ut,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 Ue=this._createOverlay();this._detach(),this._portal=this._portal||new I.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=Ue.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),Ue=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ve);return Ue.positionChanges.pipe((0,b.R)(this._destroyed)).subscribe(ut=>{this._updateCurrentPositionClass(ut.connectionPair),this._tooltipInstance&&ut.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:Ue,panelClass:`${this._cssClassPrefix}-${fe}`,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 ut;return null===(ut=this._tooltipInstance)||void 0===ut?void 0:ut._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,b.R)(this._destroyed)).subscribe(ut=>{this._isTooltipVisible()&&ut.keyCode===D.hY&&!(0,D.Vb)(ut)&&(ut.preventDefault(),ut.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(ve){const Ue=ve.getConfig().positionStrategy,ut=this._getOrigin(),Tt=this._getOverlayPosition();Ue.withPositions([this._addOffset(Object.assign(Object.assign({},ut.main),Tt.main)),this._addOffset(Object.assign(Object.assign({},ut.fallback),Tt.fallback))])}_addOffset(ve){return ve}_getOrigin(){const ve=!this._dir||"ltr"==this._dir.value,Ue=this.position;let ut;"above"==Ue||"below"==Ue?ut={originX:"center",originY:"above"==Ue?"top":"bottom"}:"before"==Ue||"left"==Ue&&ve||"right"==Ue&&!ve?ut={originX:"start",originY:"center"}:("after"==Ue||"right"==Ue&&ve||"left"==Ue&&!ve)&&(ut={originX:"end",originY:"center"});const{x:Tt,y:Ne}=this._invertPosition(ut.originX,ut.originY);return{main:ut,fallback:{originX:Tt,originY:Ne}}}_getOverlayPosition(){const ve=!this._dir||"ltr"==this._dir.value,Ue=this.position;let ut;"above"==Ue?ut={overlayX:"center",overlayY:"bottom"}:"below"==Ue?ut={overlayX:"center",overlayY:"top"}:"before"==Ue||"left"==Ue&&ve||"right"==Ue&&!ve?ut={overlayX:"end",overlayY:"center"}:("after"==Ue||"right"==Ue&&ve||"left"==Ue&&!ve)&&(ut={overlayX:"start",overlayY:"center"});const{x:Tt,y:Ne}=this._invertPosition(ut.overlayX,ut.overlayY);return{main:ut,fallback:{overlayX:Tt,overlayY:Ne}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,R.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,Ue){return"above"===this.position||"below"===this.position?"top"===Ue?Ue="bottom":"bottom"===Ue&&(Ue="top"):"end"===ve?ve="start":"start"===ve&&(ve="end"),{x:ve,y:Ue}}_updateCurrentPositionClass(ve){const{overlayY:Ue,originX:ut,originY:Tt}=ve;let Ne;if(Ne="center"===Ue?this._dir&&"rtl"===this._dir.value?"end"===ut?"left":"right":"start"===ut?"left":"right":"bottom"===Ue&&"top"===Tt?"above":"below",Ne!==this._currentPosition){const qe=this._overlayRef;if(qe){const Y=`${this._cssClassPrefix}-${fe}-`;qe.removePanelClass(Y+this._currentPosition),qe.addPanelClass(Y+Ne)}this._currentPosition=Ne}}_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",Ue=>this._wheelListener(Ue)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const Ue=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};ve.push(["touchend",Ue],["touchcancel",Ue])}this._addListeners(ve),this._passiveListeners.push(...ve)}_addListeners(ve){ve.forEach(([Ue,ut])=>{this._elementRef.nativeElement.addEventListener(Ue,ut,ye)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(ve){if(this._isTooltipVisible()){const Ue=this._document.elementFromPoint(ve.clientX,ve.clientY),ut=this._elementRef.nativeElement;Ue!==ut&&!ut.contains(Ue)&&this.hide()}}_disableNativeGesturesIfNecessary(){const ve=this.touchGestures;if("off"!==ve){const Ue=this._elementRef.nativeElement,ut=Ue.style;("on"===ve||"INPUT"!==Ue.nodeName&&"TEXTAREA"!==Ue.nodeName)&&(ut.userSelect=ut.msUserSelect=ut.webkitUserSelect=ut.MozUserSelect="none"),("on"===ve||!Ue.draggable)&&(ut.webkitUserDrag="none"),ut.touchAction="none",ut.webkitTapHighlightColor="transparent"}}}return me.\u0275fac=function(ve){u.\u0275\u0275invalidFactory()},me.\u0275dir=u.\u0275\u0275defineDirective({type:me,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),me})(),ae=(()=>{class me extends X{constructor(ve,Ue,ut,Tt,Ne,qe,Y,pe,we,xe,ge,Je){super(ve,Ue,ut,Tt,Ne,qe,Y,pe,we,xe,ge,Je),this._tooltipComponent=ne}}return me.\u0275fac=function(ve){return new(ve||me)(u.\u0275\u0275directiveInject(i.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(y.mF),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(f.t4),u.\u0275\u0275directiveInject(d.$s),u.\u0275\u0275directiveInject(d.tE),u.\u0275\u0275directiveInject(ke),u.\u0275\u0275directiveInject(he.Is,8),u.\u0275\u0275directiveInject(q,8),u.\u0275\u0275directiveInject(m.DOCUMENT))},me.\u0275dir=u.\u0275\u0275defineDirective({type:me,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[u.\u0275\u0275InheritDefinitionFeature]}),me})(),Ie=(()=>{class me{constructor(ve){this._changeDetectorRef=ve,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new T.x}show(ve){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},ve)}hide(ve){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},ve)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(ve){const Ue=ve.toState;"hidden"===Ue&&!this.isVisible()&&this._onHide.next(),("visible"===Ue||"hidden"===Ue)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return me.\u0275fac=function(ve){return new(ve||me)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},me.\u0275dir=u.\u0275\u0275defineDirective({type:me}),me})(),ne=(()=>{class me extends Ie{constructor(ve,Ue){super(ve),this._breakpointObserver=Ue,this._isHandset=this._breakpointObserver.observe(w.Breakpoints.Handset)}}return me.\u0275fac=function(ve){return new(ve||me)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(w.BreakpointObserver))},me.\u0275cmp=u.\u0275\u0275defineComponent({type:me,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(ve,Ue){2&ve&&u.\u0275\u0275styleProp("zoom","visible"===Ue._visibility?1:null)},features:[u.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(ve,Ue){if(1&ve&&(u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("@state.start",function(){return Ue._animationStart()})("@state.done",function(Tt){return Ue._animationDone(Tt)}),u.\u0275\u0275pipe(1,"async"),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()),2&ve){let ut;u.\u0275\u0275classProp("mat-tooltip-handset",null==(ut=u.\u0275\u0275pipeBind1(1,5,Ue._isHandset))?null:ut.matches),u.\u0275\u0275property("ngClass",Ue.tooltipClass)("@state",Ue._visibility),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(Ue.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:[V.tooltipState]},changeDetection:0}),me})(),Ke=(()=>{class me{}return me.\u0275fac=function(ve){return new(ve||me)},me.\u0275mod=u.\u0275\u0275defineNgModule({type:me}),me.\u0275inj=u.\u0275\u0275defineInjector({providers:[lt],imports:[[d.rt,m.CommonModule,i.U8,s.MatCommonModule],s.MatCommonModule,y.ZD]}),me})()},6360:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{ANIMATION_MODULE_TYPE:()=>Xe,BrowserAnimationsModule:()=>xi,NoopAnimationsModule:()=>hr,\u0275AnimationRenderer:()=>hn,\u0275AnimationRendererFactory:()=>wn,\u0275BrowserAnimationBuilder:()=>x,\u0275BrowserAnimationFactory:()=>ie,\u0275InjectableAnimationEngine:()=>k});var i=l(5e3),d=l(2313),m=l(1777);function u(){return"undefined"!=typeof window&&void 0!==window.document}function s(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function y(K){switch(K.length){case 0:return new m.ZN;case 1:return K[0];default:return new m.ZE(K)}}function C(K,h,c,E,U={},ce={}){const Le=[],He=[];let nt=-1,mt=null;if(E.forEach(Ot=>{const Gt=Ot.offset,cn=Gt==nt,pn=cn&&mt||{};Object.keys(Ot).forEach(Zt=>{let Qt=Zt,un=Ot[Zt];if("offset"!==Zt)switch(Qt=h.normalizePropertyName(Qt,Le),un){case m.k1:un=U[Zt];break;case m.l3:un=ce[Zt];break;default:un=h.normalizeStyleValue(Zt,Qt,un,Le)}pn[Qt]=un}),cn||He.push(pn),mt=pn,nt=Gt}),Le.length){const Ot="\n - ";throw new Error(`Unable to animate due to the following errors:${Ot}${Le.join(Ot)}`)}return He}function D(K,h,c,E){switch(h){case"start":K.onStart(()=>E(c&&w(c,"start",K)));break;case"done":K.onDone(()=>E(c&&w(c,"done",K)));break;case"destroy":K.onDestroy(()=>E(c&&w(c,"destroy",K)))}}function w(K,h,c){const E=c.totalTime,ce=f(K.element,K.triggerName,K.fromState,K.toState,h||K.phaseName,null==E?K.totalTime:E,!!c.disabled),Le=K._data;return null!=Le&&(ce._data=Le),ce}function f(K,h,c,E,U="",ce=0,Le){return{element:K,triggerName:h,fromState:c,toState:E,phaseName:U,totalTime:ce,disabled:!!Le}}function I(K,h,c){let E;return K instanceof Map?(E=K.get(h),E||K.set(h,E=c)):(E=K[h],E||(E=K[h]=c)),E}function T(K){const h=K.indexOf(":");return[K.substring(1,h),K.substr(h+1)]}let b=(K,h)=>!1,R=(K,h,c)=>[];(s()||"undefined"!=typeof Element)&&(b=u()?(K,h)=>{for(;h&&h!==document.documentElement;){if(h===K)return!0;h=h.parentNode||h.host}return!1}:(K,h)=>K.contains(h),R=(K,h,c)=>{if(c)return Array.from(K.querySelectorAll(h));const E=K.querySelector(h);return E?[E]:[]});let V=null,le=!1;function Me(K){V||(V=function fe(){return"undefined"!=typeof document?document.body:null}()||{},le=!!V.style&&"WebkitAppearance"in V.style);let h=!0;return V.style&&!function he(K){return"ebkit"==K.substring(1,6)}(K)&&(h=K in V.style,!h&&le&&(h="Webkit"+K.charAt(0).toUpperCase()+K.substr(1)in V.style)),h}const ye=b,se=R;function De(K){const h={};return Object.keys(K).forEach(c=>{const E=c.replace(/([a-z])([A-Z])/g,"$1-$2");h[E]=K[c]}),h}let ke=(()=>{class K{validateStyleProperty(c){return Me(c)}matchesElement(c,E){return!1}containsElement(c,E){return ye(c,E)}query(c,E,U){return se(c,E,U)}computeStyle(c,E,U){return U||""}animate(c,E,U,ce,Le,He=[],nt){return new m.ZN(U,ce)}}return K.\u0275fac=function(c){return new(c||K)},K.\u0275prov=i.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac}),K})(),et=(()=>{class K{}return K.NOOP=new ke,K})();const X="ng-enter",ae="ng-leave",Ie="ng-trigger",ne=".ng-trigger",Ke="ng-animating",me=".ng-animating";function st(K){if("number"==typeof K)return K;const h=K.match(/^(-?[\.\d]+)(m?s)/);return!h||h.length<2?0:ve(parseFloat(h[1]),h[2])}function ve(K,h){return"s"===h?1e3*K:K}function Ue(K,h,c){return K.hasOwnProperty("duration")?K:function ut(K,h,c){let U,ce=0,Le="";if("string"==typeof K){const He=K.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===He)return h.push(`The provided timing value "${K}" is invalid.`),{duration:0,delay:0,easing:""};U=ve(parseFloat(He[1]),He[2]);const nt=He[3];null!=nt&&(ce=ve(parseFloat(nt),He[4]));const mt=He[5];mt&&(Le=mt)}else U=K;if(!c){let He=!1,nt=h.length;U<0&&(h.push("Duration values below 0 are not allowed for this animation step."),He=!0),ce<0&&(h.push("Delay values below 0 are not allowed for this animation step."),He=!0),He&&h.splice(nt,0,`The provided timing value "${K}" is invalid.`)}return{duration:U,delay:ce,easing:Le}}(K,h,c)}function Tt(K,h={}){return Object.keys(K).forEach(c=>{h[c]=K[c]}),h}function qe(K,h,c={}){if(h)for(let E in K)c[E]=K[E];else Tt(K,c);return c}function Y(K,h,c){return c?h+":"+c+";":""}function pe(K){let h="";for(let c=0;c<K.style.length;c++){const E=K.style.item(c);h+=Y(0,E,K.style.getPropertyValue(E))}for(const c in K.style)K.style.hasOwnProperty(c)&&!c.startsWith("_")&&(h+=Y(0,oe(c),K.style[c]));K.setAttribute("style",h)}function we(K,h,c){K.style&&(Object.keys(h).forEach(E=>{const U=N(E);c&&!c.hasOwnProperty(E)&&(c[E]=K.style[U]),K.style[U]=h[E]}),s()&&pe(K))}function xe(K,h){K.style&&(Object.keys(h).forEach(c=>{const E=N(c);K.style[E]=""}),s()&&pe(K))}function ge(K){return Array.isArray(K)?1==K.length?K[0]:(0,m.vP)(K):K}const vt=new RegExp("{{\\s*(.+?)\\s*}}","g");function Et(K){let h=[];if("string"==typeof K){let c;for(;c=vt.exec(K);)h.push(c[1]);vt.lastIndex=0}return h}function At(K,h,c){const E=K.toString(),U=E.replace(vt,(ce,Le)=>{let He=h[Le];return h.hasOwnProperty(Le)||(c.push(`Please provide a value for the animation param ${Le}`),He=""),He.toString()});return U==E?K:U}function ht(K){const h=[];let c=K.next();for(;!c.done;)h.push(c.value),c=K.next();return h}const Ze=/-+([a-z0-9])/g;function N(K){return K.replace(Ze,(...h)=>h[1].toUpperCase())}function oe(K){return K.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Oe(K,h){return 0===K||0===h}function ue(K,h,c){const E=Object.keys(c);if(E.length&&h.length){let ce=h[0],Le=[];if(E.forEach(He=>{ce.hasOwnProperty(He)||Le.push(He),ce[He]=c[He]}),Le.length)for(var U=1;U<h.length;U++){let He=h[U];Le.forEach(function(nt){He[nt]=be(K,nt)})}}return h}function Te(K,h,c){switch(h.type){case 7:return K.visitTrigger(h,c);case 0:return K.visitState(h,c);case 1:return K.visitTransition(h,c);case 2:return K.visitSequence(h,c);case 3:return K.visitGroup(h,c);case 4:return K.visitAnimate(h,c);case 5:return K.visitKeyframes(h,c);case 6:return K.visitStyle(h,c);case 8:return K.visitReference(h,c);case 9:return K.visitAnimateChild(h,c);case 10:return K.visitAnimateRef(h,c);case 11:return K.visitQuery(h,c);case 12:return K.visitStagger(h,c);default:throw new Error(`Unable to resolve animation metadata node #${h.type}`)}}function be(K,h){return window.getComputedStyle(K)[h]}function Ce(K,h){const c=[];return"string"==typeof K?K.split(/\s*,\s*/).forEach(E=>function Ye(K,h,c){if(":"==K[0]){const nt=function rt(K,h){switch(K){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(c,E)=>parseFloat(E)>parseFloat(c);case":decrement":return(c,E)=>parseFloat(E)<parseFloat(c);default:return h.push(`The transition alias value "${K}" is not supported`),"* => *"}}(K,c);if("function"==typeof nt)return void h.push(nt);K=nt}const E=K.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==E||E.length<4)return c.push(`The provided transition expression "${K}" is not supported`),h;const U=E[1],ce=E[2],Le=E[3];h.push(Mt(U,Le));"<"==ce[0]&&!("*"==U&&"*"==Le)&&h.push(Mt(Le,U))}(E,c,h)):c.push(K),c}const pt=new Set(["true","1"]),gt=new Set(["false","0"]);function Mt(K,h){const c=pt.has(K)||gt.has(K),E=pt.has(h)||gt.has(h);return(U,ce)=>{let Le="*"==K||K==U,He="*"==h||h==ce;return!Le&&c&&"boolean"==typeof U&&(Le=U?pt.has(K):gt.has(K)),!He&&E&&"boolean"==typeof ce&&(He=ce?pt.has(h):gt.has(h)),Le&&He}}const tn=new RegExp("s*:selfs*,?","g");function Vt(K,h,c){return new rn(K).build(h,c)}class rn{constructor(h){this._driver=h}build(h,c){const E=new bn(c);return this._resetContextStyleTimingState(E),Te(this,ge(h),E)}_resetContextStyleTimingState(h){h.currentQuerySelector="",h.collectedStyles={},h.collectedStyles[""]={},h.currentTime=0}visitTrigger(h,c){let E=c.queryCount=0,U=c.depCount=0;const ce=[],Le=[];return"@"==h.name.charAt(0)&&c.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),h.definitions.forEach(He=>{if(this._resetContextStyleTimingState(c),0==He.type){const nt=He,mt=nt.name;mt.toString().split(/\s*,\s*/).forEach(Ot=>{nt.name=Ot,ce.push(this.visitState(nt,c))}),nt.name=mt}else if(1==He.type){const nt=this.visitTransition(He,c);E+=nt.queryCount,U+=nt.depCount,Le.push(nt)}else c.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:h.name,states:ce,transitions:Le,queryCount:E,depCount:U,options:null}}visitState(h,c){const E=this.visitStyle(h.styles,c),U=h.options&&h.options.params||null;if(E.containsDynamicStyles){const ce=new Set,Le=U||{};if(E.styles.forEach(He=>{if(on(He)){const nt=He;Object.keys(nt).forEach(mt=>{Et(nt[mt]).forEach(Ot=>{Le.hasOwnProperty(Ot)||ce.add(Ot)})})}}),ce.size){const He=ht(ce.values());c.errors.push(`state("${h.name}", ...) must define default values for all the following style substitutions: ${He.join(", ")}`)}}return{type:0,name:h.name,style:E,options:U?{params:U}:null}}visitTransition(h,c){c.queryCount=0,c.depCount=0;const E=Te(this,ge(h.animation),c);return{type:1,matchers:Ce(h.expr,c.errors),animation:E,queryCount:c.queryCount,depCount:c.depCount,options:Qe(h.options)}}visitSequence(h,c){return{type:2,steps:h.steps.map(E=>Te(this,E,c)),options:Qe(h.options)}}visitGroup(h,c){const E=c.currentTime;let U=0;const ce=h.steps.map(Le=>{c.currentTime=E;const He=Te(this,Le,c);return U=Math.max(U,c.currentTime),He});return c.currentTime=U,{type:3,steps:ce,options:Qe(h.options)}}visitAnimate(h,c){const E=function Ge(K,h){let c=null;if(K.hasOwnProperty("duration"))c=K;else if("number"==typeof K)return W(Ue(K,h).duration,0,"");const E=K;if(E.split(/\s+/).some(ce=>"{"==ce.charAt(0)&&"{"==ce.charAt(1))){const ce=W(0,0,"");return ce.dynamic=!0,ce.strValue=E,ce}return c=c||Ue(E,h),W(c.duration,c.delay,c.easing)}(h.timings,c.errors);c.currentAnimateTimings=E;let U,ce=h.styles?h.styles:(0,m.oB)({});if(5==ce.type)U=this.visitKeyframes(ce,c);else{let Le=h.styles,He=!1;if(!Le){He=!0;const mt={};E.easing&&(mt.easing=E.easing),Le=(0,m.oB)(mt)}c.currentTime+=E.duration+E.delay;const nt=this.visitStyle(Le,c);nt.isEmptyStep=He,U=nt}return c.currentAnimateTimings=null,{type:4,timings:E,style:U,options:null}}visitStyle(h,c){const E=this._makeStyleAst(h,c);return this._validateStyleAst(E,c),E}_makeStyleAst(h,c){const E=[];Array.isArray(h.styles)?h.styles.forEach(Le=>{"string"==typeof Le?Le==m.l3?E.push(Le):c.errors.push(`The provided style string value ${Le} is not allowed.`):E.push(Le)}):E.push(h.styles);let U=!1,ce=null;return E.forEach(Le=>{if(on(Le)){const He=Le,nt=He.easing;if(nt&&(ce=nt,delete He.easing),!U)for(let mt in He)if(He[mt].toString().indexOf("{{")>=0){U=!0;break}}}),{type:6,styles:E,easing:ce,offset:h.offset,containsDynamicStyles:U,options:null}}_validateStyleAst(h,c){const E=c.currentAnimateTimings;let U=c.currentTime,ce=c.currentTime;E&&ce>0&&(ce-=E.duration+E.delay),h.styles.forEach(Le=>{"string"!=typeof Le&&Object.keys(Le).forEach(He=>{if(!this._driver.validateStyleProperty(He))return void c.errors.push(`The provided animation property "${He}" is not a supported CSS property for animations`);const nt=c.collectedStyles[c.currentQuerySelector],mt=nt[He];let Ot=!0;mt&&(ce!=U&&ce>=mt.startTime&&U<=mt.endTime&&(c.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 "${ce}ms" and "${U}ms"`),Ot=!1),ce=mt.startTime),Ot&&(nt[He]={startTime:ce,endTime:U}),c.options&&function Je(K,h,c){const E=h.params||{},U=Et(K);U.length&&U.forEach(ce=>{E.hasOwnProperty(ce)||c.push(`Unable to resolve the local animation param ${ce} in the given list of values`)})}(Le[He],c.options,c.errors)})})}visitKeyframes(h,c){const E={type:5,styles:[],options:null};if(!c.currentAnimateTimings)return c.errors.push("keyframes() must be placed inside of a call to animate()"),E;let ce=0;const Le=[];let He=!1,nt=!1,mt=0;const Ot=h.steps.map(ee=>{const $=this._makeStyleAst(ee,c);let Q=null!=$.offset?$.offset:function Jt(K){if("string"==typeof K)return null;let h=null;if(Array.isArray(K))K.forEach(c=>{if(on(c)&&c.hasOwnProperty("offset")){const E=c;h=parseFloat(E.offset),delete E.offset}});else if(on(K)&&K.hasOwnProperty("offset")){const c=K;h=parseFloat(c.offset),delete c.offset}return h}($.styles),te=0;return null!=Q&&(ce++,te=$.offset=Q),nt=nt||te<0||te>1,He=He||te<mt,mt=te,Le.push(te),$});nt&&c.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),He&&c.errors.push("Please ensure that all keyframe offsets are in order");const Gt=h.steps.length;let cn=0;ce>0&&ce<Gt?c.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==ce&&(cn=1/(Gt-1));const pn=Gt-1,Zt=c.currentTime,Qt=c.currentAnimateTimings,un=Qt.duration;return Ot.forEach((ee,$)=>{const Q=cn>0?$==pn?1:cn*$:Le[$],te=Q*un;c.currentTime=Zt+Qt.delay+te,Qt.duration=te,this._validateStyleAst(ee,c),ee.offset=Q,E.styles.push(ee)}),E}visitReference(h,c){return{type:8,animation:Te(this,ge(h.animation),c),options:Qe(h.options)}}visitAnimateChild(h,c){return c.depCount++,{type:9,options:Qe(h.options)}}visitAnimateRef(h,c){return{type:10,animation:this.visitReference(h.animation,c),options:Qe(h.options)}}visitQuery(h,c){const E=c.currentQuerySelector,U=h.options||{};c.queryCount++,c.currentQuery=h;const[ce,Le]=function zt(K){const h=!!K.split(/\s*,\s*/).find(c=>":self"==c);return h&&(K=K.replace(tn,"")),K=K.replace(/@\*/g,ne).replace(/@\w+/g,c=>ne+"-"+c.substr(1)).replace(/:animating/g,me),[K,h]}(h.selector);c.currentQuerySelector=E.length?E+" "+ce:ce,I(c.collectedStyles,c.currentQuerySelector,{});const He=Te(this,ge(h.animation),c);return c.currentQuery=null,c.currentQuerySelector=E,{type:11,selector:ce,limit:U.limit||0,optional:!!U.optional,includeSelf:Le,animation:He,originalSelector:h.selector,options:Qe(h.options)}}visitStagger(h,c){c.currentQuery||c.errors.push("stagger() can only be used inside of query()");const E="full"===h.timings?{duration:0,delay:0,easing:"full"}:Ue(h.timings,c.errors,!0);return{type:12,animation:Te(this,ge(h.animation),c),timings:E,options:null}}}class bn{constructor(h){this.errors=h,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 on(K){return!Array.isArray(K)&&"object"==typeof K}function Qe(K){return K?(K=Tt(K)).params&&(K.params=function wt(K){return K?Tt(K):null}(K.params)):K={},K}function W(K,h,c){return{duration:K,delay:h,easing:c}}function P(K,h,c,E,U,ce,Le=null,He=!1){return{type:1,element:K,keyframes:h,preStyleProps:c,postStyleProps:E,duration:U,delay:ce,totalTime:U+ce,easing:Le,subTimeline:He}}class L{constructor(){this._map=new Map}get(h){return this._map.get(h)||[]}append(h,c){let E=this._map.get(h);E||this._map.set(h,E=[]),E.push(...c)}has(h){return this._map.has(h)}clear(){this._map.clear()}}const _e=new RegExp(":enter","g"),kt=new RegExp(":leave","g");function Ht(K,h,c,E,U,ce={},Le={},He,nt,mt=[]){return(new Fe).buildKeyframes(K,h,c,E,U,ce,Le,He,nt,mt)}class Fe{buildKeyframes(h,c,E,U,ce,Le,He,nt,mt,Ot=[]){mt=mt||new L;const Gt=new de(h,c,mt,U,ce,Ot,[]);Gt.options=nt,Gt.currentTimeline.setStyles([Le],null,Gt.errors,nt),Te(this,E,Gt);const cn=Gt.timelines.filter(pn=>pn.containsAnimation());if(Object.keys(He).length){let pn;for(let Zt=cn.length-1;Zt>=0;Zt--){const Qt=cn[Zt];if(Qt.element===c){pn=Qt;break}}pn&&!pn.allowOnlyTimelineStyles()&&pn.setStyles([He],null,Gt.errors,nt)}return cn.length?cn.map(pn=>pn.buildKeyframes()):[P(c,[],[],[],0,0,"",!1)]}visitTrigger(h,c){}visitState(h,c){}visitTransition(h,c){}visitAnimateChild(h,c){const E=c.subInstructions.get(c.element);if(E){const U=c.createSubContext(h.options),ce=c.currentTimeline.currentTime,Le=this._visitSubInstructions(E,U,U.options);ce!=Le&&c.transformIntoNewTimeline(Le)}c.previousNode=h}visitAnimateRef(h,c){const E=c.createSubContext(h.options);E.transformIntoNewTimeline(),this.visitReference(h.animation,E),c.transformIntoNewTimeline(E.currentTimeline.currentTime),c.previousNode=h}_visitSubInstructions(h,c,E){let ce=c.currentTimeline.currentTime;const Le=null!=E.duration?st(E.duration):null,He=null!=E.delay?st(E.delay):null;return 0!==Le&&h.forEach(nt=>{const mt=c.appendInstructionToTimeline(nt,Le,He);ce=Math.max(ce,mt.duration+mt.delay)}),ce}visitReference(h,c){c.updateOptions(h.options,!0),Te(this,h.animation,c),c.previousNode=h}visitSequence(h,c){const E=c.subContextCount;let U=c;const ce=h.options;if(ce&&(ce.params||ce.delay)&&(U=c.createSubContext(ce),U.transformIntoNewTimeline(),null!=ce.delay)){6==U.previousNode.type&&(U.currentTimeline.snapshotCurrentStyles(),U.previousNode=$e);const Le=st(ce.delay);U.delayNextStep(Le)}h.steps.length&&(h.steps.forEach(Le=>Te(this,Le,U)),U.currentTimeline.applyStylesToKeyframe(),U.subContextCount>E&&U.transformIntoNewTimeline()),c.previousNode=h}visitGroup(h,c){const E=[];let U=c.currentTimeline.currentTime;const ce=h.options&&h.options.delay?st(h.options.delay):0;h.steps.forEach(Le=>{const He=c.createSubContext(h.options);ce&&He.delayNextStep(ce),Te(this,Le,He),U=Math.max(U,He.currentTimeline.currentTime),E.push(He.currentTimeline)}),E.forEach(Le=>c.currentTimeline.mergeTimelineCollectedStyles(Le)),c.transformIntoNewTimeline(U),c.previousNode=h}_visitTiming(h,c){if(h.dynamic){const E=h.strValue;return Ue(c.params?At(E,c.params,c.errors):E,c.errors)}return{duration:h.duration,delay:h.delay,easing:h.easing}}visitAnimate(h,c){const E=c.currentAnimateTimings=this._visitTiming(h.timings,c),U=c.currentTimeline;E.delay&&(c.incrementTime(E.delay),U.snapshotCurrentStyles());const ce=h.style;5==ce.type?this.visitKeyframes(ce,c):(c.incrementTime(E.duration),this.visitStyle(ce,c),U.applyStylesToKeyframe()),c.currentAnimateTimings=null,c.previousNode=h}visitStyle(h,c){const E=c.currentTimeline,U=c.currentAnimateTimings;!U&&E.getCurrentStyleProperties().length&&E.forwardFrame();const ce=U&&U.easing||h.easing;h.isEmptyStep?E.applyEmptyStep(ce):E.setStyles(h.styles,ce,c.errors,c.options),c.previousNode=h}visitKeyframes(h,c){const E=c.currentAnimateTimings,U=c.currentTimeline.duration,ce=E.duration,He=c.createSubContext().currentTimeline;He.easing=E.easing,h.styles.forEach(nt=>{He.forwardTime((nt.offset||0)*ce),He.setStyles(nt.styles,nt.easing,c.errors,c.options),He.applyStylesToKeyframe()}),c.currentTimeline.mergeTimelineCollectedStyles(He),c.transformIntoNewTimeline(U+ce),c.previousNode=h}visitQuery(h,c){const E=c.currentTimeline.currentTime,U=h.options||{},ce=U.delay?st(U.delay):0;ce&&(6===c.previousNode.type||0==E&&c.currentTimeline.getCurrentStyleProperties().length)&&(c.currentTimeline.snapshotCurrentStyles(),c.previousNode=$e);let Le=E;const He=c.invokeQuery(h.selector,h.originalSelector,h.limit,h.includeSelf,!!U.optional,c.errors);c.currentQueryTotal=He.length;let nt=null;He.forEach((mt,Ot)=>{c.currentQueryIndex=Ot;const Gt=c.createSubContext(h.options,mt);ce&&Gt.delayNextStep(ce),mt===c.element&&(nt=Gt.currentTimeline),Te(this,h.animation,Gt),Gt.currentTimeline.applyStylesToKeyframe(),Le=Math.max(Le,Gt.currentTimeline.currentTime)}),c.currentQueryIndex=0,c.currentQueryTotal=0,c.transformIntoNewTimeline(Le),nt&&(c.currentTimeline.mergeTimelineCollectedStyles(nt),c.currentTimeline.snapshotCurrentStyles()),c.previousNode=h}visitStagger(h,c){const E=c.parentContext,U=c.currentTimeline,ce=h.timings,Le=Math.abs(ce.duration),He=Le*(c.currentQueryTotal-1);let nt=Le*c.currentQueryIndex;switch(ce.duration<0?"reverse":ce.easing){case"reverse":nt=He-nt;break;case"full":nt=E.currentStaggerTime}const Ot=c.currentTimeline;nt&&Ot.delayNextStep(nt);const Gt=Ot.currentTime;Te(this,h.animation,c),c.previousNode=h,E.currentStaggerTime=U.currentTime-Gt+(U.startTime-E.currentTimeline.startTime)}}const $e={};class de{constructor(h,c,E,U,ce,Le,He,nt){this._driver=h,this.element=c,this.subInstructions=E,this._enterClassName=U,this._leaveClassName=ce,this.errors=Le,this.timelines=He,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$e,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=nt||new Ve(this._driver,c,0),He.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(h,c){if(!h)return;const E=h;let U=this.options;null!=E.duration&&(U.duration=st(E.duration)),null!=E.delay&&(U.delay=st(E.delay));const ce=E.params;if(ce){let Le=U.params;Le||(Le=this.options.params={}),Object.keys(ce).forEach(He=>{(!c||!Le.hasOwnProperty(He))&&(Le[He]=At(ce[He],Le,this.errors))})}}_copyOptions(){const h={};if(this.options){const c=this.options.params;if(c){const E=h.params={};Object.keys(c).forEach(U=>{E[U]=c[U]})}}return h}createSubContext(h=null,c,E){const U=c||this.element,ce=new de(this._driver,U,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(U,E||0));return ce.previousNode=this.previousNode,ce.currentAnimateTimings=this.currentAnimateTimings,ce.options=this._copyOptions(),ce.updateOptions(h),ce.currentQueryIndex=this.currentQueryIndex,ce.currentQueryTotal=this.currentQueryTotal,ce.parentContext=this,this.subContextCount++,ce}transformIntoNewTimeline(h){return this.previousNode=$e,this.currentTimeline=this.currentTimeline.fork(this.element,h),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(h,c,E){const U={duration:null!=c?c:h.duration,delay:this.currentTimeline.currentTime+(null!=E?E:0)+h.delay,easing:""},ce=new ft(this._driver,h.element,h.keyframes,h.preStyleProps,h.postStyleProps,U,h.stretchStartingKeyframe);return this.timelines.push(ce),U}incrementTime(h){this.currentTimeline.forwardTime(this.currentTimeline.duration+h)}delayNextStep(h){h>0&&this.currentTimeline.delayNextStep(h)}invokeQuery(h,c,E,U,ce,Le){let He=[];if(U&&He.push(this.element),h.length>0){h=(h=h.replace(_e,"."+this._enterClassName)).replace(kt,"."+this._leaveClassName);let mt=this._driver.query(this.element,h,1!=E);0!==E&&(mt=E<0?mt.slice(mt.length+E,mt.length):mt.slice(0,E)),He.push(...mt)}return!ce&&0==He.length&&Le.push(`\`query("${c}")\` returned zero elements. (Use \`query("${c}", { optional: true })\` if you wish to allow this.)`),He}}class Ve{constructor(h,c,E,U){this._driver=h,this.element=c,this.startTime=E,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(c),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(c,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(h){const c=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||c?(this.forwardTime(this.currentTime+h),c&&this.snapshotCurrentStyles()):this.startTime+=h}fork(h,c){return this.applyStylesToKeyframe(),new Ve(this._driver,h,c||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(h){this.applyStylesToKeyframe(),this.duration=h,this._loadKeyframe()}_updateStyle(h,c){this._localTimelineStyles[h]=c,this._globalTimelineStyles[h]=c,this._styleSummary[h]={time:this.currentTime,value:c}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(h){h&&(this._previousKeyframe.easing=h),Object.keys(this._globalTimelineStyles).forEach(c=>{this._backFill[c]=this._globalTimelineStyles[c]||m.l3,this._currentKeyframe[c]=m.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(h,c,E,U){c&&(this._previousKeyframe.easing=c);const ce=U&&U.params||{},Le=function Ft(K,h){const c={};let E;return K.forEach(U=>{"*"===U?(E=E||Object.keys(h),E.forEach(ce=>{c[ce]=m.l3})):qe(U,!1,c)}),c}(h,this._globalTimelineStyles);Object.keys(Le).forEach(He=>{const nt=At(Le[He],ce,E);this._pendingStyles[He]=nt,this._localTimelineStyles.hasOwnProperty(He)||(this._backFill[He]=this._globalTimelineStyles.hasOwnProperty(He)?this._globalTimelineStyles[He]:m.l3),this._updateStyle(He,nt)})}applyStylesToKeyframe(){const h=this._pendingStyles,c=Object.keys(h);0!=c.length&&(this._pendingStyles={},c.forEach(E=>{this._currentKeyframe[E]=h[E]}),Object.keys(this._localTimelineStyles).forEach(E=>{this._currentKeyframe.hasOwnProperty(E)||(this._currentKeyframe[E]=this._localTimelineStyles[E])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(h=>{const c=this._localTimelineStyles[h];this._pendingStyles[h]=c,this._updateStyle(h,c)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const h=[];for(let c in this._currentKeyframe)h.push(c);return h}mergeTimelineCollectedStyles(h){Object.keys(h._styleSummary).forEach(c=>{const E=this._styleSummary[c],U=h._styleSummary[c];(!E||U.time>E.time)&&this._updateStyle(c,U.value)})}buildKeyframes(){this.applyStylesToKeyframe();const h=new Set,c=new Set,E=1===this._keyframes.size&&0===this.duration;let U=[];this._keyframes.forEach((He,nt)=>{const mt=qe(He,!0);Object.keys(mt).forEach(Ot=>{const Gt=mt[Ot];Gt==m.k1?h.add(Ot):Gt==m.l3&&c.add(Ot)}),E||(mt.offset=nt/this.duration),U.push(mt)});const ce=h.size?ht(h.values()):[],Le=c.size?ht(c.values()):[];if(E){const He=U[0],nt=Tt(He);He.offset=0,nt.offset=1,U=[He,nt]}return P(this.element,U,ce,Le,this.duration,this.startTime,this.easing,!1)}}class ft extends Ve{constructor(h,c,E,U,ce,Le,He=!1){super(h,c,Le.delay),this.keyframes=E,this.preStyleProps=U,this.postStyleProps=ce,this._stretchStartingKeyframe=He,this.timings={duration:Le.duration,delay:Le.delay,easing:Le.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let h=this.keyframes,{delay:c,duration:E,easing:U}=this.timings;if(this._stretchStartingKeyframe&&c){const ce=[],Le=E+c,He=c/Le,nt=qe(h[0],!1);nt.offset=0,ce.push(nt);const mt=qe(h[0],!1);mt.offset=Lt(He),ce.push(mt);const Ot=h.length-1;for(let Gt=1;Gt<=Ot;Gt++){let cn=qe(h[Gt],!1);cn.offset=Lt((c+cn.offset*E)/Le),ce.push(cn)}E=Le,c=0,U="",h=ce}return P(this.element,h,this.preStyleProps,this.postStyleProps,E,c,U,!0)}}function Lt(K,h=3){const c=Math.pow(10,h-1);return Math.round(K*c)/c}class Mn{}class hi extends Mn{normalizePropertyName(h,c){return N(h)}normalizeStyleValue(h,c,E,U){let ce="";const Le=E.toString().trim();if(Jn[c]&&0!==E&&"0"!==E)if("number"==typeof E)ce="px";else{const He=E.match(/^[+-]?[\d\.]+([a-z]*)$/);He&&0==He[1].length&&U.push(`Please provide a CSS unit value for ${h}:${E}`)}return Le+ce}}const Jn=(()=>function Nn(K){const h={};return K.forEach(c=>h[c]=!0),h}("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 Un(K,h,c,E,U,ce,Le,He,nt,mt,Ot,Gt,cn){return{type:0,element:K,triggerName:h,isRemovalTransition:U,fromState:c,fromStyles:ce,toState:E,toStyles:Le,timelines:He,queriedElements:nt,preStyleProps:mt,postStyleProps:Ot,totalTime:Gt,errors:cn}}const Ln={};class H{constructor(h,c,E){this._triggerName=h,this.ast=c,this._stateStyles=E}match(h,c,E,U){return function Se(K,h,c,E,U){return K.some(ce=>ce(h,c,E,U))}(this.ast.matchers,h,c,E,U)}buildStyles(h,c,E){const U=this._stateStyles["*"],ce=this._stateStyles[h],Le=U?U.buildStyles(c,E):{};return ce?ce.buildStyles(c,E):Le}build(h,c,E,U,ce,Le,He,nt,mt,Ot){const Gt=[],cn=this.ast.options&&this.ast.options.params||Ln,Zt=this.buildStyles(E,He&&He.params||Ln,Gt),Qt=nt&&nt.params||Ln,un=this.buildStyles(U,Qt,Gt),ee=new Set,$=new Map,Q=new Map,te="void"===U,Re={params:Object.assign(Object.assign({},cn),Qt)},je=Ot?[]:Ht(h,c,this.ast.animation,ce,Le,Zt,un,Re,mt,Gt);let it=0;if(je.forEach(_t=>{it=Math.max(_t.duration+_t.delay,it)}),Gt.length)return Un(c,this._triggerName,E,U,te,Zt,un,[],[],$,Q,it,Gt);je.forEach(_t=>{const $t=_t.element,Yt=I($,$t,{});_t.preStyleProps.forEach(sn=>Yt[sn]=!0);const vn=I(Q,$t,{});_t.postStyleProps.forEach(sn=>vn[sn]=!0),$t!==c&&ee.add($t)});const bt=ht(ee.values());return Un(c,this._triggerName,E,U,te,Zt,un,je,bt,$,Q,it)}}class z{constructor(h,c,E){this.styles=h,this.defaultParams=c,this.normalizer=E}buildStyles(h,c){const E={},U=Tt(this.defaultParams);return Object.keys(h).forEach(ce=>{const Le=h[ce];null!=Le&&(U[ce]=Le)}),this.styles.styles.forEach(ce=>{if("string"!=typeof ce){const Le=ce;Object.keys(Le).forEach(He=>{let nt=Le[He];nt.length>1&&(nt=At(nt,U,c));const mt=this.normalizer.normalizePropertyName(He,c);nt=this.normalizer.normalizeStyleValue(He,mt,nt,c),E[mt]=nt})}}),E}}class tt{constructor(h,c,E){this.name=h,this.ast=c,this._normalizer=E,this.transitionFactories=[],this.states={},c.states.forEach(U=>{this.states[U.name]=new z(U.style,U.options&&U.options.params||{},E)}),St(this.states,"true","1"),St(this.states,"false","0"),c.transitions.forEach(U=>{this.transitionFactories.push(new H(h,U,this.states))}),this.fallbackTransition=function ct(K,h,c){return new H(K,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Le,He)=>!0],options:null,queryCount:0,depCount:0},h)}(h,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(h,c,E,U){return this.transitionFactories.find(Le=>Le.match(h,c,E,U))||null}matchStyles(h,c,E){return this.fallbackTransition.buildStyles(h,c,E)}}function St(K,h,c){K.hasOwnProperty(h)?K.hasOwnProperty(c)||(K[c]=K[h]):K.hasOwnProperty(c)&&(K[h]=K[c])}const Nt=new L;class qt{constructor(h,c,E){this.bodyNode=h,this._driver=c,this._normalizer=E,this._animations={},this._playersById={},this.players=[]}register(h,c){const E=[],U=Vt(this._driver,c,E);if(E.length)throw new Error(`Unable to build the animation due to the following errors: ${E.join("\n")}`);this._animations[h]=U}_buildPlayer(h,c,E){const U=h.element,ce=C(0,this._normalizer,0,h.keyframes,c,E);return this._driver.animate(U,ce,h.duration,h.delay,h.easing,[],!0)}create(h,c,E={}){const U=[],ce=this._animations[h];let Le;const He=new Map;if(ce?(Le=Ht(this._driver,c,ce,X,ae,{},{},E,Nt,U),Le.forEach(Ot=>{const Gt=I(He,Ot.element,{});Ot.postStyleProps.forEach(cn=>Gt[cn]=null)})):(U.push("The requested animation doesn't exist or has already been destroyed"),Le=[]),U.length)throw new Error(`Unable to create the animation due to the following errors: ${U.join("\n")}`);He.forEach((Ot,Gt)=>{Object.keys(Ot).forEach(cn=>{Ot[cn]=this._driver.computeStyle(Gt,cn,m.l3)})});const mt=y(Le.map(Ot=>{const Gt=He.get(Ot.element);return this._buildPlayer(Ot,{},Gt)}));return this._playersById[h]=mt,mt.onDestroy(()=>this.destroy(h)),this.players.push(mt),mt}destroy(h){const c=this._getPlayer(h);c.destroy(),delete this._playersById[h];const E=this.players.indexOf(c);E>=0&&this.players.splice(E,1)}_getPlayer(h){const c=this._playersById[h];if(!c)throw new Error(`Unable to find the timeline player referenced by ${h}`);return c}listen(h,c,E,U){const ce=f(c,"","","");return D(this._getPlayer(h),E,ce,U),()=>{}}command(h,c,E,U){if("register"==E)return void this.register(h,U[0]);if("create"==E)return void this.create(h,c,U[0]||{});const ce=this._getPlayer(h);switch(E){case"play":ce.play();break;case"pause":ce.pause();break;case"reset":ce.reset();break;case"restart":ce.restart();break;case"finish":ce.finish();break;case"init":ce.init();break;case"setPosition":ce.setPosition(parseFloat(U[0]));break;case"destroy":this.destroy(h)}}}const Cn="ng-animate-queued",Pn="ng-animate-disabled",In=[],Rn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},li={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},An="__ng_removed";class mn{constructor(h,c=""){this.namespaceId=c;const E=h&&h.hasOwnProperty("value");if(this.value=function fi(K){return null!=K?K:null}(E?h.value:h),E){const ce=Tt(h);delete ce.value,this.options=ce}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(h){const c=h.params;if(c){const E=this.options.params;Object.keys(c).forEach(U=>{null==E[U]&&(E[U]=c[U])})}}}const ti="void",ci=new mn(ti);class Wn{constructor(h,c,E){this.id=h,this.hostElement=c,this._engine=E,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+h,Gn(c,this._hostClassName)}listen(h,c,E,U){if(!this._triggers.hasOwnProperty(c))throw new Error(`Unable to listen on the animation trigger event "${E}" because the animation trigger "${c}" doesn't exist!`);if(null==E||0==E.length)throw new Error(`Unable to listen on the animation trigger "${c}" because the provided event is undefined!`);if(!function Dr(K){return"start"==K||"done"==K}(E))throw new Error(`The provided animation trigger event "${E}" for the animation trigger "${c}" is not supported!`);const ce=I(this._elementListeners,h,[]),Le={name:c,phase:E,callback:U};ce.push(Le);const He=I(this._engine.statesByElement,h,{});return He.hasOwnProperty(c)||(Gn(h,Ie),Gn(h,Ie+"-"+c),He[c]=ci),()=>{this._engine.afterFlush(()=>{const nt=ce.indexOf(Le);nt>=0&&ce.splice(nt,1),this._triggers[c]||delete He[c]})}}register(h,c){return!this._triggers[h]&&(this._triggers[h]=c,!0)}_getTrigger(h){const c=this._triggers[h];if(!c)throw new Error(`The provided animation trigger "${h}" has not been registered!`);return c}trigger(h,c,E,U=!0){const ce=this._getTrigger(c),Le=new bi(this.id,c,h);let He=this._engine.statesByElement.get(h);He||(Gn(h,Ie),Gn(h,Ie+"-"+c),this._engine.statesByElement.set(h,He={}));let nt=He[c];const mt=new mn(E,this.id);if(!(E&&E.hasOwnProperty("value"))&&nt&&mt.absorbOptions(nt.options),He[c]=mt,nt||(nt=ci),mt.value!==ti&&nt.value===mt.value){if(!function Tr(K,h){const c=Object.keys(K),E=Object.keys(h);if(c.length!=E.length)return!1;for(let U=0;U<c.length;U++){const ce=c[U];if(!h.hasOwnProperty(ce)||K[ce]!==h[ce])return!1}return!0}(nt.params,mt.params)){const Qt=[],un=ce.matchStyles(nt.value,nt.params,Qt),ee=ce.matchStyles(mt.value,mt.params,Qt);Qt.length?this._engine.reportError(Qt):this._engine.afterFlush(()=>{xe(h,un),we(h,ee)})}return}const cn=I(this._engine.playersByElement,h,[]);cn.forEach(Qt=>{Qt.namespaceId==this.id&&Qt.triggerName==c&&Qt.queued&&Qt.destroy()});let pn=ce.matchTransition(nt.value,mt.value,h,mt.params),Zt=!1;if(!pn){if(!U)return;pn=ce.fallbackTransition,Zt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:c,transition:pn,fromState:nt,toState:mt,player:Le,isFallbackTransition:Zt}),Zt||(Gn(h,Cn),Le.onStart(()=>{Ci(h,Cn)})),Le.onDone(()=>{let Qt=this.players.indexOf(Le);Qt>=0&&this.players.splice(Qt,1);const un=this._engine.playersByElement.get(h);if(un){let ee=un.indexOf(Le);ee>=0&&un.splice(ee,1)}}),this.players.push(Le),cn.push(Le),Le}deregister(h){delete this._triggers[h],this._engine.statesByElement.forEach((c,E)=>{delete c[h]}),this._elementListeners.forEach((c,E)=>{this._elementListeners.set(E,c.filter(U=>U.name!=h))})}clearElementCache(h){this._engine.statesByElement.delete(h),this._elementListeners.delete(h);const c=this._engine.playersByElement.get(h);c&&(c.forEach(E=>E.destroy()),this._engine.playersByElement.delete(h))}_signalRemovalForInnerTriggers(h,c){const E=this._engine.driver.query(h,ne,!0);E.forEach(U=>{if(U[An])return;const ce=this._engine.fetchNamespacesByElement(U);ce.size?ce.forEach(Le=>Le.triggerLeaveAnimation(U,c,!1,!0)):this.clearElementCache(U)}),this._engine.afterFlushAnimationsDone(()=>E.forEach(U=>this.clearElementCache(U)))}triggerLeaveAnimation(h,c,E,U){const ce=this._engine.statesByElement.get(h),Le=new Map;if(ce){const He=[];if(Object.keys(ce).forEach(nt=>{if(Le.set(nt,ce[nt].value),this._triggers[nt]){const mt=this.trigger(h,nt,ti,U);mt&&He.push(mt)}}),He.length)return this._engine.markElementAsRemoved(this.id,h,!0,c,Le),E&&y(He).onDone(()=>this._engine.processLeaveNode(h)),!0}return!1}prepareLeaveAnimationListeners(h){const c=this._elementListeners.get(h),E=this._engine.statesByElement.get(h);if(c&&E){const U=new Set;c.forEach(ce=>{const Le=ce.name;if(U.has(Le))return;U.add(Le);const nt=this._triggers[Le].fallbackTransition,mt=E[Le]||ci,Ot=new mn(ti),Gt=new bi(this.id,Le,h);this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:Le,transition:nt,fromState:mt,toState:Ot,player:Gt,isFallbackTransition:!0})})}}removeNode(h,c){const E=this._engine;if(h.childElementCount&&this._signalRemovalForInnerTriggers(h,c),this.triggerLeaveAnimation(h,c,!0))return;let U=!1;if(E.totalAnimations){const ce=E.players.length?E.playersByQueriedElement.get(h):[];if(ce&&ce.length)U=!0;else{let Le=h;for(;Le=Le.parentNode;)if(E.statesByElement.get(Le)){U=!0;break}}}if(this.prepareLeaveAnimationListeners(h),U)E.markElementAsRemoved(this.id,h,!1,c);else{const ce=h[An];(!ce||ce===Rn)&&(E.afterFlush(()=>this.clearElementCache(h)),E.destroyInnerAnimations(h),E._onRemovalComplete(h,c))}}insertNode(h,c){Gn(h,this._hostClassName)}drainQueuedTransitions(h){const c=[];return this._queue.forEach(E=>{const U=E.player;if(U.destroyed)return;const ce=E.element,Le=this._elementListeners.get(ce);Le&&Le.forEach(He=>{if(He.name==E.triggerName){const nt=f(ce,E.triggerName,E.fromState.value,E.toState.value);nt._data=h,D(E.player,He.phase,nt,He.callback)}}),U.markedForDestroy?this._engine.afterFlush(()=>{U.destroy()}):c.push(E)}),this._queue=[],c.sort((E,U)=>{const ce=E.transition.ast.depCount,Le=U.transition.ast.depCount;return 0==ce||0==Le?ce-Le:this._engine.driver.containsElement(E.element,U.element)?1:-1})}destroy(h){this.players.forEach(c=>c.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,h)}elementContainsData(h){let c=!1;return this._elementListeners.has(h)&&(c=!0),c=!!this._queue.find(E=>E.element===h)||c,c}}class zn{constructor(h,c,E){this.bodyNode=h,this.driver=c,this._normalizer=E,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,ce)=>{}}_onRemovalComplete(h,c){this.onRemovalComplete(h,c)}get queuedPlayers(){const h=[];return this._namespaceList.forEach(c=>{c.players.forEach(E=>{E.queued&&h.push(E)})}),h}createNamespace(h,c){const E=new Wn(h,c,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,c)?this._balanceNamespaceList(E,c):(this.newHostElements.set(c,E),this.collectEnterElement(c)),this._namespaceLookup[h]=E}_balanceNamespaceList(h,c){const E=this._namespaceList.length-1;if(E>=0){let U=!1;for(let ce=E;ce>=0;ce--)if(this.driver.containsElement(this._namespaceList[ce].hostElement,c)){this._namespaceList.splice(ce+1,0,h),U=!0;break}U||this._namespaceList.splice(0,0,h)}else this._namespaceList.push(h);return this.namespacesByHostElement.set(c,h),h}register(h,c){let E=this._namespaceLookup[h];return E||(E=this.createNamespace(h,c)),E}registerTrigger(h,c,E){let U=this._namespaceLookup[h];U&&U.register(c,E)&&this.totalAnimations++}destroy(h,c){if(!h)return;const E=this._fetchNamespace(h);this.afterFlush(()=>{this.namespacesByHostElement.delete(E.hostElement),delete this._namespaceLookup[h];const U=this._namespaceList.indexOf(E);U>=0&&this._namespaceList.splice(U,1)}),this.afterFlushAnimationsDone(()=>E.destroy(c))}_fetchNamespace(h){return this._namespaceLookup[h]}fetchNamespacesByElement(h){const c=new Set,E=this.statesByElement.get(h);if(E){const U=Object.keys(E);for(let ce=0;ce<U.length;ce++){const Le=E[U[ce]].namespaceId;if(Le){const He=this._fetchNamespace(Le);He&&c.add(He)}}}return c}trigger(h,c,E,U){if(Hn(c)){const ce=this._fetchNamespace(h);if(ce)return ce.trigger(c,E,U),!0}return!1}insertNode(h,c,E,U){if(!Hn(c))return;const ce=c[An];if(ce&&ce.setForRemoval){ce.setForRemoval=!1,ce.setForMove=!0;const Le=this.collectedLeaveElements.indexOf(c);Le>=0&&this.collectedLeaveElements.splice(Le,1)}if(h){const Le=this._fetchNamespace(h);Le&&Le.insertNode(c,E)}U&&this.collectEnterElement(c)}collectEnterElement(h){this.collectedEnterElements.push(h)}markElementAsDisabled(h,c){c?this.disabledNodes.has(h)||(this.disabledNodes.add(h),Gn(h,Pn)):this.disabledNodes.has(h)&&(this.disabledNodes.delete(h),Ci(h,Pn))}removeNode(h,c,E,U){if(Hn(c)){const ce=h?this._fetchNamespace(h):null;if(ce?ce.removeNode(c,U):this.markElementAsRemoved(h,c,!1,U),E){const Le=this.namespacesByHostElement.get(c);Le&&Le.id!==h&&Le.removeNode(c,U)}}else this._onRemovalComplete(c,U)}markElementAsRemoved(h,c,E,U,ce){this.collectedLeaveElements.push(c),c[An]={namespaceId:h,setForRemoval:U,hasAnimation:E,removedBeforeQueried:!1,previousTriggersValues:ce}}listen(h,c,E,U,ce){return Hn(c)?this._fetchNamespace(h).listen(c,E,U,ce):()=>{}}_buildInstruction(h,c,E,U,ce){return h.transition.build(this.driver,h.element,h.fromState.value,h.toState.value,E,U,h.fromState.options,h.toState.options,c,ce)}destroyInnerAnimations(h){let c=this.driver.query(h,ne,!0);c.forEach(E=>this.destroyActiveAnimationsForElement(E)),0!=this.playersByQueriedElement.size&&(c=this.driver.query(h,me,!0),c.forEach(E=>this.finishActiveQueriedAnimationOnElement(E)))}destroyActiveAnimationsForElement(h){const c=this.playersByElement.get(h);c&&c.forEach(E=>{E.queued?E.markedForDestroy=!0:E.destroy()})}finishActiveQueriedAnimationOnElement(h){const c=this.playersByQueriedElement.get(h);c&&c.forEach(E=>E.finish())}whenRenderingDone(){return new Promise(h=>{if(this.players.length)return y(this.players).onDone(()=>h());h()})}processLeaveNode(h){var c;const E=h[An];if(E&&E.setForRemoval){if(h[An]=Rn,E.namespaceId){this.destroyInnerAnimations(h);const U=this._fetchNamespace(E.namespaceId);U&&U.clearElementCache(h)}this._onRemovalComplete(h,E.setForRemoval)}(null===(c=h.classList)||void 0===c?void 0:c.contains(Pn))&&this.markElementAsDisabled(h,!1),this.driver.query(h,".ng-animate-disabled",!0).forEach(U=>{this.markElementAsDisabled(U,!1)})}flush(h=-1){let c=[];if(this.newHostElements.size&&(this.newHostElements.forEach((E,U)=>this._balanceNamespaceList(E,U)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let E=0;E<this.collectedEnterElements.length;E++)Gn(this.collectedEnterElements[E],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const E=[];try{c=this._flushAnimations(E,h)}finally{for(let U=0;U<E.length;U++)E[U]()}}else for(let E=0;E<this.collectedLeaveElements.length;E++)this.processLeaveNode(this.collectedLeaveElements[E]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(E=>E()),this._flushFns=[],this._whenQuietFns.length){const E=this._whenQuietFns;this._whenQuietFns=[],c.length?y(c).onDone(()=>{E.forEach(U=>U())}):E.forEach(U=>U())}}reportError(h){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${h.join("\n")}`)}_flushAnimations(h,c){const E=new L,U=[],ce=new Map,Le=[],He=new Map,nt=new Map,mt=new Map,Ot=new Set;this.disabledNodes.forEach(It=>{Ot.add(It);const xt=this.driver.query(It,".ng-animate-queued",!0);for(let Xt=0;Xt<xt.length;Xt++)Ot.add(xt[Xt])});const Gt=this.bodyNode,cn=Array.from(this.statesByElement.keys()),pn=Kn(cn,this.collectedEnterElements),Zt=new Map;let Qt=0;pn.forEach((It,xt)=>{const Xt=X+Qt++;Zt.set(xt,Xt),It.forEach(En=>Gn(En,Xt))});const un=[],ee=new Set,$=new Set;for(let It=0;It<this.collectedLeaveElements.length;It++){const xt=this.collectedLeaveElements[It],Xt=xt[An];Xt&&Xt.setForRemoval&&(un.push(xt),ee.add(xt),Xt.hasAnimation?this.driver.query(xt,".ng-star-inserted",!0).forEach(En=>ee.add(En)):$.add(xt))}const Q=new Map,te=Kn(cn,Array.from(ee));te.forEach((It,xt)=>{const Xt=ae+Qt++;Q.set(xt,Xt),It.forEach(En=>Gn(En,Xt))}),h.push(()=>{pn.forEach((It,xt)=>{const Xt=Zt.get(xt);It.forEach(En=>Ci(En,Xt))}),te.forEach((It,xt)=>{const Xt=Q.get(xt);It.forEach(En=>Ci(En,Xt))}),un.forEach(It=>{this.processLeaveNode(It)})});const Re=[],je=[];for(let It=this._namespaceList.length-1;It>=0;It--)this._namespaceList[It].drainQueuedTransitions(c).forEach(Xt=>{const En=Xt.player,ei=Xt.element;if(Re.push(En),this.collectedEnterElements.length){const si=ei[An];if(si&&si.setForMove){if(si.previousTriggersValues&&si.previousTriggersValues.has(Xt.triggerName)){const Ar=si.previousTriggersValues.get(Xt.triggerName),fr=this.statesByElement.get(Xt.element);fr&&fr[Xt.triggerName]&&(fr[Xt.triggerName].value=Ar)}return void En.destroy()}}const Qi=!Gt||!this.driver.containsElement(Gt,ei),kn=Q.get(ei),di=Zt.get(ei),dn=this._buildInstruction(Xt,E,di,kn,Qi);if(dn.errors&&dn.errors.length)return void je.push(dn);if(Qi)return En.onStart(()=>xe(ei,dn.fromStyles)),En.onDestroy(()=>we(ei,dn.toStyles)),void U.push(En);if(Xt.isFallbackTransition)return En.onStart(()=>xe(ei,dn.fromStyles)),En.onDestroy(()=>we(ei,dn.toStyles)),void U.push(En);const Bo=[];dn.timelines.forEach(si=>{si.stretchStartingKeyframe=!0,this.disabledNodes.has(si.element)||Bo.push(si)}),dn.timelines=Bo,E.append(ei,dn.timelines),Le.push({instruction:dn,player:En,element:ei}),dn.queriedElements.forEach(si=>I(He,si,[]).push(En)),dn.preStyleProps.forEach((si,Ar)=>{const fr=Object.keys(si);if(fr.length){let Or=nt.get(Ar);Or||nt.set(Ar,Or=new Set),fr.forEach(Br=>Or.add(Br))}}),dn.postStyleProps.forEach((si,Ar)=>{const fr=Object.keys(si);let Or=mt.get(Ar);Or||mt.set(Ar,Or=new Set),fr.forEach(Br=>Or.add(Br))})});if(je.length){const It=[];je.forEach(xt=>{It.push(`@${xt.triggerName} has failed due to:\n`),xt.errors.forEach(Xt=>It.push(`- ${Xt}\n`))}),Re.forEach(xt=>xt.destroy()),this.reportError(It)}const it=new Map,bt=new Map;Le.forEach(It=>{const xt=It.element;E.has(xt)&&(bt.set(xt,xt),this._beforeAnimationBuild(It.player.namespaceId,It.instruction,it))}),U.forEach(It=>{const xt=It.element;this._getPreviousPlayers(xt,!1,It.namespaceId,It.triggerName,null).forEach(En=>{I(it,xt,[]).push(En),En.destroy()})});const _t=un.filter(It=>Si(It,nt,mt)),$t=new Map;lr($t,this.driver,$,mt,m.l3).forEach(It=>{Si(It,nt,mt)&&_t.push(It)});const vn=new Map;pn.forEach((It,xt)=>{lr(vn,this.driver,new Set(It),nt,m.k1)}),_t.forEach(It=>{const xt=$t.get(It),Xt=vn.get(It);$t.set(It,Object.assign(Object.assign({},xt),Xt))});const sn=[],Sn=[],gn={};Le.forEach(It=>{const{element:xt,player:Xt,instruction:En}=It;if(E.has(xt)){if(Ot.has(xt))return Xt.onDestroy(()=>we(xt,En.toStyles)),Xt.disabled=!0,Xt.overrideTotalTime(En.totalTime),void U.push(Xt);let ei=gn;if(bt.size>1){let kn=xt;const di=[];for(;kn=kn.parentNode;){const dn=bt.get(kn);if(dn){ei=dn;break}di.push(kn)}di.forEach(dn=>bt.set(dn,ei))}const Qi=this._buildAnimation(Xt.namespaceId,En,it,ce,vn,$t);if(Xt.setRealPlayer(Qi),ei===gn)sn.push(Xt);else{const kn=this.playersByElement.get(ei);kn&&kn.length&&(Xt.parentPlayer=y(kn)),U.push(Xt)}}else xe(xt,En.fromStyles),Xt.onDestroy(()=>we(xt,En.toStyles)),Sn.push(Xt),Ot.has(xt)&&U.push(Xt)}),Sn.forEach(It=>{const xt=ce.get(It.element);if(xt&&xt.length){const Xt=y(xt);It.setRealPlayer(Xt)}}),U.forEach(It=>{It.parentPlayer?It.syncPlayerEvents(It.parentPlayer):It.destroy()});for(let It=0;It<un.length;It++){const xt=un[It],Xt=xt[An];if(Ci(xt,ae),Xt&&Xt.hasAnimation)continue;let En=[];if(He.size){let Qi=He.get(xt);Qi&&Qi.length&&En.push(...Qi);let kn=this.driver.query(xt,me,!0);for(let di=0;di<kn.length;di++){let dn=He.get(kn[di]);dn&&dn.length&&En.push(...dn)}}const ei=En.filter(Qi=>!Qi.destroyed);ei.length?Bi(this,xt,ei):this.processLeaveNode(xt)}return un.length=0,sn.forEach(It=>{this.players.push(It),It.onDone(()=>{It.destroy();const xt=this.players.indexOf(It);this.players.splice(xt,1)}),It.play()}),sn}elementContainsData(h,c){let E=!1;const U=c[An];return U&&U.setForRemoval&&(E=!0),this.playersByElement.has(c)&&(E=!0),this.playersByQueriedElement.has(c)&&(E=!0),this.statesByElement.has(c)&&(E=!0),this._fetchNamespace(h).elementContainsData(c)||E}afterFlush(h){this._flushFns.push(h)}afterFlushAnimationsDone(h){this._whenQuietFns.push(h)}_getPreviousPlayers(h,c,E,U,ce){let Le=[];if(c){const He=this.playersByQueriedElement.get(h);He&&(Le=He)}else{const He=this.playersByElement.get(h);if(He){const nt=!ce||ce==ti;He.forEach(mt=>{mt.queued||!nt&&mt.triggerName!=U||Le.push(mt)})}}return(E||U)&&(Le=Le.filter(He=>!(E&&E!=He.namespaceId||U&&U!=He.triggerName))),Le}_beforeAnimationBuild(h,c,E){const ce=c.element,Le=c.isRemovalTransition?void 0:h,He=c.isRemovalTransition?void 0:c.triggerName;for(const nt of c.timelines){const mt=nt.element,Ot=mt!==ce,Gt=I(E,mt,[]);this._getPreviousPlayers(mt,Ot,Le,He,c.toState).forEach(pn=>{const Zt=pn.getRealPlayer();Zt.beforeDestroy&&Zt.beforeDestroy(),pn.destroy(),Gt.push(pn)})}xe(ce,c.fromStyles)}_buildAnimation(h,c,E,U,ce,Le){const He=c.triggerName,nt=c.element,mt=[],Ot=new Set,Gt=new Set,cn=c.timelines.map(Zt=>{const Qt=Zt.element;Ot.add(Qt);const un=Qt[An];if(un&&un.removedBeforeQueried)return new m.ZN(Zt.duration,Zt.delay);const ee=Qt!==nt,$=function Nr(K){const h=[];return ji(K,h),h}((E.get(Qt)||In).map(it=>it.getRealPlayer())).filter(it=>!!it.element&&it.element===Qt),Q=ce.get(Qt),te=Le.get(Qt),Re=C(0,this._normalizer,0,Zt.keyframes,Q,te),je=this._buildPlayer(Zt,Re,$);if(Zt.subTimeline&&U&&Gt.add(Qt),ee){const it=new bi(h,He,Qt);it.setRealPlayer(je),mt.push(it)}return je});mt.forEach(Zt=>{I(this.playersByQueriedElement,Zt.element,[]).push(Zt),Zt.onDone(()=>function Ti(K,h,c){let E;if(K instanceof Map){if(E=K.get(h),E){if(E.length){const U=E.indexOf(c);E.splice(U,1)}0==E.length&&K.delete(h)}}else if(E=K[h],E){if(E.length){const U=E.indexOf(c);E.splice(U,1)}0==E.length&&delete K[h]}return E}(this.playersByQueriedElement,Zt.element,Zt))}),Ot.forEach(Zt=>Gn(Zt,Ke));const pn=y(cn);return pn.onDestroy(()=>{Ot.forEach(Zt=>Ci(Zt,Ke)),we(nt,c.toStyles)}),Gt.forEach(Zt=>{I(U,Zt,[]).push(pn)}),pn}_buildPlayer(h,c,E){return c.length>0?this.driver.animate(h.element,c,h.duration,h.delay,h.easing,E):new m.ZN(h.duration,h.delay)}}class bi{constructor(h,c,E){this.namespaceId=h,this.triggerName=c,this.element=E,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(h){this._containsRealPlayer||(this._player=h,Object.keys(this._queuedCallbacks).forEach(c=>{this._queuedCallbacks[c].forEach(E=>D(h,c,void 0,E))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(h.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(h){this.totalTime=h}syncPlayerEvents(h){const c=this._player;c.triggerCallback&&h.onStart(()=>c.triggerCallback("start")),h.onDone(()=>this.finish()),h.onDestroy(()=>this.destroy())}_queueEvent(h,c){I(this._queuedCallbacks,h,[]).push(c)}onDone(h){this.queued&&this._queueEvent("done",h),this._player.onDone(h)}onStart(h){this.queued&&this._queueEvent("start",h),this._player.onStart(h)}onDestroy(h){this.queued&&this._queueEvent("destroy",h),this._player.onDestroy(h)}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(h){this.queued||this._player.setPosition(h)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(h){const c=this._player;c.triggerCallback&&c.triggerCallback(h)}}function Hn(K){return K&&1===K.nodeType}function Xi(K,h){const c=K.style.display;return K.style.display=null!=h?h:"none",c}function lr(K,h,c,E,U){const ce=[];c.forEach(nt=>ce.push(Xi(nt)));const Le=[];E.forEach((nt,mt)=>{const Ot={};nt.forEach(Gt=>{const cn=Ot[Gt]=h.computeStyle(mt,Gt,U);(!cn||0==cn.length)&&(mt[An]=li,Le.push(mt))}),K.set(mt,Ot)});let He=0;return c.forEach(nt=>Xi(nt,ce[He++])),Le}function Kn(K,h){const c=new Map;if(K.forEach(He=>c.set(He,[])),0==h.length)return c;const U=new Set(h),ce=new Map;function Le(He){if(!He)return 1;let nt=ce.get(He);if(nt)return nt;const mt=He.parentNode;return nt=c.has(mt)?mt:U.has(mt)?1:Le(mt),ce.set(He,nt),nt}return h.forEach(He=>{const nt=Le(He);1!==nt&&c.get(nt).push(He)}),c}function Gn(K,h){var c;null===(c=K.classList)||void 0===c||c.add(h)}function Ci(K,h){var c;null===(c=K.classList)||void 0===c||c.remove(h)}function Bi(K,h,c){y(c).onDone(()=>K.processLeaveNode(h))}function ji(K,h){for(let c=0;c<K.length;c++){const E=K[c];E instanceof m.ZE?ji(E.players,h):h.push(E)}}function Si(K,h,c){const E=c.get(K);if(!E)return!1;let U=h.get(K);return U?E.forEach(ce=>U.add(ce)):h.set(K,E),c.delete(K),!0}class Vi{constructor(h,c,E){this.bodyNode=h,this._driver=c,this._normalizer=E,this._triggerCache={},this.onRemovalComplete=(U,ce)=>{},this._transitionEngine=new zn(h,c,E),this._timelineEngine=new qt(h,c,E),this._transitionEngine.onRemovalComplete=(U,ce)=>this.onRemovalComplete(U,ce)}registerTrigger(h,c,E,U,ce){const Le=h+"-"+U;let He=this._triggerCache[Le];if(!He){const nt=[],mt=Vt(this._driver,ce,nt);if(nt.length)throw new Error(`The animation trigger "${U}" has failed to build due to the following errors:\n - ${nt.join("\n - ")}`);He=function Ae(K,h,c){return new tt(K,h,c)}(U,mt,this._normalizer),this._triggerCache[Le]=He}this._transitionEngine.registerTrigger(c,U,He)}register(h,c){this._transitionEngine.register(h,c)}destroy(h,c){this._transitionEngine.destroy(h,c)}onInsert(h,c,E,U){this._transitionEngine.insertNode(h,c,E,U)}onRemove(h,c,E,U){this._transitionEngine.removeNode(h,c,U||!1,E)}disableAnimations(h,c){this._transitionEngine.markElementAsDisabled(h,c)}process(h,c,E,U){if("@"==E.charAt(0)){const[ce,Le]=T(E);this._timelineEngine.command(ce,c,Le,U)}else this._transitionEngine.trigger(h,c,E,U)}listen(h,c,E,U,ce){if("@"==E.charAt(0)){const[Le,He]=T(E);return this._timelineEngine.listen(Le,c,He,ce)}return this._transitionEngine.listen(h,c,E,U,ce)}flush(h=-1){this._transitionEngine.flush(h)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function ui(K,h){let c=null,E=null;return Array.isArray(h)&&h.length?(c=Ei(h[0]),h.length>1&&(E=Ei(h[h.length-1]))):h&&(c=Ei(h)),c||E?new cr(K,c,E):null}let cr=(()=>{class K{constructor(c,E,U){this._element=c,this._startStyles=E,this._endStyles=U,this._state=0;let ce=K.initialStylesByElement.get(c);ce||K.initialStylesByElement.set(c,ce={}),this._initialStyles=ce}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&&(K.initialStylesByElement.delete(this._element),this._startStyles&&(xe(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xe(this._element,this._endStyles),this._endStyles=null),we(this._element,this._initialStyles),this._state=3)}}return K.initialStylesByElement=new WeakMap,K})();function Ei(K){let h=null;const c=Object.keys(K);for(let E=0;E<c.length;E++){const U=c[E];Mr(U)&&(h=h||{},h[U]=K[U])}return h}function Mr(K){return"display"===K||"position"===K}const $i="animation",Ii="animationend";class Sr{constructor(h,c,E,U,ce,Le,He){this._element=h,this._name=c,this._duration=E,this._delay=U,this._easing=ce,this._fillMode=Le,this._onDoneFn=He,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=nt=>this._handleCallback(nt)}apply(){(function ur(K,h){const c=qi(K,"").trim();let E=0;c.length&&(E=function er(K,h){let c=0;for(let E=0;E<K.length;E++)K.charAt(E)===h&&c++;return c}(c,",")+1,h=`${c}, ${h}`),gi(K,"",h)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Ui(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){Pi(this._element,this._name,"paused")}resume(){Pi(this._element,this._name,"running")}setPosition(h){const c=Ai(this._element,this._name);this._position=h*this._duration,gi(this._element,"Delay",`-${this._position}ms`,c)}getPosition(){return this._position}_handleCallback(h){const c=h._ngTestManualTimestamp||Date.now(),E=1e3*parseFloat(h.elapsedTime.toFixed(3));h.animationName==this._name&&Math.max(c-this._startTime,0)>=this._delay&&E>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Ui(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function pi(K,h){const E=qi(K,"").split(","),U=mi(E,h);U>=0&&(E.splice(U,1),gi(K,"",E.join(",")))}(this._element,this._name))}}function Pi(K,h,c){gi(K,"PlayState",c,Ai(K,h))}function Ai(K,h){const c=qi(K,"");return c.indexOf(",")>0?mi(c.split(","),h):mi([c],h)}function mi(K,h){for(let c=0;c<K.length;c++)if(K[c].indexOf(h)>=0)return c;return-1}function Ui(K,h,c){c?K.removeEventListener(Ii,h):K.addEventListener(Ii,h)}function gi(K,h,c,E){const U=$i+h;if(null!=E){const ce=K.style[U];if(ce.length){const Le=ce.split(",");Le[E]=c,c=Le.join(",")}}K.style[U]=c}function qi(K,h){return K.style[$i+h]||""}class oi{constructor(h,c,E,U,ce,Le,He,nt){this.element=h,this.keyframes=c,this.animationName=E,this._duration=U,this._delay=ce,this._finalStyles=He,this._specialStyles=nt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Le||"linear",this.totalTime=U+ce,this._buildStyler()}onStart(h){this._onStartFns.push(h)}onDone(h){this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(h=>h()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(h=>h()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(h=>h()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(h){this._styler.setPosition(h)}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 Sr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(h){const c="start"==h?this._onStartFns:this._onDoneFns;c.forEach(E=>E()),c.length=0}beforeDestroy(){this.init();const h={};if(this.hasStarted()){const c=this._state>=3;Object.keys(this._finalStyles).forEach(E=>{"offset"!=E&&(h[E]=c?this._finalStyles[E]:be(this.element,E))})}this.currentSnapshot=h}}class dr extends m.ZN{constructor(h,c){super(),this.element=h,this._startingStyles={},this.__initialized=!1,this._styles=De(c)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(h=>{this._startingStyles[h]=this.element.style[h]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(h=>this.element.style.setProperty(h,this._styles[h])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(h=>{const c=this._startingStyles[h];c?this.element.style.setProperty(h,c):this.element.style.removeProperty(h)}),this._startingStyles=null,super.destroy())}}class Ki{constructor(){this._count=0}validateStyleProperty(h){return Me(h)}matchesElement(h,c){return!1}containsElement(h,c){return ye(h,c)}query(h,c,E){return se(h,c,E)}computeStyle(h,c,E){return window.getComputedStyle(h)[c]}buildKeyframeElement(h,c,E){E=E.map(He=>De(He));let U=`@keyframes ${c} {\n`,ce="";E.forEach(He=>{ce=" ";const nt=parseFloat(He.offset);U+=`${ce}${100*nt}% {\n`,ce+=" ",Object.keys(He).forEach(mt=>{const Ot=He[mt];switch(mt){case"offset":return;case"easing":return void(Ot&&(U+=`${ce}animation-timing-function: ${Ot};\n`));default:return void(U+=`${ce}${mt}: ${Ot};\n`)}}),U+=`${ce}}\n`}),U+="}\n";const Le=document.createElement("style");return Le.textContent=U,Le}animate(h,c,E,U,ce,Le=[],He){const nt=Le.filter(un=>un instanceof oi),mt={};Oe(E,U)&&nt.forEach(un=>{let ee=un.currentSnapshot;Object.keys(ee).forEach($=>mt[$]=ee[$])});const Ot=function Ir(K){let h={};return K&&(Array.isArray(K)?K:[K]).forEach(E=>{Object.keys(E).forEach(U=>{"offset"==U||"easing"==U||(h[U]=E[U])})}),h}(c=ue(h,c,mt));if(0==E)return new dr(h,Ot);const Gt="gen_css_kf_"+this._count++,cn=this.buildKeyframeElement(h,Gt,c);(function Oi(K){var h;const c=null===(h=K.getRootNode)||void 0===h?void 0:h.call(K);return"undefined"!=typeof ShadowRoot&&c instanceof ShadowRoot?c:document.head})(h).appendChild(cn);const Zt=ui(h,c),Qt=new oi(h,c,Gt,E,U,ce,Ot,Zt);return Qt.onDestroy(()=>function Gi(K){K.parentNode.removeChild(K)}(cn)),Qt}}class wi{constructor(h,c,E,U){this.element=h,this.keyframes=c,this.options=E,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=E.duration,this._delay=E.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(h=>h()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const h=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,h,this.options),this._finalKeyframe=h.length?h[h.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(h,c,E){return h.animate(c,E)}onStart(h){this._onStartFns.push(h)}onDone(h){this._onDoneFns.push(h)}onDestroy(h){this._onDestroyFns.push(h)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(h=>h()),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(h=>h()),this._onDestroyFns=[])}setPosition(h){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=h*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const h={};if(this.hasStarted()){const c=this._finalKeyframe;Object.keys(c).forEach(E=>{"offset"!=E&&(h[E]=this._finished?c[E]:be(this.element,E))})}this.currentSnapshot=h}triggerCallback(h){const c="start"==h?this._onStartFns:this._onDoneFns;c.forEach(E=>E()),c.length=0}}class Lr{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(F().toString()),this._cssKeyframesDriver=new Ki}validateStyleProperty(h){return Me(h)}matchesElement(h,c){return!1}containsElement(h,c){return ye(h,c)}query(h,c,E){return se(h,c,E)}computeStyle(h,c,E){return window.getComputedStyle(h)[c]}overrideWebAnimationsSupport(h){this._isNativeImpl=h}animate(h,c,E,U,ce,Le=[],He){if(!He&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(h,c,E,U,ce,Le);const Ot={duration:E,delay:U,fill:0==U?"both":"forwards"};ce&&(Ot.easing=ce);const Gt={},cn=Le.filter(Zt=>Zt instanceof wi);Oe(E,U)&&cn.forEach(Zt=>{let Qt=Zt.currentSnapshot;Object.keys(Qt).forEach(un=>Gt[un]=Qt[un])});const pn=ui(h,c=ue(h,c=c.map(Zt=>qe(Zt,!1)),Gt));return new wi(h,c,Ot,pn)}}function F(){return u()&&Element.prototype.animate||{}}var Z=l(9808);let x=(()=>{class K extends m._j{constructor(c,E){super(),this._nextAnimationId=0,this._renderer=c.createRenderer(E.body,{id:"0",encapsulation:i.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(c){const E=this._nextAnimationId.toString();this._nextAnimationId++;const U=Array.isArray(c)?(0,m.vP)(c):c;return dt(this._renderer,null,E,"register",[U]),new ie(E,this._renderer)}}return K.\u0275fac=function(c){return new(c||K)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Z.DOCUMENT))},K.\u0275prov=i.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac}),K})();class ie extends m.LC{constructor(h,c){super(),this._id=h,this._renderer=c}create(h,c){return new ze(this._id,h,c||{},this._renderer)}}class ze{constructor(h,c,E,U){this.id=h,this.element=c,this._renderer=U,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",E)}_listen(h,c){return this._renderer.listen(this.element,`@@${this.id}:${h}`,c)}_command(h,...c){return dt(this._renderer,this.element,this.id,h,c)}onDone(h){this._listen("done",h)}onStart(h){this._listen("start",h)}onDestroy(h){this._listen("destroy",h)}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(h){this._command("setPosition",h)}getPosition(){var h,c;return null!==(c=null===(h=this._renderer.engine.players[+this.id])||void 0===h?void 0:h.getPosition())&&void 0!==c?c:0}}function dt(K,h,c,E,U){return K.setProperty(h,`@@${c}:${E}`,U)}const Ut="@.disabled";let wn=(()=>{class K{constructor(c,E,U){this.delegate=c,this.engine=E,this._zone=U,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),E.onRemovalComplete=(ce,Le)=>{const He=null==Le?void 0:Le.parentNode(ce);He&&Le.removeChild(He,ce)}}createRenderer(c,E){const ce=this.delegate.createRenderer(c,E);if(!(c&&E&&E.data&&E.data.animation)){let Ot=this._rendererCache.get(ce);return Ot||(Ot=new yn("",ce,this.engine),this._rendererCache.set(ce,Ot)),Ot}const Le=E.id,He=E.id+"-"+this._currentId;this._currentId++,this.engine.register(He,c);const nt=Ot=>{Array.isArray(Ot)?Ot.forEach(nt):this.engine.registerTrigger(Le,He,c,Ot.name,Ot)};return E.data.animation.forEach(nt),new hn(this,He,ce,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(c,E,U){c>=0&&c<this._microtaskId?this._zone.run(()=>E(U)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ce=>{const[Le,He]=ce;Le(He)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([E,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 K.\u0275fac=function(c){return new(c||K)(i.\u0275\u0275inject(i.RendererFactory2),i.\u0275\u0275inject(Vi),i.\u0275\u0275inject(i.NgZone))},K.\u0275prov=i.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac}),K})();class yn{constructor(h,c,E){this.namespaceId=h,this.delegate=c,this.engine=E,this.destroyNode=this.delegate.destroyNode?U=>c.destroyNode(U):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(h,c){return this.delegate.createElement(h,c)}createComment(h){return this.delegate.createComment(h)}createText(h){return this.delegate.createText(h)}appendChild(h,c){this.delegate.appendChild(h,c),this.engine.onInsert(this.namespaceId,c,h,!1)}insertBefore(h,c,E,U=!0){this.delegate.insertBefore(h,c,E),this.engine.onInsert(this.namespaceId,c,h,U)}removeChild(h,c,E){this.engine.onRemove(this.namespaceId,c,this.delegate,E)}selectRootElement(h,c){return this.delegate.selectRootElement(h,c)}parentNode(h){return this.delegate.parentNode(h)}nextSibling(h){return this.delegate.nextSibling(h)}setAttribute(h,c,E,U){this.delegate.setAttribute(h,c,E,U)}removeAttribute(h,c,E){this.delegate.removeAttribute(h,c,E)}addClass(h,c){this.delegate.addClass(h,c)}removeClass(h,c){this.delegate.removeClass(h,c)}setStyle(h,c,E,U){this.delegate.setStyle(h,c,E,U)}removeStyle(h,c,E){this.delegate.removeStyle(h,c,E)}setProperty(h,c,E){"@"==c.charAt(0)&&c==Ut?this.disableAnimations(h,!!E):this.delegate.setProperty(h,c,E)}setValue(h,c){this.delegate.setValue(h,c)}listen(h,c,E){return this.delegate.listen(h,c,E)}disableAnimations(h,c){this.engine.disableAnimations(h,c)}}class hn extends yn{constructor(h,c,E,U){super(c,E,U),this.factory=h,this.namespaceId=c}setProperty(h,c,E){"@"==c.charAt(0)?"."==c.charAt(1)&&c==Ut?this.disableAnimations(h,E=void 0===E||!!E):this.engine.process(this.namespaceId,h,c.substr(1),E):this.delegate.setProperty(h,c,E)}listen(h,c,E){if("@"==c.charAt(0)){const U=function _n(K){switch(K){case"body":return document.body;case"document":return document;case"window":return window;default:return K}}(h);let ce=c.substr(1),Le="";return"@"!=ce.charAt(0)&&([ce,Le]=function Bn(K){const h=K.indexOf(".");return[K.substring(0,h),K.substr(h+1)]}(ce)),this.engine.listen(this.namespaceId,U,ce,Le,He=>{this.factory.scheduleListenerCallback(He._data||-1,E,He)})}return this.delegate.listen(h,c,E)}}let k=(()=>{class K extends Vi{constructor(c,E,U){super(c.body,E,U)}ngOnDestroy(){this.flush()}}return K.\u0275fac=function(c){return new(c||K)(i.\u0275\u0275inject(Z.DOCUMENT),i.\u0275\u0275inject(et),i.\u0275\u0275inject(Mn))},K.\u0275prov=i.\u0275\u0275defineInjectable({token:K,factory:K.\u0275fac}),K})();const Xe=new i.InjectionToken("AnimationModuleType"),Wt=[{provide:m._j,useClass:x},{provide:Mn,useFactory:function S(){return new hi}},{provide:Vi,useClass:k},{provide:i.RendererFactory2,useFactory:function J(K,h,c){return new wn(K,h,c)},deps:[d.\u0275DomRendererFactory2,Vi,i.NgZone]}],Fn=[{provide:et,useFactory:function A(){return function On(){return"function"==typeof F()}()?new Lr:new Ki}},{provide:Xe,useValue:"BrowserAnimations"},...Wt],Xn=[{provide:et,useClass:ke},{provide:Xe,useValue:"NoopAnimations"},...Wt];let xi=(()=>{class K{static withConfig(c){return{ngModule:K,providers:c.disableAnimations?Xn:Fn}}}return K.\u0275fac=function(c){return new(c||K)},K.\u0275mod=i.\u0275\u0275defineNgModule({type:K}),K.\u0275inj=i.\u0275\u0275defineInjector({providers:Fn,imports:[d.BrowserModule]}),K})(),hr=(()=>{class K{}return K.\u0275fac=function(c){return new(c||K)},K.\u0275mod=i.\u0275\u0275defineNgModule({type:K}),K.\u0275inj=i.\u0275\u0275defineInjector({providers:Xn,imports:[d.BrowserModule]}),K})()},2313:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{\u0275getDOM:()=>i.\u0275getDOM,BrowserModule:()=>ht,BrowserTransferStateModule:()=>Jt,By:()=>on,DomSanitizer:()=>_e,EVENT_MANAGER_PLUGINS:()=>R,EventManager:()=>j,HAMMER_GESTURE_CONFIG:()=>W,HAMMER_LOADER:()=>P,HammerGestureConfig:()=>L,HammerModule:()=>O,Meta:()=>N,Title:()=>ue,TransferState:()=>wt,VERSION:()=>Ht,disableDebugTools:()=>Vt,enableDebugTools:()=>tn,makeStateKey:()=>zt,platformBrowser:()=>Et,\u0275BrowserDomAdapter:()=>u,\u0275BrowserGetTestability:()=>T,\u0275DomEventsPlugin:()=>Ue,\u0275DomRendererFactory2:()=>Ie,\u0275DomSanitizerImpl:()=>kt,\u0275DomSharedStylesHost:()=>le,\u0275HammerGesturesPlugin:()=>g,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>vt,\u0275KeyEventsPlugin:()=>pe,\u0275NAMESPACE_URIS:()=>fe,\u0275SharedStylesHost:()=>V,\u0275TRANSITION_ID:()=>w,\u0275escapeHtml:()=>Tn,\u0275flattenStyles:()=>Pe,\u0275initDomAdapter:()=>xe,\u0275shimContentAttribute:()=>lt,\u0275shimHostAttribute:()=>q});var i=l(9808),d=l(5e3);class m extends i.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class u extends m{static makeCurrent(){(0,i.\u0275setRootDomAdapter)(new u)}onAndCancel($e,de,Ve){return $e.addEventListener(de,Ve,!1),()=>{$e.removeEventListener(de,Ve,!1)}}dispatchEvent($e,de){$e.dispatchEvent(de)}remove($e){$e.parentNode&&$e.parentNode.removeChild($e)}createElement($e,de){return(de=de||this.getDefaultDocument()).createElement($e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode($e){return $e.nodeType===Node.ELEMENT_NODE}isShadowRoot($e){return $e instanceof DocumentFragment}getGlobalEventTarget($e,de){return"window"===de?window:"document"===de?$e:"body"===de?$e.body:null}getBaseHref($e){const de=function y(){return s=s||document.querySelector("base"),s?s.getAttribute("href"):null}();return null==de?null:function D(Fe){C=C||document.createElement("a"),C.setAttribute("href",Fe);const $e=C.pathname;return"/"===$e.charAt(0)?$e:`/${$e}`}(de)}resetBaseElement(){s=null}getUserAgent(){return window.navigator.userAgent}getCookie($e){return(0,i.\u0275parseCookieValue)(document.cookie,$e)}}let C,s=null;const w=new d.InjectionToken("TRANSITION_ID"),I=[{provide:d.APP_INITIALIZER,useFactory:function f(Fe,$e,de){return()=>{de.get(d.ApplicationInitStatus).donePromise.then(()=>{const Ve=(0,i.\u0275getDOM)(),ft=$e.querySelectorAll(`style[ng-transition="${Fe}"]`);for(let Lt=0;Lt<ft.length;Lt++)Ve.remove(ft[Lt])})}},deps:[w,i.DOCUMENT,d.Injector],multi:!0}];class T{static init(){(0,d.setTestabilityGetter)(new T)}addToWindow($e){d.\u0275global.getAngularTestability=(Ve,ft=!0)=>{const Lt=$e.findTestabilityInTree(Ve,ft);if(null==Lt)throw new Error("Could not find testability for element.");return Lt},d.\u0275global.getAllAngularTestabilities=()=>$e.getAllTestabilities(),d.\u0275global.getAllAngularRootElements=()=>$e.getAllRootElements(),d.\u0275global.frameworkStabilizers||(d.\u0275global.frameworkStabilizers=[]),d.\u0275global.frameworkStabilizers.push(Ve=>{const ft=d.\u0275global.getAllAngularTestabilities();let Lt=ft.length,Ft=!1;const an=function(Mn){Ft=Ft||Mn,Lt--,0==Lt&&Ve(Ft)};ft.forEach(function(Mn){Mn.whenStable(an)})})}findTestabilityInTree($e,de,Ve){if(null==de)return null;const ft=$e.getTestability(de);return null!=ft?ft:Ve?(0,i.\u0275getDOM)().isShadowRoot(de)?this.findTestabilityInTree($e,de.host,!0):this.findTestabilityInTree($e,de.parentElement,!0):null}}let b=(()=>{class Fe{build(){return new XMLHttpRequest}}return Fe.\u0275fac=function(de){return new(de||Fe)},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})();const R=new d.InjectionToken("EventManagerPlugins");let j=(()=>{class Fe{constructor(de,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,de.forEach(ft=>ft.manager=this),this._plugins=de.slice().reverse()}addEventListener(de,Ve,ft){return this._findPluginFor(Ve).addEventListener(de,Ve,ft)}addGlobalEventListener(de,Ve,ft){return this._findPluginFor(Ve).addGlobalEventListener(de,Ve,ft)}getZone(){return this._zone}_findPluginFor(de){const Ve=this._eventNameToPlugin.get(de);if(Ve)return Ve;const ft=this._plugins;for(let Lt=0;Lt<ft.length;Lt++){const Ft=ft[Lt];if(Ft.supports(de))return this._eventNameToPlugin.set(de,Ft),Ft}throw new Error(`No event manager plugin found for event ${de}`)}}return Fe.\u0275fac=function(de){return new(de||Fe)(d.\u0275\u0275inject(R),d.\u0275\u0275inject(d.NgZone))},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})();class he{constructor($e){this._doc=$e}addGlobalEventListener($e,de,Ve){const ft=(0,i.\u0275getDOM)().getGlobalEventTarget(this._doc,$e);if(!ft)throw new Error(`Unsupported event target ${ft} for event ${de}`);return this.addEventListener(ft,de,Ve)}}let V=(()=>{class Fe{constructor(){this._stylesSet=new Set}addStyles(de){const Ve=new Set;de.forEach(ft=>{this._stylesSet.has(ft)||(this._stylesSet.add(ft),Ve.add(ft))}),this.onStylesAdded(Ve)}onStylesAdded(de){}getAllStyles(){return Array.from(this._stylesSet)}}return Fe.\u0275fac=function(de){return new(de||Fe)},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})(),le=(()=>{class Fe extends V{constructor(de){super(),this._doc=de,this._hostNodes=new Map,this._hostNodes.set(de.head,[])}_addStylesToHost(de,Ve,ft){de.forEach(Lt=>{const Ft=this._doc.createElement("style");Ft.textContent=Lt,ft.push(Ve.appendChild(Ft))})}addHost(de){const Ve=[];this._addStylesToHost(this._stylesSet,de,Ve),this._hostNodes.set(de,Ve)}removeHost(de){const Ve=this._hostNodes.get(de);Ve&&Ve.forEach(Me),this._hostNodes.delete(de)}onStylesAdded(de){this._hostNodes.forEach((Ve,ft)=>{this._addStylesToHost(de,ft,Ve)})}ngOnDestroy(){this._hostNodes.forEach(de=>de.forEach(Me))}}return Fe.\u0275fac=function(de){return new(de||Fe)(d.\u0275\u0275inject(i.DOCUMENT))},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})();function Me(Fe){(0,i.\u0275getDOM)().remove(Fe)}const fe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ye=/%COMP%/g;function lt(Fe){return"_ngcontent-%COMP%".replace(ye,Fe)}function q(Fe){return"_nghost-%COMP%".replace(ye,Fe)}function Pe(Fe,$e,de){for(let Ve=0;Ve<$e.length;Ve++){let ft=$e[Ve];Array.isArray(ft)?Pe(Fe,ft,de):(ft=ft.replace(ye,Fe),de.push(ft))}return de}function X(Fe){return $e=>{if("__ngUnwrap__"===$e)return Fe;!1===Fe($e)&&($e.preventDefault(),$e.returnValue=!1)}}let Ie=(()=>{class Fe{constructor(de,Ve,ft){this.eventManager=de,this.sharedStylesHost=Ve,this.appId=ft,this.rendererByCompId=new Map,this.defaultRenderer=new ne(de)}createRenderer(de,Ve){if(!de||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case d.ViewEncapsulation.Emulated:{let ft=this.rendererByCompId.get(Ve.id);return ft||(ft=new st(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,ft)),ft.applyToHost(de),ft}case 1:case d.ViewEncapsulation.ShadowDom:return new ve(this.eventManager,this.sharedStylesHost,de,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const ft=Pe(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(ft),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Fe.\u0275fac=function(de){return new(de||Fe)(d.\u0275\u0275inject(j),d.\u0275\u0275inject(le),d.\u0275\u0275inject(d.APP_ID))},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})();class ne{constructor($e){this.eventManager=$e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement($e,de){return de?document.createElementNS(fe[de],$e):document.createElement($e)}createComment($e){return document.createComment($e)}createText($e){return document.createTextNode($e)}appendChild($e,de){$e.appendChild(de)}insertBefore($e,de,Ve){$e&&$e.insertBefore(de,Ve)}removeChild($e,de){$e&&$e.removeChild(de)}selectRootElement($e,de){let Ve="string"==typeof $e?document.querySelector($e):$e;if(!Ve)throw new Error(`The selector "${$e}" did not match any elements`);return de||(Ve.textContent=""),Ve}parentNode($e){return $e.parentNode}nextSibling($e){return $e.nextSibling}setAttribute($e,de,Ve,ft){if(ft){de=ft+":"+de;const Lt=fe[ft];Lt?$e.setAttributeNS(Lt,de,Ve):$e.setAttribute(de,Ve)}else $e.setAttribute(de,Ve)}removeAttribute($e,de,Ve){if(Ve){const ft=fe[Ve];ft?$e.removeAttributeNS(ft,de):$e.removeAttribute(`${Ve}:${de}`)}else $e.removeAttribute(de)}addClass($e,de){$e.classList.add(de)}removeClass($e,de){$e.classList.remove(de)}setStyle($e,de,Ve,ft){ft&(d.RendererStyleFlags2.DashCase|d.RendererStyleFlags2.Important)?$e.style.setProperty(de,Ve,ft&d.RendererStyleFlags2.Important?"important":""):$e.style[de]=Ve}removeStyle($e,de,Ve){Ve&d.RendererStyleFlags2.DashCase?$e.style.removeProperty(de):$e.style[de]=""}setProperty($e,de,Ve){$e[de]=Ve}setValue($e,de){$e.nodeValue=de}listen($e,de,Ve){return"string"==typeof $e?this.eventManager.addGlobalEventListener($e,de,X(Ve)):this.eventManager.addEventListener($e,de,X(Ve))}}class st extends ne{constructor($e,de,Ve,ft){super($e),this.component=Ve;const Lt=Pe(ft+"-"+Ve.id,Ve.styles,[]);de.addStyles(Lt),this.contentAttr=lt(ft+"-"+Ve.id),this.hostAttr=q(ft+"-"+Ve.id)}applyToHost($e){super.setAttribute($e,this.hostAttr,"")}createElement($e,de){const Ve=super.createElement($e,de);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class ve extends ne{constructor($e,de,Ve,ft){super($e),this.sharedStylesHost=de,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Lt=Pe(ft.id,ft.styles,[]);for(let Ft=0;Ft<Lt.length;Ft++){const an=document.createElement("style");an.textContent=Lt[Ft],this.shadowRoot.appendChild(an)}}nodeOrShadowRoot($e){return $e===this.hostEl?this.shadowRoot:$e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild($e,de){return super.appendChild(this.nodeOrShadowRoot($e),de)}insertBefore($e,de,Ve){return super.insertBefore(this.nodeOrShadowRoot($e),de,Ve)}removeChild($e,de){return super.removeChild(this.nodeOrShadowRoot($e),de)}parentNode($e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot($e)))}}let Ue=(()=>{class Fe extends he{constructor(de){super(de)}supports(de){return!0}addEventListener(de,Ve,ft){return de.addEventListener(Ve,ft,!1),()=>this.removeEventListener(de,Ve,ft)}removeEventListener(de,Ve,ft){return de.removeEventListener(Ve,ft)}}return Fe.\u0275fac=function(de){return new(de||Fe)(d.\u0275\u0275inject(i.DOCUMENT))},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})();const ut=["alt","control","meta","shift"],Ne={"\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"},qe={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:Fe=>Fe.altKey,control:Fe=>Fe.ctrlKey,meta:Fe=>Fe.metaKey,shift:Fe=>Fe.shiftKey};let pe=(()=>{class Fe extends he{constructor(de){super(de)}supports(de){return null!=Fe.parseEventName(de)}addEventListener(de,Ve,ft){const Lt=Fe.parseEventName(Ve),Ft=Fe.eventCallback(Lt.fullKey,ft,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.\u0275getDOM)().onAndCancel(de,Lt.domEventName,Ft))}static parseEventName(de){const Ve=de.toLowerCase().split("."),ft=Ve.shift();if(0===Ve.length||"keydown"!==ft&&"keyup"!==ft)return null;const Lt=Fe._normalizeKey(Ve.pop());let Ft="";if(ut.forEach(Mn=>{const Vn=Ve.indexOf(Mn);Vn>-1&&(Ve.splice(Vn,1),Ft+=Mn+".")}),Ft+=Lt,0!=Ve.length||0===Lt.length)return null;const an={};return an.domEventName=ft,an.fullKey=Ft,an}static getEventFullKey(de){let Ve="",ft=function we(Fe){let $e=Fe.key;if(null==$e){if($e=Fe.keyIdentifier,null==$e)return"Unidentified";$e.startsWith("U+")&&($e=String.fromCharCode(parseInt($e.substring(2),16)),3===Fe.location&&qe.hasOwnProperty($e)&&($e=qe[$e]))}return Ne[$e]||$e}(de);return ft=ft.toLowerCase()," "===ft?ft="space":"."===ft&&(ft="dot"),ut.forEach(Lt=>{Lt!=ft&&Y[Lt](de)&&(Ve+=Lt+".")}),Ve+=ft,Ve}static eventCallback(de,Ve,ft){return Lt=>{Fe.getEventFullKey(Lt)===de&&ft.runGuarded(()=>Ve(Lt))}}static _normalizeKey(de){return"esc"===de?"escape":de}}return Fe.\u0275fac=function(de){return new(de||Fe)(d.\u0275\u0275inject(i.DOCUMENT))},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})();function xe(){u.makeCurrent(),T.init()}const vt=[{provide:d.PLATFORM_ID,useValue:i.\u0275PLATFORM_BROWSER_ID},{provide:d.PLATFORM_INITIALIZER,useValue:xe,multi:!0},{provide:i.DOCUMENT,useFactory:function Je(){return(0,d.\u0275setDocument)(document),document},deps:[]}],Et=(0,d.createPlatformFactory)(d.platformCore,"browser",vt),At=[{provide:d.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:d.ErrorHandler,useFactory:function ge(){return new d.ErrorHandler},deps:[]},{provide:R,useClass:Ue,multi:!0,deps:[i.DOCUMENT,d.NgZone,d.PLATFORM_ID]},{provide:R,useClass:pe,multi:!0,deps:[i.DOCUMENT]},{provide:Ie,useClass:Ie,deps:[j,le,d.APP_ID]},{provide:d.RendererFactory2,useExisting:Ie},{provide:V,useExisting:le},{provide:le,useClass:le,deps:[i.DOCUMENT]},{provide:d.Testability,useClass:d.Testability,deps:[d.NgZone]},{provide:j,useClass:j,deps:[R,d.NgZone]},{provide:i.XhrFactory,useClass:b,deps:[]}];let ht=(()=>{class Fe{constructor(de){if(de)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(de){return{ngModule:Fe,providers:[{provide:d.APP_ID,useValue:de.appId},{provide:w,useExisting:d.APP_ID},I]}}}return Fe.\u0275fac=function(de){return new(de||Fe)(d.\u0275\u0275inject(Fe,12))},Fe.\u0275mod=d.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=d.\u0275\u0275defineInjector({providers:At,imports:[i.CommonModule,d.ApplicationModule]}),Fe})(),N=(()=>{class Fe{constructor(de){this._doc=de,this._dom=(0,i.\u0275getDOM)()}addTag(de,Ve=!1){return de?this._getOrCreateElement(de,Ve):null}addTags(de,Ve=!1){return de?de.reduce((ft,Lt)=>(Lt&&ft.push(this._getOrCreateElement(Lt,Ve)),ft),[]):[]}getTag(de){return de&&this._doc.querySelector(`meta[${de}]`)||null}getTags(de){if(!de)return[];const Ve=this._doc.querySelectorAll(`meta[${de}]`);return Ve?[].slice.call(Ve):[]}updateTag(de,Ve){if(!de)return null;Ve=Ve||this._parseSelector(de);const ft=this.getTag(Ve);return ft?this._setMetaElementAttributes(de,ft):this._getOrCreateElement(de,!0)}removeTag(de){this.removeTagElement(this.getTag(de))}removeTagElement(de){de&&this._dom.remove(de)}_getOrCreateElement(de,Ve=!1){if(!Ve){const Ft=this._parseSelector(de),an=this.getTags(Ft).filter(Mn=>this._containsAttributes(de,Mn))[0];if(void 0!==an)return an}const ft=this._dom.createElement("meta");return this._setMetaElementAttributes(de,ft),this._doc.getElementsByTagName("head")[0].appendChild(ft),ft}_setMetaElementAttributes(de,Ve){return Object.keys(de).forEach(ft=>Ve.setAttribute(this._getMetaKeyMap(ft),de[ft])),Ve}_parseSelector(de){const Ve=de.name?"name":"property";return`${Ve}="${de[Ve]}"`}_containsAttributes(de,Ve){return Object.keys(de).every(ft=>Ve.getAttribute(this._getMetaKeyMap(ft))===de[ft])}_getMetaKeyMap(de){return oe[de]||de}}return Fe.\u0275fac=function(de){return new(de||Fe)(d.\u0275\u0275inject(i.DOCUMENT))},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:function(de){let Ve=null;return Ve=de?new de:function Ze(){return new N((0,d.\u0275\u0275inject)(i.DOCUMENT))}(),Ve},providedIn:"root"}),Fe})();const oe={httpEquiv:"http-equiv"};let ue=(()=>{class Fe{constructor(de){this._doc=de}getTitle(){return this._doc.title}setTitle(de){this._doc.title=de||""}}return Fe.\u0275fac=function(de){return new(de||Fe)(d.\u0275\u0275inject(i.DOCUMENT))},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:function(de){let Ve=null;return Ve=de?new de:function Oe(){return new ue((0,d.\u0275\u0275inject)(i.DOCUMENT))}(),Ve},providedIn:"root"}),Fe})();function Ye(Fe,$e){"undefined"!=typeof COMPILED&&COMPILED||((d.\u0275global.ng=d.\u0275global.ng||{})[Fe]=$e)}const rt="undefined"!=typeof window&&window||{};class pt{constructor($e,de){this.msPerTick=$e,this.numTicks=de}}class gt{constructor($e){this.appRef=$e.injector.get(d.ApplicationRef)}timeChangeDetection($e){const de=$e&&$e.record,Ve="Change Detection",ft=null!=rt.console.profile;de&&ft&&rt.console.profile(Ve);const Lt=Mt();let Ft=0;for(;Ft<5||Mt()-Lt<500;)this.appRef.tick(),Ft++;const an=Mt();de&&ft&&rt.console.profileEnd(Ve);const Mn=(an-Lt)/Ft;return rt.console.log(`ran ${Ft} change detection cycles`),rt.console.log(`${Mn.toFixed(2)} ms per check`),new pt(Mn,Ft)}}function Mt(){return rt.performance&&rt.performance.now?rt.performance.now():(new Date).getTime()}const jt="profiler";function tn(Fe){return Ye(jt,new gt(Fe)),Fe}function Vt(){Ye(jt,null)}function Tn(Fe){const $e={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return Fe.replace(/[&"'<>]/g,de=>$e[de])}function zt(Fe){return Fe}let wt=(()=>{class Fe{constructor(){this.store={},this.onSerializeCallbacks={}}static init(de){const Ve=new Fe;return Ve.store=de,Ve}get(de,Ve){return void 0!==this.store[de]?this.store[de]:Ve}set(de,Ve){this.store[de]=Ve}remove(de){delete this.store[de]}hasKey(de){return this.store.hasOwnProperty(de)}onSerialize(de,Ve){this.onSerializeCallbacks[de]=Ve}toJson(){for(const de in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(de))try{this.store[de]=this.onSerializeCallbacks[de]()}catch(Ve){console.warn("Exception in onSerialize callback: ",Ve)}return JSON.stringify(this.store)}}return Fe.\u0275fac=function(de){return new(de||Fe)},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})();function bn(Fe,$e){const de=Fe.getElementById($e+"-state");let Ve={};if(de&&de.textContent)try{Ve=JSON.parse(function rn(Fe){const $e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return Fe.replace(/&[^;]+;/g,de=>$e[de])}(de.textContent))}catch(ft){console.warn("Exception while restoring TransferState for app "+$e,ft)}return wt.init(Ve)}let Jt=(()=>{class Fe{}return Fe.\u0275fac=function(de){return new(de||Fe)},Fe.\u0275mod=d.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=d.\u0275\u0275defineInjector({providers:[{provide:wt,useFactory:bn,deps:[i.DOCUMENT,d.APP_ID]}]}),Fe})();class on{static all(){return()=>!0}static css($e){return de=>null!=de.nativeElement&&function Ge(Fe,$e){return!!(0,i.\u0275getDOM)().isElementNode(Fe)&&(Fe.matches&&Fe.matches($e)||Fe.msMatchesSelector&&Fe.msMatchesSelector($e)||Fe.webkitMatchesSelector&&Fe.webkitMatchesSelector($e))}(de.nativeElement,$e)}static directive($e){return de=>-1!==de.providerTokens.indexOf($e)}}const Qe={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},W=new d.InjectionToken("HammerGestureConfig"),P=new d.InjectionToken("HammerLoader");let L=(()=>{class Fe{constructor(){this.events=[],this.overrides={}}buildHammer(de){const Ve=new Hammer(de,this.options);Ve.get("pinch").set({enable:!0}),Ve.get("rotate").set({enable:!0});for(const ft in this.overrides)Ve.get(ft).set(this.overrides[ft]);return Ve}}return Fe.\u0275fac=function(de){return new(de||Fe)},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})(),g=(()=>{class Fe extends he{constructor(de,Ve,ft,Lt){super(de),this._config=Ve,this.console=ft,this.loader=Lt,this._loaderPromise=null}supports(de){return!(!Qe.hasOwnProperty(de.toLowerCase())&&!this.isCustomEvent(de)||!window.Hammer&&!this.loader)}addEventListener(de,Ve,ft){const Lt=this.manager.getZone();if(Ve=Ve.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Ft=!1,an=()=>{Ft=!0};return this._loaderPromise.then(()=>{window.Hammer?Ft||(an=this.addEventListener(de,Ve,ft)):an=()=>{}}).catch(()=>{an=()=>{}}),()=>{an()}}return Lt.runOutsideAngular(()=>{const Ft=this._config.buildHammer(de),an=function(Mn){Lt.runGuarded(function(){ft(Mn)})};return Ft.on(Ve,an),()=>{Ft.off(Ve,an),"function"==typeof Ft.destroy&&Ft.destroy()}})}isCustomEvent(de){return this._config.events.indexOf(de)>-1}}return Fe.\u0275fac=function(de){return new(de||Fe)(d.\u0275\u0275inject(i.DOCUMENT),d.\u0275\u0275inject(W),d.\u0275\u0275inject(d.\u0275Console),d.\u0275\u0275inject(P,8))},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:Fe.\u0275fac}),Fe})(),O=(()=>{class Fe{}return Fe.\u0275fac=function(de){return new(de||Fe)},Fe.\u0275mod=d.\u0275\u0275defineNgModule({type:Fe}),Fe.\u0275inj=d.\u0275\u0275defineInjector({providers:[{provide:R,useClass:g,multi:!0,deps:[i.DOCUMENT,W,d.\u0275Console,[new d.Optional,P]]},{provide:W,useClass:L,deps:[]}]}),Fe})(),_e=(()=>{class Fe{}return Fe.\u0275fac=function(de){return new(de||Fe)},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:function(de){let Ve=null;return Ve=de?new(de||Fe):d.\u0275\u0275inject(kt),Ve},providedIn:"root"}),Fe})(),kt=(()=>{class Fe extends _e{constructor(de){super(),this._doc=de}sanitize(de,Ve){if(null==Ve)return null;switch(de){case d.SecurityContext.NONE:return Ve;case d.SecurityContext.HTML:return(0,d.\u0275allowSanitizationBypassAndThrow)(Ve,"HTML")?(0,d.\u0275unwrapSafeValue)(Ve):(0,d.\u0275_sanitizeHtml)(this._doc,String(Ve)).toString();case d.SecurityContext.STYLE:return(0,d.\u0275allowSanitizationBypassAndThrow)(Ve,"Style")?(0,d.\u0275unwrapSafeValue)(Ve):Ve;case d.SecurityContext.SCRIPT:if((0,d.\u0275allowSanitizationBypassAndThrow)(Ve,"Script"))return(0,d.\u0275unwrapSafeValue)(Ve);throw new Error("unsafe value used in a script context");case d.SecurityContext.URL:return(0,d.\u0275getSanitizationBypassType)(Ve),(0,d.\u0275allowSanitizationBypassAndThrow)(Ve,"URL")?(0,d.\u0275unwrapSafeValue)(Ve):(0,d.\u0275_sanitizeUrl)(String(Ve));case d.SecurityContext.RESOURCE_URL:if((0,d.\u0275allowSanitizationBypassAndThrow)(Ve,"ResourceURL"))return(0,d.\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 ${de} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(de){return(0,d.\u0275bypassSanitizationTrustHtml)(de)}bypassSecurityTrustStyle(de){return(0,d.\u0275bypassSanitizationTrustStyle)(de)}bypassSecurityTrustScript(de){return(0,d.\u0275bypassSanitizationTrustScript)(de)}bypassSecurityTrustUrl(de){return(0,d.\u0275bypassSanitizationTrustUrl)(de)}bypassSecurityTrustResourceUrl(de){return(0,d.\u0275bypassSanitizationTrustResourceUrl)(de)}}return Fe.\u0275fac=function(de){return new(de||Fe)(d.\u0275\u0275inject(i.DOCUMENT))},Fe.\u0275prov=d.\u0275\u0275defineInjectable({token:Fe,factory:function(de){let Ve=null;return Ve=de?new de:function ot(Fe){return new kt(Fe.get(i.DOCUMENT))}(d.\u0275\u0275inject(d.Injector)),Ve},providedIn:"root"}),Fe})();const Ht=new d.Version("13.2.0")},107:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{MONACO_PATH:()=>T,MonacoDiffEditorComponent:()=>he,MonacoEditorComponent:()=>j,MonacoEditorLoaderDirective:()=>R,MonacoEditorLoaderService:()=>b,MonacoEditorModule:()=>V});var i=l(5e3),d=l(2722),m=l(9300),u=l(5698),s=l(1135),y=l(6758),C=l(655),D=l(3075);const w=["editor"],f=["diffEditor"],T="MONACO_PATH";let b=(()=>{class le{constructor(fe,ye){this.ngZone=fe,this.monacoPathConfig=ye,this.isMonacoLoaded$=new s.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?fe.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(fe){fe&&(this._monacoPath=fe)}loadMonaco(){const fe=()=>{let ke=this._monacoPath;window.amdRequire=window.require;const et=!!this.nodeRequire,lt=ke.includes("http");et&&(window.require=this.nodeRequire,lt||(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 fe();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",fe),document.body.appendChild(De)}addElectronFixScripts(){const fe=document.createElement("script"),ye=document.createTextNode("self.module = undefined;"),se=document.createTextNode("self.process.browser = true;");fe.appendChild(ye),fe.appendChild(se),document.body.appendChild(fe)}}return le.\u0275fac=function(fe){return new(fe||le)(i.\u0275\u0275inject(i.NgZone),i.\u0275\u0275inject(T,8))},le.\u0275prov=i.\u0275\u0275defineInjectable({token:le,factory:le.\u0275fac,providedIn:"root"}),le})(),R=(()=>{class le{constructor(fe,ye,se){this.templateRef=fe,this.viewContainer=ye,this.monacoEditorLoaderService=se,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new y.x}ngOnInit(){this.isMonacoLoaded$.pipe((0,d.R)(this.destroyed$)).subscribe(fe=>{if(!fe)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return le.\u0275fac=function(fe){return new(fe||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})(),j=(()=>{class le{constructor(fe){this.monacoLoader=fe,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)(fe=>fe),(0,u.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(fe){if(this.editor&&fe.options&&!fe.options.firstChange){const ye=fe.options.currentValue,{language:se,theme:De}=ye,ke=(0,C.__rest)(ye,["language","theme"]),{language:et,theme:lt}=fe.options.previousValue;et!==se&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),lt!==De&&monaco.editor.setTheme(De),this.editor.updateOptions(ke)}if(this.editor&&fe.uri){const ye=fe.uri.currentValue,se=fe.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(et=>et.uri.path===ye.path)),this.modelUriInstance=ke||monaco.editor.createModel(De,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(fe){this.value=fe,this.editor&&fe?this.editor.setValue(fe):this.editor&&this.editor.setValue("")}registerOnChange(fe){this.propagateChange=fe}registerOnTouched(fe){this.onTouched=fe}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(fe){this.onErrorStatusChange=fe}initEditor(){const fe={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({},fe),this.options):fe),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const fe=this.modelMarkers.map(({message:se})=>se).join("|");this.parsedError!==fe&&(this.parsedError=fe,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return le.\u0275fac=function(fe){return new(fe||le)(i.\u0275\u0275directiveInject(b))},le.\u0275cmp=i.\u0275\u0275defineComponent({type:le,selectors:[["ngx-monaco-editor"]],viewQuery:function(fe,ye){if(1&fe&&i.\u0275\u0275viewQuery(w,7),2&fe){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(fe,ye){1&fe&&(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})(),he=(()=>{class le{constructor(fe){this.monacoLoader=fe,this.init=new i.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,m.h)(fe=>fe),(0,u.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(fe){if(this.editor&&(fe.code&&!fe.code.firstChange||fe.modified&&!fe.modified.firstChange)){const ye=monaco.editor.createModel(this.modified),se=monaco.editor.createModel(this.original);this.editor.setModel({original:se,modified:ye})}this.editor&&fe.options&&!fe.options.firstChange&&(fe.options.previousValue.theme!==fe.options.currentValue.theme&&monaco.editor.setTheme(fe.options.currentValue.theme),this.editor.updateOptions(fe.options.currentValue))}initMonaco(){let fe={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(fe=Object.assign({},fe,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,fe);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(fe){return new(fe||le)(i.\u0275\u0275directiveInject(b))},le.\u0275cmp=i.\u0275\u0275defineComponent({type:le,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(fe,ye){if(1&fe&&i.\u0275\u0275viewQuery(f,7),2&fe){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(fe,ye){1&fe&&(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})(),V=(()=>{class le{}return le.\u0275fac=function(fe){return new(fe||le)},le.\u0275mod=i.\u0275\u0275defineNgModule({type:le}),le.\u0275inj=i.\u0275\u0275defineInjector({imports:[[]]}),le})()},1430:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>De,AngularSplitModule:()=>lt,SplitAreaDirective:()=>et,SplitComponent:()=>ke});var i=l(5e3),d=l(9808),m=l(6758),u=l(9751),s=l(8372);const y=["gutterEls"];function C(q,Pe){if(1&q){const X=i.\u0275\u0275getCurrentView();i.\u0275\u0275elementStart(0,"div",2,3),i.\u0275\u0275listener("mousedown",function(Ie){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Ie,2*ne+1,ne+1)})("touchstart",function(Ie){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().startDragging(Ie,2*ne+1,ne+1)})("mouseup",function(Ie){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Ie,ne+1)})("touchend",function(Ie){i.\u0275\u0275restoreView(X);const ne=i.\u0275\u0275nextContext().index;return i.\u0275\u0275nextContext().clickGutter(Ie,ne+1)}),i.\u0275\u0275element(2,"div",4),i.\u0275\u0275elementEnd()}if(2&q){const X=i.\u0275\u0275nextContext().index,ae=i.\u0275\u0275nextContext();i.\u0275\u0275styleProp("flex-basis",ae.gutterSize,"px")("order",2*X+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 w=["*"];function f(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 I(q,Pe,X){return Math.abs(q.x-Pe.x)<=X&&Math.abs(q.y-Pe.y)<=X}function T(q,Pe){const X=q.nativeElement.getBoundingClientRect();return"horizontal"===Pe?X.width:X.height}function b(q){return"boolean"==typeof q?q:"false"!==q}function R(q,Pe){return null==q?Pe:(q=Number(q),!isNaN(q)&&q>=0?q:Pe)}function j(q,Pe){if("percent"===q){const X=Pe.reduce((ae,Ie)=>null!==Ie?ae+Ie:ae,0);return Pe.every(ae=>null!==ae)&&X>99.9&&X<100.1}if("pixel"===q)return 1===Pe.filter(X=>null===X).length}function he(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 V(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,X,ae){return Pe.reduce((Ie,ne)=>{const Ke=function Me(q,Pe,X,ae){return 0===X?{areaSnapshot:Pe,pixelAbsorb:0,percentAfterAbsorption:Pe.sizePercentAtStart,pixelRemain:0}:0===Pe.sizePixelAtStart&&X<0?{areaSnapshot:Pe,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:X}:"percent"===q?function fe(q,Pe,X){const Ie=(q.sizePixelAtStart+Pe)/X*100;if(Pe>0){if(null!==q.area.maxSize&&Ie>q.area.maxSize){const ne=q.area.maxSize/100*X;return{areaSnapshot:q,pixelAbsorb:ne,percentAfterAbsorption:q.area.maxSize,pixelRemain:q.sizePixelAtStart+Pe-ne}}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 ne=q.area.minSize/100*X;return{areaSnapshot:q,pixelAbsorb:ne,percentAfterAbsorption:q.area.minSize,pixelRemain:q.sizePixelAtStart+Pe-ne}}return Ie<0?{areaSnapshot:q,pixelAbsorb:-q.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:Pe+q.sizePixelAtStart}:{areaSnapshot:q,pixelAbsorb:Pe,percentAfterAbsorption:Ie,pixelRemain:0}}}(Pe,X,ae):"pixel"===q?function ye(q,Pe,X){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,X):void 0}(q,ne,Ie.remain,ae);return Ie.list.push(Ke),Ie.remain=Ke.pixelRemain,Ie},{remain:X,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(X,ae,Ie,ne,Ke){this.ngZone=X,this.elRef=ae,this.cdRef=Ie,this.renderer=ne,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(me=>{this[me]=this._config[me]})}set direction(X){this._direction="vertical"===X?"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(X){this._unit="pixel"===X?"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(X){this._gutterSize=R(X,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(X){this._gutterStep=R(X,1)}get gutterStep(){return this._gutterStep}set restrictMove(X){this._restrictMove=b(X)}get restrictMove(){return this._restrictMove}set useTransition(X){this._useTransition=b(X),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(X){this._disabled=b(X),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(X){this._dir="rtl"===X?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(X){this._gutterDblClickDuration=R(X,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new u.y(X=>this.transitionEndSubscriber=X).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(X){const ae={component:X,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===X.visible?(this.displayedAreas.push(ae),this.build(!0,!0)):this.hiddenAreas.push(ae)}removeArea(X){if(this.displayedAreas.some(ae=>ae.component===X)){const ae=this.displayedAreas.find(Ie=>Ie.component===X);this.displayedAreas.splice(this.displayedAreas.indexOf(ae),1),this.build(!0,!0)}else if(this.hiddenAreas.some(ae=>ae.component===X)){const ae=this.hiddenAreas.find(Ie=>Ie.component===X);this.hiddenAreas.splice(this.hiddenAreas.indexOf(ae),1)}}updateArea(X,ae,Ie){!0===X.visible&&this.build(ae,Ie)}showArea(X){const ae=this.hiddenAreas.find(ne=>ne.component===X);if(void 0===ae)return;const Ie=this.hiddenAreas.splice(this.hiddenAreas.indexOf(ae),1);this.displayedAreas.push(...Ie),this.build(!0,!0)}hideArea(X){const ae=this.displayedAreas.find(ne=>ne.component===X);if(void 0===ae)return;const Ie=this.displayedAreas.splice(this.displayedAreas.indexOf(ae),1);Ie.forEach(ne=>{ne.order=0,ne.size=0}),this.hiddenAreas.push(...Ie),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(X=>null===X.size?"*":X.size)}setVisibleAreaSizes(X){if(X.length!==this.displayedAreas.length)return!1;const ae=X.map(ne=>R(ne,null));return!1!==j(this.unit,ae)&&(this.displayedAreas.forEach((ne,Ke)=>ne.component._size=ae[Ke]),this.build(!1,!0),!0)}build(X,ae){if(this.stopDragging(),!0===X&&(this.displayedAreas.every(Ie=>null!==Ie.component.order)&&this.displayedAreas.sort((Ie,ne)=>Ie.component.order-ne.component.order),this.displayedAreas.forEach((Ie,ne)=>{Ie.order=2*ne,Ie.component.setStyleOrder(Ie.order)})),!0===ae){const Ie=j(this.unit,this.displayedAreas.map(ne=>ne.component.size));switch(this.unit){case"percent":{const ne=100/this.displayedAreas.length;this.displayedAreas.forEach(Ke=>{Ke.size=Ie?Ke.component.size:ne,Ke.minSize=he(Ke),Ke.maxSize=V(Ke)});break}case"pixel":if(Ie)this.displayedAreas.forEach(ne=>{ne.size=ne.component.size,ne.minSize=he(ne),ne.maxSize=V(ne)});else{const ne=this.displayedAreas.filter(Ke=>null===Ke.component.size);if(0===ne.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((Ke,me)=>{Ke.size=0===me?null:Ke.component.size,Ke.minSize=0===me?null:he(Ke),Ke.maxSize=0===me?null:V(Ke)});else if(ne.length>1){let Ke=!1;this.displayedAreas.forEach(me=>{null===me.component.size?!1===Ke?(me.size=null,me.minSize=null,me.maxSize=null,Ke=!0):(me.size=100,me.minSize=null,me.maxSize=null):(me.size=me.component.size,me.minSize=he(me),me.maxSize=V(me))})}}}}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 X=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(ae=>{ae.component.setStyleFlex(0,0,`calc( ${ae.size}% - ${ae.size/100*X}px )`,null!==ae.minSize&&ae.minSize===ae.size,null!==ae.maxSize&&ae.maxSize===ae.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(X=>{null===X.size?X.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?X.component.setStyleFlex(0,0,"100%",!1,!1):X.component.setStyleFlex(0,0,`${X.size}px`,null!==X.minSize&&X.minSize===X.size,null!==X.maxSize&&X.maxSize===X.size)})}clickGutter(X,ae){const Ie=f(X);this.startPoint&&I(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(X,ae,Ie){X.preventDefault(),X.stopPropagation(),this.startPoint=f(X),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(ne=>{const Ke={area:ne,sizePixelAtStart:T(ne.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?ne.size:-1};ne.order<ae?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[Ke]:this.snapshot.areasBeforeGutter.unshift(Ke):ne.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((ne,Ke)=>ne+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(ne=>ne.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0))}dragEvent(X){X.preventDefault(),X.stopPropagation();const ae=f(X);if(null!==this._clickTimeout&&!I(this.startPoint,ae,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging||(this.endPoint=f(X),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 ne=Math.round(Ie/this.gutterStep)*this.gutterStep;if(ne===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=ne;let Ke=le(this.unit,this.snapshot.areasBeforeGutter,-ne,this.snapshot.allAreasSizePixel),me=le(this.unit,this.snapshot.areasAfterGutter,ne,this.snapshot.allAreasSizePixel);if(0!==Ke.remain&&0!==me.remain?Math.abs(Ke.remain)===Math.abs(me.remain)||(Math.abs(Ke.remain)>Math.abs(me.remain)?me=le(this.unit,this.snapshot.areasAfterGutter,ne+Ke.remain,this.snapshot.allAreasSizePixel):Ke=le(this.unit,this.snapshot.areasBeforeGutter,-(ne-me.remain),this.snapshot.allAreasSizePixel)):0!==Ke.remain?me=le(this.unit,this.snapshot.areasAfterGutter,ne+Ke.remain,this.snapshot.allAreasSizePixel):0!==me.remain&&(Ke=le(this.unit,this.snapshot.areasBeforeGutter,-(ne-me.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const st=[...Ke.list,...me.list],ve=st.find(Ue=>0!==Ue.percentAfterAbsorption&&Ue.percentAfterAbsorption!==Ue.areaSnapshot.area.minSize&&Ue.percentAfterAbsorption!==Ue.areaSnapshot.area.maxSize);ve&&(ve.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-st.filter(Ue=>Ue!==ve).reduce((Ue,ut)=>Ue+ut.percentAfterAbsorption,0))}Ke.list.forEach(st=>se(this.unit,st)),me.list.forEach(st=>se(this.unit,st)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(X){if(X&&(X.preventDefault(),X.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(X,ae){const Ie=this.getVisibleAreaSizes();"start"===X?this.dragStart.emit({gutterNum:ae,sizes:Ie}):"end"===X?this.dragEnd.emit({gutterNum:ae,sizes:Ie}):"click"===X?this.gutterClick.emit({gutterNum:ae,sizes:Ie}):"dblclick"===X?this.gutterDblClick.emit({gutterNum:ae,sizes:Ie}):"transitionEnd"===X?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(Ie)):"progress"===X&&this.dragProgressSubject.next({gutterNum:ae,sizes:Ie})}ngOnDestroy(){this.stopDragging()}collapseArea(X,ae,Ie){const ne=this.displayedAreas.find(st=>st.component===X);if(void 0===ne)return;const Ke="right"===Ie?1:-1;ne.sizeBeforeCollapse||(ne.sizeBeforeCollapse=ne.size,ne.gutterBeforeCollapse=Ke),ne.size=ae;const me=this.gutterEls.find(st=>st.nativeElement.style.order===`${ne.order+Ke}`);me&&this.renderer.addClass(me.nativeElement,"as-split-gutter-collapsed"),this.updateArea(X,!1,!1)}expandArea(X){const ae=this.displayedAreas.find(ne=>ne.component===X);if(void 0===ae||!ae.sizeBeforeCollapse)return;ae.size=ae.sizeBeforeCollapse,ae.sizeBeforeCollapse=null;const Ie=this.gutterEls.find(ne=>ne.nativeElement.style.order===`${ae.order+ae.gutterBeforeCollapse}`);Ie&&this.renderer.removeClass(Ie.nativeElement,"as-split-gutter-collapsed"),this.updateArea(X,!1,!1)}}return q.\u0275fac=function(X){return new(X||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(X,ae){if(1&X&&i.\u0275\u0275viewQuery(y,5),2&X){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:w,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(X,ae){1&X&&(i.\u0275\u0275projectionDef(),i.\u0275\u0275projection(0),i.\u0275\u0275template(1,D,1,1,"ng-template",0)),2&X&&(i.\u0275\u0275advance(1),i.\u0275\u0275property("ngForOf",ae.displayedAreas))},directives:[d.NgForOf,d.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})(),et=(()=>{class q{constructor(X,ae,Ie,ne){this.ngZone=X,this.elRef=ae,this.renderer=Ie,this.split=ne,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(X){this._order=R(X,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(X){this._size=R(X,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(X){this._minSize=R(X,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(X){this._maxSize=R(X,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(X){this._lockSize=b(X),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(X){this._visible=b(X),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",X=>{"flex-basis"===X.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(X){this.renderer.setStyle(this.elRef.nativeElement,"order",X)}setStyleFlex(X,ae,Ie,ne,Ke){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",X),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",ae),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",Ie),!0===ne?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 X=this.lockListeners.pop();X&&X()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(X=0,ae="right"){this.split.collapseArea(this,X,ae)}expand(){this.split.expandArea(this)}}return q.\u0275fac=function(X){return new(X||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})(),lt=(()=>{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(X){return new(X||q)},q.\u0275mod=i.\u0275\u0275defineNgModule({type:q}),q.\u0275inj=i.\u0275\u0275defineInjector({imports:[[d.CommonModule]]}),q})()},2290:(Be,_,l)=>{"use strict";l.r(_),l.d(_,{BasePortalHost:()=>se,ComponentPortal:()=>ye,DefaultGlobalConfig:()=>me,DefaultNoAnimationsGlobalConfig:()=>ut,DefaultNoComponentGlobalConfig:()=>ke,Overlay:()=>Ie,OverlayContainer:()=>ae,OverlayRef:()=>X,TOAST_CONFIG:()=>et,Toast:()=>Ke,ToastContainerDirective:()=>Me,ToastContainerModule:()=>fe,ToastInjector:()=>q,ToastNoAnimation:()=>Ue,ToastNoAnimationModule:()=>Tt,ToastPackage:()=>De,ToastRef:()=>lt,ToastrComponentlessModule:()=>ve,ToastrModule:()=>st,ToastrService:()=>ne});var i=l(5e3),d=l(1777),m=l(6758),u=l(9808),s=l(2313);const y=["toast-component",""];function C(Ne,qe){if(1&Ne){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(Ne,qe){if(1&Ne&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Ne){const Y=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Y.duplicatesCount+1,"]")}}function w(Ne,qe){if(1&Ne&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,D,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Ne){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 f(Ne,qe){if(1&Ne&&i.\u0275\u0275element(0,"div",7),2&Ne){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275property("innerHTML",Y.message,i.\u0275\u0275sanitizeHtml)}}function I(Ne,qe){if(1&Ne&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Ne){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(Ne,qe){if(1&Ne&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Ne){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Y.width+"%")}}function b(Ne,qe){if(1&Ne){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 R(Ne,qe){if(1&Ne&&(i.\u0275\u0275elementContainerStart(0),i.\u0275\u0275text(1),i.\u0275\u0275elementContainerEnd()),2&Ne){const Y=i.\u0275\u0275nextContext(2);i.\u0275\u0275advance(1),i.\u0275\u0275textInterpolate1("[",Y.duplicatesCount+1,"]")}}function j(Ne,qe){if(1&Ne&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275text(1),i.\u0275\u0275template(2,R,2,1,"ng-container",4),i.\u0275\u0275elementEnd()),2&Ne){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 he(Ne,qe){if(1&Ne&&i.\u0275\u0275element(0,"div",7),2&Ne){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275classMap(Y.options.messageClass),i.\u0275\u0275property("innerHTML",Y.message,i.\u0275\u0275sanitizeHtml)}}function V(Ne,qe){if(1&Ne&&(i.\u0275\u0275elementStart(0,"div",8),i.\u0275\u0275text(1),i.\u0275\u0275elementEnd()),2&Ne){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(Ne,qe){if(1&Ne&&(i.\u0275\u0275elementStart(0,"div"),i.\u0275\u0275element(1,"div",9),i.\u0275\u0275elementEnd()),2&Ne){const Y=i.\u0275\u0275nextContext();i.\u0275\u0275advance(1),i.\u0275\u0275styleProp("width",Y.width+"%")}}let Me=(()=>{class Ne{constructor(Y){this.el=Y}getContainerElement(){return this.el.nativeElement}}return Ne.\u0275fac=function(Y){return new(Y||Ne)(i.\u0275\u0275directiveInject(i.ElementRef))},Ne.\u0275dir=i.\u0275\u0275defineDirective({type:Ne,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),Ne})(),fe=(()=>{class Ne{}return Ne.\u0275fac=function(Y){return new(Y||Ne)},Ne.\u0275mod=i.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=i.\u0275\u0275defineInjector({}),Ne})();class ye{constructor(qe,Y){this.component=qe,this.injector=Y}attach(qe,Y){return this._attachedHost=qe,qe.attach(this,Y)}detach(){const qe=this._attachedHost;if(qe)return this._attachedHost=void 0,qe.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(qe){this._attachedHost=qe}}class se{attach(qe,Y){return this._attachedPortal=qe,this.attachComponentPortal(qe,Y)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(qe){this._disposeFn=qe}}class De{constructor(qe,Y,pe,we,xe,ge){this.toastId=qe,this.config=Y,this.message=pe,this.title=we,this.toastType=xe,this.toastRef=ge,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(qe){this._onAction.next(qe)}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},et=new i.InjectionToken("ToastConfig");class lt{constructor(qe){this._overlayRef=qe,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(qe,Y){qe&&this._resetTimeout.next(),Y&&this._countDuplicate.next(++this.duplicatesCount)}}class q{constructor(qe,Y){this._toastPackage=qe,this._parentInjector=Y}get(qe,Y,pe){return qe===De?this._toastPackage:this._parentInjector.get(qe,Y,pe)}}class Pe extends se{constructor(qe,Y,pe){super(),this._hostDomElement=qe,this._componentFactoryResolver=Y,this._appRef=pe}attachComponentPortal(qe,Y){const pe=this._componentFactoryResolver.resolveComponentFactory(qe.component);let we;return we=pe.create(qe.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(qe){return qe.hostView.rootNodes[0]}}class X{constructor(qe){this._portalHost=qe}attach(qe,Y=!0){return this._portalHost.attach(qe,Y)}detach(){return this._portalHost.detach()}}let ae=(()=>{class Ne{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 Ne.\u0275fac=function(Y){return new(Y||Ne)(i.\u0275\u0275inject(u.DOCUMENT))},Ne.\u0275prov=i.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),Ie=(()=>{class Ne{constructor(Y,pe,we,xe){this._overlayContainer=Y,this._componentFactoryResolver=pe,this._appRef=we,this._document=xe,this._paneElements=new Map}create(Y,pe){return this._createOverlayRef(this.getPaneElement(Y,pe))}getPaneElement(Y="",pe){return this._paneElements.get(pe)||this._paneElements.set(pe,{}),this._paneElements.get(pe)[Y]||(this._paneElements.get(pe)[Y]=this._createPaneElement(Y,pe)),this._paneElements.get(pe)[Y]}_createPaneElement(Y,pe){const we=this._document.createElement("div");return we.id="toast-container",we.classList.add(Y),we.classList.add("toast-container"),pe?pe.getContainerElement().appendChild(we):this._overlayContainer.getContainerElement().appendChild(we),we}_createPortalHost(Y){return new Pe(Y,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Y){return new X(this._createPortalHost(Y))}}return Ne.\u0275fac=function(Y){return new(Y||Ne)(i.\u0275\u0275inject(ae),i.\u0275\u0275inject(i.ComponentFactoryResolver),i.\u0275\u0275inject(i.ApplicationRef),i.\u0275\u0275inject(u.DOCUMENT))},Ne.\u0275prov=i.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),ne=(()=>{class Ne{constructor(Y,pe,we,xe,ge){this.overlay=pe,this._injector=we,this.sanitizer=xe,this.ngZone=ge,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,pe,we={},xe=""){return this._preBuildNotification(xe,Y,pe,this.applyConfig(we))}success(Y,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Y,pe,this.applyConfig(we))}error(Y,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Y,pe,this.applyConfig(we))}info(Y,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Y,pe,this.applyConfig(we))}warning(Y,pe,we={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Y,pe,this.applyConfig(we))}clear(Y){for(const pe of this.toasts)if(void 0!==Y){if(pe.toastId===Y)return void pe.toastRef.manualClose()}else pe.toastRef.manualClose()}remove(Y){const pe=this._findToast(Y);if(!pe||(pe.activeToast.toastRef.close(),this.toasts.splice(pe.index,1),this.currentlyActive=this.currentlyActive-1,!this.toastrConfig.maxOpened||!this.toasts.length))return!1;if(this.currentlyActive<this.toastrConfig.maxOpened&&this.toasts[this.currentlyActive]){const we=this.toasts[this.currentlyActive].toastRef;we.isInactive()||(this.currentlyActive=this.currentlyActive+1,we.activate())}return!0}findDuplicate(Y="",pe="",we,xe){const{includeTitleDuplicates:ge}=this.toastrConfig;for(const Je of this.toasts){const vt=ge&&Je.title===Y;if((!ge||vt)&&Je.message===pe)return Je.toastRef.onDuplicate(we,xe),Je}return null}applyConfig(Y={}){return Object.assign(Object.assign({},this.toastrConfig),Y)}_findToast(Y){for(let pe=0;pe<this.toasts.length;pe++)if(this.toasts[pe].toastId===Y)return{index:pe,activeToast:this.toasts[pe]};return null}_preBuildNotification(Y,pe,we,xe){return xe.onActivateTick?this.ngZone.run(()=>this._buildNotification(Y,pe,we,xe)):this._buildNotification(Y,pe,we,xe)}_buildNotification(Y,pe,we,xe){if(!xe.toastComponent)throw new Error("toastComponent required");const ge=this.findDuplicate(we,pe,this.toastrConfig.resetTimeoutOnDuplicate&&xe.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&we||pe)&&this.toastrConfig.preventDuplicates&&null!==ge)return ge;this.previousToastMessage=pe;let Je=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(Je=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const vt=this.overlay.create(xe.positionClass,this.overlayContainer);this.index=this.index+1;let Et=pe;pe&&xe.enableHtml&&(Et=this.sanitizer.sanitize(i.SecurityContext.HTML,pe));const At=new lt(vt),ht=new De(this.index,xe,Et,we,Y,At),Ze=new q(ht,this._injector),N=new ye(xe.toastComponent,Ze),oe=vt.attach(N,this.toastrConfig.newestOnTop);At.componentInstance=oe.instance;const Oe={toastId:this.index,title:we||"",message:pe||"",toastRef:At,onShown:At.afterActivate(),onHidden:At.afterClosed(),onTap:ht.onTap(),onAction:ht.onAction(),portal:oe};return Je||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Oe.toastRef.activate()})),this.toasts.push(Oe),Oe}}return Ne.\u0275fac=function(Y){return new(Y||Ne)(i.\u0275\u0275inject(et),i.\u0275\u0275inject(Ie),i.\u0275\u0275inject(i.Injector),i.\u0275\u0275inject(s.DomSanitizer),i.\u0275\u0275inject(i.NgZone))},Ne.\u0275prov=i.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),Ke=(()=>{class Ne{constructor(Y,pe,we){this.toastrService=Y,this.toastPackage=pe,this.ngZone=we,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=pe.message,this.title=pe.title,this.options=pe.config,this.originalTimeout=pe.config.timeOut,this.toastClasses=`${pe.toastType} ${pe.config.toastClass}`,this.sub=pe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=pe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=pe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=pe.toastRef.countDuplicate().subscribe(xe=>{this.duplicatesCount=xe})}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,pe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Y),pe)):this.timeout=setTimeout(()=>Y(),pe)}outsideInterval(Y,pe){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Y),pe)):this.intervalId=setInterval(()=>Y(),pe)}runInsideAngular(Y){this.ngZone?this.ngZone.run(()=>Y()):Y()}}return Ne.\u0275fac=function(Y){return new(Y||Ne)(i.\u0275\u0275directiveInject(ne),i.\u0275\u0275directiveInject(De),i.\u0275\u0275directiveInject(i.NgZone))},Ne.\u0275cmp=i.\u0275\u0275defineComponent({type:Ne,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Y,pe){1&Y&&i.\u0275\u0275listener("click",function(){return pe.tapToast()})("mouseenter",function(){return pe.stickAround()})("mouseleave",function(){return pe.delayedHideToast()}),2&Y&&(i.\u0275\u0275syntheticHostProperty("@flyInOut",pe.state),i.\u0275\u0275classMap(pe.toastClasses),i.\u0275\u0275styleProp("display",pe.displayStyle))},attrs:y,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,pe){1&Y&&(i.\u0275\u0275template(0,C,3,0,"button",0),i.\u0275\u0275template(1,w,3,5,"div",1),i.\u0275\u0275template(2,f,1,3,"div",2),i.\u0275\u0275template(3,I,2,4,"div",3),i.\u0275\u0275template(4,T,2,2,"div",4)),2&Y&&(i.\u0275\u0275property("ngIf",pe.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&!pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.options.progressBar))},directives:[u.NgIf],encapsulation:2,data:{animation:[(0,d.X$)("flyInOut",[(0,d.SB)("inactive",(0,d.oB)({opacity:0})),(0,d.SB)("active",(0,d.oB)({opacity:1})),(0,d.SB)("removed",(0,d.oB)({opacity:0})),(0,d.eR)("inactive => active",(0,d.jt)("{{ easeTime }}ms {{ easing }}")),(0,d.eR)("active => removed",(0,d.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Ne})();const me=Object.assign(Object.assign({},ke),{toastComponent:Ke});let st=(()=>{class Ne{static forRoot(Y={}){return{ngModule:Ne,providers:[{provide:et,useValue:{default:me,config:Y}}]}}}return Ne.\u0275fac=function(Y){return new(Y||Ne)},Ne.\u0275mod=i.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Ne})(),ve=(()=>{class Ne{static forRoot(Y={}){return{ngModule:st,providers:[{provide:et,useValue:{default:ke,config:Y}}]}}}return Ne.\u0275fac=function(Y){return new(Y||Ne)},Ne.\u0275mod=i.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Ne})(),Ue=(()=>{class Ne{constructor(Y,pe,we){this.toastrService=Y,this.toastPackage=pe,this.appRef=we,this.width=-1,this.toastClasses="",this.state="inactive",this.message=pe.message,this.title=pe.title,this.options=pe.config,this.originalTimeout=pe.config.timeOut,this.toastClasses=`${pe.toastType} ${pe.config.toastClass}`,this.sub=pe.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=pe.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=pe.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=pe.toastRef.countDuplicate().subscribe(xe=>{this.duplicatesCount=xe})}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 Ne.\u0275fac=function(Y){return new(Y||Ne)(i.\u0275\u0275directiveInject(ne),i.\u0275\u0275directiveInject(De),i.\u0275\u0275directiveInject(i.ApplicationRef))},Ne.\u0275cmp=i.\u0275\u0275defineComponent({type:Ne,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Y,pe){1&Y&&i.\u0275\u0275listener("click",function(){return pe.tapToast()})("mouseenter",function(){return pe.stickAround()})("mouseleave",function(){return pe.delayedHideToast()}),2&Y&&(i.\u0275\u0275classMap(pe.toastClasses),i.\u0275\u0275styleProp("display",pe.displayStyle))},attrs:y,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,pe){1&Y&&(i.\u0275\u0275template(0,b,3,0,"button",0),i.\u0275\u0275template(1,j,3,5,"div",1),i.\u0275\u0275template(2,he,1,3,"div",2),i.\u0275\u0275template(3,V,2,4,"div",3),i.\u0275\u0275template(4,le,2,2,"div",4)),2&Y&&(i.\u0275\u0275property("ngIf",pe.options.closeButton),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.title),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.message&&!pe.options.enableHtml),i.\u0275\u0275advance(1),i.\u0275\u0275property("ngIf",pe.options.progressBar))},directives:[u.NgIf],encapsulation:2}),Ne})();const ut=Object.assign(Object.assign({},ke),{toastComponent:Ue});let Tt=(()=>{class Ne{static forRoot(Y={}){return{ngModule:Ne,providers:[{provide:et,useValue:{default:ut,config:Y}}]}}}return Ne.\u0275fac=function(Y){return new(Y||Ne)},Ne.\u0275mod=i.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=i.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),Ne})()},4147:Be=>{"use strict";Be.exports=JSON.parse('{"name":"@sdkgen/playground","version":"0.0.0-dev.20220131162016","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.20220131162016","@sdkgen/csharp-generator":"0.0.0-dev.20220131162016","@sdkgen/dart-generator":"0.0.0-dev.20220131162016","@sdkgen/fsharp-generator":"0.0.0-dev.20220131162016","@sdkgen/kotlin-generator":"0.0.0-dev.20220131162016","@sdkgen/parser":"0.0.0-dev.20220131162016","@sdkgen/swift-generator":"0.0.0-dev.20220131162016","@sdkgen/typescript-generator":"0.0.0-dev.20220131162016"},"devDependencies":{"@angular-devkit/build-angular":"~13.2.0","@angular/animations":"~13.2.0","@angular/cdk":"~13.2.0","@angular/cli":"~13.2.0","@angular/common":"~13.2.0","@angular/compiler":"~13.2.0","@angular/compiler-cli":"~13.2.0","@angular/core":"~13.2.0","@angular/forms":"~13.2.0","@angular/material":"~13.2.0","@angular/platform-browser":"~13.2.0","@angular/platform-browser-dynamic":"~13.2.0","@angular/router":"~13.2.0","@cubos/eslint-config":"^1.0.553260","@materia-ui/ngx-monaco-editor":"^6.0.0","@types/file-saver":"^2.0.3","@types/node":"^16.0.0","angular-split":"^13.0.0","file-saver":"^2.0.5","json":"^11.0.0","monaco-editor":"^0.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"}}')}},Be=>{Be(Be.s=4431)}]);
|