@sdkgen/playground 0.0.0-dev.20211125001646 → 0.0.0-dev.20220112205246

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.
@@ -1 +0,0 @@
1
- (self.webpackChunk_sdkgen_playground=self.webpackChunk_sdkgen_playground||[]).push([[179],{8255:Ne=>{function T(d){return Promise.resolve().then(()=>{var o=new Error("Cannot find module '"+d+"'");throw o.code="MODULE_NOT_FOUND",o})}T.keys=()=>[],T.resolve=T,T.id=8255,Ne.exports=T},4704:function(Ne,T){"use strict";var D,d=this&&this.__extends||(D=function(g,E){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,S){M.__proto__=S}||function(M,S){for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(M[P]=S[P])})(g,E)},function(g,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function M(){this.constructor=g}D(g,E),g.prototype=null===E?Object.create(E):(M.prototype=E.prototype,new M)}),o=this&&this.__spreadArray||function(D,g,E){if(E||2===arguments.length)for(var P,M=0,S=g.length;M<S;M++)(P||!(M in g))&&(P||(P=Array.prototype.slice.call(g,0,M)),P[M]=g[M]);return D.concat(P||Array.prototype.slice.call(g))};Object.defineProperty(T,"__esModule",{value:!0}),T.decode=T.encode=void 0;var l=["string","email","phone","html","xml"],f=o(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],l,!0),_=function(D){function g(E,M,S){var B;try{B=JSON.stringify(S)}catch(j){B=String(S)}return D.call(this,"Invalid type at '".concat(E,"', expected ").concat(M,", got ").concat(B))||this}return d(g,D),g}(Error);function a(D,g,E){if("json"===g)return null==E?null:JSON.parse(JSON.stringify(E));if("bool"===g){if("boolean"!=typeof E)throw new _(D,g,E);return E}if(l.indexOf(g)>=0){if("string"!=typeof E)throw new _(D,g,E);return E}if("hex"===g){if("string"!=typeof E||!/^(?:[A-Fa-f0-9]{2})*$/u.test(E))throw new _(D,g,E);return E.toLowerCase()}if("uuid"===g){if("string"!=typeof E||!/^[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(E))throw new _(D,g,E);return E.toLowerCase()}if("base64"===g){var M=!0;try{atob(E)}catch(P){M=!1}if("string"!=typeof E||!M)throw new _(D,g,E);return E}if("int"===g){if("number"!=typeof E||(0|E)!==E)throw new _(D,g,E);return E}if("uint"===g){if("number"!=typeof E||(0|E)!==E||E<0)throw new _(D,g,E);return E}if("float"===g){if("number"!=typeof E)throw new _(D,g,E);return E}if("money"===g){if("number"!=typeof E||!Number.isInteger(E))throw new _(D,g,E);return E}if("url"===g){var S=void 0;if("string"==typeof E)try{S=new URL(E)}catch(P){}if(!S)throw new _(D,g,E);return S.toString()}if("void"===g)return null;throw new Error("Unknown type '".concat(g,"' at '").concat(D,"'"))}T.encode=function C(D,g,E,M){if("string"==typeof E&&!E.endsWith("?")&&"void"!==E&&null==M)throw new Error("Invalid type at '".concat(g,"', cannot be null"));if(Array.isArray(E)){if("string"!=typeof M||E.indexOf(M)<0)throw new _(g,E,M);return M}if("object"==typeof E){if("object"!=typeof M)throw new _(g,E,M);for(var S={},P=0,B=Object.keys(E);P<B.length;P++){var j=B[P];S[j]=C(D,"".concat(g,".").concat(j),E[j],M[j])}return S}if(E.endsWith("?"))return null==M?null:C(D,g,E.slice(0,E.length-1),M);if(E.endsWith("[]")){if(!Array.isArray(M))throw new _(g,E,M);return M.map(function(le,Ce){return C(D,"".concat(g,"[").concat(Ce,"]"),E.slice(0,E.length-2),le)})}if(f.indexOf(E)>=0)return a(g,E,M);if("bytes"===E){if(!(M instanceof ArrayBuffer))throw new _(g,E,M);return btoa(String.fromCharCode.apply(String,new Uint8Array(M)))}if("bigint"===E){if("bigint"!=typeof M)throw new _(g,E,M);return M.toString()}if("cpf"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("cnpj"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("date"===E){if((!(M instanceof Date)||isNaN(M.getTime()))&&("string"!=typeof M||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(M)))throw new _(g,E,M);return"string"==typeof M?new Date(M).toISOString().split("T")[0]:M.toISOString().split("T")[0]}if("datetime"===E){if((!(M instanceof Date)||isNaN(M.getTime()))&&("string"!=typeof M||!/^[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(M)))throw new _(g,E,M);return("string"==typeof M?new Date(M):M).toISOString().replace("Z","")}var oe=D[E];if(oe)return C(D,g,oe,M);throw new Error("Unknown type '".concat(E,"' at '").concat(g,"'"))},T.decode=function w(D,g,E,M){if("string"==typeof E&&!E.endsWith("?")&&"void"!==E&&null==M)throw new Error("Invalid type at '".concat(g,"', cannot be null"));if(Array.isArray(E)){if("string"!=typeof M||E.indexOf(M)<0)throw new _(g,E,M);return M}if("object"==typeof E){if("object"!=typeof M)throw new _(g,E,M);for(var S={},P=0,B=Object.keys(E);P<B.length;P++){var j=B[P];S[j]=w(D,"".concat(g,".").concat(j),E[j],M[j])}return S}if(E.endsWith("?"))return null==M?null:w(D,g,E.slice(0,E.length-1),M);if(E.endsWith("[]")){if(!Array.isArray(M))throw new _(g,E,M);return M.map(function(Ye,Me){return w(D,"".concat(g,"[").concat(Me,"]"),E.slice(0,E.length-2),Ye)})}if(f.indexOf(E)>=0)return a(g,E,M);if("bytes"!==E){if("bigint"===E){if("number"!=typeof M&&("string"!=typeof M||!/^-?[0-9]+$/u.test(M)))throw new _(g,E,M);return BigInt(M)}if("cpf"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("cnpj"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("date"===E){if("string"!=typeof M||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(M))throw new _(g,E,M);var oe=parseInt(M.split("-")[2],10),le=parseInt(M.split("-")[1],10)-1,Ce=parseInt(M.split("-")[0],10),$e=new Date(Ce,le,oe);if($e.getFullYear()!==Ce||$e.getMonth()!==le||$e.getDate()!==oe)throw new _(g,E,M);return $e}if("datetime"===E){if("string"!=typeof M||!/^[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(M))throw new _(g,E,M);return new Date("".concat(M.endsWith("Z")?M:M.concat("Z")))}var lt=D[E];if(lt)return w(D,g,lt,M);throw new Error("Unknown type '".concat(E,"' at '").concat(g,"'"))}if("string"!=typeof M)throw new _(g,"".concat(E," (base 64)"),M);try{return Uint8Array.from(atob(M),function(Ye){return Ye.charCodeAt(0)})}catch(Ye){throw new _(g,"".concat(E," (base 64)"),M)}}},3249:function(Ne,T){"use strict";var f,d=this&&this.__extends||(f=function(_,a){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var D in w)Object.prototype.hasOwnProperty.call(w,D)&&(C[D]=w[D])})(_,a)},function(_,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function C(){this.constructor=_}f(_,a),_.prototype=null===a?Object.create(a):(C.prototype=a.prototype,new C)});Object.defineProperty(T,"__esModule",{value:!0}),T.SdkgenErrorWithData=T.SdkgenError=void 0;var o=function(f){function _(){return null!==f&&f.apply(this,arguments)||this}return d(_,f),Object.defineProperty(_.prototype,"type",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),_.prototype.toJSON=function(){return{message:this.message,type:this.type}},_}(Error);T.SdkgenError=o;var l=function(f){function _(a,C){var w=f.call(this,a)||this;return w.data=C,w}return d(_,f),_.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},_}(o);T.SdkgenErrorWithData=l},1364:function(Ne,T,d){"use strict";var o=this&&this.__awaiter||function(g,E,M,S){return new(M||(M=Promise))(function(B,j){function oe($e){try{Ce(S.next($e))}catch(lt){j(lt)}}function le($e){try{Ce(S.throw($e))}catch(lt){j(lt)}}function Ce($e){$e.done?B($e.value):function(B){return B instanceof M?B:new M(function(j){j(B)})}($e.value).then(oe,le)}Ce((S=S.apply(g,E||[])).next())})},l=this&&this.__generator||function(g,E){var S,P,B,j,M={label:0,sent:function(){if(1&B[0])throw B[1];return B[1]},trys:[],ops:[]};return j={next:oe(0),throw:oe(1),return:oe(2)},"function"==typeof Symbol&&(j[Symbol.iterator]=function(){return this}),j;function oe(Ce){return function($e){return function(Ce){if(S)throw new TypeError("Generator is already executing.");for(;M;)try{if(S=1,P&&(B=2&Ce[0]?P.return:Ce[0]?P.throw||((B=P.return)&&B.call(P),0):P.next)&&!(B=B.call(P,Ce[1])).done)return B;switch(P=0,B&&(Ce=[2&Ce[0],B.value]),Ce[0]){case 0:case 1:B=Ce;break;case 4:return M.label++,{value:Ce[1],done:!1};case 5:M.label++,P=Ce[1],Ce=[0];continue;case 7:Ce=M.ops.pop(),M.trys.pop();continue;default:if(!(B=(B=M.trys).length>0&&B[B.length-1])&&(6===Ce[0]||2===Ce[0])){M=0;continue}if(3===Ce[0]&&(!B||Ce[1]>B[0]&&Ce[1]<B[3])){M.label=Ce[1];break}if(6===Ce[0]&&M.label<B[1]){M.label=B[1],B=Ce;break}if(B&&M.label<B[2]){M.label=B[2],M.ops.push(Ce);break}B[2]&&M.ops.pop(),M.trys.pop();continue}Ce=E.call(g,M)}catch($e){Ce=[6,$e],P=0}finally{S=B=0}if(5&Ce[0])throw Ce[1];return{value:Ce[0]?Ce[1]:void 0,done:!0}}([Ce,$e])}}};Object.defineProperty(T,"__esModule",{value:!0}),T.SdkgenHttpClient=void 0;var f=d(4704);function _(g){for(var E="",M=0;M<2*g;++M)E+="0123456789abcdef"[Math.floor(16*Math.random())];return E}var a=_(20);function C(){try{var g=localStorage.getItem("deviceId");return g||(g=a,localStorage.setItem("deviceId",g)),g}catch(E){}return a}function w(g,E){return E in g}var D=function(){function g(E,M,S){this.astJson=M,this.errClasses=S,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=E}return g.prototype.makeRequest=function(E,M){var S,P;return o(this,void 0,void 0,function(){var B,j,oe,le,Ce,$e=this;return l(this,function(lt){switch(lt.label){case 0:if(!(B=this.astJson.functionTable[E]))throw new Error("Unknown function ".concat(E));return j={},this.extra.forEach(function(Ye,Me){j[Me]=Ye}),oe={args:(0,f.encode)(this.astJson.typeTable,"".concat(E,".args"),B.args,M),deviceInfo:{id:C(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(P=null===(S=document.currentScript)||void 0===S?void 0:S.getAttribute("src"))&&void 0!==P?P:""},extra:j,name:E,requestId:_(16),version:3},[4,new Promise(function(Ye,Me){var Oe=new XMLHttpRequest;Oe.open("POST","".concat($e.baseUrl,"/").concat(E)),Oe.setRequestHeader("Content-Type","application/sdkgen"),Oe.onreadystatechange=function(){if(4===Oe.readyState)try{var Pe=JSON.parse(Oe.responseText);try{w(Pe,"error")&&Pe.error?(Me(Pe.error),$e.errorHook(Pe.error,E,M)):Ye(w(Pe,"result")?Pe.result:null)}catch(qe){var de={message:"".concat(qe),type:"Fatal"};Me(de),$e.errorHook(de,E,M)}}catch(qe){Me(de={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),$e.errorHook(de,E,M)}},Oe.send(JSON.stringify(oe))}).catch(function(Ye){if($e.errorHook(Ye,E,M),w(Ye,"type")&&w(Ye,"message")&&"string"==typeof Ye.type&&"string"==typeof Ye.message){var Me=$e.errClasses[Ye.type];if(Me){var Oe=$e.astJson.errors.find(function(Pe){return Array.isArray(Pe)?Pe[0]===Ye.type:Pe===Ye.type});if(Oe)throw Array.isArray(Oe)&&w(Ye,"data")?new Me(Ye.message,(0,f.decode)($e.astJson.typeTable,"".concat(Me.name,".data"),Oe[1],Ye.data)):new Me(Ye.message,void 0)}throw new $e.errClasses.Fatal("".concat(Ye.type,": ").concat(Ye.message))}throw Ye})];case 1:return le=lt.sent(),Ce=(0,f.decode)(this.astJson.typeTable,"".concat(E,".ret"),B.ret,le),this.successHook(Ce,E,M),[2,Ce]}})})},g}();T.SdkgenHttpClient=D},2184:function(Ne,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(3249),T),l(d(1364),T)},1704:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateCSharpServerSource=void 0;const o=d(3979),l=d(9032);T.generateCSharpServerSource=function(_){let a="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing Sdkgen.Runtime;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const C of _.operations){const w=C.returnType instanceof o.VoidPrimitiveType?"":`<${(0,l.generateTypeName)(C.returnType)}>`;a+=`\n public virtual Task${w} ${(0,l.capitalize)(C.name)}(${["Context ctx",...C.args.map(D=>`${(0,l.generateTypeName)(D.type)} ${(0,l.ident)(D.name)}`)].join(", ")})\n {\n return Task.FromException${w}(new FatalException("Function '${C.name}' not implemented."));\n }\n`}a+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const C of _.operations){a+=`\n case ${JSON.stringify(C.name)}:\n {`;for(const w of C.args)a+=`\n JsonElement ${w.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(w.name)}, out ${w.name}Json_))\n {\n ${w.type instanceof o.OptionalType?`${w.name}Json_ = new JsonElement()`:`throw new FatalException("'${C.name}().args.${w.name}' must be set to a value of type ${w.type.name}.");`}\n }\n ${(0,l.generateTypeName)(w.type)} ${(0,l.ident)(w.name)};\n ${(0,l.decodeType)(w.type,`${w.name}Json_`,`"${C.name}().args.${w.name}"`,(0,l.ident)(w.name)).replace(/\n/gu,"\n ")}`;a+=C.returnType instanceof o.VoidPrimitiveType?`\n await ${(0,l.capitalize)(C.name)}(${["context_",...C.args.map(w=>(0,l.ident)(w.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,l.capitalize)(C.name)}(${["context_",...C.args.map(w=>(0,l.ident)(w.name))].join(", ")});\n ${(0,l.encodeType)(C.returnType,"result_",`"${C.name}().ret"`).replace(/\n/gu,"\n ")}`,a+="\n return;\n }"}a+="\n default:\n {\n throw new FatalException($\"Unknown function '{context_.Name}'.\");\n }\n }\n }\n";for(const C of _.structTypes)a+=(0,l.generateStruct)(C);for(const C of _.enumTypes)a+=(0,l.generateEnum)(C);a+=`\n public string GetAstJson() => @"${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const C of _.errors)a+=`\n public class ${C.name}Exception : SdkgenException\n {\n public ${C.name}Exception(string message, Exception? inner = null) : base("${C.name}", message, inner) { }\n }\n`;return a+="\n}\n",a}},9032:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateEnum=T.generateStruct=T.encodeType=T.decodeType=T.generateTypeName=T.capitalize=T.ident=void 0;const o=d(3979),l=["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"],f=[o.StringPrimitiveType,o.HtmlPrimitiveType,o.CpfPrimitiveType,o.CnpjPrimitiveType,o.BytesPrimitiveType,o.EmailPrimitiveType,o.UrlPrimitiveType,o.UuidPrimitiveType,o.HexPrimitiveType,o.Base64PrimitiveType,o.XmlPrimitiveType,o.StructType,o.ArrayType],_=[o.BigIntPrimitiveType,o.DatePrimitiveType,o.DateTimePrimitiveType,o.FloatPrimitiveType,o.IntPrimitiveType,o.MoneyPrimitiveType,o.UIntPrimitiveType];function a(S){return l.includes(S)?`@${S}`:S}function C(S){return S[0].toUpperCase()+S.slice(1)}function w(S){switch(S.constructor){case o.StringPrimitiveType:return"string";case o.IntPrimitiveType:return"int";case o.UIntPrimitiveType:return"uint";case o.FloatPrimitiveType:return"double";case o.BigIntPrimitiveType:return"BigInteger";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"DateTime";case o.BoolPrimitiveType:return"bool";case o.BytesPrimitiveType:return"byte[]";case o.MoneyPrimitiveType:return"decimal";case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"string";case o.VoidPrimitiveType:return"void";case o.JsonPrimitiveType:return"JsonElement";case o.OptionalType:return`${w(S.base)}?`;case o.ArrayType:return`List<${w(S.base)}>`;case o.StructType:case o.EnumType:return S.name;case o.TypeReference:return w(S.type);default:throw new Error(`BUG: generateTypeName with ${S.constructor.name}`)}}function D(S,P,B,j,oe=1,le=!0){switch(S.constructor){case o.IntPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetInt32(out ${j}))\n {\n throw new FatalException($"'{${B}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.UIntPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetUInt32(out ${j}))\n {\n throw new FatalException($"'{${B}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.MoneyPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetDecimal(out ${j}) || ${j} % 1 != 0)\n {\n throw new FatalException($"'{${B}}' must be an integer amount of cents.");\n }\n ${j} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case o.FloatPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetDouble(out ${j}))\n {\n throw new FatalException($"'{${B}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.BigIntPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${P}.GetString(), out ${j}))\n {\n throw new FatalException($"'{${B}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.StringPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.HtmlPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid HTML string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.CpfPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid CPF string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.CnpjPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid CNPJ string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.EmailPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid email.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.UrlPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid URL string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.UuidPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid UUID.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.HexPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a valid hex string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.Base64PrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a base64 string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.XmlPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a XML string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.BoolPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.True && ${P}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${B}}' must be either true or false.");\n }\n ${j} = ${P}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case o.BytesPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${B}}' must be a string.");\n }\n try\n {\n ${j} = Convert.FromBase64String(${P}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${B}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.TypeReference:return D(S.type,P,B,j,oe);case o.OptionalType:if(_.includes(S.base.constructor)){const Ce=`${j.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${P}.ValueKind == JsonValueKind.Null || ${P}.ValueKind == JsonValueKind.Undefined)\n {\n ${j} = null;\n }\n else\n {\n ${w(S.base)} ${Ce};\n ${D(S.base,P,B,Ce,oe,!1).replace(/\n/gu,"\n ")}\n ${j} = ${Ce};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${P}.ValueKind == JsonValueKind.Null || ${P}.ValueKind == JsonValueKind.Undefined)\n {\n ${j} = null;\n }\n else\n {\n ${D(S.base,P,B,j,oe,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case o.EnumType:case o.StructType:return`${j} = Decode${S.name}(${P}, ${B});`;case o.JsonPrimitiveType:return le?`\n if (${P}.ValueKind == JsonValueKind.Null || ${P}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${B}}' can't be null.");\n }\n ${j} = ${P};\n `.replace(/\n {16}/gu,"\n").trim():`${j} = ${P};`;case o.DateTimePrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${P}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${j}) || DateTime.TryParseExact(${P}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${j})))\n {\n throw new FatalException($"'{${B}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.DatePrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${P}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${j})))\n {\n throw new FatalException($"'{${B}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.ArrayType:return`\n if (${P}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${B}}' must be a date.");\n }\n ${j} = new ${w(S)}();\n for (var i${oe} = 0; i${oe} < ${P}.GetArrayLength(); ++i${oe})\n {\n ${w(S.base)} element${oe};\n ${D(S.base,`${P}[i${oe}]`,`$"{${B}}[{i${oe}}]"`,`element${oe}`,oe+1).replace(/\n/gu,"\n ")}\n ${j}.Add(element${oe});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${S.constructor.name}`)}}function g(S,P,B,j=1){switch(S.constructor){case o.StringPrimitiveType:return`resultWriter_.WriteStringValue(${P});`;case o.FloatPrimitiveType:case o.UIntPrimitiveType:case o.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${P});`;case o.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${P} * 100));`;case o.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${P}.ToString());`;case o.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${P});`;case o.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${P}));`;case o.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${P}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case o.DatePrimitiveType:return`resultWriter_.WriteStringValue(${P}.ToString("yyyy-MM-dd"));`;case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.Base64PrimitiveType:case o.HexPrimitiveType:case o.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${P});`;case o.OptionalType:{let oe=S.base;for(;oe instanceof o.TypeReference;)oe=oe.type;return`\n if (${P} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${g(oe,f.includes(oe.constructor)?P:`${P}.Value`,B,j).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case o.TypeReference:return g(S.type,P,B,j);case o.EnumType:case o.StructType:return`Encode${S.name}(${P}, resultWriter_, ${B});`;case o.JsonPrimitiveType:return`${P}.WriteTo(resultWriter_);`;case o.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${j} = 0; i${j} < ${P}.Count; ++i${j})\n {\n ${g(S.base,`${P}[i${j}]`,`$"{${B}}[{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 ${S.constructor.name}`)}}T.ident=a,T.capitalize=C,T.generateTypeName=w,T.decodeType=D,T.encodeType=g,T.generateStruct=function(S){return`\n public class ${S.name}\n {${S.fields.map(P=>`\n public ${w(P.type)} ${C(P.name)};`).join("")}\n public ${S.name}(${S.fields.map(P=>`${w(P.type)} ${a(P.name)}`).join(", ")})\n {${S.fields.map(P=>`\n ${C(P.name)} = ${a(P.name)};`).join("")}\n }\n }\n\n ${S.name} Decode${S.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${S.fields.map(P=>` JsonElement ${P.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(P.name)}, out ${P.name}Json_))\n {\n ${P.type instanceof o.OptionalType?`${P.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${P.name}' must be set to a value of type ${P.type.name}.");`}\n }\n ${w(P.type)} ${a(P.name)};\n ${D(P.type,`${P.name}Json_`,`$"{path_}.${P.name}"`,a(P.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${S.name}(${S.fields.map(P=>a(P.name)).join(", ")});\n }\n\n void Encode${S.name}(${S.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${S.fields.map(P=>`resultWriter_.WritePropertyName(${JSON.stringify(P.name)});\n ${g(P.type,`obj_.${C(P.name)}`,`$"{path_}.${P.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},T.generateEnum=function(S){return`\n public enum ${S.name}\n {${S.values.map(({value:P})=>`\n ${C(P)}`).join(",\n ")}\n }\n\n ${S.name} Decode${S.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();${S.values.map(({value:P})=>`\n if (value == "${P}")\n {\n return ${S.name}.${C(P)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${S.values.map(({value:P})=>`'${P}'`).join(", ")}).");\n }\n\n void Encode${S.name}(${S.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${S.values.map(({value:P})=>`\n if (obj_ == ${S.name}.${C(P)})\n {\n resultWriter_.WriteStringValue("${P}");\n }`).join("")}\n }\n`}},4906:function(Ne,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(1704),T)},8720:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateDartClientSource=void 0;const o=d(3979),l=d(1526);T.generateDartClientSource=function(_){let a="";a+="import 'dart:typed_data';\n\nimport 'package:flutter/widgets.dart';\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n\n";for(const C of _.enumTypes)a+=(0,l.generateEnum)(C),a+="\n";for(const C of _.structTypes)a+=(0,l.generateClass)(C),a+="\n";for(const C of _.errors)a+=(0,l.generateErrorClass)(C),a+="\n";a+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl, [BuildContext? context]) : super(baseUrl, context, _typeTable, _fnTable, _errTable);\n${_.operations.filter(C=>C.annotations.every(w=>!(w instanceof o.HiddenAnnotation))).map(C=>`\n ${C.returnType instanceof o.VoidPrimitiveType?"Future<void> ":`Future<${(0,l.generateTypeName)(C.returnType)}> `}${C.name}(${0===C.args.length?"":`{${C.args.map(w=>`${w.type instanceof o.OptionalType?"":"required "}${(0,l.generateTypeName)(w.type)} ${(0,l.mangle)(w.name)}`).join(", ")}}`}) async { ${C.returnType instanceof o.VoidPrimitiveType?"":"return "}${(0,l.cast)(`await makeRequest('${C.name}', {${C.args.map(w=>`'${w.name}': ${(0,l.mangle)(w.name)}`).join(", ")}})`,C.returnType)}; }`).join("")}\n}\n\n`,a+="var _typeTable = {\n";for(const C of _.structTypes){a+=` '${C.name}': StructTypeDescription(\n`,a+=` ${C.name},\n`,a+=" {\n";for(const w of C.fields)a+=` '${w.name}': '${w.type.name}',\n`;a+=" },\n",a+=` (Map fields) => ${C.name}(\n`;for(const w of C.fields)a+=` ${(0,l.mangle)(w.name)}: ${(0,l.cast)(`fields['${w.name}']`,w.type)},\n`;a+=" ),\n",a+=` (${C.name} obj) => ({\n`;for(const w of C.fields)a+=` '${w.name}': obj.${(0,l.mangle)(w.name)},\n`;a+=" }),\n",a+=" ),\n"}for(const C of _.enumTypes)a+=` '${C.name}': EnumTypeDescription(${C.name}, ${C.name}.values, [\n ${C.values.map(w=>`'${w.value}'`).join(",\n ")}\n ]),\n`;a+="};\n\n",a+="var _fnTable = {\n";for(const C of _.operations){a+=` '${C.name}': FunctionDescription('${C.returnType.name}', {\n`;for(const w of C.args)a+=` '${w.name}': '${w.type.name}',\n`;a+=" }),\n"}a+="};\n\n",a+="var _errTable = {\n";for(const C of _.errors)a+=` '${C.name}': SdkgenErrorDescription('${C.dataType.name}', (msg, data) => ${C.name}(msg${C.dataType instanceof o.VoidPrimitiveType?"":", data"})),\n`;return a+="};\n",a}},1526:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateClass=T.cast=T.generateErrorClass=T.generateTypeName=T.generateEnum=T.mangle=void 0;const o=d(3979);function l(S){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(S)?`$${S}`:S}function _(S){switch(S.constructor){case o.StringPrimitiveType:return"String";case o.IntPrimitiveType:case o.UIntPrimitiveType:return"int";case o.FloatPrimitiveType:return"double";case o.BigIntPrimitiveType:return"BigInt";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"DateTime";case o.BoolPrimitiveType:return"bool";case o.BytesPrimitiveType:return"Uint8List";case o.MoneyPrimitiveType:return"int";case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"String";case o.VoidPrimitiveType:return"void";case o.JsonPrimitiveType:return"dynamic";case o.OptionalType:return`${_(S.base)}?`;case o.ArrayType:return`List<${_(S.base)}>`;case o.StructType:case o.EnumType:return S.name;case o.TypeReference:return _(S.type);default:throw new Error(`BUG: generateTypeName with ${S.constructor.name}`)}}T.mangle=l,T.generateEnum=function(S){return`enum ${S.name} {\n ${S.values.map(P=>P.value).join(",\n ")}\n}\n`},T.generateTypeName=_,T.generateErrorClass=function(S){if(S.dataType instanceof o.VoidPrimitiveType)return`class ${S.name} extends SdkgenError {\n ${S.name}(String msg) : super(msg);\n}\n`;const P=_(S.dataType);return`class ${S.name} extends SdkgenErrorWithData<${P}> {\n ${S.name}(String msg, ${P} data) : super(msg, data);\n}\n`},T.cast=function C(S,P){return P instanceof o.OptionalType?`${S} == null ? null : ${C(S,P.base)}`:P instanceof o.ArrayType?`(${S} as List).map((e) => ${C("e",P.base)}).toList()`:P instanceof o.VoidPrimitiveType?S:P instanceof o.FloatPrimitiveType?`(${S} as num).toDouble()`:P instanceof o.MoneyPrimitiveType?`${S} as int`:`${S} as ${_(P)}`},T.generateClass=function(S){return`class ${S.name} {\n ${S.fields.map(P=>`final ${_(P.type)} ${l(P.name)};`).join("\n ")}\n\n${function(S){let P=` ${S.name}({\n`;for(const B of S.fields)P+=B.type instanceof o.OptionalType?" ":" required ",P+=`this.${l(B.name)},\n`;return P+=" });\n",P}(S)}\n${function(S){let P=" bool operator ==(other){\n";return P+=" if (identical(this, other)) return true;\n",P+=` return ${[`other is ${S.name}`,...S.fields.map(B=>`${l(B.name)} == other.${l(B.name)}`)].join(" && ")};\n`,P+=" }\n",P}(S)}\n${function(S){return` @override\n int get hashCode => hashList([${S.fields.map(P=>l(P.name)).join(", ")}]);\n`}(S)}\n${function(S){return` String toString() {\n return '${S.name} { ${S.fields.map(P=>`${P.name}: $${l(P.name).startsWith("$")?`{${l(P.name)}}`:l(P.name)}`).join(", ")} }';\n }\n`}(S)}}\n`}},6988:function(Ne,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(8720),T)},5672:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateAndroidClientSource=void 0;const o=d(3979),l=d(5057);T.generateAndroidClientSource=function(_,a){let C='@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 g of _.enumTypes)C+=` ${(0,l.generateEnum)(g)}`,C+="\n";C+=" open class Error(val message: String? = null)\n",C+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const g of _.structTypes)C+=` ${(0,l.generateClass)(g)}\n`;const w=[],D=new o.ErrorNode("Connection",new o.VoidPrimitiveType);w.push(D.name),C+=` ${(0,l.generateErrorClass)(D)}`;for(const g of _.errors)C+=` ${(0,l.generateErrorClass)(g)}`,w.push(g.name);return w.length>0&&(C+=`\n enum class ErrorType {\n ${w.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${w.map(g=>`${g} -> ApiClient.${g}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),C+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>{let E="";const M=[];M.push("timeoutMillis: Long? = null"),a&&M.push(`callback: ((response: Response<${(0,l.generateKotlinTypeName)(g.returnType)}>) -> Unit)? = null`);const S=g.args.map(P=>`${(0,l.mangle)(P.name)}: ${(0,l.generateKotlinTypeName)(P.type)}`).concat(M);return E+=` fun ${(0,l.mangle)(g.name)}(\n ${S.join(",\n ")}\n ): Deferred<Response<out ${(0,l.generateKotlinTypeName)(g.returnType)}>> = sdkgenIOScope.async {\n`,g.args.length>0?(E+=" val bodyArgs = JsonObject().apply {\n",E+=g.args.map(P=>` ${(0,l.generateJsonAddRepresentation)(P.type,P.name)}`).join("\n"),E+="\n }\n"):E+=" val bodyArgs: JsonObject? = null",E+="\n",E+=` val call = makeRequest("${g.name}", bodyArgs, timeoutMillis)\n`,E+=` val response: Response<${(0,l.generateKotlinTypeName)(g.returnType)}> = handleCallResponse(call)\n`,a&&(E+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),E+=" return@async response\n",E+=" }\n",E}).join("\n"),C+='\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',C+="}\n",C}},5057:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateErrorClass=T.generateClass=T.getAnnotation=T.generateEnum=T.generateJsonAddRepresentation=T.mangle=T.generateKotlinTypeName=void 0;const o=d(3979);function l(g){switch(g.constructor){case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:return"Int";case o.FloatPrimitiveType:return"Double";case o.BigIntPrimitiveType:return"BigInt";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"Calendar";case o.BoolPrimitiveType:return"Boolean";case o.BytesPrimitiveType:return"ByteArray";case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"String";case o.VoidPrimitiveType:return"Unit";case o.JsonPrimitiveType:return"JsonElement";case o.OptionalType:return`${l(g.base)}?`;case o.ArrayType:return`ArrayList<${l(g.base)}>`;case o.StructType:case o.EnumType:return g.name;case o.TypeReference:return l(g.type);default:throw new Error(`BUG: generateKotlinTypeName with ${g.constructor.name}`)}}function f(g){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(g)?`_${g}`:g}function C(g,E){let M="";switch(E&&E!==f(E)&&(M+=` @SerializedName("${E}")\n`),g.constructor){case o.DatePrimitiveType:M+=" @JsonAdapter(DateAdapter::class)\n";break;case o.DateTimePrimitiveType:M+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case o.ArrayType:case o.OptionalType:M+=C(g.base)}return M}T.generateKotlinTypeName=l,T.mangle=f,T.generateJsonAddRepresentation=function _(g,E){switch(g.constructor){case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:case o.FloatPrimitiveType:case o.BoolPrimitiveType:return`addProperty("${E}", ${f(E)})`;case o.OptionalType:return _(g.base,E);case o.DatePrimitiveType:return`addProperty("${E}", ${f(E)}?.let { DateAdapter.sdf.format(it.time)}) `;case o.DateTimePrimitiveType:return`addProperty("${E}", ${f(E)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case o.ArrayType:case o.StructType:case o.EnumType:case o.TypeReference:case o.JsonPrimitiveType:return`add("${E}", gson.toJsonTree(${f(E)}))`;case o.VoidPrimitiveType:return"";case o.BytesPrimitiveType:return`addProperty("${E}", Base64.encodeToString(${f(E)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${g.constructor.name}`)}},T.generateEnum=function(g){let E="@Parcelize \n";return E+=` enum class ${g.name} : Parcelable { ${g.values.map(M=>f(M.value)).join(", ")} }\n`,E},T.getAnnotation=C,T.generateClass=function(g){let E="@Parcelize\n";return E+=` data class ${g.name}(\n${g.fields.map(M=>{let S=C(M.type,M.name);return S+=` var ${f(M.name)}: ${l(M.type)}${M.type.constructor===o.OptionalType?" = null":""}`,S}).join(",\n")}\n ) : Parcelable\n`,E},T.generateErrorClass=function(g){return`class ${g.name}(message: String) : Error(message)\n`}},2768:function(Ne,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(5672),T)},2253:function(Ne,T,d){"use strict";var o=this&&this.__rest||function(L,ce){var ae={};for(var pe in L)Object.prototype.hasOwnProperty.call(L,pe)&&ce.indexOf(pe)<0&&(ae[pe]=L[pe]);if(null!=L&&"function"==typeof Object.getOwnPropertySymbols){var ke=0;for(pe=Object.getOwnPropertySymbols(L);ke<pe.length;ke++)ce.indexOf(pe[ke])<0&&Object.prototype.propertyIsEnumerable.call(L,pe[ke])&&(ae[pe[ke]]=L[pe[ke]])}return ae};Object.defineProperty(T,"__esModule",{value:!0}),T.AstRoot=T.FunctionOperation=T.TypeDefinition=T.StructType=T.TypeReference=T.Field=T.EnumType=T.EnumValue=T.ArrayType=T.OptionalType=T.JsonPrimitiveType=T.XmlPrimitiveType=T.Base64PrimitiveType=T.HtmlPrimitiveType=T.HexPrimitiveType=T.UuidPrimitiveType=T.UrlPrimitiveType=T.EmailPrimitiveType=T.CnpjPrimitiveType=T.CpfPrimitiveType=T.MoneyPrimitiveType=T.VoidPrimitiveType=T.BytesPrimitiveType=T.BoolPrimitiveType=T.DateTimePrimitiveType=T.DatePrimitiveType=T.BigIntPrimitiveType=T.FloatPrimitiveType=T.UIntPrimitiveType=T.IntPrimitiveType=T.StringPrimitiveType=T.PrimitiveType=T.HiddenAnnotation=T.RestAnnotation=T.ArgDescriptionAnnotation=T.ThrowsAnnotation=T.DescriptionAnnotation=T.Annotation=T.ErrorNode=T.Type=T.AstNode=void 0;const l=d(7279);class f{constructor(){this.location=new l.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(ce){return this.location=ce.location,this}atLocation(ce){return this.location=ce,this}}T.AstNode=f;class _ extends f{toJSON(){const ce=Object.assign({},this);return o(ce,["name"])}}T.Type=_,T.ErrorNode=class extends f{constructor(ce,ae){super(),this.name=ce,this.dataType=ae}};class C extends f{}T.Annotation=C,T.DescriptionAnnotation=class extends C{constructor(ce){super(),this.text=ce}},T.ThrowsAnnotation=class extends C{constructor(ce){super(),this.error=ce}},T.ArgDescriptionAnnotation=class extends C{constructor(ce,ae){super(),this.argName=ce,this.text=ae}},T.RestAnnotation=class extends C{constructor(ce,ae,pe,ke,ot,wt){super(),this.method=ce,this.path=ae,this.pathVariables=pe,this.queryVariables=ke,this.headers=ot,this.bodyVariable=wt}},T.HiddenAnnotation=class extends C{};class S extends _{}T.PrimitiveType=S,T.StringPrimitiveType=class extends S{constructor(){super(...arguments),this.name="string"}},T.IntPrimitiveType=class extends S{constructor(){super(...arguments),this.name="int"}},T.UIntPrimitiveType=class extends S{constructor(){super(...arguments),this.name="uint"}},T.FloatPrimitiveType=class extends S{constructor(){super(...arguments),this.name="float"}},T.BigIntPrimitiveType=class extends S{constructor(){super(...arguments),this.name="bigint"}},T.DatePrimitiveType=class extends S{constructor(){super(...arguments),this.name="date"}},T.DateTimePrimitiveType=class extends S{constructor(){super(...arguments),this.name="datetime"}},T.BoolPrimitiveType=class extends S{constructor(){super(...arguments),this.name="bool"}},T.BytesPrimitiveType=class extends S{constructor(){super(...arguments),this.name="bytes"}},T.VoidPrimitiveType=class extends S{constructor(){super(...arguments),this.name="void"}},T.MoneyPrimitiveType=class extends S{constructor(){super(...arguments),this.name="money"}},T.CpfPrimitiveType=class extends S{constructor(){super(...arguments),this.name="cpf"}},T.CnpjPrimitiveType=class extends S{constructor(){super(...arguments),this.name="cnpj"}},T.EmailPrimitiveType=class extends S{constructor(){super(...arguments),this.name="email"}},T.UrlPrimitiveType=class extends S{constructor(){super(...arguments),this.name="url"}},T.UuidPrimitiveType=class extends S{constructor(){super(...arguments),this.name="uuid"}},T.HexPrimitiveType=class extends S{constructor(){super(...arguments),this.name="hex"}},T.HtmlPrimitiveType=class extends S{constructor(){super(...arguments),this.name="html"}},T.Base64PrimitiveType=class extends S{constructor(){super(...arguments),this.name="base64"}},T.XmlPrimitiveType=class extends S{constructor(){super(...arguments),this.name="xml"}},T.JsonPrimitiveType=class extends S{constructor(){super(...arguments),this.name="json"}},T.OptionalType=class extends _{constructor(ce){super(),this.base=ce}get name(){return`${this.base.name}?`}},T.ArrayType=class extends _{constructor(ce){super(),this.base=ce}get name(){return`${this.base.name}[]`}},T.EnumValue=class extends f{constructor(ce){super(),this.value=ce,this.annotations=[]}},T.EnumType=class extends _{constructor(ce){super(),this.values=ce}},T.Field=class extends f{constructor(ce,ae,pe=!1){super(),this.name=ce,this.type=ae,this.secret=pe,this.annotations=[]}},T.TypeReference=class extends _{constructor(ce){super(),this.name=ce}},T.StructType=class extends _{constructor(ce,ae){super(),this.fields=ce,this.spreads=ae}},T.TypeDefinition=class extends f{constructor(ce,ae){super(),this.name=ce,this.type=ae,this.annotations=[]}},T.FunctionOperation=class extends f{constructor(ce,ae,pe){super(),this.name=ce,this.args=ae,this.returnType=pe,this.annotations=[]}},T.AstRoot=class{constructor(ce=[],ae=[],pe=[]){this.typeDefinitions=ce,this.operations=ae,this.errors=pe,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},806:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.compatibilityIssues=void 0;const o=d(2253);function l(a,C,w,D){if(w instanceof o.TypeReference)l(a,C,w.type,D);else if(D instanceof o.TypeReference)l(a,C,w,D.type);else if(w instanceof o.OptionalType||!(D instanceof o.OptionalType))if(w instanceof o.OptionalType&&D instanceof o.OptionalType)l(a,C,w.base,D.base);else{if(w instanceof o.OptionalType&&!(D instanceof o.OptionalType))return C.push(`${a} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void l(a,C,w.base,D);if(w instanceof o.ArrayType&&D instanceof o.ArrayType)l(a,C,w.base,D.base);else if(w instanceof o.StructType&&D instanceof o.StructType)for(const g of D.fields){const E=w.fields.find(M=>M.name===g.name);if(E)l(`${a}.${E.name}`,C,E.type,g.type);else{if(g.type instanceof o.OptionalType)continue;C.push(`${a}.${g.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(w instanceof o.UIntPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.IntPrimitiveType&&D instanceof o.FloatPrimitiveType||w instanceof o.MoneyPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.MoneyPrimitiveType&&D instanceof o.UIntPrimitiveType||w instanceof o.UIntPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.IntPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.MoneyPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.UuidPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.XmlPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.DatePrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.DateTimePrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.CpfPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.CnpjPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.HexPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.HtmlPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.Base64PrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.BytesPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.BytesPrimitiveType&&D instanceof o.Base64PrimitiveType||w instanceof o.UrlPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.EmailPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.EnumType&&D instanceof o.StringPrimitiveType)){if(w instanceof o.EnumType&&D instanceof o.EnumType){for(const g of w.values)D.values.map(E=>E.value).includes(g.value)||C.push(`The enum at ${a} used to accept the value "${g.value}" that doesn't exist now. Clients that send it will fail.`);return}w.constructor.name!==D.constructor.name&&C.push(`${a} was ${w.name} and now it is ${D.name}. They are not compatible.`)}}else l(a,C,w,D.base)}function f(a,C,w,D){if(w instanceof o.TypeReference)f(a,C,w.type,D);else if(D instanceof o.TypeReference)f(a,C,w,D.type);else if(!(w instanceof o.OptionalType)||D instanceof o.OptionalType)if(w instanceof o.OptionalType&&D instanceof o.OptionalType)f(a,C,w.base,D.base);else{if(!(w instanceof o.OptionalType)&&D instanceof o.OptionalType)return C.push(`${a} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void f(a,C,w,D.base);if(w instanceof o.ArrayType&&D instanceof o.ArrayType)f(a,C,w.base,D.base);else if(w instanceof o.StructType&&D instanceof o.StructType)for(const g of w.fields){const E=D.fields.find(M=>M.name===g.name);if(E)f(`${a}.${g.name}`,C,g.type,E.type);else{if(g.type instanceof o.OptionalType)continue;C.push(`${a}.${g.name} used to exist with type ${g.type.name}, but it's now missing. Add it back.`)}}else if(!(w instanceof o.IntPrimitiveType&&D instanceof o.UIntPrimitiveType||w instanceof o.FloatPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.IntPrimitiveType&&D instanceof o.MoneyPrimitiveType||w instanceof o.UIntPrimitiveType&&D instanceof o.MoneyPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.UIntPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.MoneyPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.UuidPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.XmlPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.DatePrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.DateTimePrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.CpfPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.CnpjPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.HexPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.HtmlPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.Base64PrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.BytesPrimitiveType||w instanceof o.Base64PrimitiveType&&D instanceof o.BytesPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.UrlPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.EmailPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.EnumType)){if(w instanceof o.EnumType&&D instanceof o.EnumType){for(const g of D.values)w.values.map(E=>E.value).includes(g.value)||C.push(`The enum at ${a} now has the value "${g.value}" that didn't exist before. Client will crash if it receives it`);return}w.constructor.name!==D.constructor.name&&C.push(`${a} was ${w.name} and now it is ${D.name}. They are not compatible.`)}}else f(a,C,w.base,D)}T.compatibilityIssues=function(a,C){const w=[];for(const D of a.operations){const g=C.operations.find(E=>E.name===D.name);if(g){f(`${D.name}.ret`,w,D.returnType,g.returnType);for(const E of g.args){const M=D.args.find(S=>S.name===E.name);if(M)l(`${D.name}.args.${M.name}`,w,M.type,E.type);else{if(E.type instanceof o.OptionalType)continue;w.push(`${D.name}.args.${E.name} didn't exist before and isn't optional. Make it optional.`)}}}else w.push(`function ${D.name} used to exist, but it's now missing. Add it back.`)}for(const D of a.errors){const g=C.errors.find(E=>E.name===D.name);!g||f(`${D.name}.data`,w,D.dataType,g.dataType)}return w}},3979:function(Ne,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(_,a,C,w){void 0===w&&(w=C),Object.defineProperty(_,w,{enumerable:!0,get:function(){return a[C]}})}:function(_,a,C,w){void 0===w&&(w=C),_[w]=a[C]}),l=this&&this.__exportStar||function(_,a){for(var C in _)"default"!==C&&!Object.prototype.hasOwnProperty.call(a,C)&&o(a,_,C)};Object.defineProperty(T,"__esModule",{value:!0}),T.jsonToAst=T.astToJson=void 0,l(d(2253),T),l(d(806),T);var f=d(3536);Object.defineProperty(T,"astToJson",{enumerable:!0,get:function(){return f.astToJson}}),Object.defineProperty(T,"jsonToAst",{enumerable:!0,get:function(){return f.jsonToAst}}),l(d(2814),T),l(d(6790),T),l(d(7279),T)},3536:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.jsonToAst=T.astToJson=void 0;const o=d(2253),l=d(5140),f=d(1321);function _(D){if(D instanceof o.DescriptionAnnotation)return{type:"description",value:D.text};if(D instanceof o.ThrowsAnnotation)return{type:"throws",value:D.error};if(D instanceof o.RestAnnotation)return{type:"rest",value:{bodyVariable:D.bodyVariable,headers:[...D.headers.entries()].sort(([g],[E])=>g.localeCompare(E)),method:D.method,path:D.path,pathVariables:[...D.pathVariables].sort((g,E)=>g.localeCompare(E)),queryVariables:[...D.queryVariables].sort((g,E)=>g.localeCompare(E))}};if(D instanceof o.HiddenAnnotation)return{type:"hidden",value:null};throw new Error(`BUG: annotationToJson with ${D.constructor.name}`)}function a(D){switch(D.type){case"description":return new o.DescriptionAnnotation(D.value);case"throws":return new o.ThrowsAnnotation(D.value);case"rest":{const{method:g,path:E,pathVariables:M,queryVariables:S,headers:P,bodyVariable:B}=D.value;return new o.RestAnnotation(g,E,M,S,new Map(P),B)}case"hidden":return new o.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${D.type}`)}}T.astToJson=function(D){var g,E,M;const S={},P={};function B(le){return le instanceof o.ArrayType?`${B(le.base)}[]`:le instanceof o.OptionalType?`${B(le.base)}?`:le.name}for(const{name:le,fields:Ce}of D.structTypes){P[le]={};const $e=P[le];for(const lt of Ce){$e[lt.name]=B(lt.type);for(const Ye of lt.annotations)if(Ye instanceof o.DescriptionAnnotation){const Me=`type.${le}.${lt.name}`;null!==(g=S[Me])&&void 0!==g||(S[Me]=[]),S[Me].push(_(Ye))}}}for(const{name:le,values:Ce}of D.enumTypes)P[le]=Ce.map($e=>$e.value);for(const{name:le,type:Ce}of D.typeDefinitions)Ce instanceof o.StructType||Ce instanceof o.EnumType||(P[le]=B(Ce));const j={};for(const le of D.operations){const Ce={};for(const $e of le.args){Ce[$e.name]=B($e.type);for(const lt of $e.annotations)if(lt instanceof o.DescriptionAnnotation){const Ye=`fn.${le.name}.${$e.name}`;null!==(E=S[Ye])&&void 0!==E||(S[Ye]=[]),S[Ye].push(_(lt))}}j[le.name]={args:Ce,ret:B(le.returnType)};for(const $e of le.annotations){const lt=`fn.${le.name}`;null!==(M=S[lt])&&void 0!==M||(S[lt]=[]),S[lt].push(_($e))}}return{annotations:S,errors:D.errors.map(le=>le.dataType instanceof o.VoidPrimitiveType?le.name:[le.name,le.dataType.name]),functionTable:j,typeTable:P}},T.jsonToAst=function(D){var g;const E=[],M=[];function S(j,oe){var le;if("string"==typeof j){const $e=f.primitiveToAstClass.get(j);return $e?new $e:j.endsWith("?")?new o.OptionalType(S(j.slice(0,j.length-1))):j.endsWith("[]")?new o.ArrayType(S(j.slice(0,j.length-2))):new o.TypeReference(j)}if(Array.isArray(j))return new o.EnumType(j.map($e=>new o.EnumValue($e)));const Ce=[];for(const $e of Object.keys(j)){const lt=new o.Field($e,S(j[$e]));if(oe){const Ye=`type.${oe}.${$e}`;for(const Me of null!==(le=D.annotations[Ye])&&void 0!==le?le:[])lt.annotations.push(a(Me))}Ce.push(lt)}return new o.StructType(Ce,[])}for(const[j,oe]of Object.entries(D.typeTable)){const le=S(oe,j);M.push(new o.TypeDefinition(j,le))}for(const[j,oe]of Object.entries(D.functionTable)){const le=Object.keys(oe.args).map(lt=>{var Ye;const Me=new o.Field(lt,S(oe.args[lt])),Oe=`fn.${j}.${lt}`;for(const Pe of null!==(Ye=D.annotations[Oe])&&void 0!==Ye?Ye:[])Me.annotations.push(a(Pe));return Me}),Ce=new o.FunctionOperation(j,le,S(oe.ret)),$e=`fn.${j}`;for(const lt of null!==(g=D.annotations[$e])&&void 0!==g?g:[])Ce.annotations.push(a(lt));E.push(Ce)}const P=D.errors.map(j=>Array.isArray(j)?new o.ErrorNode(j[0],S(j[1])):new o.ErrorNode(j,new o.VoidPrimitiveType)),B=new o.AstRoot(M,E,P);return(0,l.analyse)(B),B}},2814:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.Lexer=T.LexerError=void 0;const o=d(7279);class l extends Error{}T.LexerError=l;class f{constructor(a,C="-"){this.source=a,this.filename=C,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 a=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(),a=new o.CurlyOpenSymbolToken;break;case"}":this.nextChar(),a=new o.CurlyCloseSymbolToken;break;case"(":this.nextChar(),a=new o.ParensOpenSymbolToken;break;case")":this.nextChar(),a=new o.ParensCloseSymbolToken;break;case"?":this.nextChar(),a=new o.OptionalSymbolToken;break;case":":this.nextChar(),a=new o.ColonSymbolToken;break;case"=":this.nextChar(),a=new o.EqualSymbolToken;break;case"!":this.nextChar(),a=new o.ExclamationMarkSymbolToken;break;case",":this.nextChar(),a=new o.CommaSymbolToken;break;case"[":switch(this.nextChar()){case"]":this.nextChar(),a=new o.ArraySymbolToken}break;case".":switch(this.nextChar()){case".":switch(this.nextChar()){case".":this.nextChar(),a=new o.SpreadSymbolToken}}break;case"@":{let C="\\",w=this.startPos+1;for(;"\\"===C[C.length-1];){for(C=C.slice(0,C.length-1).trim();!["\0","\n"].includes(this.nextChar()););C=`${C} ${this.source.substring(w,this.pos).trim()}`.trim(),w=this.pos+1}a=new o.AnnotationToken(C.trim());break}case'"':{const C=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":C.push("\n");break;case"t":C.push("\t");break;default:C.push(this.currentChar())}break;case'"':this.nextChar(),a=new o.StringLiteralToken(C.join(""));break e;default:C.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const C=this.source.substring(this.startPos,this.pos);switch(C){case"error":a=new o.ErrorKeywordToken;break;case"enum":a=new o.EnumKeywordToken;break;case"type":a=new o.TypeKeywordToken;break;case"import":a=new o.ImportKeywordToken;break;case"fn":a=new o.FnKeywordToken;break;case"true":a=new o.TrueKeywordToken;break;case"false":a=new o.FalseKeywordToken;break;default:a=f.PRIMITIVES.has(C)?new o.PrimitiveTypeToken(C):new o.IdentifierToken(C)}}}if(null!==a)return a.location.filename=this.filename,a.location.line=this.startLine,a.location.column=this.startColumn,a;throw"\0"===this.currentChar()?new l(`Unexpected end of file at ${this.filename}`):new l(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}T.Lexer=f,f.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]),f.KEYWORDS=new Set([...f.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"])},6790:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.Parser=T.ParserError=void 0;const o=d(2253),l=d(2814),f=d(8215),_=d(5140),a=d(7279),C=d(1321);class w extends Error{}T.ParserError=w,T.Parser=class{constructor(E){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var S=new Error("Cannot find module 'fs'");throw S.code="MODULE_NOT_FOUND",S}()).readFileSync}catch(M){}this.lexers=E instanceof l.Lexer?[E]:[new l.Lexer(this.readFileSync(E).toString(),E)],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(E){if(!this.token)throw new w(`Expected ${Object.keys(E).map(S=>S.replace("Token","")).join(" or ")}, but found end of file`);const M=this.token.constructor.name;if(M in E)return E[M](this.token);if(E.IdentifierToken){const S=this.token.maybeAsIdentifier();if(S instanceof a.IdentifierToken)return E.IdentifierToken(S)}throw new w(`Expected ${Object.keys(E).map(S=>S.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(E){if(null===this.token)throw new w(`Expected ${E.name.replace("Token","")}, but found end of file`);if(this.token instanceof E)return this.token;if(E===a.IdentifierToken){const M=this.token.maybeAsIdentifier();if(M instanceof a.IdentifierToken)return M}throw new w(`Expected ${E.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const E=[],M=[],S=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{S.push(this.parseError())},FnKeywordToken:()=>{E.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const B=this.expect(a.StringLiteralToken),j=B.location.filename.replace(/[^/\\]+$/u,`${B.value}.sdkgen`);this.lexers.push(new l.Lexer(this.readFileSync(j).toString(),j)),this.nextToken()},TypeKeywordToken:()=>{M.push(this.parseTypeDefinition())}});const P=new o.AstRoot(M,E,S);return P.warnings=this.warnings,(0,_.analyse)(P),P}acceptAnnotations(){for(;this.token instanceof a.AnnotationToken;){const E=this.token.value.split(" "),M=this.token.value.slice(E[0].length).trim();switch(E[0]){case"description":this.annotations.push(new o.DescriptionAnnotation(M).at(this.token));break;case"arg":this.annotations.push(new o.ArgDescriptionAnnotation(E[1],this.token.value.slice(E[0].length+1+E[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new o.ThrowsAnnotation(M).at(this.token));break;case"rest":try{this.annotations.push((0,f.parseRestAnnotation)(M).at(this.token))}catch(S){throw new w(`${S instanceof Error?S.message:S} at ${this.token.location}`)}break;case"hidden":if(""!==M)throw new w("@hidden annotation doesn't take any argument");this.annotations.push((new o.HiddenAnnotation).at(this.token));break;default:throw new w(`Unknown annotation '${E[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new w(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const E=this.expect(a.TypeKeywordToken);this.nextToken();const M=this.expect(a.IdentifierToken),S=M.value;if(!/[A-Z]/u.test(S[0]))throw new w(`The custom type name must start with an uppercase letter, but found '${JSON.stringify(S)}' at ${M.location}`);this.nextToken();const{annotations:P}=this;this.annotations=[];const B=this.parseType(),j=new o.TypeDefinition(S,B).at(E);return j.annotations=P,j}parseError(){this.checkCannotHaveAnnotationsHere();const E=this.expect(a.ErrorKeywordToken);this.nextToken();const M=this.expect(a.IdentifierToken),S=M.value;if(!/[A-Z]/u.test(S[0]))throw new w(`Error name must start with an uppercase letter, but found '${JSON.stringify(S)}' at ${M.location}`);this.nextToken();let P=new o.VoidPrimitiveType;return(this.token instanceof a.CurlyOpenSymbolToken||this.token instanceof a.EnumKeywordToken||this.token instanceof a.IdentifierToken||this.token instanceof a.PrimitiveTypeToken)&&(P=this.parseType()),new o.ErrorNode(S,P).at(E)}parseOperation(){let{annotations:E}=this;this.annotations=[],this.expect(a.FnKeywordToken),this.nextToken();const M=this.expect(a.IdentifierToken).value;this.nextToken(),this.expect(a.ParensOpenSymbolToken),this.nextToken();const S=new Set,P=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof a.IdentifierToken;){const le=this.parseField();if(S.has(le.name))throw new w(`Cannot redeclare argument '${le.name}'`);if(S.add(le.name),P.push(le),!(this.token instanceof a.CommaSymbolToken))break;this.nextToken()}for(const le of E)if(le instanceof o.ArgDescriptionAnnotation){const Ce=P.find($e=>$e.name===le.argName);if(!Ce)throw new w(`Argument '${le.argName}' not found, at ${le.location}`);Ce.annotations.push(new o.DescriptionAnnotation(le.text).atLocation(le.location))}E=E.filter(le=>!(le instanceof o.ArgDescriptionAnnotation));const B=this.expect(a.ParensCloseSymbolToken);this.nextToken();let j=(new o.VoidPrimitiveType).at(B);this.token instanceof a.ColonSymbolToken&&(this.nextToken(),j=this.parseType());const oe=new o.FunctionOperation(M,P,j);return oe.annotations=E,oe}parseEnum(){this.checkCannotHaveAnnotationsHere();const E=this.expect(a.EnumKeywordToken);this.nextToken(),this.expect(a.CurlyOpenSymbolToken),this.nextToken();const M=new o.EnumType([]).at(E);let S=!1;for(;!S;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),S=!0},IdentifierToken:P=>{const B=new o.EnumValue(P.value).at(P);B.annotations=this.annotations,this.annotations=[],M.values.push(B),this.nextToken()}});return M}parseField(){const E=this.expect(a.IdentifierToken);this.nextToken(),this.expect(a.ColonSymbolToken),this.nextToken();const{annotations:M}=this;this.annotations=[];const S=this.parseType(),P=new o.Field(E.value,S).at(E);for(P.annotations=M;this.token instanceof a.ExclamationMarkSymbolToken;){switch(this.nextToken(),this.expect(a.IdentifierToken).value){case"secret":P.secret=!0;break;default:throw new w(`Unknown field mark !${this.token.value} at ${this.token.location}`)}this.nextToken()}return P}parseStruct(){const E=this.expect(a.CurlyOpenSymbolToken);this.nextToken();const M=[],S=[],P=new Set;let B=!1;for(;!B;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),B=!0},IdentifierToken:()=>{const j=this.parseField();if(P.has(j.name))throw new w(`Cannot redeclare field '${j.name}'`);P.add(j.name),M.push(j)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const j=this.expect(a.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(j.value[0]))throw new w(`Expected a type but found '${JSON.stringify(j.value)}' at ${j.location}`);S.push(new o.TypeReference(j.value).at(j))}});return new o.StructType(M,S).at(E)}parseType(){this.checkCannotHaveAnnotationsHere();let E=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:M=>{if(this.nextToken(),!/[A-Z]/u.test(M.value[0]))throw new w(`Expected a type but found '${JSON.stringify(M.value)}' at ${M.location}`);return new o.TypeReference(M.value).at(M)},PrimitiveTypeToken:M=>{this.nextToken();const S=C.primitiveToAstClass.get(M.value);if(S)return(new S).at(M);throw new w(`BUG! Should handle primitive ${M.value}`)}});for(;this.token instanceof a.ArraySymbolToken||this.token instanceof a.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:M=>E=new o.ArrayType(E).at(M),OptionalSymbolToken:M=>E=new o.OptionalType(E).at(M)}),this.nextToken();return E}}},8215:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.parseRestAnnotation=void 0;const o=d(2253);function _(C){var w;const D=/\{(?<name>\w+)\}/gu,g=[];let E;for(;null!==(E=D.exec(C));)(null===(w=E.groups)||void 0===w?void 0:w.name)&&g.push(E.groups.name);return g}T.parseRestAnnotation=function(C){const w=C.split(" "),D=w[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(D))throw new Error(`Unsupported method '${D}'`);let g=w[1];if(!g.startsWith("/"))throw new Error("Invalid path");let E=[];if(g.includes("?")){const[j,...oe]=g.split("?");g=j;const le=oe.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(le))throw new Error("Invalid querystring on path");E=_(le)}const M=_(g),S=w.slice(2).join(" "),P=function(C){var w;const D=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,g=new Map;let E;for(;null!==(E=D.exec(C));)(null===(w=E.groups)||void 0===w?void 0:w.header)&&E.groups.name&&g.set(E.groups.header.toLowerCase(),E.groups.name);return g}(S),B=function(C){var w;const D=/\[body \{(?<name>\w+)\}\]/u.exec(C);return(null===(w=null==D?void 0:D.groups)||void 0===w?void 0:w.name)?D.groups.name:null}(S);return new o.RestAnnotation(D,g,M,E,P,B)}},2652:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CheckMultipleDeclarationVisitor=void 0;const o=d(2253),l=d(6572);T.CheckMultipleDeclarationVisitor=class extends l.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(a){if(a instanceof o.TypeDefinition){const C=this.nameToType.get(a.name);if(C&&JSON.stringify(C)!==JSON.stringify(a.type))throw new l.SemanticError(`Type '${a.name}' at ${a.location} is defined multiple times (also at ${C.location})`);this.nameToType.set(a.name,a.type)}super.visit(a)}}},2417:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.MatchTypeDefinitionsVisitor=void 0;const o=d(2253),l=d(6572);T.MatchTypeDefinitionsVisitor=class extends l.Visitor{visit(a){if(a instanceof o.TypeReference){const C=this.root.typeDefinitions.find(w=>w.name===a.name);if(void 0===C)throw new l.SemanticError(`Could not find type '${a.name}' at ${a.location}`);a.type=C.type}super.visit(a)}}},8237:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CheckDontReturnSecretVisitor=void 0;const o=d(2253),l=d(6572);T.CheckDontReturnSecretVisitor=class extends l.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(a){if(!this.visited.has(a))if(this.visited.add(a),a instanceof o.FunctionOperation)this.isInReturn=!0,this.path.push(`${a.name}(...)`),this.visit(a.returnType),this.path.pop(),this.isInReturn=!1;else if(a instanceof o.TypeReference)this.visit(a.type);else if(a instanceof o.Field){if(this.path.push(a.name),this.isInReturn&&a.secret)throw new l.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${a.location}`);super.visit(a),this.path.pop()}else super.visit(a)}}},6672:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.GiveStructAndEnumNamesVisitor=void 0;const o=d(2253),l=d(6572);T.GiveStructAndEnumNamesVisitor=class extends l.Visitor{constructor(){super(...arguments),this.path=[],this.names=new Map}visit(a){if(a instanceof o.TypeDefinition)this.path=[a.name],super.visit(a);else if(a instanceof o.ErrorNode)this.path=[`${a.name}Data`],super.visit(a);else if(a instanceof o.FunctionOperation)this.path=[a.name],super.visit(a);else if(a instanceof o.Field)this.path.push(a.name),super.visit(a),this.path.pop();else if(a instanceof o.StructType||a instanceof o.EnumType){a.name=this.path.map(w=>w[0].toUpperCase()+w.slice(1)).join("");const C=this.names.get(a.name);if(C&&JSON.stringify(C.type)!==JSON.stringify(a))throw new l.SemanticError(`The name of the type '${this.path.join(".")}' at ${a.location} will conflict with '${C.path.join(".")}' at ${C.type.location}`);this.names.set(a.name,{path:[...this.path],type:a}),super.visit(a)}else super.visit(a)}}},5193:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CheckEmptyStructOrEnumVisitor=void 0;const o=d(2253),l=d(6572);T.CheckEmptyStructOrEnumVisitor=class extends l.Visitor{visit(a){if(super.visit(a),a instanceof o.EnumType&&0===a.values.length)throw new l.SemanticError(`Enum '${a.name}' at ${a.location} is empty`);if(a instanceof o.StructType&&0===a.fields.length&&0===a.spreads.length)throw new l.SemanticError(`Struct '${a.name}' at ${a.location} is empty`)}}},574:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CollectStructAndEnumTypesVisitor=void 0;const o=d(2253),l=d(6572);T.CollectStructAndEnumTypesVisitor=class extends l.Visitor{visit(a){super.visit(a),a instanceof o.StructType?this.root.structTypes.push(a):a instanceof o.EnumType&&this.root.enumTypes.push(a)}}},7255:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ApplyStructSpreadsVisitor=void 0;const o=d(2253),l=d(6572);T.ApplyStructSpreadsVisitor=class extends l.Visitor{constructor(){super(...arguments),this.processed=new Set}visit(a){if(a instanceof o.StructType){if(this.processed.has(a))return;this.processed.add(a)}if(super.visit(a),a instanceof o.StructType)for(const C of a.spreads.map(w=>w.type)){if(!(C instanceof o.StructType))throw new l.SemanticError(`A spread operator in a struct can't refer to something that is not a struct, in '${a.name}' at ${a.location}.`);this.visit(C);for(const w of C.fields){const D=a.fields.findIndex(g=>g.name===w.name);D>=0?a.fields[D]=w:a.fields.push(w)}}}}},7181:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ValidateAnnotationsVisitor=void 0;const o=d(2253),l=d(6572);function _(C){return C instanceof o.TypeReference?_(C.type):C}T.ValidateAnnotationsVisitor=class extends l.Visitor{visit(w){if(w instanceof o.EnumValue){for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(w instanceof o.TypeDefinition){for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(w instanceof o.Field){for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(w instanceof o.FunctionOperation)for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))if(D instanceof o.ThrowsAnnotation){if(!this.root.errors.some(g=>g.name===D.error))throw new l.SemanticError(`Unknown error type '${D.error}' at ${D.location}`)}else if(D instanceof o.RestAnnotation){const g=[...D.pathVariables,...D.queryVariables,...D.headers.values()];if(g.length!==new Set(g).size)throw new l.SemanticError(`Arguments must appear only once for rest annotation at ${D.location}`);for(const E of g){const M=w.args.find(P=>P.name===E);if(!M)throw new l.SemanticError(`Argument '${E}' not found at ${D.location}`);if(D.pathVariables.includes(E)&&M.type instanceof o.OptionalType)throw new l.SemanticError(`The path argument '${E}' can't be nullable at ${D.location}`);if(!((C=_(M.type instanceof o.OptionalType?M.type.base:M.type))instanceof o.BoolPrimitiveType||C instanceof o.IntPrimitiveType||C instanceof o.UIntPrimitiveType||C instanceof o.BigIntPrimitiveType||C instanceof o.FloatPrimitiveType||C instanceof o.StringPrimitiveType||C instanceof o.DatePrimitiveType||C instanceof o.DateTimePrimitiveType||C instanceof o.MoneyPrimitiveType||C instanceof o.CpfPrimitiveType||C instanceof o.CnpjPrimitiveType||C instanceof o.UuidPrimitiveType||C instanceof o.HexPrimitiveType||C instanceof o.Base64PrimitiveType||C instanceof o.EnumType))throw new l.SemanticError(`Argument '${E}' can't have type '${M.type.name}' for rest annotation at ${D.location}`)}for(const E of w.args)if(!g.includes(E.name)&&D.bodyVariable!==E.name)throw new l.SemanticError(`Argument '${E.name}' is missing from the rest annotation at ${D.location}`);if("GET"===D.method&&w.returnType instanceof o.VoidPrimitiveType)throw new l.SemanticError(`A GET rest endpoint must return something at ${D.location}`)}else if(!(D instanceof o.HiddenAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`);var C}}},3158:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ValidateRecursiveTypes=void 0;const o=d(2253),l=d(6572);T.ValidateRecursiveTypes=class extends l.Visitor{visit(a){if(super.visit(a),a instanceof o.TypeDefinition&&(a.type instanceof o.TypeReference&&a.type.name===a.name||a.type instanceof o.ArrayType&&a.type.base.name===a.name||a.type instanceof o.OptionalType&&a.type.base.name===a.name))throw new l.SemanticError(`Type '${a.name}' at ${a.location} is recursive but is not an struct`)}}},5140:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.analyse=void 0;const o=d(2253),l=d(2652),f=d(2417),_=d(8237),a=d(6672),C=d(5193),w=d(574),D=d(7255),g=d(7181),E=d(3158);T.analyse=function(S){S.errors.some(P=>"Fatal"===P.name)||S.errors.push(new o.ErrorNode("Fatal",new o.VoidPrimitiveType)),new l.CheckMultipleDeclarationVisitor(S).process(),new f.MatchTypeDefinitionsVisitor(S).process(),new _.CheckDontReturnSecretVisitor(S).process(),new a.GiveStructAndEnumNamesVisitor(S).process(),new C.CheckEmptyStructOrEnumVisitor(S).process(),new w.CollectStructAndEnumTypesVisitor(S).process(),new D.ApplyStructSpreadsVisitor(S).process(),new g.ValidateAnnotationsVisitor(S).process(),new E.ValidateRecursiveTypes(S).process()}},6572:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.Visitor=T.SemanticError=void 0;const o=d(2253);class l extends Error{}T.SemanticError=l,T.Visitor=class{constructor(a){this.root=a}process(){for(const a of this.root.errors)this.visit(a);for(const a of this.root.typeDefinitions)this.visit(a);for(const a of this.root.operations)this.visit(a)}visit(a){if(a instanceof o.FunctionOperation){for(const C of a.args)this.visit(C);this.visit(a.returnType)}else if(a instanceof o.Field||a instanceof o.TypeDefinition)this.visit(a.type);else if(a instanceof o.StructType){for(const C of a.fields)this.visit(C);for(const C of a.spreads)this.visit(C)}else a instanceof o.ArrayType||a instanceof o.OptionalType?this.visit(a.base):a instanceof o.ErrorNode&&this.visit(a.dataType)}}},7279:(Ne,T)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.PrimitiveTypeToken=T.FalseKeywordToken=T.TrueKeywordToken=T.ErrorKeywordToken=T.FnKeywordToken=T.EnumKeywordToken=T.TypeKeywordToken=T.ImportKeywordToken=T.AnnotationToken=T.SpreadSymbolToken=T.CommaSymbolToken=T.ArraySymbolToken=T.OptionalSymbolToken=T.ColonSymbolToken=T.ParensCloseSymbolToken=T.ParensOpenSymbolToken=T.CurlyCloseSymbolToken=T.CurlyOpenSymbolToken=T.ExclamationMarkSymbolToken=T.EqualSymbolToken=T.StringLiteralToken=T.IdentifierToken=T.Token=T.TokenLocation=void 0;class d{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}T.TokenLocation=d;class o{constructor(de=""){this.value=de,this.location=new d,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const de=this.constructor.name.replace("Token","");return""===this.value?de:`${de}(${JSON.stringify(this.value)})`}}T.Token=o;class l extends o{}T.IdentifierToken=l,T.StringLiteralToken=class extends o{},T.EqualSymbolToken=class extends o{},T.ExclamationMarkSymbolToken=class extends o{},T.CurlyOpenSymbolToken=class extends o{},T.CurlyCloseSymbolToken=class extends o{},T.ParensOpenSymbolToken=class extends o{},T.ParensCloseSymbolToken=class extends o{},T.ColonSymbolToken=class extends o{},T.OptionalSymbolToken=class extends o{},T.ArraySymbolToken=class extends o{},T.CommaSymbolToken=class extends o{},T.SpreadSymbolToken=class extends o{},T.AnnotationToken=class extends o{},T.ImportKeywordToken=class extends o{maybeAsIdentifier(){return new l("import")}},T.TypeKeywordToken=class extends o{maybeAsIdentifier(){return new l("type")}},T.EnumKeywordToken=class extends o{maybeAsIdentifier(){return new l("enum")}},T.FnKeywordToken=class extends o{maybeAsIdentifier(){return new l("fn")}},T.ErrorKeywordToken=class extends o{maybeAsIdentifier(){return new l("error")}},T.TrueKeywordToken=class extends o{maybeAsIdentifier(){return new l("true")}},T.FalseKeywordToken=class extends o{maybeAsIdentifier(){return new l("false")}},T.PrimitiveTypeToken=class extends o{maybeAsIdentifier(){return new l(this.value)}}},1321:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.primitiveToAstClass=void 0;const o=d(2253);T.primitiveToAstClass=new Map,T.primitiveToAstClass.set("string",o.StringPrimitiveType),T.primitiveToAstClass.set("int",o.IntPrimitiveType),T.primitiveToAstClass.set("uint",o.UIntPrimitiveType),T.primitiveToAstClass.set("date",o.DatePrimitiveType),T.primitiveToAstClass.set("datetime",o.DateTimePrimitiveType),T.primitiveToAstClass.set("float",o.FloatPrimitiveType),T.primitiveToAstClass.set("bigint",o.BigIntPrimitiveType),T.primitiveToAstClass.set("bool",o.BoolPrimitiveType),T.primitiveToAstClass.set("bytes",o.BytesPrimitiveType),T.primitiveToAstClass.set("money",o.MoneyPrimitiveType),T.primitiveToAstClass.set("cpf",o.CpfPrimitiveType),T.primitiveToAstClass.set("cnpj",o.CnpjPrimitiveType),T.primitiveToAstClass.set("email",o.EmailPrimitiveType),T.primitiveToAstClass.set("html",o.HtmlPrimitiveType),T.primitiveToAstClass.set("url",o.UrlPrimitiveType),T.primitiveToAstClass.set("uuid",o.UuidPrimitiveType),T.primitiveToAstClass.set("hex",o.HexPrimitiveType),T.primitiveToAstClass.set("base64",o.Base64PrimitiveType),T.primitiveToAstClass.set("xml",o.XmlPrimitiveType),T.primitiveToAstClass.set("json",o.JsonPrimitiveType),T.primitiveToAstClass.set("void",o.VoidPrimitiveType)},7238:(Ne,T,d)=>{"use strict";d.d(T,{l3:()=>f,_j:()=>o,LC:()=>l,ZN:()=>Ce,jt:()=>a,F4:()=>E,vP:()=>w,SB:()=>g,oB:()=>D,eR:()=>M,X$:()=>_,ZE:()=>$e,k1:()=>lt});class o{}class l{}const f="*";function _(Ye,Me){return{type:7,name:Ye,definitions:Me,options:{}}}function a(Ye,Me=null){return{type:4,styles:Me,timings:Ye}}function w(Ye,Me=null){return{type:2,steps:Ye,options:Me}}function D(Ye){return{type:6,styles:Ye,offset:null}}function g(Ye,Me,Oe){return{type:0,name:Ye,styles:Me,options:Oe}}function E(Ye){return{type:5,steps:Ye}}function M(Ye,Me,Oe=null){return{type:1,expr:Ye,animation:Me,options:Oe}}function le(Ye){Promise.resolve(null).then(Ye)}class Ce{constructor(Me=0,Oe=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Me+Oe}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Me=>Me()),this._onDoneFns=[])}onStart(Me){this._onStartFns.push(Me)}onDone(Me){this._onDoneFns.push(Me)}onDestroy(Me){this._onDestroyFns.push(Me)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){le(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Me=>Me()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Me=>Me()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Me){this._position=this.totalTime?Me*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Me){const Oe="start"==Me?this._onStartFns:this._onDoneFns;Oe.forEach(Pe=>Pe()),Oe.length=0}}class $e{constructor(Me){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Me;let Oe=0,Pe=0,de=0;const qe=this.players.length;0==qe?le(()=>this._onFinish()):this.players.forEach(Y=>{Y.onDone(()=>{++Oe==qe&&this._onFinish()}),Y.onDestroy(()=>{++Pe==qe&&this._onDestroy()}),Y.onStart(()=>{++de==qe&&this._onStart()})}),this.totalTime=this.players.reduce((Y,se)=>Math.max(Y,se.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Me=>Me()),this._onDoneFns=[])}init(){this.players.forEach(Me=>Me.init())}onStart(Me){this._onStartFns.push(Me)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Me=>Me()),this._onStartFns=[])}onDone(Me){this._onDoneFns.push(Me)}onDestroy(Me){this._onDestroyFns.push(Me)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Me=>Me.play())}pause(){this.players.forEach(Me=>Me.pause())}restart(){this.players.forEach(Me=>Me.restart())}finish(){this._onFinish(),this.players.forEach(Me=>Me.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Me=>Me.destroy()),this._onDestroyFns.forEach(Me=>Me()),this._onDestroyFns=[])}reset(){this.players.forEach(Me=>Me.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Me){const Oe=Me*this.totalTime;this.players.forEach(Pe=>{const de=Pe.totalTime?Math.min(1,Oe/Pe.totalTime):1;Pe.setPosition(de)})}getPosition(){const Me=this.players.reduce((Oe,Pe)=>null===Oe||Pe.totalTime>Oe.totalTime?Pe:Oe,null);return null!=Me?Me.getPosition():0}beforeDestroy(){this.players.forEach(Me=>{Me.beforeDestroy&&Me.beforeDestroy()})}triggerCallback(Me){const Oe="start"==Me?this._onStartFns:this._onDoneFns;Oe.forEach(Pe=>Pe()),Oe.length=0}}const lt="!"},9238:(Ne,T,d)=>{"use strict";d.d(T,{rt:()=>De,$s:()=>_e,kH:()=>Xe,Em:()=>ct,tE:()=>_n,qV:()=>wt,qm:()=>W,X6:()=>R,yG:()=>he});var o=d(8583),l=d(7716),f=d(9765),_=d(826),a=d(6215),C=d(5917),w=d(6461),D=d(8307),g=d(4395),E=d(5435),M=d(8002),S=d(5257),P=d(3653),B=d(7519),j=d(6782),oe=d(9490),le=d(521),Ce=d(8553);function Me(Ee,Q){return(Ee.getAttribute(Q)||"").match(/\S+/g)||[]}const Oe="cdk-describedby-message-container",Pe="cdk-describedby-message",de="cdk-describedby-host";let qe=0;const Y=new Map;let se=null,_e=(()=>{class Ee{constructor(Z){this._document=Z}describe(Z,N,ie){if(!this._canBeDescribed(Z,N))return;const it=fe(N,ie);"string"!=typeof N?(Be(N),Y.set(it,{messageElement:N,referenceCount:0})):Y.has(it)||this._createMessageElement(N,ie),this._isElementDescribedByMessage(Z,it)||this._addMessageReference(Z,it)}removeDescription(Z,N,ie){if(!N||!this._isElementNode(Z))return;const it=fe(N,ie);if(this._isElementDescribedByMessage(Z,it)&&this._removeMessageReference(Z,it),"string"==typeof N){const _t=Y.get(it);_t&&0===_t.referenceCount&&this._deleteMessageElement(it)}se&&0===se.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const Z=this._document.querySelectorAll(`[${de}]`);for(let N=0;N<Z.length;N++)this._removeCdkDescribedByReferenceIds(Z[N]),Z[N].removeAttribute(de);se&&this._deleteMessagesContainer(),Y.clear()}_createMessageElement(Z,N){const ie=this._document.createElement("div");Be(ie),ie.textContent=Z,N&&ie.setAttribute("role",N),this._createMessagesContainer(),se.appendChild(ie),Y.set(fe(Z,N),{messageElement:ie,referenceCount:0})}_deleteMessageElement(Z){const N=Y.get(Z),ie=N&&N.messageElement;se&&ie&&se.removeChild(ie),Y.delete(Z)}_createMessagesContainer(){if(!se){const Z=this._document.getElementById(Oe);Z&&Z.parentNode&&Z.parentNode.removeChild(Z),se=this._document.createElement("div"),se.id=Oe,se.style.visibility="hidden",se.classList.add("cdk-visually-hidden"),this._document.body.appendChild(se)}}_deleteMessagesContainer(){se&&se.parentNode&&(se.parentNode.removeChild(se),se=null)}_removeCdkDescribedByReferenceIds(Z){const N=Me(Z,"aria-describedby").filter(ie=>0!=ie.indexOf(Pe));Z.setAttribute("aria-describedby",N.join(" "))}_addMessageReference(Z,N){const ie=Y.get(N);(function(Ee,Q,Z){const N=Me(Ee,Q);N.some(ie=>ie.trim()==Z.trim())||(N.push(Z.trim()),Ee.setAttribute(Q,N.join(" ")))})(Z,"aria-describedby",ie.messageElement.id),Z.setAttribute(de,""),ie.referenceCount++}_removeMessageReference(Z,N){const ie=Y.get(N);ie.referenceCount--,function(Ee,Q,Z){const ie=Me(Ee,Q).filter(it=>it!=Z.trim());ie.length?Ee.setAttribute(Q,ie.join(" ")):Ee.removeAttribute(Q)}(Z,"aria-describedby",ie.messageElement.id),Z.removeAttribute(de)}_isElementDescribedByMessage(Z,N){const ie=Me(Z,"aria-describedby"),it=Y.get(N),_t=it&&it.messageElement.id;return!!_t&&-1!=ie.indexOf(_t)}_canBeDescribed(Z,N){if(!this._isElementNode(Z))return!1;if(N&&"object"==typeof N)return!0;const ie=null==N?"":`${N}`.trim(),it=Z.getAttribute("aria-label");return!(!ie||it&&it.trim()===ie)}_isElementNode(Z){return Z.nodeType===this._document.ELEMENT_NODE}}return Ee.\u0275fac=function(Z){return new(Z||Ee)(l.\u0275\u0275inject(o.DOCUMENT))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(o.DOCUMENT))},token:Ee,providedIn:"root"}),Ee})();function fe(Ee,Q){return"string"==typeof Ee?`${Q||""}/${Ee}`:Ee}function Be(Ee){Ee.id||(Ee.id=`${Pe}-${qe++}`)}class ct extends class{constructor(Q){this._items=Q,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new f.xQ,this._typeaheadSubscription=_.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=Z=>Z.disabled,this._pressedLetters=[],this.tabOut=new f.xQ,this.change=new f.xQ,Q instanceof l.QueryList&&Q.changes.subscribe(Z=>{if(this._activeItem){const ie=Z.toArray().indexOf(this._activeItem);ie>-1&&ie!==this._activeItemIndex&&(this._activeItemIndex=ie)}})}skipPredicate(Q){return this._skipPredicateFn=Q,this}withWrap(Q=!0){return this._wrap=Q,this}withVerticalOrientation(Q=!0){return this._vertical=Q,this}withHorizontalOrientation(Q){return this._horizontal=Q,this}withAllowedModifierKeys(Q){return this._allowedModifierKeys=Q,this}withTypeAhead(Q=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)(Z=>this._pressedLetters.push(Z)),(0,g.b)(Q),(0,E.h)(()=>this._pressedLetters.length>0),(0,M.U)(()=>this._pressedLetters.join(""))).subscribe(Z=>{const N=this._getItemsArray();for(let ie=1;ie<N.length+1;ie++){const it=(this._activeItemIndex+ie)%N.length,_t=N[it];if(!this._skipPredicateFn(_t)&&0===_t.getLabel().toUpperCase().trim().indexOf(Z)){this.setActiveItem(it);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Q=!0){return this._homeAndEnd=Q,this}setActiveItem(Q){const Z=this._activeItem;this.updateActiveItem(Q),this._activeItem!==Z&&this.change.next(this._activeItemIndex)}onKeydown(Q){const Z=Q.keyCode,ie=["altKey","ctrlKey","metaKey","shiftKey"].every(it=>!Q[it]||this._allowedModifierKeys.indexOf(it)>-1);switch(Z){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&ie){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&ie){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&ie){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&ie){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&ie){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&ie){this.setLastItemActive();break}return;default:return void((ie||(0,w.Vb)(Q,"shiftKey"))&&(Q.key&&1===Q.key.length?this._letterKeyStream.next(Q.key.toLocaleUpperCase()):(Z>=w.A&&Z<=w.Z||Z>=w.xE&&Z<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(Z))))}this._pressedLetters=[],Q.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(Q){const Z=this._getItemsArray(),N="number"==typeof Q?Q:Z.indexOf(Q),ie=Z[N];this._activeItem=null==ie?null:ie,this._activeItemIndex=N}_setActiveItemByDelta(Q){this._wrap?this._setActiveInWrapMode(Q):this._setActiveInDefaultMode(Q)}_setActiveInWrapMode(Q){const Z=this._getItemsArray();for(let N=1;N<=Z.length;N++){const ie=(this._activeItemIndex+Q*N+Z.length)%Z.length;if(!this._skipPredicateFn(Z[ie]))return void this.setActiveItem(ie)}}_setActiveInDefaultMode(Q){this._setActiveItemByIndex(this._activeItemIndex+Q,Q)}_setActiveItemByIndex(Q,Z){const N=this._getItemsArray();if(N[Q]){for(;this._skipPredicateFn(N[Q]);)if(!N[Q+=Z])return;this.setActiveItem(Q)}}_getItemsArray(){return this._items instanceof l.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Q){return this._origin=Q,this}setActiveItem(Q){super.setActiveItem(Q),this.activeItem&&this.activeItem.focus(this._origin)}}let je=(()=>{class Ee{constructor(Z){this._platform=Z}isDisabled(Z){return Z.hasAttribute("disabled")}isVisible(Z){return function(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(Z)&&"visible"===getComputedStyle(Z).visibility}isTabbable(Z){if(!this._platform.isBrowser)return!1;const N=function(Ee){try{return Ee.frameElement}catch(Q){return null}}(function(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(Z));if(N&&(-1===ce(N)||!this.isVisible(N)))return!1;let ie=Z.nodeName.toLowerCase(),it=ce(Z);return Z.hasAttribute("contenteditable")?-1!==it:!("iframe"===ie||"object"===ie||this._platform.WEBKIT&&this._platform.IOS&&!function(Ee){let Q=Ee.nodeName.toLowerCase(),Z="input"===Q&&Ee.type;return"text"===Z||"password"===Z||"select"===Q||"textarea"===Q}(Z))&&("audio"===ie?!!Z.hasAttribute("controls")&&-1!==it:"video"===ie?-1!==it&&(null!==it||this._platform.FIREFOX||Z.hasAttribute("controls")):Z.tabIndex>=0)}isFocusable(Z,N){return function(Ee){return!function(Ee){return function(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function(Ee){let Q=Ee.nodeName.toLowerCase();return"input"===Q||"select"===Q||"button"===Q||"textarea"===Q}(Ee)||function(Ee){return function(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||L(Ee))}(Z)&&!this.isDisabled(Z)&&((null==N?void 0:N.ignoreVisibility)||this.isVisible(Z))}}return Ee.\u0275fac=function(Z){return new(Z||Ee)(l.\u0275\u0275inject(le.t4))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(le.t4))},token:Ee,providedIn:"root"}),Ee})();function L(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Q=Ee.getAttribute("tabindex");return"-32768"!=Q&&!(!Q||isNaN(parseInt(Q,10)))}function ce(Ee){if(!L(Ee))return null;const Q=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Q)?-1:Q}class ot{constructor(Q,Z,N,ie,it=!1){this._element=Q,this._checker=Z,this._ngZone=N,this._document=ie,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,it||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Q){this._enabled=Q,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Q,this._startAnchor),this._toggleAnchorTabIndex(Q,this._endAnchor))}destroy(){const Q=this._startAnchor,Z=this._endAnchor;Q&&(Q.removeEventListener("focus",this.startAnchorListener),Q.parentNode&&Q.parentNode.removeChild(Q)),Z&&(Z.removeEventListener("focus",this.endAnchorListener),Z.parentNode&&Z.parentNode.removeChild(Z)),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(Q){return new Promise(Z=>{this._executeOnStable(()=>Z(this.focusInitialElement(Q)))})}focusFirstTabbableElementWhenReady(Q){return new Promise(Z=>{this._executeOnStable(()=>Z(this.focusFirstTabbableElement(Q)))})}focusLastTabbableElementWhenReady(Q){return new Promise(Z=>{this._executeOnStable(()=>Z(this.focusLastTabbableElement(Q)))})}_getRegionBoundary(Q){let Z=this._element.querySelectorAll(`[cdk-focus-region-${Q}], [cdkFocusRegion${Q}], [cdk-focus-${Q}]`);for(let N=0;N<Z.length;N++)Z[N].hasAttribute(`cdk-focus-${Q}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${Q}', use 'cdkFocusRegion${Q}' instead. The deprecated attribute will be removed in 8.0.0.`,Z[N]):Z[N].hasAttribute(`cdk-focus-region-${Q}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${Q}', use 'cdkFocusRegion${Q}' instead. The deprecated attribute will be removed in 8.0.0.`,Z[N]);return"start"==Q?Z.length?Z[0]:this._getFirstTabbableElement(this._element):Z.length?Z[Z.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Q){const Z=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(Z){if(Z.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",Z),!this._checker.isFocusable(Z)){const N=this._getFirstTabbableElement(Z);return null==N||N.focus(Q),!!N}return Z.focus(Q),!0}return this.focusFirstTabbableElement(Q)}focusFirstTabbableElement(Q){const Z=this._getRegionBoundary("start");return Z&&Z.focus(Q),!!Z}focusLastTabbableElement(Q){const Z=this._getRegionBoundary("end");return Z&&Z.focus(Q),!!Z}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Q){if(this._checker.isFocusable(Q)&&this._checker.isTabbable(Q))return Q;let Z=Q.children||Q.childNodes;for(let N=0;N<Z.length;N++){let ie=Z[N].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(Z[N]):null;if(ie)return ie}return null}_getLastTabbableElement(Q){if(this._checker.isFocusable(Q)&&this._checker.isTabbable(Q))return Q;let Z=Q.children||Q.childNodes;for(let N=Z.length-1;N>=0;N--){let ie=Z[N].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(Z[N]):null;if(ie)return ie}return null}_createAnchor(){const Q=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Q),Q.classList.add("cdk-visually-hidden"),Q.classList.add("cdk-focus-trap-anchor"),Q.setAttribute("aria-hidden","true"),Q}_toggleAnchorTabIndex(Q,Z){Q?Z.setAttribute("tabindex","0"):Z.removeAttribute("tabindex")}toggleAnchors(Q){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Q,this._startAnchor),this._toggleAnchorTabIndex(Q,this._endAnchor))}_executeOnStable(Q){this._ngZone.isStable?Q():this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(Q)}}let wt=(()=>{class Ee{constructor(Z,N,ie){this._checker=Z,this._ngZone=N,this._document=ie}create(Z,N=!1){return new ot(Z,this._checker,this._ngZone,this._document,N)}}return Ee.\u0275fac=function(Z){return new(Z||Ee)(l.\u0275\u0275inject(je),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(je),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT))},token:Ee,providedIn:"root"}),Ee})();function R(Ee){return 0===Ee.offsetX&&0===Ee.offsetY}function he(Ee){const Q=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!Q||-1!==Q.identifier||null!=Q.radiusX&&1!==Q.radiusX||null!=Q.radiusY&&1!==Q.radiusY)}"undefined"!=typeof Element&&Element;const z=new l.InjectionToken("cdk-input-modality-detector-options"),ne={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},gt=(0,le.i$)({passive:!0,capture:!0});let Et=(()=>{class Ee{constructor(Z,N,ie,it){this._platform=Z,this._mostRecentTarget=null,this._modality=new a.X(null),this._lastTouchMs=0,this._onKeydown=_t=>{var Ht,dn;(null===(dn=null===(Ht=this._options)||void 0===Ht?void 0:Ht.ignoreKeys)||void 0===dn?void 0:dn.some(cn=>cn===_t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,le.sA)(_t))},this._onMousedown=_t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(R(_t)?"keyboard":"mouse"),this._mostRecentTarget=(0,le.sA)(_t))},this._onTouchstart=_t=>{he(_t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,le.sA)(_t))},this._options=Object.assign(Object.assign({},ne),it),this.modalityDetected=this._modality.pipe((0,P.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,B.x)()),Z.isBrowser&&N.runOutsideAngular(()=>{ie.addEventListener("keydown",this._onKeydown,gt),ie.addEventListener("mousedown",this._onMousedown,gt),ie.addEventListener("touchstart",this._onTouchstart,gt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,gt),document.removeEventListener("mousedown",this._onMousedown,gt),document.removeEventListener("touchstart",this._onTouchstart,gt))}}return Ee.\u0275fac=function(Z){return new(Z||Ee)(l.\u0275\u0275inject(le.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(z,8))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(le.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(z,8))},token:Ee,providedIn:"root"}),Ee})();const Lt=new l.InjectionToken("cdk-focus-monitor-default-options"),jt=(0,le.i$)({passive:!0,capture:!0});let _n=(()=>{class Ee{constructor(Z,N,ie,it,_t){this._ngZone=Z,this._platform=N,this._inputModalityDetector=ie,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=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new f.xQ,this._rootNodeFocusAndBlurListener=Ht=>{const dn=(0,le.sA)(Ht),cn="focus"===Ht.type?this._onFocus:this._onBlur;for(let an=dn;an;an=an.parentElement)cn.call(this,Ht,an)},this._document=it,this._detectionMode=(null==_t?void 0:_t.detectionMode)||0}monitor(Z,N=!1){const ie=(0,oe.fI)(Z);if(!this._platform.isBrowser||1!==ie.nodeType)return(0,C.of)(null);const it=(0,le.kV)(ie)||this._getDocument(),_t=this._elementInfo.get(ie);if(_t)return N&&(_t.checkChildren=!0),_t.subject;const Ht={checkChildren:N,subject:new f.xQ,rootNode:it};return this._elementInfo.set(ie,Ht),this._registerGlobalListeners(Ht),Ht.subject}stopMonitoring(Z){const N=(0,oe.fI)(Z),ie=this._elementInfo.get(N);ie&&(ie.subject.complete(),this._setClasses(N),this._elementInfo.delete(N),this._removeGlobalListeners(ie))}focusVia(Z,N,ie){const it=(0,oe.fI)(Z);it===this._getDocument().activeElement?this._getClosestElementsInfo(it).forEach(([Ht,dn])=>this._originChanged(Ht,N,dn)):(this._setOrigin(N),"function"==typeof it.focus&&it.focus(ie))}ngOnDestroy(){this._elementInfo.forEach((Z,N)=>this.stopMonitoring(N))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(Z,N,ie){ie?Z.classList.add(N):Z.classList.remove(N)}_getFocusOrigin(Z){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(Z)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(Z){return 1===this._detectionMode||!!(null==Z?void 0:Z.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(Z,N){this._toggleClass(Z,"cdk-focused",!!N),this._toggleClass(Z,"cdk-touch-focused","touch"===N),this._toggleClass(Z,"cdk-keyboard-focused","keyboard"===N),this._toggleClass(Z,"cdk-mouse-focused","mouse"===N),this._toggleClass(Z,"cdk-program-focused","program"===N)}_setOrigin(Z,N=!1){this._ngZone.runOutsideAngular(()=>{this._origin=Z,this._originFromTouchInteraction="touch"===Z&&N,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(Z,N){const ie=this._elementInfo.get(N),it=(0,le.sA)(Z);!ie||!ie.checkChildren&&N!==it||this._originChanged(N,this._getFocusOrigin(it),ie)}_onBlur(Z,N){const ie=this._elementInfo.get(N);!ie||ie.checkChildren&&Z.relatedTarget instanceof Node&&N.contains(Z.relatedTarget)||(this._setClasses(N),this._emitOrigin(ie.subject,null))}_emitOrigin(Z,N){this._ngZone.run(()=>Z.next(N))}_registerGlobalListeners(Z){if(!this._platform.isBrowser)return;const N=Z.rootNode,ie=this._rootNodeFocusListenerCount.get(N)||0;ie||this._ngZone.runOutsideAngular(()=>{N.addEventListener("focus",this._rootNodeFocusAndBlurListener,jt),N.addEventListener("blur",this._rootNodeFocusAndBlurListener,jt)}),this._rootNodeFocusListenerCount.set(N,ie+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,j.R)(this._stopInputModalityDetector)).subscribe(it=>{this._setOrigin(it,!0)}))}_removeGlobalListeners(Z){const N=Z.rootNode;if(this._rootNodeFocusListenerCount.has(N)){const ie=this._rootNodeFocusListenerCount.get(N);ie>1?this._rootNodeFocusListenerCount.set(N,ie-1):(N.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jt),N.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jt),this._rootNodeFocusListenerCount.delete(N))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(Z,N,ie){this._setClasses(Z,N),this._emitOrigin(ie.subject,N),this._lastFocusOrigin=N}_getClosestElementsInfo(Z){const N=[];return this._elementInfo.forEach((ie,it)=>{(it===Z||ie.checkChildren&&it.contains(Z))&&N.push([it,ie])}),N}}return Ee.\u0275fac=function(Z){return new(Z||Ee)(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(le.t4),l.\u0275\u0275inject(Et),l.\u0275\u0275inject(o.DOCUMENT,8),l.\u0275\u0275inject(Lt,8))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(le.t4),l.\u0275\u0275inject(Et),l.\u0275\u0275inject(o.DOCUMENT,8),l.\u0275\u0275inject(Lt,8))},token:Ee,providedIn:"root"}),Ee})(),Xe=(()=>{class Ee{constructor(Z,N){this._elementRef=Z,this._focusMonitor=N,this.cdkFocusChange=new l.EventEmitter}ngAfterViewInit(){const Z=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(Z,1===Z.nodeType&&Z.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(N=>this.cdkFocusChange.emit(N))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ee.\u0275fac=function(Z){return new(Z||Ee)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(_n))},Ee.\u0275dir=l.\u0275\u0275defineDirective({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ee})();const Pt="cdk-high-contrast-black-on-white",V="cdk-high-contrast-white-on-black",K="cdk-high-contrast-active";let W=(()=>{class Ee{constructor(Z,N){this._platform=Z,this._document=N}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const Z=this._document.createElement("div");Z.style.backgroundColor="rgb(1,2,3)",Z.style.position="absolute",this._document.body.appendChild(Z);const N=this._document.defaultView||window,ie=N&&N.getComputedStyle?N.getComputedStyle(Z):null,it=(ie&&ie.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(Z),it){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 Z=this._document.body.classList;Z.remove(K),Z.remove(Pt),Z.remove(V),this._hasCheckedHighContrastMode=!0;const N=this.getHighContrastMode();1===N?(Z.add(K),Z.add(Pt)):2===N&&(Z.add(K),Z.add(V))}}}return Ee.\u0275fac=function(Z){return new(Z||Ee)(l.\u0275\u0275inject(le.t4),l.\u0275\u0275inject(o.DOCUMENT))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(le.t4),l.\u0275\u0275inject(o.DOCUMENT))},token:Ee,providedIn:"root"}),Ee})(),De=(()=>{class Ee{constructor(Z){Z._applyBodyHighContrastModeCssClasses()}}return Ee.\u0275fac=function(Z){return new(Z||Ee)(l.\u0275\u0275inject(W))},Ee.\u0275mod=l.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=l.\u0275\u0275defineInjector({imports:[[le.ud,Ce.Q8]]}),Ee})()},946:(Ne,T,d)=>{"use strict";d.d(T,{vT:()=>w,Is:()=>a});var o=d(7716),l=d(8583);const f=new o.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,o.inject)(l.DOCUMENT)}});let a=(()=>{class D{constructor(E){if(this.value="ltr",this.change=new o.EventEmitter,E){const S=E.documentElement?E.documentElement.dir:null,P=(E.body?E.body.dir:null)||S;this.value="ltr"===P||"rtl"===P?P:"ltr"}}ngOnDestroy(){this.change.complete()}}return D.\u0275fac=function(E){return new(E||D)(o.\u0275\u0275inject(f,8))},D.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new D(o.\u0275\u0275inject(f,8))},token:D,providedIn:"root"}),D})(),w=(()=>{class D{}return D.\u0275fac=function(E){return new(E||D)},D.\u0275mod=o.\u0275\u0275defineNgModule({type:D}),D.\u0275inj=o.\u0275\u0275defineInjector({}),D})()},8345:(Ne,T,d)=>{"use strict";d.d(T,{P3:()=>w,o2:()=>a,Ov:()=>E,yy:()=>D,eX:()=>g,k:()=>P,Z9:()=>C});var o=d(5639),l=d(5917),f=d(9765),_=d(7716);class a{}function C(B){return B&&"function"==typeof B.connect}class w extends a{constructor(j){super(),this._data=j}connect(){return(0,o.b)(this._data)?this._data:(0,l.of)(this._data)}disconnect(){}}class D{applyChanges(j,oe,le,Ce,$e){j.forEachOperation((lt,Ye,Me)=>{let Oe,Pe;if(null==lt.previousIndex){const de=le(lt,Ye,Me);Oe=oe.createEmbeddedView(de.templateRef,de.context,de.index),Pe=1}else null==Me?(oe.remove(Ye),Pe=3):(Oe=oe.get(Ye),oe.move(Oe,Me),Pe=2);$e&&$e({context:null==Oe?void 0:Oe.context,operation:Pe,record:lt})})}detach(){}}class g{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(j,oe,le,Ce,$e){j.forEachOperation((lt,Ye,Me)=>{let Oe,Pe;null==lt.previousIndex?(Oe=this._insertView(()=>le(lt,Ye,Me),Me,oe,Ce(lt)),Pe=Oe?1:0):null==Me?(this._detachAndCacheView(Ye,oe),Pe=3):(Oe=this._moveView(Ye,Me,oe,Ce(lt)),Pe=2),$e&&$e({context:null==Oe?void 0:Oe.context,operation:Pe,record:lt})})}detach(){for(const j of this._viewCache)j.destroy();this._viewCache=[]}_insertView(j,oe,le,Ce){const $e=this._insertViewFromCache(oe,le);if($e)return void($e.context.$implicit=Ce);const lt=j();return le.createEmbeddedView(lt.templateRef,lt.context,lt.index)}_detachAndCacheView(j,oe){const le=oe.detach(j);this._maybeCacheView(le,oe)}_moveView(j,oe,le,Ce){const $e=le.get(j);return le.move($e,oe),$e.context.$implicit=Ce,$e}_maybeCacheView(j,oe){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(j);else{const le=oe.indexOf(j);-1===le?j.destroy():oe.remove(le)}}_insertViewFromCache(j,oe){const le=this._viewCache.pop();return le&&oe.insert(le,j),le||null}}class E{constructor(j=!1,oe,le=!0){this._multiple=j,this._emitChanges=le,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new f.xQ,oe&&oe.length&&(j?oe.forEach(Ce=>this._markSelected(Ce)):this._markSelected(oe[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...j){this._verifyValueAssignment(j),j.forEach(oe=>this._markSelected(oe)),this._emitChangeEvent()}deselect(...j){this._verifyValueAssignment(j),j.forEach(oe=>this._unmarkSelected(oe)),this._emitChangeEvent()}toggle(j){this.isSelected(j)?this.deselect(j):this.select(j)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(j){return this._selection.has(j)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(j){this._multiple&&this.selected&&this._selected.sort(j)}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(j){this.isSelected(j)||(this._multiple||this._unmarkAll(),this._selection.add(j),this._emitChanges&&this._selectedToEmit.push(j))}_unmarkSelected(j){this.isSelected(j)&&(this._selection.delete(j),this._emitChanges&&this._deselectedToEmit.push(j))}_unmarkAll(){this.isEmpty()||this._selection.forEach(j=>this._unmarkSelected(j))}_verifyValueAssignment(j){}}const P=new _.InjectionToken("_ViewRepeater")},6461:(Ne,T,d)=>{"use strict";d.d(T,{A:()=>It,zL:()=>D,ZH:()=>l,jx:()=>w,yY:()=>Pe,JH:()=>lt,uR:()=>j,K5:()=>a,hY:()=>M,Sd:()=>oe,oh:()=>le,b2:()=>gi,MW:()=>Le,aO:()=>ct,SV:()=>$e,JU:()=>C,L_:()=>S,Mf:()=>f,LH:()=>Ce,Z:()=>ne,xE:()=>de,Vb:()=>bi});const l=8,f=9,a=13,C=16,w=17,D=18,M=27,S=32,j=35,oe=36,le=37,Ce=38,$e=39,lt=40,Pe=46,de=48,ct=57,It=65,ne=90,Le=91,gi=224;function bi(li,...qn){return qn.length?qn.some(_i=>li[_i]):li.altKey||li.shiftKey||li.ctrlKey||li.metaKey}},5072:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{BreakpointObserver:()=>lt,Breakpoints:()=>Me,LayoutModule:()=>B,MediaMatcher:()=>le});var o=d(7716),l=d(9490),f=d(9765),_=d(9112),a=d(8071),C=d(9897),w=d(5257),D=d(3653),g=d(4395),E=d(8002),M=d(9761),S=d(6782),P=d(521);let B=(()=>{class Oe{}return Oe.\u0275fac=function(de){return new(de||Oe)},Oe.\u0275mod=o.\u0275\u0275defineNgModule({type:Oe}),Oe.\u0275inj=o.\u0275\u0275defineInjector({}),Oe})();const j=new Set;let oe,le=(()=>{class Oe{constructor(de){this._platform=de,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$e}matchMedia(de){return(this._platform.WEBKIT||this._platform.BLINK)&&function(Oe){if(!j.has(Oe))try{oe||(oe=document.createElement("style"),oe.setAttribute("type","text/css"),document.head.appendChild(oe)),oe.sheet&&(oe.sheet.insertRule(`@media ${Oe} {body{ }}`,0),j.add(Oe))}catch(Pe){console.error(Pe)}}(de),this._matchMedia(de)}}return Oe.\u0275fac=function(de){return new(de||Oe)(o.\u0275\u0275inject(P.t4))},Oe.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Oe(o.\u0275\u0275inject(P.t4))},token:Oe,providedIn:"root"}),Oe})();function $e(Oe){return{matches:"all"===Oe||""===Oe,media:Oe,addListener:()=>{},removeListener:()=>{}}}let lt=(()=>{class Oe{constructor(de,qe){this._mediaMatcher=de,this._zone=qe,this._queries=new Map,this._destroySubject=new f.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(de){return Ye((0,l.Eq)(de)).some(Y=>this._registerQuery(Y).mql.matches)}observe(de){const Y=Ye((0,l.Eq)(de)).map(_e=>this._registerQuery(_e).observable);let se=(0,_.aj)(Y);return se=(0,a.z)(se.pipe((0,w.q)(1)),se.pipe((0,D.T)(1),(0,g.b)(0))),se.pipe((0,E.U)(_e=>{const fe={matches:!1,breakpoints:{}};return _e.forEach(({matches:Be,query:Fe})=>{fe.matches=fe.matches||Be,fe.breakpoints[Fe]=Be}),fe}))}_registerQuery(de){if(this._queries.has(de))return this._queries.get(de);const qe=this._mediaMatcher.matchMedia(de),se={observable:new C.y(_e=>{const fe=Be=>this._zone.run(()=>_e.next(Be));return qe.addListener(fe),()=>{qe.removeListener(fe)}}).pipe((0,M.O)(qe),(0,E.U)(({matches:_e})=>({query:de,matches:_e})),(0,S.R)(this._destroySubject)),mql:qe};return this._queries.set(de,se),se}}return Oe.\u0275fac=function(de){return new(de||Oe)(o.\u0275\u0275inject(le),o.\u0275\u0275inject(o.NgZone))},Oe.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Oe(o.\u0275\u0275inject(le),o.\u0275\u0275inject(o.NgZone))},token:Oe,providedIn:"root"}),Oe})();function Ye(Oe){return Oe.map(Pe=>Pe.split(",")).reduce((Pe,de)=>Pe.concat(de)).map(Pe=>Pe.trim())}const Me={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)"}},8553:(Ne,T,d)=>{"use strict";d.d(T,{wD:()=>D,yq:()=>w,Q8:()=>g});var o=d(9490),l=d(7716),f=d(9897),_=d(9765),a=d(4395);let C=(()=>{class E{create(S){return"undefined"==typeof MutationObserver?null:new MutationObserver(S)}}return E.\u0275fac=function(S){return new(S||E)},E.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new E},token:E,providedIn:"root"}),E})(),w=(()=>{class E{constructor(S){this._mutationObserverFactory=S,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((S,P)=>this._cleanupObserver(P))}observe(S){const P=(0,o.fI)(S);return new f.y(B=>{const oe=this._observeElement(P).subscribe(B);return()=>{oe.unsubscribe(),this._unobserveElement(P)}})}_observeElement(S){if(this._observedElements.has(S))this._observedElements.get(S).count++;else{const P=new _.xQ,B=this._mutationObserverFactory.create(j=>P.next(j));B&&B.observe(S,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(S,{observer:B,stream:P,count:1})}return this._observedElements.get(S).stream}_unobserveElement(S){this._observedElements.has(S)&&(this._observedElements.get(S).count--,this._observedElements.get(S).count||this._cleanupObserver(S))}_cleanupObserver(S){if(this._observedElements.has(S)){const{observer:P,stream:B}=this._observedElements.get(S);P&&P.disconnect(),B.complete(),this._observedElements.delete(S)}}}return E.\u0275fac=function(S){return new(S||E)(l.\u0275\u0275inject(C))},E.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new E(l.\u0275\u0275inject(C))},token:E,providedIn:"root"}),E})(),D=(()=>{class E{constructor(S,P,B){this._contentObserver=S,this._elementRef=P,this._ngZone=B,this.event=new l.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(S){this._disabled=(0,o.Ig)(S),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(S){this._debounce=(0,o.su)(S),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const S=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?S.pipe((0,a.b)(this.debounce)):S).subscribe(this.event)})}_unsubscribe(){var S;null===(S=this._currentSubscription)||void 0===S||S.unsubscribe()}}return E.\u0275fac=function(S){return new(S||E)(l.\u0275\u0275directiveInject(w),l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.NgZone))},E.\u0275dir=l.\u0275\u0275defineDirective({type:E,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),E})(),g=(()=>{class E{}return E.\u0275fac=function(S){return new(S||E)},E.\u0275mod=l.\u0275\u0275defineNgModule({type:E}),E.\u0275inj=l.\u0275\u0275defineInjector({providers:[C]}),E})()},625:(Ne,T,d)=>{"use strict";d.d(T,{aV:()=>ot,X_:()=>Y,Xj:()=>je,U8:()=>pt});var o=d(5197),l=d(7716),f=d(521),_=d(946),a=d(8583),C=d(9490),w=d(7636),D=d(9765),g=d(826),E=d(6682);d(7393);var j=d(5257),oe=d(6782);d(6461);const Ce=(0,f.Mq)();class $e{constructor(x,F){this._viewportRuler=x,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=F}attach(){}enable(){if(this._canBeEnabled()){const x=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=x.style.left||"",this._previousHTMLStyles.top=x.style.top||"",x.style.left=(0,C.HM)(-this._previousScrollPosition.left),x.style.top=(0,C.HM)(-this._previousScrollPosition.top),x.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const x=this._document.documentElement,R=x.style,he=this._document.body.style,z=R.scrollBehavior||"",ne=he.scrollBehavior||"";this._isEnabled=!1,R.left=this._previousHTMLStyles.left,R.top=this._previousHTMLStyles.top,x.classList.remove("cdk-global-scrollblock"),Ce&&(R.scrollBehavior=he.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Ce&&(R.scrollBehavior=z,he.scrollBehavior=ne)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const F=this._document.body,R=this._viewportRuler.getViewportSize();return F.scrollHeight>R.height||F.scrollWidth>R.width}}class Ye{constructor(x,F,R,he){this._scrollDispatcher=x,this._ngZone=F,this._viewportRuler=R,this._config=he,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(x){this._overlayRef=x}enable(){if(this._scrollSubscription)return;const x=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=x.subscribe(()=>{const F=this._viewportRuler.getViewportScrollPosition().top;Math.abs(F-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=x.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Me{enable(){}disable(){}attach(){}}function Oe(Qe,x){return x.some(F=>Qe.bottom<F.top||Qe.top>F.bottom||Qe.right<F.left||Qe.left>F.right)}function Pe(Qe,x){return x.some(F=>Qe.top<F.top||Qe.bottom>F.bottom||Qe.left<F.left||Qe.right>F.right)}class de{constructor(x,F,R,he){this._scrollDispatcher=x,this._viewportRuler=F,this._ngZone=R,this._config=he,this._scrollSubscription=null}attach(x){this._overlayRef=x}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 F=this._overlayRef.overlayElement.getBoundingClientRect(),{width:R,height:he}=this._viewportRuler.getViewportSize();Oe(F,[{width:R,height:he,bottom:he,right:R,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 qe=(()=>{class Qe{constructor(F,R,he,z){this._scrollDispatcher=F,this._viewportRuler=R,this._ngZone=he,this.noop=()=>new Me,this.close=ne=>new Ye(this._scrollDispatcher,this._ngZone,this._viewportRuler,ne),this.block=()=>new $e(this._viewportRuler,this._document),this.reposition=ne=>new de(this._scrollDispatcher,this._viewportRuler,this._ngZone,ne),this._document=z}}return Qe.\u0275fac=function(F){return new(F||Qe)(l.\u0275\u0275inject(o.mF),l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(a.DOCUMENT))},Qe.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Qe(l.\u0275\u0275inject(o.mF),l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(a.DOCUMENT))},token:Qe,providedIn:"root"}),Qe})();class Y{constructor(x){if(this.scrollStrategy=new Me,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,x){const F=Object.keys(x);for(const R of F)void 0!==x[R]&&(this[R]=x[R])}}}class se{constructor(x,F,R,he,z){this.offsetX=R,this.offsetY=he,this.panelClass=z,this.originX=x.originX,this.originY=x.originY,this.overlayX=F.overlayX,this.overlayY=F.overlayY}}class fe{constructor(x,F){this.connectionPair=x,this.scrollableViewProperties=F}}let st=(()=>{class Qe{constructor(F){this._attachedOverlays=[],this._document=F}ngOnDestroy(){this.detach()}add(F){this.remove(F),this._attachedOverlays.push(F)}remove(F){const R=this._attachedOverlays.indexOf(F);R>-1&&this._attachedOverlays.splice(R,1),0===this._attachedOverlays.length&&this.detach()}}return Qe.\u0275fac=function(F){return new(F||Qe)(l.\u0275\u0275inject(a.DOCUMENT))},Qe.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Qe(l.\u0275\u0275inject(a.DOCUMENT))},token:Qe,providedIn:"root"}),Qe})(),ct=(()=>{class Qe extends st{constructor(F){super(F),this._keydownListener=R=>{const he=this._attachedOverlays;for(let z=he.length-1;z>-1;z--)if(he[z]._keydownEvents.observers.length>0){he[z]._keydownEvents.next(R);break}}}add(F){super.add(F),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Qe.\u0275fac=function(F){return new(F||Qe)(l.\u0275\u0275inject(a.DOCUMENT))},Qe.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Qe(l.\u0275\u0275inject(a.DOCUMENT))},token:Qe,providedIn:"root"}),Qe})(),Ct=(()=>{class Qe extends st{constructor(F,R){super(F),this._platform=R,this._cursorStyleIsSet=!1,this._pointerDownListener=he=>{this._pointerDownEventTarget=(0,f.sA)(he)},this._clickListener=he=>{const z=(0,f.sA)(he),ne="click"===he.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:z;this._pointerDownEventTarget=null;const Le=this._attachedOverlays.slice();for(let gt=Le.length-1;gt>-1;gt--){const Et=Le[gt];if(!(Et._outsidePointerEvents.observers.length<1)&&Et.hasAttached()){if(Et.overlayElement.contains(z)||Et.overlayElement.contains(ne))break;Et._outsidePointerEvents.next(he)}}}}add(F){if(super.add(F),!this._isAttached){const R=this._document.body;R.addEventListener("pointerdown",this._pointerDownListener,!0),R.addEventListener("click",this._clickListener,!0),R.addEventListener("auxclick",this._clickListener,!0),R.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=R.style.cursor,R.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const F=this._document.body;F.removeEventListener("pointerdown",this._pointerDownListener,!0),F.removeEventListener("click",this._clickListener,!0),F.removeEventListener("auxclick",this._clickListener,!0),F.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(F.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Qe.\u0275fac=function(F){return new(F||Qe)(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4))},Qe.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Qe(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4))},token:Qe,providedIn:"root"}),Qe})(),je=(()=>{class Qe{constructor(F,R){this._platform=R,this._document=F}ngOnDestroy(){const F=this._containerElement;F&&F.parentNode&&F.parentNode.removeChild(F)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const F="cdk-overlay-container";if(this._platform.isBrowser||(0,f.Oy)()){const he=this._document.querySelectorAll(`.${F}[platform="server"], .${F}[platform="test"]`);for(let z=0;z<he.length;z++)he[z].parentNode.removeChild(he[z])}const R=this._document.createElement("div");R.classList.add(F),(0,f.Oy)()?R.setAttribute("platform","test"):this._platform.isBrowser||R.setAttribute("platform","server"),this._document.body.appendChild(R),this._containerElement=R}}return Qe.\u0275fac=function(F){return new(F||Qe)(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4))},Qe.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Qe(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4))},token:Qe,providedIn:"root"}),Qe})();class rt{constructor(x,F,R,he,z,ne,Le,gt,Et){this._portalOutlet=x,this._host=F,this._pane=R,this._config=he,this._ngZone=z,this._keyboardDispatcher=ne,this._document=Le,this._location=gt,this._outsideClickDispatcher=Et,this._backdropElement=null,this._backdropClick=new D.xQ,this._attachments=new D.xQ,this._detachments=new D.xQ,this._locationChanges=g.w.EMPTY,this._backdropClickHandler=xt=>this._backdropClick.next(xt),this._keydownEvents=new D.xQ,this._outsidePointerEvents=new D.xQ,he.scrollStrategy&&(this._scrollStrategy=he.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=he.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(x){let F=this._portalOutlet.attach(x);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,j.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),F}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const x=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),x}dispose(){const x=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),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,x&&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(x){x!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=x,this.hasAttached()&&(x.attach(this),this.updatePosition()))}updateSize(x){this._config=Object.assign(Object.assign({},this._config),x),this._updateElementSize()}setDirection(x){this._config=Object.assign(Object.assign({},this._config),{direction:x}),this._updateElementDirection()}addPanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!0)}removePanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!1)}getDirection(){const x=this._config.direction;return x?"string"==typeof x?x:x.value:"ltr"}updateScrollStrategy(x){x!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=x,this.hasAttached()&&(x.attach(this),x.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const x=this._pane.style;x.width=(0,C.HM)(this._config.width),x.height=(0,C.HM)(this._config.height),x.minWidth=(0,C.HM)(this._config.minWidth),x.minHeight=(0,C.HM)(this._config.minHeight),x.maxWidth=(0,C.HM)(this._config.maxWidth),x.maxHeight=(0,C.HM)(this._config.maxHeight)}_togglePointerEvents(x){this._pane.style.pointerEvents=x?"":"none"}_attachBackdrop(){const x="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(x)})}):this._backdropElement.classList.add(x)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const x=this._backdropElement;if(!x)return;let F;const R=()=>{x&&(x.removeEventListener("click",this._backdropClickHandler),x.removeEventListener("transitionend",R),this._disposeBackdrop(x)),this._config.backdropClass&&this._toggleClasses(x,this._config.backdropClass,!1),clearTimeout(F)};x.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{x.addEventListener("transitionend",R)}),x.style.pointerEvents="none",F=this._ngZone.runOutsideAngular(()=>setTimeout(R,500))}_toggleClasses(x,F,R){const he=x.classList;(0,C.Eq)(F).forEach(z=>{z&&(R?he.add(z):he.remove(z))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const x=this._ngZone.onStable.pipe((0,oe.R)((0,E.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._previousHostParent.removeChild(this._host)),x.unsubscribe())})})}_disposeScrollStrategy(){const x=this._scrollStrategy;x&&(x.disable(),x.detach&&x.detach())}_disposeBackdrop(x){x&&(x.parentNode&&x.parentNode.removeChild(x),this._backdropElement===x&&(this._backdropElement=null))}}const ht="cdk-overlay-connected-position-bounding-box",It=/([A-Za-z%]+)$/;class Ze{constructor(x,F,R,he,z){this._viewportRuler=F,this._document=R,this._platform=he,this._overlayContainer=z,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.xQ,this._resizeSubscription=g.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(x)}get positions(){return this._preferredPositions}attach(x){this._validatePositions(),x.hostElement.classList.add(ht),this._overlayRef=x,this._boundingBox=x.hostElement,this._pane=x.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();const x=this._originRect,F=this._overlayRect,R=this._viewportRect,he=[];let z;for(let ne of this._preferredPositions){let Le=this._getOriginPoint(x,ne),gt=this._getOverlayPoint(Le,F,ne),Et=this._getOverlayFit(gt,F,R,ne);if(Et.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(ne,Le);this._canFitWithFlexibleDimensions(Et,gt,R)?he.push({position:ne,origin:Le,overlayRect:F,boundingBoxRect:this._calculateBoundingBoxRect(Le,ne)}):(!z||z.overlayFit.visibleArea<Et.visibleArea)&&(z={overlayFit:Et,overlayPoint:gt,originPoint:Le,position:ne,overlayRect:F})}if(he.length){let ne=null,Le=-1;for(const gt of he){const Et=gt.boundingBoxRect.width*gt.boundingBoxRect.height*(gt.position.weight||1);Et>Le&&(Le=Et,ne=gt)}return this._isPushed=!1,void this._applyPosition(ne.position,ne.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(z.position,z.originPoint);this._applyPosition(z.position,z.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&dt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ht),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();const x=this._lastPosition||this._preferredPositions[0],F=this._getOriginPoint(this._originRect,x);this._applyPosition(x,F)}}withScrollableContainers(x){return this._scrollables=x,this}withPositions(x){return this._preferredPositions=x,-1===x.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(x){return this._viewportMargin=x,this}withFlexibleDimensions(x=!0){return this._hasFlexibleDimensions=x,this}withGrowAfterOpen(x=!0){return this._growAfterOpen=x,this}withPush(x=!0){return this._canPush=x,this}withLockedPosition(x=!0){return this._positionLocked=x,this}setOrigin(x){return this._origin=x,this}withDefaultOffsetX(x){return this._offsetX=x,this}withDefaultOffsetY(x){return this._offsetY=x,this}withTransformOriginOn(x){return this._transformOriginSelector=x,this}_getOriginPoint(x,F){let R,he;if("center"==F.originX)R=x.left+x.width/2;else{const z=this._isRtl()?x.right:x.left,ne=this._isRtl()?x.left:x.right;R="start"==F.originX?z:ne}return he="center"==F.originY?x.top+x.height/2:"top"==F.originY?x.top:x.bottom,{x:R,y:he}}_getOverlayPoint(x,F,R){let he,z;return he="center"==R.overlayX?-F.width/2:"start"===R.overlayX?this._isRtl()?-F.width:0:this._isRtl()?0:-F.width,z="center"==R.overlayY?-F.height/2:"top"==R.overlayY?0:-F.height,{x:x.x+he,y:x.y+z}}_getOverlayFit(x,F,R,he){const z=re(F);let{x:ne,y:Le}=x,gt=this._getOffset(he,"x"),Et=this._getOffset(he,"y");gt&&(ne+=gt),Et&&(Le+=Et);let Ut=0-Le,Qt=Le+z.height-R.height,At=this._subtractOverflows(z.width,0-ne,ne+z.width-R.width),Lt=this._subtractOverflows(z.height,Ut,Qt),jt=At*Lt;return{visibleArea:jt,isCompletelyWithinViewport:z.width*z.height===jt,fitsInViewportVertically:Lt===z.height,fitsInViewportHorizontally:At==z.width}}_canFitWithFlexibleDimensions(x,F,R){if(this._hasFlexibleDimensions){const he=R.bottom-F.y,z=R.right-F.x,ne=$(this._overlayRef.getConfig().minHeight),Le=$(this._overlayRef.getConfig().minWidth),Et=x.fitsInViewportHorizontally||null!=Le&&Le<=z;return(x.fitsInViewportVertically||null!=ne&&ne<=he)&&Et}return!1}_pushOverlayOnScreen(x,F,R){if(this._previousPushAmount&&this._positionLocked)return{x:x.x+this._previousPushAmount.x,y:x.y+this._previousPushAmount.y};const he=re(F),z=this._viewportRect,ne=Math.max(x.x+he.width-z.width,0),Le=Math.max(x.y+he.height-z.height,0),gt=Math.max(z.top-R.top-x.y,0),Et=Math.max(z.left-R.left-x.x,0);let xt=0,Nt=0;return xt=he.width<=z.width?Et||-ne:x.x<this._viewportMargin?z.left-R.left-x.x:0,Nt=he.height<=z.height?gt||-Le:x.y<this._viewportMargin?z.top-R.top-x.y:0,this._previousPushAmount={x:xt,y:Nt},{x:x.x+xt,y:x.y+Nt}}_applyPosition(x,F){if(this._setTransformOrigin(x),this._setOverlayElementStyles(F,x),this._setBoundingBoxStyles(F,x),x.panelClass&&this._addPanelClasses(x.panelClass),this._lastPosition=x,this._positionChanges.observers.length){const R=this._getScrollVisibility(),he=new fe(x,R);this._positionChanges.next(he)}this._isInitialRender=!1}_setTransformOrigin(x){if(!this._transformOriginSelector)return;const F=this._boundingBox.querySelectorAll(this._transformOriginSelector);let R,he=x.overlayY;R="center"===x.overlayX?"center":this._isRtl()?"start"===x.overlayX?"right":"left":"start"===x.overlayX?"left":"right";for(let z=0;z<F.length;z++)F[z].style.transformOrigin=`${R} ${he}`}_calculateBoundingBoxRect(x,F){const R=this._viewportRect,he=this._isRtl();let z,ne,Le,xt,Nt,Ut;if("top"===F.overlayY)ne=x.y,z=R.height-ne+this._viewportMargin;else if("bottom"===F.overlayY)Le=R.height-x.y+2*this._viewportMargin,z=R.height-Le+this._viewportMargin;else{const Qt=Math.min(R.bottom-x.y+R.top,x.y),At=this._lastBoundingBoxSize.height;z=2*Qt,ne=x.y-Qt,z>At&&!this._isInitialRender&&!this._growAfterOpen&&(ne=x.y-At/2)}if("end"===F.overlayX&&!he||"start"===F.overlayX&&he)Ut=R.width-x.x+this._viewportMargin,xt=x.x-this._viewportMargin;else if("start"===F.overlayX&&!he||"end"===F.overlayX&&he)Nt=x.x,xt=R.right-x.x;else{const Qt=Math.min(R.right-x.x+R.left,x.x),At=this._lastBoundingBoxSize.width;xt=2*Qt,Nt=x.x-Qt,xt>At&&!this._isInitialRender&&!this._growAfterOpen&&(Nt=x.x-At/2)}return{top:ne,left:Nt,bottom:Le,right:Ut,width:xt,height:z}}_setBoundingBoxStyles(x,F){const R=this._calculateBoundingBoxRect(x,F);!this._isInitialRender&&!this._growAfterOpen&&(R.height=Math.min(R.height,this._lastBoundingBoxSize.height),R.width=Math.min(R.width,this._lastBoundingBoxSize.width));const he={};if(this._hasExactPosition())he.top=he.left="0",he.bottom=he.right=he.maxHeight=he.maxWidth="",he.width=he.height="100%";else{const z=this._overlayRef.getConfig().maxHeight,ne=this._overlayRef.getConfig().maxWidth;he.height=(0,C.HM)(R.height),he.top=(0,C.HM)(R.top),he.bottom=(0,C.HM)(R.bottom),he.width=(0,C.HM)(R.width),he.left=(0,C.HM)(R.left),he.right=(0,C.HM)(R.right),he.alignItems="center"===F.overlayX?"center":"end"===F.overlayX?"flex-end":"flex-start",he.justifyContent="center"===F.overlayY?"center":"bottom"===F.overlayY?"flex-end":"flex-start",z&&(he.maxHeight=(0,C.HM)(z)),ne&&(he.maxWidth=(0,C.HM)(ne))}this._lastBoundingBoxSize=R,dt(this._boundingBox.style,he)}_resetBoundingBoxStyles(){dt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){dt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(x,F){const R={},he=this._hasExactPosition(),z=this._hasFlexibleDimensions,ne=this._overlayRef.getConfig();if(he){const xt=this._viewportRuler.getViewportScrollPosition();dt(R,this._getExactOverlayY(F,x,xt)),dt(R,this._getExactOverlayX(F,x,xt))}else R.position="static";let Le="",gt=this._getOffset(F,"x"),Et=this._getOffset(F,"y");gt&&(Le+=`translateX(${gt}px) `),Et&&(Le+=`translateY(${Et}px)`),R.transform=Le.trim(),ne.maxHeight&&(he?R.maxHeight=(0,C.HM)(ne.maxHeight):z&&(R.maxHeight="")),ne.maxWidth&&(he?R.maxWidth=(0,C.HM)(ne.maxWidth):z&&(R.maxWidth="")),dt(this._pane.style,R)}_getExactOverlayY(x,F,R){let he={top:"",bottom:""},z=this._getOverlayPoint(F,this._overlayRect,x);this._isPushed&&(z=this._pushOverlayOnScreen(z,this._overlayRect,R));let ne=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return z.y-=ne,"bottom"===x.overlayY?he.bottom=this._document.documentElement.clientHeight-(z.y+this._overlayRect.height)+"px":he.top=(0,C.HM)(z.y),he}_getExactOverlayX(x,F,R){let ne,he={left:"",right:""},z=this._getOverlayPoint(F,this._overlayRect,x);return this._isPushed&&(z=this._pushOverlayOnScreen(z,this._overlayRect,R)),ne=this._isRtl()?"end"===x.overlayX?"left":"right":"end"===x.overlayX?"right":"left","right"===ne?he.right=this._document.documentElement.clientWidth-(z.x+this._overlayRect.width)+"px":he.left=(0,C.HM)(z.x),he}_getScrollVisibility(){const x=this._getOriginRect(),F=this._pane.getBoundingClientRect(),R=this._scrollables.map(he=>he.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Pe(x,R),isOriginOutsideView:Oe(x,R),isOverlayClipped:Pe(F,R),isOverlayOutsideView:Oe(F,R)}}_subtractOverflows(x,...F){return F.reduce((R,he)=>R-Math.max(he,0),x)}_getNarrowedViewportRect(){const x=this._document.documentElement.clientWidth,F=this._document.documentElement.clientHeight,R=this._viewportRuler.getViewportScrollPosition();return{top:R.top+this._viewportMargin,left:R.left+this._viewportMargin,right:R.left+x-this._viewportMargin,bottom:R.top+F-this._viewportMargin,width:x-2*this._viewportMargin,height:F-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(x,F){return"x"===F?null==x.offsetX?this._offsetX:x.offsetX:null==x.offsetY?this._offsetY:x.offsetY}_validatePositions(){}_addPanelClasses(x){this._pane&&(0,C.Eq)(x).forEach(F=>{""!==F&&-1===this._appliedPanelClasses.indexOf(F)&&(this._appliedPanelClasses.push(F),this._pane.classList.add(F))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(x=>{this._pane.classList.remove(x)}),this._appliedPanelClasses=[])}_getOriginRect(){const x=this._origin;if(x instanceof l.ElementRef)return x.nativeElement.getBoundingClientRect();if(x instanceof Element)return x.getBoundingClientRect();const F=x.width||0,R=x.height||0;return{top:x.y,bottom:x.y+R,left:x.x,right:x.x+F,height:R,width:F}}}function dt(Qe,x){for(let F in x)x.hasOwnProperty(F)&&(Qe[F]=x[F]);return Qe}function $(Qe){if("number"!=typeof Qe&&null!=Qe){const[x,F]=Qe.split(It);return F&&"px"!==F?null:parseFloat(x)}return Qe||null}function re(Qe){return{top:Math.floor(Qe.top),right:Math.floor(Qe.right),bottom:Math.floor(Qe.bottom),left:Math.floor(Qe.left),width:Math.floor(Qe.width),height:Math.floor(Qe.height)}}class L{constructor(x,F,R,he,z,ne,Le){this._preferredPositions=[],this._positionStrategy=new Ze(R,he,z,ne,Le).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(x,F),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(x){this._overlayRef=x,this._positionStrategy.attach(x),this._direction&&(x.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(x){this._positionStrategy.withScrollableContainers(x)}withFallbackPosition(x,F,R,he){const z=new se(x,F,R,he);return this._preferredPositions.push(z),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(x){return this._overlayRef?this._overlayRef.setDirection(x):this._direction=x,this}withOffsetX(x){return this._positionStrategy.withDefaultOffsetX(x),this}withOffsetY(x){return this._positionStrategy.withDefaultOffsetY(x),this}withLockedPosition(x){return this._positionStrategy.withLockedPosition(x),this}withPositions(x){return this._preferredPositions=x.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(x){return this._positionStrategy.setOrigin(x),this}}const ce="cdk-global-overlay-wrapper";class ae{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(x){const F=x.getConfig();this._overlayRef=x,this._width&&!F.width&&x.updateSize({width:this._width}),this._height&&!F.height&&x.updateSize({height:this._height}),x.hostElement.classList.add(ce),this._isDisposed=!1}top(x=""){return this._bottomOffset="",this._topOffset=x,this._alignItems="flex-start",this}left(x=""){return this._rightOffset="",this._leftOffset=x,this._justifyContent="flex-start",this}bottom(x=""){return this._topOffset="",this._bottomOffset=x,this._alignItems="flex-end",this}right(x=""){return this._leftOffset="",this._rightOffset=x,this._justifyContent="flex-end",this}width(x=""){return this._overlayRef?this._overlayRef.updateSize({width:x}):this._width=x,this}height(x=""){return this._overlayRef?this._overlayRef.updateSize({height:x}):this._height=x,this}centerHorizontally(x=""){return this.left(x),this._justifyContent="center",this}centerVertically(x=""){return this.top(x),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const x=this._overlayRef.overlayElement.style,F=this._overlayRef.hostElement.style,R=this._overlayRef.getConfig(),{width:he,height:z,maxWidth:ne,maxHeight:Le}=R,gt=!("100%"!==he&&"100vw"!==he||ne&&"100%"!==ne&&"100vw"!==ne),Et=!("100%"!==z&&"100vh"!==z||Le&&"100%"!==Le&&"100vh"!==Le);x.position=this._cssPosition,x.marginLeft=gt?"0":this._leftOffset,x.marginTop=Et?"0":this._topOffset,x.marginBottom=this._bottomOffset,x.marginRight=this._rightOffset,gt?F.justifyContent="flex-start":"center"===this._justifyContent?F.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?F.justifyContent="flex-end":"flex-end"===this._justifyContent&&(F.justifyContent="flex-start"):F.justifyContent=this._justifyContent,F.alignItems=Et?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const x=this._overlayRef.overlayElement.style,F=this._overlayRef.hostElement,R=F.style;F.classList.remove(ce),R.justifyContent=R.alignItems=x.marginTop=x.marginBottom=x.marginLeft=x.marginRight=x.position="",this._overlayRef=null,this._isDisposed=!0}}let pe=(()=>{class Qe{constructor(F,R,he,z){this._viewportRuler=F,this._document=R,this._platform=he,this._overlayContainer=z}global(){return new ae}connectedTo(F,R,he){return new L(R,he,F,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(F){return new Ze(F,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Qe.\u0275fac=function(F){return new(F||Qe)(l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4),l.\u0275\u0275inject(je))},Qe.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Qe(l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(f.t4),l.\u0275\u0275inject(je))},token:Qe,providedIn:"root"}),Qe})(),ke=0,ot=(()=>{class Qe{constructor(F,R,he,z,ne,Le,gt,Et,xt,Nt,Ut){this.scrollStrategies=F,this._overlayContainer=R,this._componentFactoryResolver=he,this._positionBuilder=z,this._keyboardDispatcher=ne,this._injector=Le,this._ngZone=gt,this._document=Et,this._directionality=xt,this._location=Nt,this._outsideClickDispatcher=Ut}create(F){const R=this._createHostElement(),he=this._createPaneElement(R),z=this._createPortalOutlet(he),ne=new Y(F);return ne.direction=ne.direction||this._directionality.value,new rt(z,R,he,ne,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(F){const R=this._document.createElement("div");return R.id="cdk-overlay-"+ke++,R.classList.add("cdk-overlay-pane"),F.appendChild(R),R}_createHostElement(){const F=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(F),F}_createPortalOutlet(F){return this._appRef||(this._appRef=this._injector.get(l.ApplicationRef)),new w.u0(F,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Qe.\u0275fac=function(F){return new(F||Qe)(l.\u0275\u0275inject(qe),l.\u0275\u0275inject(je),l.\u0275\u0275inject(l.ComponentFactoryResolver),l.\u0275\u0275inject(pe),l.\u0275\u0275inject(ct),l.\u0275\u0275inject(l.Injector),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(_.Is),l.\u0275\u0275inject(a.Location),l.\u0275\u0275inject(Ct))},Qe.\u0275prov=l.\u0275\u0275defineInjectable({token:Qe,factory:Qe.\u0275fac}),Qe})();const Ke={provide:new l.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[ot],useFactory:function(Qe){return()=>Qe.scrollStrategies.reposition()}};let pt=(()=>{class Qe{}return Qe.\u0275fac=function(F){return new(F||Qe)},Qe.\u0275mod=l.\u0275\u0275defineNgModule({type:Qe}),Qe.\u0275inj=l.\u0275\u0275defineInjector({providers:[ot,Ke],imports:[[_.vT,w.eL,o.Cl],o.Cl]}),Qe})()},521:(Ne,T,d)=>{"use strict";d.d(T,{t4:()=>_,ud:()=>a,sA:()=>lt,ht:()=>$e,kV:()=>Ce,Oy:()=>Ye,_i:()=>j,i$:()=>M,Mq:()=>B});var o=d(7716),l=d(8583);let f;try{f="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Me){f=!1}let g,S,P,oe,_=(()=>{class Me{constructor(Pe){this._platformId=Pe,this.isBrowser=this._platformId?(0,l.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&&!f)&&"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 Me.\u0275fac=function(Pe){return new(Pe||Me)(o.\u0275\u0275inject(o.PLATFORM_ID))},Me.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Me(o.\u0275\u0275inject(o.PLATFORM_ID))},token:Me,providedIn:"root"}),Me})(),a=(()=>{class Me{}return Me.\u0275fac=function(Pe){return new(Pe||Me)},Me.\u0275mod=o.\u0275\u0275defineNgModule({type:Me}),Me.\u0275inj=o.\u0275\u0275defineInjector({}),Me})();function M(Me){return function(){if(null==g&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>g=!0}))}finally{g=g||!1}return g}()?Me:!!Me.capture}function B(){if(null==P){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return P=!1,P;if("scrollBehavior"in document.documentElement.style)P=!0;else{const Me=Element.prototype.scrollTo;P=!!Me&&!/\{\s*\[native code\]\s*\}/.test(Me.toString())}}return P}function j(){if("object"!=typeof document||!document)return 0;if(null==S){const Me=document.createElement("div"),Oe=Me.style;Me.dir="rtl",Oe.width="1px",Oe.overflow="auto",Oe.visibility="hidden",Oe.pointerEvents="none",Oe.position="absolute";const Pe=document.createElement("div"),de=Pe.style;de.width="2px",de.height="1px",Me.appendChild(Pe),document.body.appendChild(Me),S=0,0===Me.scrollLeft&&(Me.scrollLeft=1,S=0===Me.scrollLeft?1:2),Me.parentNode.removeChild(Me)}return S}function Ce(Me){if(function(){if(null==oe){const Me="undefined"!=typeof document?document.head:null;oe=!(!Me||!Me.createShadowRoot&&!Me.attachShadow)}return oe}()){const Oe=Me.getRootNode?Me.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Oe instanceof ShadowRoot)return Oe}return null}function $e(){let Me="undefined"!=typeof document&&document?document.activeElement:null;for(;Me&&Me.shadowRoot;){const Oe=Me.shadowRoot.activeElement;if(Oe===Me)break;Me=Oe}return Me}function lt(Me){return Me.composedPath?Me.composedPath()[0]:Me.target}function Ye(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7636:(Ne,T,d)=>{"use strict";d.d(T,{en:()=>P,ig:()=>le,Pl:()=>$e,C5:()=>E,u0:()=>j,eL:()=>Ye,UE:()=>M});var o=d(7716),l=d(8583);class g{attach(Pe){return this._attachedHost=Pe,Pe.attach(this)}detach(){let Pe=this._attachedHost;null!=Pe&&(this._attachedHost=null,Pe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Pe){this._attachedHost=Pe}}class E extends g{constructor(Pe,de,qe,Y){super(),this.component=Pe,this.viewContainerRef=de,this.injector=qe,this.componentFactoryResolver=Y}}class M extends g{constructor(Pe,de,qe){super(),this.templateRef=Pe,this.viewContainerRef=de,this.context=qe}get origin(){return this.templateRef.elementRef}attach(Pe,de=this.context){return this.context=de,super.attach(Pe)}detach(){return this.context=void 0,super.detach()}}class S extends g{constructor(Pe){super(),this.element=Pe instanceof o.ElementRef?Pe.nativeElement:Pe}}class P{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Pe){return Pe instanceof E?(this._attachedPortal=Pe,this.attachComponentPortal(Pe)):Pe instanceof M?(this._attachedPortal=Pe,this.attachTemplatePortal(Pe)):this.attachDomPortal&&Pe instanceof S?(this._attachedPortal=Pe,this.attachDomPortal(Pe)):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(Pe){this._disposeFn=Pe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class j extends P{constructor(Pe,de,qe,Y,se){super(),this.outletElement=Pe,this._componentFactoryResolver=de,this._appRef=qe,this._defaultInjector=Y,this.attachDomPortal=_e=>{const fe=_e.element,Be=this._document.createComment("dom-portal");fe.parentNode.insertBefore(Be,fe),this.outletElement.appendChild(fe),this._attachedPortal=_e,super.setDisposeFn(()=>{Be.parentNode&&Be.parentNode.replaceChild(fe,Be)})},this._document=se}attachComponentPortal(Pe){const qe=(Pe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Pe.component);let Y;return Pe.viewContainerRef?(Y=Pe.viewContainerRef.createComponent(qe,Pe.viewContainerRef.length,Pe.injector||Pe.viewContainerRef.injector),this.setDisposeFn(()=>Y.destroy())):(Y=qe.create(Pe.injector||this._defaultInjector),this._appRef.attachView(Y.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Y.hostView),Y.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(Y)),this._attachedPortal=Pe,Y}attachTemplatePortal(Pe){let de=Pe.viewContainerRef,qe=de.createEmbeddedView(Pe.templateRef,Pe.context);return qe.rootNodes.forEach(Y=>this.outletElement.appendChild(Y)),qe.detectChanges(),this.setDisposeFn(()=>{let Y=de.indexOf(qe);-1!==Y&&de.remove(Y)}),this._attachedPortal=Pe,qe}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(Pe){return Pe.hostView.rootNodes[0]}}let le=(()=>{class Oe extends M{constructor(de,qe){super(de,qe)}}return Oe.\u0275fac=function(de){return new(de||Oe)(o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef))},Oe.\u0275dir=o.\u0275\u0275defineDirective({type:Oe,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[o.\u0275\u0275InheritDefinitionFeature]}),Oe})(),$e=(()=>{class Oe extends P{constructor(de,qe,Y){super(),this._componentFactoryResolver=de,this._viewContainerRef=qe,this._isInitialized=!1,this.attached=new o.EventEmitter,this.attachDomPortal=se=>{const _e=se.element,fe=this._document.createComment("dom-portal");se.setAttachedHost(this),_e.parentNode.insertBefore(fe,_e),this._getRootNode().appendChild(_e),this._attachedPortal=se,super.setDisposeFn(()=>{fe.parentNode&&fe.parentNode.replaceChild(_e,fe)})},this._document=Y}get portal(){return this._attachedPortal}set portal(de){this.hasAttached()&&!de&&!this._isInitialized||(this.hasAttached()&&super.detach(),de&&super.attach(de),this._attachedPortal=de)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(de){de.setAttachedHost(this);const qe=null!=de.viewContainerRef?de.viewContainerRef:this._viewContainerRef,se=(de.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(de.component),_e=qe.createComponent(se,qe.length,de.injector||qe.injector);return qe!==this._viewContainerRef&&this._getRootNode().appendChild(_e.hostView.rootNodes[0]),super.setDisposeFn(()=>_e.destroy()),this._attachedPortal=de,this._attachedRef=_e,this.attached.emit(_e),_e}attachTemplatePortal(de){de.setAttachedHost(this);const qe=this._viewContainerRef.createEmbeddedView(de.templateRef,de.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=de,this._attachedRef=qe,this.attached.emit(qe),qe}_getRootNode(){const de=this._viewContainerRef.element.nativeElement;return de.nodeType===de.ELEMENT_NODE?de:de.parentNode}}return Oe.\u0275fac=function(de){return new(de||Oe)(o.\u0275\u0275directiveInject(o.ComponentFactoryResolver),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(l.DOCUMENT))},Oe.\u0275dir=o.\u0275\u0275defineDirective({type:Oe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[o.\u0275\u0275InheritDefinitionFeature]}),Oe})(),Ye=(()=>{class Oe{}return Oe.\u0275fac=function(de){return new(de||Oe)},Oe.\u0275mod=o.\u0275\u0275defineNgModule({type:Oe}),Oe.\u0275inj=o.\u0275\u0275defineInjector({}),Oe})()},5197:(Ne,T,d)=>{"use strict";d.d(T,{ZD:()=>wt,mF:()=>dt,Cl:()=>Je,rL:()=>L});var o=d(9490),l=d(7716),f=d(9765),_=d(5917),a=d(9897),C=d(2759),M=(d(1927),d(4581),d(826),d(5639),d(3637)),S=d(5345);class B{constructor(He){this.durationSelector=He}call(He,q){return q.subscribe(new j(He,this.durationSelector))}}class j extends S.Ds{constructor(He,q){super(He),this.durationSelector=q,this.hasValue=!1}_next(He){if(this.value=He,this.hasValue=!0,!this.throttled){let q;try{const{durationSelector:pt}=this;q=pt(He)}catch(pt){return this.destination.error(pt)}const Ke=(0,S.ft)(q,new S.IY(this));!Ke||Ke.closed?this.clearThrottle():this.add(this.throttled=Ke)}}clearThrottle(){const{value:He,hasValue:q,throttled:Ke}=this;Ke&&(this.remove(Ke),this.throttled=void 0,Ke.unsubscribe()),q&&(this.value=void 0,this.hasValue=!1,this.destination.next(He))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var oe=d(6797);function le(Ue,He=M.P){return function(Ue){return function(q){return q.lift(new B(Ue))}}(()=>(0,oe.H)(Ue,He))}d(7393),d(4448),d(7519);var qe=d(5435),fe=(d(6782),d(9761),d(3190),d(521)),Be=d(8583),Fe=d(946);d(8345);let dt=(()=>{class Ue{constructor(q,Ke,pt){this._ngZone=q,this._platform=Ke,this._scrolled=new f.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=pt}register(q){this.scrollContainers.has(q)||this.scrollContainers.set(q,q.elementScrolled().subscribe(()=>this._scrolled.next(q)))}deregister(q){const Ke=this.scrollContainers.get(q);Ke&&(Ke.unsubscribe(),this.scrollContainers.delete(q))}scrolled(q=20){return this._platform.isBrowser?new a.y(Ke=>{this._globalSubscription||this._addGlobalListener();const pt=q>0?this._scrolled.pipe(le(q)).subscribe(Ke):this._scrolled.subscribe(Ke);return this._scrolledCount++,()=>{pt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,_.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((q,Ke)=>this.deregister(Ke)),this._scrolled.complete()}ancestorScrolled(q,Ke){const pt=this.getAncestorScrollContainers(q);return this.scrolled(Ke).pipe((0,qe.h)(vt=>!vt||pt.indexOf(vt)>-1))}getAncestorScrollContainers(q){const Ke=[];return this.scrollContainers.forEach((pt,vt)=>{this._scrollableContainsElement(vt,q)&&Ke.push(vt)}),Ke}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(q,Ke){let pt=(0,o.fI)(Ke),vt=q.getElementRef().nativeElement;do{if(pt==vt)return!0}while(pt=pt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const q=this._getWindow();return(0,C.R)(q.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Ue.\u0275fac=function(q){return new(q||Ue)(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(fe.t4),l.\u0275\u0275inject(Be.DOCUMENT,8))},Ue.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ue(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(fe.t4),l.\u0275\u0275inject(Be.DOCUMENT,8))},token:Ue,providedIn:"root"}),Ue})(),L=(()=>{class Ue{constructor(q,Ke,pt){this._platform=q,this._change=new f.xQ,this._changeListener=vt=>{this._change.next(vt)},this._document=pt,Ke.runOutsideAngular(()=>{if(q.isBrowser){const vt=this._getWindow();vt.addEventListener("resize",this._changeListener),vt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const q=this._getWindow();q.removeEventListener("resize",this._changeListener),q.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const q={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),q}getViewportRect(){const q=this.getViewportScrollPosition(),{width:Ke,height:pt}=this.getViewportSize();return{top:q.top,left:q.left,bottom:q.top+pt,right:q.left+Ke,height:pt,width:Ke}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const q=this._document,Ke=this._getWindow(),pt=q.documentElement,vt=pt.getBoundingClientRect();return{top:-vt.top||q.body.scrollTop||Ke.scrollY||pt.scrollTop||0,left:-vt.left||q.body.scrollLeft||Ke.scrollX||pt.scrollLeft||0}}change(q=20){return q>0?this._change.pipe(le(q)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const q=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:q.innerWidth,height:q.innerHeight}:{width:0,height:0}}}return Ue.\u0275fac=function(q){return new(q||Ue)(l.\u0275\u0275inject(fe.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(Be.DOCUMENT,8))},Ue.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ue(l.\u0275\u0275inject(fe.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(Be.DOCUMENT,8))},token:Ue,providedIn:"root"}),Ue})(),wt=(()=>{class Ue{}return Ue.\u0275fac=function(q){return new(q||Ue)},Ue.\u0275mod=l.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=l.\u0275\u0275defineInjector({}),Ue})(),Je=(()=>{class Ue{}return Ue.\u0275fac=function(q){return new(q||Ue)},Ue.\u0275mod=l.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=l.\u0275\u0275defineInjector({imports:[[Fe.vT,fe.ud,wt],Fe.vT,wt]}),Ue})()},9490:(Ne,T,d)=>{"use strict";d.d(T,{t6:()=>_,Eq:()=>a,Ig:()=>l,HM:()=>C,fI:()=>w,su:()=>f});var o=d(7716);function l(g){return null!=g&&"false"!=`${g}`}function f(g,E=0){return _(g)?Number(g):E}function _(g){return!isNaN(parseFloat(g))&&!isNaN(Number(g))}function a(g){return Array.isArray(g)?g:[g]}function C(g){return null==g?"":"string"==typeof g?g:`${g}px`}function w(g){return g instanceof o.ElementRef?g.nativeElement:g}},8583:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{APP_BASE_HREF:()=>$e,AsyncPipe:()=>Fr,CommonModule:()=>Mi,CurrencyPipe:()=>Br,DOCUMENT:()=>w,DatePipe:()=>po,DecimalPipe:()=>wi,FormStyle:()=>_e,FormatWidth:()=>Be,HashLocationStrategy:()=>Ye,I18nPluralPipe:()=>Ti,I18nSelectPipe:()=>mo,JsonPipe:()=>ko,KeyValuePipe:()=>Lr,LOCATION_INITIALIZED:()=>E,Location:()=>Me,LocationStrategy:()=>le,LowerCasePipe:()=>Nr,NgClass:()=>Ft,NgComponentOutlet:()=>$t,NgForOf:()=>Wt,NgForOfContext:()=>qt,NgIf:()=>bi,NgIfContext:()=>li,NgLocaleLocalization:()=>me,NgLocalization:()=>we,NgPlural:()=>Cn,NgPluralCase:()=>Ci,NgStyle:()=>ci,NgSwitch:()=>ei,NgSwitchCase:()=>xn,NgSwitchDefault:()=>Xi,NgTemplateOutlet:()=>ui,NumberFormatStyle:()=>Y,NumberSymbol:()=>Fe,PathLocationStrategy:()=>lt,PercentPipe:()=>Li,PlatformLocation:()=>D,Plural:()=>se,SlicePipe:()=>yi,TitleCasePipe:()=>to,TranslationWidth:()=>fe,UpperCasePipe:()=>Di,VERSION:()=>Rn,ViewportScroller:()=>Cr,WeekDay:()=>st,XhrFactory:()=>go,formatCurrency:()=>Rt,formatDate:()=>gt,formatNumber:()=>be,formatPercent:()=>ee,getCurrencySymbol:()=>vt,getLocaleCurrencyCode:()=>ke,getLocaleCurrencyName:()=>pe,getLocaleCurrencySymbol:()=>ae,getLocaleDateFormat:()=>dt,getLocaleDateTimeFormat:()=>re,getLocaleDayNames:()=>je,getLocaleDayPeriods:()=>Ct,getLocaleDirection:()=>q,getLocaleEraNames:()=>ht,getLocaleExtraDayPeriodRules:()=>Ue,getLocaleExtraDayPeriods:()=>He,getLocaleFirstDayOfWeek:()=>It,getLocaleId:()=>ct,getLocaleMonthNames:()=>rt,getLocaleNumberFormat:()=>ce,getLocaleNumberSymbol:()=>L,getLocalePluralCase:()=>wt,getLocaleTimeFormat:()=>$,getLocaleWeekEndRange:()=>Ze,getNumberOfCurrencyDigits:()=>x,isPlatformBrowser:()=>br,isPlatformServer:()=>Hr,isPlatformWorkerApp:()=>Si,isPlatformWorkerUi:()=>$r,registerLocaleData:()=>Ve,\u0275BrowserPlatformLocation:()=>M,\u0275DomAdapter:()=>C,\u0275NullViewportScroller:()=>Tr,\u0275PLATFORM_BROWSER_ID:()=>ji,\u0275PLATFORM_SERVER_ID:()=>Vr,\u0275PLATFORM_WORKER_APP_ID:()=>tr,\u0275PLATFORM_WORKER_UI_ID:()=>vr,\u0275angular_packages_common_common_a:()=>g,\u0275angular_packages_common_common_b:()=>P,\u0275angular_packages_common_common_c:()=>Oe,\u0275angular_packages_common_common_d:()=>Ce,\u0275angular_packages_common_common_e:()=>ni,\u0275angular_packages_common_common_f:()=>er,\u0275getDOM:()=>f,\u0275parseCookieValue:()=>at,\u0275setRootDomAdapter:()=>a});var o=d(7716);let l=null;function f(){return l}function a(O){l||(l=O)}class C{}const w=new o.InjectionToken("DocumentToken");let D=(()=>{class O{historyGo(k){throw new Error("Not implemented")}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:g,token:O,providedIn:"platform"}),O})();function g(){return(0,o.\u0275\u0275inject)(M)}const E=new o.InjectionToken("Location Initialized");let M=(()=>{class O extends D{constructor(k){super(),this._doc=k,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return f().getBaseHref(this._doc)}onPopState(k){const m=f().getGlobalEventTarget(this._doc,"window");return m.addEventListener("popstate",k,!1),()=>m.removeEventListener("popstate",k)}onHashChange(k){const m=f().getGlobalEventTarget(this._doc,"window");return m.addEventListener("hashchange",k,!1),()=>m.removeEventListener("hashchange",k)}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(k){this.location.pathname=k}pushState(k,m,v){S()?this._history.pushState(k,m,v):this.location.hash=v}replaceState(k,m,v){S()?this._history.replaceState(k,m,v):this.location.hash=v}forward(){this._history.forward()}back(){this._history.back()}historyGo(k=0){this._history.go(k)}getState(){return this._history.state}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(w))},O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:P,token:O,providedIn:"platform"}),O})();function S(){return!!window.history.pushState}function P(){return new M((0,o.\u0275\u0275inject)(w))}function B(O,te){if(0==O.length)return te;if(0==te.length)return O;let k=0;return O.endsWith("/")&&k++,te.startsWith("/")&&k++,2==k?O+te.substring(1):1==k?O+te:O+"/"+te}function j(O){const te=O.match(/#|\?|$/),k=te&&te.index||O.length;return O.slice(0,k-("/"===O[k-1]?1:0))+O.slice(k)}function oe(O){return O&&"?"!==O[0]?"?"+O:O}let le=(()=>{class O{historyGo(k){throw new Error("Not implemented")}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:Ce,token:O,providedIn:"root"}),O})();function Ce(O){const te=(0,o.\u0275\u0275inject)(w).location;return new lt((0,o.\u0275\u0275inject)(D),te&&te.origin||"")}const $e=new o.InjectionToken("appBaseHref");let lt=(()=>{class O extends le{constructor(k,m){if(super(),this._platformLocation=k,this._removeListenerFns=[],null==m&&(m=this._platformLocation.getBaseHrefFromDOM()),null==m)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=m}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}prepareExternalUrl(k){return B(this._baseHref,k)}path(k=!1){const m=this._platformLocation.pathname+oe(this._platformLocation.search),v=this._platformLocation.hash;return v&&k?`${m}${v}`:m}pushState(k,m,v,b){const U=this.prepareExternalUrl(v+oe(b));this._platformLocation.pushState(k,m,U)}replaceState(k,m,v,b){const U=this.prepareExternalUrl(v+oe(b));this._platformLocation.replaceState(k,m,U)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var m,v;null===(v=(m=this._platformLocation).historyGo)||void 0===v||v.call(m,k)}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(D),o.\u0275\u0275inject($e,8))},O.\u0275prov=o.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})(),Ye=(()=>{class O extends le{constructor(k,m){super(),this._platformLocation=k,this._baseHref="",this._removeListenerFns=[],null!=m&&(this._baseHref=m)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}path(k=!1){let m=this._platformLocation.hash;return null==m&&(m="#"),m.length>0?m.substring(1):m}prepareExternalUrl(k){const m=B(this._baseHref,k);return m.length>0?"#"+m:m}pushState(k,m,v,b){let U=this.prepareExternalUrl(v+oe(b));0==U.length&&(U=this._platformLocation.pathname),this._platformLocation.pushState(k,m,U)}replaceState(k,m,v,b){let U=this.prepareExternalUrl(v+oe(b));0==U.length&&(U=this._platformLocation.pathname),this._platformLocation.replaceState(k,m,U)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var m,v;null===(v=(m=this._platformLocation).historyGo)||void 0===v||v.call(m,k)}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(D),o.\u0275\u0275inject($e,8))},O.\u0275prov=o.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})(),Me=(()=>{class O{constructor(k,m){this._subject=new o.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=k;const v=this._platformStrategy.getBaseHref();this._platformLocation=m,this._baseHref=j(de(v)),this._platformStrategy.onPopState(b=>{this._subject.emit({url:this.path(!0),pop:!0,state:b.state,type:b.type})})}path(k=!1){return this.normalize(this._platformStrategy.path(k))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(k,m=""){return this.path()==this.normalize(k+oe(m))}normalize(k){return O.stripTrailingSlash(function(O,te){return O&&te.startsWith(O)?te.substring(O.length):te}(this._baseHref,de(k)))}prepareExternalUrl(k){return k&&"/"!==k[0]&&(k="/"+k),this._platformStrategy.prepareExternalUrl(k)}go(k,m="",v=null){this._platformStrategy.pushState(v,"",k,m),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+oe(m)),v)}replaceState(k,m="",v=null){this._platformStrategy.replaceState(v,"",k,m),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+oe(m)),v)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(k=0){var m,v;null===(v=(m=this._platformStrategy).historyGo)||void 0===v||v.call(m,k)}onUrlChange(k){this._urlChangeListeners.push(k),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(m=>{this._notifyUrlChangeListeners(m.url,m.state)}))}_notifyUrlChangeListeners(k="",m){this._urlChangeListeners.forEach(v=>v(k,m))}subscribe(k,m,v){return this._subject.subscribe({next:k,error:m,complete:v})}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(le),o.\u0275\u0275inject(D))},O.normalizeQueryParams=oe,O.joinWithSlash=B,O.stripTrailingSlash=j,O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:Oe,token:O,providedIn:"root"}),O})();function Oe(){return new Me((0,o.\u0275\u0275inject)(le),(0,o.\u0275\u0275inject)(D))}function de(O){return O.replace(/\/index.html$/,"")}const qe={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],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"],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:[void 0,"\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:["CFA",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 Y=(()=>((Y=Y||{})[Y.Decimal=0]="Decimal",Y[Y.Percent=1]="Percent",Y[Y.Currency=2]="Currency",Y[Y.Scientific=3]="Scientific",Y))(),se=(()=>((se=se||{})[se.Zero=0]="Zero",se[se.One=1]="One",se[se.Two=2]="Two",se[se.Few=3]="Few",se[se.Many=4]="Many",se[se.Other=5]="Other",se))(),_e=(()=>((_e=_e||{})[_e.Format=0]="Format",_e[_e.Standalone=1]="Standalone",_e))(),fe=(()=>((fe=fe||{})[fe.Narrow=0]="Narrow",fe[fe.Abbreviated=1]="Abbreviated",fe[fe.Wide=2]="Wide",fe[fe.Short=3]="Short",fe))(),Be=(()=>((Be=Be||{})[Be.Short=0]="Short",Be[Be.Medium=1]="Medium",Be[Be.Long=2]="Long",Be[Be.Full=3]="Full",Be))(),Fe=(()=>((Fe=Fe||{})[Fe.Decimal=0]="Decimal",Fe[Fe.Group=1]="Group",Fe[Fe.List=2]="List",Fe[Fe.PercentSign=3]="PercentSign",Fe[Fe.PlusSign=4]="PlusSign",Fe[Fe.MinusSign=5]="MinusSign",Fe[Fe.Exponential=6]="Exponential",Fe[Fe.SuperscriptingExponent=7]="SuperscriptingExponent",Fe[Fe.PerMille=8]="PerMille",Fe[Fe.Infinity=9]="Infinity",Fe[Fe.NaN=10]="NaN",Fe[Fe.TimeSeparator=11]="TimeSeparator",Fe[Fe.CurrencyDecimal=12]="CurrencyDecimal",Fe[Fe.CurrencyGroup=13]="CurrencyGroup",Fe))(),st=(()=>((st=st||{})[st.Sunday=0]="Sunday",st[st.Monday=1]="Monday",st[st.Tuesday=2]="Tuesday",st[st.Wednesday=3]="Wednesday",st[st.Thursday=4]="Thursday",st[st.Friday=5]="Friday",st[st.Saturday=6]="Saturday",st))();function ct(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.LocaleId]}function Ct(O,te,k){const m=(0,o.\u0275findLocaleData)(O),b=Ke([m[o.\u0275LocaleDataIndex.DayPeriodsFormat],m[o.\u0275LocaleDataIndex.DayPeriodsStandalone]],te);return Ke(b,k)}function je(O,te,k){const m=(0,o.\u0275findLocaleData)(O),b=Ke([m[o.\u0275LocaleDataIndex.DaysFormat],m[o.\u0275LocaleDataIndex.DaysStandalone]],te);return Ke(b,k)}function rt(O,te,k){const m=(0,o.\u0275findLocaleData)(O),b=Ke([m[o.\u0275LocaleDataIndex.MonthsFormat],m[o.\u0275LocaleDataIndex.MonthsStandalone]],te);return Ke(b,k)}function ht(O,te){return Ke((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.Eras],te)}function It(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.FirstDayOfWeek]}function Ze(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.WeekendRange]}function dt(O,te){return Ke((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.DateFormat],te)}function $(O,te){return Ke((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.TimeFormat],te)}function re(O,te){return Ke((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.DateTimeFormat],te)}function L(O,te){const k=(0,o.\u0275findLocaleData)(O),m=k[o.\u0275LocaleDataIndex.NumberSymbols][te];if(void 0===m){if(te===Fe.CurrencyDecimal)return k[o.\u0275LocaleDataIndex.NumberSymbols][Fe.Decimal];if(te===Fe.CurrencyGroup)return k[o.\u0275LocaleDataIndex.NumberSymbols][Fe.Group]}return m}function ce(O,te){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.NumberFormats][te]}function ae(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.CurrencySymbol]||null}function pe(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.CurrencyName]||null}function ke(O){return(0,o.\u0275getLocaleCurrencyCode)(O)}const wt=o.\u0275getLocalePluralCase;function Je(O){if(!O[o.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${O[o.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ue(O){const te=(0,o.\u0275findLocaleData)(O);return Je(te),(te[o.\u0275LocaleDataIndex.ExtraData][2]||[]).map(m=>"string"==typeof m?pt(m):[pt(m[0]),pt(m[1])])}function He(O,te,k){const m=(0,o.\u0275findLocaleData)(O);Je(m);const b=Ke([m[o.\u0275LocaleDataIndex.ExtraData][0],m[o.\u0275LocaleDataIndex.ExtraData][1]],te)||[];return Ke(b,k)||[]}function q(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.Directionality]}function Ke(O,te){for(let k=te;k>-1;k--)if(void 0!==O[k])return O[k];throw new Error("Locale data API: locale data undefined")}function pt(O){const[te,k]=O.split(":");return{hours:+te,minutes:+k}}function vt(O,te,k="en"){const m=function(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.Currencies]}(k)[O]||qe[O]||[],v=m[1];return"narrow"===te&&"string"==typeof v?v:m[0]||O}function x(O){let te;const k=qe[O];return k&&(te=k[2]),"number"==typeof te?te:2}const F=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,R={},he=/((?:[^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 z=(()=>((z=z||{})[z.Short=0]="Short",z[z.ShortGMT=1]="ShortGMT",z[z.Long=2]="Long",z[z.Extended=3]="Extended",z))(),ne=(()=>((ne=ne||{})[ne.FullYear=0]="FullYear",ne[ne.Month=1]="Month",ne[ne.Date=2]="Date",ne[ne.Hours=3]="Hours",ne[ne.Minutes=4]="Minutes",ne[ne.Seconds=5]="Seconds",ne[ne.FractionalSeconds=6]="FractionalSeconds",ne[ne.Day=7]="Day",ne))(),Le=(()=>((Le=Le||{})[Le.DayPeriods=0]="DayPeriods",Le[Le.Days=1]="Days",Le[Le.Months=2]="Months",Le[Le.Eras=3]="Eras",Le))();function gt(O,te,k,m){let v=function(O){if(dn(O))return O;if("number"==typeof O&&!isNaN(O))return new Date(O);if("string"==typeof O){if(O=O.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(O)){const[v,b=1,U=1]=O.split("-").map(Ge=>+Ge);return Et(v,b-1,U)}const k=parseFloat(O);if(!isNaN(O-k))return new Date(k);let m;if(m=O.match(F))return function(O){const te=new Date(0);let k=0,m=0;const v=O[8]?te.setUTCFullYear:te.setFullYear,b=O[8]?te.setUTCHours:te.setHours;O[9]&&(k=Number(O[9]+O[10]),m=Number(O[9]+O[11])),v.call(te,Number(O[1]),Number(O[2])-1,Number(O[3]));const U=Number(O[4]||0)-k,Ge=Number(O[5]||0)-m,St=Number(O[6]||0),Zt=Math.floor(1e3*parseFloat("0."+(O[7]||0)));return b.call(te,U,Ge,St,Zt),te}(m)}const te=new Date(O);if(!dn(te))throw new Error(`Unable to convert "${O}" into a date`);return te}(O);te=xt(k,te)||te;let Ge,U=[];for(;te;){if(Ge=he.exec(te),!Ge){U.push(te);break}{U=U.concat(Ge.slice(1));const fn=U.pop();if(!fn)break;te=fn}}let St=v.getTimezoneOffset();m&&(St=N(m,St),v=function(O,te,k){const v=O.getTimezoneOffset();return function(O,te){return(O=new Date(O.getTime())).setMinutes(O.getMinutes()+te),O}(O,-1*(N(te,v)-v))}(v,m));let Zt="";return U.forEach(fn=>{const rn=function(O){if(Q[O])return Q[O];let te;switch(O){case"G":case"GG":case"GGG":te=jt(Le.Eras,fe.Abbreviated);break;case"GGGG":te=jt(Le.Eras,fe.Wide);break;case"GGGGG":te=jt(Le.Eras,fe.Narrow);break;case"y":te=At(ne.FullYear,1,0,!1,!0);break;case"yy":te=At(ne.FullYear,2,0,!0,!0);break;case"yyy":te=At(ne.FullYear,3,0,!1,!0);break;case"yyyy":te=At(ne.FullYear,4,0,!1,!0);break;case"Y":te=Ee(1);break;case"YY":te=Ee(2,!0);break;case"YYY":te=Ee(3);break;case"YYYY":te=Ee(4);break;case"M":case"L":te=At(ne.Month,1,1);break;case"MM":case"LL":te=At(ne.Month,2,1);break;case"MMM":te=jt(Le.Months,fe.Abbreviated);break;case"MMMM":te=jt(Le.Months,fe.Wide);break;case"MMMMM":te=jt(Le.Months,fe.Narrow);break;case"LLL":te=jt(Le.Months,fe.Abbreviated,_e.Standalone);break;case"LLLL":te=jt(Le.Months,fe.Wide,_e.Standalone);break;case"LLLLL":te=jt(Le.Months,fe.Narrow,_e.Standalone);break;case"w":te=De(1);break;case"ww":te=De(2);break;case"W":te=De(1,!0);break;case"d":te=At(ne.Date,1);break;case"dd":te=At(ne.Date,2);break;case"c":case"cc":te=At(ne.Day,1);break;case"ccc":te=jt(Le.Days,fe.Abbreviated,_e.Standalone);break;case"cccc":te=jt(Le.Days,fe.Wide,_e.Standalone);break;case"ccccc":te=jt(Le.Days,fe.Narrow,_e.Standalone);break;case"cccccc":te=jt(Le.Days,fe.Short,_e.Standalone);break;case"E":case"EE":case"EEE":te=jt(Le.Days,fe.Abbreviated);break;case"EEEE":te=jt(Le.Days,fe.Wide);break;case"EEEEE":te=jt(Le.Days,fe.Narrow);break;case"EEEEEE":te=jt(Le.Days,fe.Short);break;case"a":case"aa":case"aaa":te=jt(Le.DayPeriods,fe.Abbreviated);break;case"aaaa":te=jt(Le.DayPeriods,fe.Wide);break;case"aaaaa":te=jt(Le.DayPeriods,fe.Narrow);break;case"b":case"bb":case"bbb":te=jt(Le.DayPeriods,fe.Abbreviated,_e.Standalone,!0);break;case"bbbb":te=jt(Le.DayPeriods,fe.Wide,_e.Standalone,!0);break;case"bbbbb":te=jt(Le.DayPeriods,fe.Narrow,_e.Standalone,!0);break;case"B":case"BB":case"BBB":te=jt(Le.DayPeriods,fe.Abbreviated,_e.Format,!0);break;case"BBBB":te=jt(Le.DayPeriods,fe.Wide,_e.Format,!0);break;case"BBBBB":te=jt(Le.DayPeriods,fe.Narrow,_e.Format,!0);break;case"h":te=At(ne.Hours,1,-12);break;case"hh":te=At(ne.Hours,2,-12);break;case"H":te=At(ne.Hours,1);break;case"HH":te=At(ne.Hours,2);break;case"m":te=At(ne.Minutes,1);break;case"mm":te=At(ne.Minutes,2);break;case"s":te=At(ne.Seconds,1);break;case"ss":te=At(ne.Seconds,2);break;case"S":te=At(ne.FractionalSeconds,1);break;case"SS":te=At(ne.FractionalSeconds,2);break;case"SSS":te=At(ne.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":te=Xe(z.Short);break;case"ZZZZZ":te=Xe(z.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":te=Xe(z.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":te=Xe(z.Long);break;default:return null}return Q[O]=te,te}(fn);Zt+=rn?rn(v,k,St):"''"===fn?"'":fn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Zt}function Et(O,te,k){const m=new Date(0);return m.setFullYear(O,te,k),m.setHours(0,0,0),m}function xt(O,te){const k=ct(O);if(R[k]=R[k]||{},R[k][te])return R[k][te];let m="";switch(te){case"shortDate":m=dt(O,Be.Short);break;case"mediumDate":m=dt(O,Be.Medium);break;case"longDate":m=dt(O,Be.Long);break;case"fullDate":m=dt(O,Be.Full);break;case"shortTime":m=$(O,Be.Short);break;case"mediumTime":m=$(O,Be.Medium);break;case"longTime":m=$(O,Be.Long);break;case"fullTime":m=$(O,Be.Full);break;case"short":const v=xt(O,"shortTime"),b=xt(O,"shortDate");m=Nt(re(O,Be.Short),[v,b]);break;case"medium":const U=xt(O,"mediumTime"),Ge=xt(O,"mediumDate");m=Nt(re(O,Be.Medium),[U,Ge]);break;case"long":const St=xt(O,"longTime"),Zt=xt(O,"longDate");m=Nt(re(O,Be.Long),[St,Zt]);break;case"full":const fn=xt(O,"fullTime"),rn=xt(O,"fullDate");m=Nt(re(O,Be.Full),[fn,rn])}return m&&(R[k][te]=m),m}function Nt(O,te){return te&&(O=O.replace(/\{([^}]+)}/g,function(k,m){return null!=te&&m in te?te[m]:k})),O}function Ut(O,te,k="-",m,v){let b="";(O<0||v&&O<=0)&&(v?O=1-O:(O=-O,b=k));let U=String(O);for(;U.length<te;)U="0"+U;return m&&(U=U.substr(U.length-te)),b+U}function At(O,te,k=0,m=!1,v=!1){return function(b,U){let Ge=function(O,te){switch(O){case ne.FullYear:return te.getFullYear();case ne.Month:return te.getMonth();case ne.Date:return te.getDate();case ne.Hours:return te.getHours();case ne.Minutes:return te.getMinutes();case ne.Seconds:return te.getSeconds();case ne.FractionalSeconds:return te.getMilliseconds();case ne.Day:return te.getDay();default:throw new Error(`Unknown DateType value "${O}".`)}}(O,b);if((k>0||Ge>-k)&&(Ge+=k),O===ne.Hours)0===Ge&&-12===k&&(Ge=12);else if(O===ne.FractionalSeconds)return function(O,te){return Ut(O,3).substr(0,te)}(Ge,te);const St=L(U,Fe.MinusSign);return Ut(Ge,te,St,m,v)}}function jt(O,te,k=_e.Format,m=!1){return function(v,b){return function(O,te,k,m,v,b){switch(k){case Le.Months:return rt(te,v,m)[O.getMonth()];case Le.Days:return je(te,v,m)[O.getDay()];case Le.DayPeriods:const U=O.getHours(),Ge=O.getMinutes();if(b){const Zt=Ue(te),fn=He(te,v,m),rn=Zt.findIndex(bn=>{if(Array.isArray(bn)){const[Tn,Ln]=bn,Ur=U>=Tn.hours&&Ge>=Tn.minutes,Kn=U<Ln.hours||U===Ln.hours&&Ge<Ln.minutes;if(Tn.hours<Ln.hours){if(Ur&&Kn)return!0}else if(Ur||Kn)return!0}else if(bn.hours===U&&bn.minutes===Ge)return!0;return!1});if(-1!==rn)return fn[rn]}return Ct(te,v,m)[U<12?0:1];case Le.Eras:return ht(te,m)[O.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${k}`)}}(v,b,O,te,k,m)}}function Xe(O){return function(te,k,m){const v=-1*m,b=L(k,Fe.MinusSign),U=v>0?Math.floor(v/60):Math.ceil(v/60);switch(O){case z.Short:return(v>=0?"+":"")+Ut(U,2,b)+Ut(Math.abs(v%60),2,b);case z.ShortGMT:return"GMT"+(v>=0?"+":"")+Ut(U,1,b);case z.Long:return"GMT"+(v>=0?"+":"")+Ut(U,2,b)+":"+Ut(Math.abs(v%60),2,b);case z.Extended:return 0===m?"Z":(v>=0?"+":"")+Ut(U,2,b)+":"+Ut(Math.abs(v%60),2,b);default:throw new Error(`Unknown zone width "${O}"`)}}}function W(O){return Et(O.getFullYear(),O.getMonth(),O.getDate()+(4-O.getDay()))}function De(O,te=!1){return function(k,m){let v;if(te){const b=new Date(k.getFullYear(),k.getMonth(),1).getDay()-1,U=k.getDate();v=1+Math.floor((U+b)/7)}else{const b=W(k),U=function(O){const te=Et(O,0,1).getDay();return Et(O,0,1+(te<=4?4:11)-te)}(b.getFullYear()),Ge=b.getTime()-U.getTime();v=1+Math.round(Ge/6048e5)}return Ut(v,O,L(m,Fe.MinusSign))}}function Ee(O,te=!1){return function(k,m){return Ut(W(k).getFullYear(),O,L(m,Fe.MinusSign),te)}}const Q={};function N(O,te){O=O.replace(/:/g,"");const k=Date.parse("Jan 01, 1970 00:00:00 "+O)/6e4;return isNaN(k)?te:k}function dn(O){return O instanceof Date&&!isNaN(O.valueOf())}const cn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ft(O,te,k,m,v,b,U=!1){let Ge="",St=!1;if(isFinite(O)){let Zt=function(O){let m,v,b,U,Ge,te=Math.abs(O)+"",k=0;for((v=te.indexOf("."))>-1&&(te=te.replace(".","")),(b=te.search(/e/i))>0?(v<0&&(v=b),v+=+te.slice(b+1),te=te.substring(0,b)):v<0&&(v=te.length),b=0;"0"===te.charAt(b);b++);if(b===(Ge=te.length))m=[0],v=1;else{for(Ge--;"0"===te.charAt(Ge);)Ge--;for(v-=b,m=[],U=0;b<=Ge;b++,U++)m[U]=Number(te.charAt(b))}return v>22&&(m=m.splice(0,21),k=v-1,v=1),{digits:m,exponent:k,integerLen:v}}(O);U&&(Zt=function(O){if(0===O.digits[0])return O;const te=O.digits.length-O.integerLen;return O.exponent?O.exponent+=2:(0===te?O.digits.push(0,0):1===te&&O.digits.push(0),O.integerLen+=2),O}(Zt));let fn=te.minInt,rn=te.minFrac,bn=te.maxFrac;if(b){const Ii=b.match(cn);if(null===Ii)throw new Error(`${b} is not a valid digit info`);const Yt=Ii[1],io=Ii[3],_o=Ii[5];null!=Yt&&(fn=Tt(Yt)),null!=io&&(rn=Tt(io)),null!=_o?bn=Tt(_o):null!=io&&rn>bn&&(bn=rn)}!function(O,te,k){if(te>k)throw new Error(`The minimum number of digits after fraction (${te}) is higher than the maximum (${k}).`);let m=O.digits,v=m.length-O.integerLen;const b=Math.min(Math.max(te,v),k);let U=b+O.integerLen,Ge=m[U];if(U>0){m.splice(Math.max(O.integerLen,U));for(let rn=U;rn<m.length;rn++)m[rn]=0}else{v=Math.max(0,v),O.integerLen=1,m.length=Math.max(1,U=b+1),m[0]=0;for(let rn=1;rn<U;rn++)m[rn]=0}if(Ge>=5)if(U-1<0){for(let rn=0;rn>U;rn--)m.unshift(0),O.integerLen++;m.unshift(1),O.integerLen++}else m[U-1]++;for(;v<Math.max(0,b);v++)m.push(0);let St=0!==b;const Zt=te+O.integerLen,fn=m.reduceRight(function(rn,bn,Tn,Ln){return Ln[Tn]=(bn+=rn)<10?bn:bn-10,St&&(0===Ln[Tn]&&Tn>=Zt?Ln.pop():St=!1),bn>=10?1:0},0);fn&&(m.unshift(fn),O.integerLen++)}(Zt,rn,bn);let Tn=Zt.digits,Ln=Zt.integerLen;const Ur=Zt.exponent;let Kn=[];for(St=Tn.every(Ii=>!Ii);Ln<fn;Ln++)Tn.unshift(0);for(;Ln<0;Ln++)Tn.unshift(0);Ln>0?Kn=Tn.splice(Ln,Tn.length):(Kn=Tn,Tn=[0]);const Bi=[];for(Tn.length>=te.lgSize&&Bi.unshift(Tn.splice(-te.lgSize,Tn.length).join(""));Tn.length>te.gSize;)Bi.unshift(Tn.splice(-te.gSize,Tn.length).join(""));Tn.length&&Bi.unshift(Tn.join("")),Ge=Bi.join(L(k,m)),Kn.length&&(Ge+=L(k,v)+Kn.join("")),Ur&&(Ge+=L(k,Fe.Exponential)+"+"+Ur)}else Ge=L(k,Fe.Infinity);return Ge=O<0&&!St?te.negPre+Ge+te.negSuf:te.posPre+Ge+te.posSuf,Ge}function Rt(O,te,k,m,v){const U=J(ce(te,Y.Currency),L(te,Fe.MinusSign));return U.minFrac=x(m),U.maxFrac=U.minFrac,ft(O,U,te,Fe.CurrencyGroup,Fe.CurrencyDecimal,v).replace("\xa4",k).replace("\xa4","").trim()}function ee(O,te,k){return ft(O,J(ce(te,Y.Percent),L(te,Fe.MinusSign)),te,Fe.Group,Fe.Decimal,k,!0).replace(new RegExp("%","g"),L(te,Fe.PercentSign))}function be(O,te,k){return ft(O,J(ce(te,Y.Decimal),L(te,Fe.MinusSign)),te,Fe.Group,Fe.Decimal,k)}function J(O,te="-"){const k={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},m=O.split(";"),v=m[0],b=m[1],U=-1!==v.indexOf(".")?v.split("."):[v.substring(0,v.lastIndexOf("0")+1),v.substring(v.lastIndexOf("0")+1)],Ge=U[0],St=U[1]||"";k.posPre=Ge.substr(0,Ge.indexOf("#"));for(let fn=0;fn<St.length;fn++){const rn=St.charAt(fn);"0"===rn?k.minFrac=k.maxFrac=fn+1:"#"===rn?k.maxFrac=fn+1:k.posSuf+=rn}const Zt=Ge.split(",");if(k.gSize=Zt[1]?Zt[1].length:0,k.lgSize=Zt[2]||Zt[1]?(Zt[2]||Zt[1]).length:0,b){const fn=v.length-k.posPre.length-k.posSuf.length,rn=b.indexOf("#");k.negPre=b.substr(0,rn).replace(/'/g,""),k.negSuf=b.substr(rn+fn).replace(/'/g,"")}else k.negPre=te+k.posPre,k.negSuf=k.posSuf;return k}function Tt(O){const te=parseInt(O);if(isNaN(te))throw new Error("Invalid integer literal when parsing "+O);return te}class we{}function Ie(O,te,k,m){let v=`=${O}`;if(te.indexOf(v)>-1||(v=k.getPluralCategory(O,m),te.indexOf(v)>-1))return v;if(te.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${O}"`)}let me=(()=>{class O extends we{constructor(k){super(),this.locale=k}getPluralCategory(k,m){switch(wt(m||this.locale)(k)){case se.Zero:return"zero";case se.One:return"one";case se.Two:return"two";case se.Few:return"few";case se.Many:return"many";default:return"other"}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(o.LOCALE_ID))},O.\u0275prov=o.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})();function Ve(O,te,k){return(0,o.\u0275registerLocaleData)(O,te,k)}function at(O,te){te=encodeURIComponent(te);for(const k of O.split(";")){const m=k.indexOf("="),[v,b]=-1==m?[k,""]:[k.slice(0,m),k.slice(m+1)];if(v.trim()===te)return decodeURIComponent(b)}return null}let Ft=(()=>{class O{constructor(k,m,v,b){this._iterableDiffers=k,this._keyValueDiffers=m,this._ngEl=v,this._renderer=b,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(k){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof k?k.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(k){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof k?k.split(/\s+/):k,this._rawClass&&((0,o.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const k=this._iterableDiffer.diff(this._rawClass);k&&this._applyIterableChanges(k)}else if(this._keyValueDiffer){const k=this._keyValueDiffer.diff(this._rawClass);k&&this._applyKeyValueChanges(k)}}_applyKeyValueChanges(k){k.forEachAddedItem(m=>this._toggleClass(m.key,m.currentValue)),k.forEachChangedItem(m=>this._toggleClass(m.key,m.currentValue)),k.forEachRemovedItem(m=>{m.previousValue&&this._toggleClass(m.key,!1)})}_applyIterableChanges(k){k.forEachAddedItem(m=>{if("string"!=typeof m.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,o.\u0275stringify)(m.item)}`);this._toggleClass(m.item,!0)}),k.forEachRemovedItem(m=>this._toggleClass(m.item,!1))}_applyClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(m=>this._toggleClass(m,!0)):Object.keys(k).forEach(m=>this._toggleClass(m,!!k[m])))}_removeClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(m=>this._toggleClass(m,!1)):Object.keys(k).forEach(m=>this._toggleClass(m,!1)))}_toggleClass(k,m){(k=k.trim())&&k.split(/\s+/g).forEach(v=>{m?this._renderer.addClass(this._ngEl.nativeElement,v):this._renderer.removeClass(this._ngEl.nativeElement,v)})}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.IterableDiffers),o.\u0275\u0275directiveInject(o.KeyValueDiffers),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),O})(),$t=(()=>{class O{constructor(k){this._viewContainerRef=k,this._componentRef=null,this._moduleRef=null}ngOnChanges(k){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const m=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(k.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const U=m.get(o.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(U.injector)}else this._moduleRef=null;const b=(this._moduleRef?this._moduleRef.componentFactoryResolver:m.get(o.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(b,this._viewContainerRef.length,m,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[o.\u0275\u0275NgOnChangesFeature]}),O})();class qt{constructor(te,k,m,v){this.$implicit=te,this.ngForOf=k,this.index=m,this.count=v}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 Wt=(()=>{class O{constructor(k,m,v){this._viewContainer=k,this._template=m,this._differs=v,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(k){this._ngForOf=k,this._ngForOfDirty=!0}set ngForTrackBy(k){this._trackByFn=k}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(k){k&&(this._template=k)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const k=this._ngForOf;if(!this._differ&&k)try{this._differ=this._differs.find(k).create(this.ngForTrackBy)}catch(m){throw new Error(`Cannot find a differ supporting object '${k}' of type '${function(O){return O.name||typeof O}(k)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const k=this._differ.diff(this._ngForOf);k&&this._applyChanges(k)}}_applyChanges(k){const m=[];k.forEachOperation((v,b,U)=>{if(null==v.previousIndex){const Ge=this._viewContainer.createEmbeddedView(this._template,new qt(null,this._ngForOf,-1,-1),null===U?void 0:U),St=new Mn(v,Ge);m.push(St)}else if(null==U)this._viewContainer.remove(null===b?void 0:b);else if(null!==b){const Ge=this._viewContainer.get(b);this._viewContainer.move(Ge,U);const St=new Mn(v,Ge);m.push(St)}});for(let v=0;v<m.length;v++)this._perViewChange(m[v].view,m[v].record);for(let v=0,b=this._viewContainer.length;v<b;v++){const U=this._viewContainer.get(v);U.context.index=v,U.context.count=b,U.context.ngForOf=this._ngForOf}k.forEachIdentityChange(v=>{this._viewContainer.get(v.currentIndex).context.$implicit=v.item})}_perViewChange(k,m){k.context.$implicit=m.item}static ngTemplateContextGuard(k,m){return!0}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.IterableDiffers))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),O})();class Mn{constructor(te,k){this.record=te,this.view=k}}let bi=(()=>{class O{constructor(k,m){this._viewContainer=k,this._context=new li,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=m}set ngIf(k){this._context.$implicit=this._context.ngIf=k,this._updateView()}set ngIfThen(k){qn("ngIfThen",k),this._thenTemplateRef=k,this._thenViewRef=null,this._updateView()}set ngIfElse(k){qn("ngIfElse",k),this._elseTemplateRef=k,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(k,m){return!0}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),O})();class li{constructor(){this.$implicit=null,this.ngIf=null}}function qn(O,te){if(te&&!te.createEmbeddedView)throw new Error(`${O} must be a TemplateRef, but received '${(0,o.\u0275stringify)(te)}'.`)}class _i{constructor(te,k){this._viewContainerRef=te,this._templateRef=k,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(te){te&&!this._created?this.create():!te&&this._created&&this.destroy()}}let ei=(()=>{class O{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(k){this._ngSwitch=k,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(k){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(k)}_matchCase(k){const m=k==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||m,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),m}_updateDefaultCases(k){if(this._defaultViews&&k!==this._defaultUsed){this._defaultUsed=k;for(let m=0;m<this._defaultViews.length;m++)this._defaultViews[m].enforceState(k)}}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),O})(),xn=(()=>{class O{constructor(k,m,v){this.ngSwitch=v,v._addCase(),this._view=new _i(k,m)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(ei,9))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),O})(),Xi=(()=>{class O{constructor(k,m,v){v._addDefault(new _i(k,m))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(ei,9))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngSwitchDefault",""]]}),O})(),Cn=(()=>{class O{constructor(k){this._localization=k,this._caseViews={}}set ngPlural(k){this._switchValue=k,this._updateView()}addCase(k,m){this._caseViews[k]=m}_updateView(){this._clearViews();const k=Object.keys(this._caseViews),m=Ie(this._switchValue,k,this._localization);this._activateView(this._caseViews[m])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(k){k&&(this._activeView=k,this._activeView.create())}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(we))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),O})(),Ci=(()=>{class O{constructor(k,m,v,b){this.value=k;const U=!isNaN(Number(k));b.addCase(U?`=${k}`:k,new _i(v,m))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275injectAttribute("ngPluralCase"),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(Cn,1))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngPluralCase",""]]}),O})(),ci=(()=>{class O{constructor(k,m,v){this._ngEl=k,this._differs=m,this._renderer=v,this._ngStyle=null,this._differ=null}set ngStyle(k){this._ngStyle=k,!this._differ&&k&&(this._differ=this._differs.find(k).create())}ngDoCheck(){if(this._differ){const k=this._differ.diff(this._ngStyle);k&&this._applyChanges(k)}}_setStyle(k,m){const[v,b]=k.split(".");null!=(m=null!=m&&b?`${m}${b}`:m)?this._renderer.setStyle(this._ngEl.nativeElement,v,m):this._renderer.removeStyle(this._ngEl.nativeElement,v)}_applyChanges(k){k.forEachRemovedItem(m=>this._setStyle(m.key,null)),k.forEachAddedItem(m=>this._setStyle(m.key,m.currentValue)),k.forEachChangedItem(m=>this._setStyle(m.key,m.currentValue))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.KeyValueDiffers),o.\u0275\u0275directiveInject(o.Renderer2))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),O})(),ui=(()=>{class O{constructor(k){this._viewContainerRef=k,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(k){if(k.ngTemplateOutlet){const m=this._viewContainerRef;this._viewRef&&m.remove(m.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?m.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&k.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[o.\u0275\u0275NgOnChangesFeature]}),O})();const ni=[Ft,$t,Wt,bi,ui,ci,ei,xn,Xi,Cn,Ci];function Un(O,te){return Error(`InvalidPipeArgument: '${te}' for pipe '${(0,o.\u0275stringify)(O)}'`)}class kr{createSubscription(te,k){return te.subscribe({next:k,error:m=>{throw m}})}dispose(te){te.unsubscribe()}onDestroy(te){te.unsubscribe()}}class mr{createSubscription(te,k){return te.then(k,m=>{throw m})}dispose(te){}onDestroy(te){}}const qr=new mr,gr=new kr;let Fr=(()=>{class O{constructor(k){this._ref=k,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(k){return this._obj?k!==this._obj?(this._dispose(),this.transform(k)):this._latestValue:(k&&this._subscribe(k),this._latestValue)}_subscribe(k){this._obj=k,this._strategy=this._selectStrategy(k),this._subscription=this._strategy.createSubscription(k,m=>this._updateLatestValue(k,m))}_selectStrategy(k){if((0,o.\u0275isPromise)(k))return qr;if((0,o.\u0275isSubscribable)(k))return gr;throw Un(O,k)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(k,m){k===this._obj&&(this._latestValue=m,this._ref.markForCheck())}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"async",type:O,pure:!1}),O})(),Nr=(()=>{class O{transform(k){if(null==k)return null;if("string"!=typeof k)throw Un(O,k);return k.toLowerCase()}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"lowercase",type:O,pure:!0}),O})();const eo=/(?:[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 to=(()=>{class O{transform(k){if(null==k)return null;if("string"!=typeof k)throw Un(O,k);return k.replace(eo,m=>m[0].toUpperCase()+m.substr(1).toLowerCase())}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"titlecase",type:O,pure:!0}),O})(),Di=(()=>{class O{transform(k){if(null==k)return null;if("string"!=typeof k)throw Un(O,k);return k.toUpperCase()}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"uppercase",type:O,pure:!0}),O})(),po=(()=>{class O{constructor(k){this.locale=k}transform(k,m="mediumDate",v,b){if(null==k||""===k||k!=k)return null;try{return gt(k,m,b||this.locale,v)}catch(U){throw Un(O,U.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"date",type:O,pure:!0}),O})();const ii=/#/g;let Ti=(()=>{class O{constructor(k){this._localization=k}transform(k,m,v){if(null==k)return"";if("object"!=typeof m||null===m)throw Un(O,m);return m[Ie(k,Object.keys(m),this._localization,v)].replace(ii,k.toString())}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(we,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"i18nPlural",type:O,pure:!0}),O})(),mo=(()=>{class O{transform(k,m){if(null==k)return"";if("object"!=typeof m||"string"!=typeof k)throw Un(O,m);return m.hasOwnProperty(k)?m[k]:m.hasOwnProperty("other")?m.other:""}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"i18nSelect",type:O,pure:!0}),O})(),ko=(()=>{class O{transform(k){return JSON.stringify(k,null,2)}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"json",type:O,pure:!1}),O})(),Lr=(()=>{class O{constructor(k){this.differs=k,this.keyValues=[],this.compareFn=jr}transform(k,m=jr){if(!k||!(k instanceof Map)&&"object"!=typeof k)return null;this.differ||(this.differ=this.differs.find(k).create());const v=this.differ.diff(k),b=m!==this.compareFn;return v&&(this.keyValues=[],v.forEachItem(U=>{this.keyValues.push(function(O,te){return{key:O,value:te}}(U.key,U.currentValue))})),(v||b)&&(this.keyValues.sort(m),this.compareFn=m),this.keyValues}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.KeyValueDiffers,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"keyvalue",type:O,pure:!1}),O})();function jr(O,te){const k=O.key,m=te.key;if(k===m)return 0;if(void 0===k)return 1;if(void 0===m)return-1;if(null===k)return 1;if(null===m)return-1;if("string"==typeof k&&"string"==typeof m)return k<m?-1:1;if("number"==typeof k&&"number"==typeof m)return k-m;if("boolean"==typeof k&&"boolean"==typeof m)return k<m?-1:1;const v=String(k),b=String(m);return v==b?0:v<b?-1:1}let wi=(()=>{class O{constructor(k){this._locale=k}transform(k,m,v){if(!qi(k))return null;v=v||this._locale;try{return be(yr(k),v,m)}catch(b){throw Un(O,b.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"number",type:O,pure:!0}),O})(),Li=(()=>{class O{constructor(k){this._locale=k}transform(k,m,v){if(!qi(k))return null;v=v||this._locale;try{return ee(yr(k),v,m)}catch(b){throw Un(O,b.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"percent",type:O,pure:!0}),O})(),Br=(()=>{class O{constructor(k,m="USD"){this._locale=k,this._defaultCurrencyCode=m}transform(k,m=this._defaultCurrencyCode,v="symbol",b,U){if(!qi(k))return null;U=U||this._locale,"boolean"==typeof v&&(v=v?"symbol":"code");let Ge=m||this._defaultCurrencyCode;"code"!==v&&(Ge="symbol"===v||"symbol-narrow"===v?vt(Ge,"symbol"===v?"wide":"narrow",U):v);try{return Rt(yr(k),U,Ge,m,b)}catch(St){throw Un(O,St.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16),o.\u0275\u0275directiveInject(o.DEFAULT_CURRENCY_CODE,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"currency",type:O,pure:!0}),O})();function qi(O){return!(null==O||""===O||O!=O)}function yr(O){if("string"==typeof O&&!isNaN(Number(O)-parseFloat(O)))return Number(O);if("number"!=typeof O)throw new Error(`${O} is not a number`);return O}let yi=(()=>{class O{transform(k,m,v){if(null==k)return null;if(!this.supports(k))throw Un(O,k);return k.slice(m,v)}supports(k){return"string"==typeof k||Array.isArray(k)}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"slice",type:O,pure:!1}),O})();const er=[Fr,Di,Nr,ko,yi,wi,Li,to,Br,po,Ti,mo,Lr];let Mi=(()=>{class O{}return O.\u0275fac=function(k){return new(k||O)},O.\u0275mod=o.\u0275\u0275defineNgModule({type:O}),O.\u0275inj=o.\u0275\u0275defineInjector({providers:[{provide:we,useClass:me}]}),O})();const ji="browser",Vr="server",tr="browserWorkerApp",vr="browserWorkerUi";function br(O){return O===ji}function Hr(O){return O===Vr}function Si(O){return O===tr}function $r(O){return O===vr}const Rn=new o.Version("12.2.13");let Cr=(()=>{class O{}return O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({token:O,providedIn:"root",factory:()=>new no((0,o.\u0275\u0275inject)(w),window)}),O})();class no{constructor(te,k){this.document=te,this.window=k,this.offset=()=>[0,0]}setOffset(te){this.offset=Array.isArray(te)?()=>te:te}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(te){this.supportsScrolling()&&this.window.scrollTo(te[0],te[1])}scrollToAnchor(te){if(!this.supportsScrolling())return;const k=function(O,te){const k=O.getElementById(te)||O.getElementsByName(te)[0];if(k)return k;if("function"==typeof O.createTreeWalker&&O.body&&(O.body.createShadowRoot||O.body.attachShadow)){const m=O.createTreeWalker(O.body,NodeFilter.SHOW_ELEMENT);let v=m.currentNode;for(;v;){const b=v.shadowRoot;if(b){const U=b.getElementById(te)||b.querySelector(`[name="${te}"]`);if(U)return U}v=m.nextNode()}}return null}(this.document,te);k&&(this.scrollToElement(k),this.attemptFocus(k))}setHistoryScrollRestoration(te){if(this.supportScrollRestoration()){const k=this.window.history;k&&k.scrollRestoration&&(k.scrollRestoration=te)}}scrollToElement(te){const k=te.getBoundingClientRect(),m=k.left+this.window.pageXOffset,v=k.top+this.window.pageYOffset,b=this.offset();this.window.scrollTo(m-b[0],v-b[1])}attemptFocus(te){return te.focus(),this.document.activeElement===te}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const te=Er(this.window.history)||Er(Object.getPrototypeOf(this.window.history));return!(!te||!te.writable&&!te.set)}catch(te){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(te){return!1}}}function Er(O){return Object.getOwnPropertyDescriptor(O,"scrollRestoration")}class Tr{setOffset(te){}getScrollPosition(){return[0,0]}scrollToPosition(te){}scrollToAnchor(te){}setHistoryScrollRestoration(te){}}class go{}},6820:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{HTTP_INTERCEPTORS:()=>Ct,HttpBackend:()=>E,HttpClient:()=>st,HttpClientJsonpModule:()=>vt,HttpClientModule:()=>pt,HttpClientXsrfModule:()=>Ke,HttpContext:()=>lt,HttpContextToken:()=>$e,HttpErrorResponse:()=>Be,HttpEventType:()=>Y,HttpHandler:()=>g,HttpHeaderResponse:()=>_e,HttpHeaders:()=>M,HttpParams:()=>Ce,HttpRequest:()=>qe,HttpResponse:()=>fe,HttpResponseBase:()=>se,HttpUrlEncodingCodec:()=>S,HttpXhrBackend:()=>ae,HttpXsrfTokenExtractor:()=>ot,JsonpClientBackend:()=>$,JsonpInterceptor:()=>re,XhrFactory:()=>Qe,\u0275HttpInterceptingHandler:()=>Ue,\u0275angular_packages_common_http_http_a:()=>je,\u0275angular_packages_common_http_http_b:()=>dt,\u0275angular_packages_common_http_http_c:()=>q,\u0275angular_packages_common_http_http_d:()=>pe,\u0275angular_packages_common_http_http_e:()=>ke,\u0275angular_packages_common_http_http_f:()=>wt,\u0275angular_packages_common_http_http_g:()=>Je});var o=d(8583),l=d(7716),f=d(5917),_=d(9897),a=d(9773),w=d(5435),D=d(8002);class g{}class E{}class M{constructor(F){this.normalizedNames=new Map,this.lazyUpdate=null,F?this.lazyInit="string"==typeof F?()=>{this.headers=new Map,F.split("\n").forEach(R=>{const he=R.indexOf(":");if(he>0){const z=R.slice(0,he),ne=z.toLowerCase(),Le=R.slice(he+1).trim();this.maybeSetNormalizedName(z,ne),this.headers.has(ne)?this.headers.get(ne).push(Le):this.headers.set(ne,[Le])}})}:()=>{this.headers=new Map,Object.keys(F).forEach(R=>{let he=F[R];const z=R.toLowerCase();"string"==typeof he&&(he=[he]),he.length>0&&(this.headers.set(z,he),this.maybeSetNormalizedName(R,z))})}:this.headers=new Map}has(F){return this.init(),this.headers.has(F.toLowerCase())}get(F){this.init();const R=this.headers.get(F.toLowerCase());return R&&R.length>0?R[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(F){return this.init(),this.headers.get(F.toLowerCase())||null}append(F,R){return this.clone({name:F,value:R,op:"a"})}set(F,R){return this.clone({name:F,value:R,op:"s"})}delete(F,R){return this.clone({name:F,value:R,op:"d"})}maybeSetNormalizedName(F,R){this.normalizedNames.has(R)||this.normalizedNames.set(R,F)}init(){this.lazyInit&&(this.lazyInit instanceof M?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(F=>this.applyUpdate(F)),this.lazyUpdate=null))}copyFrom(F){F.init(),Array.from(F.headers.keys()).forEach(R=>{this.headers.set(R,F.headers.get(R)),this.normalizedNames.set(R,F.normalizedNames.get(R))})}clone(F){const R=new M;return R.lazyInit=this.lazyInit&&this.lazyInit instanceof M?this.lazyInit:this,R.lazyUpdate=(this.lazyUpdate||[]).concat([F]),R}applyUpdate(F){const R=F.name.toLowerCase();switch(F.op){case"a":case"s":let he=F.value;if("string"==typeof he&&(he=[he]),0===he.length)return;this.maybeSetNormalizedName(F.name,R);const z=("a"===F.op?this.headers.get(R):void 0)||[];z.push(...he),this.headers.set(R,z);break;case"d":const ne=F.value;if(ne){let Le=this.headers.get(R);if(!Le)return;Le=Le.filter(gt=>-1===ne.indexOf(gt)),0===Le.length?(this.headers.delete(R),this.normalizedNames.delete(R)):this.headers.set(R,Le)}else this.headers.delete(R),this.normalizedNames.delete(R)}}forEach(F){this.init(),Array.from(this.normalizedNames.keys()).forEach(R=>F(this.normalizedNames.get(R),this.headers.get(R)))}}class S{encodeKey(F){return oe(F)}encodeValue(F){return oe(F)}decodeKey(F){return decodeURIComponent(F)}decodeValue(F){return decodeURIComponent(F)}}const B=/%(\d[a-f0-9])/gi,j={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function oe(x){return encodeURIComponent(x).replace(B,(F,R)=>{var he;return null!==(he=j[R])&&void 0!==he?he:F})}function le(x){return`${x}`}class Ce{constructor(F={}){if(this.updates=null,this.cloneFrom=null,this.encoder=F.encoder||new S,F.fromString){if(F.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(x,F){const R=new Map;return x.length>0&&x.replace(/^\?/,"").split("&").forEach(z=>{const ne=z.indexOf("="),[Le,gt]=-1==ne?[F.decodeKey(z),""]:[F.decodeKey(z.slice(0,ne)),F.decodeValue(z.slice(ne+1))],Et=R.get(Le)||[];Et.push(gt),R.set(Le,Et)}),R}(F.fromString,this.encoder)}else F.fromObject?(this.map=new Map,Object.keys(F.fromObject).forEach(R=>{const he=F.fromObject[R];this.map.set(R,Array.isArray(he)?he:[he])})):this.map=null}has(F){return this.init(),this.map.has(F)}get(F){this.init();const R=this.map.get(F);return R?R[0]:null}getAll(F){return this.init(),this.map.get(F)||null}keys(){return this.init(),Array.from(this.map.keys())}append(F,R){return this.clone({param:F,value:R,op:"a"})}appendAll(F){const R=[];return Object.keys(F).forEach(he=>{const z=F[he];Array.isArray(z)?z.forEach(ne=>{R.push({param:he,value:ne,op:"a"})}):R.push({param:he,value:z,op:"a"})}),this.clone(R)}set(F,R){return this.clone({param:F,value:R,op:"s"})}delete(F,R){return this.clone({param:F,value:R,op:"d"})}toString(){return this.init(),this.keys().map(F=>{const R=this.encoder.encodeKey(F);return this.map.get(F).map(he=>R+"="+this.encoder.encodeValue(he)).join("&")}).filter(F=>""!==F).join("&")}clone(F){const R=new Ce({encoder:this.encoder});return R.cloneFrom=this.cloneFrom||this,R.updates=(this.updates||[]).concat(F),R}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(F=>this.map.set(F,this.cloneFrom.map.get(F))),this.updates.forEach(F=>{switch(F.op){case"a":case"s":const R=("a"===F.op?this.map.get(F.param):void 0)||[];R.push(le(F.value)),this.map.set(F.param,R);break;case"d":if(void 0===F.value){this.map.delete(F.param);break}{let he=this.map.get(F.param)||[];const z=he.indexOf(le(F.value));-1!==z&&he.splice(z,1),he.length>0?this.map.set(F.param,he):this.map.delete(F.param)}}}),this.cloneFrom=this.updates=null)}}class $e{constructor(F){this.defaultValue=F}}class lt{constructor(){this.map=new Map}set(F,R){return this.map.set(F,R),this}get(F){return this.map.has(F)||this.map.set(F,F.defaultValue()),this.map.get(F)}delete(F){return this.map.delete(F),this}keys(){return this.map.keys()}}function Me(x){return"undefined"!=typeof ArrayBuffer&&x instanceof ArrayBuffer}function Oe(x){return"undefined"!=typeof Blob&&x instanceof Blob}function Pe(x){return"undefined"!=typeof FormData&&x instanceof FormData}class qe{constructor(F,R,he,z){let ne;if(this.url=R,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=F.toUpperCase(),function(x){switch(x){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||z?(this.body=void 0!==he?he:null,ne=z):ne=he,ne&&(this.reportProgress=!!ne.reportProgress,this.withCredentials=!!ne.withCredentials,ne.responseType&&(this.responseType=ne.responseType),ne.headers&&(this.headers=ne.headers),ne.context&&(this.context=ne.context),ne.params&&(this.params=ne.params)),this.headers||(this.headers=new M),this.context||(this.context=new lt),this.params){const Le=this.params.toString();if(0===Le.length)this.urlWithParams=R;else{const gt=R.indexOf("?");this.urlWithParams=R+(-1===gt?"?":gt<R.length-1?"&":"")+Le}}else this.params=new Ce,this.urlWithParams=R}serializeBody(){return null===this.body?null:Me(this.body)||Oe(this.body)||Pe(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof Ce?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||Pe(this.body)?null:Oe(this.body)?this.body.type||null:Me(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Ce?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(F={}){var R;const he=F.method||this.method,z=F.url||this.url,ne=F.responseType||this.responseType,Le=void 0!==F.body?F.body:this.body,gt=void 0!==F.withCredentials?F.withCredentials:this.withCredentials,Et=void 0!==F.reportProgress?F.reportProgress:this.reportProgress;let xt=F.headers||this.headers,Nt=F.params||this.params;const Ut=null!==(R=F.context)&&void 0!==R?R:this.context;return void 0!==F.setHeaders&&(xt=Object.keys(F.setHeaders).reduce((Qt,At)=>Qt.set(At,F.setHeaders[At]),xt)),F.setParams&&(Nt=Object.keys(F.setParams).reduce((Qt,At)=>Qt.set(At,F.setParams[At]),Nt)),new qe(he,z,Le,{params:Nt,headers:xt,context:Ut,reportProgress:Et,responseType:ne,withCredentials:gt})}}var Y=(()=>((Y=Y||{})[Y.Sent=0]="Sent",Y[Y.UploadProgress=1]="UploadProgress",Y[Y.ResponseHeader=2]="ResponseHeader",Y[Y.DownloadProgress=3]="DownloadProgress",Y[Y.Response=4]="Response",Y[Y.User=5]="User",Y))();class se{constructor(F,R=200,he="OK"){this.headers=F.headers||new M,this.status=void 0!==F.status?F.status:R,this.statusText=F.statusText||he,this.url=F.url||null,this.ok=this.status>=200&&this.status<300}}class _e extends se{constructor(F={}){super(F),this.type=Y.ResponseHeader}clone(F={}){return new _e({headers:F.headers||this.headers,status:void 0!==F.status?F.status:this.status,statusText:F.statusText||this.statusText,url:F.url||this.url||void 0})}}class fe extends se{constructor(F={}){super(F),this.type=Y.Response,this.body=void 0!==F.body?F.body:null}clone(F={}){return new fe({body:void 0!==F.body?F.body:this.body,headers:F.headers||this.headers,status:void 0!==F.status?F.status:this.status,statusText:F.statusText||this.statusText,url:F.url||this.url||void 0})}}class Be extends se{constructor(F){super(F,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${F.url||"(unknown url)"}`:`Http failure response for ${F.url||"(unknown url)"}: ${F.status} ${F.statusText}`,this.error=F.error||null}}function Fe(x,F){return{body:F,headers:x.headers,context:x.context,observe:x.observe,params:x.params,reportProgress:x.reportProgress,responseType:x.responseType,withCredentials:x.withCredentials}}let st=(()=>{class x{constructor(R){this.handler=R}request(R,he,z={}){let ne;if(R instanceof qe)ne=R;else{let Et,xt;Et=z.headers instanceof M?z.headers:new M(z.headers),z.params&&(xt=z.params instanceof Ce?z.params:new Ce({fromObject:z.params})),ne=new qe(R,he,void 0!==z.body?z.body:null,{headers:Et,context:z.context,params:xt,reportProgress:z.reportProgress,responseType:z.responseType||"json",withCredentials:z.withCredentials})}const Le=(0,f.of)(ne).pipe(function(x,F){return(0,a.zg)(x,void 0,1)}(Et=>this.handler.handle(Et)));if(R instanceof qe||"events"===z.observe)return Le;const gt=Le.pipe((0,w.h)(Et=>Et instanceof fe));switch(z.observe||"body"){case"body":switch(ne.responseType){case"arraybuffer":return gt.pipe((0,D.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Et.body}));case"blob":return gt.pipe((0,D.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof Blob))throw new Error("Response is not a Blob.");return Et.body}));case"text":return gt.pipe((0,D.U)(Et=>{if(null!==Et.body&&"string"!=typeof Et.body)throw new Error("Response is not a string.");return Et.body}));case"json":default:return gt.pipe((0,D.U)(Et=>Et.body))}case"response":return gt;default:throw new Error(`Unreachable: unhandled observe type ${z.observe}}`)}}delete(R,he={}){return this.request("DELETE",R,he)}get(R,he={}){return this.request("GET",R,he)}head(R,he={}){return this.request("HEAD",R,he)}jsonp(R,he){return this.request("JSONP",R,{params:(new Ce).append(he,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(R,he={}){return this.request("OPTIONS",R,he)}patch(R,he,z={}){return this.request("PATCH",R,Fe(z,he))}post(R,he,z={}){return this.request("POST",R,Fe(z,he))}put(R,he,z={}){return this.request("PUT",R,Fe(z,he))}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(g))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();class ct{constructor(F,R){this.next=F,this.interceptor=R}handle(F){return this.interceptor.intercept(F,this.next)}}const Ct=new l.InjectionToken("HTTP_INTERCEPTORS");let je=(()=>{class x{intercept(R,he){return he.handle(R)}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),rt=0;class dt{}let $=(()=>{class x{constructor(R,he){this.callbackMap=R,this.document=he,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+rt++}handle(R){if("JSONP"!==R.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==R.responseType)throw new Error("JSONP requests must use Json response type.");return new _.y(he=>{const z=this.nextCallback(),ne=R.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${z}$1`),Le=this.document.createElement("script");Le.src=ne;let gt=null,Et=!1,xt=!1;this.callbackMap[z]=At=>{delete this.callbackMap[z],!xt&&(gt=At,Et=!0)};const Nt=()=>{Le.parentNode&&Le.parentNode.removeChild(Le),delete this.callbackMap[z]},Ut=At=>{xt||this.resolvedPromise.then(()=>{Nt(),Et?(he.next(new fe({body:gt,status:200,statusText:"OK",url:ne})),he.complete()):he.error(new Be({url:ne,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},Qt=At=>{xt||(Nt(),he.error(new Be({error:At,status:0,statusText:"JSONP Error",url:ne})))};return Le.addEventListener("load",Ut),Le.addEventListener("error",Qt),this.document.body.appendChild(Le),he.next({type:Y.Sent}),()=>{xt=!0,Le.removeEventListener("load",Ut),Le.removeEventListener("error",Qt),Nt()}})}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(dt),l.\u0275\u0275inject(o.DOCUMENT))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),re=(()=>{class x{constructor(R){this.jsonp=R}intercept(R,he){return"JSONP"===R.method?this.jsonp.handle(R):he.handle(R)}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject($))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();const L=/^\)\]\}',?\n/;let ae=(()=>{class x{constructor(R){this.xhrFactory=R}handle(R){if("JSONP"===R.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _.y(he=>{const z=this.xhrFactory.build();if(z.open(R.method,R.urlWithParams),R.withCredentials&&(z.withCredentials=!0),R.headers.forEach((At,Lt)=>z.setRequestHeader(At,Lt.join(","))),R.headers.has("Accept")||z.setRequestHeader("Accept","application/json, text/plain, */*"),!R.headers.has("Content-Type")){const At=R.detectContentTypeHeader();null!==At&&z.setRequestHeader("Content-Type",At)}if(R.responseType){const At=R.responseType.toLowerCase();z.responseType="json"!==At?At:"text"}const ne=R.serializeBody();let Le=null;const gt=()=>{if(null!==Le)return Le;const At=1223===z.status?204:z.status,Lt=z.statusText||"OK",jt=new M(z.getAllResponseHeaders()),_n=function(x){return"responseURL"in x&&x.responseURL?x.responseURL:/^X-Request-URL:/m.test(x.getAllResponseHeaders())?x.getResponseHeader("X-Request-URL"):null}(z)||R.url;return Le=new _e({headers:jt,status:At,statusText:Lt,url:_n}),Le},Et=()=>{let{headers:At,status:Lt,statusText:jt,url:_n}=gt(),Xe=null;204!==Lt&&(Xe=void 0===z.response?z.responseText:z.response),0===Lt&&(Lt=Xe?200:0);let Pt=Lt>=200&&Lt<300;if("json"===R.responseType&&"string"==typeof Xe){const V=Xe;Xe=Xe.replace(L,"");try{Xe=""!==Xe?JSON.parse(Xe):null}catch(K){Xe=V,Pt&&(Pt=!1,Xe={error:K,text:Xe})}}Pt?(he.next(new fe({body:Xe,headers:At,status:Lt,statusText:jt,url:_n||void 0})),he.complete()):he.error(new Be({error:Xe,headers:At,status:Lt,statusText:jt,url:_n||void 0}))},xt=At=>{const{url:Lt}=gt(),jt=new Be({error:At,status:z.status||0,statusText:z.statusText||"Unknown Error",url:Lt||void 0});he.error(jt)};let Nt=!1;const Ut=At=>{Nt||(he.next(gt()),Nt=!0);let Lt={type:Y.DownloadProgress,loaded:At.loaded};At.lengthComputable&&(Lt.total=At.total),"text"===R.responseType&&!!z.responseText&&(Lt.partialText=z.responseText),he.next(Lt)},Qt=At=>{let Lt={type:Y.UploadProgress,loaded:At.loaded};At.lengthComputable&&(Lt.total=At.total),he.next(Lt)};return z.addEventListener("load",Et),z.addEventListener("error",xt),z.addEventListener("timeout",xt),z.addEventListener("abort",xt),R.reportProgress&&(z.addEventListener("progress",Ut),null!==ne&&z.upload&&z.upload.addEventListener("progress",Qt)),z.send(ne),he.next({type:Y.Sent}),()=>{z.removeEventListener("error",xt),z.removeEventListener("abort",xt),z.removeEventListener("load",Et),z.removeEventListener("timeout",xt),R.reportProgress&&(z.removeEventListener("progress",Ut),null!==ne&&z.upload&&z.upload.removeEventListener("progress",Qt)),z.readyState!==z.DONE&&z.abort()}})}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(o.XhrFactory))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();const pe=new l.InjectionToken("XSRF_COOKIE_NAME"),ke=new l.InjectionToken("XSRF_HEADER_NAME");class ot{}let wt=(()=>{class x{constructor(R,he,z){this.doc=R,this.platform=he,this.cookieName=z,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const R=this.doc.cookie||"";return R!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,o.\u0275parseCookieValue)(R,this.cookieName),this.lastCookieString=R),this.lastToken}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(l.PLATFORM_ID),l.\u0275\u0275inject(pe))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),Je=(()=>{class x{constructor(R,he){this.tokenService=R,this.headerName=he}intercept(R,he){const z=R.url.toLowerCase();if("GET"===R.method||"HEAD"===R.method||z.startsWith("http://")||z.startsWith("https://"))return he.handle(R);const ne=this.tokenService.getToken();return null!==ne&&!R.headers.has(this.headerName)&&(R=R.clone({headers:R.headers.set(this.headerName,ne)})),he.handle(R)}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(ot),l.\u0275\u0275inject(ke))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),Ue=(()=>{class x{constructor(R,he){this.backend=R,this.injector=he,this.chain=null}handle(R){if(null===this.chain){const he=this.injector.get(Ct,[]);this.chain=he.reduceRight((z,ne)=>new ct(z,ne),this.backend)}return this.chain.handle(R)}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(E),l.\u0275\u0275inject(l.Injector))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();function q(){return"object"==typeof window?window:{}}let Ke=(()=>{class x{static disable(){return{ngModule:x,providers:[{provide:Je,useClass:je}]}}static withOptions(R={}){return{ngModule:x,providers:[R.cookieName?{provide:pe,useValue:R.cookieName}:[],R.headerName?{provide:ke,useValue:R.headerName}:[]]}}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=l.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=l.\u0275\u0275defineInjector({providers:[Je,{provide:Ct,useExisting:Je,multi:!0},{provide:ot,useClass:wt},{provide:pe,useValue:"XSRF-TOKEN"},{provide:ke,useValue:"X-XSRF-TOKEN"}]}),x})(),pt=(()=>{class x{}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=l.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=l.\u0275\u0275defineInjector({providers:[st,{provide:g,useClass:Ue},ae,{provide:E,useExisting:ae}],imports:[[Ke.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),x})(),vt=(()=>{class x{}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=l.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=l.\u0275\u0275defineInjector({providers:[$,{provide:dt,useFactory:q},{provide:Ct,useClass:re,multi:!0}]}),x})();const Qe=o.XhrFactory},7716:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Cb,APP_BOOTSTRAP_LISTENER:()=>uv,APP_ID:()=>ov,APP_INITIALIZER:()=>lh,ApplicationInitStatus:()=>Ss,ApplicationModule:()=>oS,ApplicationRef:()=>xa,Attribute:()=>ef,COMPILER_OPTIONS:()=>_v,CUSTOM_ELEMENTS_SCHEMA:()=>Uf,ChangeDetectionStrategy:()=>R,ChangeDetectorRef:()=>Pd,Compiler:()=>Oa,CompilerFactory:()=>yv,Component:()=>rM,ComponentFactory:()=>bs,ComponentFactoryResolver:()=>Cs,ComponentRef:()=>Cd,ContentChild:()=>Db,ContentChildren:()=>Eb,DEFAULT_CURRENCY_CODE:()=>hv,DebugElement:()=>nS,DebugEventListener:()=>jv,DebugNode:()=>tS,DefaultIterableDiffer:()=>v_,Directive:()=>ev,ElementRef:()=>cr,EmbeddedViewRef:()=>WM,ErrorHandler:()=>Xo,EventEmitter:()=>xr,Host:()=>uf,HostBinding:()=>lM,HostListener:()=>cM,INJECTOR:()=>co,Inject:()=>Go,InjectFlags:()=>q,Injectable:()=>vD,InjectionToken:()=>jn,Injector:()=>In,Input:()=>sM,IterableDiffers:()=>Tl,KeyValueDiffers:()=>wl,LOCALE_ID:()=>kl,MissingTranslationStrategy:()=>Rr,ModuleWithComponentFactories:()=>pv,NO_ERRORS_SCHEMA:()=>zf,NgModule:()=>fM,NgModuleFactory:()=>Ad,NgModuleFactoryLoader:()=>BM,NgModuleRef:()=>uo,NgProbeToken:()=>kM,NgZone:()=>Ni,Optional:()=>Wr,Output:()=>aM,PACKAGE_ROOT_URL:()=>mM,PLATFORM_ID:()=>cv,PLATFORM_INITIALIZER:()=>lv,Pipe:()=>oM,PlatformRef:()=>vh,Query:()=>Us,QueryList:()=>Sa,ReflectiveInjector:()=>gs,ReflectiveKey:()=>Xr,Renderer2:()=>m_,RendererFactory2:()=>Dl,RendererStyleFlags2:()=>Ir,ResolvedReflectiveFactory:()=>jm,Sanitizer:()=>Dd,SecurityContext:()=>Bn,Self:()=>Qo,SimpleChange:()=>er,SkipSelf:()=>Kr,SystemJsNgModuleLoader:()=>zM,SystemJsNgModuleLoaderConfig:()=>Fv,TRANSLATIONS:()=>gM,TRANSLATIONS_FORMAT:()=>_M,TemplateRef:()=>Po,Testability:()=>Ev,TestabilityRegistry:()=>ph,Type:()=>Ga,VERSION:()=>Td,Version:()=>y_,ViewChild:()=>wb,ViewChildren:()=>Tb,ViewContainerRef:()=>ga,ViewEncapsulation:()=>ne,ViewRef:()=>Lv,WrappedValue:()=>Gi,asNativeElements:()=>KM,assertPlatform:()=>Pv,createPlatform:()=>Sv,createPlatformFactory:()=>Iv,defineInjectable:()=>re,destroyPlatform:()=>FM,enableProdMode:()=>PM,forwardRef:()=>M,getDebugNode:()=>Zn,getModuleFactory:()=>HM,getPlatform:()=>yh,inject:()=>Lb,isDevMode:()=>gh,platformCore:()=>iS,resolveForwardRef:()=>S,setTestabilityGetter:()=>IM,\u02750:()=>cf,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>_h,\u0275APP_ID_RANDOM_PROVIDER:()=>av,\u0275CREATE_ATTRIBUTE_DECORATOR__POST_R3__:()=>qh,\u0275ChangeDetectorStatus:()=>he,\u0275CodegenComponentFactoryResolver:()=>n0,\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__:()=>gv,\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__:()=>uh,\u0275Compiler_compileModuleAsync__POST_R3__:()=>mv,\u0275Compiler_compileModuleSync__POST_R3__:()=>Fl,\u0275ComponentFactory:()=>bs,\u0275Console:()=>dv,\u0275DEFAULT_LOCALE_ID:()=>ca,\u0275EMPTY_ARRAY:()=>Lt,\u0275EMPTY_MAP:()=>j0,\u0275INJECTOR_IMPL__POST_R3__:()=>sm,\u0275INJECTOR_SCOPE:()=>ea,\u0275LifecycleHooksFeature:()=>Dm,\u0275LocaleDataIndex:()=>Jt,\u0275NG_COMP_DEF:()=>jt,\u0275NG_DIR_DEF:()=>_n,\u0275NG_ELEMENT_ID:()=>W,\u0275NG_INJ_DEF:()=>Je,\u0275NG_MOD_DEF:()=>Pt,\u0275NG_PIPE_DEF:()=>Xe,\u0275NG_PROV_DEF:()=>wt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>Oo,\u0275NO_CHANGE:()=>on,\u0275NgModuleFactory:()=>xl,\u0275NoopNgZone:()=>Cv,\u0275ReflectionCapabilities:()=>zo,\u0275Render3ComponentFactory:()=>Ud,\u0275Render3ComponentRef:()=>ny,\u0275Render3NgModuleRef:()=>ay,\u0275RuntimeError:()=>j,\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__:()=>E_,\u0275SWITCH_COMPILE_COMPONENT__POST_R3__:()=>tv,\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__:()=>nv,\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__:()=>Rm,\u0275SWITCH_COMPILE_NGMODULE__POST_R3__:()=>rv,\u0275SWITCH_COMPILE_PIPE__POST_R3__:()=>iv,\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__:()=>f_,\u0275SWITCH_IVY_ENABLED__POST_R3__:()=>fv,\u0275SWITCH_RENDERER2_FACTORY__POST_R3__:()=>g_,\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__:()=>M_,\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__:()=>I_,\u0275_sanitizeHtml:()=>Sf,\u0275_sanitizeUrl:()=>Ks,\u0275allowSanitizationBypassAndThrow:()=>Zo,\u0275and:()=>sS,\u0275angular_packages_core_core_a:()=>P,\u0275angular_packages_core_core_b:()=>sf,\u0275angular_packages_core_core_ba:()=>Gv,\u0275angular_packages_core_core_bb:()=>Fg,\u0275angular_packages_core_core_bc:()=>Ol,\u0275angular_packages_core_core_bd:()=>M0,\u0275angular_packages_core_core_be:()=>ji,\u0275angular_packages_core_core_bf:()=>ty,\u0275angular_packages_core_core_bg:()=>Wh,\u0275angular_packages_core_core_bh:()=>Mt,\u0275angular_packages_core_core_bi:()=>Te,\u0275angular_packages_core_core_bj:()=>Ls,\u0275angular_packages_core_core_bl:()=>zd,\u0275angular_packages_core_core_bm:()=>Wd,\u0275angular_packages_core_core_bn:()=>Kd,\u0275angular_packages_core_core_bo:()=>Gd,\u0275angular_packages_core_core_bp:()=>Qd,\u0275angular_packages_core_core_bq:()=>Rf,\u0275angular_packages_core_core_br:()=>zr,\u0275angular_packages_core_core_bs:()=>ro,\u0275angular_packages_core_core_bv:()=>C,\u0275angular_packages_core_core_bw:()=>Jc,\u0275angular_packages_core_core_bx:()=>pt,\u0275angular_packages_core_core_bz:()=>St,\u0275angular_packages_core_core_c:()=>Ko,\u0275angular_packages_core_core_cb:()=>bc,\u0275angular_packages_core_core_cc:()=>i_,\u0275angular_packages_core_core_d:()=>Um,\u0275angular_packages_core_core_e:()=>oa,\u0275angular_packages_core_core_f:()=>Bm,\u0275angular_packages_core_core_g:()=>sv,\u0275angular_packages_core_core_h:()=>__,\u0275angular_packages_core_core_i:()=>h_,\u0275angular_packages_core_core_j:()=>Io,\u0275angular_packages_core_core_k:()=>VM,\u0275angular_packages_core_core_l:()=>S_,\u0275angular_packages_core_core_m:()=>ma,\u0275angular_packages_core_core_n:()=>P_,\u0275angular_packages_core_core_o:()=>Ra,\u0275angular_packages_core_core_p:()=>Jn,\u0275angular_packages_core_core_q:()=>ZM,\u0275angular_packages_core_core_r:()=>D_,\u0275angular_packages_core_core_s:()=>wd,\u0275angular_packages_core_core_t:()=>Md,\u0275angular_packages_core_core_u:()=>Sd,\u0275angular_packages_core_core_v:()=>Id,\u0275angular_packages_core_core_w:()=>Uv,\u0275angular_packages_core_core_x:()=>zv,\u0275angular_packages_core_core_y:()=>Wv,\u0275angular_packages_core_core_z:()=>Kv,\u0275bypassSanitizationTrustHtml:()=>Zb,\u0275bypassSanitizationTrustResourceUrl:()=>tC,\u0275bypassSanitizationTrustScript:()=>qb,\u0275bypassSanitizationTrustStyle:()=>Xb,\u0275bypassSanitizationTrustUrl:()=>eC,\u0275ccf:()=>nw,\u0275clearOverrides:()=>uI,\u0275clearResolutionOfComponentResourcesQueue:()=>mf,\u0275cmf:()=>dI,\u0275compileComponent:()=>$y,\u0275compileDirective:()=>ah,\u0275compileNgModule:()=>Ny,\u0275compileNgModuleDefs:()=>Ly,\u0275compileNgModuleFactory__POST_R3__:()=>wv,\u0275compilePipe:()=>Xy,\u0275createInjector:()=>nm,\u0275crt:()=>I0,\u0275defaultIterableDiffers:()=>T_,\u0275defaultKeyValueDiffers:()=>w_,\u0275detectChanges:()=>qp,\u0275devModeEqual:()=>au,\u0275did:()=>yw,\u0275eld:()=>aS,\u0275findLocaleData:()=>dd,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>ky,\u0275getComponentViewDefinitionFactory:()=>K_,\u0275getDebugNodeR2:()=>qM,\u0275getDebugNode__POST_R3__:()=>Ll,\u0275getDirectives:()=>gm,\u0275getHostElement:()=>iu,\u0275getInjectableDef:()=>ce,\u0275getLContext:()=>di,\u0275getLocaleCurrencyCode:()=>aT,\u0275getLocalePluralCase:()=>Rg,\u0275getModuleFactory__POST_R3__:()=>xv,\u0275getSanitizationBypassType:()=>vf,\u0275global:()=>Nt,\u0275initServicesIfNeeded:()=>La,\u0275inlineInterpolate:()=>L0,\u0275interpolate:()=>N0,\u0275isBoundToModule__POST_R3__:()=>Mv,\u0275isDefaultChangeDetectionStrategy:()=>z,\u0275isListLikeIterable:()=>ia,\u0275isObservable:()=>Pu,\u0275isPromise:()=>Iu,\u0275isSubscribable:()=>Qm,\u0275ivyEnabled:()=>Aa,\u0275makeDecorator:()=>$o,\u0275markDirty:()=>em,\u0275mod:()=>U0,\u0275mpd:()=>$0,\u0275ncd:()=>CS,\u0275noSideEffects:()=>F,\u0275nov:()=>uw,\u0275overrideComponentView:()=>cI,\u0275overrideProvider:()=>lI,\u0275pad:()=>TS,\u0275patchComponentDefWithScope:()=>rh,\u0275pid:()=>vw,\u0275pod:()=>wS,\u0275ppd:()=>DS,\u0275prd:()=>bw,\u0275publishDefaultGlobalUtils:()=>tD,\u0275publishGlobalUtil:()=>Ki,\u0275qud:()=>_S,\u0275registerLocaleData:()=>sT,\u0275registerModuleFactory:()=>xw,\u0275registerNgModuleType:()=>oy,\u0275renderComponent:()=>nD,\u0275resetCompiledComponents:()=>Qw,\u0275resetJitOptions:()=>Kw,\u0275resolveComponentResources:()=>ff,\u0275setClassMetadata:()=>iy,\u0275setCurrentInjector:()=>Eo,\u0275setDocument:()=>Dr,\u0275setLocaleId:()=>vl,\u0275store:()=>Sm,\u0275stringify:()=>D,\u0275ted:()=>PS,\u0275transitiveScopesFor:()=>Pa,\u0275unregisterLocaleData:()=>lT,\u0275unv:()=>S0,\u0275unwrapSafeValue:()=>Gr,\u0275vid:()=>RS,\u0275whenRendered:()=>iD,\u0275\u0275CopyDefinitionFeature:()=>wm,\u0275\u0275FactoryTarget:()=>Gn,\u0275\u0275InheritDefinitionFeature:()=>ou,\u0275\u0275NgOnChangesFeature:()=>Mi,\u0275\u0275ProvidersFeature:()=>c_,\u0275\u0275advance:()=>Cp,\u0275\u0275attribute:()=>cu,\u0275\u0275attributeInterpolate1:()=>uu,\u0275\u0275attributeInterpolate2:()=>du,\u0275\u0275attributeInterpolate3:()=>hu,\u0275\u0275attributeInterpolate4:()=>fu,\u0275\u0275attributeInterpolate5:()=>pu,\u0275\u0275attributeInterpolate6:()=>mu,\u0275\u0275attributeInterpolate7:()=>gu,\u0275\u0275attributeInterpolate8:()=>_u,\u0275\u0275attributeInterpolateV:()=>yu,\u0275\u0275classMap:()=>ag,\u0275\u0275classMapInterpolate1:()=>mg,\u0275\u0275classMapInterpolate2:()=>gg,\u0275\u0275classMapInterpolate3:()=>_g,\u0275\u0275classMapInterpolate4:()=>yg,\u0275\u0275classMapInterpolate5:()=>vg,\u0275\u0275classMapInterpolate6:()=>bg,\u0275\u0275classMapInterpolate7:()=>Cg,\u0275\u0275classMapInterpolate8:()=>Eg,\u0275\u0275classMapInterpolateV:()=>Dg,\u0275\u0275classProp:()=>Uu,\u0275\u0275contentQuery:()=>Iy,\u0275\u0275defineComponent:()=>Ee,\u0275\u0275defineDirective:()=>dn,\u0275\u0275defineInjectable:()=>$,\u0275\u0275defineInjector:()=>L,\u0275\u0275defineNgModule:()=>it,\u0275\u0275definePipe:()=>cn,\u0275\u0275directiveInject:()=>aa,\u0275\u0275disableBindings:()=>Fs,\u0275\u0275element:()=>Wm,\u0275\u0275elementContainer:()=>Km,\u0275\u0275elementContainerEnd:()=>Su,\u0275\u0275elementContainerStart:()=>Mu,\u0275\u0275elementEnd:()=>wu,\u0275\u0275elementStart:()=>Tu,\u0275\u0275enableBindings:()=>ks,\u0275\u0275getCurrentView:()=>Gm,\u0275\u0275getInheritedFactory:()=>Xh,\u0275\u0275hostProperty:()=>cd,\u0275\u0275i18n:()=>r_,\u0275\u0275i18nApply:()=>s_,\u0275\u0275i18nAttributes:()=>o_,\u0275\u0275i18nEnd:()=>md,\u0275\u0275i18nExp:()=>gd,\u0275\u0275i18nPostprocess:()=>a_,\u0275\u0275i18nStart:()=>pd,\u0275\u0275inject:()=>$n,\u0275\u0275injectAttribute:()=>Xl,\u0275\u0275invalidFactory:()=>zm,\u0275\u0275invalidFactoryDep:()=>oc,\u0275\u0275listener:()=>Au,\u0275\u0275loadQuery:()=>Py,\u0275\u0275namespaceHTML:()=>tn,\u0275\u0275namespaceMathML:()=>Kt,\u0275\u0275namespaceSVG:()=>Bt,\u0275\u0275nextContext:()=>Zm,\u0275\u0275ngDeclareClassMetadata:()=>mI,\u0275\u0275ngDeclareComponent:()=>gI,\u0275\u0275ngDeclareDirective:()=>pI,\u0275\u0275ngDeclareFactory:()=>_I,\u0275\u0275ngDeclareInjectable:()=>vI,\u0275\u0275ngDeclareInjector:()=>bI,\u0275\u0275ngDeclareNgModule:()=>CI,\u0275\u0275ngDeclarePipe:()=>EI,\u0275\u0275pipe:()=>yy,\u0275\u0275pipeBind1:()=>vy,\u0275\u0275pipeBind2:()=>by,\u0275\u0275pipeBind3:()=>Cy,\u0275\u0275pipeBind4:()=>Ey,\u0275\u0275pipeBindV:()=>Dy,\u0275\u0275projection:()=>qm,\u0275\u0275projectionDef:()=>Xm,\u0275\u0275property:()=>Eu,\u0275\u0275propertyInterpolate:()=>Ru,\u0275\u0275propertyInterpolate1:()=>pl,\u0275\u0275propertyInterpolate2:()=>ku,\u0275\u0275propertyInterpolate3:()=>Fu,\u0275\u0275propertyInterpolate4:()=>Nu,\u0275\u0275propertyInterpolate5:()=>Lu,\u0275\u0275propertyInterpolate6:()=>ju,\u0275\u0275propertyInterpolate7:()=>Bu,\u0275\u0275propertyInterpolate8:()=>Vu,\u0275\u0275propertyInterpolateV:()=>Hu,\u0275\u0275pureFunction0:()=>ly,\u0275\u0275pureFunction1:()=>cy,\u0275\u0275pureFunction2:()=>uy,\u0275\u0275pureFunction3:()=>dy,\u0275\u0275pureFunction4:()=>hy,\u0275\u0275pureFunction5:()=>fy,\u0275\u0275pureFunction6:()=>py,\u0275\u0275pureFunction7:()=>my,\u0275\u0275pureFunction8:()=>gy,\u0275\u0275pureFunctionV:()=>_y,\u0275\u0275queryRefresh:()=>My,\u0275\u0275reference:()=>Im,\u0275\u0275resolveBody:()=>Jf,\u0275\u0275resolveDocument:()=>Yf,\u0275\u0275resolveWindow:()=>Qf,\u0275\u0275restoreView:()=>Ns,\u0275\u0275sanitizeHtml:()=>If,\u0275\u0275sanitizeResourceUrl:()=>pc,\u0275\u0275sanitizeScript:()=>Af,\u0275\u0275sanitizeStyle:()=>Pf,\u0275\u0275sanitizeUrl:()=>fc,\u0275\u0275sanitizeUrlOrResourceUrl:()=>kf,\u0275\u0275setComponentScope:()=>Q,\u0275\u0275setNgModuleScope:()=>_t,\u0275\u0275styleMap:()=>sr,\u0275\u0275styleMapInterpolate1:()=>Tg,\u0275\u0275styleMapInterpolate2:()=>wg,\u0275\u0275styleMapInterpolate3:()=>Mg,\u0275\u0275styleMapInterpolate4:()=>Sg,\u0275\u0275styleMapInterpolate5:()=>Ig,\u0275\u0275styleMapInterpolate6:()=>Pg,\u0275\u0275styleMapInterpolate7:()=>Ag,\u0275\u0275styleMapInterpolate8:()=>Og,\u0275\u0275styleMapInterpolateV:()=>xg,\u0275\u0275styleProp:()=>$u,\u0275\u0275stylePropInterpolate1:()=>ed,\u0275\u0275stylePropInterpolate2:()=>td,\u0275\u0275stylePropInterpolate3:()=>nd,\u0275\u0275stylePropInterpolate4:()=>id,\u0275\u0275stylePropInterpolate5:()=>rd,\u0275\u0275stylePropInterpolate6:()=>od,\u0275\u0275stylePropInterpolate7:()=>sd,\u0275\u0275stylePropInterpolate8:()=>ad,\u0275\u0275stylePropInterpolateV:()=>ld,\u0275\u0275syntheticHostListener:()=>Ou,\u0275\u0275syntheticHostProperty:()=>ud,\u0275\u0275template:()=>Mm,\u0275\u0275templateRefExtractor:()=>Ry,\u0275\u0275text:()=>pg,\u0275\u0275textInterpolate:()=>Wu,\u0275\u0275textInterpolate1:()=>gl,\u0275\u0275textInterpolate2:()=>Ku,\u0275\u0275textInterpolate3:()=>Gu,\u0275\u0275textInterpolate4:()=>Qu,\u0275\u0275textInterpolate5:()=>Yu,\u0275\u0275textInterpolate6:()=>Ju,\u0275\u0275textInterpolate7:()=>Zu,\u0275\u0275textInterpolate8:()=>Xu,\u0275\u0275textInterpolateV:()=>qu,\u0275\u0275trustConstantHtml:()=>Of,\u0275\u0275trustConstantResourceUrl:()=>xf,\u0275\u0275viewQuery:()=>Sy});var o=d(9765),l=d(826),f=d(9897),_=d(6682),a=d(8819);function C(e){for(let t in e)if(e[t]===C)return t;throw Error("Could not find renamed property on target object.")}function w(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 g(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const E=C({__forward_ref__:C});function M(e){return e.__forward_ref__=M,e.toString=function(){return D(this())},e}function S(e){return P(e)?e():e}function P(e){return"function"==typeof e&&e.hasOwnProperty(E)&&e.__forward_ref__===M}class j extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function Ce(e){return"string"==typeof e?e:null==e?"":String(e)}function $e(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ce(e)}function Oe(e,t){const n=t?` in ${t}`:"";throw new j("201",`No provider for ${$e(e)} found${n}`)}function ht(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}function $(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const re=$;function L(e){return{providers:e.providers||[],imports:e.imports||[]}}function ce(e){return ae(e,wt)||ae(e,Ue)}function ae(e,t){return e.hasOwnProperty(t)?e[t]:null}function ot(e){return e&&(e.hasOwnProperty(Je)||e.hasOwnProperty(He))?e[Je]:null}const wt=C({\u0275prov:C}),Je=C({\u0275inj:C}),Ue=C({ngInjectableDef:C}),He=C({ngInjectorDef:C});var q=(()=>((q=q||{})[q.Default=0]="Default",q[q.Host=1]="Host",q[q.Self=2]="Self",q[q.SkipSelf=4]="SkipSelf",q[q.Optional=8]="Optional",q))();let Ke;function pt(){return Ke}function vt(e){const t=Ke;return Ke=e,t}function Qe(e,t,n){const i=ce(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&q.Optional?null:void 0!==t?t:void Oe(D(e),"Injector")}function F(e){return{toString:e}.toString()}var R=(()=>((R=R||{})[R.OnPush=0]="OnPush",R[R.Default=1]="Default",R))(),he=(()=>((he=he||{})[he.CheckOnce=0]="CheckOnce",he[he.Checked=1]="Checked",he[he.CheckAlways=2]="CheckAlways",he[he.Detached=3]="Detached",he[he.Errored=4]="Errored",he[he.Destroyed=5]="Destroyed",he))();function z(e){return null==e||e===R.Default}var ne=(()=>((ne=ne||{})[ne.Emulated=0]="Emulated",ne[ne.None=2]="None",ne[ne.ShadowDom=3]="ShadowDom",ne))();const Le="undefined"!=typeof globalThis&&globalThis,gt="undefined"!=typeof window&&window,Et="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Nt=Le||"undefined"!=typeof global&&global||gt||Et,At={},Lt=[],jt=C({\u0275cmp:C}),_n=C({\u0275dir:C}),Xe=C({\u0275pipe:C}),Pt=C({\u0275mod:C}),V=C({\u0275loc:C}),K=C({\u0275fac:C}),W=C({__NG_ELEMENT_ID__:C});let De=0;function Ee(e){return F(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===R.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Lt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||ne.Emulated,id:"c",styles:e.styles||Lt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,c=e.pipes;return i.id+=De++,i.inputs=Ht(e.inputs,n),i.outputs=Ht(e.outputs),s&&s.forEach(u=>u(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(Z):null,i.pipeDefs=c?()=>("function"==typeof c?c():c).map(N):null,i})}function Q(e,t,n){const i=e.\u0275cmp;i.directiveDefs=()=>t.map(Z),i.pipeDefs=()=>n.map(N)}function Z(e){return an(e)||un(e)}function N(e){return wn(e)}const ie={};function it(e){return F(()=>{const t={type:e.type,bootstrap:e.bootstrap||Lt,declarations:e.declarations||Lt,imports:e.imports||Lt,exports:e.exports||Lt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(ie[e.id]=e.type),t})}function _t(e,t){return F(()=>{const n=yn(e,!0);n.declarations=t.declarations||Lt,n.imports=t.imports||Lt,n.exports=t.exports||Lt})}function Ht(e,t){if(null==e)return At;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const dn=Ee;function cn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function an(e){return e[jt]||null}function un(e){return e[_n]||null}function wn(e){return e[Xe]||null}function yn(e,t){const n=e[Pt]||null;if(!n&&!0===t)throw new Error(`Type ${D(e)} does not have '\u0275mod' property.`);return n}function ti(e){return Array.isArray(e)&&"object"==typeof e[1]}function Cn(e){return Array.isArray(e)&&!0===e[1]}function Ci(e){return 0!=(8&e.flags)}function ci(e){return 2==(2&e.flags)}function ui(e){return 1==(1&e.flags)}function ni(e){return null!==e.template}function Un(e){return 0!=(512&e[2])}function yi(e,t){return e.hasOwnProperty(K)?e[K]:null}class er{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Mi(){return ji}function ji(e){return e.type.prototype.ngOnChanges&&(e.setInput=tr),Vr}function Vr(){const e=br(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===At)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function tr(e,t,n,i){const r=br(e)||function(e,t){return e[vr]=t}(e,{previous:At,current:null}),s=r.current||(r.current={}),c=r.previous,u=this.declaredInputs[n],y=c[u];s[u]=new er(y&&y.currentValue,t,c===At),e[i]=t}Mi.ngInherit=!0;const vr="__ngSimpleChanges__";function br(e){return e[vr]||null}let Si=null;const $r=e=>{Si=e},Rn=function(e,t,n){null!=Si&&Si(e,t,n)},Cr="http://www.w3.org/2000/svg",no="http://www.w3.org/1998/MathML/";let Er;function Dr(e){Er=e}function Tr(){return void 0!==Er?Er:"undefined"!=typeof document?document:void 0}function O(e){return!!e.listen}const k={createRenderer:(e,t)=>Tr()};function v(e){for(;Array.isArray(e);)e=e[0];return e}function Ge(e,t){return v(t[e])}function St(e,t){return v(t[e.index])}function fn(e,t){return e.data[t]}function rn(e,t){return e[t]}function bn(e,t){const n=t[e];return ti(n)?n:n[0]}function Tn(e){return 4==(4&e[2])}function Ln(e){return 128==(128&e[2])}function Kn(e,t){return null==t?null:e[t]}function Bi(e){e[18]=0}function Ii(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Yt={lFrame:ri(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Rs(){return Yt.bindingsEnabled}function ks(){Yt.bindingsEnabled=!0}function Fs(){Yt.bindingsEnabled=!1}function Mt(){return Yt.lFrame.lView}function pn(){return Yt.lFrame.tView}function Ns(e){return Yt.lFrame.contextLView=e,e[8]}function kn(){let e=Fo();for(;null!==e&&64===e.type;)e=e.parent;return e}function Fo(){return Yt.lFrame.currentTNode}function yo(){const e=Yt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Vi(e,t){const n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function G(){return Yt.lFrame.isParent}function h(){Yt.lFrame.isParent=!1}function X(){return Yt.isInCheckNoChangesMode}function ge(e){Yt.isInCheckNoChangesMode=e}function Te(){const e=Yt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Re(){return Yt.lFrame.bindingIndex}function nt(e){return Yt.lFrame.bindingIndex=e}function bt(){return Yt.lFrame.bindingIndex++}function kt(e){const t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function nn(e){Yt.lFrame.inI18n=e}function mn(e,t){const n=Yt.lFrame;n.bindingIndex=n.bindingRootIndex=e,en(t)}function en(e){Yt.lFrame.currentDirectiveIndex=e}function hn(e){const t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Pn(){return Yt.lFrame.currentQueryIndex}function An(e){Yt.lFrame.currentQueryIndex=e}function si(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function zn(e,t,n){if(n&q.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&q.Host||(r=si(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,e=s}const i=Yt.lFrame=Pi();return i.currentTNode=t,i.lView=e,!0}function nr(e){const t=Pi(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Pi(){const e=Yt.lFrame,t=null===e?null:e.child;return null===t?ri(e):t}function ri(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 Hi(){const e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const $i=Hi;function Ei(){const e=Hi();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 Ls(e){return(Yt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}function Fn(){return Yt.lFrame.selectedIndex}function ir(e){Yt.lFrame.selectedIndex=e}function On(){const e=Yt.lFrame;return fn(e.tView,e.selectedIndex)}function Bt(){Yt.lFrame.currentNamespace=Cr}function Kt(){Yt.lFrame.currentNamespace=no}function tn(){Yt.lFrame.currentNamespace=null}function oi(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:c,ngAfterContentChecked:u,ngAfterViewInit:y,ngAfterViewChecked:A,ngOnDestroy:H}=s;c&&(e.contentHooks||(e.contentHooks=[])).push(-n,c),u&&((e.contentHooks||(e.contentHooks=[])).push(n,u),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,u)),y&&(e.viewHooks||(e.viewHooks=[])).push(-n,y),A&&((e.viewHooks||(e.viewHooks=[])).push(n,A),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,A)),null!=H&&(e.destroyHooks||(e.destroyHooks=[])).push(n,H)}}function Ai(e,t,n){Oi(e,t,3,n)}function Sn(e,t,n,i){(3&e[2])===n&&Oi(e,t,n,i)}function js(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Oi(e,t,n,i){const s=null!=i?i:-1,c=t.length-1;let u=0;for(let y=void 0!==i?65535&e[18]:0;y<c;y++)if("number"==typeof t[y+1]){if(u=t[y],null!=i&&u>=i)break}else t[y]<0&&(e[18]+=65536),(u<s||-1==s)&&(bo(e,n,t,y),e[18]=(4294901760&e[18])+y+2),y++}function bo(e,t,n,i){const r=n[i]<0,s=n[i+1],u=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,Rn(4,u,s);try{s.call(u)}finally{Rn(5,u,s)}}}else{Rn(4,u,s);try{s.call(u)}finally{Rn(5,u,s)}}}class Ri{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Ha(e,t,n){const i=O(e);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const c=n[r++],u=n[r++],y=n[r++];i?e.setAttribute(t,u,y,c):t.setAttributeNS(c,u,y)}else{const c=s,u=n[++r];Gl(c)?i&&e.setProperty(t,c,u):i?e.setAttribute(t,c,u):t.setAttribute(c,u),r++}}return r}function Vh(e){return 3===e||4===e||6===e}function Gl(e){return 64===e.charCodeAt(0)}function $a(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?n=r:0===n||Hh(e,n,r,null,-1===n||2===n?t[++i]:null)}}return e}function Hh(e,t,n,i,r){let s=0,c=e.length;if(-1===t)c=-1;else for(;s<e.length;){const u=e[s++];if("number"==typeof u){if(u===t){c=-1;break}if(u>t){c=s-1;break}}}for(;s<e.length;){const u=e[s];if("number"==typeof u)break;if(u===n){if(null===i)return void(null!==r&&(e[s+1]=r));if(i===e[s+1])return void(e[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==c&&(e.splice(c,0,t),s=c+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==r&&e.splice(s++,0,r)}function $h(e){return-1!==e}function No(e){return 32767&e}function Lo(e,t){let n=function(e){return e>>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let Ql=!0;function Ua(e){const t=Ql;return Ql=e,t}let gb=0;function Hs(e,t){const n=Jl(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Yl(i.data,e),Yl(t,null),Yl(i.blueprint,null));const r=za(e,t),s=e.injectorIndex;if($h(r)){const c=No(r),u=Lo(r,t),y=u[1].data;for(let A=0;A<8;A++)t[s+A]=u[c+A]|y[c+A]}return t[s+8]=r,s}function Yl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jl(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function za(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const s=r[1],c=s.type;if(i=2===c?s.declTNode:1===c?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Wa(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(W)&&(i=n[W]),null==i&&(i=n[W]=gb++);const r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function Wh(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;r<i;){const s=n[r];if(Vh(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(s===t)return n[r+1];r+=2}}}return null}function Kh(e,t,n){if(n&q.Optional)return e;Oe(t,"NodeInjector")}function Gh(e,t,n,i){if(n&q.Optional&&void 0===i&&(i=null),0==(n&(q.Self|q.Host))){const r=e[9],s=vt(void 0);try{return r?r.get(t,i,n&q.Optional):Qe(t,i,n&q.Optional)}finally{vt(s)}}return Kh(i,t,n)}function Qh(e,t,n,i=q.Default,r){if(null!==e){const s=function(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:yb:t}(n);if("function"==typeof s){if(!zn(t,e,i))return i&q.Host?Kh(r,n,i):Gh(t,n,i,r);try{const c=s(i);if(null!=c||i&q.Optional)return c;Oe(n)}finally{$i()}}else if("number"==typeof s){let c=null,u=Jl(e,t),y=-1,A=i&q.Host?t[16][6]:null;for((-1===u||i&q.SkipSelf)&&(y=-1===u?za(e,t):t[u+8],-1!==y&&Zh(i,!1)?(c=t[1],u=No(y),t=Lo(y,t)):u=-1);-1!==u;){const H=t[1];if(Jh(s,u,H.data)){const ue=vb(u,t,n,c,i,A);if(ue!==Yh)return ue}y=t[u+8],-1!==y&&Zh(i,t[1].data[u+8]===A)&&Jh(s,u,t)?(c=H,u=No(y),t=Lo(y,t)):u=-1}}}return Gh(t,n,i,r)}const Yh={};function yb(){return new jo(kn(),Mt())}function vb(e,t,n,i,r,s){const c=t[1],u=c.data[e+8],H=Ka(u,c,n,null==i?ci(u)&&Ql:i!=c&&0!=(3&u.type),r&q.Host&&s===u);return null!==H?$s(t,c,H,u):Yh}function Ka(e,t,n,i,r){const s=e.providerIndexes,c=t.data,u=1048575&s,y=e.directiveStart,H=s>>20,ye=r?u+H:e.directiveEnd;for(let Ae=i?u:u+H;Ae<ye;Ae++){const ze=c[Ae];if(Ae<y&&n===ze||Ae>=y&&ze.type===n)return Ae}if(r){const Ae=c[y];if(Ae&&ni(Ae)&&Ae.type===n)return y}return null}function $s(e,t,n,i){let r=e[n];const s=t.data;if(function(e){return e instanceof Ri}(r)){const c=r;c.resolving&&function(e,t){throw new j("200",`Circular dependency in DI detected for ${e}`)}($e(s[n]));const u=Ua(c.canSeeViewProviders);c.resolving=!0;const y=c.injectImpl?vt(c.injectImpl):null;zn(e,i,q.Default);try{r=e[n]=c.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const c=ji(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,c),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,c)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==y&&vt(y),Ua(u),c.resolving=!1,$i()}}return r}function Jh(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Zh(e,t){return!(e&q.Self||e&q.Host&&t)}class jo{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return Qh(this._tNode,this._lView,t,i,n)}}function Xh(e){return F(()=>{const t=e.prototype.constructor,n=t[K]||Zl(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const s=r[K]||Zl(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Zl(e){return P(e)?()=>{const t=Zl(S(e));return t&&t()}:yi(e)}function Xl(e){return Wh(kn(),e)}const Bo="__annotations__",Vo="__parameters__",Ho="__prop__metadata__";function $o(e,t,n,i,r){return F(()=>{const s=ql(t);function c(...u){if(this instanceof c)return s.call(this,...u),this;const y=new c(...u);return function(H){return r&&r(H,...u),(H.hasOwnProperty(Bo)?H[Bo]:Object.defineProperty(H,Bo,{value:[]})[Bo]).push(y),i&&i(H),H}}return n&&(c.prototype=Object.create(n.prototype)),c.prototype.ngMetadataName=e,c.annotationCls=c,c})}function ql(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}function ro(e,t,n){return F(()=>{const i=ql(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const c=new r(...s);return u.annotation=c,u;function u(y,A,H){const ue=y.hasOwnProperty(Vo)?y[Vo]:Object.defineProperty(y,Vo,{value:[]})[Vo];for(;ue.length<=H;)ue.push(null);return(ue[H]=ue[H]||[]).push(c),y}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function zr(e,t,n,i){return F(()=>{const r=ql(t);function s(...c){if(this instanceof s)return r.apply(this,c),this;const u=new s(...c);return function(A,H){const ue=A.constructor,ye=ue.hasOwnProperty(Ho)?ue[Ho]:Object.defineProperty(ue,Ho,{value:{}})[Ho];ye[H]=ye.hasOwnProperty(H)&&ye[H]||[],ye[H].unshift(u),i&&i(A,H,...c)}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function qh(){return ro("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Xl(e)}))}const ef=qh();class jn{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=$({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Cb=new jn("AnalyzeForEntryComponents");class Us{}const Eb=zr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),Us),Db=zr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Us),Tb=zr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),Us),wb=zr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Us);var Gn=(()=>((Gn=Gn||{})[Gn.Directive=0]="Directive",Gn[Gn.Component=1]="Component",Gn[Gn.Injectable=2]="Injectable",Gn[Gn.Pipe=3]="Pipe",Gn[Gn.NgModule=4]="NgModule",Gn))();function Qn(e){const t=Nt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ga=Function;function Qa(e){return"function"==typeof e}function zi(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),zi(i,t)):t!==e&&t.push(i)}return t}function wr(e,t){e.forEach(n=>Array.isArray(n)?wr(n,t):t(n))}function Ya(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Co(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function oo(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function ki(e,t,n){let i=Uo(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function ec(e,t){const n=Uo(e,t);if(n>=0)return e[1|n]}function Uo(e,t){return function(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const s=i+(r-i>>1),c=e[s<<n];if(t===c)return s<<n;c>t?r=s:i=s+1}return~(r<<n)}(e,t,1)}const Pb=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\))\)/,Ab=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Ob=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,xb=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class zo{constructor(t){this._reflect=t||Nt.Reflect}isReflectionEnabled(){return!0}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let i;i=oo(void 0===t?n.length:t.length);for(let r=0;r<i.length;r++)i[r]=void 0===t?[]:t[r]&&t[r]!=Object?[t[r]]:[],n&&null!=n[r]&&(i[r]=i[r].concat(n[r]));return i}_ownParameters(t,n){const i=t.toString();if(Pb.test(e=i)||xb.test(e)||Ab.test(e)&&!Ob.test(e))return null;var e;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;const r=t.ctorParameters;if(r&&r!==n.ctorParameters){const u="function"==typeof r?r():r,y=u.map(H=>H&&H.type),A=u.map(H=>H&&tc(H.decorators));return this._zipTypesAndAnnotations(y,A)}const s=t.hasOwnProperty(Vo)&&t[Vo],c=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return c||s?this._zipTypesAndAnnotations(c,s):oo(t.length)}parameters(t){if(!Qa(t))return[];const n=Ja(t);let i=this._ownParameters(t,n);return!i&&n!==Object&&(i=this.parameters(n)),i||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let i=t.annotations;return"function"==typeof i&&i.annotations&&(i=i.annotations),i}return t.decorators&&t.decorators!==n.decorators?tc(t.decorators):t.hasOwnProperty(Bo)?t[Bo]:null}annotations(t){if(!Qa(t))return[];const n=Ja(t),i=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(i)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let i=t.propMetadata;return"function"==typeof i&&i.propMetadata&&(i=i.propMetadata),i}if(t.propDecorators&&t.propDecorators!==n.propDecorators){const i=t.propDecorators,r={};return Object.keys(i).forEach(s=>{r[s]=tc(i[s])}),r}return t.hasOwnProperty(Ho)?t[Ho]:null}propMetadata(t){if(!Qa(t))return{};const n=Ja(t),i={};if(n!==Object){const s=this.propMetadata(n);Object.keys(s).forEach(c=>{i[c]=s[c]})}const r=this._ownPropMetadata(t,n);return r&&Object.keys(r).forEach(s=>{const c=[];i.hasOwnProperty(s)&&c.push(...i[s]),c.push(...r[s]),i[s]=c}),i}ownPropMetadata(t){return Qa(t)&&this._ownPropMetadata(t,Ja(t))||{}}hasLifecycleHook(t,n){return t instanceof Ga&&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,i,r){return r}resolveEnum(t,n){return t[n]}}function tc(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Ja(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const so={},nc="__NG_DI_FLAG__",Wo="ngTempTokenPath",Fb=/\n/gm,ic="__source",rc=C({provide:String,useValue:C});let zs;function Eo(e){const t=zs;return zs=e,t}function sf(e,t=q.Default){if(void 0===zs)throw new Error("inject() must be called from an injection context");return null===zs?Qe(e,void 0,t):zs.get(e,t&q.Optional?null:void 0,t)}function $n(e,t=q.Default){return(pt()||sf)(S(e),t)}function oc(e){throw new Error("invalid")}const Lb=$n;function Do(e){const t=[];for(let n=0;n<e.length;n++){const i=S(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let r,s=q.Default;for(let c=0;c<i.length;c++){const u=i[c],y=jb(u);"number"==typeof y?-1===y?r=u.token:s|=y:r=u}t.push($n(r,s))}else t.push($n(i))}return t}function Ko(e,t){return e[nc]=t,e.prototype[nc]=t,e}function jb(e){return e[nc]}function af(e,t,n,i){const r=e[Wo];throw t[ic]&&r.unshift(t[ic]),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=D(t);if(Array.isArray(t))r=t.map(D).join(" -> ");else if("object"==typeof t){let s=[];for(let c in t)if(t.hasOwnProperty(c)){let u=t[c];s.push(c+":"+("string"==typeof u?JSON.stringify(u):D(u)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Fb,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[Wo]=null,e}const cf=e=>({token:e}),Go=Ko(ro("Inject",cf),-1),Wr=Ko(ro("Optional"),8),Qo=Ko(ro("Self"),2),Kr=Ko(ro("SkipSelf"),4),uf=Ko(ro("Host"),1);let df=null;function sc(){return df=df||new zo}function Za(e){return hf(sc().parameters(e))}function hf(e){return e.map(t=>function(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 i=e[n];if(void 0===i)continue;const r=Object.getPrototypeOf(i);if(i instanceof Wr||"Optional"===r.ngMetadataName)t.optional=!0;else if(i instanceof Kr||"SkipSelf"===r.ngMetadataName)t.skipSelf=!0;else if(i instanceof Qo||"Self"===r.ngMetadataName)t.self=!0;else if(i instanceof uf||"Host"===r.ngMetadataName)t.host=!0;else if(i instanceof Go)t.token=i.token;else if(i instanceof ef){if(void 0===i.attributeName)throw new Error("Attribute name must be defined.");t.attribute=i.attributeName}else t.token=i}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(t))}function ff(e){const t=[],n=new Map;function i(r){let s=n.get(r);if(!s){const c=e(r);n.set(r,s=c.then($b))}return s}return Yo.forEach((r,s)=>{const c=[];r.templateUrl&&c.push(i(r.templateUrl).then(ue=>{r.template=ue}));const u=r.styleUrls,y=r.styles||(r.styles=[]),A=r.styles.length;u&&u.forEach((ue,ye)=>{y.push(""),c.push(i(ue).then(Ae=>{y[A+ye]=Ae,u.splice(u.indexOf(ue),1),0==u.length&&(r.styleUrls=void 0)}))});const H=Promise.all(c).then(()=>function(e){Ws.delete(e)}(s));t.push(H)}),mf(),Promise.all(t).then(()=>{})}let Yo=new Map;const Ws=new Set;function pf(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function mf(){const e=Yo;return Yo=new Map,e}function $b(e){return"string"==typeof e?e:e.text()}let Xa,qa;function ac(){if(void 0===Xa&&(Xa=null,Nt.trustedTypes))try{Xa=Nt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Xa}function Jo(e){var t;return(null===(t=ac())||void 0===t?void 0:t.createHTML(e))||e}function lc(){if(void 0===qa&&(qa=null,Nt.trustedTypes))try{qa=Nt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return qa}function gf(e){var t;return(null===(t=lc())||void 0===t?void 0:t.createHTML(e))||e}function _f(e){var t;return(null===(t=lc())||void 0===t?void 0:t.createScript(e))||e}function yf(e){var t;return(null===(t=lc())||void 0===t?void 0:t.createScriptURL(e))||e}class To{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Kb extends To{getTypeName(){return"HTML"}}class Gb extends To{getTypeName(){return"Style"}}class Qb extends To{getTypeName(){return"Script"}}class Yb extends To{getTypeName(){return"URL"}}class Jb extends To{getTypeName(){return"ResourceURL"}}function Gr(e){return e instanceof To?e.changingThisBreaksApplicationSecurity:e}function Zo(e,t){const n=vf(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 vf(e){return e instanceof To&&e.getTypeName()||null}function Zb(e){return new Kb(e)}function Xb(e){return new Gb(e)}function qb(e){return new Qb(e)}function eC(e){return new Yb(e)}function tC(e){return new Jb(e)}function bf(e){const t=new iC(e);return function(){try{return!!(new window.DOMParser).parseFromString(Jo(""),"text/html")}catch(e){return!1}}()?new nC(t):t}class nC{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Jo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class iC{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Jo(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Jo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let r=n.length-1;0<r;r--){const c=n.item(r).name;("xmlns:ns1"===c||0===c.indexOf("ns1:"))&&t.removeAttribute(c)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const oC=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,sC=/^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 Ks(e){return(e=String(e)).match(oC)||e.match(sC)?e:"unsafe:"+e}function Cf(e){return(e=String(e)).split(",").map(t=>Ks(t.trim())).join(", ")}function Mr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Gs(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const Ef=Mr("area,br,col,hr,img,wbr"),Df=Mr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Tf=Mr("rp,rt"),cc=Gs(Ef,Gs(Df,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")),Gs(Tf,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")),Gs(Tf,Df)),uc=Mr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),dc=Mr("srcset"),wf=Gs(uc,dc,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")),aC=Mr("script,style,template");class lC{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let r=this.checkClobberedElement(n,n.nextSibling);if(r){n=r;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!cc.hasOwnProperty(n))return this.sanitizedSomething=!0,!aC.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),c=s.name,u=c.toLowerCase();if(!wf.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let y=s.value;uc[u]&&(y=Ks(y)),dc[u]&&(y=Cf(y)),this.buf.push(" ",c,'="',Mf(y),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();cc.hasOwnProperty(n)&&!Ef.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Mf(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 cC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uC=/([^\#-~ |!])/g;function Mf(e){return e.replace(/&/g,"&amp;").replace(cC,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(uC,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let el;function Sf(e,t){let n=null;try{el=el||bf(e);let i=t?String(t):"";n=el.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=el.getInertBodyElement(i)}while(i!==s);return Jo((new lC).sanitizeChildren(hc(n)||n))}finally{if(n){const i=hc(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function hc(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Bn=(()=>((Bn=Bn||{})[Bn.NONE=0]="NONE",Bn[Bn.HTML=1]="HTML",Bn[Bn.STYLE=2]="STYLE",Bn[Bn.SCRIPT=3]="SCRIPT",Bn[Bn.URL=4]="URL",Bn[Bn.RESOURCE_URL=5]="RESOURCE_URL",Bn))();function If(e){const t=Qs();return t?gf(t.sanitize(Bn.HTML,e)||""):Zo(e,"HTML")?gf(Gr(e)):Sf(Tr(),Ce(e))}function Pf(e){const t=Qs();return t?t.sanitize(Bn.STYLE,e)||"":Zo(e,"Style")?Gr(e):Ce(e)}function fc(e){const t=Qs();return t?t.sanitize(Bn.URL,e)||"":Zo(e,"URL")?Gr(e):Ks(Ce(e))}function pc(e){const t=Qs();if(t)return yf(t.sanitize(Bn.RESOURCE_URL,e)||"");if(Zo(e,"ResourceURL"))return yf(Gr(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Af(e){const t=Qs();if(t)return _f(t.sanitize(Bn.SCRIPT,e)||"");if(Zo(e,"Script"))return _f(Gr(e));throw new Error("unsafe value used in a script context")}function Of(e){return Jo(e[0])}function xf(e){return function(e){var t;return(null===(t=ac())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Rf(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?pc:fc}function kf(e,t,n){return Rf(t,n)(e)}function Qs(){const e=Mt();return e&&e[12]}function di(e){let t=Ys(e);if(t){if(Array.isArray(t)){const n=t;let i,r,s;if(function(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(i=jf(n,e),-1==i)throw new Error("The provided component was not found in the application");r=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(i=function(e,t){let n=e[1].firstChild;for(;n;){const r=n.directiveEnd;for(let s=n.directiveStart;s<r;s++)if(e[s]===t)return n.index;n=pC(n)}return-1}(n,e),-1==i)throw new Error("The provided directive was not found in the application");s=Bf(i,n,!1)}else if(i=Lf(n,e),-1==i)return null;const c=v(n[i]),u=Ys(c),y=u&&!Array.isArray(u)?u:mc(n,i,c);if(r&&void 0===y.component&&(y.component=r,hi(y.component,y)),s&&void 0===y.directives){y.directives=s;for(let A=0;A<s.length;A++)hi(s[A],y)}hi(y.native,y),t=y}}else{const n=e;let i=n;for(;i=i.parentNode;){const r=Ys(i);if(r){let s;if(s=Array.isArray(r)?r:r.lView,!s)return null;const c=Lf(s,n);if(c>=0){const u=v(s[c]),y=mc(s,c,u);hi(u,y),t=y;break}}}}return t||null}function mc(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Ff(e){let n,t=Ys(e);if(Array.isArray(t)){const i=jf(t,e);n=bn(i,t);const r=mc(t,i,n[0]);r.component=e,hi(e,r),hi(r.native,r)}else n=bn(t.nodeIndex,t.lView);return n}const Nf="__ngContext__";function hi(e,t){e[Nf]=t}function Ys(e){return e[Nf]||null}function gc(e){const t=Ys(e);return t?Array.isArray(t)?t:t.lView:null}function Lf(e,t){const n=e[1];for(let i=20;i<n.bindingStartIndex;i++)if(v(e[i])===t)return i;return-1}function pC(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 jf(e,t){const n=e[1].components;if(n)for(let i=0;i<n.length;i++){const r=n[i];if(bn(r,e)[8]===t)return r}else if(bn(20,e)[8]===t)return 20;return-1}function Bf(e,t,n){const i=t[1].data[e];let r=i.directiveStart;return 0==r?Lt:(!n&&2&i.flags&&r++,t.slice(r,i.directiveEnd))}const Vf="ngDebugContext",_c="ngOriginalError",Hf="ngErrorLogger";function $f(e){return e[Vf]}function tl(e){return e[_c]}function CC(e,...t){e.error(...t)}class Xo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=this._findContext(t),r=(e=t)&&e[Hf]||CC;var e;r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n),i&&r(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?$f(t)||this._findContext(tl(t)):null}_findOriginalError(t){let n=t&&tl(t);for(;n&&tl(n);)n=tl(n);return n||null}}const Uf={name:"custom-elements"},zf={name:"no-errors-schema"},EC=/^>|^->|<!--|-->|--!>|<!-$/g,DC=/(<|>)/;function nl(e){return e.replace(EC,t=>t.replace(DC,"\u200b$1\u200b"))}function Wf(e){return`ng-reflect-${e=function(e){return e.replace(wC,(...t)=>"-"+t[1].toLowerCase())}(e.replace(/[$@]/g,"_"))}`}const wC=/([A-Z])/g;function Kf(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}const Gf=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt))();function Qf(e){return e.ownerDocument.defaultView}function Yf(e){return e.ownerDocument}function Jf(e){return e.ownerDocument.body}function Sr(e){return e instanceof Function?e():e}var Ir=(()=>((Ir=Ir||{})[Ir.Important=1]="Important",Ir[Ir.DashCase=2]="DashCase",Ir))();let yc;function vc(e,t){return yc(e,t)}function Js(e){const t=e[3];return Cn(t)?t[3]:t}function bc(e){return function(e){let t=ti(e)?e:gc(e);for(;t&&!(512&t[2]);)t=Js(t);return t}(e)[8]}function Cc(e){return ep(e[13])}function Ec(e){return ep(e[4])}function ep(e){for(;null!==e&&!Cn(e);)e=e[4];return e}function es(e,t,n,i,r){if(null!=i){let s,c=!1;Cn(i)?s=i:ti(i)&&(c=!0,i=i[0]);const u=v(i);0===e&&null!==n?null==r?sp(t,n,u):wo(t,n,u,r||null,!0):1===e&&null!==n?wo(t,n,u,r||null,!0):2===e?fp(t,u,c):3===e&&t.destroyNode(u),null!=s&&function(e,t,n,i,r){const s=n[7];s!==v(n)&&es(t,e,i,s,r);for(let u=10;u<n.length;u++){const y=n[u];Zs(y[1],y,e,t,i,s)}}(t,e,s,n,r)}}function Dc(e,t){return O(e)?e.createText(t):e.createTextNode(t)}function tp(e,t,n){O(e)?e.setValue(t,n):t.textContent=n}function IC(e,t){return e.createComment(nl(t))}function Tc(e,t,n){return O(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function np(e,t){const n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,Ii(r,-1)),n.splice(i,1)}function wc(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const r=i[17];null!==r&&r!==e&&np(r,i),t>0&&(e[n-1][4]=i[4]);const s=Co(e,10+t);!function(e,t){Zs(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const c=s[19];null!==c&&c.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function ip(e,t){if(!(256&t[2])){const n=t[11];O(n)&&n.destroyNode&&Zs(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Mc(e[1],e);for(;t;){let n=null;if(ti(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ti(t)&&Mc(t[1],t),t=t[3];null===t&&(t=e),ti(t)&&Mc(t[1],t),n=t&&t[4]}t=n}}(t)}}function Mc(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const r=t[n[i]];if(!(r instanceof Ri)){const s=n[i+1];if(Array.isArray(s))for(let c=0;c<s.length;c+=2){const u=r[s[c]],y=s[c+1];Rn(4,u,y);try{y.call(u)}finally{Rn(5,u,y)}}else{Rn(4,r,s);try{s.call(r)}finally{Rn(5,r,s)}}}}}(e,t),function(e,t){const n=e.cleanup,i=t[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const c=n[s+1],u="function"==typeof c?c(t):v(t[c]),y=i[r=n[s+2]],A=n[s+3];"boolean"==typeof A?u.removeEventListener(n[s],y,A):A>=0?i[r=A]():i[r=-A].unsubscribe(),s+=2}else{const c=i[r=n[s+1]];n[s].call(c)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(e,t),1===t[1].type&&O(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Cn(t[3])){n!==t[3]&&np(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function rp(e,t,n){return op(e,t.parent,n)}function op(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const r=e.data[i.directiveStart].encapsulation;if(r===ne.None||r===ne.Emulated)return null}return St(i,n)}function wo(e,t,n,i,r){O(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function sp(e,t,n){O(e)?e.appendChild(t,n):t.appendChild(n)}function ap(e,t,n,i,r){null!==i?wo(e,t,n,i,r):sp(e,t,n)}function il(e,t){return O(e)?e.parentNode(t):t.parentNode}function lp(e,t,n){return up(e,t,n)}function cp(e,t,n){return 40&e.type?St(e,n):null}let Sc,up=cp;function dp(e,t){up=e,Sc=t}function rl(e,t,n,i){const r=rp(e,i,t),s=t[11],u=lp(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(let y=0;y<n.length;y++)ap(s,r,n[y],u,!1);else ap(s,r,n,u,!1);void 0!==Sc&&Sc(s,i,t,n,r)}function ol(e,t){if(null!==t){const n=t.type;if(3&n)return St(t,e);if(4&n)return Ic(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return ol(e,i);{const r=e[t.index];return Cn(r)?Ic(-1,r):v(r)}}if(32&n)return vc(t,e)()||v(e[t.index]);{const i=hp(e,t);return null!==i?Array.isArray(i)?i[0]:ol(Js(e[16]),i):ol(e,t.next)}}return null}function hp(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Ic(e,t){const n=10+e+1;if(n<t.length){const i=t[n],r=i[1].firstChild;if(null!==r)return ol(i,r)}return t[7]}function fp(e,t,n){const i=il(e,t);i&&function(e,t,n,i){O(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}function Pc(e,t,n,i,r,s,c){for(;null!=n;){const u=i[n.index],y=n.type;if(c&&0===t&&(u&&hi(v(u),i),n.flags|=4),64!=(64&n.flags))if(8&y)Pc(e,t,n.child,i,r,s,!1),es(t,e,r,u,s);else if(32&y){const A=vc(n,i);let H;for(;H=A();)es(t,e,r,H,s);es(t,e,r,u,s)}else 16&y?pp(e,t,i,n,r,s):es(t,e,r,u,s);n=c?n.projectionNext:n.next}}function Zs(e,t,n,i,r,s){Pc(n,i,e.firstChild,t,r,s,!1)}function pp(e,t,n,i,r,s){const c=n[16],y=c[6].projection[i.projection];if(Array.isArray(y))for(let A=0;A<y.length;A++)es(t,e,r,y[A],s);else Pc(e,t,y,c[3],r,s,!0)}function mp(e,t,n){O(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Ac(e,t,n){O(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function gp(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||e.charCodeAt(r+s)<=32)return r}n=r+1}}const _p="ng-template";function $C(e,t,n){let i=0;for(;i<e.length;){let r=e[i++];if(n&&"class"===r){if(r=e[i],-1!==gp(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function yp(e){return 4===e.type&&e.value!==_p}function UC(e,t,n){return t===(4!==e.type||n?e.value:_p)}function zC(e,t,n){let i=4;const r=e.attrs||[],s=function(e){for(let t=0;t<e.length;t++)if(Vh(e[t]))return t;return e.length}(r);let c=!1;for(let u=0;u<t.length;u++){const y=t[u];if("number"!=typeof y){if(!c)if(4&i){if(i=2|1&i,""!==y&&!UC(e,y,n)||""===y&&1===t.length){if(rr(i))return!1;c=!0}}else{const A=8&i?y:t[++u];if(8&i&&null!==e.attrs){if(!$C(e.attrs,A,n)){if(rr(i))return!1;c=!0}continue}const ue=WC(8&i?"class":y,r,yp(e),n);if(-1===ue){if(rr(i))return!1;c=!0;continue}if(""!==A){let ye;ye=ue>s?"":r[ue+1].toLowerCase();const Ae=8&i?ye:null;if(Ae&&-1!==gp(Ae,A,0)||2&i&&A!==ye){if(rr(i))return!1;c=!0}}}}else{if(!c&&!rr(i)&&!rr(y))return!1;if(c&&rr(y))continue;c=!1,i=y|1&i}}return rr(i)||c}function rr(e){return 0==(1&e)}function WC(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let s=!1;for(;r<t.length;){const c=t[r];if(c===e)return r;if(3===c||6===c)s=!0;else{if(1===c||2===c){let u=t[++r];for(;"string"==typeof u;)u=t[++r];continue}if(4===c)break;if(0===c){r+=4;continue}}r+=s?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function vp(e,t,n=!1){for(let i=0;i<t.length;i++)if(zC(e,t[i],n))return!0;return!1}function YC(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function bp(e,t){return e?":not("+t.trim()+")":t}function JC(e){let t=e[0],n=1,i=2,r="",s=!1;for(;n<e.length;){let c=e[n];if("string"==typeof c)if(2&i){const u=e[++n];r+="["+c+(u.length>0?'="'+u+'"':"")+"]"}else 8&i?r+="."+c:4&i&&(r+=" "+c);else""!==r&&!rr(c)&&(t+=bp(s,r),r=""),i=c,s=s||!rr(i);n++}return""!==r&&(t+=bp(s,r)),t}const on={};function Cp(e){Ep(pn(),Mt(),Fn()+e,X())}function Ep(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&Ai(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Sn(t,s,0,n)}ir(n)}function sl(e,t){return e<<17|t<<2}function or(e){return e>>17&32767}function Oc(e){return 2|e}function Qr(e){return(131068&e)>>2}function xc(e,t){return-131069&e|t<<2}function Rc(e){return 1|e}const Bc=(()=>Promise.resolve(null))();function xp(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const c=e.data[s];An(r),c.contentQueries(2,t[s],s)}}}function Xs(e,t,n,i,r,s,c,u,y,A){const H=t.blueprint.slice();return H[0]=r,H[2]=140|i,Bi(H),H[3]=H[15]=e,H[8]=n,H[10]=c||e&&e[10],H[11]=u||e&&e[11],H[12]=y||e&&e[12]||null,H[9]=A||e&&e[9]||null,H[6]=s,H[16]=2==t.type?e[16]:H,H}function ts(e,t,n,i,r){let s=e.data[t];if(null===s)s=Vc(e,t,n,i,r),Yt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const c=yo();s.injectorIndex=null===c?-1:c.injectorIndex}return Vi(s,!0),s}function Vc(e,t,n,i,r){const s=Fo(),c=G(),y=e.data[t]=function(e,t,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,c?s:s&&s.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=y),null!==s&&(c?null==s.child&&null!==y.parent&&(s.child=y):null===s.next&&(s.next=y)),y}function ns(e,t,n,i){if(0===n)return-1;const r=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function qs(e,t,n){nr(t);try{const i=e.viewQuery;null!==i&&Yc(1,i,n);const r=e.template;null!==r&&Rp(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&xp(e,t),e.staticViewQueries&&Yc(2,e.viewQuery,n);const s=e.components;null!==s&&function(e,t){for(let n=0;n<t.length;n++)PE(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[2]&=-5,Ei()}}function is(e,t,n,i){const r=t[2];if(256==(256&r))return;nr(t);const s=X();try{Bi(t),nt(e.bindingStartIndex),null!==n&&Rp(e,t,n,2,i);const c=3==(3&r);if(!s)if(c){const A=e.preOrderCheckHooks;null!==A&&Ai(t,A,null)}else{const A=e.preOrderHooks;null!==A&&Sn(t,A,0,null),js(t,0)}if(function(e){for(let t=Cc(e);null!==t;t=Ec(t)){if(!t[2])continue;const n=t[9];for(let i=0;i<n.length;i++){const r=n[i],s=r[3];0==(1024&r[2])&&Ii(s,1),r[2]|=1024}}}(t),function(e){for(let t=Cc(e);null!==t;t=Ec(t))for(let n=10;n<t.length;n++){const i=t[n],r=i[1];Ln(i)&&is(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&xp(e,t),!s)if(c){const A=e.contentCheckHooks;null!==A&&Ai(t,A)}else{const A=e.contentHooks;null!==A&&Sn(t,A,1),js(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const r=n[i];if(r<0)ir(~r);else{const s=r,c=n[++i],u=n[++i];mn(c,s),u(2,t[s])}}}finally{ir(-1)}}(e,t);const u=e.components;null!==u&&function(e,t){for(let n=0;n<t.length;n++)IE(e,t[n])}(t,u);const y=e.viewQuery;if(null!==y&&Yc(2,y,i),!s)if(c){const A=e.viewCheckHooks;null!==A&&Ai(t,A)}else{const A=e.viewHooks;null!==A&&Sn(t,A,2),js(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ii(t[3],-1))}finally{Ei()}}function cE(e,t,n,i){const r=t[10],s=!X(),c=Tn(t);try{s&&!c&&r.begin&&r.begin(),c&&qs(e,t,i),is(e,t,n,i)}finally{s&&!c&&r.end&&r.end()}}function Rp(e,t,n,i,r){const s=Fn(),c=2&i;try{ir(-1),c&&t.length>20&&Ep(e,t,20,X()),Rn(c?2:0,r),n(i,r)}finally{ir(s),Rn(c?3:1,r)}}function kp(e,t,n){if(Ci(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const c=e.data[s];c.contentQueries&&c.contentQueries(1,n[s],s)}}}function Hc(e,t,n){!Rs()||(function(e,t,n,i){const r=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||Hs(n,t),hi(i,t);const c=n.initialInputs;for(let u=r;u<s;u++){const y=e.data[u],A=ni(y);A&&DE(t,n,y);const H=$s(t,e,u,n);hi(H,t),null!==c&&TE(0,u-r,H,y,0,c),A&&(bn(n.index,t)[8]=H)}}(e,t,n,St(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,r=n.directiveEnd,c=n.index,u=Yt.lFrame.currentDirectiveIndex;try{ir(c);for(let y=i;y<r;y++){const A=e.data[y],H=t[y];en(y),(null!==A.hostBindings||0!==A.hostVars||null!==A.hostAttrs)&&$p(A,H)}}finally{ir(-1),en(u)}}(e,t,n))}function $c(e,t,n=St){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const c=i[s+1],u=-1===c?n(t,e):e[c];e[r++]=u}}}function Fp(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=cl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function cl(e,t,n,i,r,s,c,u,y,A){const H=20+i,ue=H+r,ye=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:on);return n}(H,ue),Ae="function"==typeof A?A():A;return ye[1]={type:e,blueprint:ye,template:n,queries:null,viewQuery:u,declTNode:t,data:ye.slice().fill(null,H),bindingStartIndex:H,expandoStartIndex:ue,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof c?c():c,firstChild:null,schemas:y,consts:Ae,incompleteFirstPass:!1}}function Lp(e,t,n){if(O(e))return e.selectRootElement(t,n===ne.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}function jp(e,t,n,i){const r=Qp(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&Yp(e).push(i,r.length-1))}function Bp(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function Fi(e,t,n,i,r,s,c,u){const y=St(t,n);let H,A=t.inputs;!u&&null!=A&&(H=A[i])?(Xp(e,n,H,i,r),ci(t)&&function(e,t){const n=bn(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i=function(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=c?c(r,t.value||"",i):r,O(s)?s.setProperty(y,i,r):Gl(i)||(y.setProperty?y.setProperty(i,r):y[i]=r))}function Uc(e,t,n,i){let r=!1;if(Rs()){const s=function(e,t,n){const i=e.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const c=i[s];vp(n,c.selectors,!1)&&(r||(r=[]),Wa(Hs(n,t),e,c.type),ni(c)?(Up(e,n),r.unshift(c)):r.push(c))}return r}(e,t,n),c=null===i?null:{"":-1};if(null!==s){r=!0,zp(n,e.data.length,s.length);for(let H=0;H<s.length;H++){const ue=s[H];ue.providersResolver&&ue.providersResolver(ue)}let u=!1,y=!1,A=ns(e,t,s.length,null);for(let H=0;H<s.length;H++){const ue=s[H];n.mergedAttrs=$a(n.mergedAttrs,ue.hostAttrs),Wp(e,n,t,A,ue),EE(A,ue,c),null!==ue.contentQueries&&(n.flags|=8),(null!==ue.hostBindings||null!==ue.hostAttrs||0!==ue.hostVars)&&(n.flags|=128);const ye=ue.type.prototype;!u&&(ye.ngOnChanges||ye.ngOnInit||ye.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),!y&&(ye.ngOnChanges||ye.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),y=!0),A++}!function(e,t){const i=t.directiveEnd,r=e.data,s=t.attrs,c=[];let u=null,y=null;for(let A=t.directiveStart;A<i;A++){const H=r[A],ue=H.inputs,ye=null===s||yp(t)?null:wE(ue,s);c.push(ye),u=Bp(ue,A,u),y=Bp(H.outputs,A,y)}null!==u&&(u.hasOwnProperty("class")&&(t.flags|=16),u.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=c,t.inputs=u,t.outputs=y}(e,n)}c&&function(e,t,n){if(t){const i=e.localNames=[];for(let r=0;r<t.length;r+=2){const s=n[t[r+1]];if(null==s)throw new j("301",`Export of name '${t[r+1]}' not found!`);i.push(t[r],s)}}}(n,i,c)}return n.mergedAttrs=$a(n.mergedAttrs,n.attrs),r}function Hp(e,t,n,i,r,s){const c=s.hostBindings;if(c){let u=e.hostBindingOpCodes;null===u&&(u=e.hostBindingOpCodes=[]);const y=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=y&&u.push(y),u.push(i,r,c)}}function $p(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Up(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function EE(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;ni(t)&&(n[""]=e)}}function zp(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Wp(e,t,n,i,r){e.data[i]=r;const s=r.factory||(r.factory=yi(r.type)),c=new Ri(s,ni(r),null);e.blueprint[i]=c,n[i]=c,Hp(e,t,0,i,ns(e,n,r.hostVars,on),r)}function DE(e,t,n){const i=St(t,e),r=Fp(n),s=e[10],c=ul(e,Xs(e,r,null,n.onPush?64:16,i,t,s,s.createRenderer(i,n),null,null));e[t.index]=c}function Pr(e,t,n,i,r,s){const c=St(e,t);zc(t[11],c,s,e.value,n,i,r)}function zc(e,t,n,i,r,s,c){if(null==s)O(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{const u=null==c?Ce(s):c(s,i||"",r);O(e)?e.setAttribute(t,r,u,n):n?t.setAttributeNS(n,r,u):t.setAttribute(r,u)}}function TE(e,t,n,i,r,s){const c=s[t];if(null!==c){const u=i.setInput;for(let y=0;y<c.length;){const A=c[y++],H=c[y++],ue=c[y++];null!==u?i.setInput(n,ue,A,H):n[H]=ue}}}function wE(e,t){let n=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Kp(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function IE(e,t){const n=bn(t,e);if(Ln(n)){const i=n[1];80&n[2]?is(i,n,i.template,n[8]):n[5]>0&&Wc(n)}}function Wc(e){for(let i=Cc(e);null!==i;i=Ec(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const c=s[1];is(c,s,c.template,s[8])}else s[5]>0&&Wc(s)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const r=bn(n[i],e);Ln(r)&&r[5]>0&&Wc(r)}}function PE(e,t){const n=bn(t,e),i=n[1];(function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(i,n),qs(i,n,n[8])}function ul(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Kc(e){for(;e;){e[2]|=64;const t=Js(e);if(Un(e)&&!t)return e;e=t}return null}function Gc(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=gc(n),r=i[1];cE(r,i,r.template,n)}}function Qc(e,t,n){const i=t[10];i.begin&&i.begin();try{is(e,t,e.template,n)}catch(r){throw Zp(t,r),r}finally{i.end&&i.end()}}function Gp(e){Gc(e[8])}function Yc(e,t,n){An(0),t(e,n)}const kE=Bc;function Qp(e){return e[7]||(e[7]=[])}function Yp(e){return e.cleanup||(e.cleanup=[])}function Jp(e,t,n){return(null===e||ni(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Zp(e,t){const n=e[9],i=n?n.get(Xo,null):null;i&&i.handleError(t)}function Xp(e,t,n,i,r){for(let s=0;s<n.length;){const c=n[s++],u=n[s++],y=t[c],A=e.data[c];null!==A.setInput?A.setInput(y,r,i,u):y[u]=r}}function Jr(e,t,n){const i=Ge(t,e);tp(e[11],i,n)}function dl(e,t,n){let i=n?e.styles:null,r=n?e.classes:null,s=0;if(null!==t)for(let c=0;c<t.length;c++){const u=t[c];"number"==typeof u?s=u:1==s?r=g(r,u):2==s&&(i=g(i,u+": "+t[++c]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}function qp(e){const t=Ff(e);Qc(t[1],t,e)}function em(e){!function(e,t){if(0===e.flags&&e.clean==Bc){let i;e.flags|=1,e.clean=new Promise(r=>i=r),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Gc(e)),2&e.flags){e.flags&=-3;const r=e.playerHandler;r&&r.flushPlayers()}e.clean=Bc,i(null)})}}(Kc(Ff(e))[8])}const co=new jn("INJECTOR",-1);class Jc{get(t,n=so){if(n===so){const i=new Error(`NullInjectorError: No provider for ${D(t)}!`);throw i.name="NullInjectorError",i}return n}}const ea=new jn("Set Injector scope."),ta={},FE={};let Zc;function tm(){return void 0===Zc&&(Zc=new Jc),Zc}function nm(e,t=null,n=null,i){const r=im(e,t,n,i);return r._resolveInjectorDefTypes(),r}function im(e,t=null,n=null,i){return new NE(e,n,t||tm(),i)}class NE{constructor(t,n,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];n&&wr(n,u=>this.processProvider(u,t,n)),wr([t],u=>this.processInjectorType(u,[],s)),this.records.set(co,rs(void 0,this));const c=this.records.get(ea);this.scope=null!=c?c.value:null,this.source=r||("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=so,i=q.Default){this.assertNotDestroyed();const r=Eo(this),s=vt(void 0);try{if(!(i&q.SkipSelf)){let u=this.records.get(t);if(void 0===u){const y=("function"==typeof(e=t)||"object"==typeof e&&e instanceof jn)&&ce(t);u=y&&this.injectableDefInScope(y)?rs(Xc(t),ta):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u)}return(i&q.Self?tm():this.parent).get(t,n=i&q.Optional&&n===so?null:n)}catch(c){if("NullInjectorError"===c.name){if((c[Wo]=c[Wo]||[]).unshift(D(t)),r)throw c;return af(c,t,"R3InjectorError",this.source)}throw c}finally{vt(s),Eo(r)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(D(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,i){if(!(t=S(t)))return!1;let r=ot(t);const s=null==r&&t.ngModule||void 0,c=void 0===s?t:s,u=-1!==i.indexOf(c);if(void 0!==s&&(r=ot(s)),null==r)return!1;if(null!=r.imports&&!u){let H;i.push(c);try{wr(r.imports,ue=>{this.processInjectorType(ue,n,i)&&(void 0===H&&(H=[]),H.push(ue))})}finally{}if(void 0!==H)for(let ue=0;ue<H.length;ue++){const{ngModule:ye,providers:Ae}=H[ue];wr(Ae,ze=>this.processProvider(ze,ye,Ae||Lt))}}this.injectorDefTypes.add(c);const y=yi(c)||(()=>new c);this.records.set(c,rs(y,ta));const A=r.providers;if(null!=A&&!u){const H=t;wr(A,ue=>this.processProvider(ue,H,A))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,i){let r=os(t=S(t))?t:S(t&&t.provide);const s=om(e=t)?rs(void 0,e.useValue):rs(rm(e),ta);var e;if(os(t)||!0!==t.multi)this.records.get(r);else{let c=this.records.get(r);c||(c=rs(void 0,ta,!0),c.factory=()=>Do(c.multi),this.records.set(r,c)),r=t,c.multi.push(t)}this.records.set(r,s)}hydrate(t,n){return n.value===ta&&(n.value=FE,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=S(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Xc(e){const t=ce(e),n=null!==t?t.factory:yi(e);if(null!==n)return n;if(e instanceof jn)throw new Error(`Token ${D(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const i=oo(t,"?");throw new Error(`Can't resolve all parameters for ${D(e)}: (${i.join(", ")}).`)}const n=function(e){const t=e&&(e[wt]||e[Ue]);if(t){const n=function(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 Error("unreachable")}function rm(e,t,n){let i;if(os(e)){const r=S(e);return yi(r)||Xc(r)}if(om(e))i=()=>S(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Do(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>$n(S(e.useExisting));else{const r=S(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return yi(r)||Xc(r);i=()=>new r(...Do(e.deps))}return i}function rs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function om(e){return null!==e&&"object"==typeof e&&rc in e}function os(e){return"function"==typeof e}function sm(e,t,n){return nm({name:n},t,e,n)}const am=sm;let In=(()=>{class e{static create(n,i){return Array.isArray(n)?am(n,i,""):am(n.providers,n.parent,n.name||"")}}return e.THROW_IF_NOT_FOUND=so,e.NULL=new Jc,e.\u0275prov=$({token:e,providedIn:"any",factory:()=>$n(co)}),e.__NG_ELEMENT_ID__=-1,e})();function nu(e){ru(e);const t=di(e);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function hm(e){ru(e);const t=di(e);return null===t?null:t.lView[8]}function fm(e){const t=di(e);if(null===t)return null;let i,n=t.lView;for(;2===n[1].type&&(i=Js(n));)n=i;return 512&n[2]?null:n[8]}function pm(e){return[...bc(e).components]}function mm(e){const t=di(e);return null===t?In.NULL:new jo(t.lView[1].data[t.nodeIndex],t.lView)}function gm(e){if(e instanceof Text)return[];const t=di(e);if(null===t)return[];const n=t.lView,i=n[1],r=t.nodeIndex;return(null==i?void 0:i.data[r])?(void 0===t.directives&&(t.directives=Bf(r,n,!1)),null===t.directives?[]:[...t.directives]):[]}function JE(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=an(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?R.OnPush:R.Default};const i=un(t);return i?{inputs:i.inputs,outputs:i.outputs}:null}function iu(e){return di(e).native}function _m(e){ru(e);const t=di(e);if(null===t)return[];const n=t.lView,r=n[7],s=n[1].cleanup,c=[];if(s&&r)for(let u=0;u<s.length;){const y=s[u++],A=s[u++];if("string"==typeof y){const H=y,ue=v(n[A]),ye=r[s[u++]],Ae=s[u++],ze="boolean"==typeof Ae||Ae>=0?"dom":"output",ut="boolean"==typeof Ae&&Ae;e==ue&&c.push({element:e,name:H,callback:ye,useCapture:ut,type:ze})}}return c.sort(XE),c}function XE(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function qE(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function ru(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function eD(e){em(e),pm(e).forEach(t=>qp(t))}let vm=!1;function tD(){vm||(vm=!0,Ki("\u0275setProfiler",$r),Ki("getDirectiveMetadata",JE),Ki("getComponent",nu),Ki("getContext",hm),Ki("getListeners",_m),Ki("getOwningComponent",fm),Ki("getHostElement",iu),Ki("getInjector",mm),Ki("getRootComponents",pm),Ki("getDirectives",gm),Ki("applyChanges",eD))}function Ki(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Nt;if(n){let i=n.ng;i||(i=n.ng={}),i[e]=t}}}function nD(e,t={}){const n=t.rendererFactory||k,i=t.sanitizer||null,r=an(e);r.type!=e&&(r.type=e);const s=r.selectors[0][0],u=Lp(n.createRenderer(null,null),t.host||s,r.encapsulation),y=r.onPush?576:528,A=Em(t.scheduler,t.playerHandler),H=n.createRenderer(u,r),ue=cl(0,null,null,1,0,null,null,null,null,null),ye=Xs(null,ue,A,y,null,null,n,H,null,t.injector||null);let Ae;nr(ye);try{n.begin&&n.begin(),Ae=Cm(bm(u,r,ye,n,H,i),r,ye,A,t.hostFeatures||null),qs(ue,ye,null),is(ue,ye,null,null)}finally{Ei(),n.end&&n.end()}return Ae}function bm(e,t,n,i,r,s){const c=n[1];n[20]=e;const y=ts(c,20,2,"#host",null),A=y.mergedAttrs=t.hostAttrs;null!==A&&(dl(y,A,!0),null!==e&&(Ha(r,e,A),null!==y.classes&&Ac(r,e,y.classes),null!==y.styles&&mp(r,e,y.styles)));const H=i.createRenderer(e,t),ue=Xs(n,Fp(t),null,t.onPush?64:16,n[20],y,i,H,s||null,null);return c.firstCreatePass&&(Wa(Hs(y,n),c,t.type),Up(c,y),zp(y,n.length,1)),ul(n,ue),n[20]=ue}function Cm(e,t,n,i,r){const s=n[1],c=function(e,t,n){const i=kn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Wp(e,i,t,ns(e,t,1,null),n));const r=$s(t,e,i.directiveStart,i);hi(r,t);const s=St(i,t);return s&&hi(s,t),r}(s,n,t);if(i.components.push(c),e[8]=c,r&&r.forEach(y=>y(c,t)),t.contentQueries){const y=kn();t.contentQueries(1,c,y.directiveStart)}const u=kn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ir(u.index),Hp(n[1],u,0,u.directiveStart,u.directiveEnd,t),$p(t,c)),c}function Em(e,t){return{components:[],scheduler:e||Gf,clean:kE,playerHandler:t||null,flags:0}}function Dm(e,t){oi(gc(e)[1],kn())}function iD(e){return bc(e).clean}function Tm(e){return Object.getPrototypeOf(e.prototype).constructor}function ou(e){let t=Tm(e.type),n=!0;const i=[e];for(;t;){let r;if(ni(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);const c=e;c.inputs=su(e.inputs),c.declaredInputs=su(e.declaredInputs),c.outputs=su(e.outputs);const u=r.hostBindings;u&&aD(e,u);const y=r.viewQuery,A=r.contentQueries;if(y&&oD(e,y),A&&sD(e,A),w(e.inputs,r.inputs),w(e.declaredInputs,r.declaredInputs),w(e.outputs,r.outputs),ni(r)&&r.data.animation){const H=e.data;H.animation=(H.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let c=0;c<s.length;c++){const u=s[c];u&&u.ngInherit&&u(e),u===ou&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=$a(r.hostAttrs,n=$a(n,r.hostAttrs))}}(i)}function su(e){return e===At?{}:e===Lt?[]:e}function oD(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function sD(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,s)=>{t(i,r,s),n(i,r,s)}:t}function aD(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}const lD=["providersResolver"],cD=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function wm(e){let n,t=Tm(e.type);n=ni(e)?t.\u0275cmp:t.\u0275dir;const i=e;for(const r of lD)i[r]=n[r];if(ni(n))for(const r of cD)i[r]=n[r]}let hl=null;function ss(){if(!hl){const e=Nt.Symbol;if(e&&e.iterator)hl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(hl=i)}}}return hl}function au(e,t){const n=ia(e),i=ia(t);return n&&i?function(e,t,n){const i=e[ss()](),r=t[ss()]();for(;;){const s=i.next(),c=r.next();if(s.done&&c.done)return!0;if(s.done||c.done||!n(s.value,c.value))return!1}}(e,t,au):!(n||!e||"object"!=typeof e&&"function"!=typeof e||i||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}class Gi{constructor(t){this.wrapped=t}static wrap(t){return new Gi(t)}static unwrap(t){return Gi.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Gi}}function ia(e){return!!lu(e)&&(Array.isArray(e)||!(e instanceof Map)&&ss()in e)}function lu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ar(e,t,n){return e[t]=n}function ra(e,t){return e[t]}function fi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Mo(e,t,n,i){const r=fi(e,t,n);return fi(e,t+1,i)||r}function fl(e,t,n,i,r){const s=Mo(e,t,n,i);return fi(e,t+2,r)||s}function Qi(e,t,n,i,r,s){const c=Mo(e,t,n,i);return Mo(e,t+2,r,s)||c}function cu(e,t,n,i){const r=Mt();return fi(r,bt(),t)&&(pn(),Pr(On(),r,e,t,n,i)),cu}function as(e,t){let n=!1,i=Re();for(let s=1;s<t.length;s+=2)n=fi(e,i++,t[s])||n;if(nt(i),!n)return on;let r=t[0];for(let s=1;s<t.length;s+=2)r+=Ce(t[s])+t[s+1];return r}function ls(e,t,n,i){return fi(e,bt(),n)?t+Ce(n)+i:on}function cs(e,t,n,i,r,s){const u=Mo(e,Re(),n,r);return kt(2),u?t+Ce(n)+i+Ce(r)+s:on}function us(e,t,n,i,r,s,c,u){const A=fl(e,Re(),n,r,c);return kt(3),A?t+Ce(n)+i+Ce(r)+s+Ce(c)+u:on}function ds(e,t,n,i,r,s,c,u,y,A){const ue=Qi(e,Re(),n,r,c,y);return kt(4),ue?t+Ce(n)+i+Ce(r)+s+Ce(c)+u+Ce(y)+A:on}function hs(e,t,n,i,r,s,c,u,y,A,H,ue){const ye=Re();let Ae=Qi(e,ye,n,r,c,y);return Ae=fi(e,ye+4,H)||Ae,kt(5),Ae?t+Ce(n)+i+Ce(r)+s+Ce(c)+u+Ce(y)+A+Ce(H)+ue:on}function fs(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae){const ze=Re();let ut=Qi(e,ze,n,r,c,y);return ut=Mo(e,ze+4,H,ye)||ut,kt(6),ut?t+Ce(n)+i+Ce(r)+s+Ce(c)+u+Ce(y)+A+Ce(H)+ue+Ce(ye)+Ae:on}function ps(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut){const tt=Re();let Ot=Qi(e,tt,n,r,c,y);return Ot=fl(e,tt+4,H,ye,ze)||Ot,kt(7),Ot?t+Ce(n)+i+Ce(r)+s+Ce(c)+u+Ce(y)+A+Ce(H)+ue+Ce(ye)+Ae+Ce(ze)+ut:on}function ms(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt,Ot){const Dt=Re();let zt=Qi(e,Dt,n,r,c,y);return zt=Qi(e,Dt+4,H,ye,ze,tt)||zt,kt(8),zt?t+Ce(n)+i+Ce(r)+s+Ce(c)+u+Ce(y)+A+Ce(H)+ue+Ce(ye)+Ae+Ce(ze)+ut+Ce(tt)+Ot:on}function uu(e,t,n,i,r,s){const c=Mt(),u=ls(c,t,n,i);return u!==on&&Pr(On(),c,e,u,r,s),uu}function du(e,t,n,i,r,s,c,u){const y=Mt(),A=cs(y,t,n,i,r,s);return A!==on&&Pr(On(),y,e,A,c,u),du}function hu(e,t,n,i,r,s,c,u,y,A){const H=Mt(),ue=us(H,t,n,i,r,s,c,u);return ue!==on&&Pr(On(),H,e,ue,y,A),hu}function fu(e,t,n,i,r,s,c,u,y,A,H,ue){const ye=Mt(),Ae=ds(ye,t,n,i,r,s,c,u,y,A);return Ae!==on&&Pr(On(),ye,e,Ae,H,ue),fu}function pu(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae){const ze=Mt(),ut=hs(ze,t,n,i,r,s,c,u,y,A,H,ue);return ut!==on&&Pr(On(),ze,e,ut,ye,Ae),pu}function mu(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut){const tt=Mt(),Ot=fs(tt,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae);return Ot!==on&&Pr(On(),tt,e,Ot,ze,ut),mu}function gu(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt,Ot){const Dt=Mt(),zt=ps(Dt,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut);return zt!==on&&Pr(On(),Dt,e,zt,tt,Ot),gu}function _u(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt,Ot,Dt,zt){const Xt=Mt(),gn=ms(Xt,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt,Ot);return gn!==on&&Pr(On(),Xt,e,gn,Dt,zt),_u}function yu(e,t,n,i){const r=Mt(),s=as(r,t);return s!==on&&Pr(On(),r,e,s,n,i),yu}function Mm(e,t,n,i,r,s,c,u){const y=Mt(),A=pn(),H=e+20,ue=A.firstCreatePass?function(e,t,n,i,r,s,c,u,y){const A=t.consts,H=ts(t,e,4,c||null,Kn(A,u));Uc(t,n,H,Kn(A,y)),oi(t,H);const ue=H.tViews=cl(2,H,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,A);return null!==t.queries&&(t.queries.template(t,H),ue.queries=t.queries.embeddedTView(H)),H}(H,A,y,t,n,i,r,s,c):A.data[H];Vi(ue,!1);const ye=y[11].createComment("");rl(A,y,ye,ue),hi(ye,y),ul(y,y[H]=Kp(ye,y,ye,ue)),ui(ue)&&Hc(A,y,ue),null!=c&&$c(y,ue,u)}function Sm(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}function Im(e){return rn(Yt.lFrame.contextLView,20+e)}const Pm={\u0275\u0275defineInjectable:$,\u0275\u0275defineInjector:L,\u0275\u0275inject:$n,\u0275\u0275invalidFactoryDep:oc,resolveForwardRef:S},pD=C({provide:String,useValue:C});function Am(e){return void 0!==e.useClass}function Om(e){return void 0!==e.useFactory}const vD=$o("Injectable",void 0,void 0,void 0,(e,t)=>bD(e,t)),Rm=function(e,t){let n=null,i=null;e.hasOwnProperty(wt)||Object.defineProperty(e,wt,{get:()=>(null===n&&(n=Qn().compileInjectable(Pm,`ng:///${e.name}/\u0275prov.js`,function(e,t){const n=t||{providedIn:null},i={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(Am(n)||Om(n))&&void 0!==n.deps&&(i.deps=hf(n.deps)),Am(n)?i.useClass=n.useClass:function(e){return pD in e}(n)?i.useValue=n.useValue:Om(n)?i.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(i.useExisting=n.useExisting),i}(e,t))),n)}),e.hasOwnProperty(K)||Object.defineProperty(e,K,{get:()=>{if(null===i){const r=Qn();i=r.compileFactory(Pm,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Za(e),target:r.FactoryTarget.Injectable})}return i},configurable:!0})},bD=Rm;function vu(e){return e.length>1?" ("+function(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(i=>D(i.token)).join(" -> ")+")":""}function bu(e,t,n,i){const r=[t],s=n(r),c=i?function(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,i=Error(n);return i[_c]=t,i}(s,i):Error(s);return c.addKey=ED,c.keys=r,c.injectors=[e],c.constructResolvingMessage=n,c[_c]=i,c}function ED(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function km(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const s=t[i];n.push(s&&0!=s.length?s.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 ID(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class Xr{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 Fm.get(S(t))}static get numberOfKeys(){return Fm.numberOfKeys}}class PD{constructor(){this._allKeys=new Map}get(t){if(t instanceof Xr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const n=new Xr(t,Xr.numberOfKeys);return this._allKeys.set(t,n),n}get numberOfKeys(){return this._allKeys.size}}const Fm=new PD;class AD{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,i,r){return this.reflectionCapabilities.resolveIdentifier(t,n,i,r)}resolveEnum(t,n){return this.reflectionCapabilities.resolveEnum(t,n)}}const Nm=new AD(new zo);class oa{constructor(t,n,i){this.key=t,this.optional=n,this.visibility=i}static fromKey(t){return new oa(t,!1,null)}}const OD=[];class Lm{constructor(t,n,i){this.key=t,this.resolvedFactories=n,this.multiProvider=i,this.resolvedFactory=this.resolvedFactories[0]}}class jm{constructor(t,n){this.factory=t,this.dependencies=n}}function xD(e){let t,n;if(e.useClass){const i=S(e.useClass);t=Nm.factory(i),n=Hm(i)}else e.useExisting?(t=i=>i,n=[oa.fromKey(Xr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(i=>[i]);return t.map(i=>$m(e,i,n))}return Hm(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=OD);return new jm(t,n)}function RD(e){return new Lm(Xr.get(e.provide),[xD(e)],e.multi||!1)}function Bm(e){const i=function(e,t){for(let n=0;n<e.length;n++){const i=e[n],r=t.get(i.key.id);if(r){if(i.multiProvider!==r.multiProvider)throw ID(r,i);if(i.multiProvider)for(let s=0;s<i.resolvedFactories.length;s++)r.resolvedFactories.push(i.resolvedFactories[s]);else t.set(i.key.id,i)}else{let s;s=i.multiProvider?new Lm(i.key,i.resolvedFactories.slice(),i.multiProvider):i,t.set(i.key.id,s)}}return t}(Vm(e,[]).map(RD),new Map);return Array.from(i.values())}function Vm(e,t){return e.forEach(n=>{if(n instanceof Ga)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(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(n);Vm(n,t)}}),t}function Hm(e){const t=Nm.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw km(e,t);return t.map(n=>$m(e,n,t))}function $m(e,t,n){let i=null,r=!1;if(!Array.isArray(t))return Cu(t instanceof Go?t.token:t,r,null);let s=null;for(let c=0;c<t.length;++c){const u=t[c];u instanceof Ga?i=u:u instanceof Go?i=u.token:u instanceof Wr?r=!0:u instanceof Qo||u instanceof Kr?s=u:u instanceof jn&&(i=u)}if(i=S(i),null!=i)return Cu(i,r,s);throw km(e,n)}function Cu(e,t,n){return new oa(Xr.get(e),t,n)}const sa={};class gs{static resolve(t){return Bm(t)}static resolveAndCreate(t,n){const i=gs.resolve(t);return gs.fromResolvedProviders(i,n)}static fromResolvedProviders(t,n){return new Um(t,n)}}let Um=(()=>{class e{constructor(n,i){this._constructionCounter=0,this._providers=n,this.parent=i||null;const r=n.length;this.keyIds=[],this.objs=[];for(let s=0;s<r;s++)this.keyIds[s]=n[s].key.id,this.objs[s]=sa}get(n,i=so){return this._getByKey(Xr.get(n),null,i)}resolveAndCreateChild(n){const i=gs.resolve(n);return this.createChildFromResolved(i)}createChildFromResolved(n){const i=new e(n);return i.parent=this,i}resolveAndInstantiate(n){return this.instantiateResolved(gs.resolve([n])[0])}instantiateResolved(n){return this._instantiateProvider(n)}getProviderAtIndex(n){if(n<0||n>=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(n);return this._providers[n]}_new(n){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function(e,t){return bu(e,t,function(n){return`Cannot instantiate cyclic dependency!${vu(n)}`})}(this,n.key);return this._instantiateProvider(n)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(n){if(n.multiProvider){const i=[];for(let r=0;r<n.resolvedFactories.length;++r)i[r]=this._instantiate(n,n.resolvedFactories[r]);return i}return this._instantiate(n,n.resolvedFactories[0])}_instantiate(n,i){const r=i.factory;let s,c;try{s=i.dependencies.map(u=>this._getByReflectiveDependency(u))}catch(u){throw u.addKey&&u.addKey(this,n.key),u}try{c=r(...s)}catch(u){throw function(e,t,n,i){return bu(e,i,function(r){const s=D(r[0].token);return`${t.message}: Error during instantiation of ${s}!${vu(r)}.`},t)}(this,u,0,n.key)}return c}_getByReflectiveDependency(n){return this._getByKey(n.key,n.visibility,n.optional?null:so)}_getByKey(n,i,r){return n===e.INJECTOR_KEY?this:i instanceof Qo?this._getByKeySelf(n,r):this._getByKeyDefault(n,r,i)}_getObjByKeyId(n){for(let i=0;i<this.keyIds.length;i++)if(this.keyIds[i]===n)return this.objs[i]===sa&&(this.objs[i]=this._new(this._providers[i])),this.objs[i];return sa}_throwOrNull(n,i){if(i!==so)return i;throw function(e,t){return bu(e,t,function(n){return`No provider for ${D(n[0].token)}!${vu(n)}`})}(this,n)}_getByKeySelf(n,i){const r=this._getObjByKeyId(n.id);return r!==sa?r:this._throwOrNull(n,i)}_getByKeyDefault(n,i,r){let s;for(s=r instanceof Kr?this.parent:this;s instanceof e;){const c=s,u=c._getObjByKeyId(n.id);if(u!==sa)return u;s=c.parent}return null!==s?s.get(n.token,i):this._throwOrNull(n,i)}get displayName(){return`ReflectiveInjector(providers: [${function(e,t){const n=[];for(let i=0;i<e._providers.length;++i)n[i]=t(e.getProviderAtIndex(i));return n}(this,i=>' "'+i.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=Xr.get(In),e})();function aa(e,t=q.Default){const n=Mt();return null===n?$n(e,t):Qh(kn(),n,S(e),t)}function zm(){throw new Error("invalid")}function Eu(e,t,n){const i=Mt();return fi(i,bt(),t)&&Fi(pn(),On(),i,e,t,i[11],n,!1),Eu}function Du(e,t,n,i,r){const c=r?"class":"style";Xp(e,n,t.inputs[c],c,i)}function Tu(e,t,n,i){const r=Mt(),s=pn(),c=20+e,u=r[11],y=r[c]=Tc(u,t,Yt.lFrame.currentNamespace),A=s.firstCreatePass?function(e,t,n,i,r,s,c){const u=t.consts,A=ts(t,e,2,r,Kn(u,s));return Uc(t,n,A,Kn(u,c)),null!==A.attrs&&dl(A,A.attrs,!1),null!==A.mergedAttrs&&dl(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(c,s,r,0,t,n,i):s.data[c];Vi(A,!0);const H=A.mergedAttrs;null!==H&&Ha(u,y,H);const ue=A.classes;null!==ue&&Ac(u,y,ue);const ye=A.styles;null!==ye&&mp(u,y,ye),64!=(64&A.flags)&&rl(s,r,y,A),0===Yt.lFrame.elementDepthCount&&hi(y,r),Yt.lFrame.elementDepthCount++,ui(A)&&(Hc(s,r,A),kp(s,A,r)),null!==i&&$c(r,A)}function wu(){let e=kn();G()?h():(e=e.parent,Vi(e,!1));const t=e;Yt.lFrame.elementDepthCount--;const n=pn();n.firstCreatePass&&(oi(n,e),Ci(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Du(n,t,Mt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Du(n,t,Mt(),t.stylesWithoutHost,!1)}function Wm(e,t,n,i){Tu(e,t,n,i),wu()}function Mu(e,t,n){const i=Mt(),r=pn(),s=e+20,c=r.firstCreatePass?function(e,t,n,i,r){const s=t.consts,c=Kn(s,i),u=ts(t,e,8,"ng-container",c);return null!==c&&dl(u,c,!0),Uc(t,n,u,Kn(s,r)),null!==t.queries&&t.queries.elementStart(t,u),u}(s,r,i,t,n):r.data[s];Vi(c,!0);const u=i[s]=i[11].createComment("");rl(r,i,u,c),hi(u,i),ui(c)&&(Hc(r,i,c),kp(r,c,i)),null!=n&&$c(i,c)}function Su(){let e=kn();const t=pn();G()?h():(e=e.parent,Vi(e,!1)),t.firstCreatePass&&(oi(t,e),Ci(e)&&t.queries.elementEnd(e))}function Km(e,t,n){Mu(e,t,n),Su()}function Gm(){return Mt()}function Iu(e){return!!e&&"function"==typeof e.then}function Qm(e){return!!e&&"function"==typeof e.subscribe}const Pu=Qm;function Au(e,t,n,i){const r=Mt(),s=pn(),c=kn();return Ym(s,r,r[11],c,e,t,!!n,i),Au}function Ou(e,t){const n=kn(),i=Mt(),r=pn();return Ym(r,i,Jp(hn(r.data),n,i),n,e,t,!1),Ou}function Ym(e,t,n,i,r,s,c,u){const y=ui(i),H=e.firstCreatePass&&Yp(e),ue=t[8],ye=Qp(t);let Ae=!0;if(3&i.type||u){const tt=St(i,t),Ot=u?u(tt):tt,Dt=ye.length,zt=u?Xt=>u(v(Xt[i.index])):i.index;if(O(n)){let Xt=null;if(!u&&y&&(Xt=function(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const c=r[s];if(c===n&&r[s+1]===i){const u=t[7],y=r[s+2];return u.length>y?u[y]:null}"string"==typeof c&&(s+=2)}return null}(e,t,r,i.index)),null!==Xt)(Xt.__ngLastListenerFn__||Xt).__ngNextListenerFn__=s,Xt.__ngLastListenerFn__=s,Ae=!1;else{s=xu(i,t,ue,s,!1);const gn=n.listen(Ot,r,s);ye.push(s,gn),H&&H.push(r,zt,Dt,Dt+1)}}else s=xu(i,t,ue,s,!0),Ot.addEventListener(r,s,c),ye.push(s),H&&H.push(r,zt,Dt,c)}else s=xu(i,t,ue,s,!1);const ze=i.outputs;let ut;if(Ae&&null!==ze&&(ut=ze[r])){const tt=ut.length;if(tt)for(let Ot=0;Ot<tt;Ot+=2){const Xn=t[ut[Ot]][ut[Ot+1]].subscribe(s),Zi=ye.length;ye.push(s,Xn),H&&H.push(r,i.index,Zi,-(Zi+1))}}}function Jm(e,t,n,i){try{return Rn(6,t,n),!1!==n(i)}catch(r){return Zp(e,r),!1}finally{Rn(7,t,n)}}function xu(e,t,n,i,r){return function s(c){if(c===Function)return i;const u=2&e.flags?bn(e.index,t):t;0==(32&t[2])&&Kc(u);let y=Jm(t,n,i,c),A=s.__ngNextListenerFn__;for(;A;)y=Jm(t,n,A,c)&&y,A=A.__ngNextListenerFn__;return r&&!1===y&&(c.preventDefault(),c.returnValue=!1),y}}function Zm(e=1){return Ls(e)}function VD(e,t){let n=null;const i=function(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 r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?vp(e,s,!0):YC(i,s))return r}else n=r}return n}function Xm(e){const t=Mt()[16][6];if(!t.projection){const i=t.projection=oo(e?e.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const c=e?VD(s,e):0;null!==c&&(r[c]?r[c].projectionNext=s:i[c]=s,r[c]=s),s=s.next}}}function qm(e,t=0,n){const i=Mt(),r=pn(),s=ts(r,20+e,16,null,n||null);null===s.projection&&(s.projection=t),h(),64!=(64&s.flags)&&function(e,t,n){pp(t[11],0,t,n,rp(e,n,t),lp(n.parent||t[6],n,t))}(r,i,s)}function Ru(e,t,n){return pl(e,"",t,"",n),Ru}function pl(e,t,n,i,r){const s=Mt(),c=ls(s,t,n,i);return c!==on&&Fi(pn(),On(),s,e,c,s[11],r,!1),pl}function ku(e,t,n,i,r,s,c){const u=Mt(),y=cs(u,t,n,i,r,s);return y!==on&&Fi(pn(),On(),u,e,y,u[11],c,!1),ku}function Fu(e,t,n,i,r,s,c,u,y){const A=Mt(),H=us(A,t,n,i,r,s,c,u);return H!==on&&Fi(pn(),On(),A,e,H,A[11],y,!1),Fu}function Nu(e,t,n,i,r,s,c,u,y,A,H){const ue=Mt(),ye=ds(ue,t,n,i,r,s,c,u,y,A);return ye!==on&&Fi(pn(),On(),ue,e,ye,ue[11],H,!1),Nu}function Lu(e,t,n,i,r,s,c,u,y,A,H,ue,ye){const Ae=Mt(),ze=hs(Ae,t,n,i,r,s,c,u,y,A,H,ue);return ze!==on&&Fi(pn(),On(),Ae,e,ze,Ae[11],ye,!1),Lu}function ju(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze){const ut=Mt(),tt=fs(ut,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae);return tt!==on&&Fi(pn(),On(),ut,e,tt,ut[11],ze,!1),ju}function Bu(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt){const Ot=Mt(),Dt=ps(Ot,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut);return Dt!==on&&Fi(pn(),On(),Ot,e,Dt,Ot[11],tt,!1),Bu}function Vu(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt,Ot,Dt){const zt=Mt(),Xt=ms(zt,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt,Ot);return Xt!==on&&Fi(pn(),On(),zt,e,Xt,zt[11],Dt,!1),Vu}function Hu(e,t,n){const i=Mt(),r=as(i,t);return r!==on&&Fi(pn(),On(),i,e,r,i[11],n,!1),Hu}function eg(e,t,n,i,r){const s=e[n+1],c=null===t;let u=i?or(s):Qr(s),y=!1;for(;0!==u&&(!1===y||c);){const H=e[u+1];UD(e[u],t)&&(y=!0,e[u+1]=i?Rc(H):Oc(H)),u=i?or(H):Qr(H)}y&&(e[n+1]=i?Oc(s):Rc(s))}function UD(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Uo(e,t)>=0}const Yn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function tg(e){return e.substring(Yn.key,Yn.keyEnd)}function zD(e){return e.substring(Yn.value,Yn.valueEnd)}function ng(e,t){const n=Yn.textEnd;return n===t?-1:(t=Yn.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Yn.key=t,n),_s(e,t,n))}function ig(e,t){const n=Yn.textEnd;let i=Yn.key=_s(e,t,n);return n===i?-1:(i=Yn.keyEnd=function(e,t,n){let i;for(;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=og(e,i,n),i=Yn.value=_s(e,i,n),i=Yn.valueEnd=function(e,t,n){let i=-1,r=-1,s=-1,c=t,u=c;for(;c<n;){const y=e.charCodeAt(c++);if(59===y)return u;34===y||39===y?u=c=sg(e,y,c,n):t===c-4&&85===s&&82===r&&76===i&&40===y?u=c=sg(e,41,c,n):y>32&&(u=c),s=r,r=i,i=-33&y}return u}(e,i,n),og(e,i,n))}function rg(e){Yn.key=0,Yn.keyEnd=0,Yn.value=0,Yn.valueEnd=0,Yn.textEnd=e.length}function _s(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function og(e,t,n,i){return(t=_s(e,t,n))<n&&t++,t}function sg(e,t,n,i){let r=-1,s=n;for(;s<i;){const c=e.charCodeAt(s++);if(c==t&&92!==r)return s;r=92==c&&92===r?0:c}throw new Error}function $u(e,t,n){return ar(e,t,n,!1),$u}function Uu(e,t){return ar(e,t,null,!0),Uu}function sr(e){lr(ug,JD,e,!1)}function JD(e,t){for(let n=function(e){return rg(e),ig(e,_s(e,0,Yn.textEnd))}(t);n>=0;n=ig(t,n))ug(e,tg(t),zD(t))}function ag(e){lr(ki,Or,e,!0)}function Or(e,t){for(let n=function(e){return rg(e),ng(e,_s(e,0,Yn.textEnd))}(t);n>=0;n=ng(t,n))ki(e,tg(t),!0)}function ar(e,t,n,i){const r=Mt(),s=pn(),c=kt(2);s.firstUpdatePass&&cg(s,e,c,i),t!==on&&fi(r,c,t)&&dg(s,s.data[Fn()],r,r[11],e,r[c+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=D(Gr(e)))),e}(t,n),i,c)}function lr(e,t,n,i){const r=pn(),s=kt(2);r.firstUpdatePass&&cg(r,null,s,i);const c=Mt();if(n!==on&&fi(c,s,n)){const u=r.data[Fn()];if(fg(u,i)&&!lg(r,s)){let y=i?u.classesWithoutHost:u.stylesWithoutHost;null!==y&&(n=g(y,n||"")),Du(r,u,c,n,i)}else!function(e,t,n,i,r,s,c,u){r===on&&(r=Lt);let y=0,A=0,H=0<r.length?r[0]:null,ue=0<s.length?s[0]:null;for(;null!==H||null!==ue;){const ye=y<r.length?r[y+1]:void 0,Ae=A<s.length?s[A+1]:void 0;let ut,ze=null;H===ue?(y+=2,A+=2,ye!==Ae&&(ze=ue,ut=Ae)):null===ue||null!==H&&H<ue?(y+=2,ze=H):(A+=2,ze=ue,ut=Ae),null!==ze&&dg(e,t,n,i,ze,ut,c,u),H=y<r.length?r[y]:null,ue=A<s.length?s[A]:null}}(r,u,c,c[11],c[s+1],c[s+1]=function(e,t,n){if(null==n||""===n)return Lt;const i=[],r=Gr(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)e(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&e(i,s,r[s]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,s)}}function lg(e,t){return t>=e.expandoStartIndex}function cg(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[Fn()],c=lg(e,n);fg(s,i)&&null===t&&!c&&(t=!1),t=function(e,t,n,i){const r=hn(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=la(n=zu(null,e,t,n,i),t.attrs,i),s=null);else{const c=t.directiveStylingLast;if(-1===c||e[c]!==r)if(n=zu(r,e,t,n,i),null===s){let y=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Qr(i))return e[or(i)]}(e,t,i);void 0!==y&&Array.isArray(y)&&(y=zu(null,e,t,y[1],i),y=la(y,t.attrs,i),function(e,t,n,i){e[or(n?t.classBindings:t.styleBindings)]=i}(e,t,i,y))}else s=function(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=la(i,e[s].hostAttrs,n);return la(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(r,s,t,i),function(e,t,n,i,r,s){let c=s?t.classBindings:t.styleBindings,u=or(c),y=Qr(c);e[i]=n;let H,A=!1;if(Array.isArray(n)){const ue=n;H=ue[1],(null===H||Uo(ue,H)>0)&&(A=!0)}else H=n;if(r)if(0!==y){const ye=or(e[u+1]);e[i+1]=sl(ye,u),0!==ye&&(e[ye+1]=xc(e[ye+1],i)),e[u+1]=function(e,t){return 131071&e|t<<17}(e[u+1],i)}else e[i+1]=sl(u,0),0!==u&&(e[u+1]=xc(e[u+1],i)),u=i;else e[i+1]=sl(y,0),0===u?u=i:e[y+1]=xc(e[y+1],i),y=i;A&&(e[i+1]=Oc(e[i+1])),eg(e,H,i,!0),eg(e,H,i,!1),function(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Uo(s,t)>=0&&(n[i+1]=Rc(n[i+1]))}(t,H,e,i,s),c=sl(u,y),s?t.classBindings=c:t.styleBindings=c}(r,s,t,n,c,i)}}function zu(e,t,n,i,r){let s=null;const c=n.directiveEnd;let u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u<c&&(s=t[u],i=la(i,s.hostAttrs,r),s!==e);)u++;return null!==e&&(n.directiveStylingLast=u),i}function la(e,t,n){const i=n?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const c=t[s];"number"==typeof c?r=c:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ki(e,c,!!n||t[++s]))}return void 0===e?null:e}function ug(e,t,n){ki(e,t,Gr(n))}function dg(e,t,n,i,r,s,c,u){if(!(3&t.type))return;const y=e.data,A=y[u+1];ml(function(e){return 1==(1&e)}(A)?hg(y,t,n,r,Qr(A),c):void 0)||(ml(s)||function(e){return 2==(2&e)}(A)&&(s=hg(y,null,n,r,u,c)),function(e,t,n,i,r){const s=O(e);if(t)r?s?e.addClass(n,i):n.classList.add(i):s?e.removeClass(n,i):n.classList.remove(i);else{let c=-1===i.indexOf("-")?void 0:Ir.DashCase;if(null==r)s?e.removeStyle(n,i,c):n.style.removeProperty(i);else{const u="string"==typeof r&&r.endsWith("!important");u&&(r=r.slice(0,-10),c|=Ir.Important),s?e.setStyle(n,i,r,c):n.style.setProperty(i,r,u?"important":"")}}}(i,c,Ge(Fn(),n),r,s))}function hg(e,t,n,i,r,s){const c=null===t;let u;for(;r>0;){const y=e[r],A=Array.isArray(y),H=A?y[1]:y,ue=null===H;let ye=n[r+1];ye===on&&(ye=ue?Lt:void 0);let Ae=ue?ec(ye,i):H===i?ye:void 0;if(A&&!ml(Ae)&&(Ae=ec(y,i)),ml(Ae)&&(u=Ae,c))return u;const ze=e[r+1];r=c?or(ze):Qr(ze)}if(null!==t){let y=s?t.residualClasses:t.residualStyles;null!=y&&(u=ec(y,i))}return u}function ml(e){return void 0!==e}function fg(e,t){return 0!=(e.flags&(t?16:32))}function pg(e,t=""){const n=Mt(),i=pn(),r=e+20,s=i.firstCreatePass?ts(i,r,1,t,null):i.data[r],c=n[r]=Dc(n[11],t);rl(i,n,c,s),Vi(s,!1)}function Wu(e){return gl("",e,""),Wu}function gl(e,t,n){const i=Mt(),r=ls(i,e,t,n);return r!==on&&Jr(i,Fn(),r),gl}function Ku(e,t,n,i,r){const s=Mt(),c=cs(s,e,t,n,i,r);return c!==on&&Jr(s,Fn(),c),Ku}function Gu(e,t,n,i,r,s,c){const u=Mt(),y=us(u,e,t,n,i,r,s,c);return y!==on&&Jr(u,Fn(),y),Gu}function Qu(e,t,n,i,r,s,c,u,y){const A=Mt(),H=ds(A,e,t,n,i,r,s,c,u,y);return H!==on&&Jr(A,Fn(),H),Qu}function Yu(e,t,n,i,r,s,c,u,y,A,H){const ue=Mt(),ye=hs(ue,e,t,n,i,r,s,c,u,y,A,H);return ye!==on&&Jr(ue,Fn(),ye),Yu}function Ju(e,t,n,i,r,s,c,u,y,A,H,ue,ye){const Ae=Mt(),ze=fs(Ae,e,t,n,i,r,s,c,u,y,A,H,ue,ye);return ze!==on&&Jr(Ae,Fn(),ze),Ju}function Zu(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze){const ut=Mt(),tt=ps(ut,e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze);return tt!==on&&Jr(ut,Fn(),tt),Zu}function Xu(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt){const Ot=Mt(),Dt=ms(Ot,e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt);return Dt!==on&&Jr(Ot,Fn(),Dt),Xu}function qu(e){const t=Mt(),n=as(t,e);return n!==on&&Jr(t,Fn(),n),qu}function mg(e,t,n){lr(ki,Or,ls(Mt(),e,t,n),!0)}function gg(e,t,n,i,r){lr(ki,Or,cs(Mt(),e,t,n,i,r),!0)}function _g(e,t,n,i,r,s,c){lr(ki,Or,us(Mt(),e,t,n,i,r,s,c),!0)}function yg(e,t,n,i,r,s,c,u,y){lr(ki,Or,ds(Mt(),e,t,n,i,r,s,c,u,y),!0)}function vg(e,t,n,i,r,s,c,u,y,A,H){lr(ki,Or,hs(Mt(),e,t,n,i,r,s,c,u,y,A,H),!0)}function bg(e,t,n,i,r,s,c,u,y,A,H,ue,ye){lr(ki,Or,fs(Mt(),e,t,n,i,r,s,c,u,y,A,H,ue,ye),!0)}function Cg(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze){lr(ki,Or,ps(Mt(),e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze),!0)}function Eg(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt){lr(ki,Or,ms(Mt(),e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt),!0)}function Dg(e){lr(ki,Or,as(Mt(),e),!0)}function Tg(e,t,n){sr(ls(Mt(),e,t,n))}function wg(e,t,n,i,r){sr(cs(Mt(),e,t,n,i,r))}function Mg(e,t,n,i,r,s,c){sr(us(Mt(),e,t,n,i,r,s,c))}function Sg(e,t,n,i,r,s,c,u,y){sr(ds(Mt(),e,t,n,i,r,s,c,u,y))}function Ig(e,t,n,i,r,s,c,u,y,A,H){sr(hs(Mt(),e,t,n,i,r,s,c,u,y,A,H))}function Pg(e,t,n,i,r,s,c,u,y,A,H,ue,ye){sr(fs(Mt(),e,t,n,i,r,s,c,u,y,A,H,ue,ye))}function Ag(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze){sr(ps(Mt(),e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze))}function Og(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt){sr(ms(Mt(),e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt))}function xg(e){sr(as(Mt(),e))}function ed(e,t,n,i,r){return ar(e,ls(Mt(),t,n,i),r,!1),ed}function td(e,t,n,i,r,s,c){return ar(e,cs(Mt(),t,n,i,r,s),c,!1),td}function nd(e,t,n,i,r,s,c,u,y){return ar(e,us(Mt(),t,n,i,r,s,c,u),y,!1),nd}function id(e,t,n,i,r,s,c,u,y,A,H){return ar(e,ds(Mt(),t,n,i,r,s,c,u,y,A),H,!1),id}function rd(e,t,n,i,r,s,c,u,y,A,H,ue,ye){return ar(e,hs(Mt(),t,n,i,r,s,c,u,y,A,H,ue),ye,!1),rd}function od(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze){return ar(e,fs(Mt(),t,n,i,r,s,c,u,y,A,H,ue,ye,Ae),ze,!1),od}function sd(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt){return ar(e,ps(Mt(),t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut),tt,!1),sd}function ad(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt,Ot,Dt){return ar(e,ms(Mt(),t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt,Ot),Dt,!1),ad}function ld(e,t,n){return ar(e,as(Mt(),t),n,!1),ld}function cd(e,t,n){const i=Mt();return fi(i,bt(),t)&&Fi(pn(),On(),i,e,t,i[11],n,!0),cd}function ud(e,t,n){const i=Mt();if(fi(i,bt(),t)){const s=pn(),c=On();Fi(s,c,i,e,t,Jp(hn(s.data),c,i),n,!0)}return ud}const So=void 0;var oT=["en",[["a","p"],["AM","PM"],So],[["AM","PM"],So,So],[["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"]],So,[["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"]],So,[["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}",So,"{1} 'at' {0}",So],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let ys={};function sT(e,t,n){"string"!=typeof t&&(n=t,t=e[Jt.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ys[t]=e,n&&(ys[t][Jt.ExtraData]=n)}function dd(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=kg(t);if(n)return n;const i=t.split("-")[0];if(n=kg(i),n)return n;if("en"===i)return oT;throw new Error(`Missing locale data for the locale "${e}".`)}function aT(e){return dd(e)[Jt.CurrencyCode]||null}function Rg(e){return dd(e)[Jt.PluralCase]}function kg(e){return e in ys||(ys[e]=Nt.ng&&Nt.ng.common&&Nt.ng.common.locales&&Nt.ng.common.locales[e]),ys[e]}function lT(){ys={}}var Jt=(()=>((Jt=Jt||{})[Jt.LocaleId=0]="LocaleId",Jt[Jt.DayPeriodsFormat=1]="DayPeriodsFormat",Jt[Jt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Jt[Jt.DaysFormat=3]="DaysFormat",Jt[Jt.DaysStandalone=4]="DaysStandalone",Jt[Jt.MonthsFormat=5]="MonthsFormat",Jt[Jt.MonthsStandalone=6]="MonthsStandalone",Jt[Jt.Eras=7]="Eras",Jt[Jt.FirstDayOfWeek=8]="FirstDayOfWeek",Jt[Jt.WeekendRange=9]="WeekendRange",Jt[Jt.DateFormat=10]="DateFormat",Jt[Jt.TimeFormat=11]="TimeFormat",Jt[Jt.DateTimeFormat=12]="DateTimeFormat",Jt[Jt.NumberSymbols=13]="NumberSymbols",Jt[Jt.NumberFormats=14]="NumberFormats",Jt[Jt.CurrencyCode=15]="CurrencyCode",Jt[Jt.CurrencySymbol=16]="CurrencySymbol",Jt[Jt.CurrencyName=17]="CurrencyName",Jt[Jt.Currencies=18]="Currencies",Jt[Jt.Directionality=19]="Directionality",Jt[Jt.PluralCase=20]="PluralCase",Jt[Jt.ExtraData=21]="ExtraData",Jt))();const uT=["zero","one","two","few","many"],ca="en-US",Fg="USD",_l={marker:"element"},yl={marker:"ICU"};var Vn=(()=>((Vn=Vn||{})[Vn.SHIFT=2]="SHIFT",Vn[Vn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Vn[Vn.COMMENT=2]="COMMENT",Vn))();let Ng=ca;function vl(e){(function(e,t){null==e&&ht(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Ng=e.toLowerCase().replace(/_/g,"-"))}function Lg(e,t,n){const i=t.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?cp(e,0,n):v(n[r])}function jg(e,t,n,i,r){const s=t.insertBeforeIndex;if(Array.isArray(s)){let c=i,u=null;if(3&t.type||(u=c,c=r),null!==c&&0==(2&t.flags))for(let y=1;y<s.length;y++)wo(e,c,n[s[y]],u,!1)}}function Bg(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const i=e[n];Vg(i)||fT(i,t)&&null===pT(i)&&mT(i,t.index)}}function Vg(e){return!(64&e.type)}function fT(e,t){return Vg(t)||e.index>t.index}function pT(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function mT(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(dp(Lg,jg),e.insertBeforeIndex=t)}function ua(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function yT(e,t,n){const i=Vc(e,n,64,null,null);return Bg(t,i),i}function bl(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Hg(e){return e>>>17}function $g(e){return(131070&e)>>>1}let da=0,ha=0;function zg(e,t,n,i){const r=n[11];let c,s=null;for(let u=0;u<t.length;u++){const y=t[u];if("string"==typeof y){const A=t[++u];null===n[A]&&(n[A]=Dc(r,y))}else if("number"==typeof y)switch(1&y){case 0:const A=Hg(y);let H,ue;if(null===s&&(s=A,c=il(r,i)),A===s?(H=i,ue=c):(H=null,ue=v(n[A])),null!==ue){const ut=$g(y);wo(r,ue,n[ut],H,!1);const Ot=ua(e,ut);if(null!==Ot&&"object"==typeof Ot){const Dt=bl(Ot,n);null!==Dt&&zg(e,Ot.create[Dt],n,n[Ot.anchorIdx])}}break;case 1:const Ae=t[++u],ze=t[++u];zc(r,Ge(y>>>1,n),null,null,Ae,ze,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${y}"`)}else switch(y){case yl:const A=t[++u],H=t[++u];null===n[H]&&hi(n[H]=IC(r,A),n);break;case _l:const ue=t[++u],ye=t[++u];null===n[ye]&&hi(n[ye]=Tc(r,ue,null),n)}}}function Wg(e,t,n,i,r){for(let s=0;s<n.length;s++){const c=n[s],u=n[++s];if(c&r){let y="";for(let A=s+1;A<=s+u;A++){const H=n[A];if("string"==typeof H)y+=H;else if("number"==typeof H)if(H<0)y+=Ce(t[i-H]);else{const ue=H>>>2;switch(3&H){case 1:const ye=n[++A],Ae=n[++A],ze=e.data[ue];"string"==typeof ze?zc(t[11],t[ue],null,ze,ye,y,Ae):Fi(e,ze,t,ye,y,t[11],Ae,!1);break;case 0:const ut=t[ue];null!==ut&&tp(t[11],ut,y);break;case 2:DT(e,ua(e,ue),t,y);break;case 3:Kg(e,ua(e,ue),i,t)}}}}else{const y=n[s+1];if(y>0&&3==(3&y)){const H=ua(e,y>>>2);t[H.currentCaseLViewIndex]<0&&Kg(e,H,i,t)}}s+=u}}function Kg(e,t,n,i){let r=i[t.currentCaseLViewIndex];if(null!==r){let s=da;r<0&&(r=i[t.currentCaseLViewIndex]=~r,s=-1),Wg(e,i,t.update[r],n,s)}}function DT(e,t,n,i){const r=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const i=function(e,t){const n=Rg(t)(parseInt(e,10)),i=uT[n];return void 0!==i?i:"other"}(t,Ng);n=e.cases.indexOf(i),-1===n&&"other"!==i&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,i);if(bl(t,n)!==r&&(Gg(e,t,n),n[t.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const c=n[t.anchorIdx];c&&zg(e,t.create[r],n,c)}}function Gg(e,t,n){let i=bl(t,n);if(null!==i){const r=t.remove[i];for(let s=0;s<r.length;s++){const c=r[s];if(c>0){const u=Ge(c,n);null!==u&&fp(n[11],u)}else Gg(e,ua(e,~c),n)}}}function wT(){const e=[];let n,i,t=-1;function s(u,y){t=0;const A=bl(u,y);i=null!==A?u.remove[A]:Lt}function c(){if(t<i.length){const u=i[t++];return u>0?n[u]:(e.push(t,i),s(n[1].data[~u],n),c())}return 0===e.length?null:(i=e.pop(),t=e.pop(),c())}return function(u,y){for(n=y;e.length;)e.pop();return s(u.value,y),c}}const Cl=/\ufffd(\d+):?\d*\ufffd/gi,MT=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,ST=/\ufffd(\d+)\ufffd/,Yg=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,IT=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,PT=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,AT=/\uE500/g;function Jg(e,t,n,i,r,s,c){const u=ns(e,i,1,null);let y=u<<Vn.SHIFT,A=yo();t===A&&(A=null),null===A&&(y|=Vn.APPEND_EAGERLY),c&&(y|=Vn.COMMENT,function(e){void 0===yc&&(yc=e())}(wT)),r.push(y,null===s?"":s);const H=Vc(e,u,c?32:1,null===s?"":s,null);Bg(n,H);const ue=H.index;return Vi(H,!1),null!==A&&t!==A&&function(e,t){let n=e.insertBeforeIndex;null===n?(dp(Lg,jg),n=e.insertBeforeIndex=[null,t]):(function(e,t,n){e!=t&&ht(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(A,ue),H}function RT(e,t,n,i,r,s,c){const u=c.match(Cl),y=Jg(e,t,n,s,i,u?null:c,!1);u&&vs(r,c,y.index,null,0,null)}function vs(e,t,n,i,r,s){const c=e.length,u=c+1;e.push(null,null);const y=c+2,A=t.split(Cl);let H=0;for(let ue=0;ue<A.length;ue++){const ye=A[ue];if(1&ue){const Ae=r+parseInt(ye,10);e.push(-1-Ae),H|=Zg(Ae)}else""!==ye&&e.push(ye)}return e.push(n<<2|(i?1:0)),i&&e.push(i,s),e[c]=H,e[u]=e.length-y,H}function FT(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];"number"==typeof i&&i<0&&t++}return t}function Zg(e){return 1<<Math.min(e,31)}function Xg(e){let t,s,n="",i=0,r=!1;for(;null!==(t=IT.exec(e));)r?t[0]===`\ufffd/*${s}\ufffd`&&(i=t.index,r=!1):(n+=e.substring(i,t.index+t[0].length),s=t[1],r=!0);return n+=e.substr(i),n}function qg(e,t,n,i,r,s){let c=0;const u={type:r.type,currentCaseLViewIndex:ns(e,t,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};(function(e,t,n){e.push(Zg(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,r,s),function(e,t,n){const i=e.data[t];null===i?e.data[t]=n:i.value=n}(e,s,u);const y=r.values;for(let A=0;A<y.length;A++){const H=y[A],ue=[];for(let ye=0;ye<H.length;ye++){const Ae=H[ye];if("string"!=typeof Ae){const ze=ue.push(Ae)-1;H[ye]=`\x3c!--\ufffd${ze}\ufffd--\x3e`}}c=BT(e,u,t,n,i,r.cases[A],H.join(""),ue)|c}c&&function(e,t,n){e.push(t,1,n<<2|3)}(n,c,s)}function jT(e){const t=[],n=[];let i=1,r=0;const s=hd(e=e.replace(Yg,function(c,u,y){return i="select"===y?0:1,r=parseInt(u.substr(1),10),""}));for(let c=0;c<s.length;){let u=s[c++].trim();1===i&&(u=u.replace(/\s*(?:=)?(\w+)\s*/,"$1")),u.length&&t.push(u);const y=hd(s[c++]);t.length>n.length&&n.push(y)}return{type:i,mainBinding:r,cases:t,values:n}}function hd(e){if(!e)return[];let t=0;const n=[],i=[],r=/[{}]/g;let s;for(r.lastIndex=0;s=r.exec(e);){const u=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const y=e.substring(t,u);Yg.test(y)?i.push(jT(y)):i.push(y),t=u+1}}else{if(0==n.length){const y=e.substring(t,u);i.push(y),t=u+1}n.push("{")}}const c=e.substring(t);return i.push(c),i}function BT(e,t,n,i,r,s,c,u){const y=[],A=[],H=[];t.cases.push(s),t.create.push(y),t.remove.push(A),t.update.push(H);const ye=bf(Tr()).getInertBodyElement(c),Ae=hc(ye)||ye;return Ae?e_(e,t,n,i,y,A,H,Ae,r,u,0):0}function e_(e,t,n,i,r,s,c,u,y,A,H){let ue=0,ye=u.firstChild;for(;ye;){const Ae=ns(e,n,1,null);switch(ye.nodeType){case Node.ELEMENT_NODE:const ze=ye,ut=ze.tagName.toLowerCase();if(cc.hasOwnProperty(ut)){fd(r,_l,ut,y,Ae),e.data[Ae]=ut;const zt=ze.attributes;for(let Xt=0;Xt<zt.length;Xt++){const gn=zt.item(Xt),Xn=gn.name.toLowerCase();gn.value.match(Cl)?wf.hasOwnProperty(Xn)&&vs(c,gn.value,Ae,gn.name,0,uc[Xn]?Ks:dc[Xn]?Cf:null):UT(r,Ae,gn)}ue=e_(e,t,n,i,r,s,c,ye,Ae,A,H+1)|ue,t_(s,Ae,H)}break;case Node.TEXT_NODE:const tt=ye.textContent||"",Ot=tt.match(Cl);fd(r,null,Ot?"":tt,y,Ae),t_(s,Ae,H),Ot&&(ue=vs(c,tt,Ae,null,0,null)|ue);break;case Node.COMMENT_NODE:const Dt=ST.exec(ye.textContent||"");if(Dt){const Xt=A[parseInt(Dt[1],10)];fd(r,yl,"",y,Ae),qg(e,n,i,y,Xt,Ae),VT(s,Ae,H)}}ye=ye.nextSibling}return ue}function t_(e,t,n){0===n&&e.push(t)}function VT(e,t,n){0===n&&(e.push(~t),e.push(t))}function fd(e,t,n,i,r){null!==t&&e.push(t),e.push(n,r,function(e,t,n){return 0|t<<17|n<<1}(0,i,r))}function UT(e,t,n){e.push(t<<1|1,n.name,n.value)}const zT=/\[(\ufffd.+?\ufffd?)\]/,WT=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,KT=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,GT=/{([A-Z0-9_]+)}/g,QT=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,YT=/\/\*/,JT=/\d+\:(\d+)/;function i_(e,t={}){let n=e;if(zT.test(e)){const i={},r=[0];n=n.replace(WT,(s,c,u)=>{const y=c||u,A=i[y]||[];if(A.length||(y.split("|").forEach(ut=>{const tt=ut.match(JT),Ot=tt?parseInt(tt[1],10):0,Dt=YT.test(ut);A.push([Ot,Dt,ut])}),i[y]=A),!A.length)throw new Error(`i18n postprocess: unmatched placeholder - ${y}`);const H=r[r.length-1];let ue=0;for(let ut=0;ut<A.length;ut++)if(A[ut][0]===H){ue=ut;break}const[ye,Ae,ze]=A[ue];return Ae?r.pop():H!==ye&&r.push(ye),A.splice(ue,1),ze})}return Object.keys(t).length&&(n=n.replace(KT,(i,r,s,c,u,y)=>t.hasOwnProperty(s)?`${r}${t[s]}${y}`:i),n=n.replace(GT,(i,r)=>t.hasOwnProperty(r)?t[r]:i),n=n.replace(QT,(i,r)=>{if(t.hasOwnProperty(r)){const s=t[r];if(!s.length)throw new Error(`i18n postprocess: unmatched ICU - ${i} with key: ${r}`);return s.shift()}return i})),n}function pd(e,t,n=-1){const i=pn(),r=Mt(),s=20+e,c=Kn(i.consts,t),u=yo();i.firstCreatePass&&function(e,t,n,i,r,s){const c=yo(),u=[],y=[],A=[[]],H=function(e){return e.replace(AT," ")}(r=function(e,t){if(function(e){return-1===e}(t))return Xg(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,i=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Xg(e.substring(n,i))}}(r,s)).split(PT);for(let ue=0;ue<H.length;ue++){let ye=H[ue];if(0==(1&ue)){const Ae=hd(ye);for(let ze=0;ze<Ae.length;ze++){let ut=Ae[ze];if(0==(1&ze)){const tt=ut;""!==tt&&RT(e,c,A[0],u,y,n,tt)}else{const tt=ut;if("object"!=typeof tt)throw new Error(`Unable to parse ICU expression in "${r}" message.`);qg(e,n,y,t,tt,Jg(e,c,A[0],n,u,"",!0).index)}}}else{const Ae=47===ye.charCodeAt(0),ut=(ye.charCodeAt(Ae?1:0),20+Number.parseInt(ye.substring(Ae?2:1)));if(Ae)A.shift(),Vi(yo(),!1);else{const tt=yT(e,A[0],ut);A.unshift([]),Vi(tt,!0)}}}e.data[i]={create:u,update:y}}(i,null===u?0:u.index,r,s,c,n);const y=i.data[s],H=op(i,u===r[6]?null:u,r);(function(e,t,n,i){const r=e[11];for(let s=0;s<t.length;s++){const c=t[s++],u=t[s],y=(c&Vn.COMMENT)===Vn.COMMENT,A=(c&Vn.APPEND_EAGERLY)===Vn.APPEND_EAGERLY,H=c>>>Vn.SHIFT;let ue=e[H];null===ue&&(ue=e[H]=y?r.createComment(u):Dc(r,u)),A&&null!==n&&wo(r,n,ue,i,!1)}})(r,y.create,H,u&&8&u.type?r[u.index]:null),nn(!0)}function md(){nn(!1)}function r_(e,t,n){pd(e,t,n),md()}function o_(e,t){const n=pn();!function(e,t,n){const r=kn().index,s=[];if(e.firstCreatePass&&null===e.data[t]){for(let c=0;c<n.length;c+=2){const u=n[c],y=n[c+1];if(""!==y){if(MT.test(y))throw new Error(`ICU expressions are not supported in attributes. Message: "${y}".`);vs(s,y,r,u,FT(s),null)}}e.data[t]=s}}(n,e+20,Kn(n.consts,t))}function gd(e){return function(e){e&&(da|=1<<Math.min(ha,31)),ha++}(fi(Mt(),bt(),e)),gd}function s_(e){!function(e,t,n){if(ha>0){const i=e.data[n];Wg(e,t,Array.isArray(i)?i:i.update,Re()-ha-1,da)}da=0,ha=0}(pn(),Mt(),e+20)}function a_(e,t={}){return i_(e,t)}function _d(e,t,n,i,r){if(e=S(e),Array.isArray(e))for(let s=0;s<e.length;s++)_d(e[s],t,n,i,r);else{const s=pn(),c=Mt();let u=os(e)?e:S(e.provide),y=rm(e);const A=kn(),H=1048575&A.providerIndexes,ue=A.directiveStart,ye=A.providerIndexes>>20;if(os(e)||!e.multi){const Ae=new Ri(y,r,aa),ze=vd(u,t,r?H:H+ye,ue);-1===ze?(Wa(Hs(A,c),s,u),yd(s,e,t.length),t.push(u),A.directiveStart++,A.directiveEnd++,r&&(A.providerIndexes+=1048576),n.push(Ae),c.push(Ae)):(n[ze]=Ae,c[ze]=Ae)}else{const Ae=vd(u,t,H+ye,ue),ze=vd(u,t,H,H+ye),ut=Ae>=0&&n[Ae],tt=ze>=0&&n[ze];if(r&&!tt||!r&&!ut){Wa(Hs(A,c),s,u);const Ot=function(e,t,n,i,r){const s=new Ri(e,n,aa);return s.multi=[],s.index=t,s.componentProviders=0,l_(s,r,i&&!n),s}(r?qT:XT,n.length,r,i,y);!r&&tt&&(n[ze].providerFactory=Ot),yd(s,e,t.length,0),t.push(u),A.directiveStart++,A.directiveEnd++,r&&(A.providerIndexes+=1048576),n.push(Ot),c.push(Ot)}else yd(s,e,Ae>-1?Ae:ze,l_(n[r?ze:Ae],y,!r&&i));!r&&i&&tt&&n[ze].componentProviders++}}}function yd(e,t,n,i){const r=os(t);if(r||function(e){return!!e.useClass}(t)){const c=(t.useClass||t).prototype.ngOnDestroy;if(c){const u=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const y=u.indexOf(n);-1===y?u.push(n,[i,c]):u[y+1].push(i,c)}else u.push(n,c)}}}function l_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function vd(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function XT(e,t,n,i){return bd(this.multi,[])}function qT(e,t,n,i){const r=this.multi;let s;if(this.providerFactory){const c=this.providerFactory.componentProviders,u=$s(n,n[1],this.providerFactory.index,i);s=u.slice(0,c),bd(r,s);for(let y=c;y<u.length;y++)s.push(u[y])}else s=[],bd(r,s);return s}function bd(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function c_(e,t=[]){return n=>{n.providersResolver=(i,r)=>function(e,t,n){const i=pn();if(i.firstCreatePass){const r=ni(e);_d(n,i.data,i.blueprint,r,!0),_d(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}class Cd{}class bs{}function u_(e){const t=Error(`No component factory found for ${D(e)}. Did you add it to @NgModule.entryComponents?`);return t[d_]=e,t}const d_="ngComponent";class t0{resolveComponentFactory(t){throw u_(t)}}let Cs=(()=>{class e{}return e.NULL=new t0,e})();class n0{constructor(t,n,i){this._parent=n,this._ngModule=i,this._factories=new Map;for(let r=0;r<t.length;r++){const s=t[r];this._factories.set(s.componentType,s)}}resolveComponentFactory(t){let n=this._factories.get(t);if(!n&&this._parent&&(n=this._parent.resolveComponentFactory(t)),!n)throw u_(t);return new Ed(n,this._ngModule)}}class Ed extends bs{constructor(t,n){super(),this.factory=t,this.ngModule=n,this.selector=t.selector,this.componentType=t.componentType,this.ngContentSelectors=t.ngContentSelectors,this.inputs=t.inputs,this.outputs=t.outputs}create(t,n,i,r){return this.factory.create(t,n,i,r||this.ngModule)}}function El(...e){}function h_(){return Io(kn(),Mt())}function Io(e,t){return new cr(St(e,t))}const f_=h_,r0=f_;let cr=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=r0,e})();function p_(e){return e instanceof cr?e.nativeElement:e}class Dl{}let m_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>o0(),e})();const g_=__,o0=g_;function __(){const e=Mt(),n=bn(kn().index,e);return function(e){return e[11]}(ti(n)?n:e)}let Dd=(()=>{class e{}return e.\u0275prov=$({token:e,providedIn:"root",factory:()=>null}),e})();class y_{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Td=new y_("12.2.13");class wd{constructor(){}supports(t){return ia(t)}create(t){return new v_(t)}}const a0=(e,t)=>t;class v_{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||a0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const c=!i||n&&n.currentIndex<C_(i,r,s)?n:i,u=C_(c,r,s),y=c.currentIndex;if(c===i)r--,i=i._nextRemoved;else if(n=n._next,null==c.previousIndex)r++;else{s||(s=[]);const A=u-r,H=y-r;if(A!=H){for(let ye=0;ye<A;ye++){const Ae=ye<s.length?s[ye]:s[ye]=0,ze=Ae+ye;H<=ze&&ze<A&&(s[ye]=Ae+1)}s[c.previousIndex]=H-A}}u!==y&&t(c,u,y)}}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=[]),!ia(t))throw new Error(`Error trying to diff '${D(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,c,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let u=0;u<this.length;u++)s=t[u],c=this._trackByFn(u,s),null!==n&&Object.is(n.trackById,c)?(i&&(n=this._verifyReinsertion(n,s,c,u)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,c,u),i=!0),n=n._next}else r=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[ss()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,u=>{c=this._trackByFn(r,u),null!==n&&Object.is(n.trackById,c)?(i&&(n=this._verifyReinsertion(n,u,c,r)),Object.is(n.item,u)||this._addIdentityChange(n,u)):(n=this._mismatch(n,u,c,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,r)):t=this._addAfter(new l0(n,i),s,r),t}_verifyReinsertion(t,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new b_),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new b_),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 l0{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 c0{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class b_{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new c0,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.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 C_(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+t+r}class Md{constructor(){}supports(t){return t instanceof Map||lu(t)}create(){return new u0}}class u0{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||lu(t)))throw new Error(`Error trying to diff '${D(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,n);const s=r._prev,c=r._next;return s&&(s._next=c),c&&(c._prev=s),r._next=null,r._prev=null,r}const i=new d0(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class d0{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 Sd(){return new Tl([new wd])}let Tl=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Sd()),deps:[[e,new Kr,new Wr]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:Sd}),e})();function Id(){return new wl([new Md])}let wl=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Id()),deps:[[e,new Kr,new Wr]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:Id}),e})();function Ml(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(v(s)),Cn(s))for(let u=10;u<s.length;u++){const y=s[u],A=y[1].firstChild;null!==A&&Ml(y[1],y,A,i)}const c=n.type;if(8&c)Ml(e,t,n.child,i);else if(32&c){const u=vc(n,t);let y;for(;y=u();)i.push(y)}else if(16&c){const u=hp(t,n);if(Array.isArray(u))i.push(...u);else{const y=Js(t[16]);Ml(y[1],y,u,i,!0)}}n=r?n.projectionNext:n.next}return i}class pa{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 Ml(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(Cn(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(wc(t,i),Co(n,i))}this._attachedToViewContainer=!1}ip(this._lView[1],this._lView)}onDestroy(t){jp(this._lView[1],this._lView,null,t)}markForCheck(){Kc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Qc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){ge(!0);try{Qc(e,t,n)}finally{ge(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Zs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class f0 extends pa{constructor(t){super(t),this._view=t}detectChanges(){Gp(this._view)}checkNoChanges(){!function(e){ge(!0);try{Gp(e)}finally{ge(!1)}}(this._view)}get context(){return null}}const E_=D_,p0=E_;let Pd=(()=>{class e{}return e.__NG_ELEMENT_ID__=p0,e})();function D_(e){return function(e,t,n){if(ci(e)&&!n){const i=bn(e.index,t);return new pa(i,i)}return 47&e.type?new pa(t[16],t):null}(kn(),Mt(),16==(16&e))}const g0=[new Md],T_=new Tl([new wd]),w_=new wl(g0),M_=S_,y0=M_;let Po=(()=>{class e{}return e.__NG_ELEMENT_ID__=y0,e})();const v0=Po,b0=class extends v0{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Xs(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(n)),qs(n,i,t),new pa(i)}};function S_(){return ma(kn(),Mt())}function ma(e,t){return 4&e.type?new b0(t,e,Io(e,t)):null}class uo{}class Ad{}const I_=P_,C0=I_;let ga=(()=>{class e{}return e.__NG_ELEMENT_ID__=C0,e})();function P_(){return x_(kn(),Mt())}const E0=ga,A_=class extends E0{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return Io(this._hostTNode,this._hostLView)}get injector(){return new jo(this._hostTNode,this._hostLView)}get parentInjector(){const t=za(this._hostTNode,this._hostLView);if($h(t)){const n=Lo(t,this._hostLView),i=No(t);return new jo(n[1].data[i+8],n)}return new jo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=O_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,s){const c=i||this.parentInjector;if(!s&&null==t.ngModule&&c){const y=c.get(uo,null);y&&(s=y)}const u=t.create(c,r,void 0,s);return this.insert(u.hostView,n),u}insert(t,n){const i=t._lView,r=i[1];if(Cn(i[3])){const H=this.indexOf(t);if(-1!==H)this.detach(H);else{const ue=i[3],ye=new A_(ue,ue[6],ue[3]);ye.detach(ye.indexOf(t))}}const s=this._adjustIndex(n),c=this._lContainer;!function(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i<s-10?(t[4]=n[r],Ya(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const c=t[17];null!==c&&n!==c&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(c,t);const u=t[19];null!==u&&u.insertView(e),t[2]|=128}(r,i,c,s);const u=Ic(s,c),y=i[11],A=il(y,c[7]);return null!==A&&function(e,t,n,i,r,s){i[0]=r,i[6]=t,Zs(e,i,n,1,r,s)}(r,c[6],y,i,A,u),t.attachToViewContainerRef(),Ya(Od(c),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=O_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=wc(this._lContainer,n);i&&(Co(Od(this._lContainer),n),ip(i[1],i))}detach(t){const n=this._adjustIndex(t,-1),i=wc(this._lContainer,n);return i&&null!=Co(Od(this._lContainer),n)?new pa(i):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function O_(e){return e[8]}function Od(e){return e[8]||(e[8]=[])}function x_(e,t){let n;const i=t[e.index];if(Cn(i))n=i;else{let r;if(8&e.type)r=v(i);else{const s=t[11];r=s.createComment("");const c=St(e,t);wo(s,il(s,c),r,function(e,t){return O(e)?e.nextSibling(t):t.nextSibling}(s,c),!1)}t[e.index]=n=Kp(i,t,r,e),ul(t,n)}return new A_(n,e,t)}function R_(e,t,n,i){let r=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return i&&(r+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return k_(n,t),n}(r,e)}function k_(e,t){e[Vf]=t,e[Hf]=t.logError.bind(t)}function F_(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Sl(e,t,n){const i=e.state,r=1792&i;return r===t?(e.state=-1793&i|n,e.initIndex=-1,!0):r===n}function Il(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function _a(e,t){return e.nodes[t]}function En(e,t){return e.nodes[t]}function ho(e,t){return e.nodes[t]}function Es(e,t){return e.nodes[t]}function ya(e,t){return e.nodes[t]}class M0{}const ln={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Yi=()=>{},xd=new Map;function ai(e){let t=xd.get(e);return t||(t=D(e)+"_"+xd.size,xd.set(e,t)),t}function S0(e,t,n,i){if(Gi.isWrapped(i)){i=Gi.unwrap(i);const r=e.def.nodes[t].bindingIndex+n,s=Gi.unwrap(e.oldValues[r]);e.oldValues[r]=new Gi(s)}return i}const N_="$$undefined",L_="$$empty";function I0(e){return{id:N_,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let P0=0;function Ji(e,t,n,i){return!(!(2&e.state)&&Object.is(e.oldValues[t.bindingIndex+n],i))}function Nn(e,t,n,i){return!!Ji(e,t,n,i)&&(e.oldValues[t.bindingIndex+n]=i,!0)}function ur(e,t,n,i){const r=e.oldValues[t.bindingIndex+n];if(1&e.state||!au(r,i)){const s=t.bindings[n].name;throw R_(ln.createDebugContext(e,t.nodeIndex),`${s}: ${r}`,`${s}: ${i}`,0!=(1&e.state))}}function j_(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function O0(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function B_(e,t,n,i){try{return j_(33554432&e.def.nodes[t].flags?En(e,t).componentView:e),ln.handleEvent(e,t,n,i)}catch(r){e.root.errorHandler.handleError(r)}}function Rd(e){return e.parent?En(e.parent,e.parentNodeDef.nodeIndex):null}function Ds(e){return e.parent?e.parentNodeDef.parent:null}function va(e,t){switch(201347067&t.flags){case 1:return En(e,t.nodeIndex).renderElement;case 2:return _a(e,t.nodeIndex).renderText}}function x0(e,t){return e?`${e}:${t}`:t}function Ao(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function R0(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function V_(e){return 1<<e%32}function kd(e){const t={};let n=0;const i={};return e&&e.forEach(([r,s])=>{"number"==typeof r?(t[r]=s,n|=V_(r)):i[r]=s}),{matchedQueries:t,references:i,matchedQueryIds:n}}function ba(e,t){return e.map(n=>{let i,r;return Array.isArray(n)?[r,i]=n:(r=0,i=n),i&&("function"==typeof i||"object"==typeof i)&&t&&Object.defineProperty(i,ic,{value:t,configurable:!0}),{flags:r,token:i,tokenKey:ai(i)}})}function Fd(e,t,n){let i=n.renderParent;return i?0==(1&i.flags)||0==(33554432&i.flags)||i.element.componentRendererType&&(i.element.componentRendererType.encapsulation===ne.ShadowDom||1===i.element.componentRendererType.encapsulation)?En(e,n.renderParent.nodeIndex).renderElement:void 0:t}const H_=new WeakMap;function Ts(e){let t=H_.get(e);return t||(t=e(()=>Yi),t.factory=e,H_.set(e,t)),t}function Pl(e,t,n,i,r){3===t&&(n=e.renderer.parentNode(va(e,e.def.lastRenderRootNode))),$_(e,t,0,e.def.nodes.length-1,n,i,r)}function $_(e,t,n,i,r,s,c){for(let u=n;u<=i;u++){const y=e.def.nodes[u];11&y.flags&&z_(e,y,t,r,s,c),u+=y.childCount}}function U_(e,t,n,i,r,s){let c=e;for(;c&&!Ao(c);)c=c.parent;const u=c.parent,y=Ds(c),H=y.nodeIndex+y.childCount;for(let ue=y.nodeIndex+1;ue<=H;ue++){const ye=u.def.nodes[ue];ye.ngContentIndex===t&&z_(u,ye,n,i,r,s),ue+=ye.childCount}if(!u.parent){const ue=e.root.projectableNodes[t];if(ue)for(let ye=0;ye<ue.length;ye++)Al(e,ue[ye],n,i,r,s)}}function z_(e,t,n,i,r,s){if(8&t.flags)U_(e,t.ngContent.index,n,i,r,s);else{const c=va(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&Al(e,c,n,i,r,s),32&t.bindingFlags&&Al(En(e,t.nodeIndex).componentView,c,n,i,r,s)):Al(e,c,n,i,r,s),16777216&t.flags){const u=En(e,t.nodeIndex).viewContainer._embeddedViews;for(let y=0;y<u.length;y++)Pl(u[y],n,i,r,s)}1&t.flags&&!t.element.name&&$_(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,i,r,s)}}function Al(e,t,n,i,r,s){const c=e.renderer;switch(n){case 1:c.appendChild(i,t);break;case 2:c.insertBefore(i,t,r);break;case 3:c.removeChild(i,t);break;case 0:s.push(t)}}const F0=/^:([^:]+):(.+)$/;function Nd(e){if(":"===e[0]){const t=e.match(F0);return[t[1],t[2]]}return["",e]}function Ld(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function N0(e,t){let n="";for(let i=0;i<2*e;i+=2)n=n+t[i]+sn(t[i+1]);return n+t[2*e]}function L0(e,t,n,i,r,s,c,u,y,A,H,ue,ye,Ae,ze,ut,tt,Ot,Dt,zt){switch(e){case 1:return t+sn(n)+i;case 2:return t+sn(n)+i+sn(r)+s;case 3:return t+sn(n)+i+sn(r)+s+sn(c)+u;case 4:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A;case 5:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(H)+ue;case 6:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(H)+ue+sn(ye)+Ae;case 7:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(H)+ue+sn(ye)+Ae+sn(ze)+ut;case 8:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(H)+ue+sn(ye)+Ae+sn(ze)+ut+sn(tt)+Ot;case 9:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(H)+ue+sn(ye)+Ae+sn(ze)+ut+sn(tt)+Ot+sn(Dt)+zt;default:throw new Error("Does not support more than 9 expressions")}}function sn(e){return null!=e?e.toString():""}const j0={},Ca={},B0=ai(In),V0=ai(co),H0=ai(uo);function $0(e,t,n,i){return n=S(n),{index:-1,deps:ba(i,D(t)),flags:e,token:t,value:n}}function U0(e){const t={},n=[];let i=null;for(let r=0;r<e.length;r++){const s=e[r];s.token===ea&&(i=s.value),1073741824&s.flags&&n.push(s.token),s.index=r,t[ai(s.token)]=s}return{factory:null,providersByKey:t,providers:e,modules:n,scope:i}}function pi(e,t,n=In.THROW_IF_NOT_FOUND){const i=Eo(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const r=t.tokenKey;switch(r){case B0:case V0:case H0:return e}const s=e._def.providersByKey[r];let c;if(s){let u=e._providers[s.index];return void 0===u&&(u=e._providers[s.index]=jd(e,s)),u===Ca?void 0:u}if((c=ce(t.token))&&function(e,t){const n=S(t.providedIn);return null!=n&&("any"===n||n===e._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(e,n))}(e,c)){const u=e._providers.length;return e._def.providers[u]=e._def.providersByKey[t.tokenKey]={flags:5120,value:c.factory,deps:[],index:u,token:t.token},e._providers[u]=Ca,e._providers[u]=jd(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Eo(i)}}function jd(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const i=n.length;switch(i){case 0:return new t;case 1:return new t(pi(e,n[0]));case 2:return new t(pi(e,n[0]),pi(e,n[1]));case 3:return new t(pi(e,n[0]),pi(e,n[1]),pi(e,n[2]));default:const r=[];for(let s=0;s<i;s++)r[s]=pi(e,n[s]);return new t(...r)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const i=n.length;switch(i){case 0:return t();case 1:return t(pi(e,n[0]));case 2:return t(pi(e,n[0]),pi(e,n[1]));case 3:return t(pi(e,n[0]),pi(e,n[1]),pi(e,n[2]));default:const r=[];for(let s=0;s<i;s++)r[s]=pi(e,n[s]);return t(...r)}}(e,t.value,t.deps);break;case 2048:n=pi(e,t.deps[0]);break;case 256:n=t.value}return n!==Ca&&null!==n&&"object"==typeof n&&!(131072&t.flags)&&"function"==typeof n.ngOnDestroy&&(t.flags|=131072),void 0===n?Ca:n}function Bd(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const i=n[t];return i.viewContainerParent=null,Co(n,t),ln.dirtyParentQueries(i),Vd(i),i}function W_(e,t,n){const i=t?va(t,t.def.lastRenderRootNode):e.renderElement,r=n.renderer.parentNode(i),s=n.renderer.nextSibling(i);Pl(n,2,r,s,void 0)}function Vd(e){Pl(e,3,null,null,void 0)}const tw={};function nw(e,t,n,i,r,s){return new iw(e,t,n,i,r,s)}function K_(e){return e.viewDefFactory}class iw extends bs{constructor(t,n,i,r,s,c){super(),this.selector=t,this.componentType=n,this._inputs=r,this._outputs=s,this.ngContentSelectors=c,this.viewDefFactory=i}get inputs(){const t=[],n=this._inputs;for(let i in n)t.push({propName:i,templateName:n[i]});return t}get outputs(){const t=[];for(let n in this._outputs)t.push({propName:n,templateName:this._outputs[n]});return t}create(t,n,i,r){if(!r)throw new Error("ngModule should be provided");const s=Ts(this.viewDefFactory),c=s.nodes[0].element.componentProvider.nodeIndex,u=ln.createRootView(t,n||[],i,s,r,tw),y=ho(u,c).instance;return i&&u.renderer.setAttribute(En(u,0).renderElement,"ng-version",Td.full),new rw(u,new Ea(u),y)}}class rw extends Cd{constructor(t,n,i){super(),this._view=t,this._viewRef=n,this._component=i,this._elDef=this._view.def.nodes[0],this.hostView=n,this.changeDetectorRef=n,this.instance=i}get location(){return new cr(En(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Da(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(t){this._viewRef.onDestroy(t)}}function ow(e,t,n){return new sw(e,t,n)}class sw{constructor(t,n,i){this._view=t,this._elDef=n,this._data=i,this._embeddedViews=[]}get element(){return new cr(this._data.renderElement)}get injector(){return new Da(this._view,this._elDef)}get parentInjector(){let t=this._view,n=this._elDef.parent;for(;!n&&t;)n=Ds(t),t=t.parent;return t?new Da(t,n):new Da(this._view,null)}clear(){for(let n=this._embeddedViews.length-1;n>=0;n--){const i=Bd(this._data,n);ln.destroyView(i)}}get(t){const n=this._embeddedViews[t];if(n){const i=new Ea(n);return i.attachToViewContainerRef(this),i}return null}get length(){return this._embeddedViews.length}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,s){const c=i||this.parentInjector;!s&&!(t instanceof Ed)&&(s=c.get(uo));const u=t.create(c,r,void 0,s);return this.insert(u.hostView,n),u}insert(t,n){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const i=t;return function(e,t,n,i){let r=t.viewContainer._embeddedViews;null==n&&(n=r.length),i.viewContainerParent=e,Ya(r,n,i),function(e,t){const n=Rd(t);if(!n||n===e||16&t.state)return;t.state|=16;let i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,i),ln.dirtyParentQueries(i),W_(t,n>0?r[n-1]:null,i)}(this._view,this._data,n,i._view),i.attachToViewContainerRef(this),t}move(t,n){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const i=this._embeddedViews.indexOf(t._view);return function(e,t,n){const i=e.viewContainer._embeddedViews,r=i[t];Co(i,t),null==n&&(n=i.length),Ya(i,n,r),ln.dirtyParentQueries(r),Vd(r),W_(e,n>0?i[n-1]:null,r)}(this._data,i,n),t}indexOf(t){return this._embeddedViews.indexOf(t._view)}remove(t){const n=Bd(this._data,t);n&&ln.destroyView(n)}detach(t){const n=Bd(this._data,t);return n?new Ea(n):null}}function aw(e){return new Ea(e)}class Ea{constructor(t){this._view=t,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return Pl(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}set context(t){this._view.context=t}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){j_(this._view)}detach(){this._view.state&=-5}detectChanges(){const t=this._view.root.rendererFactory;t.begin&&t.begin();try{ln.checkAndUpdateView(this._view)}finally{t.end&&t.end()}}checkNoChanges(){ln.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ln.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Vd(this._view),ln.dirtyParentQueries(this._view)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}}function lw(e,t){return new cw(e,t)}class cw extends Po{constructor(t,n){super(),this._parentView=t,this._def=n}createEmbeddedView(t){return new Ea(ln.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))}get elementRef(){return new cr(En(this._parentView,this._def.nodeIndex).renderElement)}}function G_(e,t){return new Da(e,t)}class Da{constructor(t,n){this.view=t,this.elDef=n}get(t,n=In.THROW_IF_NOT_FOUND){return ln.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:ai(t)},n)}}function uw(e,t){const n=e.def.nodes[t];if(1&n.flags){const i=En(e,n.nodeIndex);return n.element.template?i.template:i.renderElement}if(2&n.flags)return _a(e,n.nodeIndex).renderText;if(20240&n.flags)return ho(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Q_(e,t,n,i){return new dw(e,t,n,i)}class dw{constructor(t,n,i,r){this._moduleType=t,this._parent=n,this._bootstrapComponents=i,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=oo(t.providers.length);for(let i=0;i<t.providers.length;i++){const r=t.providers[i];4096&r.flags||void 0===n[i]&&(n[i]=jd(e,r))}}(this)}get(t,n=In.THROW_IF_NOT_FOUND,i=q.Default){let r=0;return i&q.SkipSelf?r|=1:i&q.Self&&(r|=4),pi(this,{token:t,tokenKey:ai(t),flags:r},n)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(Cs)}destroy(){if(this._destroyed)throw new Error(`The ng module ${D(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,i=new Set;for(let r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){const c=e._providers[r];if(c&&c!==Ca){const u=c.ngOnDestroy;"function"==typeof u&&!i.has(c)&&(u.apply(c),i.add(c))}}}(this),this._destroyListeners.forEach(t=>t())}onDestroy(t){this._destroyListeners.push(t)}}const hw=ai(m_),fw=ai(cr),pw=ai(ga),mw=ai(Po),Y_=ai(Pd),gw=ai(In),_w=ai(co);function yw(e,t,n,i,r,s,c,u){const y=[];if(c)for(let H in c){const[ue,ye]=c[H];y[ue]={flags:8,name:H,nonMinifiedName:ye,ns:null,securityContext:null,suffix:null}}const A=[];if(u)for(let H in u)A.push({type:1,propName:H,target:null,eventName:u[H]});return Ol(e,t|=16384,n,i,r,r,s,y,A)}function vw(e,t,n){return Ol(-1,e|=16,null,0,t,t,n)}function bw(e,t,n,i,r){return Ol(-1,e,t,0,n,i,r)}function Ol(e,t,n,i,r,s,c,u,y){const{matchedQueries:A,references:H,matchedQueryIds:ue}=kd(n);y||(y=[]),u||(u=[]),s=S(s);const ye=ba(c,D(r));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:A,matchedQueryIds:ue,references:H,ngContentIndex:-1,childCount:i,bindings:u,bindingFlags:Ld(u),outputs:y,element:null,provider:{token:r,value:s,deps:ye},text:null,query:null,ngContent:null}}function Cw(e,t){return J_(e,t)}function Ew(e,t){let n=e;for(;n.parent&&!Ao(n);)n=n.parent;return Hd(n.parent,Ds(n),!0,t.provider.value,t.provider.deps)}function Dw(e,t){const i=Hd(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const s=t.outputs[r],c=i[s.propName];if(!Pu(c))throw new Error(`@Output ${s.propName} not initialized in '${i.constructor.name}'.`);{const u=c.subscribe(Tw(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+r]=u.unsubscribe.bind(u)}}return i}function Tw(e,t,n){return i=>B_(e,t,n,i)}function J_(e,t){const n=(8192&t.flags)>0,i=t.provider;switch(201347067&t.flags){case 512:return Hd(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,r){const s=r.length;switch(s){case 0:return i();case 1:return i(mi(e,t,n,r[0]));case 2:return i(mi(e,t,n,r[0]),mi(e,t,n,r[1]));case 3:return i(mi(e,t,n,r[0]),mi(e,t,n,r[1]),mi(e,t,n,r[2]));default:const c=[];for(let u=0;u<s;u++)c.push(mi(e,t,n,r[u]));return i(...c)}}(e,t.parent,n,i.value,i.deps);case 2048:return mi(e,t.parent,n,i.deps[0]);case 256:return i.value}}function Hd(e,t,n,i,r){const s=r.length;switch(s){case 0:return new i;case 1:return new i(mi(e,t,n,r[0]));case 2:return new i(mi(e,t,n,r[0]),mi(e,t,n,r[1]));case 3:return new i(mi(e,t,n,r[0]),mi(e,t,n,r[1]),mi(e,t,n,r[2]));default:const c=[];for(let u=0;u<s;u++)c.push(mi(e,t,n,r[u]));return new i(...c)}}const Oo={};function mi(e,t,n,i,r=In.THROW_IF_NOT_FOUND){if(8&i.flags)return i.token;const s=e;2&i.flags&&(r=null);const c=i.tokenKey;c===Y_&&(n=!(!t||!t.element.componentView)),t&&1&i.flags&&(n=!1,t=t.parent);let u=e;for(;u;){if(t)switch(c){case hw:return Z_(u,t,n).renderer;case fw:return new cr(En(u,t.nodeIndex).renderElement);case pw:return En(u,t.nodeIndex).viewContainer;case mw:if(t.element.template)return En(u,t.nodeIndex).template;break;case Y_:return aw(Z_(u,t,n));case gw:case _w:return G_(u,t);default:const A=(n?t.element.allProviders:t.element.publicProviders)[c];if(A){let H=ho(u,A.nodeIndex);return H||(H={instance:J_(u,A)},u.nodes[A.nodeIndex]=H),H.instance}}n=Ao(u),t=Ds(u),u=u.parent,4&i.flags&&(u=null)}const y=s.root.injector.get(i.token,Oo);return y!==Oo||r===Oo?y:s.root.ngModule.injector.get(i.token,r)}function Z_(e,t,n){let i;if(n)i=En(e,t.nodeIndex).componentView;else for(i=e;i.parent&&!Ao(i);)i=i.parent;return i}function dr(e,t,n,i,r,s){if(32768&n.flags){const y=En(e,n.parent.nodeIndex).componentView;2&y.def.flags&&(y.state|=8)}if(t.instance[n.bindings[i].name]=r,524288&n.flags){s=s||{};const y=Gi.unwrap(e.oldValues[n.bindingIndex+i]);s[n.bindings[i].nonMinifiedName]=new er(y,r,0!=(2&e.state))}return e.oldValues[n.bindingIndex+i]=r,s}function $d(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let i=0;for(let r=0;r<n.length;r++){const s=n[r];let c=s.parent;for(!c&&s.flags&t&&X_(e,r,s.flags&t,i++),0==(s.childFlags&t)&&(r+=s.childCount);c&&1&c.flags&&r===c.nodeIndex+c.childCount;)c.directChildFlags&t&&(i=Iw(e,c,t,i)),c=c.parent}}function Iw(e,t,n,i){for(let r=t.nodeIndex+1;r<=t.nodeIndex+t.childCount;r++){const s=e.def.nodes[r];s.flags&n&&X_(e,r,s.flags&n,i++),r+=s.childCount}return i}function X_(e,t,n,i){const r=ho(e,t);if(!r)return;const s=r.instance;!s||(ln.setCurrentNode(e,t),1048576&n&&Il(e,512,i)&&s.ngAfterContentInit(),2097152&n&&s.ngAfterContentChecked(),4194304&n&&Il(e,768,i)&&s.ngAfterViewInit(),8388608&n&&s.ngAfterViewChecked(),131072&n&&s.ngOnDestroy())}class q_ extends Cs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=an(t);return new Ud(n,this.ngModule)}}function ey(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const ty=new jn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Gf});class Ud extends bs{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(JC).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return ey(this.componentDef.inputs)}get outputs(){return ey(this.componentDef.outputs)}create(t,n,i,r){const s=(r=r||this.ngModule)?function(e,t){return{get:(n,i,r)=>{const s=e.get(n,Oo,r);return s!==Oo||i===Oo?s:t.get(n,i,r)}}}(t,r.injector):t,c=s.get(Dl,k),u=s.get(Dd,null),y=c.createRenderer(null,this.componentDef),A=this.componentDef.selectors[0][0]||"div",H=i?Lp(y,i,this.componentDef.encapsulation):Tc(c.createRenderer(null,this.componentDef),A,function(e){const t=e.toLowerCase();return"svg"===t?Cr:"math"===t?no:null}(A)),ue=this.componentDef.onPush?576:528,ye=Em(),Ae=cl(0,null,null,1,0,null,null,null,null,null),ze=Xs(null,Ae,ye,ue,null,null,c,y,u,s);let ut,tt;nr(ze);try{const Ot=bm(H,this.componentDef,ze,c,y);if(H)if(i)Ha(y,H,["ng-version",Td.full]);else{const{attrs:Dt,classes:zt}=function(e){const t=[],n=[];let i=1,r=2;for(;i<e.length;){let s=e[i];if("string"==typeof s)2===r?""!==s&&t.push(s,e[++i]):8===r&&n.push(s);else{if(!rr(r))break;r=s}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Dt&&Ha(y,H,Dt),zt&&zt.length>0&&Ac(y,H,zt.join(" "))}if(tt=fn(Ae,20),void 0!==n){const Dt=tt.projection=[];for(let zt=0;zt<this.ngContentSelectors.length;zt++){const Xt=n[zt];Dt.push(null!=Xt?Array.from(Xt):null)}}ut=Cm(Ot,this.componentDef,ze,ye,[Dm]),qs(Ae,ze,null)}finally{Ei()}return new ny(this.componentType,ut,Io(tt,ze),ze,tt)}}class ny extends Cd{constructor(t,n,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new f0(r),this.componentType=t}get injector(){return new jo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function iy(e,t,n,i){return F(()=>{const r=e;null!==t&&(r.hasOwnProperty("decorators")&&void 0!==r.decorators?r.decorators.push(...t):r.decorators=t),null!==n&&(r.ctorParameters=n),null!==i&&(r.propDecorators=r.hasOwnProperty("propDecorators")&&void 0!==r.propDecorators?Object.assign(Object.assign({},r.propDecorators),i):i)})}const ws=new Map;function xw(e,t){const n=ws.get(e);ry(e,n&&n.moduleType,t.moduleType),ws.set(e,t)}function ry(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${D(t)} vs ${D(t.name)}`)}function oy(e){const t=new Set;!function n(i){const r=yn(i,!0),s=r.id;if(null!==s){ry(s,ws.get(s),i),ws.set(s,i)}const c=Sr(r.imports);for(const u of c)t.has(u)||(t.add(u),n(u))}(e)}function sy(e){return ws.get(e)||ie[e]}class ay extends uo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new q_(this);const i=yn(t),r=t[V]||null;r&&vl(r),this._bootstrapComponents=Sr(i.bootstrap),this._r3Injector=im(t,n,[{provide:uo,useValue:this},{provide:Cs,useValue:this.componentFactoryResolver}],D(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=In.THROW_IF_NOT_FOUND,i=q.Default){return t===In||t===uo||t===co?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class xl extends Ad{constructor(t){super(),this.moduleType=t,null!==yn(t)&&oy(t)}create(t){return new ay(this.moduleType,t)}}function ly(e,t,n){const i=Te()+e,r=Mt();return r[i]===on?Ar(r,i,n?t.call(n):t()):ra(r,i)}function cy(e,t,n,i){return zd(Mt(),Te(),e,t,n,i)}function uy(e,t,n,i,r){return Wd(Mt(),Te(),e,t,n,i,r)}function dy(e,t,n,i,r,s){return Kd(Mt(),Te(),e,t,n,i,r,s)}function hy(e,t,n,i,r,s,c){return Gd(Mt(),Te(),e,t,n,i,r,s,c)}function fy(e,t,n,i,r,s,c,u){const y=Te()+e,A=Mt(),H=Qi(A,y,n,i,r,s);return fi(A,y+4,c)||H?Ar(A,y+5,u?t.call(u,n,i,r,s,c):t(n,i,r,s,c)):ra(A,y+5)}function py(e,t,n,i,r,s,c,u,y){const A=Te()+e,H=Mt(),ue=Qi(H,A,n,i,r,s);return Mo(H,A+4,c,u)||ue?Ar(H,A+6,y?t.call(y,n,i,r,s,c,u):t(n,i,r,s,c,u)):ra(H,A+6)}function my(e,t,n,i,r,s,c,u,y,A){const H=Te()+e,ue=Mt();let ye=Qi(ue,H,n,i,r,s);return fl(ue,H+4,c,u,y)||ye?Ar(ue,H+7,A?t.call(A,n,i,r,s,c,u,y):t(n,i,r,s,c,u,y)):ra(ue,H+7)}function gy(e,t,n,i,r,s,c,u,y,A,H){const ue=Te()+e,ye=Mt(),Ae=Qi(ye,ue,n,i,r,s);return Qi(ye,ue+4,c,u,y,A)||Ae?Ar(ye,ue+8,H?t.call(H,n,i,r,s,c,u,y,A):t(n,i,r,s,c,u,y,A)):ra(ye,ue+8)}function _y(e,t,n,i){return Qd(Mt(),Te(),e,t,n,i)}function Ta(e,t){const n=e[t];return n===on?void 0:n}function zd(e,t,n,i,r,s){const c=t+n;return fi(e,c,r)?Ar(e,c+1,s?i.call(s,r):i(r)):Ta(e,c+1)}function Wd(e,t,n,i,r,s,c){const u=t+n;return Mo(e,u,r,s)?Ar(e,u+2,c?i.call(c,r,s):i(r,s)):Ta(e,u+2)}function Kd(e,t,n,i,r,s,c,u){const y=t+n;return fl(e,y,r,s,c)?Ar(e,y+3,u?i.call(u,r,s,c):i(r,s,c)):Ta(e,y+3)}function Gd(e,t,n,i,r,s,c,u,y){const A=t+n;return Qi(e,A,r,s,c,u)?Ar(e,A+4,y?i.call(y,r,s,c,u):i(r,s,c,u)):Ta(e,A+4)}function Qd(e,t,n,i,r,s){let c=t+n,u=!1;for(let y=0;y<r.length;y++)fi(e,c++,r[y])&&(u=!0);return u?Ar(e,c,i.apply(s,r)):Ta(e,c)}function yy(e,t){const n=pn();let i;const r=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new j("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=yi(i.type)),c=vt(aa);try{const u=Ua(!1),y=s();return Ua(u),Sm(n,Mt(),r,y),y}finally{vt(c)}}function vy(e,t,n){const i=e+20,r=Mt(),s=rn(r,i);return Ma(r,wa(r,i)?zd(r,Te(),t,s.transform,n,s):s.transform(n))}function by(e,t,n,i){const r=e+20,s=Mt(),c=rn(s,r);return Ma(s,wa(s,r)?Wd(s,Te(),t,c.transform,n,i,c):c.transform(n,i))}function Cy(e,t,n,i,r){const s=e+20,c=Mt(),u=rn(c,s);return Ma(c,wa(c,s)?Kd(c,Te(),t,u.transform,n,i,r,u):u.transform(n,i,r))}function Ey(e,t,n,i,r,s){const c=e+20,u=Mt(),y=rn(u,c);return Ma(u,wa(u,c)?Gd(u,Te(),t,y.transform,n,i,r,s,y):y.transform(n,i,r,s))}function Dy(e,t,n){const i=e+20,r=Mt(),s=rn(r,i);return Ma(r,wa(r,i)?Qd(r,Te(),t,s.transform,n,s):s.transform.apply(s,n))}function wa(e,t){return e[1].data[t].pure}function Ma(e,t){return Gi.isWrapped(t)&&(t=Gi.unwrap(t),e[Re()]=on),t}function Yd(e){return t=>{setTimeout(e,void 0,t)}}const xr=class extends o.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var r,s,c;let u=t,y=n||(()=>null),A=i;if(t&&"object"==typeof t){const ue=t;u=null===(r=ue.next)||void 0===r?void 0:r.bind(ue),y=null===(s=ue.error)||void 0===s?void 0:s.bind(ue),A=null===(c=ue.complete)||void 0===c?void 0:c.bind(ue)}this.__isAsync&&(y=Yd(y),u&&(u=Yd(u)),A&&(A=Yd(A)));const H=super.subscribe({next:u,error:y,complete:A});return t instanceof l.w&&t.add(H),H}};function Fw(){return this._results[ss()]()}class Sa{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=ss(),i=Sa.prototype;i[n]||(i[n]=Fw)}get changes(){return this._changes||(this._changes=new xr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const r=zi(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=t[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}(i._results,r,n))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class Jd{constructor(t){this.queryList=t,this.matches=null}clone(){return new Jd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Zd{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[];for(let s=0;s<i;s++){const c=n.getByIndex(s);r.push(this.queries[c.indexInDeclarationView].clone())}return new Zd(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==xy(t,n).matches&&this.queries[n].setDirty()}}class Ty{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class Xd{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let i=0;i<this.length;i++){const r=null!==n?n.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==n?n.push(s):n=[s])}return null!==n?new Xd(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class qd{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 qd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,n,jw(n,s)),this.matchTNodeWithReadOption(t,n,Ka(n,t,s,!1,!1))}else i===Po?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ka(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===cr||r===ga||r===Po&&4&n.type)this.addMatch(n.index,-2);else{const s=Ka(n,t,r,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function jw(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Vw(e,t,n,i){return-1===n?function(e,t){return 11&e.type?Io(e,t):4&e.type?ma(e,t):null}(t,e):-2===n?function(e,t,n){return n===cr?Io(t,e):n===Po?ma(t,e):n===ga?x_(t,e):void 0}(e,t,i):$s(e,e[1],n,t)}function wy(e,t,n,i){const r=t[19].queries[i];if(null===r.matches){const s=e.data,c=n.matches,u=[];for(let y=0;y<c.length;y+=2){const A=c[y];u.push(A<0?null:Vw(t,s[A],c[y+1],n.metadata.read))}r.matches=u}return r.matches}function eh(e,t,n,i){const r=e.queries.getByIndex(n),s=r.matches;if(null!==s){const c=wy(e,t,r,n);for(let u=0;u<s.length;u+=2){const y=s[u];if(y>0)i.push(c[u/2]);else{const A=s[u+1],H=t[-y];for(let ue=10;ue<H.length;ue++){const ye=H[ue];ye[17]===ye[3]&&eh(ye[1],ye,A,i)}if(null!==H[9]){const ue=H[9];for(let ye=0;ye<ue.length;ye++){const Ae=ue[ye];eh(Ae[1],Ae,A,i)}}}}}return i}function My(e){const t=Mt(),n=pn(),i=Pn();An(i+1);const r=xy(n,i);if(e.dirty&&Tn(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const s=r.crossesNgTemplate?eh(n,t,i,[]):wy(n,t,r,i);e.reset(s,p_),e.notifyOnChanges()}return!0}return!1}function Sy(e,t,n){const i=pn();i.firstCreatePass&&(Oy(i,new Ty(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Ay(i,Mt(),t)}function Iy(e,t,n,i){const r=pn();if(r.firstCreatePass){const s=kn();Oy(r,new Ty(t,n,i),s.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}Ay(r,Mt(),n)}function Py(){return e=Mt(),t=Pn(),e[19].queries[t].queryList;var e,t}function Ay(e,t,n){const i=new Sa(4==(4&n));jp(e,t,i,i.destroy),null===t[19]&&(t[19]=new Zd),t[19].queries.push(new Jd(i))}function Oy(e,t,n){null===e.queries&&(e.queries=new Xd),e.queries.track(new qd(t,n))}function xy(e,t){return e.queries.getByIndex(t)}function Ry(e,t){return ma(e,t)}const vi=(()=>({\u0275\u0275attribute:cu,\u0275\u0275attributeInterpolate1:uu,\u0275\u0275attributeInterpolate2:du,\u0275\u0275attributeInterpolate3:hu,\u0275\u0275attributeInterpolate4:fu,\u0275\u0275attributeInterpolate5:pu,\u0275\u0275attributeInterpolate6:mu,\u0275\u0275attributeInterpolate7:gu,\u0275\u0275attributeInterpolate8:_u,\u0275\u0275attributeInterpolateV:yu,\u0275\u0275defineComponent:Ee,\u0275\u0275defineDirective:dn,\u0275\u0275defineInjectable:$,\u0275\u0275defineInjector:L,\u0275\u0275defineNgModule:it,\u0275\u0275definePipe:cn,\u0275\u0275directiveInject:aa,\u0275\u0275getInheritedFactory:Xh,\u0275\u0275inject:$n,\u0275\u0275injectAttribute:Xl,\u0275\u0275invalidFactory:zm,\u0275\u0275invalidFactoryDep:oc,\u0275\u0275templateRefExtractor:Ry,\u0275\u0275NgOnChangesFeature:Mi,\u0275\u0275ProvidersFeature:c_,\u0275\u0275CopyDefinitionFeature:wm,\u0275\u0275InheritDefinitionFeature:ou,\u0275\u0275nextContext:Zm,\u0275\u0275namespaceHTML:tn,\u0275\u0275namespaceMathML:Kt,\u0275\u0275namespaceSVG:Bt,\u0275\u0275enableBindings:ks,\u0275\u0275disableBindings:Fs,\u0275\u0275elementStart:Tu,\u0275\u0275elementEnd:wu,\u0275\u0275element:Wm,\u0275\u0275elementContainerStart:Mu,\u0275\u0275elementContainerEnd:Su,\u0275\u0275elementContainer:Km,\u0275\u0275pureFunction0:ly,\u0275\u0275pureFunction1:cy,\u0275\u0275pureFunction2:uy,\u0275\u0275pureFunction3:dy,\u0275\u0275pureFunction4:hy,\u0275\u0275pureFunction5:fy,\u0275\u0275pureFunction6:py,\u0275\u0275pureFunction7:my,\u0275\u0275pureFunction8:gy,\u0275\u0275pureFunctionV:_y,\u0275\u0275getCurrentView:Gm,\u0275\u0275restoreView:Ns,\u0275\u0275listener:Au,\u0275\u0275projection:qm,\u0275\u0275syntheticHostProperty:ud,\u0275\u0275syntheticHostListener:Ou,\u0275\u0275pipeBind1:vy,\u0275\u0275pipeBind2:by,\u0275\u0275pipeBind3:Cy,\u0275\u0275pipeBind4:Ey,\u0275\u0275pipeBindV:Dy,\u0275\u0275projectionDef:Xm,\u0275\u0275hostProperty:cd,\u0275\u0275property:Eu,\u0275\u0275propertyInterpolate:Ru,\u0275\u0275propertyInterpolate1:pl,\u0275\u0275propertyInterpolate2:ku,\u0275\u0275propertyInterpolate3:Fu,\u0275\u0275propertyInterpolate4:Nu,\u0275\u0275propertyInterpolate5:Lu,\u0275\u0275propertyInterpolate6:ju,\u0275\u0275propertyInterpolate7:Bu,\u0275\u0275propertyInterpolate8:Vu,\u0275\u0275propertyInterpolateV:Hu,\u0275\u0275pipe:yy,\u0275\u0275queryRefresh:My,\u0275\u0275viewQuery:Sy,\u0275\u0275loadQuery:Py,\u0275\u0275contentQuery:Iy,\u0275\u0275reference:Im,\u0275\u0275classMap:ag,\u0275\u0275classMapInterpolate1:mg,\u0275\u0275classMapInterpolate2:gg,\u0275\u0275classMapInterpolate3:_g,\u0275\u0275classMapInterpolate4:yg,\u0275\u0275classMapInterpolate5:vg,\u0275\u0275classMapInterpolate6:bg,\u0275\u0275classMapInterpolate7:Cg,\u0275\u0275classMapInterpolate8:Eg,\u0275\u0275classMapInterpolateV:Dg,\u0275\u0275styleMap:sr,\u0275\u0275styleMapInterpolate1:Tg,\u0275\u0275styleMapInterpolate2:wg,\u0275\u0275styleMapInterpolate3:Mg,\u0275\u0275styleMapInterpolate4:Sg,\u0275\u0275styleMapInterpolate5:Ig,\u0275\u0275styleMapInterpolate6:Pg,\u0275\u0275styleMapInterpolate7:Ag,\u0275\u0275styleMapInterpolate8:Og,\u0275\u0275styleMapInterpolateV:xg,\u0275\u0275styleProp:$u,\u0275\u0275stylePropInterpolate1:ed,\u0275\u0275stylePropInterpolate2:td,\u0275\u0275stylePropInterpolate3:nd,\u0275\u0275stylePropInterpolate4:id,\u0275\u0275stylePropInterpolate5:rd,\u0275\u0275stylePropInterpolate6:od,\u0275\u0275stylePropInterpolate7:sd,\u0275\u0275stylePropInterpolate8:ad,\u0275\u0275stylePropInterpolateV:ld,\u0275\u0275classProp:Uu,\u0275\u0275advance:Cp,\u0275\u0275template:Mm,\u0275\u0275text:pg,\u0275\u0275textInterpolate:Wu,\u0275\u0275textInterpolate1:gl,\u0275\u0275textInterpolate2:Ku,\u0275\u0275textInterpolate3:Gu,\u0275\u0275textInterpolate4:Qu,\u0275\u0275textInterpolate5:Yu,\u0275\u0275textInterpolate6:Ju,\u0275\u0275textInterpolate7:Zu,\u0275\u0275textInterpolate8:Xu,\u0275\u0275textInterpolateV:qu,\u0275\u0275i18n:r_,\u0275\u0275i18nAttributes:o_,\u0275\u0275i18nExp:gd,\u0275\u0275i18nStart:pd,\u0275\u0275i18nEnd:md,\u0275\u0275i18nApply:s_,\u0275\u0275i18nPostprocess:a_,\u0275\u0275resolveWindow:Qf,\u0275\u0275resolveDocument:Yf,\u0275\u0275resolveBody:Jf,\u0275\u0275setComponentScope:Q,\u0275\u0275setNgModuleScope:_t,\u0275\u0275sanitizeHtml:If,\u0275\u0275sanitizeStyle:Pf,\u0275\u0275sanitizeResourceUrl:pc,\u0275\u0275sanitizeScript:Af,\u0275\u0275sanitizeUrl:fc,\u0275\u0275sanitizeUrlOrResourceUrl:kf,\u0275\u0275trustConstantHtml:Of,\u0275\u0275trustConstantResourceUrl:xf,forwardRef:M,resolveForwardRef:S}))();let Ms=null;function Kw(){Ms=null}const Ia=[];let th=!1;function ky(){if(!th){th=!0;try{for(let e=Ia.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=Ia[e];n.declarations&&n.declarations.every(Fy)&&(Ia.splice(e,1),Yw(t,n))}}finally{th=!1}}}function Fy(e){return Array.isArray(e)?e.every(Fy):!!S(e)}function Ny(e,t={}){Ly(e,t),function(e,t){Ia.push({moduleType:e,ngModule:t})}(e,t)}function Ly(e,t,n=!1){const i=zi(t.declarations||Lt);let r=null;Object.defineProperty(e,Pt,{configurable:!0,get:()=>(null===r&&(r=Qn().compileNgModule(vi,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:zi(t.bootstrap||Lt).map(S),declarations:i.map(S),imports:zi(t.imports||Lt).map(S).map(Hy),exports:zi(t.exports||Lt).map(S).map(Hy),schemas:t.schemas?zi(t.schemas):null,id:t.id||null}),r.schemas||(r.schemas=[])),r)});let s=null;Object.defineProperty(e,K,{get:()=>{if(null===s){const u=Qn();s=u.compileFactory(vi,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Za(e),target:u.FactoryTarget.NgModule,typeArgumentCount:0})}return s},configurable:!1});let c=null;Object.defineProperty(e,Je,{get:()=>{if(null===c){const u={name:e.name,type:e,providers:t.providers||Lt,imports:[(t.imports||Lt).map(S),(t.exports||Lt).map(S)]};c=Qn().compileInjector(vi,`ng:///${e.name}/\u0275inj.js`,u)}return c},configurable:!1})}let Rl=new WeakMap,ih=new WeakMap;function Qw(){Rl=new WeakMap,ih=new WeakMap,Ia.length=0}function Yw(e,t){const n=zi(t.declarations||Lt),i=Pa(e);n.forEach(r=>{r.hasOwnProperty(jt)?rh(an(r),i):!r.hasOwnProperty(_n)&&!r.hasOwnProperty(Xe)&&(r.ngSelectorScope=e)})}function rh(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(jt)?an(n):un(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>wn(n)),e.schemas=t.schemas,e.tView=null}function Pa(e){if(!oh(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=yn(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 Sr(t.imports).forEach(i=>{const r=i;if(!oh(r))throw new Error(`Importing ${r.name} which does not have a \u0275mod property`);const s=Pa(r);s.exported.directives.forEach(c=>n.compilation.directives.add(c)),s.exported.pipes.forEach(c=>n.compilation.pipes.add(c))}),Sr(t.declarations).forEach(i=>{wn(i)?n.compilation.pipes.add(i):n.compilation.directives.add(i)}),Sr(t.exports).forEach(i=>{const r=i;if(oh(r)){const s=Pa(r);s.exported.directives.forEach(c=>{n.compilation.directives.add(c),n.exported.directives.add(c)}),s.exported.pipes.forEach(c=>{n.compilation.pipes.add(c),n.exported.pipes.add(c)})}else wn(r)?n.exported.pipes.add(r):n.exported.directives.add(r)}),t.transitiveCompileScopes=n,n}function Hy(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function oh(e){return!!yn(e)}let sh=0;function $y(e,t){let n=null;(function(e,t){pf(t)&&(Yo.set(e,t),Ws.add(e))})(e,t),zy(e,t),Object.defineProperty(e,jt,{get:()=>{if(null===n){const i=Qn();if(pf(t)){const A=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&A.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&A.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),A.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(A.join("\n"))}const r=Ms;let s=t.preserveWhitespaces;void 0===s&&(s=null!==r&&void 0!==r.preserveWhitespaces&&r.preserveWhitespaces);let c=t.encapsulation;void 0===c&&(c=null!==r&&void 0!==r.defaultEncapsulation?r.defaultEncapsulation:ne.Emulated);const u=t.templateUrl||`ng:///${e.name}/template.html`,y=Object.assign(Object.assign({},Wy(e,t)),{typeSourceSpan:i.createParseSourceSpan("Component",e.name,u),template:t.template||"",preserveWhitespaces:s,styles:t.styles||Lt,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:c,interpolation:t.interpolation,viewProviders:t.viewProviders||null});sh++;try{y.usesInheritance&&Ky(e),n=i.compileComponent(vi,u,y)}finally{sh--}if(0===sh&&ky(),function(e){return void 0!==e.ngSelectorScope}(e)){const A=Pa(e.ngSelectorScope);rh(n,A)}}return n},configurable:!1})}function ah(e,t){let n=null;zy(e,t||{}),Object.defineProperty(e,_n,{get:()=>{if(null===n){const i=Uy(e,t||{});n=Qn().compileDirective(vi,i.sourceMapUrl,i.metadata)}return n},configurable:!1})}function Uy(e,t){const n=e&&e.name,i=`ng:///${n}/\u0275dir.js`,r=Qn(),s=Wy(e,t);return s.typeSourceSpan=r.createParseSourceSpan("Directive",n,i),s.usesInheritance&&Ky(e),{metadata:s,sourceMapUrl:i}}function zy(e,t){let n=null;Object.defineProperty(e,K,{get:()=>{if(null===n){const i=Uy(e,t),r=Qn();n=r.compileFactory(vi,`ng:///${e.name}/\u0275fac.js`,{name:i.metadata.name,type:i.metadata.type,typeArgumentCount:0,deps:Za(e),target:r.FactoryTarget.Directive})}return n},configurable:!1})}function Xw(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Wy(e,t){const n=sc(),i=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||At,propMetadata:i,inputs:t.inputs||Lt,outputs:t.outputs||Lt,queries:Gy(e,i,Qy),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!Xw(e),exportAs:tM(t.exportAs),providers:t.providers||null,viewQueries:Gy(e,i,Yy)}}function Ky(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!un(n)&&!an(n)&&iM(n)&&ah(n,null),n=Object.getPrototypeOf(n)}function qw(e){return"string"==typeof e?Zy(e):S(e)}function eM(e,t){return{propertyName:e,predicate:qw(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function Gy(e,t,n){const i=[];for(const r in t)if(t.hasOwnProperty(r)){const s=t[r];s.forEach(c=>{if(n(c)){if(!c.selector)throw new Error(`Can't construct a query for the property "${r}" of "${$e(e)}" since the query selector wasn't defined.`);if(s.some(Jy))throw new Error("Cannot combine @Input decorators with query decorators");i.push(eM(r,c))}})}return i}function tM(e){return void 0===e?null:Zy(e)}function Qy(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function Yy(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function Jy(e){return"Input"===e.ngMetadataName}function Zy(e){return e.split(",").map(t=>t.trim())}const nM=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function iM(e){const t=sc();if(nM.some(i=>t.hasLifecycleHook(e,i)))return!0;const n=t.propMetadata(e);for(const i in n){const r=n[i];for(let s=0;s<r.length;s++){const c=r[s],u=c.ngMetadataName;if(Jy(c)||Qy(c)||Yy(c)||"Output"===u||"HostBinding"===u||"HostListener"===u)return!0}}return!1}function Xy(e,t){let n=null,i=null;Object.defineProperty(e,K,{get:()=>{if(null===i){const r=qy(e,t),s=Qn();i=s.compileFactory(vi,`ng:///${r.name}/\u0275fac.js`,{name:r.name,type:r.type,typeArgumentCount:0,deps:Za(e),target:s.FactoryTarget.Pipe})}return i},configurable:!1}),Object.defineProperty(e,Xe,{get:()=>{if(null===n){const r=qy(e,t);n=Qn().compilePipe(vi,`ng:///${r.name}/\u0275pipe.js`,r)}return n},configurable:!1})}function qy(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const ev=$o("Directive",(e={})=>e,void 0,void 0,(e,t)=>dM(e,t)),rM=$o("Component",(e={})=>Object.assign({changeDetection:R.Default},e),ev,void 0,(e,t)=>uM(e,t)),oM=$o("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>hM(e,t)),sM=zr("Input",e=>({bindingPropertyName:e})),aM=zr("Output",e=>({bindingPropertyName:e})),lM=zr("HostBinding",e=>({hostPropertyName:e})),cM=zr("HostListener",(e,t)=>({eventName:e,args:t})),tv=$y,nv=ah,iv=Xy,uM=tv,dM=nv,hM=iv,fM=$o("NgModule",e=>e,void 0,void 0,(e,t)=>pM(e,t)),rv=Ny,pM=rv,lh=new jn("Application Initializer");let Ss=(()=>{class e{constructor(n){this.appInits=n,this.resolve=El,this.reject=El,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Iu(s))n.push(s);else if(Pu(s)){const c=new Promise((u,y)=>{s.subscribe({complete:u,error:y})});n.push(c)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)($n(lh,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const ov=new jn("AppId");function sv(){return`${ch()}${ch()}${ch()}`}const av={provide:ov,useFactory:sv,deps:[]};function ch(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lv=new jn("Platform Initializer"),cv=new jn("Platform ID"),uv=new jn("appBootstrapListener"),mM=new jn("Application Packages Root URL");let dv=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const kl=new jn("LocaleId"),hv=new jn("DefaultCurrencyCode"),gM=new jn("Translations"),_M=new jn("TranslationsFormat");var Rr=(()=>((Rr=Rr||{})[Rr.Error=0]="Error",Rr[Rr.Warning=1]="Warning",Rr[Rr.Ignore=2]="Ignore",Rr))();const fv=!0,Aa=fv;class pv{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Fl=function(e){return new xl(e)},yM=Fl,mv=function(e){return Promise.resolve(Fl(e))},vM=mv,uh=function(e){const t=Fl(e),i=Sr(yn(e).declarations).reduce((r,s)=>{const c=an(s);return c&&r.push(new Ud(c)),r},[]);return new pv(t,i)},bM=uh,gv=function(e){return Promise.resolve(uh(e))},CM=gv;let Oa=(()=>{class e{constructor(){this.compileModuleSync=yM,this.compileModuleAsync=vM,this.compileModuleAndAllComponentsSync=bM,this.compileModuleAndAllComponentsAsync=CM}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const _v=new jn("compilerOptions");class yv{}const EM=(()=>Promise.resolve(0))();function dh(e){"undefined"==typeof Zone?EM.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ni{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xr(!1),this.onMicrotaskEmpty=new xr(!1),this.onStable=new xr(!1),this.onError=new xr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let e=Nt.requestAnimationFrame,t=Nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Nt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,fh(e),e.isCheckStableRunning=!0,hh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),fh(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,c,u)=>{try{return vv(e),n.invokeTask(r,s,c,u)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),bv(e)}},onInvoke:(n,i,r,s,c,u,y)=>{try{return vv(e),n.invoke(r,s,c,u,y)}finally{e.shouldCoalesceRunChangeDetection&&t(),bv(e)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,fh(e),hh(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!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,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const s=this._inner,c=s.scheduleEventTask("NgZoneEvent: "+r,t,TM,El,El);try{return s.runTask(c,n,i)}finally{s.cancelTask(c)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const TM={};function hh(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 fh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function vv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bv(e){e._nesting--,hh(e)}class Cv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xr,this.onMicrotaskEmpty=new xr,this.onStable=new xr,this.onError=new xr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}let Ev=(()=>{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(),dh(()=>{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())dh(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(c=>c.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,r){return[]}}return e.\u0275fac=function(n){return new(n||e)($n(Ni))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),ph=(()=>{class e{constructor(){this._applications=new Map,mh.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return mh.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();class SM{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function IM(e){mh=e}let mh=new SM,Dv=!0,Tv=!1;function gh(){return Tv=!0,Dv}function PM(){if(Tv)throw new Error("Cannot enable prod mode after platform setup.");Dv=!1}let hr,AM=wv;function wv(e,t,n){const i=new xl(n);return Promise.resolve(i)}let RM=Mv;function Mv(e){return e.isBoundToModule}const _h=new jn("AllowMultipleToken");class kM{constructor(t,n){this.name=t,this.token=n}}function Sv(e){if(hr&&!hr.destroyed&&!hr.injector.get(_h,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");hr=e.get(vh);const t=e.get(lv,null);return t&&t.forEach(n=>n()),hr}function Iv(e,t,n=[]){const i=`Platform: ${t}`,r=new jn(i);return(s=[])=>{let c=yh();if(!c||c.injector.get(_h,!1))if(e)e(n.concat(s).concat({provide:r,useValue:!0}));else{const u=n.concat(s).concat({provide:r,useValue:!0},{provide:ea,useValue:"platform"});Sv(In.create({providers:u,name:i}))}return Pv(r)}}function Pv(e){const t=yh();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function FM(){hr&&!hr.destroyed&&hr.destroy()}function yh(){return hr&&!hr.destroyed?hr:null}let vh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const u=function(e,t){let n;return n="noop"===e?new Cv:("zone.js"===e?void 0:e)||new Ni({enableLongStackTrace:gh(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),y=[{provide:Ni,useValue:u}];return u.run(()=>{const A=In.create({providers:y,parent:this.injector,name:n.moduleType.name}),H=n.create(A),ue=H.injector.get(Xo,null);if(!ue)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return u.runOutsideAngular(()=>{const ye=u.onError.subscribe({next:Ae=>{ue.handleError(Ae)}});H.onDestroy(()=>{bh(this._modules,H),ye.unsubscribe()})}),function(e,t,n){try{const i=n();return Iu(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(ue,u,()=>{const ye=H.injector.get(Ss);return ye.runInitializers(),ye.donePromise.then(()=>(Aa&&vl(H.injector.get(kl,ca)||ca),this._moduleDoBootstrap(H),H))})})}bootstrapModule(n,i=[]){const r=Av({},i);return AM(this.injector,r,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(xa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${D(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");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)($n(In))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function Av(e,t){return Array.isArray(t)?t.reduce(Av,e):Object.assign(Object.assign({},e),t)}let xa=(()=>{class e{constructor(n,i,r,s,c){this._zone=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=c,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 u=new f.y(A=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{A.next(this._stable),A.complete()})}),y=new f.y(A=>{let H;this._zone.runOutsideAngular(()=>{H=this._zone.onStable.subscribe(()=>{Ni.assertNotInAngularZone(),dh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,A.next(!0))})})});const ue=this._zone.onUnstable.subscribe(()=>{Ni.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{A.next(!1)}))});return()=>{H.unsubscribe(),ue.unsubscribe()}});this.isStable=(0,_.T)(u,y.pipe((0,a.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let r;r=n instanceof bs?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(r.componentType);const s=RM(r)?void 0:this._injector.get(uo),u=r.create(In.NULL,[],i||r.selector,s),y=u.location.nativeElement,A=u.injector.get(Ev,null),H=A&&u.injector.get(ph);return A&&H&&H.registerApplication(y,A),u.onDestroy(()=>{this.detachView(u.hostView),bh(this.components,u),H&&H.unregisterApplication(y)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;bh(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(uv,[]).concat(this._bootstrapListeners).forEach(r=>r(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)($n(Ni),$n(In),$n(Xo),$n(Cs),$n(Ss))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function bh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class BM{}function VM(e){const t=sy(e);if(!t)throw Rv(e);return t}function xv(e){const t=sy(e);if(!t)throw Rv(e);return new xl(t)}const HM=xv;function Rv(e){return new Error(`No module with ID ${e} loaded`)}class Fv{}const UM={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let zM=(()=>{class e{constructor(n,i){this._compiler=n,this._config=i||UM}load(n){return!Aa&&this._compiler instanceof Oa?this.loadFactory(n):this.loadAndCompile(n)}loadAndCompile(n){let[i,r]=n.split("#");return void 0===r&&(r="default"),d(8255)(i).then(s=>s[r]).then(s=>Nv(s,i,r)).then(s=>this._compiler.compileModuleAsync(s))}loadFactory(n){let[i,r]=n.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),d(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(c=>c[r+s]).then(c=>Nv(c,i,r))}}return e.\u0275fac=function(n){return new(n||e)($n(Oa),$n(Fv,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function Nv(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Lv extends Pd{}class WM extends Lv{}class jv{constructor(t,n){this.name=t,this.callback=n}}class Ra{constructor(t,n,i){this.listeners=[],this.parent=null,this._debugContext=i,this.nativeNode=t,n&&n instanceof Jn&&n.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Jn extends Ra{constructor(t,n,i){super(t,n,i),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}addChild(t){t&&(this.childNodes.push(t),t.parent=this)}removeChild(t){const n=this.childNodes.indexOf(t);-1!==n&&(t.parent=null,this.childNodes.splice(n,1))}insertChildrenAfter(t,n){const i=this.childNodes.indexOf(t);-1!==i&&(this.childNodes.splice(i+1,0,...n),n.forEach(r=>{r.parent&&r.parent.removeChild(r),t.parent=this}))}insertBefore(t,n){const i=this.childNodes.indexOf(t);-1===i?this.addChild(n):(n.parent&&n.parent.removeChild(n),n.parent=this,this.childNodes.splice(i,0,n))}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Bv(this,t,n),n}queryAllNodes(t){const n=[];return Vv(this,t,n),n}get children(){return this.childNodes.filter(t=>t instanceof Jn)}triggerEventHandler(t,n){this.listeners.forEach(i=>{i.name==t&&i.callback(n)})}}function KM(e){return e.map(t=>t.nativeElement)}function Bv(e,t,n){e.childNodes.forEach(i=>{i instanceof Jn&&(t(i)&&n.push(i),Bv(i,t,n))})}function Vv(e,t,n){e instanceof Jn&&e.childNodes.forEach(i=>{t(i)&&n.push(i),i instanceof Jn&&Vv(i,t,n)})}class Ch{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new ka(t):null}get injector(){return mm(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(nu(t)||fm(t))}get context(){return nu(this.nativeNode)||hm(this.nativeNode)}get listeners(){return _m(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function(e){const t=di(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[1].data[t];if(n&&n.localNames){const i={};let r=n.index+1;for(let s=0;s<n.localNames.length;s+=2)i[n.localNames[s]]=e[r],r++;return i}return null}(t.lView,t.nodeIndex)),t.localRefs||{})}(this.nativeNode)}get providerTokens(){return function(e){const t=di(e);if(null===t)return[];const i=t.lView[1],r=i.data[t.nodeIndex],s=[],u=r.directiveEnd;for(let y=1048575&r.providerIndexes;y<u;y++){let A=i.data[y];qE(A)&&(A=A.type),s.push(A)}return s}(this.nativeNode)}}class ka extends Ch{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=di(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=di(this.nativeNode);if(null===t)return{};const n=t.lView,i=n[1].data,r=i[t.nodeIndex],s={};return function(e,t){if(e){let n=Object.getPrototypeOf(e);const i=Node.prototype;for(;null!==n&&n!==i;){const r=Object.getOwnPropertyDescriptors(n);for(let s in r)if(!s.startsWith("__")&&!s.startsWith("on")){const c=e[s];QM(c)&&(t[s]=c)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,s),function(e,t,n,i){let r=t.propertyBindings;if(null!==r)for(let s=0;s<r.length;s++){const c=r[s],y=i[c].split("\ufffd"),A=y[0];if(y.length>1){let H=y[1];for(let ue=1;ue<y.length-1;ue++)H+=Ce(n[c+ue-1])+y[ue+1];e[A]=H}else e[A]=n[c]}}(s,r,n,i),s}get attributes(){const t={},n=this.nativeElement;if(!n)return t;const i=di(n);if(null===i)return{};const s=i.lView[1].data[i.nodeIndex].attrs,c=[];if(s){let y=0;for(;y<s.length;){const A=s[y];if("string"!=typeof A)break;t[A]=s[y+1],c.push(A.toLowerCase()),y+=2}}const u=n.attributes;for(let y=0;y<u.length;y++){const A=u[y],H=A.name.toLowerCase();-1===c.indexOf(H)&&(t[H]=A.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},i=this.nativeElement.className;return(i&&"string"!=typeof i?i.baseVal.split(" "):i.split(" ")).forEach(s=>t[s]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,n=[];for(let i=0;i<t.length;i++)n.push(Ll(t[i]));return n}get children(){const t=this.nativeElement;if(!t)return[];const n=t.children,i=[];for(let r=0;r<n.length;r++)i.push(Ll(n[r]));return i}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Hv(this,t,n,!0),n}queryAllNodes(t){const n=[];return Hv(this,t,n,!1),n}triggerEventHandler(t,n){const i=this.nativeNode,r=[];this.listeners.forEach(s=>{if(s.name===t){const c=s.callback;c.call(i,n),r.push(c)}}),"function"==typeof i.eventListeners&&i.eventListeners(t).forEach(s=>{if(-1!==s.toString().indexOf("__ngUnwrap__")){const c=s("__ngUnwrap__");return-1===r.indexOf(c)&&c.call(i,n)}})}}function QM(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Hv(e,t,n,i){const r=di(e.nativeNode);null!==r?xo(r.lView[1].data[r.nodeIndex],r.lView,t,n,i,e.nativeNode):Dh(e.nativeNode,t,n,i)}function xo(e,t,n,i,r,s){const c=function(e,t){const n=null===e?-1:e.index;return-1!==n?v(t[n]):null}(e,t);if(11&e.type){if(Eh(c,n,i,r,s),ci(e)){const y=bn(e.index,t);y&&y[1].firstChild&&xo(y[1].firstChild,y,n,i,r,s)}else e.child&&xo(e.child,t,n,i,r,s),c&&Dh(c,n,i,r);const u=t[e.index];Cn(u)&&$v(u,n,i,r,s)}else if(4&e.type){const u=t[e.index];Eh(u[7],n,i,r,s),$v(u,n,i,r,s)}else if(16&e.type){const u=t[16],A=u[6].projection[e.projection];if(Array.isArray(A))for(let H of A)Eh(H,n,i,r,s);else if(A){const H=u[3];xo(H[1].data[A.index],H,n,i,r,s)}}else e.child&&xo(e.child,t,n,i,r,s);if(s!==c){const u=4&e.flags?e.projectionNext:e.next;u&&xo(u,t,n,i,r,s)}}function $v(e,t,n,i,r){for(let s=10;s<e.length;s++){const c=e[s],u=c[1].firstChild;u&&xo(u,c,t,n,i,r)}}function Eh(e,t,n,i,r){if(r!==e){const s=Zn(e);if(!s)return;(i&&s instanceof ka&&t(s)&&-1===n.indexOf(s)||!i&&t(s)&&-1===n.indexOf(s))&&n.push(s)}}function Dh(e,t,n,i){const r=e.childNodes,s=r.length;for(let c=0;c<s;c++){const u=r[c],y=Zn(u);y&&((i&&y instanceof ka&&t(y)&&-1===n.indexOf(y)||!i&&t(y)&&-1===n.indexOf(y))&&n.push(y),Dh(u,t,n,i))}}const Nl=new Map,Th="__ng_debug__";function Ll(e){return e instanceof Node?(e.hasOwnProperty(Th)||(e[Th]=e.nodeType==Node.ELEMENT_NODE?new ka(e):new Ch(e)),e[Th]):null}const Zn=Ll;function ZM(e){return function(e){return Nl.get(e)||null}(e)}const qM=function(e){return null};function jl(e){Nl.set(e.nativeNode,e)}const tS=Ch,nS=ka,iS=Iv(null,"core",[{provide:cv,useValue:"unknown"},{provide:vh,deps:[In]},{provide:ph,deps:[]},{provide:dv,deps:[]}]);function Uv(){return T_}function zv(){return w_}function Wv(e){return e=e||Aa&&"undefined"!=typeof $localize&&$localize.locale||ca,Aa&&vl(e),e}const Kv=[{provide:xa,useClass:xa,deps:[Ni,In,Xo,Cs,Ss]},{provide:ty,deps:[Ni],useFactory:Gv},{provide:Ss,useClass:Ss,deps:[[new Wr,lh]]},{provide:Oa,useClass:Oa,deps:[]},av,{provide:Tl,useFactory:Uv,deps:[]},{provide:wl,useFactory:zv,deps:[]},{provide:kl,useFactory:Wv,deps:[[new Go(kl),new Wr,new Kr]]},{provide:hv,useValue:Fg}];function Gv(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}let oS=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)($n(xa))},e.\u0275mod=it({type:e}),e.\u0275inj=L({providers:Kv}),e})();function sS(e,t,n,i,r,s){e|=1;const{matchedQueries:c,references:u,matchedQueryIds:y}=kd(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:y,references:u,ngContentIndex:n,childCount:i,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?Ts(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:r||Yi},provider:null,text:null,query:null,ngContent:null}}function aS(e,t,n,i,r,s,c=[],u,y,A,H,ue){A||(A=Yi);const{matchedQueries:ye,references:Ae,matchedQueryIds:ze}=kd(n);let ut=null,tt=null;s&&([ut,tt]=Nd(s)),u=u||[];const Ot=[];for(let Xt=0;Xt<u.length;Xt++){const[gn,Xn,Zi]=u[Xt],[Va,As]=Nd(Xn);let Os,xs;switch(15&gn){case 4:xs=Zi;break;case 1:case 8:Os=Zi}Ot[Xt]={flags:gn,ns:Va,name:As,nonMinifiedName:As,securityContext:Os,suffix:xs}}y=y||[];const Dt=[];for(let Xt=0;Xt<y.length;Xt++){const[gn,Xn]=y[Xt];Dt[Xt]={type:0,target:gn,eventName:Xn,propName:null}}const zt=(c=c||[]).map(([Xt,gn])=>{const[Xn,Zi]=Nd(Xt);return[Xn,Zi,gn]});return ue=function(e){return e&&e.id===N_&&(e.id=null!=e.encapsulation&&e.encapsulation!==ne.None||e.styles.length||Object.keys(e.data).length?"c"+P0++:L_),e&&e.id===L_&&(e=null),e||null}(ue),H&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:ye,matchedQueryIds:ze,references:Ae,ngContentIndex:i,childCount:r,bindings:Ot,bindingFlags:Ld(Ot),outputs:Dt,element:{ns:ut,name:tt,attrs:zt,template:null,componentProvider:null,componentView:H||null,componentRendererType:ue,publicProviders:null,allProviders:null,handleEvent:A||Yi},provider:null,text:null,query:null,ngContent:null}}function lS(e,t,n){const i=n.element,r=e.root.selectorOrNode,s=e.renderer;let c;if(e.parent||!r){c=i.name?s.createElement(i.name,i.ns):s.createComment("");const u=Fd(e,t,n);u&&s.appendChild(u,c)}else c=s.selectRootElement(r,!!i.componentRendererType&&i.componentRendererType.encapsulation===ne.ShadowDom);if(i.attrs)for(let u=0;u<i.attrs.length;u++){const[y,A,H]=i.attrs[u];s.setAttribute(c,A,H,y)}return c}function cS(e,t,n,i){for(let r=0;r<n.outputs.length;r++){const s=n.outputs[r],c=uS(e,n.nodeIndex,x0(s.target,s.eventName));let u=s.target,y=e;"component"===s.target&&(u=null,y=t);const A=y.renderer.listen(u||i,s.eventName,c);e.disposables[n.outputIndex+r]=A}}function uS(e,t,n){return i=>B_(e,t,n,i)}function fr(e,t,n,i){if(!Nn(e,t,n,i))return!1;const r=t.bindings[n],s=En(e,t.nodeIndex),c=s.renderElement,u=r.name;switch(15&r.flags){case 1:!function(e,t,n,i,r,s){const c=t.securityContext;let u=c?e.root.sanitizer.sanitize(c,s):s;u=null!=u?u.toString():null;const y=e.renderer;null!=s?y.setAttribute(n,r,u,i):y.removeAttribute(n,r,i)}(e,r,c,r.ns,u,i);break;case 2:!function(e,t,n,i){const r=e.renderer;i?r.addClass(t,n):r.removeClass(t,n)}(e,c,u,i);break;case 4:!function(e,t,n,i,r){let s=e.root.sanitizer.sanitize(Bn.STYLE,r);if(null!=s){s=s.toString();const u=t.suffix;null!=u&&(s+=u)}else s=null;const c=e.renderer;null!=s?c.setStyle(n,i,s):c.removeStyle(n,i)}(e,r,c,u,i);break;case 8:!function(e,t,n,i,r){const s=t.securityContext;let c=s?e.root.sanitizer.sanitize(s,r):r;e.renderer.setProperty(n,i,c)}(33554432&t.flags&&32&r.flags?s.componentView:e,r,c,u,i)}return!0}function _S(e,t,n){let i=[];for(let r in n)i.push({propName:r,bindingType:n[r]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:V_(t),bindings:i},ngContent:null}}function yS(e){return new Sa(e)}function vS(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&R0(e);){let n=e.parentNodeDef;e=e.parent;const i=n.nodeIndex+n.childCount;for(let r=0;r<=i;r++){const s=e.def.nodes[r];67108864&s.flags&&536870912&s.flags&&(s.query.filterId&t)===s.query.filterId&&ya(e,r).setDirty(),(1&s.flags&&r+s.childCount<n.nodeIndex||!(67108864&s.childFlags)||!(536870912&s.childFlags))&&(r+=s.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const i=e.def.nodes[n];134217728&i.flags&&536870912&i.flags&&ya(e,n).setDirty(),n+=i.childCount}}function bS(e,t){const n=ya(e,t.nodeIndex);if(!n.dirty)return;let i,r;if(67108864&t.flags){const u=t.parent.parent;r=Fa(e,u.nodeIndex,u.nodeIndex+u.childCount,t.query,[]),i=ho(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(r=Fa(e,0,e.def.nodes.length-1,t.query,[]),i=e.component);n.reset(r,p_);const s=t.query.bindings;let c=!1;for(let u=0;u<s.length;u++){const y=s[u];let A;switch(y.bindingType){case 0:A=n.first;break;case 1:A=n,c=!0}i[y.propName]=A}c&&n.notifyOnChanges()}function Fa(e,t,n,i,r){for(let s=t;s<=n;s++){const c=e.def.nodes[s],u=c.matchedQueries[i.id];if(null!=u&&r.push(Qv(e,c,u)),1&c.flags&&c.element.template&&(c.element.template.nodeMatchedQueries&i.filterId)===i.filterId){const y=En(e,s);if((c.childMatchedQueries&i.filterId)===i.filterId&&(Fa(e,s+1,s+c.childCount,i,r),s+=c.childCount),16777216&c.flags){const H=y.viewContainer._embeddedViews;for(let ue=0;ue<H.length;ue++){const ye=H[ue],Ae=Rd(ye);Ae&&Ae===y&&Fa(ye,0,ye.def.nodes.length-1,i,r)}}const A=y.template._projectedViews;if(A)for(let H=0;H<A.length;H++){const ue=A[H];Fa(ue,0,ue.def.nodes.length-1,i,r)}}(c.childMatchedQueries&i.filterId)!==i.filterId&&(s+=c.childCount)}return r}function Qv(e,t,n){if(null!=n)switch(n){case 1:return En(e,t.nodeIndex).renderElement;case 0:return new cr(En(e,t.nodeIndex).renderElement);case 2:return En(e,t.nodeIndex).template;case 3:return En(e,t.nodeIndex).viewContainer;case 4:return ho(e,t.nodeIndex).instance}}function CS(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function ES(e,t,n){const i=Fd(e,t,n);i&&U_(e,n.ngContent.index,1,i,null,void 0)}function DS(e,t){return wh(128,e,oo(t+1))}function TS(e,t){return wh(32,e,oo(t))}function wS(e,t){const n=Object.keys(t),i=n.length,r=[];for(let s=0;s<i;s++){r.push(n[s])}return wh(64,e,r)}function wh(e,t,n){const i=[];for(let r=0;r<n.length;r++){const s=n[r];i.push({flags:8,name:s,ns:null,nonMinifiedName:s,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:i,bindingFlags:Ld(i),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function PS(e,t,n){const i=[];for(let r=1;r<n.length;r++)i[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[r]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:i,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function AS(e,t,n){let i;const r=e.renderer;i=r.createText(n.text.prefix);const s=Fd(e,t,n);return s&&r.appendChild(s,i),{renderText:i}}function pr(e,t){return(null!=e?e.toString():"")+t.suffix}function RS(e,t,n,i){let r=0,s=0,c=0,u=0,y=0,A=null,H=null,ue=!1,ye=!1,Ae=null;for(let ut=0;ut<t.length;ut++){const tt=t[ut];if(tt.nodeIndex=ut,tt.parent=A,tt.bindingIndex=r,tt.outputIndex=s,tt.renderParent=H,c|=tt.flags,y|=tt.matchedQueryIds,tt.element){const Ot=tt.element;Ot.publicProviders=A?A.element.publicProviders:Object.create(null),Ot.allProviders=Ot.publicProviders,ue=!1,ye=!1,tt.element.template&&(y|=tt.element.template.nodeMatchedQueries)}if(kS(A,tt,t.length),r+=tt.bindings.length,s+=tt.outputs.length,!H&&3&tt.flags&&(Ae=tt),20224&tt.flags){ue||(ue=!0,A.element.publicProviders=Object.create(A.element.publicProviders),A.element.allProviders=A.element.publicProviders);const Dt=0!=(32768&tt.flags);0==(8192&tt.flags)||Dt?A.element.publicProviders[ai(tt.provider.token)]=tt:(ye||(ye=!0,A.element.allProviders=Object.create(A.element.publicProviders)),A.element.allProviders[ai(tt.provider.token)]=tt),Dt&&(A.element.componentProvider=tt)}if(A?(A.childFlags|=tt.flags,A.directChildFlags|=tt.flags,A.childMatchedQueries|=tt.matchedQueryIds,tt.element&&tt.element.template&&(A.childMatchedQueries|=tt.element.template.nodeMatchedQueries)):u|=tt.flags,tt.childCount>0)A=tt,Yv(tt)||(H=tt);else for(;A&&ut===A.nodeIndex+A.childCount;){const Ot=A.parent;Ot&&(Ot.childFlags|=A.childFlags,Ot.childMatchedQueries|=A.childMatchedQueries),A=Ot,H=A&&Yv(A)?A.renderParent:A}}return{factory:null,nodeFlags:c,rootNodeFlags:u,nodeMatchedQueries:y,flags:e,nodes:t,updateDirectives:n||Yi,updateRenderer:i||Yi,handleEvent:(ut,tt,Ot,Dt)=>t[tt].element.handleEvent(ut,Ot,Dt),bindingCount:r,outputCount:s,lastRenderRootNode:Ae}}function Yv(e){return 0!=(1&e.flags)&&null===e.element.name}function kS(e,t,n){const i=t.element&&t.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Jv(e,t,n,i){const r=Mh(e.root,e.renderer,e,t,n);return Sh(r,e.component,i),Ih(r),r}function Zv(e,t,n){const i=Mh(e,e.renderer,null,null,t);return Sh(i,n,n),Ih(i),i}function Xv(e,t,n,i){const r=t.element.componentRendererType;let s;return s=r?e.root.rendererFactory.createRenderer(i,r):e.root.renderer,Mh(e.root,s,e,t.element.componentProvider,n)}function Mh(e,t,n,i,r){const s=new Array(r.nodes.length),c=r.outputCount?new Array(r.outputCount):null;return{def:r,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(r.bindingCount),disposables:c,initIndex:-1}}function Sh(e,t,n){e.component=t,e.context=n}function Ih(e){let t;Ao(e)&&(t=En(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,i=e.nodes;for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];let c;switch(ln.setCurrentNode(e,r),201347067&s.flags){case 1:const u=lS(e,t,s);let y;if(33554432&s.flags){const A=Ts(s.element.componentView);y=ln.createComponentView(e,s,A,u)}cS(e,y,s,u),c={renderElement:u,componentView:y,viewContainer:null,template:s.element.template?lw(e,s):void 0},16777216&s.flags&&(c.viewContainer=ow(e,s,c));break;case 2:c=AS(e,t,s);break;case 512:case 1024:case 2048:case 256:c=i[r],!c&&!(4096&s.flags)&&(c={instance:Cw(e,s)});break;case 16:c={instance:Ew(e,s)};break;case 16384:c=i[r],c||(c={instance:Dw(e,s)}),32768&s.flags&&Sh(En(e,s.parent.nodeIndex).componentView,c.instance,c.instance);break;case 32:case 64:case 128:c={value:void 0};break;case 67108864:case 134217728:c=yS(-2147483648==(-2147483648&s.flags));break;case 8:ES(e,t,s),c=void 0}i[r]=c}Na(e,Dn.CreateViewNodes),Ah(e,201326592,268435456,0)}function Bl(e){eb(e),ln.updateDirectives(e,1),Hl(e,Dn.CheckNoChanges),ln.updateRenderer(e,1),Na(e,Dn.CheckNoChanges),e.state&=-97}function Vl(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Sl(e,0,256),eb(e),ln.updateDirectives(e,0),Hl(e,Dn.CheckAndUpdate),Ah(e,67108864,536870912,0);let t=Sl(e,256,512);$d(e,2097152|(t?1048576:0)),ln.updateRenderer(e,0),Na(e,Dn.CheckAndUpdate),Ah(e,134217728,536870912,0),t=Sl(e,512,768),$d(e,8388608|(t?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Sl(e,768,1024)}function qv(e,t,n,i,r,s,c,u,y,A,H,ue,ye){return 0===n?function(e,t,n,i,r,s,c,u,y,A,H,ue){switch(201347067&t.flags){case 1:return function(e,t,n,i,r,s,c,u,y,A,H,ue){const ye=t.bindings.length;let Ae=!1;return ye>0&&fr(e,t,0,n)&&(Ae=!0),ye>1&&fr(e,t,1,i)&&(Ae=!0),ye>2&&fr(e,t,2,r)&&(Ae=!0),ye>3&&fr(e,t,3,s)&&(Ae=!0),ye>4&&fr(e,t,4,c)&&(Ae=!0),ye>5&&fr(e,t,5,u)&&(Ae=!0),ye>6&&fr(e,t,6,y)&&(Ae=!0),ye>7&&fr(e,t,7,A)&&(Ae=!0),ye>8&&fr(e,t,8,H)&&(Ae=!0),ye>9&&fr(e,t,9,ue)&&(Ae=!0),Ae}(e,t,n,i,r,s,c,u,y,A,H,ue);case 2:return function(e,t,n,i,r,s,c,u,y,A,H,ue){let ye=!1;const Ae=t.bindings,ze=Ae.length;if(ze>0&&Nn(e,t,0,n)&&(ye=!0),ze>1&&Nn(e,t,1,i)&&(ye=!0),ze>2&&Nn(e,t,2,r)&&(ye=!0),ze>3&&Nn(e,t,3,s)&&(ye=!0),ze>4&&Nn(e,t,4,c)&&(ye=!0),ze>5&&Nn(e,t,5,u)&&(ye=!0),ze>6&&Nn(e,t,6,y)&&(ye=!0),ze>7&&Nn(e,t,7,A)&&(ye=!0),ze>8&&Nn(e,t,8,H)&&(ye=!0),ze>9&&Nn(e,t,9,ue)&&(ye=!0),ye){let ut=t.text.prefix;ze>0&&(ut+=pr(n,Ae[0])),ze>1&&(ut+=pr(i,Ae[1])),ze>2&&(ut+=pr(r,Ae[2])),ze>3&&(ut+=pr(s,Ae[3])),ze>4&&(ut+=pr(c,Ae[4])),ze>5&&(ut+=pr(u,Ae[5])),ze>6&&(ut+=pr(y,Ae[6])),ze>7&&(ut+=pr(A,Ae[7])),ze>8&&(ut+=pr(H,Ae[8])),ze>9&&(ut+=pr(ue,Ae[9]));const tt=_a(e,t.nodeIndex).renderText;e.renderer.setValue(tt,ut)}return ye}(e,t,n,i,r,s,c,u,y,A,H,ue);case 16384:return function(e,t,n,i,r,s,c,u,y,A,H,ue){const ye=ho(e,t.nodeIndex),Ae=ye.instance;let ut,ze=!1;const tt=t.bindings.length;return tt>0&&Ji(e,t,0,n)&&(ze=!0,ut=dr(e,ye,t,0,n,ut)),tt>1&&Ji(e,t,1,i)&&(ze=!0,ut=dr(e,ye,t,1,i,ut)),tt>2&&Ji(e,t,2,r)&&(ze=!0,ut=dr(e,ye,t,2,r,ut)),tt>3&&Ji(e,t,3,s)&&(ze=!0,ut=dr(e,ye,t,3,s,ut)),tt>4&&Ji(e,t,4,c)&&(ze=!0,ut=dr(e,ye,t,4,c,ut)),tt>5&&Ji(e,t,5,u)&&(ze=!0,ut=dr(e,ye,t,5,u,ut)),tt>6&&Ji(e,t,6,y)&&(ze=!0,ut=dr(e,ye,t,6,y,ut)),tt>7&&Ji(e,t,7,A)&&(ze=!0,ut=dr(e,ye,t,7,A,ut)),tt>8&&Ji(e,t,8,H)&&(ze=!0,ut=dr(e,ye,t,8,H,ut)),tt>9&&Ji(e,t,9,ue)&&(ze=!0,ut=dr(e,ye,t,9,ue,ut)),ut&&Ae.ngOnChanges(ut),65536&t.flags&&Il(e,256,t.nodeIndex)&&Ae.ngOnInit(),262144&t.flags&&Ae.ngDoCheck(),ze}(e,t,n,i,r,s,c,u,y,A,H,ue);case 32:case 64:case 128:return function(e,t,n,i,r,s,c,u,y,A,H,ue){const ye=t.bindings;let Ae=!1;const ze=ye.length;if(ze>0&&Nn(e,t,0,n)&&(Ae=!0),ze>1&&Nn(e,t,1,i)&&(Ae=!0),ze>2&&Nn(e,t,2,r)&&(Ae=!0),ze>3&&Nn(e,t,3,s)&&(Ae=!0),ze>4&&Nn(e,t,4,c)&&(Ae=!0),ze>5&&Nn(e,t,5,u)&&(Ae=!0),ze>6&&Nn(e,t,6,y)&&(Ae=!0),ze>7&&Nn(e,t,7,A)&&(Ae=!0),ze>8&&Nn(e,t,8,H)&&(Ae=!0),ze>9&&Nn(e,t,9,ue)&&(Ae=!0),Ae){const ut=Es(e,t.nodeIndex);let tt;switch(201347067&t.flags){case 32:tt=[],ze>0&&tt.push(n),ze>1&&tt.push(i),ze>2&&tt.push(r),ze>3&&tt.push(s),ze>4&&tt.push(c),ze>5&&tt.push(u),ze>6&&tt.push(y),ze>7&&tt.push(A),ze>8&&tt.push(H),ze>9&&tt.push(ue);break;case 64:tt={},ze>0&&(tt[ye[0].name]=n),ze>1&&(tt[ye[1].name]=i),ze>2&&(tt[ye[2].name]=r),ze>3&&(tt[ye[3].name]=s),ze>4&&(tt[ye[4].name]=c),ze>5&&(tt[ye[5].name]=u),ze>6&&(tt[ye[6].name]=y),ze>7&&(tt[ye[7].name]=A),ze>8&&(tt[ye[8].name]=H),ze>9&&(tt[ye[9].name]=ue);break;case 128:const Ot=n;switch(ze){case 1:tt=Ot.transform(n);break;case 2:tt=Ot.transform(i);break;case 3:tt=Ot.transform(i,r);break;case 4:tt=Ot.transform(i,r,s);break;case 5:tt=Ot.transform(i,r,s,c);break;case 6:tt=Ot.transform(i,r,s,c,u);break;case 7:tt=Ot.transform(i,r,s,c,u,y);break;case 8:tt=Ot.transform(i,r,s,c,u,y,A);break;case 9:tt=Ot.transform(i,r,s,c,u,y,A,H);break;case 10:tt=Ot.transform(i,r,s,c,u,y,A,H,ue)}}ut.value=tt}return Ae}(e,t,n,i,r,s,c,u,y,A,H,ue);default:throw"unreachable"}}(e,t,i,r,s,c,u,y,A,H,ue,ye):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let i=!1;for(let r=0;r<n.length;r++)fr(e,t,r,n[r])&&(i=!0);return i}(e,t,n);case 2:return function(e,t,n){const i=t.bindings;let r=!1;for(let s=0;s<n.length;s++)Nn(e,t,s,n[s])&&(r=!0);if(r){let s="";for(let u=0;u<n.length;u++)s+=pr(n[u],i[u]);s=t.text.prefix+s;const c=_a(e,t.nodeIndex).renderText;e.renderer.setValue(c,s)}return r}(e,t,n);case 16384:return function(e,t,n){const i=ho(e,t.nodeIndex),r=i.instance;let c,s=!1;for(let u=0;u<n.length;u++)Ji(e,t,u,n[u])&&(s=!0,c=dr(e,i,t,u,n[u],c));return c&&r.ngOnChanges(c),65536&t.flags&&Il(e,256,t.nodeIndex)&&r.ngOnInit(),262144&t.flags&&r.ngDoCheck(),s}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const i=t.bindings;let r=!1;for(let s=0;s<n.length;s++)Nn(e,t,s,n[s])&&(r=!0);if(r){const s=Es(e,t.nodeIndex);let c;switch(201347067&t.flags){case 32:c=n;break;case 64:c={};for(let A=0;A<n.length;A++)c[i[A].name]=n[A];break;case 128:const u=n[0],y=n.slice(1);c=u.transform(...y)}s.value=c}return r}(e,t,n);default:throw"unreachable"}}(e,t,i)}function eb(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const i=t.nodes[n];if(4&i.flags){const r=En(e,n).template._projectedViews;if(r)for(let s=0;s<r.length;s++){const c=r[s];c.state|=32,O0(c,e)}}else 0==(4&i.childFlags)&&(n+=i.childCount)}}function tb(e,t,n,i,r,s,c,u,y,A,H,ue,ye){return 0===n?function(e,t,n,i,r,s,c,u,y,A,H,ue){const ye=t.bindings.length;ye>0&&ur(e,t,0,n),ye>1&&ur(e,t,1,i),ye>2&&ur(e,t,2,r),ye>3&&ur(e,t,3,s),ye>4&&ur(e,t,4,c),ye>5&&ur(e,t,5,u),ye>6&&ur(e,t,6,y),ye>7&&ur(e,t,7,A),ye>8&&ur(e,t,8,H),ye>9&&ur(e,t,9,ue)}(e,t,i,r,s,c,u,y,A,H,ue,ye):function(e,t,n){for(let i=0;i<n.length;i++)ur(e,t,i,n[i])}(e,t,i),!1}function BS(e,t){if(ya(e,t.nodeIndex).dirty)throw R_(ln.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function Ph(e){if(!(128&e.state)){if(Hl(e,Dn.Destroy),Na(e,Dn.Destroy),$d(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();(function(e){if(!(16&e.state))return;const t=Rd(e);if(t){const n=t.template._projectedViews;n&&(Co(n,n.indexOf(e)),ln.dirtyParentQueries(e))}})(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const i=e.def.nodes[n];1&i.flags?e.renderer.destroyNode(En(e,n).renderElement):2&i.flags?e.renderer.destroyNode(_a(e,n).renderText):(67108864&i.flags||134217728&i.flags)&&ya(e,n).destroy()}}(e),Ao(e)&&e.renderer.destroy(),e.state|=128}}var Dn=(()=>((Dn=Dn||{})[Dn.CreateViewNodes=0]="CreateViewNodes",Dn[Dn.CheckNoChanges=1]="CheckNoChanges",Dn[Dn.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",Dn[Dn.CheckAndUpdate=3]="CheckAndUpdate",Dn[Dn.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",Dn[Dn.Destroy=5]="Destroy",Dn))();function Na(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const r=n.nodes[i];33554432&r.flags?nb(En(e,i).componentView,t):0==(33554432&r.childFlags)&&(i+=r.childCount)}}function Hl(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const r=n.nodes[i];if(16777216&r.flags){const s=En(e,i).viewContainer._embeddedViews;for(let c=0;c<s.length;c++)nb(s[c],t)}else 0==(16777216&r.childFlags)&&(i+=r.childCount)}}function nb(e,t){const n=e.state;switch(t){case Dn.CheckNoChanges:0==(128&n)&&(12==(12&n)?Bl(e):64&n&&$l(e,Dn.CheckNoChangesProjectedViews));break;case Dn.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Bl(e):64&n&&$l(e,t));break;case Dn.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Vl(e):64&n&&$l(e,Dn.CheckAndUpdateProjectedViews));break;case Dn.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Vl(e):64&n&&$l(e,t));break;case Dn.Destroy:Ph(e);break;case Dn.CreateViewNodes:Ih(e)}}function $l(e,t){Hl(e,t),Na(e,t)}function Ah(e,t,n,i){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const r=e.def.nodes.length;for(let s=0;s<r;s++){const c=e.def.nodes[s];if(c.flags&t&&c.flags&n)switch(ln.setCurrentNode(e,c.nodeIndex),i){case 0:bS(e,c);break;case 1:BS(e,c)}(!(c.childFlags&t)||!(c.childFlags&n))&&(s+=c.childCount)}}let ib=!1;function La(){if(ib)return;ib=!0;const e=gh()?{setCurrentNode:Ps,createRootView:zS,createEmbeddedView:WS,createComponentView:KS,createNgModuleRef:GS,overrideProvider:QS,overrideComponentView:YS,clearOverrides:JS,checkAndUpdateView:XS,checkNoChangesView:qS,destroyView:eI,createDebugContext:(e,t)=>new Rh(e,t),handleEvent:tI,updateDirectives:nI,updateRenderer:iI}:{setCurrentNode:()=>{},createRootView:US,createEmbeddedView:Jv,createComponentView:Xv,createNgModuleRef:Q_,overrideProvider:Yi,overrideComponentView:Yi,clearOverrides:Yi,checkAndUpdateView:Vl,checkNoChangesView:Bl,destroyView:Ph,createDebugContext:(e,t)=>new Rh(e,t),handleEvent:(e,t,n,i)=>e.def.handleEvent(e,t,n,i),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?ob:sb,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?ob:sb,e)};ln.setCurrentNode=e.setCurrentNode,ln.createRootView=e.createRootView,ln.createEmbeddedView=e.createEmbeddedView,ln.createComponentView=e.createComponentView,ln.createNgModuleRef=e.createNgModuleRef,ln.overrideProvider=e.overrideProvider,ln.overrideComponentView=e.overrideComponentView,ln.clearOverrides=e.clearOverrides,ln.checkAndUpdateView=e.checkAndUpdateView,ln.checkNoChangesView=e.checkNoChangesView,ln.destroyView=e.destroyView,ln.resolveDep=mi,ln.createDebugContext=e.createDebugContext,ln.handleEvent=e.handleEvent,ln.updateDirectives=e.updateDirectives,ln.updateRenderer=e.updateRenderer,ln.dirtyParentQueries=vS}function US(e,t,n,i,r,s){const c=r.injector.get(Dl);return Zv(rb(e,r,c,t,n),i,s)}function zS(e,t,n,i,r,s){const c=r.injector.get(Dl),u=rb(e,r,new sI(c),t,n),y=xh(i);return Ro(Hn.create,Zv,null,[u,y,s])}function rb(e,t,n,i,r){const s=t.injector.get(Dd),c=t.injector.get(Xo),u=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:i,selectorOrNode:r,sanitizer:s,rendererFactory:n,renderer:u,errorHandler:c}}function WS(e,t,n,i){const r=xh(n);return Ro(Hn.create,Jv,null,[e,t,r,i])}function KS(e,t,n,i){return n=Oh.get(t.element.componentProvider.provider.token)||xh(n),Ro(Hn.create,Xv,null,[e,t,n,i])}function GS(e,t,n,i){const r=function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(s){let c=!1,u=!1;return 0===fo.size||(s.providers.forEach(y=>{const A=fo.get(y.token);3840&y.flags&&A&&(c=!0,u=u||A.deprecatedBehavior)}),s.modules.forEach(y=>{ja.forEach((A,H)=>{S(ce(H).providedIn)===y&&(c=!0,u=u||A.deprecatedBehavior)})})),{hasOverrides:c,hasDeprecatedOverrides:u}}(e);return t?(function(s){for(let c=0;c<s.providers.length;c++){const u=s.providers[c];n&&(u.flags|=4096);const y=fo.get(u.token);y&&(u.flags=-3841&u.flags|y.flags,u.deps=ba(y.deps),u.value=y.value)}if(ja.size>0){let c=new Set(s.modules);ja.forEach((u,y)=>{if(c.has(S(ce(y).providedIn))){let A={token:y,flags:u.flags|(n?4096:0),deps:ba(u.deps),value:u.value,index:s.providers.length};s.providers.push(A),s.providersByKey[ai(y)]=A}})}}(e=e.factory(()=>Yi)),e):e}(i);return Q_(e,t,n,r)}const fo=new Map,ja=new Map,Oh=new Map;function QS(e){let t;fo.set(e.token,e),"function"==typeof e.token&&(t=ce(e.token))&&"function"==typeof t.providedIn&&ja.set(e.token,e)}function YS(e,t){const n=Ts(K_(t)),i=Ts(n.nodes[0].element.componentView);Oh.set(e,i)}function JS(){fo.clear(),ja.clear(),Oh.clear()}function xh(e){if(0===fo.size)return e;const t=function(r){const s=[];let c=null;for(let u=0;u<r.nodes.length;u++){const y=r.nodes[u];1&y.flags&&(c=y),c&&3840&y.flags&&fo.has(y.provider.token)&&(s.push(c.nodeIndex),c=null)}return s}(e);if(0===t.length)return e;e=e.factory(()=>Yi);for(let r=0;r<t.length;r++)i(e,t[r]);return e;function i(r,s){for(let c=s+1;c<r.nodes.length;c++){const u=r.nodes[c];if(1&u.flags)return;if(3840&u.flags){const y=u.provider,A=fo.get(y.token);A&&(u.flags=-3841&u.flags|A.flags,y.deps=ba(A.deps),y.value=A.value)}}}}function ob(e,t,n,i,r,s,c,u,y,A,H,ue,ye){const Ae=e.def.nodes[t];return qv(e,Ae,n,i,r,s,c,u,y,A,H,ue,ye),224&Ae.flags?Es(e,t).value:void 0}function sb(e,t,n,i,r,s,c,u,y,A,H,ue,ye){const Ae=e.def.nodes[t];return tb(e,Ae,n,i,r,s,c,u,y,A,H,ue,ye),224&Ae.flags?Es(e,t).value:void 0}function XS(e){return Ro(Hn.detectChanges,Vl,null,[e])}function qS(e){return Ro(Hn.checkNoChanges,Bl,null,[e])}function eI(e){return Ro(Hn.destroy,Ph,null,[e])}var Hn=(()=>((Hn=Hn||{})[Hn.create=0]="create",Hn[Hn.detectChanges=1]="detectChanges",Hn[Hn.checkNoChanges=2]="checkNoChanges",Hn[Hn.destroy=3]="destroy",Hn[Hn.handleEvent=4]="handleEvent",Hn))();let Ba,Is,Ul;function Ps(e,t){Is=e,Ul=t}function tI(e,t,n,i){return Ps(e,t),Ro(Hn.handleEvent,e.def.handleEvent,null,[e,t,n,i])}function nI(e,t){if(128&e.state)throw F_(Hn[Ba]);return Ps(e,cb(e,0)),e.def.updateDirectives(function(i,r,s,...c){const u=i.def.nodes[r];return 0===t?ab(i,u,s,c):lb(i,u,s,c),16384&u.flags&&Ps(i,cb(i,r)),224&u.flags?Es(i,u.nodeIndex).value:void 0},e)}function iI(e,t){if(128&e.state)throw F_(Hn[Ba]);return Ps(e,ub(e,0)),e.def.updateRenderer(function(i,r,s,...c){const u=i.def.nodes[r];return 0===t?ab(i,u,s,c):lb(i,u,s,c),3&u.flags&&Ps(i,ub(i,r)),224&u.flags?Es(i,u.nodeIndex).value:void 0},e)}function ab(e,t,n,i){if(qv(e,t,n,...i)){const s=1===n?i[0]:i;if(16384&t.flags){const c={};for(let A=0;A<t.bindings.length;A++){const H=t.bindings[A],ue=s[A];8&H.flags&&(c[Wf(H.nonMinifiedName)]=Kf(ue))}const u=t.parent,y=En(e,u.nodeIndex).renderElement;if(u.element.name)for(let A in c){const H=c[A];null!=H?e.renderer.setAttribute(y,A,H):e.renderer.removeAttribute(y,A)}else e.renderer.setValue(y,nl(`bindings=${JSON.stringify(c,null,2)}`))}}}function lb(e,t,n,i){tb(e,t,n,...i)}function cb(e,t){for(let n=t;n<e.def.nodes.length;n++){const i=e.def.nodes[n];if(16384&i.flags&&i.bindings&&i.bindings.length)return n}return null}function ub(e,t){for(let n=t;n<e.def.nodes.length;n++){const i=e.def.nodes[n];if(3&i.flags&&i.bindings&&i.bindings.length)return n}return null}class Rh{constructor(t,n){this.view=t,this.nodeIndex=n,null==n&&(this.nodeIndex=n=0),this.nodeDef=t.def.nodes[n];let i=this.nodeDef,r=t;for(;i&&0==(1&i.flags);)i=i.parent;if(!i)for(;!i&&r;)i=Ds(r),r=r.parent;this.elDef=i,this.elView=r}get elOrCompView(){return En(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return G_(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const t=[];if(this.elDef)for(let n=this.elDef.nodeIndex+1;n<=this.elDef.nodeIndex+this.elDef.childCount;n++){const i=this.elView.def.nodes[n];20224&i.flags&&t.push(i.provider.token),n+=i.childCount}return t}get references(){const t={};if(this.elDef){db(this.elView,this.elDef,t);for(let n=this.elDef.nodeIndex+1;n<=this.elDef.nodeIndex+this.elDef.childCount;n++){const i=this.elView.def.nodes[n];20224&i.flags&&db(this.elView,i,t),n+=i.childCount}}return t}get componentRenderElement(){const t=function(e){for(;e&&!Ao(e);)e=e.parent;return e.parent?En(e.parent,Ds(e).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?va(this.view,this.nodeDef):va(this.elView,this.elDef)}logError(t,...n){let i,r;2&this.nodeDef.flags?(i=this.view.def,r=this.nodeDef.nodeIndex):(i=this.elView.def,r=this.elDef.nodeIndex);const s=function(e,t){let n=-1;for(let i=0;i<=t;i++)3&e.nodes[i].flags&&n++;return n}(i,r);let c=-1;i.factory(()=>(c++,c===s?t.error.bind(t,...n):Yi)),c<s&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error(...n))}}function db(e,t,n){for(let i in t.references)n[i]=Qv(e,t,t.references[i])}function Ro(e,t,n,i){const r=Ba,s=Is,c=Ul;try{Ba=e;const u=t.apply(n,i);return Is=s,Ul=c,Ba=r,u}catch(u){throw function(e){return!!$f(e)}(u)||!Is?u:function(e,t){return e instanceof Error||(e=new Error(e.toString())),k_(e,t),e}(u,kh())}}function kh(){return Is?new Rh(Is,Ul):null}class sI{constructor(t){this.delegate=t}createRenderer(t,n){return new aI(this.delegate.createRenderer(t,n))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class aI{constructor(t){this.delegate=t,this.debugContextFactory=kh,this.data=this.delegate.data}createDebugContext(t){return this.debugContextFactory(t)}destroyNode(t){const n=Zn(t);n&&(Nl.delete(n.nativeNode),n instanceof Ra&&(n.listeners.length=0)),this.delegate.destroyNode&&this.delegate.destroyNode(t)}destroy(){this.delegate.destroy()}createElement(t,n){const i=this.delegate.createElement(t,n),r=this.createDebugContext(i);if(r){const s=new Jn(i,null,r);s.name=t,jl(s)}return i}createComment(t){const n=this.delegate.createComment(nl(t)),i=this.createDebugContext(n);return i&&jl(new Ra(n,null,i)),n}createText(t){const n=this.delegate.createText(t),i=this.createDebugContext(n);return i&&jl(new Ra(n,null,i)),n}appendChild(t,n){const i=Zn(t),r=Zn(n);i&&r&&i instanceof Jn&&i.addChild(r),this.delegate.appendChild(t,n)}insertBefore(t,n,i,r){const s=Zn(t),c=Zn(n),u=Zn(i);s&&c&&s instanceof Jn&&s.insertBefore(u,c),this.delegate.insertBefore(t,n,i,r)}removeChild(t,n){const i=Zn(t),r=Zn(n);i&&r&&i instanceof Jn&&i.removeChild(r),this.delegate.removeChild(t,n)}selectRootElement(t,n){const i=this.delegate.selectRootElement(t,n),r=kh();return r&&jl(new Jn(i,null,r)),i}setAttribute(t,n,i,r){const s=Zn(t);s&&s instanceof Jn&&(s.attributes[r?r+":"+n:n]=i),this.delegate.setAttribute(t,n,i,r)}removeAttribute(t,n,i){const r=Zn(t);r&&r instanceof Jn&&(r.attributes[i?i+":"+n:n]=null),this.delegate.removeAttribute(t,n,i)}addClass(t,n){const i=Zn(t);i&&i instanceof Jn&&(i.classes[n]=!0),this.delegate.addClass(t,n)}removeClass(t,n){const i=Zn(t);i&&i instanceof Jn&&(i.classes[n]=!1),this.delegate.removeClass(t,n)}setStyle(t,n,i,r){const s=Zn(t);s&&s instanceof Jn&&(s.styles[n]=i),this.delegate.setStyle(t,n,i,r)}removeStyle(t,n,i){const r=Zn(t);r&&r instanceof Jn&&(r.styles[n]=null),this.delegate.removeStyle(t,n,i)}setProperty(t,n,i){const r=Zn(t);r&&r instanceof Jn&&(r.properties[n]=i),this.delegate.setProperty(t,n,i)}listen(t,n,i){if("string"!=typeof t){const r=Zn(t);r&&r.listeners.push(new jv(n,i))}return this.delegate.listen(t,n,i)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setValue(t,n){return this.delegate.setValue(t,n)}}function lI(e){return La(),ln.overrideProvider(e)}function cI(e,t){return La(),ln.overrideComponentView(e,t)}function uI(){return La(),ln.clearOverrides()}function dI(e,t,n){return new fI(e,t,n)}class fI extends Ad{constructor(t,n,i){super(),this.moduleType=t,this._bootstrapComponents=n,this._ngModuleDefFactory=i}create(t){La();const n=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),i={};for(const r in e.providersByKey)i[r]=e.providersByKey[r];return{factory:e.factory,scope:e.scope,providers:t,modules:n,providersByKey:i}}(Ts(this._ngModuleDefFactory));return ln.createNgModuleRef(this.moduleType,t||In.NULL,this._bootstrapComponents,n)}}function pI(e){return Qn().compileDirectiveDeclaration(vi,`ng:///${e.type.name}/\u0275fac.js`,e)}function mI(e){var t,n;iy(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function gI(e){return Qn().compileComponentDeclaration(vi,`ng:///${e.type.name}/\u0275cmp.js`,e)}function _I(e){return Qn(function(e){switch(e){case Gn.Directive:return"directive";case Gn.Component:return"component";case Gn.Injectable:return"injectable";case Gn.Pipe:return"pipe";case Gn.NgModule:;}}(e.target)).compileFactoryDeclaration(vi,`ng:///${e.type.name}/\u0275fac.js`,e)}function vI(e){return Qn().compileInjectableDeclaration(vi,`ng:///${e.type.name}/\u0275prov.js`,e)}function bI(e){return Qn().compileInjectorDeclaration(vi,`ng:///${e.type.name}/\u0275inj.js`,e)}function CI(e){return Qn().compileNgModuleDeclaration(vi,`ng:///${e.type.name}/\u0275mod.js`,e)}function EI(e){return Qn().compilePipeDeclaration(vi,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3679:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{AbstractControl:()=>Se,AbstractControlDirective:()=>pe,AbstractFormGroupDirective:()=>We,COMPOSITION_BUFFER_MODE:()=>P,CheckboxControlValueAccessor:()=>E,CheckboxRequiredValidator:()=>ji,ControlContainer:()=>ke,DefaultValueAccessor:()=>B,EmailValidator:()=>tr,FormArray:()=>Rt,FormArrayName:()=>mr,FormBuilder:()=>te,FormControl:()=>et,FormControlDirective:()=>Ci,FormControlName:()=>Fr,FormGroup:()=>ft,FormGroupDirective:()=>ui,FormGroupName:()=>Un,FormsModule:()=>Tr,MaxLengthValidator:()=>Si,MaxValidator:()=>Br,MinLengthValidator:()=>br,MinValidator:()=>yr,NG_ASYNC_VALIDATORS:()=>Ce,NG_VALIDATORS:()=>le,NG_VALUE_ACCESSOR:()=>D,NgControl:()=>ot,NgControlStatus:()=>He,NgControlStatusGroup:()=>q,NgForm:()=>ve,NgModel:()=>qt,NgModelGroup:()=>Ve,NgSelectOption:()=>po,NumberValueAccessor:()=>gi,PatternValidator:()=>Rn,RadioControlValueAccessor:()=>ei,RangeValueAccessor:()=>Xi,ReactiveFormsModule:()=>go,RequiredValidator:()=>Mi,SelectControlValueAccessor:()=>Di,SelectMultipleControlValueAccessor:()=>_r,VERSION:()=>k,Validators:()=>lt,\u0275InternalFormsSharedModule:()=>Dr,\u0275NgNoValidate:()=>Wt,\u0275NgSelectMultipleOption:()=>Lr,\u0275angular_packages_forms_forms_a:()=>Cr,\u0275angular_packages_forms_forms_b:()=>no,\u0275angular_packages_forms_forms_ba:()=>ii,\u0275angular_packages_forms_forms_bb:()=>Lr,\u0275angular_packages_forms_forms_bc:()=>Wt,\u0275angular_packages_forms_forms_bd:()=>Li,\u0275angular_packages_forms_forms_be:()=>qi,\u0275angular_packages_forms_forms_bf:()=>yi,\u0275angular_packages_forms_forms_bg:()=>er,\u0275angular_packages_forms_forms_bh:()=>Vr,\u0275angular_packages_forms_forms_bi:()=>vr,\u0275angular_packages_forms_forms_bj:()=>Hr,\u0275angular_packages_forms_forms_bk:()=>$r,\u0275angular_packages_forms_forms_bl:()=>Ye,\u0275angular_packages_forms_forms_bm:()=>Me,\u0275angular_packages_forms_forms_bn:()=>Oe,\u0275angular_packages_forms_forms_bo:()=>Pe,\u0275angular_packages_forms_forms_bp:()=>de,\u0275angular_packages_forms_forms_bq:()=>qe,\u0275angular_packages_forms_forms_br:()=>Y,\u0275angular_packages_forms_forms_bs:()=>se,\u0275angular_packages_forms_forms_bt:()=>_e,\u0275angular_packages_forms_forms_c:()=>Er,\u0275angular_packages_forms_forms_d:()=>Dr,\u0275angular_packages_forms_forms_e:()=>g,\u0275angular_packages_forms_forms_f:()=>C,\u0275angular_packages_forms_forms_g:()=>w,\u0275angular_packages_forms_forms_h:()=>M,\u0275angular_packages_forms_forms_i:()=>wt,\u0275angular_packages_forms_forms_j:()=>Je,\u0275angular_packages_forms_forms_k:()=>Ue,\u0275angular_packages_forms_forms_l:()=>ee,\u0275angular_packages_forms_forms_m:()=>at,\u0275angular_packages_forms_forms_n:()=>me,\u0275angular_packages_forms_forms_o:()=>Mn,\u0275angular_packages_forms_forms_p:()=>bi,\u0275angular_packages_forms_forms_q:()=>qn,\u0275angular_packages_forms_forms_r:()=>_i,\u0275angular_packages_forms_forms_s:()=>xn,\u0275angular_packages_forms_forms_t:()=>ti,\u0275angular_packages_forms_forms_u:()=>Cn,\u0275angular_packages_forms_forms_v:()=>gr,\u0275angular_packages_forms_forms_w:()=>ci,\u0275angular_packages_forms_forms_x:()=>ni,\u0275angular_packages_forms_forms_y:()=>kr,\u0275angular_packages_forms_forms_z:()=>Nr});var o=d(7716),l=d(8583),f=d(9412),_=d(5758),a=d(8002);let C=(()=>{class m{constructor(b,U){this._renderer=b,this._elementRef=U,this.onChange=Ge=>{},this.onTouched=()=>{}}setProperty(b,U){this._renderer.setProperty(this._elementRef.nativeElement,b,U)}registerOnTouched(b){this.onTouched=b}registerOnChange(b){this.onChange=b}setDisabledState(b){this.setProperty("disabled",b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m}),m})(),w=(()=>{class m extends C{}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();const D=new o.InjectionToken("NgValueAccessor"),g={provide:D,useExisting:(0,o.forwardRef)(()=>E),multi:!0};let E=(()=>{class m extends w{writeValue(b){this.setProperty("checked",b)}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target.checked)})("blur",function(){return U.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([g]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const M={provide:D,useExisting:(0,o.forwardRef)(()=>B),multi:!0},P=new o.InjectionToken("CompositionEventMode");let B=(()=>{class m extends C{constructor(b,U,Ge){super(b,U),this._compositionMode=Ge,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const m=(0,l.\u0275getDOM)()?(0,l.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(m.toLowerCase())}())}writeValue(b){this.setProperty("value",null==b?"":b)}_handleInput(b){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(b)}_compositionStart(){this._composing=!0}_compositionEnd(b){this._composing=!1,this._compositionMode&&this.onChange(b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(P,8))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("input",function(St){return U._handleInput(St.target.value)})("blur",function(){return U.onTouched()})("compositionstart",function(){return U._compositionStart()})("compositionend",function(St){return U._compositionEnd(St.target.value)})},features:[o.\u0275\u0275ProvidersFeature([M]),o.\u0275\u0275InheritDefinitionFeature]}),m})();function j(m){return null==m||0===m.length}function oe(m){return null!=m&&"number"==typeof m.length}const le=new o.InjectionToken("NgValidators"),Ce=new o.InjectionToken("NgAsyncValidators"),$e=/^(?=.{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 lt{static min(v){return Ye(v)}static max(v){return Me(v)}static required(v){return Oe(v)}static requiredTrue(v){return Pe(v)}static email(v){return de(v)}static minLength(v){return qe(v)}static maxLength(v){return Y(v)}static pattern(v){return se(v)}static nullValidator(v){return null}static compose(v){return je(v)}static composeAsync(v){return ht(v)}}function Ye(m){return v=>{if(j(v.value)||j(m))return null;const b=parseFloat(v.value);return!isNaN(b)&&b<m?{min:{min:m,actual:v.value}}:null}}function Me(m){return v=>{if(j(v.value)||j(m))return null;const b=parseFloat(v.value);return!isNaN(b)&&b>m?{max:{max:m,actual:v.value}}:null}}function Oe(m){return j(m.value)?{required:!0}:null}function Pe(m){return!0===m.value?null:{required:!0}}function de(m){return j(m.value)||$e.test(m.value)?null:{email:!0}}function qe(m){return v=>j(v.value)||!oe(v.value)?null:v.value.length<m?{minlength:{requiredLength:m,actualLength:v.value.length}}:null}function Y(m){return v=>oe(v.value)&&v.value.length>m?{maxlength:{requiredLength:m,actualLength:v.value.length}}:null}function se(m){if(!m)return _e;let v,b;return"string"==typeof m?(b="","^"!==m.charAt(0)&&(b+="^"),b+=m,"$"!==m.charAt(m.length-1)&&(b+="$"),v=new RegExp(b)):(b=m.toString(),v=m),U=>{if(j(U.value))return null;const Ge=U.value;return v.test(Ge)?null:{pattern:{requiredPattern:b,actualValue:Ge}}}}function _e(m){return null}function fe(m){return null!=m}function Be(m){const v=(0,o.\u0275isPromise)(m)?(0,f.D)(m):m;return(0,o.\u0275isObservable)(v),v}function Fe(m){let v={};return m.forEach(b=>{v=null!=b?Object.assign(Object.assign({},v),b):v}),0===Object.keys(v).length?null:v}function st(m,v){return v.map(b=>b(m))}function Ct(m){return m.map(v=>function(m){return!m.validate}(v)?v:b=>v.validate(b))}function je(m){if(!m)return null;const v=m.filter(fe);return 0==v.length?null:function(b){return Fe(st(b,v))}}function rt(m){return null!=m?je(Ct(m)):null}function ht(m){if(!m)return null;const v=m.filter(fe);return 0==v.length?null:function(b){const U=st(b,v).map(Be);return(0,_.D)(U).pipe((0,a.U)(Fe))}}function It(m){return null!=m?ht(Ct(m)):null}function Ze(m,v){return null===m?[v]:Array.isArray(m)?[...m,v]:[m,v]}function dt(m){return m._rawValidators}function $(m){return m._rawAsyncValidators}function re(m){return m?Array.isArray(m)?m:[m]:[]}function L(m,v){return Array.isArray(m)?m.includes(v):m===v}function ce(m,v){const b=re(v);return re(m).forEach(Ge=>{L(b,Ge)||b.push(Ge)}),b}function ae(m,v){return re(v).filter(b=>!L(m,b))}let pe=(()=>{class m{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(b){this._rawValidators=b||[],this._composedValidatorFn=rt(this._rawValidators)}_setAsyncValidators(b){this._rawAsyncValidators=b||[],this._composedAsyncValidatorFn=It(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(b){this._onDestroyCallbacks.push(b)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(b=>b()),this._onDestroyCallbacks=[]}reset(b){this.control&&this.control.reset(b)}hasError(b,U){return!!this.control&&this.control.hasError(b,U)}getError(b,U){return this.control?this.control.getError(b,U):null}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m}),m})(),ke=(()=>{class m extends pe{get formDirective(){return null}get path(){return null}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();class ot extends pe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class wt{constructor(v){this._cd=v}is(v){var b,U,Ge;return"submitted"===v?!!(null===(b=this._cd)||void 0===b?void 0:b.submitted):!!(null===(Ge=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===Ge?void 0:Ge[v])}}const Je={"[class.ng-untouched]":'is("untouched")',"[class.ng-touched]":'is("touched")',"[class.ng-pristine]":'is("pristine")',"[class.ng-dirty]":'is("dirty")',"[class.ng-valid]":'is("valid")',"[class.ng-invalid]":'is("invalid")',"[class.ng-pending]":'is("pending")'},Ue={"[class.ng-untouched]":'is("untouched")',"[class.ng-touched]":'is("touched")',"[class.ng-pristine]":'is("pristine")',"[class.ng-dirty]":'is("dirty")',"[class.ng-valid]":'is("valid")',"[class.ng-invalid]":'is("invalid")',"[class.ng-pending]":'is("pending")',"[class.ng-submitted]":'is("submitted")'};let He=(()=>{class m extends wt{constructor(b){super(b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(ot,2))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(b,U){2&b&&o.\u0275\u0275classProp("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))},features:[o.\u0275\u0275InheritDefinitionFeature]}),m})(),q=(()=>{class m extends wt{constructor(b){super(b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(ke,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(b,U){2&b&&o.\u0275\u0275classProp("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();function Et(m,v){return[...v.path,m]}function xt(m,v){At(m,v),v.valueAccessor.writeValue(m.value),function(m,v){v.valueAccessor.registerOnChange(b=>{m._pendingValue=b,m._pendingChange=!0,m._pendingDirty=!0,"change"===m.updateOn&&Xe(m,v)})}(m,v),function(m,v){const b=(U,Ge)=>{v.valueAccessor.writeValue(U),Ge&&v.viewToModelUpdate(U)};m.registerOnChange(b),v._registerOnDestroy(()=>{m._unregisterOnChange(b)})}(m,v),function(m,v){v.valueAccessor.registerOnTouched(()=>{m._pendingTouched=!0,"blur"===m.updateOn&&m._pendingChange&&Xe(m,v),"submit"!==m.updateOn&&m.markAsTouched()})}(m,v),function(m,v){if(v.valueAccessor.setDisabledState){const b=U=>{v.valueAccessor.setDisabledState(U)};m.registerOnDisabledChange(b),v._registerOnDestroy(()=>{m._unregisterOnDisabledChange(b)})}}(m,v)}function Nt(m,v,b=!0){const U=()=>{};v.valueAccessor&&(v.valueAccessor.registerOnChange(U),v.valueAccessor.registerOnTouched(U)),Lt(m,v),m&&(v._invokeOnDestroyCallbacks(),m._registerOnCollectionChange(()=>{}))}function Ut(m,v){m.forEach(b=>{b.registerOnValidatorChange&&b.registerOnValidatorChange(v)})}function At(m,v){const b=dt(m);null!==v.validator?m.setValidators(Ze(b,v.validator)):"function"==typeof b&&m.setValidators([b]);const U=$(m);null!==v.asyncValidator?m.setAsyncValidators(Ze(U,v.asyncValidator)):"function"==typeof U&&m.setAsyncValidators([U]);const Ge=()=>m.updateValueAndValidity();Ut(v._rawValidators,Ge),Ut(v._rawAsyncValidators,Ge)}function Lt(m,v){let b=!1;if(null!==m){if(null!==v.validator){const Ge=dt(m);if(Array.isArray(Ge)&&Ge.length>0){const St=Ge.filter(Zt=>Zt!==v.validator);St.length!==Ge.length&&(b=!0,m.setValidators(St))}}if(null!==v.asyncValidator){const Ge=$(m);if(Array.isArray(Ge)&&Ge.length>0){const St=Ge.filter(Zt=>Zt!==v.asyncValidator);St.length!==Ge.length&&(b=!0,m.setAsyncValidators(St))}}}const U=()=>{};return Ut(v._rawValidators,U),Ut(v._rawAsyncValidators,U),b}function Xe(m,v){m._pendingDirty&&m.markAsDirty(),m.setValue(m._pendingValue,{emitModelToViewChange:!1}),v.viewToModelUpdate(m._pendingValue),m._pendingChange=!1}function V(m,v){At(m,v)}function Ee(m,v){if(!m.hasOwnProperty("model"))return!1;const b=m.model;return!!b.isFirstChange()||!Object.is(v,b.currentValue)}function Z(m,v){m._syncPendingControls(),v.forEach(b=>{const U=b.control;"submit"===U.updateOn&&U._pendingChange&&(b.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function N(m,v){if(!v)return null;let b,U,Ge;return Array.isArray(v),v.forEach(St=>{St.constructor===B?b=St:function(m){return Object.getPrototypeOf(m.constructor)===w}(St)?U=St:Ge=St}),Ge||U||b||null}function ie(m,v){const b=m.indexOf(v);b>-1&&m.splice(b,1)}const _t="VALID",Ht="INVALID",dn="PENDING",cn="DISABLED";function un(m){return(xe(m)?m.validators:m)||null}function wn(m){return Array.isArray(m)?rt(m):m||null}function yn(m,v){return(xe(v)?v.asyncValidators:m)||null}function mt(m){return Array.isArray(m)?It(m):m||null}function xe(m){return null!=m&&!Array.isArray(m)&&"object"==typeof m}class Se{constructor(v,b){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=v,this._rawAsyncValidators=b,this._composedValidatorFn=wn(this._rawValidators),this._composedAsyncValidatorFn=mt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(v){this._rawValidators=this._composedValidatorFn=v}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(v){this._rawAsyncValidators=this._composedAsyncValidatorFn=v}get parent(){return this._parent}get valid(){return this.status===_t}get invalid(){return this.status===Ht}get pending(){return this.status==dn}get disabled(){return this.status===cn}get enabled(){return this.status!==cn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(v){this._rawValidators=v,this._composedValidatorFn=wn(v)}setAsyncValidators(v){this._rawAsyncValidators=v,this._composedAsyncValidatorFn=mt(v)}addValidators(v){this.setValidators(ce(v,this._rawValidators))}addAsyncValidators(v){this.setAsyncValidators(ce(v,this._rawAsyncValidators))}removeValidators(v){this.setValidators(ae(v,this._rawValidators))}removeAsyncValidators(v){this.setAsyncValidators(ae(v,this._rawAsyncValidators))}hasValidator(v){return L(this._rawValidators,v)}hasAsyncValidator(v){return L(this._rawAsyncValidators,v)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(v={}){this.touched=!0,this._parent&&!v.onlySelf&&this._parent.markAsTouched(v)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(v=>v.markAllAsTouched())}markAsUntouched(v={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(b=>{b.markAsUntouched({onlySelf:!0})}),this._parent&&!v.onlySelf&&this._parent._updateTouched(v)}markAsDirty(v={}){this.pristine=!1,this._parent&&!v.onlySelf&&this._parent.markAsDirty(v)}markAsPristine(v={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(b=>{b.markAsPristine({onlySelf:!0})}),this._parent&&!v.onlySelf&&this._parent._updatePristine(v)}markAsPending(v={}){this.status=dn,!1!==v.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!v.onlySelf&&this._parent.markAsPending(v)}disable(v={}){const b=this._parentMarkedDirty(v.onlySelf);this.status=cn,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},v),{onlySelf:!0}))}),this._updateValue(),!1!==v.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},v),{skipPristineCheck:b})),this._onDisabledChange.forEach(U=>U(!0))}enable(v={}){const b=this._parentMarkedDirty(v.onlySelf);this.status=_t,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},v),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:v.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},v),{skipPristineCheck:b})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(v){this._parent&&!v.onlySelf&&(this._parent.updateValueAndValidity(v),v.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(v){this._parent=v}updateValueAndValidity(v={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_t||this.status===dn)&&this._runAsyncValidator(v.emitEvent)),!1!==v.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!v.onlySelf&&this._parent.updateValueAndValidity(v)}_updateTreeValidity(v={emitEvent:!0}){this._forEachChild(b=>b._updateTreeValidity(v)),this.updateValueAndValidity({onlySelf:!0,emitEvent:v.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cn:_t}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(v){if(this.asyncValidator){this.status=dn,this._hasOwnPendingAsyncValidator=!0;const b=Be(this.asyncValidator(this));this._asyncValidationSubscription=b.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:v})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(v,b={}){this.errors=v,this._updateControlsErrors(!1!==b.emitEvent)}get(v){return function(m,v,b){if(null==v||(Array.isArray(v)||(v=v.split(".")),Array.isArray(v)&&0===v.length))return null;let U=m;return v.forEach(Ge=>{U=U instanceof ft?U.controls.hasOwnProperty(Ge)?U.controls[Ge]:null:U instanceof Rt&&U.at(Ge)||null}),U}(this,v)}getError(v,b){const U=b?this.get(b):this;return U&&U.errors?U.errors[v]:null}hasError(v,b){return!!this.getError(v,b)}get root(){let v=this;for(;v._parent;)v=v._parent;return v}_updateControlsErrors(v){this.status=this._calculateStatus(),v&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(v)}_initObservables(){this.valueChanges=new o.EventEmitter,this.statusChanges=new o.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?cn:this.errors?Ht:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(dn)?dn:this._anyControlsHaveStatus(Ht)?Ht:_t}_anyControlsHaveStatus(v){return this._anyControls(b=>b.status===v)}_anyControlsDirty(){return this._anyControls(v=>v.dirty)}_anyControlsTouched(){return this._anyControls(v=>v.touched)}_updatePristine(v={}){this.pristine=!this._anyControlsDirty(),this._parent&&!v.onlySelf&&this._parent._updatePristine(v)}_updateTouched(v={}){this.touched=this._anyControlsTouched(),this._parent&&!v.onlySelf&&this._parent._updateTouched(v)}_isBoxedValue(v){return"object"==typeof v&&null!==v&&2===Object.keys(v).length&&"value"in v&&"disabled"in v}_registerOnCollectionChange(v){this._onCollectionChange=v}_setUpdateStrategy(v){xe(v)&&null!=v.updateOn&&(this._updateOn=v.updateOn)}_parentMarkedDirty(v){return!v&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class et extends Se{constructor(v=null,b,U){super(un(b),yn(U,b)),this._onChange=[],this._applyFormState(v),this._setUpdateStrategy(b),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(v,b={}){this.value=this._pendingValue=v,this._onChange.length&&!1!==b.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==b.emitViewToModelChange)),this.updateValueAndValidity(b)}patchValue(v,b={}){this.setValue(v,b)}reset(v=null,b={}){this._applyFormState(v),this.markAsPristine(b),this.markAsUntouched(b),this.setValue(this.value,b),this._pendingChange=!1}_updateValue(){}_anyControls(v){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(v){this._onChange.push(v)}_unregisterOnChange(v){ie(this._onChange,v)}registerOnDisabledChange(v){this._onDisabledChange.push(v)}_unregisterOnDisabledChange(v){ie(this._onDisabledChange,v)}_forEachChild(v){}_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(v){this._isBoxedValue(v)?(this.value=this._pendingValue=v.value,v.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=v}}class ft extends Se{constructor(v,b,U){super(un(b),yn(U,b)),this.controls=v,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(v,b){return this.controls[v]?this.controls[v]:(this.controls[v]=b,b.setParent(this),b._registerOnCollectionChange(this._onCollectionChange),b)}addControl(v,b,U={}){this.registerControl(v,b),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(v,b={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),delete this.controls[v],this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}setControl(v,b,U={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),delete this.controls[v],b&&this.registerControl(v,b),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(v){return this.controls.hasOwnProperty(v)&&this.controls[v].enabled}setValue(v,b={}){this._checkAllValuesPresent(v),Object.keys(v).forEach(U=>{this._throwIfControlMissing(U),this.controls[U].setValue(v[U],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(v,b={}){null!=v&&(Object.keys(v).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(v[U],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(v={},b={}){this._forEachChild((U,Ge)=>{U.reset(v[Ge],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this._reduceChildren({},(v,b,U)=>(v[U]=b instanceof et?b.value:b.getRawValue(),v))}_syncPendingControls(){let v=this._reduceChildren(!1,(b,U)=>!!U._syncPendingControls()||b);return v&&this.updateValueAndValidity({onlySelf:!0}),v}_throwIfControlMissing(v){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[v])throw new Error(`Cannot find form control with name: ${v}.`)}_forEachChild(v){Object.keys(this.controls).forEach(b=>{const U=this.controls[b];U&&v(U,b)})}_setUpControls(){this._forEachChild(v=>{v.setParent(this),v._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(v){for(const b of Object.keys(this.controls)){const U=this.controls[b];if(this.contains(b)&&v(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(v,b,U)=>((b.enabled||this.disabled)&&(v[U]=b.value),v))}_reduceChildren(v,b){let U=v;return this._forEachChild((Ge,St)=>{U=b(U,Ge,St)}),U}_allControlsDisabled(){for(const v of Object.keys(this.controls))if(this.controls[v].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(v){this._forEachChild((b,U)=>{if(void 0===v[U])throw new Error(`Must supply a value for form control with name: '${U}'.`)})}}class Rt extends Se{constructor(v,b,U){super(un(b),yn(U,b)),this.controls=v,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(v){return this.controls[v]}push(v,b={}){this.controls.push(v),this._registerControl(v),this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}insert(v,b,U={}){this.controls.splice(v,0,b),this._registerControl(b),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(v,b={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),this.controls.splice(v,1),this.updateValueAndValidity({emitEvent:b.emitEvent})}setControl(v,b,U={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),this.controls.splice(v,1),b&&(this.controls.splice(v,0,b),this._registerControl(b)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(v,b={}){this._checkAllValuesPresent(v),v.forEach((U,Ge)=>{this._throwIfControlMissing(Ge),this.at(Ge).setValue(U,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(v,b={}){null!=v&&(v.forEach((U,Ge)=>{this.at(Ge)&&this.at(Ge).patchValue(U,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(v=[],b={}){this._forEachChild((U,Ge)=>{U.reset(v[Ge],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this.controls.map(v=>v instanceof et?v.value:v.getRawValue())}clear(v={}){this.controls.length<1||(this._forEachChild(b=>b._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:v.emitEvent}))}_syncPendingControls(){let v=this.controls.reduce((b,U)=>!!U._syncPendingControls()||b,!1);return v&&this.updateValueAndValidity({onlySelf:!0}),v}_throwIfControlMissing(v){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(v))throw new Error(`Cannot find form control at index ${v}`)}_forEachChild(v){this.controls.forEach((b,U)=>{v(b,U)})}_updateValue(){this.value=this.controls.filter(v=>v.enabled||this.disabled).map(v=>v.value)}_anyControls(v){return this.controls.some(b=>b.enabled&&v(b))}_setUpControls(){this._forEachChild(v=>this._registerControl(v))}_checkAllValuesPresent(v){this._forEachChild((b,U)=>{if(void 0===v[U])throw new Error(`Must supply a value for form control at index: ${U}.`)})}_allControlsDisabled(){for(const v of this.controls)if(v.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(v){v.setParent(this),v._registerOnCollectionChange(this._onCollectionChange)}}const ee={provide:ke,useExisting:(0,o.forwardRef)(()=>ve)},J=(()=>Promise.resolve(null))();let ve=(()=>{class m extends ke{constructor(b,U){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new o.EventEmitter,this.form=new ft({},rt(b),It(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(b){J.then(()=>{const U=this._findContainer(b.path);b.control=U.registerControl(b.name,b.control),xt(b.control,b),b.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(b)})}getControl(b){return this.form.get(b.path)}removeControl(b){J.then(()=>{const U=this._findContainer(b.path);U&&U.removeControl(b.name),ie(this._directives,b)})}addFormGroup(b){J.then(()=>{const U=this._findContainer(b.path),Ge=new ft({});V(Ge,b),U.registerControl(b.name,Ge),Ge.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(b){J.then(()=>{const U=this._findContainer(b.path);U&&U.removeControl(b.name)})}getFormGroup(b){return this.form.get(b.path)}updateModel(b,U){J.then(()=>{this.form.get(b.path).setValue(U)})}setValue(b){this.control.setValue(b)}onSubmit(b){return this.submitted=!0,Z(this.form,this._directives),this.ngSubmit.emit(b),!1}onReset(){this.resetForm()}resetForm(b){this.form.reset(b),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(b){return b.pop(),b.length?this.form.get(b):this.form}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(le,10),o.\u0275\u0275directiveInject(Ce,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("submit",function(St){return U.onSubmit(St)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([ee]),o.\u0275\u0275InheritDefinitionFeature]}),m})(),We=(()=>{class m extends ke{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Et(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();const me={provide:ke,useExisting:(0,o.forwardRef)(()=>Ve)};let Ve=(()=>{class m extends We{constructor(b,U,Ge){super(),this._parent=b,this._setValidators(U),this._setAsyncValidators(Ge)}_checkParentType(){}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(ke,5),o.\u0275\u0275directiveInject(le,10),o.\u0275\u0275directiveInject(Ce,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[o.\u0275\u0275ProvidersFeature([me]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const at={provide:ot,useExisting:(0,o.forwardRef)(()=>qt)},$t=(()=>Promise.resolve(null))();let qt=(()=>{class m extends ot{constructor(b,U,Ge,St){super(),this.control=new et,this._registered=!1,this.update=new o.EventEmitter,this._parent=b,this._setValidators(U),this._setAsyncValidators(Ge),this.valueAccessor=N(0,St)}ngOnChanges(b){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in b&&this._updateDisabled(b),Ee(b,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Et(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){xt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(b){$t.then(()=>{this.control.setValue(b,{emitViewToModelChange:!1})})}_updateDisabled(b){const U=b.isDisabled.currentValue,Ge=""===U||U&&"false"!==U;$t.then(()=>{Ge&&!this.control.disabled?this.control.disable():!Ge&&this.control.disabled&&this.control.enable()})}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(ke,9),o.\u0275\u0275directiveInject(le,10),o.\u0275\u0275directiveInject(Ce,10),o.\u0275\u0275directiveInject(D,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o.\u0275\u0275ProvidersFeature([at]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})(),Wt=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),m})();const Mn={provide:D,useExisting:(0,o.forwardRef)(()=>gi),multi:!0};let gi=(()=>{class m extends w{writeValue(b){this.setProperty("value",null==b?"":b)}registerOnChange(b){this.onChange=U=>{b(""==U?null:parseFloat(U))}}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("input",function(St){return U.onChange(St.target.value)})("blur",function(){return U.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([Mn]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const bi={provide:D,useExisting:(0,o.forwardRef)(()=>ei),multi:!0};let qn=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({}),m})(),_i=(()=>{class m{constructor(){this._accessors=[]}add(b,U){this._accessors.push([b,U])}remove(b){for(let U=this._accessors.length-1;U>=0;--U)if(this._accessors[U][1]===b)return void this._accessors.splice(U,1)}select(b){this._accessors.forEach(U=>{this._isSameGroup(U,b)&&U[1]!==b&&U[1].fireUncheck(b.value)})}_isSameGroup(b,U){return!!b[0].control&&b[0]._parent===U._control._parent&&b[1].name===U.name}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:function(){return new m},token:m,providedIn:qn}),m})(),ei=(()=>{class m extends w{constructor(b,U,Ge,St){super(b,U),this._registry=Ge,this._injector=St,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(ot),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(b){this._state=b===this.value,this.setProperty("checked",this._state)}registerOnChange(b){this._fn=b,this.onChange=()=>{b(this.value),this._registry.select(this)}}fireUncheck(b){this.writeValue(b)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(_i),o.\u0275\u0275directiveInject(o.Injector))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(){return U.onChange()})("blur",function(){return U.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[o.\u0275\u0275ProvidersFeature([bi]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const xn={provide:D,useExisting:(0,o.forwardRef)(()=>Xi),multi:!0};let Xi=(()=>{class m extends w{writeValue(b){this.setProperty("value",parseFloat(b))}registerOnChange(b){this.onChange=U=>{b(""==U?null:parseFloat(U))}}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target.value)})("input",function(St){return U.onChange(St.target.value)})("blur",function(){return U.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([xn]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const ti=new o.InjectionToken("NgModelWithFormControlWarning"),Cn={provide:ot,useExisting:(0,o.forwardRef)(()=>Ci)};let Ci=(()=>{class m extends ot{constructor(b,U,Ge,St){super(),this._ngModelWarningConfig=St,this.update=new o.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(b),this._setAsyncValidators(U),this.valueAccessor=N(0,Ge)}set isDisabled(b){}ngOnChanges(b){if(this._isControlChanged(b)){const U=b.form.previousValue;U&&Nt(U,this,!1),xt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ee(b,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Nt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}_isControlChanged(b){return b.hasOwnProperty("form")}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(le,10),o.\u0275\u0275directiveInject(Ce,10),o.\u0275\u0275directiveInject(D,10),o.\u0275\u0275directiveInject(ti,8))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([Cn]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m._ngModelWarningSentOnce=!1,m})();const ci={provide:ke,useExisting:(0,o.forwardRef)(()=>ui)};let ui=(()=>{class m extends ke{constructor(b,U){super(),this.validators=b,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new o.EventEmitter,this._setValidators(b),this._setAsyncValidators(U)}ngOnChanges(b){this._checkFormPresent(),b.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Lt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(b){const U=this.form.get(b.path);return xt(U,b),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(b),U}getControl(b){return this.form.get(b.path)}removeControl(b){Nt(b.control||null,b,!1),ie(this.directives,b)}addFormGroup(b){this._setUpFormContainer(b)}removeFormGroup(b){this._cleanUpFormContainer(b)}getFormGroup(b){return this.form.get(b.path)}addFormArray(b){this._setUpFormContainer(b)}removeFormArray(b){this._cleanUpFormContainer(b)}getFormArray(b){return this.form.get(b.path)}updateModel(b,U){this.form.get(b.path).setValue(U)}onSubmit(b){return this.submitted=!0,Z(this.form,this.directives),this.ngSubmit.emit(b),!1}onReset(){this.resetForm()}resetForm(b){this.form.reset(b),this.submitted=!1}_updateDomValue(){this.directives.forEach(b=>{const U=b.control,Ge=this.form.get(b.path);U!==Ge&&(Nt(U||null,b),Ge instanceof et&&(xt(Ge,b),b.control=Ge))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(b){const U=this.form.get(b.path);V(U,b),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(b){if(this.form){const U=this.form.get(b.path);U&&function(m,v){return Lt(m,v)}(U,b)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){At(this.form,this),this._oldForm&&Lt(this._oldForm,this)}_checkFormPresent(){}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(le,10),o.\u0275\u0275directiveInject(Ce,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formGroup",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("submit",function(St){return U.onSubmit(St)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([ci]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})();const ni={provide:ke,useExisting:(0,o.forwardRef)(()=>Un)};let Un=(()=>{class m extends We{constructor(b,U,Ge){super(),this._parent=b,this._setValidators(U),this._setAsyncValidators(Ge)}_checkParentType(){qr(this._parent)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(ke,13),o.\u0275\u0275directiveInject(le,10),o.\u0275\u0275directiveInject(Ce,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[o.\u0275\u0275ProvidersFeature([ni]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const kr={provide:ke,useExisting:(0,o.forwardRef)(()=>mr)};let mr=(()=>{class m extends ke{constructor(b,U,Ge){super(),this._parent=b,this._setValidators(U),this._setAsyncValidators(Ge)}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 Et(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){qr(this._parent)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(ke,13),o.\u0275\u0275directiveInject(le,10),o.\u0275\u0275directiveInject(Ce,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[o.\u0275\u0275ProvidersFeature([kr]),o.\u0275\u0275InheritDefinitionFeature]}),m})();function qr(m){return!(m instanceof Un||m instanceof ui||m instanceof mr)}const gr={provide:ot,useExisting:(0,o.forwardRef)(()=>Fr)};let Fr=(()=>{class m extends ot{constructor(b,U,Ge,St,Zt){super(),this._ngModelWarningConfig=Zt,this._added=!1,this.update=new o.EventEmitter,this._ngModelWarningSent=!1,this._parent=b,this._setValidators(U),this._setAsyncValidators(Ge),this.valueAccessor=N(0,St)}set isDisabled(b){}ngOnChanges(b){this._added||this._setUpControl(),Ee(b,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}get path(){return Et(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 m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(ke,13),o.\u0275\u0275directiveInject(le,10),o.\u0275\u0275directiveInject(Ce,10),o.\u0275\u0275directiveInject(D,10),o.\u0275\u0275directiveInject(ti,8))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[o.\u0275\u0275ProvidersFeature([gr]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m._ngModelWarningSentOnce=!1,m})();const Nr={provide:D,useExisting:(0,o.forwardRef)(()=>Di),multi:!0};function eo(m,v){return null==m?`${v}`:(v&&"object"==typeof v&&(v="Object"),`${m}: ${v}`.slice(0,50))}let Di=(()=>{class m extends w{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(b){this._compareWith=b}writeValue(b){this.value=b;const U=this._getOptionId(b);null==U&&this.setProperty("selectedIndex",-1);const Ge=eo(U,b);this.setProperty("value",Ge)}registerOnChange(b){this.onChange=U=>{this.value=this._getOptionValue(U),b(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(b){for(const U of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(U),b))return U;return null}_getOptionValue(b){const U=function(m){return m.split(":")[0]}(b);return this._optionMap.has(U)?this._optionMap.get(U):b}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target.value)})("blur",function(){return U.onTouched()})},inputs:{compareWith:"compareWith"},features:[o.\u0275\u0275ProvidersFeature([Nr]),o.\u0275\u0275InheritDefinitionFeature]}),m})(),po=(()=>{class m{constructor(b,U,Ge){this._element=b,this._renderer=U,this._select=Ge,this._select&&(this.id=this._select._registerOption())}set ngValue(b){null!=this._select&&(this._select._optionMap.set(this.id,b),this._setElementValue(eo(this.id,b)),this._select.writeValue(this._select.value))}set value(b){this._setElementValue(b),this._select&&this._select.writeValue(this._select.value)}_setElementValue(b){this._renderer.setProperty(this._element.nativeElement,"value",b)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(Di,9))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),m})();const ii={provide:D,useExisting:(0,o.forwardRef)(()=>_r),multi:!0};function Ti(m,v){return null==m?`${v}`:("string"==typeof v&&(v=`'${v}'`),v&&"object"==typeof v&&(v="Object"),`${m}: ${v}`.slice(0,50))}let _r=(()=>{class m extends w{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(b){this._compareWith=b}writeValue(b){let U;if(this.value=b,Array.isArray(b)){const Ge=b.map(St=>this._getOptionId(St));U=(St,Zt)=>{St._setSelected(Ge.indexOf(Zt.toString())>-1)}}else U=(Ge,St)=>{Ge._setSelected(!1)};this._optionMap.forEach(U)}registerOnChange(b){this.onChange=U=>{const Ge=[];if(void 0!==U.selectedOptions){const St=U.selectedOptions;for(let Zt=0;Zt<St.length;Zt++){const fn=St.item(Zt),rn=this._getOptionValue(fn.value);Ge.push(rn)}}else{const St=U.options;for(let Zt=0;Zt<St.length;Zt++){const fn=St.item(Zt);if(fn.selected){const rn=this._getOptionValue(fn.value);Ge.push(rn)}}}this.value=Ge,b(Ge)}}_registerOption(b){const U=(this._idCounter++).toString();return this._optionMap.set(U,b),U}_getOptionId(b){for(const U of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(U)._value,b))return U;return null}_getOptionValue(b){const U=function(m){return m.split(":")[0]}(b);return this._optionMap.has(U)?this._optionMap.get(U)._value:b}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target)})("blur",function(){return U.onTouched()})},inputs:{compareWith:"compareWith"},features:[o.\u0275\u0275ProvidersFeature([ii]),o.\u0275\u0275InheritDefinitionFeature]}),m})(),Lr=(()=>{class m{constructor(b,U,Ge){this._element=b,this._renderer=U,this._select=Ge,this._select&&(this.id=this._select._registerOption(this))}set ngValue(b){null!=this._select&&(this._value=b,this._setElementValue(Ti(this.id,b)),this._select.writeValue(this._select.value))}set value(b){this._select?(this._value=b,this._setElementValue(Ti(this.id,b)),this._select.writeValue(this._select.value)):this._setElementValue(b)}_setElementValue(b){this._renderer.setProperty(this._element.nativeElement,"value",b)}_setSelected(b){this._renderer.setProperty(this._element.nativeElement,"selected",b)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(_r,9))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),m})();function jr(m){return"number"==typeof m?m:parseInt(m,10)}let wi=(()=>{class m{constructor(){this._validator=_e}handleChanges(b){if(this.inputName in b){const U=this.normalizeInput(b[this.inputName].currentValue);this._validator=this.createValidator(U),this._onChange&&this._onChange()}}validate(b){return this._validator(b)}registerOnValidatorChange(b){this._onChange=b}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m}),m})();const Li={provide:le,useExisting:(0,o.forwardRef)(()=>Br),multi:!0};let Br=(()=>{class m extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=b=>parseFloat(b),this.createValidator=b=>Me(b)}ngOnChanges(b){this.handleChanges(b)}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(b,U){if(2&b){let Ge;o.\u0275\u0275attribute("max",null!==(Ge=U.max)&&void 0!==Ge?Ge:null)}},inputs:{max:"max"},features:[o.\u0275\u0275ProvidersFeature([Li]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})();const qi={provide:le,useExisting:(0,o.forwardRef)(()=>yr),multi:!0};let yr=(()=>{class m extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=b=>parseFloat(b),this.createValidator=b=>Ye(b)}ngOnChanges(b){this.handleChanges(b)}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(b,U){if(2&b){let Ge;o.\u0275\u0275attribute("min",null!==(Ge=U.min)&&void 0!==Ge?Ge:null)}},inputs:{min:"min"},features:[o.\u0275\u0275ProvidersFeature([qi]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})();const yi={provide:le,useExisting:(0,o.forwardRef)(()=>Mi),multi:!0},er={provide:le,useExisting:(0,o.forwardRef)(()=>ji),multi:!0};let Mi=(()=>{class m{constructor(){this._required=!1}get required(){return this._required}set required(b){this._required=null!=b&&!1!==b&&"false"!=`${b}`,this._onChange&&this._onChange()}validate(b){return this.required?Oe(b):null}registerOnValidatorChange(b){this._onChange=b}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("required",U.required?"":null)},inputs:{required:"required"},features:[o.\u0275\u0275ProvidersFeature([yi])]}),m})(),ji=(()=>{class m extends Mi{validate(b){return this.required?Pe(b):null}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("required",U.required?"":null)},features:[o.\u0275\u0275ProvidersFeature([er]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const Vr={provide:le,useExisting:(0,o.forwardRef)(()=>tr),multi:!0};let tr=(()=>{class m{constructor(){this._enabled=!1}set email(b){this._enabled=""===b||!0===b||"true"===b,this._onChange&&this._onChange()}validate(b){return this._enabled?de(b):null}registerOnValidatorChange(b){this._onChange=b}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[o.\u0275\u0275ProvidersFeature([Vr])]}),m})();const vr={provide:le,useExisting:(0,o.forwardRef)(()=>br),multi:!0};let br=(()=>{class m{constructor(){this._validator=_e}ngOnChanges(b){"minlength"in b&&(this._createValidator(),this._onChange&&this._onChange())}validate(b){return this.enabled()?this._validator(b):null}registerOnValidatorChange(b){this._onChange=b}_createValidator(){this._validator=this.enabled()?qe(jr(this.minlength)):_e}enabled(){return null!=this.minlength}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("minlength",U.enabled()?U.minlength:null)},inputs:{minlength:"minlength"},features:[o.\u0275\u0275ProvidersFeature([vr]),o.\u0275\u0275NgOnChangesFeature]}),m})();const Hr={provide:le,useExisting:(0,o.forwardRef)(()=>Si),multi:!0};let Si=(()=>{class m{constructor(){this._validator=_e}ngOnChanges(b){"maxlength"in b&&(this._createValidator(),this._onChange&&this._onChange())}validate(b){return this.enabled()?this._validator(b):null}registerOnValidatorChange(b){this._onChange=b}_createValidator(){this._validator=this.enabled()?Y(jr(this.maxlength)):_e}enabled(){return null!=this.maxlength}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("maxlength",U.enabled()?U.maxlength:null)},inputs:{maxlength:"maxlength"},features:[o.\u0275\u0275ProvidersFeature([Hr]),o.\u0275\u0275NgOnChangesFeature]}),m})();const $r={provide:le,useExisting:(0,o.forwardRef)(()=>Rn),multi:!0};let Rn=(()=>{class m{constructor(){this._validator=_e}ngOnChanges(b){"pattern"in b&&(this._createValidator(),this._onChange&&this._onChange())}validate(b){return this._validator(b)}registerOnValidatorChange(b){this._onChange=b}_createValidator(){this._validator=se(this.pattern)}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("pattern",U.pattern?U.pattern:null)},inputs:{pattern:"pattern"},features:[o.\u0275\u0275ProvidersFeature([$r]),o.\u0275\u0275NgOnChangesFeature]}),m})();const Cr=[Wt,po,Lr,B,gi,Xi,E,Di,_r,ei,He,q,Mi,br,Si,Rn,ji,tr,yr,Br],no=[qt,Ve,ve],Er=[Ci,ui,Fr,Un,mr];let Dr=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({imports:[[qn]]}),m})(),Tr=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({imports:[Dr]}),m})(),go=(()=>{class m{static withConfig(b){return{ngModule:m,providers:[{provide:ti,useValue:b.warnOnNgModelWithFormControl}]}}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({imports:[Dr]}),m})(),te=(()=>{class m{group(b,U=null){const Ge=this._reduceControls(b);let fn,St=null,Zt=null;return null!=U&&(function(m){return void 0!==m.asyncValidators||void 0!==m.validators||void 0!==m.updateOn}(U)?(St=null!=U.validators?U.validators:null,Zt=null!=U.asyncValidators?U.asyncValidators:null,fn=null!=U.updateOn?U.updateOn:void 0):(St=null!=U.validator?U.validator:null,Zt=null!=U.asyncValidator?U.asyncValidator:null)),new ft(Ge,{asyncValidators:Zt,updateOn:fn,validators:St})}control(b,U,Ge){return new et(b,U,Ge)}array(b,U,Ge){const St=b.map(Zt=>this._createControl(Zt));return new Rt(St,U,Ge)}_reduceControls(b){const U={};return Object.keys(b).forEach(Ge=>{U[Ge]=this._createControl(b[Ge])}),U}_createControl(b){return b instanceof et||b instanceof ft||b instanceof Rt?b:Array.isArray(b)?this.control(b[0],b.length>1?b[1]:null,b.length>2?b[2]:null):this.control(b)}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:function(){return new m},token:m,providedIn:go}),m})();const k=new o.Version("12.2.13")},1095:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{MatAnchor:()=>S,MatButton:()=>M,MatButtonModule:()=>P});var o=d(2458),l=d(6237),f=d(7716),_=d(9238);const a=["mat-button",""],C=["*"],w=".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;-ms-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;-ms-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;-ms-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;-ms-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",g=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],E=(0,o.pj)((0,o.Id)((0,o.Kr)(class{constructor(B){this._elementRef=B}})));let M=(()=>{class B extends E{constructor(oe,le,Ce){super(oe),this._focusMonitor=le,this._animationMode=Ce,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const $e of g)this._hasHostAttributes($e)&&this._getHostElement().classList.add($e);oe.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(oe,le){oe?this._focusMonitor.focusVia(this._getHostElement(),oe,le):this._getHostElement().focus(le)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...oe){return oe.some(le=>this._getHostElement().hasAttribute(le))}}return B.\u0275fac=function(oe){return new(oe||B)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(_.tE),f.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},B.\u0275cmp=f.\u0275\u0275defineComponent({type:B,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(oe,le){if(1&oe&&f.\u0275\u0275viewQuery(o.wG,5),2&oe){let Ce;f.\u0275\u0275queryRefresh(Ce=f.\u0275\u0275loadQuery())&&(le.ripple=Ce.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(oe,le){2&oe&&(f.\u0275\u0275attribute("disabled",le.disabled||null),f.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===le._animationMode)("mat-button-disabled",le.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[f.\u0275\u0275InheritDefinitionFeature],attrs:a,ngContentSelectors:C,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(oe,le){1&oe&&(f.\u0275\u0275projectionDef(),f.\u0275\u0275elementStart(0,"span",0),f.\u0275\u0275projection(1),f.\u0275\u0275elementEnd(),f.\u0275\u0275element(2,"span",1),f.\u0275\u0275element(3,"span",2)),2&oe&&(f.\u0275\u0275advance(2),f.\u0275\u0275classProp("mat-button-ripple-round",le.isRoundButton||le.isIconButton),f.\u0275\u0275property("matRippleDisabled",le._isRippleDisabled())("matRippleCentered",le.isIconButton)("matRippleTrigger",le._getHostElement()))},directives:[o.wG],styles:[w],encapsulation:2,changeDetection:0}),B})(),S=(()=>{class B extends M{constructor(oe,le,Ce){super(le,oe,Ce)}_haltDisabledEvents(oe){this.disabled&&(oe.preventDefault(),oe.stopImmediatePropagation())}}return B.\u0275fac=function(oe){return new(oe||B)(f.\u0275\u0275directiveInject(_.tE),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},B.\u0275cmp=f.\u0275\u0275defineComponent({type:B,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(oe,le){1&oe&&f.\u0275\u0275listener("click",function($e){return le._haltDisabledEvents($e)}),2&oe&&(f.\u0275\u0275attribute("tabindex",le.disabled?-1:le.tabIndex||0)("disabled",le.disabled||null)("aria-disabled",le.disabled.toString()),f.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===le._animationMode)("mat-button-disabled",le.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[f.\u0275\u0275InheritDefinitionFeature],attrs:a,ngContentSelectors:C,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(oe,le){1&oe&&(f.\u0275\u0275projectionDef(),f.\u0275\u0275elementStart(0,"span",0),f.\u0275\u0275projection(1),f.\u0275\u0275elementEnd(),f.\u0275\u0275element(2,"span",1),f.\u0275\u0275element(3,"span",2)),2&oe&&(f.\u0275\u0275advance(2),f.\u0275\u0275classProp("mat-button-ripple-round",le.isRoundButton||le.isIconButton),f.\u0275\u0275property("matRippleDisabled",le._isRippleDisabled())("matRippleCentered",le.isIconButton)("matRippleTrigger",le._getHostElement()))},directives:[o.wG],styles:[w],encapsulation:2,changeDetection:0}),B})(),P=(()=>{class B{}return B.\u0275fac=function(oe){return new(oe||B)},B.\u0275mod=f.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=f.\u0275\u0275defineInjector({imports:[[o.si,o.BQ],o.BQ]}),B})()},2675:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_CHIPS_DEFAULT_OPTIONS:()=>Lt,MAT_CHIP_AVATAR:()=>Le,MAT_CHIP_REMOVE:()=>ne,MAT_CHIP_TRAILING_ICON:()=>gt,MatChip:()=>Qt,MatChipAvatar:()=>Nt,MatChipInput:()=>K,MatChipList:()=>Pt,MatChipListChange:()=>Xe,MatChipRemove:()=>At,MatChipSelectionChange:()=>z,MatChipTrailingIcon:()=>Ut,MatChipsModule:()=>Ee,\u02750:()=>De});var o=d(6461),l=d(7716),f=d(2458),_=d(9490),a=d(8583),C=d(6237),w=d(9765),D=d(6682),g=d(5257),E=d(6782),M=d(9761),S=d(9238),P=d(8345),le=(d(8553),d(2759),d(7238),d(946)),Ce=d(521);let Ze=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q}),Q})();var R=d(3679);const he=["*"];class z{constructor(Z,N,ie=!1){this.source=Z,this.selected=N,this.isUserInput=ie}}const ne=new l.InjectionToken("MatChipRemove"),Le=new l.InjectionToken("MatChipAvatar"),gt=new l.InjectionToken("MatChipTrailingIcon");class Et{constructor(Z){this._elementRef=Z}}const xt=(0,f.sb)((0,f.pj)((0,f.Kr)(Et),"primary"),-1);let Nt=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[l.\u0275\u0275ProvidersFeature([{provide:Le,useExisting:Q}])]}),Q})(),Ut=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[l.\u0275\u0275ProvidersFeature([{provide:gt,useExisting:Q}])]}),Q})(),Qt=(()=>{class Q extends xt{constructor(N,ie,it,_t,Ht,dn,cn,an){super(N),this._ngZone=ie,this._changeDetectorRef=Ht,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 w.xQ,this._onBlur=new w.xQ,this.selectionChange=new l.EventEmitter,this.destroyed=new l.EventEmitter,this.removed=new l.EventEmitter,this._addHostClassName(),this._chipRippleTarget=dn.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new f.IR(this,ie,this._chipRippleTarget,it),this._chipRipple.setupTriggerEvents(N),this.rippleConfig=_t||{},this._animationsDisabled="NoopAnimations"===cn,this.tabIndex=null!=an&&parseInt(an)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(N){const ie=(0,_.Ig)(N);ie!==this._selected&&(this._selected=ie,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(N){this._value=N}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(N){this._selectable=(0,_.Ig)(N)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(N){this._disabled=(0,_.Ig)(N)}get removable(){return this._removable}set removable(N){this._removable=(0,_.Ig)(N)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const N="mat-basic-chip",ie=this._elementRef.nativeElement;ie.hasAttribute(N)||ie.tagName.toLowerCase()===N?ie.classList.add(N):ie.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(N=!1){return this._selected=!this.selected,this._dispatchSelectionChange(N),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(N){this.disabled?N.preventDefault():N.stopPropagation()}_handleKeydown(N){if(!this.disabled)switch(N.keyCode){case o.yY:case o.ZH:this.remove(),N.preventDefault();break;case o.L_:this.selectable&&this.toggleSelected(!0),N.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(N=!1){this.selectionChange.emit({source:this,isUserInput:N,selected:this._selected})}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(Ce.t4),l.\u0275\u0275directiveInject(f.Y2,8),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(a.DOCUMENT),l.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8),l.\u0275\u0275injectAttribute("tabindex"))},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(N,ie,it){if(1&N&&(l.\u0275\u0275contentQuery(it,Le,5),l.\u0275\u0275contentQuery(it,gt,5),l.\u0275\u0275contentQuery(it,ne,5)),2&N){let _t;l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(ie.avatar=_t.first),l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(ie.trailingIcon=_t.first),l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(ie.removeIcon=_t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(N,ie){1&N&&l.\u0275\u0275listener("click",function(_t){return ie._handleClick(_t)})("keydown",function(_t){return ie._handleKeydown(_t)})("focus",function(){return ie.focus()})("blur",function(){return ie._blur()}),2&N&&(l.\u0275\u0275attribute("tabindex",ie.disabled?null:ie.tabIndex)("disabled",ie.disabled||null)("aria-disabled",ie.disabled.toString())("aria-selected",ie.ariaSelected),l.\u0275\u0275classProp("mat-chip-selected",ie.selected)("mat-chip-with-avatar",ie.avatar)("mat-chip-with-trailing-icon",ie.trailingIcon||ie.removeIcon)("mat-chip-disabled",ie.disabled)("_mat-animation-noopable",ie._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:[l.\u0275\u0275InheritDefinitionFeature]}),Q})(),At=(()=>{class Q{constructor(N,ie){this._parentChip=N,"BUTTON"===ie.nativeElement.nodeName&&ie.nativeElement.setAttribute("type","button")}_handleClick(N){const ie=this._parentChip;ie.removable&&!ie.disabled&&ie.remove(),N.stopPropagation()}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(Qt),l.\u0275\u0275directiveInject(l.ElementRef))},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(N,ie){1&N&&l.\u0275\u0275listener("click",function(_t){return ie._handleClick(_t)})},features:[l.\u0275\u0275ProvidersFeature([{provide:ne,useExisting:Q}])]}),Q})();const Lt=new l.InjectionToken("mat-chips-default-options"),jt=(0,f.FD)(class{constructor(Q,Z,N,ie){this._defaultErrorStateMatcher=Q,this._parentForm=Z,this._parentFormGroup=N,this.ngControl=ie}});let _n=0;class Xe{constructor(Z,N){this.source=Z,this.value=N}}let Pt=(()=>{class Q extends jt{constructor(N,ie,it,_t,Ht,dn,cn){super(dn,_t,Ht,cn),this._elementRef=N,this._changeDetectorRef=ie,this._dir=it,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new w.xQ,this._uid="mat-chip-list-"+_n++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(an,un)=>an===un,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new l.EventEmitter,this.valueChange=new l.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var N,ie;return this.multiple?(null===(N=this._selectionModel)||void 0===N?void 0:N.selected)||[]:null===(ie=this._selectionModel)||void 0===ie?void 0:ie.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(N){this._multiple=(0,_.Ig)(N),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(N){this._compareWith=N,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(N){this.writeValue(N),this._value=N}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(N){this._required=(0,_.Ig)(N),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(N){this._placeholder=N,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(N){this._disabled=(0,_.Ig)(N),this._syncChipsState()}get selectable(){return this._selectable}set selectable(N){this._selectable=(0,_.Ig)(N),this.chips&&this.chips.forEach(ie=>ie.chipListSelectable=this._selectable)}set tabIndex(N){this._userTabIndex=N,this._tabIndex=N}get chipSelectionChanges(){return(0,D.T)(...this.chips.map(N=>N.selectionChange))}get chipFocusChanges(){return(0,D.T)(...this.chips.map(N=>N._onFocus))}get chipBlurChanges(){return(0,D.T)(...this.chips.map(N=>N._onBlur))}get chipRemoveChanges(){return(0,D.T)(...this.chips.map(N=>N.destroyed))}ngAfterContentInit(){this._keyManager=new S.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,E.R)(this._destroyed)).subscribe(N=>this._keyManager.withHorizontalOrientation(N)),this._keyManager.tabOut.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,M.O)(null),(0,E.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 P.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(N){this._chipInput=N,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",N.id)}setDescribedByIds(N){this._ariaDescribedby=N.join(" ")}writeValue(N){this.chips&&this._setSelectionByValue(N,!1)}registerOnChange(N){this._onChange=N}registerOnTouched(N){this._onTouched=N}setDisabledState(N){this.disabled=N,this.stateChanges.next()}onContainerClick(N){this._originatesFromChip(N)||this.focus()}focus(N){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(N),this.stateChanges.next()))}_focusInput(N){this._chipInput&&this._chipInput.focus(N)}_keydown(N){const ie=N.target;ie&&ie.classList.contains("mat-chip")&&(this._keyManager.onKeydown(N),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const N=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(N)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(N){return N>=0&&N<this.chips.length}_setSelectionByValue(N,ie=!0){if(this._clearSelection(),this.chips.forEach(it=>it.deselect()),Array.isArray(N))N.forEach(it=>this._selectValue(it,ie)),this._sortValues();else{const it=this._selectValue(N,ie);it&&ie&&this._keyManager.setActiveItem(it)}}_selectValue(N,ie=!0){const it=this.chips.find(_t=>null!=_t.value&&this._compareWith(_t.value,N));return it&&(ie?it.selectViaInteraction():it.select(),this._selectionModel.select(it)),it}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(N){this._selectionModel.clear(),this.chips.forEach(ie=>{ie!==N&&ie.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(N=>{N.selected&&this._selectionModel.select(N)}),this.stateChanges.next())}_propagateChanges(N){let ie=null;ie=Array.isArray(this.selected)?this.selected.map(it=>it.value):this.selected?this.selected.value:N,this._value=ie,this.change.emit(new Xe(this,ie)),this.valueChange.emit(ie),this._onChange(ie),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(N=>{N.source.selected?this._selectionModel.select(N.source):this._selectionModel.deselect(N.source),this.multiple||this.chips.forEach(ie=>{!this._selectionModel.isSelected(ie)&&ie.selected&&ie.deselect()}),N.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(N=>{let ie=this.chips.toArray().indexOf(N.chip);this._isValidIndex(ie)&&this._keyManager.updateActiveItem(ie),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(N=>{const ie=N.chip,it=this.chips.toArray().indexOf(N.chip);this._isValidIndex(it)&&ie._hasFocus&&(this._lastDestroyedChipIndex=it)})}_originatesFromChip(N){let ie=N.target;for(;ie&&ie!==this._elementRef.nativeElement;){if(ie.classList.contains("mat-chip"))return!0;ie=ie.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(N=>N._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(N=>{N._chipListDisabled=this._disabled,N._chipListMultiple=this.multiple})}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(le.Is,8),l.\u0275\u0275directiveInject(R.NgForm,8),l.\u0275\u0275directiveInject(R.FormGroupDirective,8),l.\u0275\u0275directiveInject(f.rD),l.\u0275\u0275directiveInject(R.NgControl,10))},Q.\u0275cmp=l.\u0275\u0275defineComponent({type:Q,selectors:[["mat-chip-list"]],contentQueries:function(N,ie,it){if(1&N&&l.\u0275\u0275contentQuery(it,Qt,5),2&N){let _t;l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(ie.chips=_t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(N,ie){1&N&&l.\u0275\u0275listener("focus",function(){return ie.focus()})("blur",function(){return ie._blur()})("keydown",function(_t){return ie._keydown(_t)}),2&N&&(l.\u0275\u0275hostProperty("id",ie._uid),l.\u0275\u0275attribute("tabindex",ie.disabled?null:ie._tabIndex)("aria-describedby",ie._ariaDescribedby||null)("aria-required",ie.role?ie.required:null)("aria-disabled",ie.disabled.toString())("aria-invalid",ie.errorState)("aria-multiselectable",ie.multiple)("role",ie.role)("aria-orientation",ie.ariaOrientation),l.\u0275\u0275classProp("mat-chip-list-disabled",ie.disabled)("mat-chip-list-invalid",ie.errorState)("mat-chip-list-required",ie.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[l.\u0275\u0275ProvidersFeature([{provide:Ze,useExisting:Q}]),l.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:he,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(N,ie){1&N&&(l.\u0275\u0275projectionDef(),l.\u0275\u0275elementStart(0,"div",0),l.\u0275\u0275projection(1),l.\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}.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}),Q})(),V=0,K=(()=>{class Q{constructor(N,ie){this._elementRef=N,this._defaultOptions=ie,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new l.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+V++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(N){N&&(this._chipList=N,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(N){this._addOnBlur=(0,_.Ig)(N)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(N){this._disabled=(0,_.Ig)(N)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(N){if(N){if(N.keyCode===o.Mf&&!(0,o.Vb)(N,"shiftKey")&&this._chipList._allowFocusEscape(),N.keyCode===o.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void N.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(N)}_keyup(N){!this._focusLastChipOnBackspace&&N.keyCode===o.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,N.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(N){!this.inputElement.value&&!!N&&this._chipList._keydown(N),(!N||this._isSeparatorKey(N))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==N||N.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(N){this.inputElement.focus(N)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(N){return!(0,o.Vb)(N)&&new Set(this.separatorKeyCodes).has(N.keyCode)}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(Lt))},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(N,ie){1&N&&l.\u0275\u0275listener("keydown",function(_t){return ie._keydown(_t)})("keyup",function(_t){return ie._keyup(_t)})("blur",function(){return ie._blur()})("focus",function(){return ie._focus()})("input",function(){return ie._onInput()}),2&N&&(l.\u0275\u0275hostProperty("id",ie.id),l.\u0275\u0275attribute("disabled",ie.disabled||null)("placeholder",ie.placeholder||null)("aria-invalid",ie._chipList&&ie._chipList.ngControl?ie._chipList.ngControl.invalid:null)("aria-required",ie._chipList&&ie._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[l.\u0275\u0275NgOnChangesFeature]}),Q})();const De={separatorKeyCodes:[o.K5]};let Ee=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275mod=l.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=l.\u0275\u0275defineInjector({providers:[f.rD,{provide:Lt,useValue:De}],imports:[[f.BQ]]}),Q})()},2458:(Ne,T,d)=>{"use strict";d.d(T,{rD:()=>ae,Y2:()=>F,BQ:()=>Me,wG:()=>R,si:()=>he,IR:()=>vt,pj:()=>Pe,Kr:()=>de,Id:()=>Oe,FD:()=>Y,sb:()=>qe});var o=d(7716),l=d(9238),f=d(946);const _=new o.Version("12.2.13");var a=d(8583),C=d(521),w=d(9490),D=d(9765),g=d(6237);d(6461);const $e=new o.Version("12.2.13"),Ye=new o.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let st,Me=(()=>{class V{constructor(W,De,Ee){this._hasDoneGlobalChecks=!1,this._document=Ee,W._applyBodyHighContrastModeCssClasses(),this._sanityChecks=De,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(W){return!(!(0,o.isDevMode)()||(0,C.Oy)())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[W])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const W=this._document.createElement("div");W.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(W);const De=getComputedStyle(W);De&&"none"!==De.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(W)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&$e.full!==_.full&&console.warn("The Angular Material version ("+$e.full+") does not match the Angular CDK version ("+_.full+").\nPlease ensure the versions of these two packages exactly match.")}}return V.\u0275fac=function(W){return new(W||V)(o.\u0275\u0275inject(l.qm),o.\u0275\u0275inject(Ye,8),o.\u0275\u0275inject(a.DOCUMENT))},V.\u0275mod=o.\u0275\u0275defineNgModule({type:V}),V.\u0275inj=o.\u0275\u0275defineInjector({imports:[[f.vT],f.vT]}),V})();function Oe(V){return class extends V{constructor(...K){super(...K),this._disabled=!1}get disabled(){return this._disabled}set disabled(K){this._disabled=(0,w.Ig)(K)}}}function Pe(V,K){return class extends V{constructor(...W){super(...W),this.defaultColor=K,this.color=K}get color(){return this._color}set color(W){const De=W||this.defaultColor;De!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),De&&this._elementRef.nativeElement.classList.add(`mat-${De}`),this._color=De)}}}function de(V){return class extends V{constructor(...K){super(...K),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(K){this._disableRipple=(0,w.Ig)(K)}}}function qe(V,K=0){return class extends V{constructor(...W){super(...W),this._tabIndex=K,this.defaultTabIndex=K}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(W){this._tabIndex=null!=W?(0,w.su)(W):this.defaultTabIndex}}}function Y(V){return class extends V{constructor(...K){super(...K),this.stateChanges=new D.xQ,this.errorState=!1}updateErrorState(){const K=this.errorState,Q=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Q!==K&&(this.errorState=Q,this.stateChanges.next())}}}try{st="undefined"!=typeof Intl}catch(V){st=!1}let ae=(()=>{class V{isErrorState(W,De){return!!(W&&W.invalid&&(W.touched||De&&De.submitted))}}return V.\u0275fac=function(W){return new(W||V)},V.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new V},token:V,providedIn:"root"}),V})();class Je{constructor(K,W,De){this._renderer=K,this.element=W,this.config=De,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ue={enterDuration:225,exitDuration:150},q=(0,C.i$)({passive:!0}),Ke=["mousedown","touchstart"],pt=["mouseup","mouseleave","touchend","touchcancel"];class vt{constructor(K,W,De,Ee){this._target=K,this._ngZone=W,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Ee.isBrowser&&(this._containerElement=(0,w.fI)(De))}fadeInRipple(K,W,De={}){const Ee=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Q=Object.assign(Object.assign({},Ue),De.animation);De.centered&&(K=Ee.left+Ee.width/2,W=Ee.top+Ee.height/2);const Z=De.radius||function(V,K,W){const De=Math.max(Math.abs(V-W.left),Math.abs(V-W.right)),Ee=Math.max(Math.abs(K-W.top),Math.abs(K-W.bottom));return Math.sqrt(De*De+Ee*Ee)}(K,W,Ee),N=K-Ee.left,ie=W-Ee.top,it=Q.enterDuration,_t=document.createElement("div");_t.classList.add("mat-ripple-element"),_t.style.left=N-Z+"px",_t.style.top=ie-Z+"px",_t.style.height=2*Z+"px",_t.style.width=2*Z+"px",null!=De.color&&(_t.style.backgroundColor=De.color),_t.style.transitionDuration=`${it}ms`,this._containerElement.appendChild(_t),window.getComputedStyle(_t).getPropertyValue("opacity"),_t.style.transform="scale(1)";const Ht=new Je(this,_t,De);return Ht.state=0,this._activeRipples.add(Ht),De.persistent||(this._mostRecentTransientRipple=Ht),this._runTimeoutOutsideZone(()=>{const dn=Ht===this._mostRecentTransientRipple;Ht.state=1,!De.persistent&&(!dn||!this._isPointerDown)&&Ht.fadeOut()},it),Ht}fadeOutRipple(K){const W=this._activeRipples.delete(K);if(K===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!W)return;const De=K.element,Ee=Object.assign(Object.assign({},Ue),K.config.animation);De.style.transitionDuration=`${Ee.exitDuration}ms`,De.style.opacity="0",K.state=2,this._runTimeoutOutsideZone(()=>{K.state=3,De.parentNode.removeChild(De)},Ee.exitDuration)}fadeOutAll(){this._activeRipples.forEach(K=>K.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(K=>{K.config.persistent||K.fadeOut()})}setupTriggerEvents(K){const W=(0,w.fI)(K);!W||W===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=W,this._registerEvents(Ke))}handleEvent(K){"mousedown"===K.type?this._onMousedown(K):"touchstart"===K.type?this._onTouchStart(K):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(pt),this._pointerUpEventsRegistered=!0)}_onMousedown(K){const W=(0,l.X6)(K),De=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!W&&!De&&(this._isPointerDown=!0,this.fadeInRipple(K.clientX,K.clientY,this._target.rippleConfig))}_onTouchStart(K){if(!this._target.rippleDisabled&&!(0,l.yG)(K)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const W=K.changedTouches;for(let De=0;De<W.length;De++)this.fadeInRipple(W[De].clientX,W[De].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(K=>{!K.config.persistent&&(1===K.state||K.config.terminateOnPointerUp&&0===K.state)&&K.fadeOut()}))}_runTimeoutOutsideZone(K,W=0){this._ngZone.runOutsideAngular(()=>setTimeout(K,W))}_registerEvents(K){this._ngZone.runOutsideAngular(()=>{K.forEach(W=>{this._triggerElement.addEventListener(W,this,q)})})}_removeTriggerEvents(){this._triggerElement&&(Ke.forEach(K=>{this._triggerElement.removeEventListener(K,this,q)}),this._pointerUpEventsRegistered&&pt.forEach(K=>{this._triggerElement.removeEventListener(K,this,q)}))}}const F=new o.InjectionToken("mat-ripple-global-options");let R=(()=>{class V{constructor(W,De,Ee,Q,Z){this._elementRef=W,this._animationMode=Z,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Q||{},this._rippleRenderer=new vt(this,De,W,Ee)}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,De=0,Ee){return"number"==typeof W?this._rippleRenderer.fadeInRipple(W,De,Object.assign(Object.assign({},this.rippleConfig),Ee)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),W))}}return V.\u0275fac=function(W){return new(W||V)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(C.t4),o.\u0275\u0275directiveInject(F,8),o.\u0275\u0275directiveInject(g.ANIMATION_MODULE_TYPE,8))},V.\u0275dir=o.\u0275\u0275defineDirective({type:V,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(W,De){2&W&&o.\u0275\u0275classProp("mat-ripple-unbounded",De.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),V})(),he=(()=>{class V{}return V.\u0275fac=function(W){return new(W||V)},V.\u0275mod=o.\u0275\u0275defineNgModule({type:V}),V.\u0275inj=o.\u0275\u0275defineInjector({imports:[[Me,C.ud],Me]}),V})()},2238:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_DIALOG_DATA:()=>qe,MAT_DIALOG_DEFAULT_OPTIONS:()=>Y,MAT_DIALOG_SCROLL_STRATEGY:()=>se,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>_e,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>Be,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>fe,MatDialog:()=>st,MatDialogActions:()=>It,MatDialogClose:()=>je,MatDialogConfig:()=>Ce,MatDialogContainer:()=>Me,MatDialogContent:()=>ht,MatDialogModule:()=>dt,MatDialogRef:()=>Pe,MatDialogTitle:()=>rt,_MatDialogBase:()=>Fe,_MatDialogContainerBase:()=>Ye,_closeDialogVia:()=>de,matDialogAnimations:()=>$e,throwMatDialogContentAlreadyAttachedError:()=>lt});var o=d(625),l=d(7636),f=d(7716),_=d(2458),a=d(946),C=d(8583),w=d(9765),D=d(1439),g=d(5917),E=d(5435),M=d(5257),S=d(9761),P=d(521),B=d(7238),j=d(6461),oe=d(9238);function le($,re){}class Ce{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=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const $e={dialogContainer:(0,B.X$)("dialogContainer",[(0,B.SB)("void, exit",(0,B.oB)({opacity:0,transform:"scale(0.7)"})),(0,B.SB)("enter",(0,B.oB)({transform:"none"})),(0,B.eR)("* => enter",(0,B.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,B.oB)({transform:"none",opacity:1}))),(0,B.eR)("* => void, * => exit",(0,B.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,B.oB)({opacity:0})))])};function lt(){throw Error("Attempting to attach dialog content after content is already attached")}let Ye=(()=>{class $ extends l.en{constructor(L,ce,ae,pe,ke,ot){super(),this._elementRef=L,this._focusTrapFactory=ce,this._changeDetectorRef=ae,this._config=ke,this._focusMonitor=ot,this._animationStateChanged=new f.EventEmitter,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=wt=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(wt)),this._ariaLabelledBy=ke.ariaLabelledBy||null,this._document=pe}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(L){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(L)}attachTemplatePortal(L){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(L)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const L=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&L&&"function"==typeof L.focus){const ce=(0,P.ht)(),ae=this._elementRef.nativeElement;(!ce||ce===this._document.body||ce===ae||ae.contains(ce))&&(this._focusMonitor?(this._focusMonitor.focusVia(L,this._closeInteractionType),this._closeInteractionType=null):L.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,P.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const L=this._elementRef.nativeElement,ce=(0,P.ht)();return L===ce||L.contains(ce)}}return $.\u0275fac=function(L){return new(L||$)(f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(oe.qV),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(C.DOCUMENT,8),f.\u0275\u0275directiveInject(Ce),f.\u0275\u0275directiveInject(oe.tE))},$.\u0275dir=f.\u0275\u0275defineDirective({type:$,viewQuery:function(L,ce){if(1&L&&f.\u0275\u0275viewQuery(l.Pl,7),2&L){let ae;f.\u0275\u0275queryRefresh(ae=f.\u0275\u0275loadQuery())&&(ce._portalOutlet=ae.first)}},features:[f.\u0275\u0275InheritDefinitionFeature]}),$})(),Me=(()=>{class $ extends Ye{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:L,totalTime:ce}){"enter"===L?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:ce})):"exit"===L&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:ce}))}_onAnimationStart({toState:L,totalTime:ce}){"enter"===L?this._animationStateChanged.next({state:"opening",totalTime:ce}):("exit"===L||"void"===L)&&this._animationStateChanged.next({state:"closing",totalTime:ce})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return $.\u0275fac=function(){let re;return function(ce){return(re||(re=f.\u0275\u0275getInheritedFactory($)))(ce||$)}}(),$.\u0275cmp=f.\u0275\u0275defineComponent({type:$,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(L,ce){1&L&&f.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(pe){return ce._onAnimationStart(pe)})("@dialogContainer.done",function(pe){return ce._onAnimationDone(pe)}),2&L&&(f.\u0275\u0275hostProperty("id",ce._id),f.\u0275\u0275attribute("role",ce._config.role)("aria-labelledby",ce._config.ariaLabel?null:ce._ariaLabelledBy)("aria-label",ce._config.ariaLabel)("aria-describedby",ce._config.ariaDescribedBy||null),f.\u0275\u0275syntheticHostProperty("@dialogContainer",ce._state))},features:[f.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(L,ce){1&L&&f.\u0275\u0275template(0,le,0,0,"ng-template",0)},directives:[l.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:[$e.dialogContainer]}}),$})(),Oe=0;class Pe{constructor(re,L,ce="mat-dialog-"+Oe++){this._overlayRef=re,this._containerInstance=L,this.id=ce,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new w.xQ,this._afterClosed=new w.xQ,this._beforeClosed=new w.xQ,this._state=0,L._id=ce,L._animationStateChanged.pipe((0,E.h)(ae=>"opened"===ae.state),(0,M.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),L._animationStateChanged.pipe((0,E.h)(ae=>"closed"===ae.state),(0,M.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),re.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),re.keydownEvents().pipe((0,E.h)(ae=>ae.keyCode===j.hY&&!this.disableClose&&!(0,j.Vb)(ae))).subscribe(ae=>{ae.preventDefault(),de(this,"keyboard")}),re.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():de(this,"mouse")})}close(re){this._result=re,this._containerInstance._animationStateChanged.pipe((0,E.h)(L=>"closing"===L.state),(0,M.q)(1)).subscribe(L=>{this._beforeClosed.next(re),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),L.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(re){let L=this._getPositionStrategy();return re&&(re.left||re.right)?re.left?L.left(re.left):L.right(re.right):L.centerHorizontally(),re&&(re.top||re.bottom)?re.top?L.top(re.top):L.bottom(re.bottom):L.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(re="",L=""){return this._overlayRef.updateSize({width:re,height:L}),this._overlayRef.updatePosition(),this}addPanelClass(re){return this._overlayRef.addPanelClass(re),this}removePanelClass(re){return this._overlayRef.removePanelClass(re),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function de($,re,L){return void 0!==$._containerInstance&&($._containerInstance._closeInteractionType=re),$.close(L)}const qe=new f.InjectionToken("MatDialogData"),Y=new f.InjectionToken("mat-dialog-default-options"),se=new f.InjectionToken("mat-dialog-scroll-strategy");function _e($){return()=>$.scrollStrategies.block()}function fe($){return()=>$.scrollStrategies.block()}const Be={provide:se,deps:[o.aV],useFactory:fe};let Fe=(()=>{class ${constructor(L,ce,ae,pe,ke,ot,wt,Je,Ue){this._overlay=L,this._injector=ce,this._defaultOptions=ae,this._parentDialog=pe,this._overlayContainer=ke,this._dialogRefConstructor=wt,this._dialogContainerType=Je,this._dialogDataToken=Ue,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,D.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,S.O)(void 0))),this._scrollStrategy=ot}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const L=this._parentDialog;return L?L._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(L,ce){(ce=function($,re){return Object.assign(Object.assign({},re),$)}(ce,this._defaultOptions||new Ce)).id&&this.getDialogById(ce.id);const ae=this._createOverlay(ce),pe=this._attachDialogContainer(ae,ce),ke=this._attachDialogContent(L,pe,ae,ce);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ke),ke.afterClosed().subscribe(()=>this._removeOpenDialog(ke)),this.afterOpened.next(ke),pe._initializeWithAttachedContent(),ke}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(L){return this.openDialogs.find(ce=>ce.id===L)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(L){const ce=this._getOverlayConfig(L);return this._overlay.create(ce)}_getOverlayConfig(L){const ce=new o.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:L.scrollStrategy||this._scrollStrategy(),panelClass:L.panelClass,hasBackdrop:L.hasBackdrop,direction:L.direction,minWidth:L.minWidth,minHeight:L.minHeight,maxWidth:L.maxWidth,maxHeight:L.maxHeight,disposeOnNavigation:L.closeOnNavigation});return L.backdropClass&&(ce.backdropClass=L.backdropClass),ce}_attachDialogContainer(L,ce){const pe=f.Injector.create({parent:ce&&ce.viewContainerRef&&ce.viewContainerRef.injector||this._injector,providers:[{provide:Ce,useValue:ce}]}),ke=new l.C5(this._dialogContainerType,ce.viewContainerRef,pe,ce.componentFactoryResolver);return L.attach(ke).instance}_attachDialogContent(L,ce,ae,pe){const ke=new this._dialogRefConstructor(ae,ce,pe.id);if(L instanceof f.TemplateRef)ce.attachTemplatePortal(new l.UE(L,null,{$implicit:pe.data,dialogRef:ke}));else{const ot=this._createInjector(pe,ke,ce),wt=ce.attachComponentPortal(new l.C5(L,pe.viewContainerRef,ot));ke.componentInstance=wt.instance}return ke.updateSize(pe.width,pe.height).updatePosition(pe.position),ke}_createInjector(L,ce,ae){const pe=L&&L.viewContainerRef&&L.viewContainerRef.injector,ke=[{provide:this._dialogContainerType,useValue:ae},{provide:this._dialogDataToken,useValue:L.data},{provide:this._dialogRefConstructor,useValue:ce}];return L.direction&&(!pe||!pe.get(a.Is,null,f.InjectFlags.Optional))&&ke.push({provide:a.Is,useValue:{value:L.direction,change:(0,g.of)()}}),f.Injector.create({parent:pe||this._injector,providers:ke})}_removeOpenDialog(L){const ce=this.openDialogs.indexOf(L);ce>-1&&(this.openDialogs.splice(ce,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ae,pe)=>{ae?pe.setAttribute("aria-hidden",ae):pe.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const L=this._overlayContainer.getContainerElement();if(L.parentElement){const ce=L.parentElement.children;for(let ae=ce.length-1;ae>-1;ae--){let pe=ce[ae];pe!==L&&"SCRIPT"!==pe.nodeName&&"STYLE"!==pe.nodeName&&!pe.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(pe,pe.getAttribute("aria-hidden")),pe.setAttribute("aria-hidden","true"))}}}_closeDialogs(L){let ce=L.length;for(;ce--;)L[ce].close()}}return $.\u0275fac=function(L){return new(L||$)(f.\u0275\u0275directiveInject(o.aV),f.\u0275\u0275directiveInject(f.Injector),f.\u0275\u0275directiveInject(void 0),f.\u0275\u0275directiveInject(void 0),f.\u0275\u0275directiveInject(o.Xj),f.\u0275\u0275directiveInject(void 0),f.\u0275\u0275directiveInject(f.Type),f.\u0275\u0275directiveInject(f.Type),f.\u0275\u0275directiveInject(f.InjectionToken))},$.\u0275dir=f.\u0275\u0275defineDirective({type:$}),$})(),st=(()=>{class $ extends Fe{constructor(L,ce,ae,pe,ke,ot,wt){super(L,ce,pe,ot,wt,ke,Pe,Me,qe)}}return $.\u0275fac=function(L){return new(L||$)(f.\u0275\u0275inject(o.aV),f.\u0275\u0275inject(f.Injector),f.\u0275\u0275inject(C.Location,8),f.\u0275\u0275inject(Y,8),f.\u0275\u0275inject(se),f.\u0275\u0275inject($,12),f.\u0275\u0275inject(o.Xj))},$.\u0275prov=f.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac}),$})(),Ct=0,je=(()=>{class ${constructor(L,ce,ae){this.dialogRef=L,this._elementRef=ce,this._dialog=ae,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Ze(this._elementRef,this._dialog.openDialogs))}ngOnChanges(L){const ce=L._matDialogClose||L._matDialogCloseResult;ce&&(this.dialogResult=ce.currentValue)}_onButtonClick(L){de(this.dialogRef,0===L.screenX&&0===L.screenY?"keyboard":"mouse",this.dialogResult)}}return $.\u0275fac=function(L){return new(L||$)(f.\u0275\u0275directiveInject(Pe,8),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(st))},$.\u0275dir=f.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(L,ce){1&L&&f.\u0275\u0275listener("click",function(pe){return ce._onButtonClick(pe)}),2&L&&f.\u0275\u0275attribute("aria-label",ce.ariaLabel||null)("type",ce.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[f.\u0275\u0275NgOnChangesFeature]}),$})(),rt=(()=>{class ${constructor(L,ce,ae){this._dialogRef=L,this._elementRef=ce,this._dialog=ae,this.id="mat-dialog-title-"+Ct++}ngOnInit(){this._dialogRef||(this._dialogRef=Ze(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const L=this._dialogRef._containerInstance;L&&!L._ariaLabelledBy&&(L._ariaLabelledBy=this.id)})}}return $.\u0275fac=function(L){return new(L||$)(f.\u0275\u0275directiveInject(Pe,8),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275directiveInject(st))},$.\u0275dir=f.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(L,ce){2&L&&f.\u0275\u0275hostProperty("id",ce.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),$})(),ht=(()=>{class ${}return $.\u0275fac=function(L){return new(L||$)},$.\u0275dir=f.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),$})(),It=(()=>{class ${}return $.\u0275fac=function(L){return new(L||$)},$.\u0275dir=f.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),$})();function Ze($,re){let L=$.nativeElement.parentElement;for(;L&&!L.classList.contains("mat-dialog-container");)L=L.parentElement;return L?re.find(ce=>ce.id===L.id):null}let dt=(()=>{class ${}return $.\u0275fac=function(L){return new(L||$)},$.\u0275mod=f.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=f.\u0275\u0275defineInjector({providers:[st,Be],imports:[[o.U8,l.eL,_.BQ],_.BQ]}),$})()},2421:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{ICON_REGISTRY_PROVIDER:()=>Be,ICON_REGISTRY_PROVIDER_FACTORY:()=>fe,MAT_ICON_LOCATION:()=>je,MAT_ICON_LOCATION_FACTORY:()=>rt,MatIcon:()=>$,MatIconModule:()=>re,MatIconRegistry:()=>_e,getMatIconFailedToSanitizeLiteralError:()=>Y,getMatIconFailedToSanitizeUrlError:()=>qe,getMatIconNameNotFoundError:()=>Pe,getMatIconNoHttpProviderError:()=>de,\u02750:()=>It});var o=d(7716),l=d(2458),f=d(9490),_=d(8583),a=d(5917),C=d(205),w=d(5758),D=d(826),g=d(5345);class M{constructor(ce){this.selector=ce}call(ce,ae){return ae.subscribe(new S(ce,this.selector,this.caught))}}class S extends g.Ds{constructor(ce,ae,pe){super(ce),this.selector=ae,this.caught=pe}error(ce){if(!this.isStopped){let ae;try{ae=this.selector(ce,this.caught)}catch(ot){return void super.error(ot)}this._unsubscribeAndRecycle();const pe=new g.IY(this);this.add(pe);const ke=(0,g.ft)(ae,pe);ke!==pe&&this.add(ke)}}}var P=d(7393);class j{constructor(ce){this.callback=ce}call(ce,ae){return ae.subscribe(new oe(ce,this.callback))}}class oe extends P.L{constructor(ce,ae){super(ce),this.add(new D.w(ae))}}var le=d(8307),Ce=d(8002),$e=d(8819),lt=d(5257),Ye=d(6820),Me=d(9075);const Oe=["*"];function Pe(L){return Error(`Unable to find icon with the name "${L}"`)}function de(){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 qe(L){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${L}".`)}function Y(L){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${L}".`)}class se{constructor(ce,ae,pe){this.url=ce,this.svgText=ae,this.options=pe}}let _e=(()=>{class L{constructor(ae,pe,ke,ot){this._httpClient=ae,this._sanitizer=pe,this._errorHandler=ot,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=ke}addSvgIcon(ae,pe,ke){return this.addSvgIconInNamespace("",ae,pe,ke)}addSvgIconLiteral(ae,pe,ke){return this.addSvgIconLiteralInNamespace("",ae,pe,ke)}addSvgIconInNamespace(ae,pe,ke,ot){return this._addSvgIconConfig(ae,pe,new se(ke,null,ot))}addSvgIconResolver(ae){return this._resolvers.push(ae),this}addSvgIconLiteralInNamespace(ae,pe,ke,ot){const wt=this._sanitizer.sanitize(o.SecurityContext.HTML,ke);if(!wt)throw Y(ke);return this._addSvgIconConfig(ae,pe,new se("",wt,ot))}addSvgIconSet(ae,pe){return this.addSvgIconSetInNamespace("",ae,pe)}addSvgIconSetLiteral(ae,pe){return this.addSvgIconSetLiteralInNamespace("",ae,pe)}addSvgIconSetInNamespace(ae,pe,ke){return this._addSvgIconSetConfig(ae,new se(pe,null,ke))}addSvgIconSetLiteralInNamespace(ae,pe,ke){const ot=this._sanitizer.sanitize(o.SecurityContext.HTML,pe);if(!ot)throw Y(pe);return this._addSvgIconSetConfig(ae,new se("",ot,ke))}registerFontClassAlias(ae,pe=ae){return this._fontCssClassesByAlias.set(ae,pe),this}classNameForFontAlias(ae){return this._fontCssClassesByAlias.get(ae)||ae}setDefaultFontSetClass(ae){return this._defaultFontSetClass=ae,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ae){const pe=this._sanitizer.sanitize(o.SecurityContext.RESOURCE_URL,ae);if(!pe)throw qe(ae);const ke=this._cachedIconsByUrl.get(pe);return ke?(0,a.of)(Fe(ke)):this._loadSvgIconFromConfig(new se(ae,null)).pipe((0,le.b)(ot=>this._cachedIconsByUrl.set(pe,ot)),(0,Ce.U)(ot=>Fe(ot)))}getNamedSvgIcon(ae,pe=""){const ke=st(pe,ae);let ot=this._svgIconConfigs.get(ke);if(ot)return this._getSvgFromConfig(ot);if(ot=this._getIconConfigFromResolvers(pe,ae),ot)return this._svgIconConfigs.set(ke,ot),this._getSvgFromConfig(ot);const wt=this._iconSetConfigs.get(pe);return wt?this._getSvgFromIconSetConfigs(ae,wt):(0,C._)(Pe(ke))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ae){return ae.svgText?(0,a.of)(Fe(this._svgElementFromConfig(ae))):this._loadSvgIconFromConfig(ae).pipe((0,Ce.U)(pe=>Fe(pe)))}_getSvgFromIconSetConfigs(ae,pe){const ke=this._extractIconWithNameFromAnySet(ae,pe);if(ke)return(0,a.of)(ke);const ot=pe.filter(wt=>!wt.svgText).map(wt=>this._loadSvgIconSetFromConfig(wt).pipe(function(L){return function(ae){const pe=new M(L),ke=ae.lift(pe);return pe.caught=ke}}(Je=>{const He=`Loading icon set URL: ${this._sanitizer.sanitize(o.SecurityContext.RESOURCE_URL,wt.url)} failed: ${Je.message}`;return this._errorHandler.handleError(new Error(He)),(0,a.of)(null)})));return(0,w.D)(ot).pipe((0,Ce.U)(()=>{const wt=this._extractIconWithNameFromAnySet(ae,pe);if(!wt)throw Pe(ae);return wt}))}_extractIconWithNameFromAnySet(ae,pe){for(let ke=pe.length-1;ke>=0;ke--){const ot=pe[ke];if(ot.svgText&&ot.svgText.indexOf(ae)>-1){const wt=this._svgElementFromConfig(ot),Je=this._extractSvgIconFromSet(wt,ae,ot.options);if(Je)return Je}}return null}_loadSvgIconFromConfig(ae){return this._fetchIcon(ae).pipe((0,le.b)(pe=>ae.svgText=pe),(0,Ce.U)(()=>this._svgElementFromConfig(ae)))}_loadSvgIconSetFromConfig(ae){return ae.svgText?(0,a.of)(null):this._fetchIcon(ae).pipe((0,le.b)(pe=>ae.svgText=pe))}_extractSvgIconFromSet(ae,pe,ke){const ot=ae.querySelector(`[id="${pe}"]`);if(!ot)return null;const wt=ot.cloneNode(!0);if(wt.removeAttribute("id"),"svg"===wt.nodeName.toLowerCase())return this._setSvgAttributes(wt,ke);if("symbol"===wt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(wt),ke);const Je=this._svgElementFromString("<svg></svg>");return Je.appendChild(wt),this._setSvgAttributes(Je,ke)}_svgElementFromString(ae){const pe=this._document.createElement("DIV");pe.innerHTML=ae;const ke=pe.querySelector("svg");if(!ke)throw Error("<svg> tag not found");return ke}_toSvgElement(ae){const pe=this._svgElementFromString("<svg></svg>"),ke=ae.attributes;for(let ot=0;ot<ke.length;ot++){const{name:wt,value:Je}=ke[ot];"id"!==wt&&pe.setAttribute(wt,Je)}for(let ot=0;ot<ae.childNodes.length;ot++)ae.childNodes[ot].nodeType===this._document.ELEMENT_NODE&&pe.appendChild(ae.childNodes[ot].cloneNode(!0));return pe}_setSvgAttributes(ae,pe){return ae.setAttribute("fit",""),ae.setAttribute("height","100%"),ae.setAttribute("width","100%"),ae.setAttribute("preserveAspectRatio","xMidYMid meet"),ae.setAttribute("focusable","false"),pe&&pe.viewBox&&ae.setAttribute("viewBox",pe.viewBox),ae}_fetchIcon(ae){var pe;const{url:ke,options:ot}=ae,wt=null!==(pe=null==ot?void 0:ot.withCredentials)&&void 0!==pe&&pe;if(!this._httpClient)throw de();if(null==ke)throw Error(`Cannot fetch icon from URL "${ke}".`);const Je=this._sanitizer.sanitize(o.SecurityContext.RESOURCE_URL,ke);if(!Je)throw qe(ke);const Ue=this._inProgressUrlFetches.get(Je);if(Ue)return Ue;const He=this._httpClient.get(Je,{responseType:"text",withCredentials:wt}).pipe(function(L){return ce=>ce.lift(new j(L))}(()=>this._inProgressUrlFetches.delete(Je)),(0,$e.B)());return this._inProgressUrlFetches.set(Je,He),He}_addSvgIconConfig(ae,pe,ke){return this._svgIconConfigs.set(st(ae,pe),ke),this}_addSvgIconSetConfig(ae,pe){const ke=this._iconSetConfigs.get(ae);return ke?ke.push(pe):this._iconSetConfigs.set(ae,[pe]),this}_svgElementFromConfig(ae){if(!ae.svgElement){const pe=this._svgElementFromString(ae.svgText);this._setSvgAttributes(pe,ae.options),ae.svgElement=pe}return ae.svgElement}_getIconConfigFromResolvers(ae,pe){for(let ke=0;ke<this._resolvers.length;ke++){const ot=this._resolvers[ke](pe,ae);if(ot)return ct(ot)?new se(ot.url,null,ot.options):new se(ot,null)}}}return L.\u0275fac=function(ae){return new(ae||L)(o.\u0275\u0275inject(Ye.HttpClient,8),o.\u0275\u0275inject(Me.DomSanitizer),o.\u0275\u0275inject(_.DOCUMENT,8),o.\u0275\u0275inject(o.ErrorHandler))},L.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new L(o.\u0275\u0275inject(Ye.HttpClient,8),o.\u0275\u0275inject(Me.DomSanitizer),o.\u0275\u0275inject(_.DOCUMENT,8),o.\u0275\u0275inject(o.ErrorHandler))},token:L,providedIn:"root"}),L})();function fe(L,ce,ae,pe,ke){return L||new _e(ce,ae,ke,pe)}const Be={provide:_e,deps:[[new o.Optional,new o.SkipSelf,_e],[new o.Optional,Ye.HttpClient],Me.DomSanitizer,o.ErrorHandler,[new o.Optional,_.DOCUMENT]],useFactory:fe};function Fe(L){return L.cloneNode(!0)}function st(L,ce){return L+":"+ce}function ct(L){return!(!L.url||!L.options)}const Ct=(0,l.pj)(class{constructor(L){this._elementRef=L}}),je=new o.InjectionToken("mat-icon-location",{providedIn:"root",factory:rt});function rt(){const L=(0,o.inject)(_.DOCUMENT),ce=L?L.location:null;return{getPathname:()=>ce?ce.pathname+ce.search:""}}const ht=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],It=L=>`[${L}]`,Ze=ht.map(It).join(", "),dt=/^url\(['"]?#(.*?)['"]?\)$/;let $=(()=>{class L extends Ct{constructor(ae,pe,ke,ot,wt){super(ae),this._iconRegistry=pe,this._location=ot,this._errorHandler=wt,this._inline=!1,this._currentIconFetch=D.w.EMPTY,ke||ae.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ae){this._inline=(0,f.Ig)(ae)}get svgIcon(){return this._svgIcon}set svgIcon(ae){ae!==this._svgIcon&&(ae?this._updateSvgIcon(ae):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ae)}get fontSet(){return this._fontSet}set fontSet(ae){const pe=this._cleanupFontValue(ae);pe!==this._fontSet&&(this._fontSet=pe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ae){const pe=this._cleanupFontValue(ae);pe!==this._fontIcon&&(this._fontIcon=pe,this._updateFontIconClasses())}_splitIconName(ae){if(!ae)return["",""];const pe=ae.split(":");switch(pe.length){case 1:return["",pe[0]];case 2:return pe;default:throw Error(`Invalid icon name: "${ae}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ae=this._elementsWithExternalReferences;if(ae&&ae.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(ae){this._clearSvgElement();const pe=ae.querySelectorAll("style");for(let ot=0;ot<pe.length;ot++)pe[ot].textContent+=" ";const ke=this._location.getPathname();this._previousPath=ke,this._cacheChildrenWithExternalReferences(ae),this._prependPathToReferences(ke),this._elementRef.nativeElement.appendChild(ae)}_clearSvgElement(){const ae=this._elementRef.nativeElement;let pe=ae.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();pe--;){const ke=ae.childNodes[pe];(1!==ke.nodeType||"svg"===ke.nodeName.toLowerCase())&&ae.removeChild(ke)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ae=this._elementRef.nativeElement,pe=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();pe!=this._previousFontSetClass&&(this._previousFontSetClass&&ae.classList.remove(this._previousFontSetClass),pe&&ae.classList.add(pe),this._previousFontSetClass=pe),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&ae.classList.remove(this._previousFontIconClass),this.fontIcon&&ae.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ae){return"string"==typeof ae?ae.trim().split(" ")[0]:ae}_prependPathToReferences(ae){const pe=this._elementsWithExternalReferences;pe&&pe.forEach((ke,ot)=>{ke.forEach(wt=>{ot.setAttribute(wt.name,`url('${ae}#${wt.value}')`)})})}_cacheChildrenWithExternalReferences(ae){const pe=ae.querySelectorAll(Ze),ke=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ot=0;ot<pe.length;ot++)ht.forEach(wt=>{const Je=pe[ot],Ue=Je.getAttribute(wt),He=Ue?Ue.match(dt):null;if(He){let q=ke.get(Je);q||(q=[],ke.set(Je,q)),q.push({name:wt,value:He[1]})}})}_updateSvgIcon(ae){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ae){const[pe,ke]=this._splitIconName(ae);pe&&(this._svgNamespace=pe),ke&&(this._svgName=ke),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(ke,pe).pipe((0,lt.q)(1)).subscribe(ot=>this._setSvgElement(ot),ot=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${pe}:${ke}! ${ot.message}`))})}}}return L.\u0275fac=function(ae){return new(ae||L)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(_e),o.\u0275\u0275injectAttribute("aria-hidden"),o.\u0275\u0275directiveInject(je),o.\u0275\u0275directiveInject(o.ErrorHandler))},L.\u0275cmp=o.\u0275\u0275defineComponent({type:L,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(ae,pe){2&ae&&(o.\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),o.\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:[o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Oe,decls:1,vars:0,template:function(ae,pe){1&ae&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-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}),L})(),re=(()=>{class L{}return L.\u0275fac=function(ae){return new(ae||L)},L.\u0275mod=o.\u0275\u0275defineNgModule({type:L}),L.\u0275inj=o.\u0275\u0275defineInjector({imports:[[l.BQ],l.BQ]}),L})()},5384:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_MENU_CONTENT:()=>ht,MAT_MENU_DEFAULT_OPTIONS:()=>ke,MAT_MENU_PANEL:()=>ce,MAT_MENU_SCROLL_STRATEGY:()=>He,MatMenu:()=>Ue,MatMenuContent:()=>Ze,MatMenuItem:()=>pe,MatMenuModule:()=>F,MatMenuTrigger:()=>x,_MatMenuBase:()=>Je,_MatMenuContentBase:()=>It,_MatMenuTriggerBase:()=>Qe,fadeInItems:()=>je,matMenuAnimations:()=>Ct,transformMenu:()=>rt,\u0275angular_material_src_material_menu_menu_a:()=>ot,\u0275angular_material_src_material_menu_menu_b:()=>q,\u0275angular_material_src_material_menu_menu_c:()=>Ke});var o=d(9238),l=d(9490),f=d(6461),_=d(7716),a=d(9765),C=d(826),w=d(6682),D=d(5917),g=d(4581),E=d(3637),S=d(7393),P=d(3098);function B(R,he=E.P){const ne=function(R){return R instanceof Date&&!isNaN(+R)}(R)?+R-he.now():Math.abs(R);return Le=>Le.lift(new j(ne,he))}class j{constructor(he,z){this.delay=he,this.scheduler=z}call(he,z){return z.subscribe(new oe(he,this.delay,this.scheduler))}}class oe extends S.L{constructor(he,z,ne){super(he),this.delay=z,this.scheduler=ne,this.queue=[],this.active=!1,this.errored=!1}static dispatch(he){const z=he.source,ne=z.queue,Le=he.scheduler,gt=he.destination;for(;ne.length>0&&ne[0].time-Le.now()<=0;)ne.shift().notification.observe(gt);if(ne.length>0){const Et=Math.max(0,ne[0].time-Le.now());this.schedule(he,Et)}else this.unsubscribe(),z.active=!1}_schedule(he){this.active=!0,this.destination.add(he.schedule(oe.dispatch,this.delay,{source:this,destination:this.destination,scheduler:he}))}scheduleNotification(he){if(!0===this.errored)return;const z=this.scheduler,ne=new le(z.now()+this.delay,he);this.queue.push(ne),!1===this.active&&this._schedule(z)}_next(he){this.scheduleNotification(P.P.createNext(he))}_error(he){this.errored=!0,this.queue=[],this.destination.error(he),this.unsubscribe()}_complete(){this.scheduleNotification(P.P.createComplete()),this.unsubscribe()}}class le{constructor(he,z){this.time=he,this.notification=z}}var Ce=d(9761),$e=d(3190),lt=d(5257),Ye=d(5435),Me=d(6782),Oe=d(7238),Pe=d(7636),de=d(8583),qe=d(2458),Y=d(625),se=d(521),_e=d(5197),fe=d(946);const Be=["mat-menu-item",""];function Fe(R,he){1&R&&(_.\u0275\u0275namespaceSVG(),_.\u0275\u0275elementStart(0,"svg",2),_.\u0275\u0275element(1,"polygon",3),_.\u0275\u0275elementEnd())}const st=["*"];function ct(R,he){if(1&R){const z=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275listener("keydown",function(Le){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext()._handleKeydown(Le)})("click",function(){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(Le){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext()._onAnimationStart(Le)})("@transformMenu.done",function(Le){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext()._onAnimationDone(Le)}),_.\u0275\u0275elementStart(1,"div",1),_.\u0275\u0275projection(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()}if(2&R){const z=_.\u0275\u0275nextContext();_.\u0275\u0275property("id",z.panelId)("ngClass",z._classList)("@transformMenu",z._panelAnimationState),_.\u0275\u0275attribute("aria-label",z.ariaLabel||null)("aria-labelledby",z.ariaLabelledby||null)("aria-describedby",z.ariaDescribedby||null)}}const Ct={transformMenu:(0,Oe.X$)("transformMenu",[(0,Oe.SB)("void",(0,Oe.oB)({opacity:0,transform:"scale(0.8)"})),(0,Oe.eR)("void => enter",(0,Oe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Oe.oB)({opacity:1,transform:"scale(1)"}))),(0,Oe.eR)("* => void",(0,Oe.jt)("100ms 25ms linear",(0,Oe.oB)({opacity:0})))]),fadeInItems:(0,Oe.X$)("fadeInItems",[(0,Oe.SB)("showing",(0,Oe.oB)({opacity:1})),(0,Oe.eR)("void => *",[(0,Oe.oB)({opacity:0}),(0,Oe.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},je=Ct.fadeInItems,rt=Ct.transformMenu,ht=new _.InjectionToken("MatMenuContent");let It=(()=>{class R{constructor(z,ne,Le,gt,Et,xt,Nt){this._template=z,this._componentFactoryResolver=ne,this._appRef=Le,this._injector=gt,this._viewContainerRef=Et,this._document=xt,this._changeDetectorRef=Nt,this._attached=new a.xQ}attach(z={}){this._portal||(this._portal=new Pe.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Pe.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const ne=this._template.elementRef.nativeElement;ne.parentNode.insertBefore(this._outlet.outletElement,ne),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,z),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.TemplateRef),_.\u0275\u0275directiveInject(_.ComponentFactoryResolver),_.\u0275\u0275directiveInject(_.ApplicationRef),_.\u0275\u0275directiveInject(_.Injector),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(de.DOCUMENT),_.\u0275\u0275directiveInject(_.ChangeDetectorRef))},R.\u0275dir=_.\u0275\u0275defineDirective({type:R}),R})(),Ze=(()=>{class R extends It{}return R.\u0275fac=function(){let he;return function(ne){return(he||(he=_.\u0275\u0275getInheritedFactory(R)))(ne||R)}}(),R.\u0275dir=_.\u0275\u0275defineDirective({type:R,selectors:[["ng-template","matMenuContent",""]],features:[_.\u0275\u0275ProvidersFeature([{provide:ht,useExisting:R}]),_.\u0275\u0275InheritDefinitionFeature]}),R})();const ce=new _.InjectionToken("MAT_MENU_PANEL"),ae=(0,qe.Kr)((0,qe.Id)(class{}));let pe=(()=>{class R extends ae{constructor(z,ne,Le,gt,Et){super(),this._elementRef=z,this._focusMonitor=Le,this._parentMenu=gt,this._changeDetectorRef=Et,this.role="menuitem",this._hovered=new a.xQ,this._focused=new a.xQ,this._highlighted=!1,this._triggersSubmenu=!1,gt&&gt.addItem&&gt.addItem(this)}focus(z,ne){this._focusMonitor&&z?this._focusMonitor.focusVia(this._getHostElement(),z,ne):this._getHostElement().focus(ne),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(z){this.disabled&&(z.preventDefault(),z.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var z,ne;const Le=this._elementRef.nativeElement.cloneNode(!0),gt=Le.querySelectorAll("mat-icon, .material-icons");for(let Et=0;Et<gt.length;Et++){const xt=gt[Et];null===(z=xt.parentNode)||void 0===z||z.removeChild(xt)}return(null===(ne=Le.textContent)||void 0===ne?void 0:ne.trim())||""}_setHighlighted(z){var ne;this._highlighted=z,null===(ne=this._changeDetectorRef)||void 0===ne||ne.markForCheck()}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(de.DOCUMENT),_.\u0275\u0275directiveInject(o.tE),_.\u0275\u0275directiveInject(ce,8),_.\u0275\u0275directiveInject(_.ChangeDetectorRef))},R.\u0275cmp=_.\u0275\u0275defineComponent({type:R,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(z,ne){1&z&&_.\u0275\u0275listener("click",function(gt){return ne._checkDisabled(gt)})("mouseenter",function(){return ne._handleMouseEnter()}),2&z&&(_.\u0275\u0275attribute("role",ne.role)("tabindex",ne._getTabIndex())("aria-disabled",ne.disabled.toString())("disabled",ne.disabled||null),_.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",ne._highlighted)("mat-menu-item-submenu-trigger",ne._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[_.\u0275\u0275InheritDefinitionFeature],attrs:Be,ngContentSelectors:st,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(z,ne){1&z&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275projection(0),_.\u0275\u0275element(1,"div",0),_.\u0275\u0275template(2,Fe,2,0,"svg",1)),2&z&&(_.\u0275\u0275advance(1),_.\u0275\u0275property("matRippleDisabled",ne.disableRipple||ne.disabled)("matRippleTrigger",ne._getHostElement()),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",ne._triggersSubmenu))},directives:[qe.wG,de.NgIf],encapsulation:2,changeDetection:0}),R})();const ke=new _.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:ot});function ot(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}let wt=0,Je=(()=>{class R{constructor(z,ne,Le){this._elementRef=z,this._ngZone=ne,this._defaultOptions=Le,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new _.QueryList,this._tabSubscription=C.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new _.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+wt++}get xPosition(){return this._xPosition}set xPosition(z){this._xPosition=z,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(z){this._yPosition=z,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(z){this._overlapTrigger=(0,l.Ig)(z)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(z){this._hasBackdrop=(0,l.Ig)(z)}set panelClass(z){const ne=this._previousPanelClass;ne&&ne.length&&ne.split(" ").forEach(Le=>{this._classList[Le]=!1}),this._previousPanelClass=z,z&&z.length&&(z.split(" ").forEach(Le=>{this._classList[Le]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(z){this.panelClass=z}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new o.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,Ce.O)(this._directDescendantItems),(0,$e.w)(z=>(0,w.T)(...z.map(ne=>ne._focused)))).subscribe(z=>this._keyManager.updateActiveItem(z))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,Ce.O)(this._directDescendantItems),(0,$e.w)(ne=>(0,w.T)(...ne.map(Le=>Le._hovered))))}addItem(z){}removeItem(z){}_handleKeydown(z){const ne=z.keyCode,Le=this._keyManager;switch(ne){case f.hY:(0,f.Vb)(z)||(z.preventDefault(),this.closed.emit("keydown"));break;case f.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case f.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(ne===f.LH||ne===f.JH)&&Le.setFocusOrigin("keyboard"),Le.onKeydown(z)}}focusFirstItem(z="program"){this.lazyContent?this._ngZone.onStable.pipe((0,lt.q)(1)).subscribe(()=>this._focusFirstItem(z)):this._focusFirstItem(z)}_focusFirstItem(z){const ne=this._keyManager;if(ne.setFocusOrigin(z).setFirstItemActive(),!ne.activeItem&&this._directDescendantItems.length){let Le=this._directDescendantItems.first._getHostElement().parentElement;for(;Le;){if("menu"===Le.getAttribute("role")){Le.focus();break}Le=Le.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(z){const ne=Math.min(this._baseElevation+z,24),Le=`${this._elevationPrefix}${ne}`,gt=Object.keys(this._classList).find(Et=>Et.startsWith(this._elevationPrefix));(!gt||gt===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Le]=!0,this._previousElevation=Le)}setPositionClasses(z=this.xPosition,ne=this.yPosition){const Le=this._classList;Le["mat-menu-before"]="before"===z,Le["mat-menu-after"]="after"===z,Le["mat-menu-above"]="above"===ne,Le["mat-menu-below"]="below"===ne}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(z){this._animationDone.next(z),this._isAnimating=!1}_onAnimationStart(z){this._isAnimating=!0,"enter"===z.toState&&0===this._keyManager.activeItemIndex&&(z.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,Ce.O)(this._allItems)).subscribe(z=>{this._directDescendantItems.reset(z.filter(ne=>ne._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(ke))},R.\u0275dir=_.\u0275\u0275defineDirective({type:R,contentQueries:function(z,ne,Le){if(1&z&&(_.\u0275\u0275contentQuery(Le,ht,5),_.\u0275\u0275contentQuery(Le,pe,5),_.\u0275\u0275contentQuery(Le,pe,4)),2&z){let gt;_.\u0275\u0275queryRefresh(gt=_.\u0275\u0275loadQuery())&&(ne.lazyContent=gt.first),_.\u0275\u0275queryRefresh(gt=_.\u0275\u0275loadQuery())&&(ne._allItems=gt),_.\u0275\u0275queryRefresh(gt=_.\u0275\u0275loadQuery())&&(ne.items=gt)}},viewQuery:function(z,ne){if(1&z&&_.\u0275\u0275viewQuery(_.TemplateRef,5),2&z){let Le;_.\u0275\u0275queryRefresh(Le=_.\u0275\u0275loadQuery())&&(ne.templateRef=Le.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),R})(),Ue=(()=>{class R extends Je{constructor(z,ne,Le){super(z,ne,Le),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(ke))},R.\u0275cmp=_.\u0275\u0275defineComponent({type:R,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(z,ne){2&z&&_.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[_.\u0275\u0275ProvidersFeature([{provide:ce,useExisting:R}]),_.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:st,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(z,ne){1&z&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275template(0,ct,3,6,"ng-template"))},directives:[de.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;-ms-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:[Ct.transformMenu,Ct.fadeInItems]},changeDetection:0}),R})();const He=new _.InjectionToken("mat-menu-scroll-strategy");function q(R){return()=>R.scrollStrategies.reposition()}const Ke={provide:He,deps:[Y.aV],useFactory:q},vt=(0,se.i$)({passive:!0});let Qe=(()=>{class R{constructor(z,ne,Le,gt,Et,xt,Nt,Ut){this._overlay=z,this._element=ne,this._viewContainerRef=Le,this._menuItemInstance=xt,this._dir=Nt,this._focusMonitor=Ut,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=C.w.EMPTY,this._hoverSubscription=C.w.EMPTY,this._menuCloseSubscription=C.w.EMPTY,this._handleTouchStart=Qt=>{(0,o.yG)(Qt)||(this._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new _.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new _.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=gt,this._parentMaterialMenu=Et instanceof Je?Et:void 0,ne.nativeElement.addEventListener("touchstart",this._handleTouchStart,vt),xt&&(xt._triggersSubmenu=this.triggersSubmenu())}get _ariaExpanded(){return this.menuOpen||null}get _ariaControl(){return this.menuOpen?this.menu.panelId:null}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(z){this.menu=z}get menu(){return this._menu}set menu(z){z!==this._menu&&(this._menu=z,this._menuCloseSubscription.unsubscribe(),z&&(this._menuCloseSubscription=z.close.subscribe(ne=>{this._destroyMenu(ne),("click"===ne||"tab"===ne)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(ne)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,vt),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 z=this._createOverlay(),ne=z.getConfig();this._setPosition(ne.positionStrategy),ne.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,z.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Je&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(z,ne){this._focusMonitor&&z?this._focusMonitor.focusVia(this._element,z,ne):this._element.nativeElement.focus(ne)}updatePosition(){var z;null===(z=this._overlayRef)||void 0===z||z.updatePosition()}_destroyMenu(z){if(!this._overlayRef||!this.menuOpen)return;const ne=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===z||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,ne instanceof Je?(ne._resetAnimation(),ne.lazyContent?ne._animationDone.pipe((0,Ye.h)(Le=>"void"===Le.toState),(0,lt.q)(1),(0,Me.R)(ne.lazyContent._attached)).subscribe({next:()=>ne.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),ne.lazyContent&&ne.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 z=0,ne=this.menu.parentMenu;for(;ne;)z++,ne=ne.parentMenu;this.menu.setElevation(z)}}_setIsMenuOpen(z){this._menuOpen=z,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(z)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const z=this._getOverlayConfig();this._subscribeToPositions(z.positionStrategy),this._overlayRef=this._overlay.create(z),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new Y.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(z){this.menu.setPositionClasses&&z.positionChanges.subscribe(ne=>{this.menu.setPositionClasses("start"===ne.connectionPair.overlayX?"after":"before","top"===ne.connectionPair.overlayY?"below":"above")})}_setPosition(z){let[ne,Le]="before"===this.menu.xPosition?["end","start"]:["start","end"],[gt,Et]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[xt,Nt]=[gt,Et],[Ut,Qt]=[ne,Le],At=0;this.triggersSubmenu()?(Qt=ne="before"===this.menu.xPosition?"start":"end",Le=Ut="end"===ne?"start":"end",At="bottom"===gt?8:-8):this.menu.overlapTrigger||(xt="top"===gt?"bottom":"top",Nt="top"===Et?"bottom":"top"),z.withPositions([{originX:ne,originY:xt,overlayX:Ut,overlayY:gt,offsetY:At},{originX:Le,originY:xt,overlayX:Qt,overlayY:gt,offsetY:At},{originX:ne,originY:Nt,overlayX:Ut,overlayY:Et,offsetY:-At},{originX:Le,originY:Nt,overlayX:Qt,overlayY:Et,offsetY:-At}])}_menuClosingActions(){const z=this._overlayRef.backdropClick(),ne=this._overlayRef.detachments(),Le=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,D.of)(),gt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Ye.h)(Et=>Et!==this._menuItemInstance),(0,Ye.h)(()=>this._menuOpen)):(0,D.of)();return(0,w.T)(z,Le,gt,ne)}_handleMousedown(z){(0,o.X6)(z)||(this._openedBy=0===z.button?"mouse":void 0,this.triggersSubmenu()&&z.preventDefault())}_handleKeydown(z){const ne=z.keyCode;(ne===f.K5||ne===f.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(ne===f.SV&&"ltr"===this.dir||ne===f.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(z){this.triggersSubmenu()?(z.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Ye.h)(z=>z===this._menuItemInstance&&!z.disabled),B(0,g.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Je&&this.menu._isAnimating?this.menu._animationDone.pipe((0,lt.q)(1),B(0,g.E),(0,Me.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Pe.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(Y.aV),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(He),_.\u0275\u0275directiveInject(ce,8),_.\u0275\u0275directiveInject(pe,10),_.\u0275\u0275directiveInject(fe.Is,8),_.\u0275\u0275directiveInject(o.tE))},R.\u0275dir=_.\u0275\u0275defineDirective({type:R,hostVars:3,hostBindings:function(z,ne){1&z&&_.\u0275\u0275listener("mousedown",function(gt){return ne._handleMousedown(gt)})("keydown",function(gt){return ne._handleKeydown(gt)})("click",function(gt){return ne._handleClick(gt)}),2&z&&_.\u0275\u0275attribute("aria-haspopup",ne._ariaHaspopup)("aria-expanded",ne._ariaExpanded)("aria-controls",ne._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),R})(),x=(()=>{class R extends Qe{}return R.\u0275fac=function(){let he;return function(ne){return(he||(he=_.\u0275\u0275getInheritedFactory(R)))(ne||R)}}(),R.\u0275dir=_.\u0275\u0275defineDirective({type:R,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[_.\u0275\u0275InheritDefinitionFeature]}),R})(),F=(()=>{class R{}return R.\u0275fac=function(z){return new(z||R)},R.\u0275mod=_.\u0275\u0275defineNgModule({type:R}),R.\u0275inj=_.\u0275\u0275defineInjector({providers:[Ke],imports:[[de.CommonModule,qe.BQ,qe.si,Y.U8],_e.ZD,qe.BQ]}),R})()},2789:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{MatCell:()=>_t,MatCellDef:()=>Ee,MatColumnDef:()=>N,MatFooterCell:()=>it,MatFooterCellDef:()=>Z,MatFooterRow:()=>un,MatFooterRowDef:()=>dn,MatHeaderCell:()=>ie,MatHeaderCellDef:()=>Q,MatHeaderRow:()=>an,MatHeaderRowDef:()=>Ht,MatNoDataRow:()=>yn,MatRecycleRows:()=>W,MatRow:()=>wn,MatRowDef:()=>cn,MatTable:()=>De,MatTableDataSource:()=>Rt,MatTableModule:()=>Se,MatTextColumn:()=>mt,_MatTableDataSource:()=>ft});var o=d(9490),l=d(8345),f=d(7716),_=d(946),a=d(521),C=d(5197),w=d(8583),D=d(9765),g=d(9412),E=d(6215),M=d(5639),S=d(5917),P=d(6782),B=d(5257);const j=[[["caption"]],[["colgroup"],["col"]]],oe=["caption","colgroup, col"];function le(ee,be){if(1&ee&&(f.\u0275\u0275elementStart(0,"th",3),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&ee){const J=f.\u0275\u0275nextContext();f.\u0275\u0275styleProp("text-align",J.justify),f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate1(" ",J.headerText," ")}}function Ce(ee,be){if(1&ee&&(f.\u0275\u0275elementStart(0,"td",4),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&ee){const J=be.$implicit,ve=f.\u0275\u0275nextContext();f.\u0275\u0275styleProp("text-align",ve.justify),f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate1(" ",ve.dataAccessor(J,ve.name)," ")}}function $e(ee){return class extends ee{constructor(...be){super(...be),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(be){const J=this._sticky;this._sticky=(0,o.Ig)(be),this._hasStickyChanged=J!==this._sticky}hasStickyChanged(){const be=this._hasStickyChanged;return this._hasStickyChanged=!1,be}resetStickyChanged(){this._hasStickyChanged=!1}}}const lt=new f.InjectionToken("CDK_TABLE"),Ye=new f.InjectionToken("text-column-options");let Me=(()=>{class ee{constructor(J){this.template=J}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.TemplateRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkCellDef",""]]}),ee})(),Oe=(()=>{class ee{constructor(J){this.template=J}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.TemplateRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkHeaderCellDef",""]]}),ee})(),Pe=(()=>{class ee{constructor(J){this.template=J}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.TemplateRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkFooterCellDef",""]]}),ee})();class de{}const qe=$e(de);let Y=(()=>{class ee extends qe{constructor(J){super(),this._table=J,this._stickyEnd=!1}get name(){return this._name}set name(J){this._setNameInput(J)}get stickyEnd(){return this._stickyEnd}set stickyEnd(J){const ve=this._stickyEnd;this._stickyEnd=(0,o.Ig)(J),this._hasStickyChanged=ve!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(J){J&&(this._name=J,this.cssClassFriendlyName=J.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(lt,8))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkColumnDef",""]],contentQueries:function(J,ve,We){if(1&J&&(f.\u0275\u0275contentQuery(We,Me,5),f.\u0275\u0275contentQuery(We,Oe,5),f.\u0275\u0275contentQuery(We,Pe,5)),2&J){let yt;f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ve.cell=yt.first),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ve.headerCell=yt.first),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ve.footerCell=yt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[f.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})();class se{constructor(be,J){const ve=J.nativeElement.classList;for(const We of be._columnCssClassName)ve.add(We)}}let _e=(()=>{class ee extends se{constructor(J,ve){super(J,ve)}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(Y),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),fe=(()=>{class ee extends se{constructor(J,ve){var We;if(super(J,ve),1===(null===(We=J._table)||void 0===We?void 0:We._elementRef.nativeElement.nodeType)){const yt=J._table._elementRef.nativeElement.getAttribute("role");ve.nativeElement.setAttribute("role","grid"===yt||"treegrid"===yt?"gridcell":"cell")}}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(Y),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),Be=(()=>{class ee extends se{constructor(J,ve){var We;if(super(J,ve),1===(null===(We=J._table)||void 0===We?void 0:We._elementRef.nativeElement.nodeType)){const yt=J._table._elementRef.nativeElement.getAttribute("role");ve.nativeElement.setAttribute("role","grid"===yt||"treegrid"===yt?"gridcell":"cell")}}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(Y),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})();class Fe{constructor(){this.tasks=[],this.endTasks=[]}}const st=new f.InjectionToken("_COALESCED_STYLE_SCHEDULER");let ct=(()=>{class ee{constructor(J){this._ngZone=J,this._currentSchedule=null,this._destroyed=new D.xQ}schedule(J){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(J)}scheduleEnd(J){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(J)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Fe,this._getScheduleObservable().pipe((0,P.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const J=this._currentSchedule;this._currentSchedule=new Fe;for(const ve of J.tasks)ve();for(const ve of J.endTasks)ve()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,g.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,B.q)(1))}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275inject(f.NgZone))},ee.\u0275prov=f.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac}),ee})(),je=(()=>{class ee{constructor(J,ve){this.template=J,this._differs=ve}ngOnChanges(J){if(!this._columnsDiffer){const ve=J.columns&&J.columns.currentValue||[];this._columnsDiffer=this._differs.find(ve).create(),this._columnsDiffer.diff(ve)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(J){return this instanceof It?J.headerCell.template:this instanceof $?J.footerCell.template:J.cell.template}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.TemplateRef),f.\u0275\u0275directiveInject(f.IterableDiffers))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,features:[f.\u0275\u0275NgOnChangesFeature]}),ee})();class rt extends je{}const ht=$e(rt);let It=(()=>{class ee extends ht{constructor(J,ve,We){super(J,ve),this._table=We}ngOnChanges(J){super.ngOnChanges(J)}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.TemplateRef),f.\u0275\u0275directiveInject(f.IterableDiffers),f.\u0275\u0275directiveInject(lt,8))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[f.\u0275\u0275InheritDefinitionFeature,f.\u0275\u0275NgOnChangesFeature]}),ee})();class Ze extends je{}const dt=$e(Ze);let $=(()=>{class ee extends dt{constructor(J,ve,We){super(J,ve),this._table=We}ngOnChanges(J){super.ngOnChanges(J)}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.TemplateRef),f.\u0275\u0275directiveInject(f.IterableDiffers),f.\u0275\u0275directiveInject(lt,8))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[f.\u0275\u0275InheritDefinitionFeature,f.\u0275\u0275NgOnChangesFeature]}),ee})(),re=(()=>{class ee extends je{constructor(J,ve,We){super(J,ve),this._table=We}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.TemplateRef),f.\u0275\u0275directiveInject(f.IterableDiffers),f.\u0275\u0275directiveInject(lt,8))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),L=(()=>{class ee{constructor(J){this._viewContainer=J,ee.mostRecentCellOutlet=this}ngOnDestroy(){ee.mostRecentCellOutlet===this&&(ee.mostRecentCellOutlet=null)}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.ViewContainerRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkCellOutlet",""]]}),ee.mostRecentCellOutlet=null,ee})(),ce=(()=>{class ee{}return ee.\u0275fac=function(J){return new(J||ee)},ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(J,ve){1&J&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),ae=(()=>{class ee{}return ee.\u0275fac=function(J){return new(J||ee)},ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(J,ve){1&J&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),pe=(()=>{class ee{}return ee.\u0275fac=function(J){return new(J||ee)},ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(J,ve){1&J&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),ke=(()=>{class ee{constructor(J){this.templateRef=J}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.TemplateRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["ng-template","cdkNoDataRow",""]]}),ee})();const ot=["top","bottom","left","right"];class wt{constructor(be,J,ve,We,yt=!0,Tt=!0,we){this._isNativeHtmlTable=be,this._stickCellCss=J,this.direction=ve,this._coalescedStyleScheduler=We,this._isBrowser=yt,this._needsPositionStickyOnElement=Tt,this._positionListener=we,this._cachedCellWidths=[],this._borderCellCss={top:`${J}-border-elem-top`,bottom:`${J}-border-elem-bottom`,left:`${J}-border-elem-left`,right:`${J}-border-elem-right`}}clearStickyPositioning(be,J){const ve=[];for(const We of be)if(We.nodeType===We.ELEMENT_NODE){ve.push(We);for(let yt=0;yt<We.children.length;yt++)ve.push(We.children[yt])}this._coalescedStyleScheduler.schedule(()=>{for(const We of ve)this._removeStickyStyle(We,J)})}updateStickyColumns(be,J,ve,We=!0){if(!be.length||!this._isBrowser||!J.some(Ft=>Ft)&&!ve.some(Ft=>Ft))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const yt=be[0],Tt=yt.children.length,we=this._getCellWidths(yt,We),Ie=this._getStickyStartColumnPositions(we,J),me=this._getStickyEndColumnPositions(we,ve),Ve=J.lastIndexOf(!0),at=ve.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ft="rtl"===this.direction,$t=Ft?"right":"left",qt=Ft?"left":"right";for(const Wt of be)for(let Mn=0;Mn<Tt;Mn++){const gi=Wt.children[Mn];J[Mn]&&this._addStickyStyle(gi,$t,Ie[Mn],Mn===Ve),ve[Mn]&&this._addStickyStyle(gi,qt,me[Mn],Mn===at)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Ve?[]:we.slice(0,Ve+1).map((Wt,Mn)=>J[Mn]?Wt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===at?[]:we.slice(at).map((Wt,Mn)=>ve[Mn+at]?Wt:null).reverse()}))})}stickRows(be,J,ve){if(!this._isBrowser)return;const We="bottom"===ve?be.slice().reverse():be,yt="bottom"===ve?J.slice().reverse():J,Tt=[],we=[],Ie=[];for(let Ve=0,at=0;Ve<We.length;Ve++){if(!yt[Ve])continue;Tt[Ve]=at;const Ft=We[Ve];Ie[Ve]=this._isNativeHtmlTable?Array.from(Ft.children):[Ft];const $t=Ft.getBoundingClientRect().height;at+=$t,we[Ve]=$t}const me=yt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Ve,at;for(let Ft=0;Ft<We.length;Ft++){if(!yt[Ft])continue;const $t=Tt[Ft],qt=Ft===me;for(const Wt of Ie[Ft])this._addStickyStyle(Wt,ve,$t,qt)}"top"===ve?null===(Ve=this._positionListener)||void 0===Ve||Ve.stickyHeaderRowsUpdated({sizes:we,offsets:Tt,elements:Ie}):null===(at=this._positionListener)||void 0===at||at.stickyFooterRowsUpdated({sizes:we,offsets:Tt,elements:Ie})})}updateStickyFooterContainer(be,J){if(!this._isNativeHtmlTable)return;const ve=be.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{J.some(We=>!We)?this._removeStickyStyle(ve,["bottom"]):this._addStickyStyle(ve,"bottom",0,!1)})}_removeStickyStyle(be,J){for(const We of J)be.style[We]="",be.classList.remove(this._borderCellCss[We]);ot.some(We=>-1===J.indexOf(We)&&be.style[We])?be.style.zIndex=this._getCalculatedZIndex(be):(be.style.zIndex="",this._needsPositionStickyOnElement&&(be.style.position=""),be.classList.remove(this._stickCellCss))}_addStickyStyle(be,J,ve,We){be.classList.add(this._stickCellCss),We&&be.classList.add(this._borderCellCss[J]),be.style[J]=`${ve}px`,be.style.zIndex=this._getCalculatedZIndex(be),this._needsPositionStickyOnElement&&(be.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(be){const J={top:100,bottom:10,left:1,right:1};let ve=0;for(const We of ot)be.style[We]&&(ve+=J[We]);return ve?`${ve}`:""}_getCellWidths(be,J=!0){if(!J&&this._cachedCellWidths.length)return this._cachedCellWidths;const ve=[],We=be.children;for(let yt=0;yt<We.length;yt++)ve.push(We[yt].getBoundingClientRect().width);return this._cachedCellWidths=ve,ve}_getStickyStartColumnPositions(be,J){const ve=[];let We=0;for(let yt=0;yt<be.length;yt++)J[yt]&&(ve[yt]=We,We+=be[yt]);return ve}_getStickyEndColumnPositions(be,J){const ve=[];let We=0;for(let yt=be.length;yt>0;yt--)J[yt]&&(ve[yt]=We,We+=be[yt]);return ve}}const x=new f.InjectionToken("CDK_SPL");let R=(()=>{class ee{constructor(J,ve){this.viewContainer=J,this.elementRef=ve}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.ViewContainerRef),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","rowOutlet",""]]}),ee})(),he=(()=>{class ee{constructor(J,ve){this.viewContainer=J,this.elementRef=ve}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.ViewContainerRef),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","headerRowOutlet",""]]}),ee})(),z=(()=>{class ee{constructor(J,ve){this.viewContainer=J,this.elementRef=ve}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.ViewContainerRef),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","footerRowOutlet",""]]}),ee})(),ne=(()=>{class ee{constructor(J,ve){this.viewContainer=J,this.elementRef=ve}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.ViewContainerRef),f.\u0275\u0275directiveInject(f.ElementRef))},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","noDataRowOutlet",""]]}),ee})(),Et=(()=>{class ee{constructor(J,ve,We,yt,Tt,we,Ie,me,Ve,at,Ft){this._differs=J,this._changeDetectorRef=ve,this._elementRef=We,this._dir=Tt,this._platform=Ie,this._viewRepeater=me,this._coalescedStyleScheduler=Ve,this._viewportRuler=at,this._stickyPositioningListener=Ft,this._onDestroy=new D.xQ,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 f.EventEmitter,this.viewChange=new E.X({start:0,end:Number.MAX_VALUE}),yt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=we,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(J){this._trackByFn=J}get dataSource(){return this._dataSource}set dataSource(J){this._dataSource!==J&&this._switchDataSource(J)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(J){this._multiTemplateDataRows=(0,o.Ig)(J),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(J){this._fixedLayout=(0,o.Ig)(J),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((J,ve)=>this.trackBy?this.trackBy(ve.dataIndex,ve.data):ve),this._viewportRuler.change().pipe((0,P.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const ve=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||ve,this._forceRecalculateCellWidths=ve,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.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,l.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const J=this._dataDiffer.diff(this._renderRows);if(!J)return this._updateNoDataRow(),void this.contentChanged.next();const ve=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(J,ve,(We,yt,Tt)=>this._getEmbeddedViewArgs(We.item,Tt),We=>We.item.data,We=>{1===We.operation&&We.context&&this._renderCellTemplateForItem(We.record.item.rowDef,We.context)}),this._updateRowIndexContext(),J.forEachIdentityChange(We=>{ve.get(We.currentIndex).context.$implicit=We.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(J){this._customColumnDefs.add(J)}removeColumnDef(J){this._customColumnDefs.delete(J)}addRowDef(J){this._customRowDefs.add(J)}removeRowDef(J){this._customRowDefs.delete(J)}addHeaderRowDef(J){this._customHeaderRowDefs.add(J),this._headerRowDefChanged=!0}removeHeaderRowDef(J){this._customHeaderRowDefs.delete(J),this._headerRowDefChanged=!0}addFooterRowDef(J){this._customFooterRowDefs.add(J),this._footerRowDefChanged=!0}removeFooterRowDef(J){this._customFooterRowDefs.delete(J),this._footerRowDefChanged=!0}setNoDataRow(J){this._customNoDataRow=J}updateStickyHeaderRowStyles(){const J=this._getRenderedRows(this._headerRowOutlet),We=this._elementRef.nativeElement.querySelector("thead");We&&(We.style.display=J.length?"":"none");const yt=this._headerRowDefs.map(Tt=>Tt.sticky);this._stickyStyler.clearStickyPositioning(J,["top"]),this._stickyStyler.stickRows(J,yt,"top"),this._headerRowDefs.forEach(Tt=>Tt.resetStickyChanged())}updateStickyFooterRowStyles(){const J=this._getRenderedRows(this._footerRowOutlet),We=this._elementRef.nativeElement.querySelector("tfoot");We&&(We.style.display=J.length?"":"none");const yt=this._footerRowDefs.map(Tt=>Tt.sticky);this._stickyStyler.clearStickyPositioning(J,["bottom"]),this._stickyStyler.stickRows(J,yt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,yt),this._footerRowDefs.forEach(Tt=>Tt.resetStickyChanged())}updateStickyColumnStyles(){const J=this._getRenderedRows(this._headerRowOutlet),ve=this._getRenderedRows(this._rowOutlet),We=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...J,...ve,...We],["left","right"]),this._stickyColumnStylesNeedReset=!1),J.forEach((yt,Tt)=>{this._addStickyColumnStyles([yt],this._headerRowDefs[Tt])}),this._rowDefs.forEach(yt=>{const Tt=[];for(let we=0;we<ve.length;we++)this._renderRows[we].rowDef===yt&&Tt.push(ve[we]);this._addStickyColumnStyles(Tt,yt)}),We.forEach((yt,Tt)=>{this._addStickyColumnStyles([yt],this._footerRowDefs[Tt])}),Array.from(this._columnDefsByName.values()).forEach(yt=>yt.resetStickyChanged())}_getAllRenderRows(){const J=[],ve=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let We=0;We<this._data.length;We++){let yt=this._data[We];const Tt=this._getRenderRowsForData(yt,We,ve.get(yt));this._cachedRenderRowsMap.has(yt)||this._cachedRenderRowsMap.set(yt,new WeakMap);for(let we=0;we<Tt.length;we++){let Ie=Tt[we];const me=this._cachedRenderRowsMap.get(Ie.data);me.has(Ie.rowDef)?me.get(Ie.rowDef).push(Ie):me.set(Ie.rowDef,[Ie]),J.push(Ie)}}return J}_getRenderRowsForData(J,ve,We){return this._getRowDefs(J,ve).map(Tt=>{const we=We&&We.has(Tt)?We.get(Tt):[];if(we.length){const Ie=we.shift();return Ie.dataIndex=ve,Ie}return{data:J,rowDef:Tt,dataIndex:ve}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(ve=>{this._columnDefsByName.has(ve.name),this._columnDefsByName.set(ve.name,ve)})}_cacheRowDefs(){this._headerRowDefs=xt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=xt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=xt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const J=this._rowDefs.filter(ve=>!ve.when);this._defaultRowDef=J[0]}_renderUpdatedColumns(){const J=(Tt,we)=>Tt||!!we.getColumnsDiff(),ve=this._rowDefs.reduce(J,!1);ve&&this._forceRenderDataRows();const We=this._headerRowDefs.reduce(J,!1);We&&this._forceRenderHeaderRows();const yt=this._footerRowDefs.reduce(J,!1);return yt&&this._forceRenderFooterRows(),ve||We||yt}_switchDataSource(J){this._data=[],(0,l.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),J||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=J}_observeRenderChanges(){if(!this.dataSource)return;let J;(0,l.Z9)(this.dataSource)?J=this.dataSource.connect(this):(0,M.b)(this.dataSource)?J=this.dataSource:Array.isArray(this.dataSource)&&(J=(0,S.of)(this.dataSource)),this._renderChangeSubscription=J.pipe((0,P.R)(this._onDestroy)).subscribe(ve=>{this._data=ve||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((J,ve)=>this._renderRow(this._headerRowOutlet,J,ve)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((J,ve)=>this._renderRow(this._footerRowOutlet,J,ve)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(J,ve){const We=Array.from(ve.columns||[]).map(we=>this._columnDefsByName.get(we)),yt=We.map(we=>we.sticky),Tt=We.map(we=>we.stickyEnd);this._stickyStyler.updateStickyColumns(J,yt,Tt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(J){const ve=[];for(let We=0;We<J.viewContainer.length;We++){const yt=J.viewContainer.get(We);ve.push(yt.rootNodes[0])}return ve}_getRowDefs(J,ve){if(1==this._rowDefs.length)return[this._rowDefs[0]];let We=[];if(this.multiTemplateDataRows)We=this._rowDefs.filter(yt=>!yt.when||yt.when(ve,J));else{let yt=this._rowDefs.find(Tt=>Tt.when&&Tt.when(ve,J))||this._defaultRowDef;yt&&We.push(yt)}return We}_getEmbeddedViewArgs(J,ve){return{templateRef:J.rowDef.template,context:{$implicit:J.data},index:ve}}_renderRow(J,ve,We,yt={}){const Tt=J.viewContainer.createEmbeddedView(ve.template,yt,We);return this._renderCellTemplateForItem(ve,yt),Tt}_renderCellTemplateForItem(J,ve){for(let We of this._getCellTemplates(J))L.mostRecentCellOutlet&&L.mostRecentCellOutlet._viewContainer.createEmbeddedView(We,ve);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const J=this._rowOutlet.viewContainer;for(let ve=0,We=J.length;ve<We;ve++){const Tt=J.get(ve).context;Tt.count=We,Tt.first=0===ve,Tt.last=ve===We-1,Tt.even=ve%2==0,Tt.odd=!Tt.even,this.multiTemplateDataRows?(Tt.dataIndex=this._renderRows[ve].dataIndex,Tt.renderIndex=ve):Tt.index=this._renderRows[ve].dataIndex}}_getCellTemplates(J){return J&&J.columns?Array.from(J.columns,ve=>{const We=this._columnDefsByName.get(ve);return J.extractCellTemplate(We)}):[]}_applyNativeTableSections(){const J=this._document.createDocumentFragment(),ve=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const We of ve){const yt=this._document.createElement(We.tag);yt.setAttribute("role","rowgroup");for(const Tt of We.outlets)yt.appendChild(Tt.elementRef.nativeElement);J.appendChild(yt)}this._elementRef.nativeElement.appendChild(J)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const J=(ve,We)=>ve||We.hasStickyChanged();this._headerRowDefs.reduce(J,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(J,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(J,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new wt(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,S.of)()).pipe((0,P.R)(this._onDestroy)).subscribe(ve=>{this._stickyStyler.direction=ve,this.updateStickyColumnStyles()})}_getOwnDefs(J){return J.filter(ve=>!ve._table||ve._table===this)}_updateNoDataRow(){const J=this._customNoDataRow||this._noDataRow;if(J){const ve=0===this._rowOutlet.viewContainer.length;if(ve!==this._isShowingNoDataRow){const We=this._noDataRowOutlet.viewContainer;ve?We.createEmbeddedView(J.templateRef):We.clear(),this._isShowingNoDataRow=ve}}}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(f.IterableDiffers),f.\u0275\u0275directiveInject(f.ChangeDetectorRef),f.\u0275\u0275directiveInject(f.ElementRef),f.\u0275\u0275injectAttribute("role"),f.\u0275\u0275directiveInject(_.Is,8),f.\u0275\u0275directiveInject(w.DOCUMENT),f.\u0275\u0275directiveInject(a.t4),f.\u0275\u0275directiveInject(l.k),f.\u0275\u0275directiveInject(st),f.\u0275\u0275directiveInject(C.rL),f.\u0275\u0275directiveInject(x,12))},ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(J,ve,We){if(1&J&&(f.\u0275\u0275contentQuery(We,ke,5),f.\u0275\u0275contentQuery(We,Y,5),f.\u0275\u0275contentQuery(We,re,5),f.\u0275\u0275contentQuery(We,It,5),f.\u0275\u0275contentQuery(We,$,5)),2&J){let yt;f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ve._noDataRow=yt.first),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ve._contentColumnDefs=yt),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ve._contentRowDefs=yt),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ve._contentHeaderRowDefs=yt),f.\u0275\u0275queryRefresh(yt=f.\u0275\u0275loadQuery())&&(ve._contentFooterRowDefs=yt)}},viewQuery:function(J,ve){if(1&J&&(f.\u0275\u0275viewQuery(R,7),f.\u0275\u0275viewQuery(he,7),f.\u0275\u0275viewQuery(z,7),f.\u0275\u0275viewQuery(ne,7)),2&J){let We;f.\u0275\u0275queryRefresh(We=f.\u0275\u0275loadQuery())&&(ve._rowOutlet=We.first),f.\u0275\u0275queryRefresh(We=f.\u0275\u0275loadQuery())&&(ve._headerRowOutlet=We.first),f.\u0275\u0275queryRefresh(We=f.\u0275\u0275loadQuery())&&(ve._footerRowOutlet=We.first),f.\u0275\u0275queryRefresh(We=f.\u0275\u0275loadQuery())&&(ve._noDataRowOutlet=We.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(J,ve){2&J&&f.\u0275\u0275classProp("cdk-table-fixed-layout",ve.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[f.\u0275\u0275ProvidersFeature([{provide:lt,useExisting:ee},{provide:l.k,useClass:l.yy},{provide:st,useClass:ct},{provide:x,useValue:null}])],ngContentSelectors:oe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(J,ve){1&J&&(f.\u0275\u0275projectionDef(j),f.\u0275\u0275projection(0),f.\u0275\u0275projection(1,1),f.\u0275\u0275elementContainer(2,0),f.\u0275\u0275elementContainer(3,1),f.\u0275\u0275elementContainer(4,2),f.\u0275\u0275elementContainer(5,3))},directives:[he,R,ne,z],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),ee})();function xt(ee,be){return ee.concat(Array.from(be))}let Nt=(()=>{class ee{constructor(J,ve){this._table=J,this._options=ve,this.justify="start",this._options=ve||{}}get name(){return this._name}set name(J){this._name=J,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((J,ve)=>J[ve])),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 J=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(J):J[0].toUpperCase()+J.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return ee.\u0275fac=function(J){return new(J||ee)(f.\u0275\u0275directiveInject(Et,8),f.\u0275\u0275directiveInject(Ye,8))},ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-text-column"]],viewQuery:function(J,ve){if(1&J&&(f.\u0275\u0275viewQuery(Y,7),f.\u0275\u0275viewQuery(Me,7),f.\u0275\u0275viewQuery(Oe,7)),2&J){let We;f.\u0275\u0275queryRefresh(We=f.\u0275\u0275loadQuery())&&(ve.columnDef=We.first),f.\u0275\u0275queryRefresh(We=f.\u0275\u0275loadQuery())&&(ve.cell=We.first),f.\u0275\u0275queryRefresh(We=f.\u0275\u0275loadQuery())&&(ve.headerCell=We.first)}},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},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(J,ve){1&J&&(f.\u0275\u0275elementContainerStart(0,0),f.\u0275\u0275template(1,le,2,3,"th",1),f.\u0275\u0275template(2,Ce,2,3,"td",2),f.\u0275\u0275elementContainerEnd())},directives:[Y,Oe,Me,_e,Be],encapsulation:2}),ee})(),Qt=(()=>{class ee{}return ee.\u0275fac=function(J){return new(J||ee)},ee.\u0275mod=f.\u0275\u0275defineNgModule({type:ee}),ee.\u0275inj=f.\u0275\u0275defineInjector({imports:[[C.Cl]]}),ee})();var At=d(2458),Lt=d(6682),jt=d(9112),_n=d(8002);const Xe=[[["caption"]],[["colgroup"],["col"]]],Pt=["caption","colgroup, col"];function V(ee,be){if(1&ee&&(f.\u0275\u0275elementStart(0,"th",3),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&ee){const J=f.\u0275\u0275nextContext();f.\u0275\u0275styleProp("text-align",J.justify),f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate1(" ",J.headerText," ")}}function K(ee,be){if(1&ee&&(f.\u0275\u0275elementStart(0,"td",4),f.\u0275\u0275text(1),f.\u0275\u0275elementEnd()),2&ee){const J=be.$implicit,ve=f.\u0275\u0275nextContext();f.\u0275\u0275styleProp("text-align",ve.justify),f.\u0275\u0275advance(1),f.\u0275\u0275textInterpolate1(" ",ve.dataAccessor(J,ve.name)," ")}}let W=(()=>{class ee{}return ee.\u0275fac=function(J){return new(J||ee)},ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[f.\u0275\u0275ProvidersFeature([{provide:l.k,useClass:l.eX}])]}),ee})(),De=(()=>{class ee extends Et{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(J,ve){2&J&&f.\u0275\u0275classProp("mat-table-fixed-layout",ve.fixedLayout)},exportAs:["matTable"],features:[f.\u0275\u0275ProvidersFeature([{provide:l.k,useClass:l.yy},{provide:Et,useExisting:ee},{provide:lt,useExisting:ee},{provide:st,useClass:ct},{provide:x,useValue:null}]),f.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Pt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(J,ve){1&J&&(f.\u0275\u0275projectionDef(Xe),f.\u0275\u0275projection(0),f.\u0275\u0275projection(1,1),f.\u0275\u0275elementContainer(2,0),f.\u0275\u0275elementContainer(3,1),f.\u0275\u0275elementContainer(4,2),f.\u0275\u0275elementContainer(5,3))},directives:[he,R,ne,z],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-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}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}),ee})(),Ee=(()=>{class ee extends Me{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matCellDef",""]],features:[f.\u0275\u0275ProvidersFeature([{provide:Me,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),Q=(()=>{class ee extends Oe{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matHeaderCellDef",""]],features:[f.\u0275\u0275ProvidersFeature([{provide:Oe,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),Z=(()=>{class ee extends Pe{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matFooterCellDef",""]],features:[f.\u0275\u0275ProvidersFeature([{provide:Pe,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),N=(()=>{class ee extends Y{get name(){return this._name}set name(J){this._setNameInput(J)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[f.\u0275\u0275ProvidersFeature([{provide:Y,useExisting:ee},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),ie=(()=>{class ee extends _e{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),it=(()=>{class ee extends fe{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),_t=(()=>{class ee extends Be{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[f.\u0275\u0275InheritDefinitionFeature]}),ee})(),Ht=(()=>{class ee extends It{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[f.\u0275\u0275ProvidersFeature([{provide:It,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),dn=(()=>{class ee extends ${}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[f.\u0275\u0275ProvidersFeature([{provide:$,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),cn=(()=>{class ee extends re{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[f.\u0275\u0275ProvidersFeature([{provide:re,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),an=(()=>{class ee extends ce{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[f.\u0275\u0275ProvidersFeature([{provide:ce,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(J,ve){1&J&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),un=(()=>{class ee extends ae{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[f.\u0275\u0275ProvidersFeature([{provide:ae,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(J,ve){1&J&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),wn=(()=>{class ee extends pe{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[f.\u0275\u0275ProvidersFeature([{provide:pe,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(J,ve){1&J&&f.\u0275\u0275elementContainer(0,0)},directives:[L],encapsulation:2}),ee})(),yn=(()=>{class ee extends ke{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=f.\u0275\u0275defineDirective({type:ee,selectors:[["ng-template","matNoDataRow",""]],features:[f.\u0275\u0275ProvidersFeature([{provide:ke,useExisting:ee}]),f.\u0275\u0275InheritDefinitionFeature]}),ee})(),mt=(()=>{class ee extends Nt{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=f.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275cmp=f.\u0275\u0275defineComponent({type:ee,selectors:[["mat-text-column"]],features:[f.\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(J,ve){1&J&&(f.\u0275\u0275elementContainerStart(0,0),f.\u0275\u0275template(1,V,2,3,"th",1),f.\u0275\u0275template(2,K,2,3,"td",2),f.\u0275\u0275elementContainerEnd())},directives:[N,Q,Ee,ie,_t],encapsulation:2}),ee})(),Se=(()=>{class ee{}return ee.\u0275fac=function(J){return new(J||ee)},ee.\u0275mod=f.\u0275\u0275defineNgModule({type:ee}),ee.\u0275inj=f.\u0275\u0275defineInjector({imports:[[Qt,At.BQ],At.BQ]}),ee})();class ft extends l.o2{constructor(be=[]){super(),this._renderData=new E.X([]),this._filter=new E.X(""),this._internalPageChanges=new D.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(J,ve)=>{const We=J[ve];if((0,o.t6)(We)){const yt=Number(We);return yt<9007199254740991?yt:We}return We},this.sortData=(J,ve)=>{const We=ve.active,yt=ve.direction;return We&&""!=yt?J.sort((Tt,we)=>{let Ie=this.sortingDataAccessor(Tt,We),me=this.sortingDataAccessor(we,We);const Ve=typeof Ie,at=typeof me;Ve!==at&&("number"===Ve&&(Ie+=""),"number"===at&&(me+=""));let Ft=0;return null!=Ie&&null!=me?Ie>me?Ft=1:Ie<me&&(Ft=-1):null!=Ie?Ft=1:null!=me&&(Ft=-1),Ft*("asc"==yt?1:-1)}):J},this.filterPredicate=(J,ve)=>{const We=Object.keys(J).reduce((Tt,we)=>Tt+J[we]+"\u25ec","").toLowerCase(),yt=ve.trim().toLowerCase();return-1!=We.indexOf(yt)},this._data=new E.X(be),this._updateChangeSubscription()}get data(){return this._data.value}set data(be){this._data.next(be),this._renderChangesSubscription||this._filterData(be)}get filter(){return this._filter.value}set filter(be){this._filter.next(be),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(be){this._sort=be,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(be){this._paginator=be,this._updateChangeSubscription()}_updateChangeSubscription(){var be;const J=this._sort?(0,Lt.T)(this._sort.sortChange,this._sort.initialized):(0,S.of)(null),ve=this._paginator?(0,Lt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,S.of)(null),yt=(0,jt.aj)([this._data,this._filter]).pipe((0,_n.U)(([Ie])=>this._filterData(Ie))),Tt=(0,jt.aj)([yt,J]).pipe((0,_n.U)(([Ie])=>this._orderData(Ie))),we=(0,jt.aj)([Tt,ve]).pipe((0,_n.U)(([Ie])=>this._pageData(Ie)));null===(be=this._renderChangesSubscription)||void 0===be||be.unsubscribe(),this._renderChangesSubscription=we.subscribe(Ie=>this._renderData.next(Ie))}_filterData(be){return this.filteredData=null==this.filter||""===this.filter?be:be.filter(J=>this.filterPredicate(J,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(be){return this.sort?this.sortData(be.slice(),this.sort):be}_pageData(be){if(!this.paginator)return be;const J=this.paginator.pageIndex*this.paginator.pageSize;return be.slice(J,J+this.paginator.pageSize)}_updatePaginator(be){Promise.resolve().then(()=>{const J=this.paginator;if(J&&(J.length=be,J.pageIndex>0)){const ve=Math.ceil(J.length/J.pageSize)-1||0,We=Math.min(J.pageIndex,ve);We!==J.pageIndex&&(J.pageIndex=We,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var be;null===(be=this._renderChangesSubscription)||void 0===be||be.unsubscribe(),this._renderChangesSubscription=null}}class Rt extends ft{}},5939:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_TAB:()=>ae,MAT_TABS_CONFIG:()=>Ke,MAT_TAB_GROUP:()=>ot,MatInkBar:()=>$,MatTab:()=>wt,MatTabBody:()=>q,MatTabBodyPortal:()=>Ue,MatTabChangeEvent:()=>vt,MatTabContent:()=>L,MatTabGroup:()=>F,MatTabHeader:()=>Nt,MatTabLabel:()=>pe,MatTabLabelWrapper:()=>he,MatTabLink:()=>jt,MatTabNav:()=>Qt,MatTabsModule:()=>_n,_MAT_INK_BAR_POSITIONER:()=>Ze,_MatTabBodyBase:()=>He,_MatTabGroupBase:()=>x,_MatTabHeaderBase:()=>xt,_MatTabLinkBase:()=>Lt,_MatTabNavBase:()=>Ut,matTabsAnimations:()=>Je,\u0275angular_material_src_material_tabs_tabs_a:()=>dt,\u0275angular_material_src_material_tabs_tabs_b:()=>ce,\u0275angular_material_src_material_tabs_tabs_c:()=>re,\u0275angular_material_src_material_tabs_tabs_d:()=>Et});var o=d(9238),l=d(8553),f=d(7636),_=d(8583),a=d(7716),C=d(2458),w=d(6237),D=d(9765),g=d(826),E=d(6682),M=d(2759),S=d(5917),P=d(6797),B=d(7238),j=d(9761),oe=d(7519),le=d(6782),Ce=d(9490),$e=d(521),lt=d(6461),Ye=d(946),Me=d(5197);function Oe(Xe,Pt){1&Xe&&a.\u0275\u0275projection(0)}const Pe=["*"];function de(Xe,Pt){}const qe=function(Xe){return{animationDuration:Xe}},Y=function(Xe,Pt){return{value:Xe,params:Pt}},se=["tabBodyWrapper"],_e=["tabHeader"];function fe(Xe,Pt){}function Be(Xe,Pt){if(1&Xe&&a.\u0275\u0275template(0,fe,0,0,"ng-template",9),2&Xe){const V=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275property("cdkPortalOutlet",V.templateLabel)}}function Fe(Xe,Pt){if(1&Xe&&a.\u0275\u0275text(0),2&Xe){const V=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275textInterpolate(V.textLabel)}}function st(Xe,Pt){if(1&Xe){const V=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",6),a.\u0275\u0275listener("click",function(){const W=a.\u0275\u0275restoreView(V),De=W.$implicit,Ee=W.index,Q=a.\u0275\u0275nextContext(),Z=a.\u0275\u0275reference(1);return Q._handleClick(De,Z,Ee)})("cdkFocusChange",function(W){const Ee=a.\u0275\u0275restoreView(V).index;return a.\u0275\u0275nextContext()._tabFocusChanged(W,Ee)}),a.\u0275\u0275elementStart(1,"div",7),a.\u0275\u0275template(2,Be,1,1,"ng-template",8),a.\u0275\u0275template(3,Fe,1,1,"ng-template",8),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()}if(2&Xe){const V=Pt.$implicit,K=Pt.index,W=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("mat-tab-label-active",W.selectedIndex==K),a.\u0275\u0275property("id",W._getTabLabelId(K))("disabled",V.disabled)("matRippleDisabled",V.disabled||W.disableRipple),a.\u0275\u0275attribute("tabIndex",W._getTabIndex(V,K))("aria-posinset",K+1)("aria-setsize",W._tabs.length)("aria-controls",W._getTabContentId(K))("aria-selected",W.selectedIndex==K)("aria-label",V.ariaLabel||null)("aria-labelledby",!V.ariaLabel&&V.ariaLabelledby?V.ariaLabelledby:null),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",V.templateLabel),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!V.templateLabel)}}function ct(Xe,Pt){if(1&Xe){const V=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"mat-tab-body",10),a.\u0275\u0275listener("_onCentered",function(){return a.\u0275\u0275restoreView(V),a.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(W){return a.\u0275\u0275restoreView(V),a.\u0275\u0275nextContext()._setTabBodyWrapperHeight(W)}),a.\u0275\u0275elementEnd()}if(2&Xe){const V=Pt.$implicit,K=Pt.index,W=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("mat-tab-body-active",W.selectedIndex===K),a.\u0275\u0275property("id",W._getTabContentId(K))("content",V.content)("position",V.position)("origin",V.origin)("animationDuration",W.animationDuration),a.\u0275\u0275attribute("tabindex",null!=W.contentTabIndex&&W.selectedIndex===K?W.contentTabIndex:null)("aria-labelledby",W._getTabLabelId(K))}}const Ct=["tabListContainer"],je=["tabList"],rt=["nextPaginator"],ht=["previousPaginator"],It=["mat-tab-nav-bar",""],Ze=new a.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:dt});function dt(){return Pt=>({left:Pt?(Pt.offsetLeft||0)+"px":"0",width:Pt?(Pt.offsetWidth||0)+"px":"0"})}let $=(()=>{class Xe{constructor(V,K,W,De){this._elementRef=V,this._ngZone=K,this._inkBarPositioner=W,this._animationMode=De}alignToElement(V){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(V))}):this._setStyles(V)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(V){const K=this._inkBarPositioner(V),W=this._elementRef.nativeElement;W.style.left=K.left,W.style.width=K.width}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(Ze),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(V,K){2&V&&a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode)}}),Xe})();const re=new a.InjectionToken("MatTabContent");let L=(()=>{class Xe{constructor(V){this.template=V}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.TemplateRef))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,selectors:[["","matTabContent",""]],features:[a.\u0275\u0275ProvidersFeature([{provide:re,useExisting:Xe}])]}),Xe})();const ce=new a.InjectionToken("MatTabLabel"),ae=new a.InjectionToken("MAT_TAB");let pe=(()=>{class Xe extends f.ig{constructor(V,K,W){super(V,K),this._closestTab=W}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.TemplateRef),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(ae,8))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.\u0275\u0275ProvidersFeature([{provide:ce,useExisting:Xe}]),a.\u0275\u0275InheritDefinitionFeature]}),Xe})();const ke=(0,C.Id)(class{}),ot=new a.InjectionToken("MAT_TAB_GROUP");let wt=(()=>{class Xe extends ke{constructor(V,K){super(),this._viewContainerRef=V,this._closestTabGroup=K,this.textLabel="",this._contentPortal=null,this._stateChanges=new D.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(V){this._setTemplateLabelInput(V)}get content(){return this._contentPortal}ngOnChanges(V){(V.hasOwnProperty("textLabel")||V.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new f.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(V){V&&V._closestTab===this&&(this._templateLabel=V)}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(ot,8))},Xe.\u0275cmp=a.\u0275\u0275defineComponent({type:Xe,selectors:[["mat-tab"]],contentQueries:function(V,K,W){if(1&V&&(a.\u0275\u0275contentQuery(W,ce,5),a.\u0275\u0275contentQuery(W,re,7,a.TemplateRef)),2&V){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K.templateLabel=De.first),a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._explicitContent=De.first)}},viewQuery:function(V,K){if(1&V&&a.\u0275\u0275viewQuery(a.TemplateRef,7),2&V){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._implicitContent=W.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.\u0275\u0275ProvidersFeature([{provide:ae,useExisting:Xe}]),a.\u0275\u0275InheritDefinitionFeature,a.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Pe,decls:1,vars:0,template:function(V,K){1&V&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275template(0,Oe,1,0,"ng-template"))},encapsulation:2}),Xe})();const Je={translateTab:(0,B.X$)("translateTab",[(0,B.SB)("center, void, left-origin-center, right-origin-center",(0,B.oB)({transform:"none"})),(0,B.SB)("left",(0,B.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,B.SB)("right",(0,B.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,B.eR)("* => left, * => right, left => center, right => center",(0,B.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,B.eR)("void => left-origin-center",[(0,B.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,B.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,B.eR)("void => right-origin-center",[(0,B.oB)({transform:"translate3d(100%, 0, 0)"}),(0,B.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Ue=(()=>{class Xe extends f.Pl{constructor(V,K,W,De){super(V,K,De),this._host=W,this._centeringSub=g.w.EMPTY,this._leavingSub=g.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,j.O)(this._host._isCenterPosition(this._host._position))).subscribe(V=>{V&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ComponentFactoryResolver),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject((0,a.forwardRef)(()=>q)),a.\u0275\u0275directiveInject(_.DOCUMENT))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,selectors:[["","matTabBodyHost",""]],features:[a.\u0275\u0275InheritDefinitionFeature]}),Xe})(),He=(()=>{class Xe{constructor(V,K,W){this._elementRef=V,this._dir=K,this._dirChangeSubscription=g.w.EMPTY,this._translateTabComplete=new D.xQ,this._onCentering=new a.EventEmitter,this._beforeCentering=new a.EventEmitter,this._afterLeavingCenter=new a.EventEmitter,this._onCentered=new a.EventEmitter(!0),this.animationDuration="500ms",K&&(this._dirChangeSubscription=K.change.subscribe(De=>{this._computePositionAnimationState(De),W.markForCheck()})),this._translateTabComplete.pipe((0,oe.x)((De,Ee)=>De.fromState===Ee.fromState&&De.toState===Ee.toState)).subscribe(De=>{this._isCenterPosition(De.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(De.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(V){this._positionIndex=V,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(V){const K=this._isCenterPosition(V.toState);this._beforeCentering.emit(K),K&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(V){return"center"==V||"left-origin-center"==V||"right-origin-center"==V}_computePositionAnimationState(V=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==V?"left":"right":this._positionIndex>0?"ltr"==V?"right":"left":"center"}_computePositionFromOrigin(V){const K=this._getLayoutDirection();return"ltr"==K&&V<=0||"rtl"==K&&V>0?"left-origin-center":"right-origin-center"}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Ye.Is,8),a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),Xe})(),q=(()=>{class Xe extends He{constructor(V,K,W){super(V,K,W)}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Ye.Is,8),a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},Xe.\u0275cmp=a.\u0275\u0275defineComponent({type:Xe,selectors:[["mat-tab-body"]],viewQuery:function(V,K){if(1&V&&a.\u0275\u0275viewQuery(f.Pl,5),2&V){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._portalHost=W.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(V,K){1&V&&(a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("@translateTab.start",function(De){return K._onTranslateTabStarted(De)})("@translateTab.done",function(De){return K._translateTabComplete.next(De)}),a.\u0275\u0275template(2,de,0,0,"ng-template",2),a.\u0275\u0275elementEnd()),2&V&&a.\u0275\u0275property("@translateTab",a.\u0275\u0275pureFunction2(3,Y,K._position,a.\u0275\u0275pureFunction1(1,qe,K.animationDuration)))},directives:[Ue],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:[Je.translateTab]}}),Xe})();const Ke=new a.InjectionToken("MAT_TABS_CONFIG");let pt=0;class vt{}const Qe=(0,C.pj)((0,C.Kr)(class{constructor(Xe){this._elementRef=Xe}}),"primary");let x=(()=>{class Xe extends Qe{constructor(V,K,W,De){var Ee;super(V),this._changeDetectorRef=K,this._animationMode=De,this._tabs=new a.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=g.w.EMPTY,this._tabLabelSubscription=g.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.EventEmitter,this.focusChange=new a.EventEmitter,this.animationDone=new a.EventEmitter,this.selectedTabChange=new a.EventEmitter(!0),this._groupId=pt++,this.animationDuration=W&&W.animationDuration?W.animationDuration:"500ms",this.disablePagination=!(!W||null==W.disablePagination)&&W.disablePagination,this.dynamicHeight=!(!W||null==W.dynamicHeight)&&W.dynamicHeight,this.contentTabIndex=null!==(Ee=null==W?void 0:W.contentTabIndex)&&void 0!==Ee?Ee:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(V){this._dynamicHeight=(0,Ce.Ig)(V)}get selectedIndex(){return this._selectedIndex}set selectedIndex(V){this._indexToSelect=(0,Ce.su)(V,null)}get animationDuration(){return this._animationDuration}set animationDuration(V){this._animationDuration=/^\d+$/.test(V)?V+"ms":V}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(V){this._contentTabIndex=(0,Ce.su)(V,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(V){const K=this._elementRef.nativeElement;K.classList.remove(`mat-background-${this.backgroundColor}`),V&&K.classList.add(`mat-background-${V}`),this._backgroundColor=V}ngAfterContentChecked(){const V=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=V){const K=null==this._selectedIndex;if(!K){this.selectedTabChange.emit(this._createChangeEvent(V));const W=this._tabBodyWrapper.nativeElement;W.style.minHeight=W.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((W,De)=>W.isActive=De===V),K||(this.selectedIndexChange.emit(V),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((K,W)=>{K.position=W-V,null!=this._selectedIndex&&0==K.position&&!K.origin&&(K.origin=V-this._selectedIndex)}),this._selectedIndex!==V&&(this._selectedIndex=V,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const K=this._tabs.toArray();for(let W=0;W<K.length;W++)if(K[W].isActive){this._indexToSelect=this._selectedIndex=W;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,j.O)(this._allTabs)).subscribe(V=>{this._tabs.reset(V.filter(K=>K._closestTabGroup===this||!K._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(V){const K=this._tabHeader;K&&(K.focusIndex=V)}_focusChanged(V){this.focusChange.emit(this._createChangeEvent(V))}_createChangeEvent(V){const K=new vt;return K.index=V,this._tabs&&this._tabs.length&&(K.tab=this._tabs.toArray()[V]),K}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,E.T)(...this._tabs.map(V=>V._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(V){return Math.min(this._tabs.length-1,Math.max(V||0,0))}_getTabLabelId(V){return`mat-tab-label-${this._groupId}-${V}`}_getTabContentId(V){return`mat-tab-content-${this._groupId}-${V}`}_setTabBodyWrapperHeight(V){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const K=this._tabBodyWrapper.nativeElement;K.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(K.style.height=V+"px")}_removeTabBodyWrapperHeight(){const V=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=V.clientHeight,V.style.height="",this.animationDone.emit()}_handleClick(V,K,W){V.disabled||(this.selectedIndex=K.focusIndex=W)}_getTabIndex(V,K){return V.disabled?null:this.selectedIndex===K?0:-1}_tabFocusChanged(V,K){V&&"mouse"!==V&&"touch"!==V&&(this._tabHeader.focusIndex=K)}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Ke,8),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.\u0275\u0275InheritDefinitionFeature]}),Xe})(),F=(()=>{class Xe extends x{constructor(V,K,W,De){super(V,K,W,De)}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Ke,8),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},Xe.\u0275cmp=a.\u0275\u0275defineComponent({type:Xe,selectors:[["mat-tab-group"]],contentQueries:function(V,K,W){if(1&V&&a.\u0275\u0275contentQuery(W,wt,5),2&V){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._allTabs=De)}},viewQuery:function(V,K){if(1&V&&(a.\u0275\u0275viewQuery(se,5),a.\u0275\u0275viewQuery(_e,5)),2&V){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabBodyWrapper=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabHeader=W.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(V,K){2&V&&a.\u0275\u0275classProp("mat-tab-group-dynamic-height",K.dynamicHeight)("mat-tab-group-inverted-header","below"===K.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.\u0275\u0275ProvidersFeature([{provide:ot,useExisting:Xe}]),a.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(V,K){1&V&&(a.\u0275\u0275elementStart(0,"mat-tab-header",0,1),a.\u0275\u0275listener("indexFocused",function(De){return K._focusChanged(De)})("selectFocusedIndex",function(De){return K.selectedIndex=De}),a.\u0275\u0275template(2,st,4,14,"div",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3,4),a.\u0275\u0275template(5,ct,1,9,"mat-tab-body",5),a.\u0275\u0275elementEnd()),2&V&&(a.\u0275\u0275property("selectedIndex",K.selectedIndex||0)("disableRipple",K.disableRipple)("disablePagination",K.disablePagination),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",K._tabs),a.\u0275\u0275advance(1),a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",K._tabs))},directives:function(){return[Nt,_.NgForOf,he,C.wG,o.kH,_.NgIf,f.Pl,q]},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}),Xe})();const R=(0,C.Id)(class{});let he=(()=>{class Xe extends R{constructor(V){super(),this.elementRef=V}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ElementRef))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(V,K){2&V&&(a.\u0275\u0275attribute("aria-disabled",!!K.disabled),a.\u0275\u0275classProp("mat-tab-disabled",K.disabled))},inputs:{disabled:"disabled"},features:[a.\u0275\u0275InheritDefinitionFeature]}),Xe})();const z=(0,$e.i$)({passive:!0});let Et=(()=>{class Xe{constructor(V,K,W,De,Ee,Q,Z){this._elementRef=V,this._changeDetectorRef=K,this._viewportRuler=W,this._dir=De,this._ngZone=Ee,this._platform=Q,this._animationMode=Z,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new D.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new D.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.EventEmitter,this.indexFocused=new a.EventEmitter,Ee.runOutsideAngular(()=>{(0,M.R)(V.nativeElement,"mouseleave").pipe((0,le.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(V){V=(0,Ce.su)(V),this._selectedIndex!=V&&(this._selectedIndexChanged=!0,this._selectedIndex=V,this._keyManager&&this._keyManager.updateActiveItem(V))}ngAfterViewInit(){(0,M.R)(this._previousPaginator.nativeElement,"touchstart",z).pipe((0,le.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,M.R)(this._nextPaginator.nativeElement,"touchstart",z).pipe((0,le.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const V=this._dir?this._dir.change:(0,S.of)("ltr"),K=this._viewportRuler.change(150),W=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new o.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(W):W(),(0,E.T)(V,K,this._items.changes).pipe((0,le.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(W)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,le.R)(this._destroyed)).subscribe(De=>{this.indexFocused.emit(De),this._setTabFocus(De)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(V){if(!(0,lt.Vb)(V))switch(V.keyCode){case lt.K5:case lt.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(V));break;default:this._keyManager.onKeydown(V)}}_onContentChanges(){const V=this._elementRef.nativeElement.textContent;V!==this._currentTextContent&&(this._currentTextContent=V||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(V){!this._isValidIndex(V)||this.focusIndex===V||!this._keyManager||this._keyManager.setActiveItem(V)}_isValidIndex(V){if(!this._items)return!0;const K=this._items?this._items.toArray()[V]:null;return!!K&&!K.disabled}_setTabFocus(V){if(this._showPaginationControls&&this._scrollToLabel(V),this._items&&this._items.length){this._items.toArray()[V].focus();const K=this._tabListContainer.nativeElement;K.scrollLeft="ltr"==this._getLayoutDirection()?0:K.scrollWidth-K.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const V=this.scrollDistance,K="ltr"===this._getLayoutDirection()?-V:V;this._tabList.nativeElement.style.transform=`translateX(${Math.round(K)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(V){this._scrollTo(V)}_scrollHeader(V){return this._scrollTo(this._scrollDistance+("before"==V?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(V){this._stopInterval(),this._scrollHeader(V)}_scrollToLabel(V){if(this.disablePagination)return;const K=this._items?this._items.toArray()[V]:null;if(!K)return;const W=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:De,offsetWidth:Ee}=K.elementRef.nativeElement;let Q,Z;"ltr"==this._getLayoutDirection()?(Q=De,Z=Q+Ee):(Z=this._tabList.nativeElement.offsetWidth-De,Q=Z-Ee);const N=this.scrollDistance,ie=this.scrollDistance+W;Q<N?this.scrollDistance-=N-Q+60:Z>ie&&(this.scrollDistance+=Z-ie+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const V=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;V||(this.scrollDistance=0),V!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=V}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const V=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,K=V?V.elementRef.nativeElement:null;K?this._inkBar.alignToElement(K):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(V,K){K&&null!=K.button&&0!==K.button||(this._stopInterval(),(0,P.H)(650,100).pipe((0,le.R)((0,E.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:W,distance:De}=this._scrollHeader(V);(0===De||De>=W)&&this._stopInterval()}))}_scrollTo(V){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const K=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(K,V)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:K,distance:this._scrollDistance}}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject(Ye.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,inputs:{disablePagination:"disablePagination"}}),Xe})(),xt=(()=>{class Xe extends Et{constructor(V,K,W,De,Ee,Q,Z){super(V,K,W,De,Ee,Q,Z),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(V){this._disableRipple=(0,Ce.Ig)(V)}_itemSelected(V){V.preventDefault()}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject(Ye.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,inputs:{disableRipple:"disableRipple"},features:[a.\u0275\u0275InheritDefinitionFeature]}),Xe})(),Nt=(()=>{class Xe extends xt{constructor(V,K,W,De,Ee,Q,Z){super(V,K,W,De,Ee,Q,Z)}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject(Ye.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},Xe.\u0275cmp=a.\u0275\u0275defineComponent({type:Xe,selectors:[["mat-tab-header"]],contentQueries:function(V,K,W){if(1&V&&a.\u0275\u0275contentQuery(W,he,4),2&V){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._items=De)}},viewQuery:function(V,K){if(1&V&&(a.\u0275\u0275viewQuery($,7),a.\u0275\u0275viewQuery(Ct,7),a.\u0275\u0275viewQuery(je,7),a.\u0275\u0275viewQuery(rt,5),a.\u0275\u0275viewQuery(ht,5)),2&V){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._inkBar=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabListContainer=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabList=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._nextPaginator=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._previousPaginator=W.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(V,K){2&V&&a.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",K._showPaginationControls)("mat-tab-header-rtl","rtl"==K._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Pe,decls:13,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"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(V,K){1&V&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("click",function(){return K._handlePaginatorClick("before")})("mousedown",function(De){return K._handlePaginatorPress("before",De)})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3,4),a.\u0275\u0275listener("keydown",function(De){return K._handleKeydown(De)}),a.\u0275\u0275elementStart(5,"div",5,6),a.\u0275\u0275listener("cdkObserveContent",function(){return K._onContentChanges()}),a.\u0275\u0275elementStart(7,"div",7),a.\u0275\u0275projection(8),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(9,"mat-ink-bar"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(10,"div",8,9),a.\u0275\u0275listener("mousedown",function(De){return K._handlePaginatorPress("after",De)})("click",function(){return K._handlePaginatorClick("after")})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(12,"div",2),a.\u0275\u0275elementEnd()),2&V&&(a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollBefore),a.\u0275\u0275property("matRippleDisabled",K._disableScrollBefore||K.disableRipple),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollAfter),a.\u0275\u0275property("matRippleDisabled",K._disableScrollAfter||K.disableRipple))},directives:[C.wG,l.wD,$],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;-ms-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;content:"";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}),Xe})(),Ut=(()=>{class Xe extends Et{constructor(V,K,W,De,Ee,Q,Z){super(V,De,Ee,K,W,Q,Z),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(V){const K=this._elementRef.nativeElement.classList;K.remove(`mat-background-${this.backgroundColor}`),V&&K.add(`mat-background-${V}`),this._backgroundColor=V}get disableRipple(){return this._disableRipple}set disableRipple(V){this._disableRipple=(0,Ce.Ig)(V)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,j.O)(null),(0,le.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const V=this._items.toArray();for(let K=0;K<V.length;K++)if(V[K].active)return this.selectedIndex=K,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Ye.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[a.\u0275\u0275InheritDefinitionFeature]}),Xe})(),Qt=(()=>{class Xe extends Ut{constructor(V,K,W,De,Ee,Q,Z){super(V,K,W,De,Ee,Q,Z)}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Ye.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},Xe.\u0275cmp=a.\u0275\u0275defineComponent({type:Xe,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(V,K,W){if(1&V&&a.\u0275\u0275contentQuery(W,jt,5),2&V){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._items=De)}},viewQuery:function(V,K){if(1&V&&(a.\u0275\u0275viewQuery($,7),a.\u0275\u0275viewQuery(Ct,7),a.\u0275\u0275viewQuery(je,7),a.\u0275\u0275viewQuery(rt,5),a.\u0275\u0275viewQuery(ht,5)),2&V){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._inkBar=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabListContainer=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabList=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._nextPaginator=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._previousPaginator=W.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(V,K){2&V&&a.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",K._showPaginationControls)("mat-tab-header-rtl","rtl"==K._getLayoutDirection())("mat-primary","warn"!==K.color&&"accent"!==K.color)("mat-accent","accent"===K.color)("mat-warn","warn"===K.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.\u0275\u0275InheritDefinitionFeature],attrs:It,ngContentSelectors:Pe,decls:13,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"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(V,K){1&V&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("click",function(){return K._handlePaginatorClick("before")})("mousedown",function(De){return K._handlePaginatorPress("before",De)})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3,4),a.\u0275\u0275listener("keydown",function(De){return K._handleKeydown(De)}),a.\u0275\u0275elementStart(5,"div",5,6),a.\u0275\u0275listener("cdkObserveContent",function(){return K._onContentChanges()}),a.\u0275\u0275elementStart(7,"div",7),a.\u0275\u0275projection(8),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(9,"mat-ink-bar"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(10,"div",8,9),a.\u0275\u0275listener("mousedown",function(De){return K._handlePaginatorPress("after",De)})("click",function(){return K._handlePaginatorClick("after")})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(12,"div",2),a.\u0275\u0275elementEnd()),2&V&&(a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollBefore),a.\u0275\u0275property("matRippleDisabled",K._disableScrollBefore||K.disableRipple),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollAfter),a.\u0275\u0275property("matRippleDisabled",K._disableScrollAfter||K.disableRipple))},directives:[C.wG,l.wD,$],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;-ms-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;content:"";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}),Xe})();const At=(0,C.sb)((0,C.Kr)((0,C.Id)(class{})));let Lt=(()=>{class Xe extends At{constructor(V,K,W,De,Ee,Q){super(),this._tabNavBar=V,this.elementRef=K,this._focusMonitor=Ee,this._isActive=!1,this.rippleConfig=W||{},this.tabIndex=parseInt(De)||0,"NoopAnimations"===Q&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(V){(0,Ce.Ig)(V)!==this._isActive&&(this._isActive=V,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(Ut),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(C.Y2,8),a.\u0275\u0275injectAttribute("tabindex"),a.\u0275\u0275directiveInject(o.tE),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,inputs:{active:"active"},features:[a.\u0275\u0275InheritDefinitionFeature]}),Xe})(),jt=(()=>{class Xe extends Lt{constructor(V,K,W,De,Ee,Q,Z,N){super(V,K,Ee,Q,Z,N),this._tabLinkRipple=new C.IR(this,W,K,De),this._tabLinkRipple.setupTriggerEvents(K.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return Xe.\u0275fac=function(V){return new(V||Xe)(a.\u0275\u0275directiveInject(Qt),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(C.Y2,8),a.\u0275\u0275injectAttribute("tabindex"),a.\u0275\u0275directiveInject(o.tE),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},Xe.\u0275dir=a.\u0275\u0275defineDirective({type:Xe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(V,K){1&V&&a.\u0275\u0275listener("focus",function(){return K._handleFocus()}),2&V&&(a.\u0275\u0275attribute("aria-current",K.active?"page":null)("aria-disabled",K.disabled)("tabIndex",K.tabIndex),a.\u0275\u0275classProp("mat-tab-disabled",K.disabled)("mat-tab-label-active",K.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.\u0275\u0275InheritDefinitionFeature]}),Xe})(),_n=(()=>{class Xe{}return Xe.\u0275fac=function(V){return new(V||Xe)},Xe.\u0275mod=a.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=a.\u0275\u0275defineInjector({imports:[[_.CommonModule,C.BQ,f.eL,C.si,l.Q8,o.rt],C.BQ]}),Xe})()},1436:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>Y,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>se,MAT_TOOLTIP_SCROLL_STRATEGY:()=>Pe,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>de,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>qe,MatTooltip:()=>fe,MatTooltipModule:()=>st,SCROLL_THROTTLE_MS:()=>Ce,TOOLTIP_PANEL_CLASS:()=>$e,TooltipComponent:()=>Fe,_MatTooltipBase:()=>_e,_TooltipComponentBase:()=>Be,getMatTooltipInvalidPositionError:()=>Oe,matTooltipAnimations:()=>le});var o=d(625),l=d(9238),f=d(8583),_=d(7716),a=d(2458),C=d(5197),w=d(9490),D=d(6461),g=d(5072),E=d(521),M=d(7636),S=d(9765),P=d(6782),B=d(5257),j=d(7238),oe=d(946);const le={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})))])},Ce=20,$e="mat-tooltip-panel",lt="tooltip-panel",Ye=(0,E.i$)({passive:!0});function Oe(ct){return Error(`Tooltip position "${ct}" is invalid.`)}const Pe=new _.InjectionToken("mat-tooltip-scroll-strategy");function de(ct){return()=>ct.scrollStrategies.reposition({scrollThrottle:Ce})}const qe={provide:Pe,deps:[o.aV],useFactory:de},Y=new _.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:se});function se(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let _e=(()=>{class ct{constructor(je,rt,ht,It,Ze,dt,$,re,L,ce,ae,pe){this._overlay=je,this._elementRef=rt,this._scrollDispatcher=ht,this._viewContainerRef=It,this._ngZone=Ze,this._platform=dt,this._ariaDescriber=$,this._focusMonitor=re,this._dir=ce,this._defaultOptions=ae,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 S.xQ,this._handleKeydown=ke=>{this._isTooltipVisible()&&ke.keyCode===D.hY&&!(0,D.Vb)(ke)&&(ke.preventDefault(),ke.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=L,this._document=pe,ae&&(ae.position&&(this.position=ae.position),ae.touchGestures&&(this.touchGestures=ae.touchGestures)),ce.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),Ze.runOutsideAngular(()=>{rt.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(je){var rt;je!==this._position&&(this._position=je,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(rt=this._tooltipInstance)||void 0===rt||rt.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(je){this._disabled=(0,w.Ig)(je),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(je){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=je?String(je).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(je){this._tooltipClass=je,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,P.R)(this._destroyed)).subscribe(je=>{je?"keyboard"===je&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const je=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),je.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([rt,ht])=>{je.removeEventListener(rt,ht,Ye)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(je,this.message,"tooltip"),this._focusMonitor.stopMonitoring(je)}show(je=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const rt=this._createOverlay();this._detach(),this._portal=this._portal||new M.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=rt.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,P.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(je)}hide(je=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(je)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const je=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),rt=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(je);return rt.positionChanges.pipe((0,P.R)(this._destroyed)).subscribe(ht=>{this._updateCurrentPositionClass(ht.connectionPair),this._tooltipInstance&&ht.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:rt,panelClass:`${this._cssClassPrefix}-${lt}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,P.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,P.R)(this._destroyed)).subscribe(()=>{var ht;return null===(ht=this._tooltipInstance)||void 0===ht?void 0:ht._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(je){const rt=je.getConfig().positionStrategy,ht=this._getOrigin(),It=this._getOverlayPosition();rt.withPositions([this._addOffset(Object.assign(Object.assign({},ht.main),It.main)),this._addOffset(Object.assign(Object.assign({},ht.fallback),It.fallback))])}_addOffset(je){return je}_getOrigin(){const je=!this._dir||"ltr"==this._dir.value,rt=this.position;let ht;"above"==rt||"below"==rt?ht={originX:"center",originY:"above"==rt?"top":"bottom"}:"before"==rt||"left"==rt&&je||"right"==rt&&!je?ht={originX:"start",originY:"center"}:("after"==rt||"right"==rt&&je||"left"==rt&&!je)&&(ht={originX:"end",originY:"center"});const{x:It,y:Ze}=this._invertPosition(ht.originX,ht.originY);return{main:ht,fallback:{originX:It,originY:Ze}}}_getOverlayPosition(){const je=!this._dir||"ltr"==this._dir.value,rt=this.position;let ht;"above"==rt?ht={overlayX:"center",overlayY:"bottom"}:"below"==rt?ht={overlayX:"center",overlayY:"top"}:"before"==rt||"left"==rt&&je||"right"==rt&&!je?ht={overlayX:"end",overlayY:"center"}:("after"==rt||"right"==rt&&je||"left"==rt&&!je)&&(ht={overlayX:"start",overlayY:"center"});const{x:It,y:Ze}=this._invertPosition(ht.overlayX,ht.overlayY);return{main:ht,fallback:{overlayX:It,overlayY:Ze}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,B.q)(1),(0,P.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(je){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=je,this._tooltipInstance._markForCheck())}_invertPosition(je,rt){return"above"===this.position||"below"===this.position?"top"===rt?rt="bottom":"bottom"===rt&&(rt="top"):"end"===je?je="start":"start"===je&&(je="end"),{x:je,y:rt}}_updateCurrentPositionClass(je){const{overlayY:rt,originX:ht,originY:It}=je;let Ze;if(Ze="center"===rt?this._dir&&"rtl"===this._dir.value?"end"===ht?"left":"right":"start"===ht?"left":"right":"bottom"===rt&&"top"===It?"above":"below",Ze!==this._currentPosition){const dt=this._overlayRef;if(dt){const $=`${this._cssClassPrefix}-${lt}-`;dt.removePanelClass($+this._currentPosition),dt.addPanelClass($+Ze)}this._currentPosition=Ze}}_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 je=[];if(this._platformSupportsMouseEvents())je.push(["mouseleave",()=>this.hide()],["wheel",rt=>this._wheelListener(rt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const rt=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};je.push(["touchend",rt],["touchcancel",rt])}this._addListeners(je),this._passiveListeners.push(...je)}_addListeners(je){je.forEach(([rt,ht])=>{this._elementRef.nativeElement.addEventListener(rt,ht,Ye)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(je){if(this._isTooltipVisible()){const rt=this._document.elementFromPoint(je.clientX,je.clientY),ht=this._elementRef.nativeElement;rt!==ht&&!ht.contains(rt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const je=this.touchGestures;if("off"!==je){const rt=this._elementRef.nativeElement,ht=rt.style;("on"===je||"INPUT"!==rt.nodeName&&"TEXTAREA"!==rt.nodeName)&&(ht.userSelect=ht.msUserSelect=ht.webkitUserSelect=ht.MozUserSelect="none"),("on"===je||!rt.draggable)&&(ht.webkitUserDrag="none"),ht.touchAction="none",ht.webkitTapHighlightColor="transparent"}}}return ct.\u0275fac=function(je){return new(je||ct)(_.\u0275\u0275directiveInject(o.aV),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(C.mF),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(E.t4),_.\u0275\u0275directiveInject(l.$s),_.\u0275\u0275directiveInject(l.tE),_.\u0275\u0275directiveInject(void 0),_.\u0275\u0275directiveInject(oe.Is),_.\u0275\u0275directiveInject(void 0),_.\u0275\u0275directiveInject(f.DOCUMENT))},ct.\u0275dir=_.\u0275\u0275defineDirective({type:ct,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),ct})(),fe=(()=>{class ct extends _e{constructor(je,rt,ht,It,Ze,dt,$,re,L,ce,ae,pe){super(je,rt,ht,It,Ze,dt,$,re,L,ce,ae,pe),this._tooltipComponent=Fe}}return ct.\u0275fac=function(je){return new(je||ct)(_.\u0275\u0275directiveInject(o.aV),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(C.mF),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(E.t4),_.\u0275\u0275directiveInject(l.$s),_.\u0275\u0275directiveInject(l.tE),_.\u0275\u0275directiveInject(Pe),_.\u0275\u0275directiveInject(oe.Is,8),_.\u0275\u0275directiveInject(Y,8),_.\u0275\u0275directiveInject(f.DOCUMENT))},ct.\u0275dir=_.\u0275\u0275defineDirective({type:ct,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[_.\u0275\u0275InheritDefinitionFeature]}),ct})(),Be=(()=>{class ct{constructor(je){this._changeDetectorRef=je,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new S.xQ}show(je){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},je)}hide(je){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},je)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(je){const rt=je.toState;"hidden"===rt&&!this.isVisible()&&this._onHide.next(),("visible"===rt||"hidden"===rt)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return ct.\u0275fac=function(je){return new(je||ct)(_.\u0275\u0275directiveInject(_.ChangeDetectorRef))},ct.\u0275dir=_.\u0275\u0275defineDirective({type:ct}),ct})(),Fe=(()=>{class ct extends Be{constructor(je,rt){super(je),this._breakpointObserver=rt,this._isHandset=this._breakpointObserver.observe(g.Breakpoints.Handset)}}return ct.\u0275fac=function(je){return new(je||ct)(_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(g.BreakpointObserver))},ct.\u0275cmp=_.\u0275\u0275defineComponent({type:ct,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(je,rt){2&je&&_.\u0275\u0275styleProp("zoom","visible"===rt._visibility?1:null)},features:[_.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(je,rt){if(1&je&&(_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275listener("@state.start",function(){return rt._animationStart()})("@state.done",function(It){return rt._animationDone(It)}),_.\u0275\u0275pipe(1,"async"),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd()),2&je){let ht;_.\u0275\u0275classProp("mat-tooltip-handset",null==(ht=_.\u0275\u0275pipeBind1(1,5,rt._isHandset))?null:ht.matches),_.\u0275\u0275property("ngClass",rt.tooltipClass)("@state",rt._visibility),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(rt.message)}},directives:[f.NgClass],pipes:[f.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:[le.tooltipState]},changeDetection:0}),ct})(),st=(()=>{class ct{}return ct.\u0275fac=function(je){return new(je||ct)},ct.\u0275mod=_.\u0275\u0275defineNgModule({type:ct}),ct.\u0275inj=_.\u0275\u0275defineInjector({providers:[qe],imports:[[l.rt,f.CommonModule,o.U8,a.BQ],a.BQ,C.ZD]}),ct})()},6237:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{ANIMATION_MODULE_TYPE:()=>pn,BrowserAnimationsModule:()=>yo,NoopAnimationsModule:()=>Vi,\u0275AnimationRenderer:()=>_o,\u0275AnimationRendererFactory:()=>Yt,\u0275BrowserAnimationBuilder:()=>Tn,\u0275BrowserAnimationFactory:()=>Ln,\u0275InjectableAnimationEngine:()=>Rs,\u0275angular_packages_platform_browser_animations_animations_a:()=>ks,\u0275angular_packages_platform_browser_animations_animations_b:()=>Fs,\u0275angular_packages_platform_browser_animations_animations_c:()=>Mt,\u0275angular_packages_platform_browser_animations_animations_d:()=>kn,\u0275angular_packages_platform_browser_animations_animations_e:()=>Fo,\u0275angular_packages_platform_browser_animations_animations_f:()=>io});var o=d(7716),l=d(9075),f=d(7238);function _(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function C(G){switch(G.length){case 0:return new f.ZN;case 1:return G[0];default:return new f.ZE(G)}}function w(G,h,p,I,X={},ge={}){const Te=[],Re=[];let nt=-1,bt=null;if(I.forEach(kt=>{const Vt=kt.offset,nn=Vt==nt,mn=nn&&bt||{};Object.keys(kt).forEach(Gt=>{let en=Gt,hn=kt[Gt];if("offset"!==Gt)switch(en=h.normalizePropertyName(en,Te),hn){case f.k1:hn=X[Gt];break;case f.l3:hn=ge[Gt];break;default:hn=h.normalizeStyleValue(Gt,en,hn,Te)}mn[en]=hn}),nn||Re.push(mn),bt=mn,nt=Vt}),Te.length){const kt="\n - ";throw new Error(`Unable to animate due to the following errors:${kt}${Te.join(kt)}`)}return Re}function D(G,h,p,I){switch(h){case"start":G.onStart(()=>I(p&&g(p,"start",G)));break;case"done":G.onDone(()=>I(p&&g(p,"done",G)));break;case"destroy":G.onDestroy(()=>I(p&&g(p,"destroy",G)))}}function g(G,h,p){const I=p.totalTime,ge=E(G.element,G.triggerName,G.fromState,G.toState,h||G.phaseName,null==I?G.totalTime:I,!!p.disabled),Te=G._data;return null!=Te&&(ge._data=Te),ge}function E(G,h,p,I,X="",ge=0,Te){return{element:G,triggerName:h,fromState:p,toState:I,phaseName:X,totalTime:ge,disabled:!!Te}}function M(G,h,p){let I;return G instanceof Map?(I=G.get(h),I||G.set(h,I=p)):(I=G[h],I||(I=G[h]=p)),I}function S(G){const h=G.indexOf(":");return[G.substring(1,h),G.substr(h+1)]}let P=(G,h)=>!1,j=(G,h)=>!1,le=(G,h,p)=>[];const $e=a();($e||"undefined"!=typeof Element)&&(P=_()?(G,h)=>{for(;h&&h!==document.documentElement;){if(h===G)return!0;h=h.parentNode||h.host}return!1}:(G,h)=>G.contains(h),j=(()=>{if($e||Element.prototype.matches)return(G,h)=>G.matches(h);{const G=Element.prototype,h=G.matchesSelector||G.mozMatchesSelector||G.msMatchesSelector||G.oMatchesSelector||G.webkitMatchesSelector;return h?(p,I)=>h.apply(p,[I]):j}})(),le=(G,h,p)=>{let I=[];if(p){const X=G.querySelectorAll(h);for(let ge=0;ge<X.length;ge++)I.push(X[ge])}else{const X=G.querySelector(h);X&&I.push(X)}return I});let Ye=null,Me=!1;function Oe(G){Ye||(Ye=("undefined"!=typeof document?document.body:null)||{},Me=!!Ye.style&&"WebkitAppearance"in Ye.style);let h=!0;return Ye.style&&!function(G){return"ebkit"==G.substring(1,6)}(G)&&(h=G in Ye.style,!h&&Me&&(h="Webkit"+G.charAt(0).toUpperCase()+G.substr(1)in Ye.style)),h}const de=j,qe=P,Y=le;function se(G){const h={};return Object.keys(G).forEach(p=>{const I=p.replace(/([a-z])([A-Z])/g,"$1-$2");h[I]=G[p]}),h}let _e=(()=>{class G{validateStyleProperty(p){return Oe(p)}matchesElement(p,I){return de(p,I)}containsElement(p,I){return qe(p,I)}query(p,I,X){return Y(p,I,X)}computeStyle(p,I,X){return X||""}animate(p,I,X,ge,Te,Re=[],nt){return new f.ZN(X,ge)}}return G.\u0275fac=function(p){return new(p||G)},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})(),fe=(()=>{class G{}return G.NOOP=new _e,G})();const ct="ng-enter",Ct="ng-leave",ht="ng-trigger",It=".ng-trigger",Ze="ng-animating",dt=".ng-animating";function $(G){if("number"==typeof G)return G;const h=G.match(/^(-?[\.\d]+)(m?s)/);return!h||h.length<2?0:re(parseFloat(h[1]),h[2])}function re(G,h){switch(h){case"s":return 1e3*G;default:return G}}function L(G,h,p){return G.hasOwnProperty("duration")?G:function(G,h,p){let X,ge=0,Te="";if("string"==typeof G){const Re=G.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Re)return h.push(`The provided timing value "${G}" is invalid.`),{duration:0,delay:0,easing:""};X=re(parseFloat(Re[1]),Re[2]);const nt=Re[3];null!=nt&&(ge=re(parseFloat(nt),Re[4]));const bt=Re[5];bt&&(Te=bt)}else X=G;if(!p){let Re=!1,nt=h.length;X<0&&(h.push("Duration values below 0 are not allowed for this animation step."),Re=!0),ge<0&&(h.push("Delay values below 0 are not allowed for this animation step."),Re=!0),Re&&h.splice(nt,0,`The provided timing value "${G}" is invalid.`)}return{duration:X,delay:ge,easing:Te}}(G,h,p)}function ae(G,h={}){return Object.keys(G).forEach(p=>{h[p]=G[p]}),h}function ke(G,h,p={}){if(h)for(let I in G)p[I]=G[I];else ae(G,p);return p}function ot(G,h,p){return p?h+":"+p+";":""}function wt(G){let h="";for(let p=0;p<G.style.length;p++){const I=G.style.item(p);h+=ot(0,I,G.style.getPropertyValue(I))}for(const p in G.style)G.style.hasOwnProperty(p)&&!p.startsWith("_")&&(h+=ot(0,R(p),G.style[p]));G.setAttribute("style",h)}function Je(G,h,p){G.style&&(Object.keys(h).forEach(I=>{const X=F(I);p&&!p.hasOwnProperty(I)&&(p[I]=G.style[X]),G.style[X]=h[I]}),a()&&wt(G))}function Ue(G,h){G.style&&(Object.keys(h).forEach(p=>{const I=F(p);G.style[I]=""}),a()&&wt(G))}function He(G){return Array.isArray(G)?1==G.length?G[0]:(0,f.vP)(G):G}const Ke=new RegExp("{{\\s*(.+?)\\s*}}","g");function pt(G){let h=[];if("string"==typeof G){let p;for(;p=Ke.exec(G);)h.push(p[1]);Ke.lastIndex=0}return h}function vt(G,h,p){const I=G.toString(),X=I.replace(Ke,(ge,Te)=>{let Re=h[Te];return h.hasOwnProperty(Te)||(p.push(`Please provide a value for the animation param ${Te}`),Re=""),Re.toString()});return X==I?G:X}function Qe(G){const h=[];let p=G.next();for(;!p.done;)h.push(p.value),p=G.next();return h}const x=/-+([a-z0-9])/g;function F(G){return G.replace(x,(...h)=>h[1].toUpperCase())}function R(G){return G.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function he(G,h){return 0===G||0===h}function z(G,h,p){const I=Object.keys(p);if(I.length&&h.length){let ge=h[0],Te=[];if(I.forEach(Re=>{ge.hasOwnProperty(Re)||Te.push(Re),ge[Re]=p[Re]}),Te.length)for(var X=1;X<h.length;X++){let Re=h[X];Te.forEach(function(nt){Re[nt]=Le(G,nt)})}}return h}function ne(G,h,p){switch(h.type){case 7:return G.visitTrigger(h,p);case 0:return G.visitState(h,p);case 1:return G.visitTransition(h,p);case 2:return G.visitSequence(h,p);case 3:return G.visitGroup(h,p);case 4:return G.visitAnimate(h,p);case 5:return G.visitKeyframes(h,p);case 6:return G.visitStyle(h,p);case 8:return G.visitReference(h,p);case 9:return G.visitAnimateChild(h,p);case 10:return G.visitAnimateRef(h,p);case 11:return G.visitQuery(h,p);case 12:return G.visitStagger(h,p);default:throw new Error(`Unable to resolve animation metadata node #${h.type}`)}}function Le(G,h){return window.getComputedStyle(G)[h]}function Et(G,h){const p=[];return"string"==typeof G?G.split(/\s*,\s*/).forEach(I=>function(G,h,p){if(":"==G[0]){const nt=function(G,h){switch(G){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,I)=>parseFloat(I)>parseFloat(p);case":decrement":return(p,I)=>parseFloat(I)<parseFloat(p);default:return h.push(`The transition alias value "${G}" is not supported`),"* => *"}}(G,p);if("function"==typeof nt)return void h.push(nt);G=nt}const I=G.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==I||I.length<4)return p.push(`The provided transition expression "${G}" is not supported`),h;const X=I[1],ge=I[2],Te=I[3];h.push(At(X,Te));"<"==ge[0]&&!("*"==X&&"*"==Te)&&h.push(At(Te,X))}(I,p,h)):p.push(G),p}const Ut=new Set(["true","1"]),Qt=new Set(["false","0"]);function At(G,h){const p=Ut.has(G)||Qt.has(G),I=Ut.has(h)||Qt.has(h);return(X,ge)=>{let Te="*"==G||G==X,Re="*"==h||h==ge;return!Te&&p&&"boolean"==typeof X&&(Te=X?Ut.has(G):Qt.has(G)),!Re&&I&&"boolean"==typeof ge&&(Re=ge?Ut.has(h):Qt.has(h)),Te&&Re}}const jt=new RegExp("s*:selfs*,?","g");function _n(G,h,p){return new Pt(G).build(h,p)}class Pt{constructor(h){this._driver=h}build(h,p){const I=new W(p);return this._resetContextStyleTimingState(I),ne(this,He(h),I)}_resetContextStyleTimingState(h){h.currentQuerySelector="",h.collectedStyles={},h.collectedStyles[""]={},h.currentTime=0}visitTrigger(h,p){let I=p.queryCount=0,X=p.depCount=0;const ge=[],Te=[];return"@"==h.name.charAt(0)&&p.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),h.definitions.forEach(Re=>{if(this._resetContextStyleTimingState(p),0==Re.type){const nt=Re,bt=nt.name;bt.toString().split(/\s*,\s*/).forEach(kt=>{nt.name=kt,ge.push(this.visitState(nt,p))}),nt.name=bt}else if(1==Re.type){const nt=this.visitTransition(Re,p);I+=nt.queryCount,X+=nt.depCount,Te.push(nt)}else p.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:h.name,states:ge,transitions:Te,queryCount:I,depCount:X,options:null}}visitState(h,p){const I=this.visitStyle(h.styles,p),X=h.options&&h.options.params||null;if(I.containsDynamicStyles){const ge=new Set,Te=X||{};if(I.styles.forEach(Re=>{if(Ee(Re)){const nt=Re;Object.keys(nt).forEach(bt=>{pt(nt[bt]).forEach(kt=>{Te.hasOwnProperty(kt)||ge.add(kt)})})}}),ge.size){const Re=Qe(ge.values());p.errors.push(`state("${h.name}", ...) must define default values for all the following style substitutions: ${Re.join(", ")}`)}}return{type:0,name:h.name,style:I,options:X?{params:X}:null}}visitTransition(h,p){p.queryCount=0,p.depCount=0;const I=ne(this,He(h.animation),p);return{type:1,matchers:Et(h.expr,p.errors),animation:I,queryCount:p.queryCount,depCount:p.depCount,options:Z(h.options)}}visitSequence(h,p){return{type:2,steps:h.steps.map(I=>ne(this,I,p)),options:Z(h.options)}}visitGroup(h,p){const I=p.currentTime;let X=0;const ge=h.steps.map(Te=>{p.currentTime=I;const Re=ne(this,Te,p);return X=Math.max(X,p.currentTime),Re});return p.currentTime=X,{type:3,steps:ge,options:Z(h.options)}}visitAnimate(h,p){const I=function(G,h){let p=null;if(G.hasOwnProperty("duration"))p=G;else if("number"==typeof G)return N(L(G,h).duration,0,"");const I=G;if(I.split(/\s+/).some(ge=>"{"==ge.charAt(0)&&"{"==ge.charAt(1))){const ge=N(0,0,"");return ge.dynamic=!0,ge.strValue=I,ge}return p=p||L(I,h),N(p.duration,p.delay,p.easing)}(h.timings,p.errors);p.currentAnimateTimings=I;let X,ge=h.styles?h.styles:(0,f.oB)({});if(5==ge.type)X=this.visitKeyframes(ge,p);else{let Te=h.styles,Re=!1;if(!Te){Re=!0;const bt={};I.easing&&(bt.easing=I.easing),Te=(0,f.oB)(bt)}p.currentTime+=I.duration+I.delay;const nt=this.visitStyle(Te,p);nt.isEmptyStep=Re,X=nt}return p.currentAnimateTimings=null,{type:4,timings:I,style:X,options:null}}visitStyle(h,p){const I=this._makeStyleAst(h,p);return this._validateStyleAst(I,p),I}_makeStyleAst(h,p){const I=[];Array.isArray(h.styles)?h.styles.forEach(Te=>{"string"==typeof Te?Te==f.l3?I.push(Te):p.errors.push(`The provided style string value ${Te} is not allowed.`):I.push(Te)}):I.push(h.styles);let X=!1,ge=null;return I.forEach(Te=>{if(Ee(Te)){const Re=Te,nt=Re.easing;if(nt&&(ge=nt,delete Re.easing),!X)for(let bt in Re)if(Re[bt].toString().indexOf("{{")>=0){X=!0;break}}}),{type:6,styles:I,easing:ge,offset:h.offset,containsDynamicStyles:X,options:null}}_validateStyleAst(h,p){const I=p.currentAnimateTimings;let X=p.currentTime,ge=p.currentTime;I&&ge>0&&(ge-=I.duration+I.delay),h.styles.forEach(Te=>{"string"!=typeof Te&&Object.keys(Te).forEach(Re=>{if(!this._driver.validateStyleProperty(Re))return void p.errors.push(`The provided animation property "${Re}" is not a supported CSS property for animations`);const nt=p.collectedStyles[p.currentQuerySelector],bt=nt[Re];let kt=!0;bt&&(ge!=X&&ge>=bt.startTime&&X<=bt.endTime&&(p.errors.push(`The CSS property "${Re}" that exists between the times of "${bt.startTime}ms" and "${bt.endTime}ms" is also being animated in a parallel animation between the times of "${ge}ms" and "${X}ms"`),kt=!1),ge=bt.startTime),kt&&(nt[Re]={startTime:ge,endTime:X}),p.options&&function(G,h,p){const I=h.params||{},X=pt(G);X.length&&X.forEach(ge=>{I.hasOwnProperty(ge)||p.push(`Unable to resolve the local animation param ${ge} in the given list of values`)})}(Te[Re],p.options,p.errors)})})}visitKeyframes(h,p){const I={type:5,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push("keyframes() must be placed inside of a call to animate()"),I;let ge=0;const Te=[];let Re=!1,nt=!1,bt=0;const kt=h.steps.map(Pn=>{const An=this._makeStyleAst(Pn,p);let si=null!=An.offset?An.offset:function(G){if("string"==typeof G)return null;let h=null;if(Array.isArray(G))G.forEach(p=>{if(Ee(p)&&p.hasOwnProperty("offset")){const I=p;h=parseFloat(I.offset),delete I.offset}});else if(Ee(G)&&G.hasOwnProperty("offset")){const p=G;h=parseFloat(p.offset),delete p.offset}return h}(An.styles),zn=0;return null!=si&&(ge++,zn=An.offset=si),nt=nt||zn<0||zn>1,Re=Re||zn<bt,bt=zn,Te.push(zn),An});nt&&p.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),Re&&p.errors.push("Please ensure that all keyframe offsets are in order");const Vt=h.steps.length;let nn=0;ge>0&&ge<Vt?p.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==ge&&(nn=1/(Vt-1));const mn=Vt-1,Gt=p.currentTime,en=p.currentAnimateTimings,hn=en.duration;return kt.forEach((Pn,An)=>{const si=nn>0?An==mn?1:nn*An:Te[An],zn=si*hn;p.currentTime=Gt+en.delay+zn,en.duration=zn,this._validateStyleAst(Pn,p),Pn.offset=si,I.styles.push(Pn)}),I}visitReference(h,p){return{type:8,animation:ne(this,He(h.animation),p),options:Z(h.options)}}visitAnimateChild(h,p){return p.depCount++,{type:9,options:Z(h.options)}}visitAnimateRef(h,p){return{type:10,animation:this.visitReference(h.animation,p),options:Z(h.options)}}visitQuery(h,p){const I=p.currentQuerySelector,X=h.options||{};p.queryCount++,p.currentQuery=h;const[ge,Te]=function(G){const h=!!G.split(/\s*,\s*/).find(p=>":self"==p);return h&&(G=G.replace(jt,"")),[G=G.replace(/@\*/g,It).replace(/@\w+/g,p=>It+"-"+p.substr(1)).replace(/:animating/g,dt),h]}(h.selector);p.currentQuerySelector=I.length?I+" "+ge:ge,M(p.collectedStyles,p.currentQuerySelector,{});const Re=ne(this,He(h.animation),p);return p.currentQuery=null,p.currentQuerySelector=I,{type:11,selector:ge,limit:X.limit||0,optional:!!X.optional,includeSelf:Te,animation:Re,originalSelector:h.selector,options:Z(h.options)}}visitStagger(h,p){p.currentQuery||p.errors.push("stagger() can only be used inside of query()");const I="full"===h.timings?{duration:0,delay:0,easing:"full"}:L(h.timings,p.errors,!0);return{type:12,animation:ne(this,He(h.animation),p),timings:I,options:null}}}class W{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 Ee(G){return!Array.isArray(G)&&"object"==typeof G}function Z(G){return G?(G=ae(G)).params&&(G.params=function(G){return G?ae(G):null}(G.params)):G={},G}function N(G,h,p){return{duration:G,delay:h,easing:p}}function ie(G,h,p,I,X,ge,Te=null,Re=!1){return{type:1,element:G,keyframes:h,preStyleProps:p,postStyleProps:I,duration:X,delay:ge,totalTime:X+ge,easing:Te,subTimeline:Re}}class it{constructor(){this._map=new Map}consume(h){let p=this._map.get(h);return p?this._map.delete(h):p=[],p}append(h,p){let I=this._map.get(h);I||this._map.set(h,I=[]),I.push(...p)}has(h){return this._map.has(h)}clear(){this._map.clear()}}const dn=new RegExp(":enter","g"),an=new RegExp(":leave","g");function un(G,h,p,I,X,ge={},Te={},Re,nt,bt=[]){return(new wn).buildKeyframes(G,h,p,I,X,ge,Te,Re,nt,bt)}class wn{buildKeyframes(h,p,I,X,ge,Te,Re,nt,bt,kt=[]){bt=bt||new it;const Vt=new mt(h,p,bt,X,ge,kt,[]);Vt.options=nt,Vt.currentTimeline.setStyles([Te],null,Vt.errors,nt),ne(this,I,Vt);const nn=Vt.timelines.filter(mn=>mn.containsAnimation());if(nn.length&&Object.keys(Re).length){const mn=nn[nn.length-1];mn.allowOnlyTimelineStyles()||mn.setStyles([Re],null,Vt.errors,nt)}return nn.length?nn.map(mn=>mn.buildKeyframes()):[ie(p,[],[],[],0,0,"",!1)]}visitTrigger(h,p){}visitState(h,p){}visitTransition(h,p){}visitAnimateChild(h,p){const I=p.subInstructions.consume(p.element);if(I){const X=p.createSubContext(h.options),ge=p.currentTimeline.currentTime,Te=this._visitSubInstructions(I,X,X.options);ge!=Te&&p.transformIntoNewTimeline(Te)}p.previousNode=h}visitAnimateRef(h,p){const I=p.createSubContext(h.options);I.transformIntoNewTimeline(),this.visitReference(h.animation,I),p.transformIntoNewTimeline(I.currentTimeline.currentTime),p.previousNode=h}_visitSubInstructions(h,p,I){let ge=p.currentTimeline.currentTime;const Te=null!=I.duration?$(I.duration):null,Re=null!=I.delay?$(I.delay):null;return 0!==Te&&h.forEach(nt=>{const bt=p.appendInstructionToTimeline(nt,Te,Re);ge=Math.max(ge,bt.duration+bt.delay)}),ge}visitReference(h,p){p.updateOptions(h.options,!0),ne(this,h.animation,p),p.previousNode=h}visitSequence(h,p){const I=p.subContextCount;let X=p;const ge=h.options;if(ge&&(ge.params||ge.delay)&&(X=p.createSubContext(ge),X.transformIntoNewTimeline(),null!=ge.delay)){6==X.previousNode.type&&(X.currentTimeline.snapshotCurrentStyles(),X.previousNode=yn);const Te=$(ge.delay);X.delayNextStep(Te)}h.steps.length&&(h.steps.forEach(Te=>ne(this,Te,X)),X.currentTimeline.applyStylesToKeyframe(),X.subContextCount>I&&X.transformIntoNewTimeline()),p.previousNode=h}visitGroup(h,p){const I=[];let X=p.currentTimeline.currentTime;const ge=h.options&&h.options.delay?$(h.options.delay):0;h.steps.forEach(Te=>{const Re=p.createSubContext(h.options);ge&&Re.delayNextStep(ge),ne(this,Te,Re),X=Math.max(X,Re.currentTimeline.currentTime),I.push(Re.currentTimeline)}),I.forEach(Te=>p.currentTimeline.mergeTimelineCollectedStyles(Te)),p.transformIntoNewTimeline(X),p.previousNode=h}_visitTiming(h,p){if(h.dynamic){const I=h.strValue;return L(p.params?vt(I,p.params,p.errors):I,p.errors)}return{duration:h.duration,delay:h.delay,easing:h.easing}}visitAnimate(h,p){const I=p.currentAnimateTimings=this._visitTiming(h.timings,p),X=p.currentTimeline;I.delay&&(p.incrementTime(I.delay),X.snapshotCurrentStyles());const ge=h.style;5==ge.type?this.visitKeyframes(ge,p):(p.incrementTime(I.duration),this.visitStyle(ge,p),X.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=h}visitStyle(h,p){const I=p.currentTimeline,X=p.currentAnimateTimings;!X&&I.getCurrentStyleProperties().length&&I.forwardFrame();const ge=X&&X.easing||h.easing;h.isEmptyStep?I.applyEmptyStep(ge):I.setStyles(h.styles,ge,p.errors,p.options),p.previousNode=h}visitKeyframes(h,p){const I=p.currentAnimateTimings,X=p.currentTimeline.duration,ge=I.duration,Re=p.createSubContext().currentTimeline;Re.easing=I.easing,h.styles.forEach(nt=>{Re.forwardTime((nt.offset||0)*ge),Re.setStyles(nt.styles,nt.easing,p.errors,p.options),Re.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(Re),p.transformIntoNewTimeline(X+ge),p.previousNode=h}visitQuery(h,p){const I=p.currentTimeline.currentTime,X=h.options||{},ge=X.delay?$(X.delay):0;ge&&(6===p.previousNode.type||0==I&&p.currentTimeline.getCurrentStyleProperties().length)&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=yn);let Te=I;const Re=p.invokeQuery(h.selector,h.originalSelector,h.limit,h.includeSelf,!!X.optional,p.errors);p.currentQueryTotal=Re.length;let nt=null;Re.forEach((bt,kt)=>{p.currentQueryIndex=kt;const Vt=p.createSubContext(h.options,bt);ge&&Vt.delayNextStep(ge),bt===p.element&&(nt=Vt.currentTimeline),ne(this,h.animation,Vt),Vt.currentTimeline.applyStylesToKeyframe(),Te=Math.max(Te,Vt.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(Te),nt&&(p.currentTimeline.mergeTimelineCollectedStyles(nt),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=h}visitStagger(h,p){const I=p.parentContext,X=p.currentTimeline,ge=h.timings,Te=Math.abs(ge.duration),Re=Te*(p.currentQueryTotal-1);let nt=Te*p.currentQueryIndex;switch(ge.duration<0?"reverse":ge.easing){case"reverse":nt=Re-nt;break;case"full":nt=I.currentStaggerTime}const kt=p.currentTimeline;nt&&kt.delayNextStep(nt);const Vt=kt.currentTime;ne(this,h.animation,p),p.previousNode=h,I.currentStaggerTime=X.currentTime-Vt+(X.startTime-I.currentTimeline.startTime)}}const yn={};class mt{constructor(h,p,I,X,ge,Te,Re,nt){this._driver=h,this.element=p,this.subInstructions=I,this._enterClassName=X,this._leaveClassName=ge,this.errors=Te,this.timelines=Re,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=nt||new xe(this._driver,p,0),Re.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(h,p){if(!h)return;const I=h;let X=this.options;null!=I.duration&&(X.duration=$(I.duration)),null!=I.delay&&(X.delay=$(I.delay));const ge=I.params;if(ge){let Te=X.params;Te||(Te=this.options.params={}),Object.keys(ge).forEach(Re=>{(!p||!Te.hasOwnProperty(Re))&&(Te[Re]=vt(ge[Re],Te,this.errors))})}}_copyOptions(){const h={};if(this.options){const p=this.options.params;if(p){const I=h.params={};Object.keys(p).forEach(X=>{I[X]=p[X]})}}return h}createSubContext(h=null,p,I){const X=p||this.element,ge=new mt(this._driver,X,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(X,I||0));return ge.previousNode=this.previousNode,ge.currentAnimateTimings=this.currentAnimateTimings,ge.options=this._copyOptions(),ge.updateOptions(h),ge.currentQueryIndex=this.currentQueryIndex,ge.currentQueryTotal=this.currentQueryTotal,ge.parentContext=this,this.subContextCount++,ge}transformIntoNewTimeline(h){return this.previousNode=yn,this.currentTimeline=this.currentTimeline.fork(this.element,h),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(h,p,I){const X={duration:null!=p?p:h.duration,delay:this.currentTimeline.currentTime+(null!=I?I:0)+h.delay,easing:""},ge=new Se(this._driver,h.element,h.keyframes,h.preStyleProps,h.postStyleProps,X,h.stretchStartingKeyframe);return this.timelines.push(ge),X}incrementTime(h){this.currentTimeline.forwardTime(this.currentTimeline.duration+h)}delayNextStep(h){h>0&&this.currentTimeline.delayNextStep(h)}invokeQuery(h,p,I,X,ge,Te){let Re=[];if(X&&Re.push(this.element),h.length>0){h=(h=h.replace(dn,"."+this._enterClassName)).replace(an,"."+this._leaveClassName);let bt=this._driver.query(this.element,h,1!=I);0!==I&&(bt=I<0?bt.slice(bt.length+I,bt.length):bt.slice(0,I)),Re.push(...bt)}return!ge&&0==Re.length&&Te.push(`\`query("${p}")\` returned zero elements. (Use \`query("${p}", { optional: true })\` if you wish to allow this.)`),Re}}class xe{constructor(h,p,I,X){this._driver=h,this.element=p,this.startTime=I,this._elementTimelineStylesLookup=X,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(p),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(p,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(h){const p=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||p?(this.forwardTime(this.currentTime+h),p&&this.snapshotCurrentStyles()):this.startTime+=h}fork(h,p){return this.applyStylesToKeyframe(),new xe(this._driver,h,p||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(h){this.applyStylesToKeyframe(),this.duration=h,this._loadKeyframe()}_updateStyle(h,p){this._localTimelineStyles[h]=p,this._globalTimelineStyles[h]=p,this._styleSummary[h]={time:this.currentTime,value:p}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(h){h&&(this._previousKeyframe.easing=h),Object.keys(this._globalTimelineStyles).forEach(p=>{this._backFill[p]=this._globalTimelineStyles[p]||f.l3,this._currentKeyframe[p]=f.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(h,p,I,X){p&&(this._previousKeyframe.easing=p);const ge=X&&X.params||{},Te=function(G,h){const p={};let I;return G.forEach(X=>{"*"===X?(I=I||Object.keys(h),I.forEach(ge=>{p[ge]=f.l3})):ke(X,!1,p)}),p}(h,this._globalTimelineStyles);Object.keys(Te).forEach(Re=>{const nt=vt(Te[Re],ge,I);this._pendingStyles[Re]=nt,this._localTimelineStyles.hasOwnProperty(Re)||(this._backFill[Re]=this._globalTimelineStyles.hasOwnProperty(Re)?this._globalTimelineStyles[Re]:f.l3),this._updateStyle(Re,nt)})}applyStylesToKeyframe(){const h=this._pendingStyles,p=Object.keys(h);0!=p.length&&(this._pendingStyles={},p.forEach(I=>{this._currentKeyframe[I]=h[I]}),Object.keys(this._localTimelineStyles).forEach(I=>{this._currentKeyframe.hasOwnProperty(I)||(this._currentKeyframe[I]=this._localTimelineStyles[I])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(h=>{const p=this._localTimelineStyles[h];this._pendingStyles[h]=p,this._updateStyle(h,p)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const h=[];for(let p in this._currentKeyframe)h.push(p);return h}mergeTimelineCollectedStyles(h){Object.keys(h._styleSummary).forEach(p=>{const I=this._styleSummary[p],X=h._styleSummary[p];(!I||X.time>I.time)&&this._updateStyle(p,X.value)})}buildKeyframes(){this.applyStylesToKeyframe();const h=new Set,p=new Set,I=1===this._keyframes.size&&0===this.duration;let X=[];this._keyframes.forEach((Re,nt)=>{const bt=ke(Re,!0);Object.keys(bt).forEach(kt=>{const Vt=bt[kt];Vt==f.k1?h.add(kt):Vt==f.l3&&p.add(kt)}),I||(bt.offset=nt/this.duration),X.push(bt)});const ge=h.size?Qe(h.values()):[],Te=p.size?Qe(p.values()):[];if(I){const Re=X[0],nt=ae(Re);Re.offset=0,nt.offset=1,X=[Re,nt]}return ie(this.element,X,ge,Te,this.duration,this.startTime,this.easing,!1)}}class Se extends xe{constructor(h,p,I,X,ge,Te,Re=!1){super(h,p,Te.delay),this.keyframes=I,this.preStyleProps=X,this.postStyleProps=ge,this._stretchStartingKeyframe=Re,this.timings={duration:Te.duration,delay:Te.delay,easing:Te.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let h=this.keyframes,{delay:p,duration:I,easing:X}=this.timings;if(this._stretchStartingKeyframe&&p){const ge=[],Te=I+p,Re=p/Te,nt=ke(h[0],!1);nt.offset=0,ge.push(nt);const bt=ke(h[0],!1);bt.offset=et(Re),ge.push(bt);const kt=h.length-1;for(let Vt=1;Vt<=kt;Vt++){let nn=ke(h[Vt],!1);nn.offset=et((p+nn.offset*I)/Te),ge.push(nn)}I=Te,p=0,X="",h=ge}return ie(this.element,h,this.preStyleProps,this.postStyleProps,I,p,X,!0)}}function et(G,h=3){const p=Math.pow(10,h-1);return Math.round(G*p)/p}class ee{}class J extends ee{normalizePropertyName(h,p){return F(h)}normalizeStyleValue(h,p,I,X){let ge="";const Te=I.toString().trim();if(We[p]&&0!==I&&"0"!==I)if("number"==typeof I)ge="px";else{const Re=I.match(/^[+-]?[\d\.]+([a-z]*)$/);Re&&0==Re[1].length&&X.push(`Please provide a CSS unit value for ${h}:${I}`)}return Te+ge}}const We=(()=>function(G){const h={};return G.forEach(p=>h[p]=!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 Tt(G,h,p,I,X,ge,Te,Re,nt,bt,kt,Vt,nn){return{type:0,element:G,triggerName:h,isRemovalTransition:X,fromState:p,fromStyles:ge,toState:I,toStyles:Te,timelines:Re,queriedElements:nt,preStyleProps:bt,postStyleProps:kt,totalTime:Vt,errors:nn}}const we={};class Ie{constructor(h,p,I){this._triggerName=h,this.ast=p,this._stateStyles=I}match(h,p,I,X){return function(G,h,p,I,X){return G.some(ge=>ge(h,p,I,X))}(this.ast.matchers,h,p,I,X)}buildStyles(h,p,I){const X=this._stateStyles["*"],ge=this._stateStyles[h],Te=X?X.buildStyles(p,I):{};return ge?ge.buildStyles(p,I):Te}build(h,p,I,X,ge,Te,Re,nt,bt,kt){const Vt=[],nn=this.ast.options&&this.ast.options.params||we,Gt=this.buildStyles(I,Re&&Re.params||we,Vt),en=nt&&nt.params||we,hn=this.buildStyles(X,en,Vt),Pn=new Set,An=new Map,si=new Map,zn="void"===X,nr={params:Object.assign(Object.assign({},nn),en)},Pi=kt?[]:un(h,p,this.ast.animation,ge,Te,Gt,hn,nr,bt,Vt);let ri=0;if(Pi.forEach($i=>{ri=Math.max($i.duration+$i.delay,ri)}),Vt.length)return Tt(p,this._triggerName,I,X,zn,Gt,hn,[],[],An,si,ri,Vt);Pi.forEach($i=>{const Ei=$i.element,Ls=M(An,Ei,{});$i.preStyleProps.forEach(Fn=>Ls[Fn]=!0);const vo=M(si,Ei,{});$i.postStyleProps.forEach(Fn=>vo[Fn]=!0),Ei!==p&&Pn.add(Ei)});const Hi=Qe(Pn.values());return Tt(p,this._triggerName,I,X,zn,Gt,hn,Pi,Hi,An,si,ri)}}class Ve{constructor(h,p,I){this.styles=h,this.defaultParams=p,this.normalizer=I}buildStyles(h,p){const I={},X=ae(this.defaultParams);return Object.keys(h).forEach(ge=>{const Te=h[ge];null!=Te&&(X[ge]=Te)}),this.styles.styles.forEach(ge=>{if("string"!=typeof ge){const Te=ge;Object.keys(Te).forEach(Re=>{let nt=Te[Re];nt.length>1&&(nt=vt(nt,X,p));const bt=this.normalizer.normalizePropertyName(Re,p);nt=this.normalizer.normalizeStyleValue(Re,bt,nt,p),I[bt]=nt})}}),I}}class Ft{constructor(h,p,I){this.name=h,this.ast=p,this._normalizer=I,this.transitionFactories=[],this.states={},p.states.forEach(X=>{this.states[X.name]=new Ve(X.style,X.options&&X.options.params||{},I)}),qt(this.states,"true","1"),qt(this.states,"false","0"),p.transitions.forEach(X=>{this.transitionFactories.push(new Ie(h,X,this.states))}),this.fallbackTransition=function(G,h,p){return new Ie(G,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Te,Re)=>!0],options:null,queryCount:0,depCount:0},h)}(h,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(h,p,I,X){return this.transitionFactories.find(Te=>Te.match(h,p,I,X))||null}matchStyles(h,p,I){return this.fallbackTransition.buildStyles(h,p,I)}}function qt(G,h,p){G.hasOwnProperty(h)?G.hasOwnProperty(p)||(G[p]=G[h]):G.hasOwnProperty(p)&&(G[h]=G[p])}const Wt=new it;class Mn{constructor(h,p,I){this.bodyNode=h,this._driver=p,this._normalizer=I,this._animations={},this._playersById={},this.players=[]}register(h,p){const I=[],X=_n(this._driver,p,I);if(I.length)throw new Error(`Unable to build the animation due to the following errors: ${I.join("\n")}`);this._animations[h]=X}_buildPlayer(h,p,I){const X=h.element,ge=w(0,this._normalizer,0,h.keyframes,p,I);return this._driver.animate(X,ge,h.duration,h.delay,h.easing,[],!0)}create(h,p,I={}){const X=[],ge=this._animations[h];let Te;const Re=new Map;if(ge?(Te=un(this._driver,p,ge,ct,Ct,{},{},I,Wt,X),Te.forEach(kt=>{const Vt=M(Re,kt.element,{});kt.postStyleProps.forEach(nn=>Vt[nn]=null)})):(X.push("The requested animation doesn't exist or has already been destroyed"),Te=[]),X.length)throw new Error(`Unable to create the animation due to the following errors: ${X.join("\n")}`);Re.forEach((kt,Vt)=>{Object.keys(kt).forEach(nn=>{kt[nn]=this._driver.computeStyle(Vt,nn,f.l3)})});const bt=C(Te.map(kt=>{const Vt=Re.get(kt.element);return this._buildPlayer(kt,{},Vt)}));return this._playersById[h]=bt,bt.onDestroy(()=>this.destroy(h)),this.players.push(bt),bt}destroy(h){const p=this._getPlayer(h);p.destroy(),delete this._playersById[h];const I=this.players.indexOf(p);I>=0&&this.players.splice(I,1)}_getPlayer(h){const p=this._playersById[h];if(!p)throw new Error(`Unable to find the timeline player referenced by ${h}`);return p}listen(h,p,I,X){const ge=E(p,"","","");return D(this._getPlayer(h),I,ge,X),()=>{}}command(h,p,I,X){if("register"==I)return void this.register(h,X[0]);if("create"==I)return void this.create(h,p,X[0]||{});const ge=this._getPlayer(h);switch(I){case"play":ge.play();break;case"pause":ge.pause();break;case"reset":ge.reset();break;case"restart":ge.restart();break;case"finish":ge.finish();break;case"init":ge.init();break;case"setPosition":ge.setPosition(parseFloat(X[0]));break;case"destroy":this.destroy(h)}}}const gi="ng-animate-queued",li="ng-animate-disabled",qn=".ng-animate-disabled",xn=[],Xi={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ti={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cn="__ng_removed";class Ci{constructor(h,p=""){this.namespaceId=p;const I=h&&h.hasOwnProperty("value");if(this.value=null!=(G=I?h.value:h)?G:null,I){const ge=ae(h);delete ge.value,this.options=ge}else this.options={};var G;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(h){const p=h.params;if(p){const I=this.options.params;Object.keys(p).forEach(X=>{null==I[X]&&(I[X]=p[X])})}}}const ci="void",ui=new Ci(ci);class ni{constructor(h,p,I){this.id=h,this.hostElement=p,this._engine=I,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+h,ii(p,this._hostClassName)}listen(h,p,I,X){if(!this._triggers.hasOwnProperty(p))throw new Error(`Unable to listen on the animation trigger event "${I}" because the animation trigger "${p}" doesn't exist!`);if(null==I||0==I.length)throw new Error(`Unable to listen on the animation trigger "${p}" because the provided event is undefined!`);if("start"!=(G=I)&&"done"!=G)throw new Error(`The provided animation trigger event "${I}" for the animation trigger "${p}" is not supported!`);var G;const ge=M(this._elementListeners,h,[]),Te={name:p,phase:I,callback:X};ge.push(Te);const Re=M(this._engine.statesByElement,h,{});return Re.hasOwnProperty(p)||(ii(h,ht),ii(h,ht+"-"+p),Re[p]=ui),()=>{this._engine.afterFlush(()=>{const nt=ge.indexOf(Te);nt>=0&&ge.splice(nt,1),this._triggers[p]||delete Re[p]})}}register(h,p){return!this._triggers[h]&&(this._triggers[h]=p,!0)}_getTrigger(h){const p=this._triggers[h];if(!p)throw new Error(`The provided animation trigger "${h}" has not been registered!`);return p}trigger(h,p,I,X=!0){const ge=this._getTrigger(p),Te=new kr(this.id,p,h);let Re=this._engine.statesByElement.get(h);Re||(ii(h,ht),ii(h,ht+"-"+p),this._engine.statesByElement.set(h,Re={}));let nt=Re[p];const bt=new Ci(I,this.id);if(!(I&&I.hasOwnProperty("value"))&&nt&&bt.absorbOptions(nt.options),Re[p]=bt,nt||(nt=ui),bt.value!==ci&&nt.value===bt.value){if(!function(G,h){const p=Object.keys(G),I=Object.keys(h);if(p.length!=I.length)return!1;for(let X=0;X<p.length;X++){const ge=p[X];if(!h.hasOwnProperty(ge)||G[ge]!==h[ge])return!1}return!0}(nt.params,bt.params)){const en=[],hn=ge.matchStyles(nt.value,nt.params,en),Pn=ge.matchStyles(bt.value,bt.params,en);en.length?this._engine.reportError(en):this._engine.afterFlush(()=>{Ue(h,hn),Je(h,Pn)})}return}const nn=M(this._engine.playersByElement,h,[]);nn.forEach(en=>{en.namespaceId==this.id&&en.triggerName==p&&en.queued&&en.destroy()});let mn=ge.matchTransition(nt.value,bt.value,h,bt.params),Gt=!1;if(!mn){if(!X)return;mn=ge.fallbackTransition,Gt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:p,transition:mn,fromState:nt,toState:bt,player:Te,isFallbackTransition:Gt}),Gt||(ii(h,gi),Te.onStart(()=>{Ti(h,gi)})),Te.onDone(()=>{let en=this.players.indexOf(Te);en>=0&&this.players.splice(en,1);const hn=this._engine.playersByElement.get(h);if(hn){let Pn=hn.indexOf(Te);Pn>=0&&hn.splice(Pn,1)}}),this.players.push(Te),nn.push(Te),Te}deregister(h){delete this._triggers[h],this._engine.statesByElement.forEach((p,I)=>{delete p[h]}),this._elementListeners.forEach((p,I)=>{this._elementListeners.set(I,p.filter(X=>X.name!=h))})}clearElementCache(h){this._engine.statesByElement.delete(h),this._elementListeners.delete(h);const p=this._engine.playersByElement.get(h);p&&(p.forEach(I=>I.destroy()),this._engine.playersByElement.delete(h))}_signalRemovalForInnerTriggers(h,p){const I=this._engine.driver.query(h,It,!0);I.forEach(X=>{if(X[Cn])return;const ge=this._engine.fetchNamespacesByElement(X);ge.size?ge.forEach(Te=>Te.triggerLeaveAnimation(X,p,!1,!0)):this.clearElementCache(X)}),this._engine.afterFlushAnimationsDone(()=>I.forEach(X=>this.clearElementCache(X)))}triggerLeaveAnimation(h,p,I,X){const ge=this._engine.statesByElement.get(h);if(ge){const Te=[];if(Object.keys(ge).forEach(Re=>{if(this._triggers[Re]){const nt=this.trigger(h,Re,ci,X);nt&&Te.push(nt)}}),Te.length)return this._engine.markElementAsRemoved(this.id,h,!0,p),I&&C(Te).onDone(()=>this._engine.processLeaveNode(h)),!0}return!1}prepareLeaveAnimationListeners(h){const p=this._elementListeners.get(h),I=this._engine.statesByElement.get(h);if(p&&I){const X=new Set;p.forEach(ge=>{const Te=ge.name;if(X.has(Te))return;X.add(Te);const nt=this._triggers[Te].fallbackTransition,bt=I[Te]||ui,kt=new Ci(ci),Vt=new kr(this.id,Te,h);this._engine.totalQueuedPlayers++,this._queue.push({element:h,triggerName:Te,transition:nt,fromState:bt,toState:kt,player:Vt,isFallbackTransition:!0})})}}removeNode(h,p){const I=this._engine;if(h.childElementCount&&this._signalRemovalForInnerTriggers(h,p),this.triggerLeaveAnimation(h,p,!0))return;let X=!1;if(I.totalAnimations){const ge=I.players.length?I.playersByQueriedElement.get(h):[];if(ge&&ge.length)X=!0;else{let Te=h;for(;Te=Te.parentNode;)if(I.statesByElement.get(Te)){X=!0;break}}}if(this.prepareLeaveAnimationListeners(h),X)I.markElementAsRemoved(this.id,h,!1,p);else{const ge=h[Cn];(!ge||ge===Xi)&&(I.afterFlush(()=>this.clearElementCache(h)),I.destroyInnerAnimations(h),I._onRemovalComplete(h,p))}}insertNode(h,p){ii(h,this._hostClassName)}drainQueuedTransitions(h){const p=[];return this._queue.forEach(I=>{const X=I.player;if(X.destroyed)return;const ge=I.element,Te=this._elementListeners.get(ge);Te&&Te.forEach(Re=>{if(Re.name==I.triggerName){const nt=E(ge,I.triggerName,I.fromState.value,I.toState.value);nt._data=h,D(I.player,Re.phase,nt,Re.callback)}}),X.markedForDestroy?this._engine.afterFlush(()=>{X.destroy()}):p.push(I)}),this._queue=[],p.sort((I,X)=>{const ge=I.transition.ast.depCount,Te=X.transition.ast.depCount;return 0==ge||0==Te?ge-Te:this._engine.driver.containsElement(I.element,X.element)?1:-1})}destroy(h){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,h)}elementContainsData(h){let p=!1;return this._elementListeners.has(h)&&(p=!0),p=!!this._queue.find(I=>I.element===h)||p,p}}class Un{constructor(h,p,I){this.bodyNode=h,this.driver=p,this._normalizer=I,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=(X,ge)=>{}}_onRemovalComplete(h,p){this.onRemovalComplete(h,p)}get queuedPlayers(){const h=[];return this._namespaceList.forEach(p=>{p.players.forEach(I=>{I.queued&&h.push(I)})}),h}createNamespace(h,p){const I=new ni(h,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(I,p):(this.newHostElements.set(p,I),this.collectEnterElement(p)),this._namespaceLookup[h]=I}_balanceNamespaceList(h,p){const I=this._namespaceList.length-1;if(I>=0){let X=!1;for(let ge=I;ge>=0;ge--)if(this.driver.containsElement(this._namespaceList[ge].hostElement,p)){this._namespaceList.splice(ge+1,0,h),X=!0;break}X||this._namespaceList.splice(0,0,h)}else this._namespaceList.push(h);return this.namespacesByHostElement.set(p,h),h}register(h,p){let I=this._namespaceLookup[h];return I||(I=this.createNamespace(h,p)),I}registerTrigger(h,p,I){let X=this._namespaceLookup[h];X&&X.register(p,I)&&this.totalAnimations++}destroy(h,p){if(!h)return;const I=this._fetchNamespace(h);this.afterFlush(()=>{this.namespacesByHostElement.delete(I.hostElement),delete this._namespaceLookup[h];const X=this._namespaceList.indexOf(I);X>=0&&this._namespaceList.splice(X,1)}),this.afterFlushAnimationsDone(()=>I.destroy(p))}_fetchNamespace(h){return this._namespaceLookup[h]}fetchNamespacesByElement(h){const p=new Set,I=this.statesByElement.get(h);if(I){const X=Object.keys(I);for(let ge=0;ge<X.length;ge++){const Te=I[X[ge]].namespaceId;if(Te){const Re=this._fetchNamespace(Te);Re&&p.add(Re)}}}return p}trigger(h,p,I,X){if(gr(p)){const ge=this._fetchNamespace(h);if(ge)return ge.trigger(p,I,X),!0}return!1}insertNode(h,p,I,X){if(!gr(p))return;const ge=p[Cn];if(ge&&ge.setForRemoval){ge.setForRemoval=!1,ge.setForMove=!0;const Te=this.collectedLeaveElements.indexOf(p);Te>=0&&this.collectedLeaveElements.splice(Te,1)}if(h){const Te=this._fetchNamespace(h);Te&&Te.insertNode(p,I)}X&&this.collectEnterElement(p)}collectEnterElement(h){this.collectedEnterElements.push(h)}markElementAsDisabled(h,p){p?this.disabledNodes.has(h)||(this.disabledNodes.add(h),ii(h,li)):this.disabledNodes.has(h)&&(this.disabledNodes.delete(h),Ti(h,li))}removeNode(h,p,I,X){if(gr(p)){const ge=h?this._fetchNamespace(h):null;if(ge?ge.removeNode(p,X):this.markElementAsRemoved(h,p,!1,X),I){const Te=this.namespacesByHostElement.get(p);Te&&Te.id!==h&&Te.removeNode(p,X)}}else this._onRemovalComplete(p,X)}markElementAsRemoved(h,p,I,X){this.collectedLeaveElements.push(p),p[Cn]={namespaceId:h,setForRemoval:X,hasAnimation:I,removedBeforeQueried:!1}}listen(h,p,I,X,ge){return gr(p)?this._fetchNamespace(h).listen(p,I,X,ge):()=>{}}_buildInstruction(h,p,I,X,ge){return h.transition.build(this.driver,h.element,h.fromState.value,h.toState.value,I,X,h.fromState.options,h.toState.options,p,ge)}destroyInnerAnimations(h){let p=this.driver.query(h,It,!0);p.forEach(I=>this.destroyActiveAnimationsForElement(I)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(h,dt,!0),p.forEach(I=>this.finishActiveQueriedAnimationOnElement(I)))}destroyActiveAnimationsForElement(h){const p=this.playersByElement.get(h);p&&p.forEach(I=>{I.queued?I.markedForDestroy=!0:I.destroy()})}finishActiveQueriedAnimationOnElement(h){const p=this.playersByQueriedElement.get(h);p&&p.forEach(I=>I.finish())}whenRenderingDone(){return new Promise(h=>{if(this.players.length)return C(this.players).onDone(()=>h());h()})}processLeaveNode(h){const p=h[Cn];if(p&&p.setForRemoval){if(h[Cn]=Xi,p.namespaceId){this.destroyInnerAnimations(h);const I=this._fetchNamespace(p.namespaceId);I&&I.clearElementCache(h)}this._onRemovalComplete(h,p.setForRemoval)}this.driver.matchesElement(h,qn)&&this.markElementAsDisabled(h,!1),this.driver.query(h,qn,!0).forEach(I=>{this.markElementAsDisabled(I,!1)})}flush(h=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((I,X)=>this._balanceNamespaceList(I,X)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let I=0;I<this.collectedEnterElements.length;I++)ii(this.collectedEnterElements[I],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const I=[];try{p=this._flushAnimations(I,h)}finally{for(let X=0;X<I.length;X++)I[X]()}}else for(let I=0;I<this.collectedLeaveElements.length;I++)this.processLeaveNode(this.collectedLeaveElements[I]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(I=>I()),this._flushFns=[],this._whenQuietFns.length){const I=this._whenQuietFns;this._whenQuietFns=[],p.length?C(p).onDone(()=>{I.forEach(X=>X())}):I.forEach(X=>X())}}reportError(h){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${h.join("\n")}`)}_flushAnimations(h,p){const I=new it,X=[],ge=new Map,Te=[],Re=new Map,nt=new Map,bt=new Map,kt=new Set;this.disabledNodes.forEach(Bt=>{kt.add(Bt);const Kt=this.driver.query(Bt,".ng-animate-queued",!0);for(let tn=0;tn<Kt.length;tn++)kt.add(Kt[tn])});const Vt=this.bodyNode,nn=Array.from(this.statesByElement.keys()),mn=to(nn,this.collectedEnterElements),Gt=new Map;let en=0;mn.forEach((Bt,Kt)=>{const tn=ct+en++;Gt.set(Kt,tn),Bt.forEach(vn=>ii(vn,tn))});const hn=[],Pn=new Set,An=new Set;for(let Bt=0;Bt<this.collectedLeaveElements.length;Bt++){const Kt=this.collectedLeaveElements[Bt],tn=Kt[Cn];tn&&tn.setForRemoval&&(hn.push(Kt),Pn.add(Kt),tn.hasAnimation?this.driver.query(Kt,".ng-star-inserted",!0).forEach(vn=>Pn.add(vn)):An.add(Kt))}const si=new Map,zn=to(nn,Array.from(Pn));zn.forEach((Bt,Kt)=>{const tn=Ct+en++;si.set(Kt,tn),Bt.forEach(vn=>ii(vn,tn))}),h.push(()=>{mn.forEach((Bt,Kt)=>{const tn=Gt.get(Kt);Bt.forEach(vn=>Ti(vn,tn))}),zn.forEach((Bt,Kt)=>{const tn=si.get(Kt);Bt.forEach(vn=>Ti(vn,tn))}),hn.forEach(Bt=>{this.processLeaveNode(Bt)})});const nr=[],Pi=[];for(let Bt=this._namespaceList.length-1;Bt>=0;Bt--)this._namespaceList[Bt].drainQueuedTransitions(p).forEach(tn=>{const vn=tn.player,Wn=tn.element;if(nr.push(vn),this.collectedEnterElements.length){const Oi=Wn[Cn];if(Oi&&Oi.setForMove)return void vn.destroy()}const Ui=!Vt||!this.driver.containsElement(Vt,Wn),oi=si.get(Wn),Ai=Gt.get(Wn),Sn=this._buildInstruction(tn,I,Ai,oi,Ui);if(Sn.errors&&Sn.errors.length)Pi.push(Sn);else{if(Ui)return vn.onStart(()=>Ue(Wn,Sn.fromStyles)),vn.onDestroy(()=>Je(Wn,Sn.toStyles)),void X.push(vn);if(tn.isFallbackTransition)return vn.onStart(()=>Ue(Wn,Sn.fromStyles)),vn.onDestroy(()=>Je(Wn,Sn.toStyles)),void X.push(vn);Sn.timelines.forEach(Oi=>Oi.stretchStartingKeyframe=!0),I.append(Wn,Sn.timelines),Te.push({instruction:Sn,player:vn,element:Wn}),Sn.queriedElements.forEach(Oi=>M(Re,Oi,[]).push(vn)),Sn.preStyleProps.forEach((Oi,bo)=>{const xi=Object.keys(Oi);if(xi.length){let Ri=nt.get(bo);Ri||nt.set(bo,Ri=new Set),xi.forEach(Bs=>Ri.add(Bs))}}),Sn.postStyleProps.forEach((Oi,bo)=>{const xi=Object.keys(Oi);let Ri=bt.get(bo);Ri||bt.set(bo,Ri=new Set),xi.forEach(Bs=>Ri.add(Bs))})}});if(Pi.length){const Bt=[];Pi.forEach(Kt=>{Bt.push(`@${Kt.triggerName} has failed due to:\n`),Kt.errors.forEach(tn=>Bt.push(`- ${tn}\n`))}),nr.forEach(Kt=>Kt.destroy()),this.reportError(Bt)}const ri=new Map,Hi=new Map;Te.forEach(Bt=>{const Kt=Bt.element;I.has(Kt)&&(Hi.set(Kt,Kt),this._beforeAnimationBuild(Bt.player.namespaceId,Bt.instruction,ri))}),X.forEach(Bt=>{const Kt=Bt.element;this._getPreviousPlayers(Kt,!1,Bt.namespaceId,Bt.triggerName,null).forEach(vn=>{M(ri,Kt,[]).push(vn),vn.destroy()})});const $i=hn.filter(Bt=>jr(Bt,nt,bt)),Ei=new Map;eo(Ei,this.driver,An,bt,f.l3).forEach(Bt=>{jr(Bt,nt,bt)&&$i.push(Bt)});const vo=new Map;mn.forEach((Bt,Kt)=>{eo(vo,this.driver,new Set(Bt),nt,f.k1)}),$i.forEach(Bt=>{const Kt=Ei.get(Bt),tn=vo.get(Bt);Ei.set(Bt,Object.assign(Object.assign({},Kt),tn))});const Fn=[],ir=[],On={};Te.forEach(Bt=>{const{element:Kt,player:tn,instruction:vn}=Bt;if(I.has(Kt)){if(kt.has(Kt))return tn.onDestroy(()=>Je(Kt,vn.toStyles)),tn.disabled=!0,tn.overrideTotalTime(vn.totalTime),void X.push(tn);let Wn=On;if(Hi.size>1){let oi=Kt;const Ai=[];for(;oi=oi.parentNode;){const Sn=Hi.get(oi);if(Sn){Wn=Sn;break}Ai.push(oi)}Ai.forEach(Sn=>Hi.set(Sn,Wn))}const Ui=this._buildAnimation(tn.namespaceId,vn,ri,ge,vo,Ei);if(tn.setRealPlayer(Ui),Wn===On)Fn.push(tn);else{const oi=this.playersByElement.get(Wn);oi&&oi.length&&(tn.parentPlayer=C(oi)),X.push(tn)}}else Ue(Kt,vn.fromStyles),tn.onDestroy(()=>Je(Kt,vn.toStyles)),ir.push(tn),kt.has(Kt)&&X.push(tn)}),ir.forEach(Bt=>{const Kt=ge.get(Bt.element);if(Kt&&Kt.length){const tn=C(Kt);Bt.setRealPlayer(tn)}}),X.forEach(Bt=>{Bt.parentPlayer?Bt.syncPlayerEvents(Bt.parentPlayer):Bt.destroy()});for(let Bt=0;Bt<hn.length;Bt++){const Kt=hn[Bt],tn=Kt[Cn];if(Ti(Kt,Ct),tn&&tn.hasAnimation)continue;let vn=[];if(Re.size){let Ui=Re.get(Kt);Ui&&Ui.length&&vn.push(...Ui);let oi=this.driver.query(Kt,dt,!0);for(let Ai=0;Ai<oi.length;Ai++){let Sn=Re.get(oi[Ai]);Sn&&Sn.length&&vn.push(...Sn)}}const Wn=vn.filter(Ui=>!Ui.destroyed);Wn.length?mo(this,Kt,Wn):this.processLeaveNode(Kt)}return hn.length=0,Fn.forEach(Bt=>{this.players.push(Bt),Bt.onDone(()=>{Bt.destroy();const Kt=this.players.indexOf(Bt);this.players.splice(Kt,1)}),Bt.play()}),Fn}elementContainsData(h,p){let I=!1;const X=p[Cn];return X&&X.setForRemoval&&(I=!0),this.playersByElement.has(p)&&(I=!0),this.playersByQueriedElement.has(p)&&(I=!0),this.statesByElement.has(p)&&(I=!0),this._fetchNamespace(h).elementContainsData(p)||I}afterFlush(h){this._flushFns.push(h)}afterFlushAnimationsDone(h){this._whenQuietFns.push(h)}_getPreviousPlayers(h,p,I,X,ge){let Te=[];if(p){const Re=this.playersByQueriedElement.get(h);Re&&(Te=Re)}else{const Re=this.playersByElement.get(h);if(Re){const nt=!ge||ge==ci;Re.forEach(bt=>{bt.queued||!nt&&bt.triggerName!=X||Te.push(bt)})}}return(I||X)&&(Te=Te.filter(Re=>!(I&&I!=Re.namespaceId||X&&X!=Re.triggerName))),Te}_beforeAnimationBuild(h,p,I){const ge=p.element,Te=p.isRemovalTransition?void 0:h,Re=p.isRemovalTransition?void 0:p.triggerName;for(const nt of p.timelines){const bt=nt.element,kt=bt!==ge,Vt=M(I,bt,[]);this._getPreviousPlayers(bt,kt,Te,Re,p.toState).forEach(mn=>{const Gt=mn.getRealPlayer();Gt.beforeDestroy&&Gt.beforeDestroy(),mn.destroy(),Vt.push(mn)})}Ue(ge,p.fromStyles)}_buildAnimation(h,p,I,X,ge,Te){const Re=p.triggerName,nt=p.element,bt=[],kt=new Set,Vt=new Set,nn=p.timelines.map(Gt=>{const en=Gt.element;kt.add(en);const hn=en[Cn];if(hn&&hn.removedBeforeQueried)return new f.ZN(Gt.duration,Gt.delay);const Pn=en!==nt,An=function(G){const h=[];return _r(G,h),h}((I.get(en)||xn).map(ri=>ri.getRealPlayer())).filter(ri=>!!ri.element&&ri.element===en),si=ge.get(en),zn=Te.get(en),nr=w(0,this._normalizer,0,Gt.keyframes,si,zn),Pi=this._buildPlayer(Gt,nr,An);if(Gt.subTimeline&&X&&Vt.add(en),Pn){const ri=new kr(h,Re,en);ri.setRealPlayer(Pi),bt.push(ri)}return Pi});bt.forEach(Gt=>{M(this.playersByQueriedElement,Gt.element,[]).push(Gt),Gt.onDone(()=>function(G,h,p){let I;if(G instanceof Map){if(I=G.get(h),I){if(I.length){const X=I.indexOf(p);I.splice(X,1)}0==I.length&&G.delete(h)}}else if(I=G[h],I){if(I.length){const X=I.indexOf(p);I.splice(X,1)}0==I.length&&delete G[h]}return I}(this.playersByQueriedElement,Gt.element,Gt))}),kt.forEach(Gt=>ii(Gt,Ze));const mn=C(nn);return mn.onDestroy(()=>{kt.forEach(Gt=>Ti(Gt,Ze)),Je(nt,p.toStyles)}),Vt.forEach(Gt=>{M(X,Gt,[]).push(mn)}),mn}_buildPlayer(h,p,I){return p.length>0?this.driver.animate(h.element,p,h.duration,h.delay,h.easing,I):new f.ZN(h.duration,h.delay)}}class kr{constructor(h,p,I){this.namespaceId=h,this.triggerName=p,this.element=I,this._player=new f.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(p=>{this._queuedCallbacks[p].forEach(I=>D(h,p,void 0,I))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(h.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(h){this.totalTime=h}syncPlayerEvents(h){const p=this._player;p.triggerCallback&&h.onStart(()=>p.triggerCallback("start")),h.onDone(()=>this.finish()),h.onDestroy(()=>this.destroy())}_queueEvent(h,p){M(this._queuedCallbacks,h,[]).push(p)}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 p=this._player;p.triggerCallback&&p.triggerCallback(h)}}function gr(G){return G&&1===G.nodeType}function Nr(G,h){const p=G.style.display;return G.style.display=null!=h?h:"none",p}function eo(G,h,p,I,X){const ge=[];p.forEach(nt=>ge.push(Nr(nt)));const Te=[];I.forEach((nt,bt)=>{const kt={};nt.forEach(Vt=>{const nn=kt[Vt]=h.computeStyle(bt,Vt,X);(!nn||0==nn.length)&&(bt[Cn]=ti,Te.push(bt))}),G.set(bt,kt)});let Re=0;return p.forEach(nt=>Nr(nt,ge[Re++])),Te}function to(G,h){const p=new Map;if(G.forEach(Re=>p.set(Re,[])),0==h.length)return p;const X=new Set(h),ge=new Map;function Te(Re){if(!Re)return 1;let nt=ge.get(Re);if(nt)return nt;const bt=Re.parentNode;return nt=p.has(bt)?bt:X.has(bt)?1:Te(bt),ge.set(Re,nt),nt}return h.forEach(Re=>{const nt=Te(Re);1!==nt&&p.get(nt).push(Re)}),p}const Di="$$classes";function ii(G,h){if(G.classList)G.classList.add(h);else{let p=G[Di];p||(p=G[Di]={}),p[h]=!0}}function Ti(G,h){if(G.classList)G.classList.remove(h);else{let p=G[Di];p&&delete p[h]}}function mo(G,h,p){C(p).onDone(()=>G.processLeaveNode(h))}function _r(G,h){for(let p=0;p<G.length;p++){const I=G[p];I instanceof f.ZE?_r(I.players,h):h.push(I)}}function jr(G,h,p){const I=p.get(G);if(!I)return!1;let X=h.get(G);return X?I.forEach(ge=>X.add(ge)):h.set(G,I),p.delete(G),!0}class wi{constructor(h,p,I){this.bodyNode=h,this._driver=p,this._normalizer=I,this._triggerCache={},this.onRemovalComplete=(X,ge)=>{},this._transitionEngine=new Un(h,p,I),this._timelineEngine=new Mn(h,p,I),this._transitionEngine.onRemovalComplete=(X,ge)=>this.onRemovalComplete(X,ge)}registerTrigger(h,p,I,X,ge){const Te=h+"-"+X;let Re=this._triggerCache[Te];if(!Re){const nt=[],bt=_n(this._driver,ge,nt);if(nt.length)throw new Error(`The animation trigger "${X}" has failed to build due to the following errors:\n - ${nt.join("\n - ")}`);Re=function(G,h,p){return new Ft(G,h,p)}(X,bt,this._normalizer),this._triggerCache[Te]=Re}this._transitionEngine.registerTrigger(p,X,Re)}register(h,p){this._transitionEngine.register(h,p)}destroy(h,p){this._transitionEngine.destroy(h,p)}onInsert(h,p,I,X){this._transitionEngine.insertNode(h,p,I,X)}onRemove(h,p,I,X){this._transitionEngine.removeNode(h,p,X||!1,I)}disableAnimations(h,p){this._transitionEngine.markElementAsDisabled(h,p)}process(h,p,I,X){if("@"==I.charAt(0)){const[ge,Te]=S(I);this._timelineEngine.command(ge,p,Te,X)}else this._transitionEngine.trigger(h,p,I,X)}listen(h,p,I,X,ge){if("@"==I.charAt(0)){const[Te,Re]=S(I);return this._timelineEngine.listen(Te,p,Re,ge)}return this._transitionEngine.listen(h,p,I,X,ge)}flush(h=-1){this._transitionEngine.flush(h)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Li(G,h){let p=null,I=null;return Array.isArray(h)&&h.length?(p=qi(h[0]),h.length>1&&(I=qi(h[h.length-1]))):h&&(p=qi(h)),p||I?new Br(G,p,I):null}let Br=(()=>{class G{constructor(p,I,X){this._element=p,this._startStyles=I,this._endStyles=X,this._state=0;let ge=G.initialStylesByElement.get(p);ge||G.initialStylesByElement.set(p,ge={}),this._initialStyles=ge}start(){this._state<1&&(this._startStyles&&Je(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Je(this._element,this._initialStyles),this._endStyles&&(Je(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(G.initialStylesByElement.delete(this._element),this._startStyles&&(Ue(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ue(this._element,this._endStyles),this._endStyles=null),Je(this._element,this._initialStyles),this._state=3)}}return G.initialStylesByElement=new WeakMap,G})();function qi(G){let h=null;const p=Object.keys(G);for(let I=0;I<p.length;I++){const X=p[I];yr(X)&&(h=h||{},h[X]=G[X])}return h}function yr(G){return"display"===G||"position"===G}const er="animation",Mi="animationend";class Vr{constructor(h,p,I,X,ge,Te,Re){this._element=h,this._name=p,this._duration=I,this._delay=X,this._easing=ge,this._fillMode=Te,this._onDoneFn=Re,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=nt=>this._handleCallback(nt)}apply(){(function(G,h){const p=Cr(G,"").trim();let I=0;p.length&&(function(G,h){let p=0;for(let I=0;I<G.length;I++)","===G.charAt(I)&&p++;return p}(p)+1,h=`${p}, ${h}`),Rn(G,"",h)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),$r(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){tr(this._element,this._name,"paused")}resume(){tr(this._element,this._name,"running")}setPosition(h){const p=Hr(this._element,this._name);this._position=h*this._duration,Rn(this._element,"Delay",`-${this._position}ms`,p)}getPosition(){return this._position}_handleCallback(h){const p=h._ngTestManualTimestamp||Date.now(),I=1e3*parseFloat(h.elapsedTime.toFixed(3));h.animationName==this._name&&Math.max(p-this._startTime,0)>=this._delay&&I>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),$r(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(G,h){const I=Cr(G,"").split(","),X=Si(I,h);X>=0&&(I.splice(X,1),Rn(G,"",I.join(",")))}(this._element,this._name))}}function tr(G,h,p){Rn(G,"PlayState",p,Hr(G,h))}function Hr(G,h){const p=Cr(G,"");return p.indexOf(",")>0?Si(p.split(","),h):Si([p],h)}function Si(G,h){for(let p=0;p<G.length;p++)if(G[p].indexOf(h)>=0)return p;return-1}function $r(G,h,p){p?G.removeEventListener(Mi,h):G.addEventListener(Mi,h)}function Rn(G,h,p,I){const X=er+h;if(null!=I){const ge=G.style[X];if(ge.length){const Te=ge.split(",");Te[I]=p,p=Te.join(",")}}G.style[X]=p}function Cr(G,h){return G.style[er+h]||""}class Tr{constructor(h,p,I,X,ge,Te,Re,nt){this.element=h,this.keyframes=p,this.animationName=I,this._duration=X,this._delay=ge,this._finalStyles=Re,this._specialStyles=nt,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Te||"linear",this.totalTime=X+ge,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 Vr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(h){const p="start"==h?this._onStartFns:this._onDoneFns;p.forEach(I=>I()),p.length=0}beforeDestroy(){this.init();const h={};if(this.hasStarted()){const p=this._state>=3;Object.keys(this._finalStyles).forEach(I=>{"offset"!=I&&(h[I]=p?this._finalStyles[I]:Le(this.element,I))})}this.currentSnapshot=h}}class go extends f.ZN{constructor(h,p){super(),this.element=h,this._startingStyles={},this.__initialized=!1,this._styles=se(p)}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 p=this._startingStyles[h];p?this.element.style.setProperty(h,p):this.element.style.removeProperty(h)}),this._startingStyles=null,super.destroy())}}class k{constructor(){this._count=0}validateStyleProperty(h){return Oe(h)}matchesElement(h,p){return de(h,p)}containsElement(h,p){return qe(h,p)}query(h,p,I){return Y(h,p,I)}computeStyle(h,p,I){return window.getComputedStyle(h)[p]}buildKeyframeElement(h,p,I){I=I.map(Re=>se(Re));let X=`@keyframes ${p} {\n`,ge="";I.forEach(Re=>{ge=" ";const nt=parseFloat(Re.offset);X+=`${ge}${100*nt}% {\n`,ge+=" ",Object.keys(Re).forEach(bt=>{const kt=Re[bt];switch(bt){case"offset":return;case"easing":return void(kt&&(X+=`${ge}animation-timing-function: ${kt};\n`));default:return void(X+=`${ge}${bt}: ${kt};\n`)}}),X+=`${ge}}\n`}),X+="}\n";const Te=document.createElement("style");return Te.textContent=X,Te}animate(h,p,I,X,ge,Te=[],Re){const nt=Te.filter(hn=>hn instanceof Tr),bt={};he(I,X)&&nt.forEach(hn=>{let Pn=hn.currentSnapshot;Object.keys(Pn).forEach(An=>bt[An]=Pn[An])});const kt=function(G){let h={};return G&&(Array.isArray(G)?G:[G]).forEach(I=>{Object.keys(I).forEach(X=>{"offset"==X||"easing"==X||(h[X]=I[X])})}),h}(p=z(h,p,bt));if(0==I)return new go(h,kt);const Vt="gen_css_kf_"+this._count++,nn=this.buildKeyframeElement(h,Vt,p);(function(G){var h;const p=null===(h=G.getRootNode)||void 0===h?void 0:h.call(G);return"undefined"!=typeof ShadowRoot&&p instanceof ShadowRoot?p:document.head})(h).appendChild(nn);const Gt=Li(h,p),en=new Tr(h,p,Vt,I,X,ge,kt,Gt);return en.onDestroy(()=>{var G;(G=nn).parentNode.removeChild(G)}),en}}class St{constructor(h,p,I,X){this.element=h,this.keyframes=p,this.options=I,this._specialStyles=X,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=I.duration,this._delay=I.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,p,I){return h.animate(p,I)}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={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(p=>{"offset"!=p&&(h[p]=this._finished?this._finalKeyframe[p]:Le(this.element,p))}),this.currentSnapshot=h}triggerCallback(h){const p="start"==h?this._onStartFns:this._onDoneFns;p.forEach(I=>I()),p.length=0}}class Zt{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(rn().toString()),this._cssKeyframesDriver=new k}validateStyleProperty(h){return Oe(h)}matchesElement(h,p){return de(h,p)}containsElement(h,p){return qe(h,p)}query(h,p,I){return Y(h,p,I)}computeStyle(h,p,I){return window.getComputedStyle(h)[p]}overrideWebAnimationsSupport(h){this._isNativeImpl=h}animate(h,p,I,X,ge,Te=[],Re){if(!Re&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(h,p,I,X,ge,Te);const kt={duration:I,delay:X,fill:0==X?"both":"forwards"};ge&&(kt.easing=ge);const Vt={},nn=Te.filter(Gt=>Gt instanceof St);he(I,X)&&nn.forEach(Gt=>{let en=Gt.currentSnapshot;Object.keys(en).forEach(hn=>Vt[hn]=en[hn])});const mn=Li(h,p=z(h,p=p.map(Gt=>ke(Gt,!1)),Vt));return new St(h,p,kt,mn)}}function rn(){return _()&&Element.prototype.animate||{}}var bn=d(8583);let Tn=(()=>{class G extends f._j{constructor(p,I){super(),this._nextAnimationId=0,this._renderer=p.createRenderer(I.body,{id:"0",encapsulation:o.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(p){const I=this._nextAnimationId.toString();this._nextAnimationId++;const X=Array.isArray(p)?(0,f.vP)(p):p;return Kn(this._renderer,null,I,"register",[X]),new Ln(I,this._renderer)}}return G.\u0275fac=function(p){return new(p||G)(o.\u0275\u0275inject(o.RendererFactory2),o.\u0275\u0275inject(bn.DOCUMENT))},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();class Ln extends f.LC{constructor(h,p){super(),this._id=h,this._renderer=p}create(h,p){return new Ur(this._id,h,p||{},this._renderer)}}class Ur{constructor(h,p,I,X){this.id=h,this.element=p,this._renderer=X,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",I)}_listen(h,p){return this._renderer.listen(this.element,`@@${this.id}:${h}`,p)}_command(h,...p){return Kn(this._renderer,this.element,this.id,h,p)}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,p;return null!==(p=null===(h=this._renderer.engine.players[+this.id])||void 0===h?void 0:h.getPosition())&&void 0!==p?p:0}}function Kn(G,h,p,I,X){return G.setProperty(h,`@@${p}:${I}`,X)}const Ii="@.disabled";let Yt=(()=>{class G{constructor(p,I,X){this.delegate=p,this.engine=I,this._zone=X,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),I.onRemovalComplete=(ge,Te)=>{Te&&Te.parentNode(ge)&&Te.removeChild(ge.parentNode,ge)}}createRenderer(p,I){const ge=this.delegate.createRenderer(p,I);if(!(p&&I&&I.data&&I.data.animation)){let kt=this._rendererCache.get(ge);return kt||(kt=new io("",ge,this.engine),this._rendererCache.set(ge,kt)),kt}const Te=I.id,Re=I.id+"-"+this._currentId;this._currentId++,this.engine.register(Re,p);const nt=kt=>{Array.isArray(kt)?kt.forEach(nt):this.engine.registerTrigger(Te,Re,p,kt.name,kt)};return I.data.animation.forEach(nt),new _o(this,Re,ge,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(p,I,X){p>=0&&p<this._microtaskId?this._zone.run(()=>I(X)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(ge=>{const[Te,Re]=ge;Te(Re)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([I,X]))}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 G.\u0275fac=function(p){return new(p||G)(o.\u0275\u0275inject(o.RendererFactory2),o.\u0275\u0275inject(wi),o.\u0275\u0275inject(o.NgZone))},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();class io{constructor(h,p,I){this.namespaceId=h,this.delegate=p,this.engine=I,this.destroyNode=this.delegate.destroyNode?X=>p.destroyNode(X):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(h,p){return this.delegate.createElement(h,p)}createComment(h){return this.delegate.createComment(h)}createText(h){return this.delegate.createText(h)}appendChild(h,p){this.delegate.appendChild(h,p),this.engine.onInsert(this.namespaceId,p,h,!1)}insertBefore(h,p,I,X=!0){this.delegate.insertBefore(h,p,I),this.engine.onInsert(this.namespaceId,p,h,X)}removeChild(h,p,I){this.engine.onRemove(this.namespaceId,p,this.delegate,I)}selectRootElement(h,p){return this.delegate.selectRootElement(h,p)}parentNode(h){return this.delegate.parentNode(h)}nextSibling(h){return this.delegate.nextSibling(h)}setAttribute(h,p,I,X){this.delegate.setAttribute(h,p,I,X)}removeAttribute(h,p,I){this.delegate.removeAttribute(h,p,I)}addClass(h,p){this.delegate.addClass(h,p)}removeClass(h,p){this.delegate.removeClass(h,p)}setStyle(h,p,I,X){this.delegate.setStyle(h,p,I,X)}removeStyle(h,p,I){this.delegate.removeStyle(h,p,I)}setProperty(h,p,I){"@"==p.charAt(0)&&p==Ii?this.disableAnimations(h,!!I):this.delegate.setProperty(h,p,I)}setValue(h,p){this.delegate.setValue(h,p)}listen(h,p,I){return this.delegate.listen(h,p,I)}disableAnimations(h,p){this.engine.disableAnimations(h,p)}}class _o extends io{constructor(h,p,I,X){super(p,I,X),this.factory=h,this.namespaceId=p}setProperty(h,p,I){"@"==p.charAt(0)?"."==p.charAt(1)&&p==Ii?this.disableAnimations(h,I=void 0===I||!!I):this.engine.process(this.namespaceId,h,p.substr(1),I):this.delegate.setProperty(h,p,I)}listen(h,p,I){if("@"==p.charAt(0)){const X=function(G){switch(G){case"body":return document.body;case"document":return document;case"window":return window;default:return G}}(h);let ge=p.substr(1),Te="";return"@"!=ge.charAt(0)&&([ge,Te]=function(G){const h=G.indexOf(".");return[G.substring(0,h),G.substr(h+1)]}(ge)),this.engine.listen(this.namespaceId,X,ge,Te,Re=>{this.factory.scheduleListenerCallback(Re._data||-1,I,Re)})}return this.delegate.listen(h,p,I)}}let Rs=(()=>{class G extends wi{constructor(p,I,X){super(p.body,I,X)}ngOnDestroy(){this.flush()}}return G.\u0275fac=function(p){return new(p||G)(o.\u0275\u0275inject(bn.DOCUMENT),o.\u0275\u0275inject(fe),o.\u0275\u0275inject(ee))},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();function ks(){return"function"==typeof rn()?new Zt:new k}function Fs(){return new J}function Mt(G,h,p){return new Yt(G,h,p)}const pn=new o.InjectionToken("AnimationModuleType"),Ns=[{provide:f._j,useClass:Tn},{provide:ee,useFactory:Fs},{provide:wi,useClass:Rs},{provide:o.RendererFactory2,useFactory:Mt,deps:[l.\u0275DomRendererFactory2,wi,o.NgZone]}],kn=[{provide:fe,useFactory:ks},{provide:pn,useValue:"BrowserAnimations"},...Ns],Fo=[{provide:fe,useClass:_e},{provide:pn,useValue:"NoopAnimations"},...Ns];let yo=(()=>{class G{static withConfig(p){return{ngModule:G,providers:p.disableAnimations?Fo:kn}}}return G.\u0275fac=function(p){return new(p||G)},G.\u0275mod=o.\u0275\u0275defineNgModule({type:G}),G.\u0275inj=o.\u0275\u0275defineInjector({providers:kn,imports:[l.BrowserModule]}),G})(),Vi=(()=>{class G{}return G.\u0275fac=function(p){return new(p||G)},G.\u0275mod=o.\u0275\u0275defineNgModule({type:G}),G.\u0275inj=o.\u0275\u0275defineInjector({providers:Fo,imports:[l.BrowserModule]}),G})()},9075:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{\u0275getDOM:()=>o.\u0275getDOM,BrowserModule:()=>it,BrowserTransferStateModule:()=>ve,By:()=>We,DomSanitizer:()=>jt,EVENT_MANAGER_PLUGINS:()=>_e,EventManager:()=>fe,HAMMER_GESTURE_CONFIG:()=>Ke,HAMMER_LOADER:()=>pt,HammerGestureConfig:()=>vt,HammerModule:()=>he,Meta:()=>Ht,Title:()=>an,TransferState:()=>be,VERSION:()=>Tt,disableDebugTools:()=>et,enableDebugTools:()=>Se,makeStateKey:()=>ee,platformBrowser:()=>N,\u0275BROWSER_SANITIZATION_PROVIDERS:()=>Z,\u0275BROWSER_SANITIZATION_PROVIDERS__POST_R3__:()=>Q,\u0275BrowserDomAdapter:()=>_,\u0275BrowserGetTestability:()=>S,\u0275DomEventsPlugin:()=>He,\u0275DomRendererFactory2:()=>ae,\u0275DomSanitizerImpl:()=>Xe,\u0275DomSharedStylesHost:()=>st,\u0275ELEMENT_PROBE_PROVIDERS:()=>se,\u0275ELEMENT_PROBE_PROVIDERS__POST_R3__:()=>qe,\u0275HAMMER_PROVIDERS__POST_R3__:()=>x,\u0275HammerGesturesPlugin:()=>Qe,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>De,\u0275KeyEventsPlugin:()=>At,\u0275NAMESPACE_URIS:()=>Ct,\u0275SharedStylesHost:()=>Fe,\u0275TRANSITION_ID:()=>g,\u0275angular_packages_platform_browser_platform_browser_a:()=>V,\u0275angular_packages_platform_browser_platform_browser_b:()=>K,\u0275angular_packages_platform_browser_platform_browser_c:()=>ie,\u0275angular_packages_platform_browser_platform_browser_d:()=>_t,\u0275angular_packages_platform_browser_platform_browser_e:()=>cn,\u0275angular_packages_platform_browser_platform_browser_f:()=>J,\u0275angular_packages_platform_browser_platform_browser_g:()=>Be,\u0275angular_packages_platform_browser_platform_browser_h:()=>F,\u0275angular_packages_platform_browser_platform_browser_i:()=>R,\u0275angular_packages_platform_browser_platform_browser_j:()=>_n,\u0275angular_packages_platform_browser_platform_browser_k:()=>E,\u0275angular_packages_platform_browser_platform_browser_l:()=>M,\u0275angular_packages_platform_browser_platform_browser_m:()=>Pe,\u0275angular_packages_platform_browser_platform_browser_n:()=>Y,\u0275angular_packages_platform_browser_platform_browser_o:()=>P,\u0275angular_packages_platform_browser_platform_browser_p:()=>f,\u0275escapeHtml:()=>ft,\u0275flattenStyles:()=>re,\u0275initDomAdapter:()=>Pt,\u0275shimContentAttribute:()=>dt,\u0275shimHostAttribute:()=>$});var o=d(8583),l=d(7716);class f extends o.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class _ extends f{static makeCurrent(){(0,o.\u0275setRootDomAdapter)(new _)}onAndCancel(Ie,me,Ve){return Ie.addEventListener(me,Ve,!1),()=>{Ie.removeEventListener(me,Ve,!1)}}dispatchEvent(Ie,me){Ie.dispatchEvent(me)}remove(Ie){Ie.parentNode&&Ie.parentNode.removeChild(Ie)}createElement(Ie,me){return(me=me||this.getDefaultDocument()).createElement(Ie)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ie){return Ie.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ie){return Ie instanceof DocumentFragment}getGlobalEventTarget(Ie,me){return"window"===me?window:"document"===me?Ie:"body"===me?Ie.body:null}getBaseHref(Ie){const me=(a=a||document.querySelector("base"),a?a.getAttribute("href"):null);return null==me?null:function(we){w=w||document.createElement("a"),w.setAttribute("href",we);const Ie=w.pathname;return"/"===Ie.charAt(0)?Ie:`/${Ie}`}(me)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ie){return(0,o.\u0275parseCookieValue)(document.cookie,Ie)}}let w,a=null;const g=new l.InjectionToken("TRANSITION_ID");function E(we,Ie,me){return()=>{me.get(l.ApplicationInitStatus).donePromise.then(()=>{const Ve=(0,o.\u0275getDOM)(),at=Ie.querySelectorAll(`style[ng-transition="${we}"]`);for(let Ft=0;Ft<at.length;Ft++)Ve.remove(at[Ft])})}}const M=[{provide:l.APP_INITIALIZER,useFactory:E,deps:[g,o.DOCUMENT,l.Injector],multi:!0}];class S{static init(){(0,l.setTestabilityGetter)(new S)}addToWindow(Ie){l.\u0275global.getAngularTestability=(Ve,at=!0)=>{const Ft=Ie.findTestabilityInTree(Ve,at);if(null==Ft)throw new Error("Could not find testability for element.");return Ft},l.\u0275global.getAllAngularTestabilities=()=>Ie.getAllTestabilities(),l.\u0275global.getAllAngularRootElements=()=>Ie.getAllRootElements(),l.\u0275global.frameworkStabilizers||(l.\u0275global.frameworkStabilizers=[]),l.\u0275global.frameworkStabilizers.push(Ve=>{const at=l.\u0275global.getAllAngularTestabilities();let Ft=at.length,$t=!1;const qt=function(Wt){$t=$t||Wt,Ft--,0==Ft&&Ve($t)};at.forEach(function(Wt){Wt.whenStable(qt)})})}findTestabilityInTree(Ie,me,Ve){if(null==me)return null;const at=Ie.getTestability(me);return null!=at?at:Ve?(0,o.\u0275getDOM)().isShadowRoot(me)?this.findTestabilityInTree(Ie,me.host,!0):this.findTestabilityInTree(Ie,me.parentElement,!0):null}}let P=(()=>{class we{build(){return new XMLHttpRequest}}return we.\u0275fac=function(me){return new(me||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();function Ce(we,Ie){"undefined"!=typeof COMPILED&&COMPILED||((l.\u0275global.ng=l.\u0275global.ng||{})[we]=Ie)}const lt=(()=>({ApplicationRef:l.ApplicationRef,NgZone:l.NgZone}))();function Oe(we){return(0,l.\u0275getDebugNodeR2)(we)}function Pe(we){return Ce("probe",Oe),Ce("coreTokens",Object.assign(Object.assign({},lt),function(we){return we.reduce((Ie,me)=>(Ie[me.name]=me.token,Ie),{})}(we||[]))),()=>Oe}const qe=[],Y=[{provide:l.APP_INITIALIZER,useFactory:Pe,deps:[[l.NgProbeToken,new l.Optional]],multi:!0}],se=qe,_e=new l.InjectionToken("EventManagerPlugins");let fe=(()=>{class we{constructor(me,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,me.forEach(at=>at.manager=this),this._plugins=me.slice().reverse()}addEventListener(me,Ve,at){return this._findPluginFor(Ve).addEventListener(me,Ve,at)}addGlobalEventListener(me,Ve,at){return this._findPluginFor(Ve).addGlobalEventListener(me,Ve,at)}getZone(){return this._zone}_findPluginFor(me){const Ve=this._eventNameToPlugin.get(me);if(Ve)return Ve;const at=this._plugins;for(let Ft=0;Ft<at.length;Ft++){const $t=at[Ft];if($t.supports(me))return this._eventNameToPlugin.set(me,$t),$t}throw new Error(`No event manager plugin found for event ${me}`)}}return we.\u0275fac=function(me){return new(me||we)(l.\u0275\u0275inject(_e),l.\u0275\u0275inject(l.NgZone))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class Be{constructor(Ie){this._doc=Ie}addGlobalEventListener(Ie,me,Ve){const at=(0,o.\u0275getDOM)().getGlobalEventTarget(this._doc,Ie);if(!at)throw new Error(`Unsupported event target ${at} for event ${me}`);return this.addEventListener(at,me,Ve)}}let Fe=(()=>{class we{constructor(){this._stylesSet=new Set}addStyles(me){const Ve=new Set;me.forEach(at=>{this._stylesSet.has(at)||(this._stylesSet.add(at),Ve.add(at))}),this.onStylesAdded(Ve)}onStylesAdded(me){}getAllStyles(){return Array.from(this._stylesSet)}}return we.\u0275fac=function(me){return new(me||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),st=(()=>{class we extends Fe{constructor(me){super(),this._doc=me,this._hostNodes=new Map,this._hostNodes.set(me.head,[])}_addStylesToHost(me,Ve,at){me.forEach(Ft=>{const $t=this._doc.createElement("style");$t.textContent=Ft,at.push(Ve.appendChild($t))})}addHost(me){const Ve=[];this._addStylesToHost(this._stylesSet,me,Ve),this._hostNodes.set(me,Ve)}removeHost(me){const Ve=this._hostNodes.get(me);Ve&&Ve.forEach(ct),this._hostNodes.delete(me)}onStylesAdded(me){this._hostNodes.forEach((Ve,at)=>{this._addStylesToHost(me,at,Ve)})}ngOnDestroy(){this._hostNodes.forEach(me=>me.forEach(ct))}}return we.\u0275fac=function(me){return new(me||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();function ct(we){(0,o.\u0275getDOM)().remove(we)}const Ct={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/"},je=/%COMP%/g;function dt(we){return"_ngcontent-%COMP%".replace(je,we)}function $(we){return"_nghost-%COMP%".replace(je,we)}function re(we,Ie,me){for(let Ve=0;Ve<Ie.length;Ve++){let at=Ie[Ve];Array.isArray(at)?re(we,at,me):(at=at.replace(je,we),me.push(at))}return me}function L(we){return Ie=>{if("__ngUnwrap__"===Ie)return we;!1===we(Ie)&&(Ie.preventDefault(),Ie.returnValue=!1)}}let ae=(()=>{class we{constructor(me,Ve,at){this.eventManager=me,this.sharedStylesHost=Ve,this.appId=at,this.rendererByCompId=new Map,this.defaultRenderer=new pe(me)}createRenderer(me,Ve){if(!me||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case l.ViewEncapsulation.Emulated:{let at=this.rendererByCompId.get(Ve.id);return at||(at=new Je(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,at)),at.applyToHost(me),at}case 1:case l.ViewEncapsulation.ShadowDom:return new Ue(this.eventManager,this.sharedStylesHost,me,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const at=re(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(at),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return we.\u0275fac=function(me){return new(me||we)(l.\u0275\u0275inject(fe),l.\u0275\u0275inject(st),l.\u0275\u0275inject(l.APP_ID))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class pe{constructor(Ie){this.eventManager=Ie,this.data=Object.create(null)}destroy(){}createElement(Ie,me){return me?document.createElementNS(Ct[me]||me,Ie):document.createElement(Ie)}createComment(Ie){return document.createComment(Ie)}createText(Ie){return document.createTextNode(Ie)}appendChild(Ie,me){Ie.appendChild(me)}insertBefore(Ie,me,Ve){Ie&&Ie.insertBefore(me,Ve)}removeChild(Ie,me){Ie&&Ie.removeChild(me)}selectRootElement(Ie,me){let Ve="string"==typeof Ie?document.querySelector(Ie):Ie;if(!Ve)throw new Error(`The selector "${Ie}" did not match any elements`);return me||(Ve.textContent=""),Ve}parentNode(Ie){return Ie.parentNode}nextSibling(Ie){return Ie.nextSibling}setAttribute(Ie,me,Ve,at){if(at){me=at+":"+me;const Ft=Ct[at];Ft?Ie.setAttributeNS(Ft,me,Ve):Ie.setAttribute(me,Ve)}else Ie.setAttribute(me,Ve)}removeAttribute(Ie,me,Ve){if(Ve){const at=Ct[Ve];at?Ie.removeAttributeNS(at,me):Ie.removeAttribute(`${Ve}:${me}`)}else Ie.removeAttribute(me)}addClass(Ie,me){Ie.classList.add(me)}removeClass(Ie,me){Ie.classList.remove(me)}setStyle(Ie,me,Ve,at){at&(l.RendererStyleFlags2.DashCase|l.RendererStyleFlags2.Important)?Ie.style.setProperty(me,Ve,at&l.RendererStyleFlags2.Important?"important":""):Ie.style[me]=Ve}removeStyle(Ie,me,Ve){Ve&l.RendererStyleFlags2.DashCase?Ie.style.removeProperty(me):Ie.style[me]=""}setProperty(Ie,me,Ve){Ie[me]=Ve}setValue(Ie,me){Ie.nodeValue=me}listen(Ie,me,Ve){return"string"==typeof Ie?this.eventManager.addGlobalEventListener(Ie,me,L(Ve)):this.eventManager.addEventListener(Ie,me,L(Ve))}}class Je extends pe{constructor(Ie,me,Ve,at){super(Ie),this.component=Ve;const Ft=re(at+"-"+Ve.id,Ve.styles,[]);me.addStyles(Ft),this.contentAttr=dt(at+"-"+Ve.id),this.hostAttr=$(at+"-"+Ve.id)}applyToHost(Ie){super.setAttribute(Ie,this.hostAttr,"")}createElement(Ie,me){const Ve=super.createElement(Ie,me);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class Ue extends pe{constructor(Ie,me,Ve,at){super(Ie),this.sharedStylesHost=me,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ft=re(at.id,at.styles,[]);for(let $t=0;$t<Ft.length;$t++){const qt=document.createElement("style");qt.textContent=Ft[$t],this.shadowRoot.appendChild(qt)}}nodeOrShadowRoot(Ie){return Ie===this.hostEl?this.shadowRoot:Ie}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ie,me){return super.appendChild(this.nodeOrShadowRoot(Ie),me)}insertBefore(Ie,me,Ve){return super.insertBefore(this.nodeOrShadowRoot(Ie),me,Ve)}removeChild(Ie,me){return super.removeChild(this.nodeOrShadowRoot(Ie),me)}parentNode(Ie){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ie)))}}let He=(()=>{class we extends Be{constructor(me){super(me)}supports(me){return!0}addEventListener(me,Ve,at){return me.addEventListener(Ve,at,!1),()=>this.removeEventListener(me,Ve,at)}removeEventListener(me,Ve,at){return me.removeEventListener(Ve,at)}}return we.\u0275fac=function(me){return new(me||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();const q={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},Ke=new l.InjectionToken("HammerGestureConfig"),pt=new l.InjectionToken("HammerLoader");let vt=(()=>{class we{constructor(){this.events=[],this.overrides={}}buildHammer(me){const Ve=new Hammer(me,this.options);Ve.get("pinch").set({enable:!0}),Ve.get("rotate").set({enable:!0});for(const at in this.overrides)Ve.get(at).set(this.overrides[at]);return Ve}}return we.\u0275fac=function(me){return new(me||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),Qe=(()=>{class we extends Be{constructor(me,Ve,at,Ft){super(me),this._config=Ve,this.console=at,this.loader=Ft,this._loaderPromise=null}supports(me){return!(!q.hasOwnProperty(me.toLowerCase())&&!this.isCustomEvent(me)||!window.Hammer&&!this.loader)}addEventListener(me,Ve,at){const Ft=this.manager.getZone();if(Ve=Ve.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let $t=!1,qt=()=>{$t=!0};return this._loaderPromise.then(()=>{window.Hammer?$t||(qt=this.addEventListener(me,Ve,at)):qt=()=>{}}).catch(()=>{qt=()=>{}}),()=>{qt()}}return Ft.runOutsideAngular(()=>{const $t=this._config.buildHammer(me),qt=function(Wt){Ft.runGuarded(function(){at(Wt)})};return $t.on(Ve,qt),()=>{$t.off(Ve,qt),"function"==typeof $t.destroy&&$t.destroy()}})}isCustomEvent(me){return this._config.events.indexOf(me)>-1}}return we.\u0275fac=function(me){return new(me||we)(l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(Ke),l.\u0275\u0275inject(l.\u0275Console),l.\u0275\u0275inject(pt,8))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();const x=[],F=[{provide:_e,useClass:Qe,multi:!0,deps:[o.DOCUMENT,Ke,l.\u0275Console,[new l.Optional,pt]]},{provide:Ke,useClass:vt,deps:[]}],R=x;let he=(()=>{class we{}return we.\u0275fac=function(me){return new(me||we)},we.\u0275mod=l.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=l.\u0275\u0275defineInjector({providers:F}),we})();const z=["alt","control","meta","shift"],Le={"\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"},gt={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"},Qt={alt:we=>we.altKey,control:we=>we.ctrlKey,meta:we=>we.metaKey,shift:we=>we.shiftKey};let At=(()=>{class we extends Be{constructor(me){super(me)}supports(me){return null!=we.parseEventName(me)}addEventListener(me,Ve,at){const Ft=we.parseEventName(Ve),$t=we.eventCallback(Ft.fullKey,at,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.\u0275getDOM)().onAndCancel(me,Ft.domEventName,$t))}static parseEventName(me){const Ve=me.toLowerCase().split("."),at=Ve.shift();if(0===Ve.length||"keydown"!==at&&"keyup"!==at)return null;const Ft=we._normalizeKey(Ve.pop());let $t="";if(z.forEach(Wt=>{const Mn=Ve.indexOf(Wt);Mn>-1&&(Ve.splice(Mn,1),$t+=Wt+".")}),$t+=Ft,0!=Ve.length||0===Ft.length)return null;const qt={};return qt.domEventName=at,qt.fullKey=$t,qt}static getEventFullKey(me){let Ve="",at=function(we){let Ie=we.key;if(null==Ie){if(Ie=we.keyIdentifier,null==Ie)return"Unidentified";Ie.startsWith("U+")&&(Ie=String.fromCharCode(parseInt(Ie.substring(2),16)),3===we.location&&gt.hasOwnProperty(Ie)&&(Ie=gt[Ie]))}return Le[Ie]||Ie}(me);return at=at.toLowerCase()," "===at?at="space":"."===at&&(at="dot"),z.forEach(Ft=>{Ft!=at&&Qt[Ft](me)&&(Ve+=Ft+".")}),Ve+=at,Ve}static eventCallback(me,Ve,at){return Ft=>{we.getEventFullKey(Ft)===me&&at.runGuarded(()=>Ve(Ft))}}static _normalizeKey(me){switch(me){case"esc":return"escape";default:return me}}}return we.\u0275fac=function(me){return new(me||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),jt=(()=>{class we{}return we.\u0275fac=function(me){return new(me||we)},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:function(){return(0,l.\u0275\u0275inject)(Xe)},token:we,providedIn:"root"}),we})();function _n(we){return new Xe(we.get(o.DOCUMENT))}let Xe=(()=>{class we extends jt{constructor(me){super(),this._doc=me}sanitize(me,Ve){if(null==Ve)return null;switch(me){case l.SecurityContext.NONE:return Ve;case l.SecurityContext.HTML:return(0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"HTML")?(0,l.\u0275unwrapSafeValue)(Ve):(0,l.\u0275_sanitizeHtml)(this._doc,String(Ve)).toString();case l.SecurityContext.STYLE:return(0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"Style")?(0,l.\u0275unwrapSafeValue)(Ve):Ve;case l.SecurityContext.SCRIPT:if((0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"Script"))return(0,l.\u0275unwrapSafeValue)(Ve);throw new Error("unsafe value used in a script context");case l.SecurityContext.URL:return(0,l.\u0275getSanitizationBypassType)(Ve),(0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"URL")?(0,l.\u0275unwrapSafeValue)(Ve):(0,l.\u0275_sanitizeUrl)(String(Ve));case l.SecurityContext.RESOURCE_URL:if((0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"ResourceURL"))return(0,l.\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 ${me} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(me){return(0,l.\u0275bypassSanitizationTrustHtml)(me)}bypassSecurityTrustStyle(me){return(0,l.\u0275bypassSanitizationTrustStyle)(me)}bypassSecurityTrustScript(me){return(0,l.\u0275bypassSanitizationTrustScript)(me)}bypassSecurityTrustUrl(me){return(0,l.\u0275bypassSanitizationTrustUrl)(me)}bypassSecurityTrustResourceUrl(me){return(0,l.\u0275bypassSanitizationTrustResourceUrl)(me)}}return we.\u0275fac=function(me){return new(me||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:function(){return _n((0,l.\u0275\u0275inject)(l.INJECTOR))},token:we,providedIn:"root"}),we})();function Pt(){_.makeCurrent(),S.init()}function V(){return new l.ErrorHandler}function K(){return(0,l.\u0275setDocument)(document),document}const De=[{provide:l.PLATFORM_ID,useValue:o.\u0275PLATFORM_BROWSER_ID},{provide:l.PLATFORM_INITIALIZER,useValue:Pt,multi:!0},{provide:o.DOCUMENT,useFactory:K,deps:[]}],Q=[],Z=Q,N=(0,l.createPlatformFactory)(l.platformCore,"browser",De),ie=[Z,{provide:l.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:l.ErrorHandler,useFactory:V,deps:[]},{provide:_e,useClass:He,multi:!0,deps:[o.DOCUMENT,l.NgZone,l.PLATFORM_ID]},{provide:_e,useClass:At,multi:!0,deps:[o.DOCUMENT]},R,{provide:ae,useClass:ae,deps:[fe,st,l.APP_ID]},{provide:l.RendererFactory2,useExisting:ae},{provide:Fe,useExisting:st},{provide:st,useClass:st,deps:[o.DOCUMENT]},{provide:l.Testability,useClass:l.Testability,deps:[l.NgZone]},{provide:fe,useClass:fe,deps:[_e,l.NgZone]},{provide:o.XhrFactory,useClass:P,deps:[]},se];let it=(()=>{class we{constructor(me){if(me)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(me){return{ngModule:we,providers:[{provide:l.APP_ID,useValue:me.appId},{provide:g,useExisting:l.APP_ID},M]}}}return we.\u0275fac=function(me){return new(me||we)(l.\u0275\u0275inject(we,12))},we.\u0275mod=l.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=l.\u0275\u0275defineInjector({providers:ie,imports:[o.CommonModule,l.ApplicationModule]}),we})();function _t(){return new Ht((0,l.\u0275\u0275inject)(o.DOCUMENT))}let Ht=(()=>{class we{constructor(me){this._doc=me,this._dom=(0,o.\u0275getDOM)()}addTag(me,Ve=!1){return me?this._getOrCreateElement(me,Ve):null}addTags(me,Ve=!1){return me?me.reduce((at,Ft)=>(Ft&&at.push(this._getOrCreateElement(Ft,Ve)),at),[]):[]}getTag(me){return me&&this._doc.querySelector(`meta[${me}]`)||null}getTags(me){if(!me)return[];const Ve=this._doc.querySelectorAll(`meta[${me}]`);return Ve?[].slice.call(Ve):[]}updateTag(me,Ve){if(!me)return null;Ve=Ve||this._parseSelector(me);const at=this.getTag(Ve);return at?this._setMetaElementAttributes(me,at):this._getOrCreateElement(me,!0)}removeTag(me){this.removeTagElement(this.getTag(me))}removeTagElement(me){me&&this._dom.remove(me)}_getOrCreateElement(me,Ve=!1){if(!Ve){const $t=this._parseSelector(me),qt=this.getTags($t).filter(Wt=>this._containsAttributes(me,Wt))[0];if(void 0!==qt)return qt}const at=this._dom.createElement("meta");return this._setMetaElementAttributes(me,at),this._doc.getElementsByTagName("head")[0].appendChild(at),at}_setMetaElementAttributes(me,Ve){return Object.keys(me).forEach(at=>Ve.setAttribute(this._getMetaKeyMap(at),me[at])),Ve}_parseSelector(me){const Ve=me.name?"name":"property";return`${Ve}="${me[Ve]}"`}_containsAttributes(me,Ve){return Object.keys(me).every(at=>Ve.getAttribute(this._getMetaKeyMap(at))===me[at])}_getMetaKeyMap(me){return dn[me]||me}}return we.\u0275fac=function(me){return new(me||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:_t,token:we,providedIn:"root"}),we})();const dn={httpEquiv:"http-equiv"};function cn(){return new an((0,l.\u0275\u0275inject)(o.DOCUMENT))}let an=(()=>{class we{constructor(me){this._doc=me}getTitle(){return this._doc.title}setTitle(me){this._doc.title=me||""}}return we.\u0275fac=function(me){return new(me||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:cn,token:we,providedIn:"root"}),we})();const un="undefined"!=typeof window&&window||{};class wn{constructor(Ie,me){this.msPerTick=Ie,this.numTicks=me}}class yn{constructor(Ie){this.appRef=Ie.injector.get(l.ApplicationRef)}timeChangeDetection(Ie){const me=Ie&&Ie.record,Ve="Change Detection",at=null!=un.console.profile;me&&at&&un.console.profile(Ve);const Ft=mt();let $t=0;for(;$t<5||mt()-Ft<500;)this.appRef.tick(),$t++;const qt=mt();me&&at&&un.console.profileEnd(Ve);const Wt=(qt-Ft)/$t;return un.console.log(`ran ${$t} change detection cycles`),un.console.log(`${Wt.toFixed(2)} ms per check`),new wn(Wt,$t)}}function mt(){return un.performance&&un.performance.now?un.performance.now():(new Date).getTime()}const xe="profiler";function Se(we){return Ce(xe,new yn(we)),we}function et(){Ce(xe,null)}function ft(we){const Ie={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return we.replace(/[&"'<>]/g,me=>Ie[me])}function ee(we){return we}let be=(()=>{class we{constructor(){this.store={},this.onSerializeCallbacks={}}static init(me){const Ve=new we;return Ve.store=me,Ve}get(me,Ve){return void 0!==this.store[me]?this.store[me]:Ve}set(me,Ve){this.store[me]=Ve}remove(me){delete this.store[me]}hasKey(me){return this.store.hasOwnProperty(me)}onSerialize(me,Ve){this.onSerializeCallbacks[me]=Ve}toJson(){for(const me in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(me))try{this.store[me]=this.onSerializeCallbacks[me]()}catch(Ve){console.warn("Exception in onSerialize callback: ",Ve)}return JSON.stringify(this.store)}}return we.\u0275fac=function(me){return new(me||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();function J(we,Ie){const me=we.getElementById(Ie+"-state");let Ve={};if(me&&me.textContent)try{Ve=JSON.parse(function(we){const Ie={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return we.replace(/&[^;]+;/g,me=>Ie[me])}(me.textContent))}catch(at){console.warn("Exception while restoring TransferState for app "+Ie,at)}return be.init(Ve)}let ve=(()=>{class we{}return we.\u0275fac=function(me){return new(me||we)},we.\u0275mod=l.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=l.\u0275\u0275defineInjector({providers:[{provide:be,useFactory:J,deps:[o.DOCUMENT,l.APP_ID]}]}),we})();class We{static all(){return()=>!0}static css(Ie){return me=>null!=me.nativeElement&&function(we,Ie){return!!(0,o.\u0275getDOM)().isElementNode(we)&&(we.matches&&we.matches(Ie)||we.msMatchesSelector&&we.msMatchesSelector(Ie)||we.webkitMatchesSelector&&we.webkitMatchesSelector(Ie))}(me.nativeElement,Ie)}static directive(Ie){return me=>-1!==me.providerTokens.indexOf(Ie)}}const Tt=new l.Version("12.2.13")},5151:(Ne,T,d)=>{"use strict";function a($,re,L,ce){var ke,ae=arguments.length,pe=ae<3?re:null===ce?ce=Object.getOwnPropertyDescriptor(re,L):ce;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)pe=Reflect.decorate($,re,L,ce);else for(var ot=$.length-1;ot>=0;ot--)(ke=$[ot])&&(pe=(ae<3?ke(pe):ae>3?ke(re,L,pe):ke(re,L))||pe);return ae>3&&pe&&Object.defineProperty(re,L,pe),pe}function C($,re){return function(L,ce){re(L,ce,$)}}function w($,re){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata($,re)}d.r(T),d.d(T,{MONACO_PATH:()=>Ct,MonacoDiffEditorComponent:()=>Ze,MonacoEditorComponent:()=>It,MonacoEditorLoaderDirective:()=>rt,MonacoEditorLoaderService:()=>je,MonacoEditorModule:()=>dt});var de=d(7716),qe=d(6215),Y=d(9765),se=d(6782),_e=d(5435),fe=d(5257),Be=d(3679);const Fe=["editor"],st=["diffEditor"],ct=".monaco-editor[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n\n}\n.editor-container[_ngcontent-%COMP%] {\n\toverflow: hidden;\n\tposition: relative;\n\tdisplay: table;\n\twidth: 100%;\n height: 100%;\n min-width: 0;\n}",Ct="MONACO_PATH";let je=(()=>{let $=class{constructor(L,ce){this.ngZone=L,this.monacoPathConfig=ce,this.isMonacoLoaded$=new qe.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?L.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(L){L&&(this._monacoPath=L)}loadMonaco(){const L=()=>{let ke=this._monacoPath;window.amdRequire=window.require;const ot=!!this.nodeRequire,wt=ke.includes("http");ot&&(window.require=this.nodeRequire,wt||(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))},Je=>console.error("Error loading monaco-editor: ",Je))};if(window.amdRequire)return L();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const pe=document.createElement("script");pe.type="text/javascript",pe.src=`${this._monacoPath}/loader.js`,pe.addEventListener("load",L),document.body.appendChild(pe)}addElectronFixScripts(){const L=document.createElement("script"),ce=document.createTextNode("self.module = undefined;"),ae=document.createTextNode("self.process.browser = true;");L.appendChild(ce),L.appendChild(ae),document.body.appendChild(L)}};return $.\u0275fac=function(L){return new(L||$)(de.\u0275\u0275inject(de.NgZone),de.\u0275\u0275inject(Ct,8))},$.\u0275prov=(0,de.\u0275\u0275defineInjectable)({factory:function(){return new $((0,de.\u0275\u0275inject)(de.NgZone),(0,de.\u0275\u0275inject)("MONACO_PATH",8))},token:$,providedIn:"root"}),$=a([C(1,(0,de.Optional)()),C(1,(0,de.Inject)(Ct)),w("design:paramtypes",[de.NgZone,String])],$),$})(),rt=(()=>{let $=class{constructor(L,ce,ae){this.templateRef=L,this.viewContainer=ce,this.monacoEditorLoaderService=ae,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new Y.xQ}ngOnInit(){this.isMonacoLoaded$.pipe((0,se.R)(this.destroyed$)).subscribe(L=>{if(!L)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}};return $.\u0275fac=function(L){return new(L||$)(de.\u0275\u0275directiveInject(de.TemplateRef),de.\u0275\u0275directiveInject(de.ViewContainerRef),de.\u0275\u0275directiveInject(je))},$.\u0275dir=de.\u0275\u0275defineDirective({type:$,selectors:[["","ngxLoadMonacoEditor",""]]}),$=a([w("design:paramtypes",[de.TemplateRef,de.ViewContainerRef,je])],$),$})();var ht;let It=ht=class{constructor(re){this.monacoLoader=re,this.init=new de.EventEmitter,this.propagateChange=L=>{}}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,_e.h)(re=>re),(0,fe.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(re){if(this.editor&&re.options&&!re.options.firstChange){const L=re.options.currentValue,{language:ce,theme:ae}=L,pe=function($,re){var L={};for(var ce in $)Object.prototype.hasOwnProperty.call($,ce)&&re.indexOf(ce)<0&&(L[ce]=$[ce]);if(null!=$&&"function"==typeof Object.getOwnPropertySymbols){var ae=0;for(ce=Object.getOwnPropertySymbols($);ae<ce.length;ae++)re.indexOf(ce[ae])<0&&Object.prototype.propertyIsEnumerable.call($,ce[ae])&&(L[ce[ae]]=$[ce[ae]])}return L}(L,["language","theme"]),{language:ke,theme:ot}=re.options.previousValue;ke!==ce&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),ot!==ae&&monaco.editor.setTheme(ae),this.editor.updateOptions(pe)}if(this.editor&&re.uri){const L=re.uri.currentValue,ce=re.uri.previousValue;if(ce&&!L||!ce&&L||L&&ce&&L.path!==ce.path){const ae=this.editor.getValue();let pe;this.modelUriInstance&&this.modelUriInstance.dispose(),L&&(pe=monaco.editor.getModels().find(ke=>ke.uri.path===L.path)),this.modelUriInstance=pe||monaco.editor.createModel(ae,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(re){this.value=re,this.editor&&re?this.editor.setValue(re):this.editor&&this.editor.setValue("")}registerOnChange(re){this.propagateChange=re}registerOnTouched(re){this.onTouched=re}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(re){this.onErrorStatusChange=re}initEditor(){const re={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({},re),this.options):re),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const re=this.modelMarkers.map(({message:ce})=>ce).join("|");this.parsedError!==re&&(this.parsedError=re,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}};It.\u0275fac=function(re){return new(re||It)(de.\u0275\u0275directiveInject(je))},It.\u0275cmp=de.\u0275\u0275defineComponent({type:It,selectors:[["ngx-monaco-editor"]],viewQuery:function(re,L){if(1&re&&de.\u0275\u0275viewQuery(Fe,7),2&re){let ce;de.\u0275\u0275queryRefresh(ce=de.\u0275\u0275loadQuery())&&(L.editorContent=ce.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[de.\u0275\u0275ProvidersFeature([{provide:Be.NG_VALUE_ACCESSOR,useExisting:(0,de.forwardRef)(()=>ht),multi:!0},{provide:Be.NG_VALIDATORS,useExisting:(0,de.forwardRef)(()=>ht),multi:!0}]),de.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(re,L){1&re&&(de.\u0275\u0275elementStart(0,"div",0,1),de.\u0275\u0275element(2,"div",2,3),de.\u0275\u0275elementEnd())},styles:[ct],changeDetection:0}),It.ctorParameters=()=>[{type:je}],a([(0,de.Input)(),w("design:type",Object)],It.prototype,"options",void 0),a([(0,de.Input)(),w("design:type",Object)],It.prototype,"uri",void 0),a([(0,de.Output)(),w("design:type",de.EventEmitter)],It.prototype,"init",void 0),a([(0,de.ViewChild)("editor",{static:!0}),w("design:type",de.ElementRef)],It.prototype,"editorContent",void 0),It=ht=a([w("design:paramtypes",[je])],It);let Ze=(()=>{let $=class{constructor(L){this.monacoLoader=L,this.init=new de.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,_e.h)(L=>L),(0,fe.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(L){if(this.editor&&(L.code&&!L.code.firstChange||L.modified&&!L.modified.firstChange)){const ce=monaco.editor.createModel(this.modified),ae=monaco.editor.createModel(this.original);this.editor.setModel({original:ae,modified:ce})}this.editor&&L.options&&!L.options.firstChange&&(L.options.previousValue.theme!==L.options.currentValue.theme&&monaco.editor.setTheme(L.options.currentValue.theme),this.editor.updateOptions(L.options.currentValue))}initMonaco(){let L={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(L=Object.assign({},L,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,L);const ce=monaco.editor.createModel(this.original),ae=monaco.editor.createModel(this.modified);this.editor.setModel({original:ce,modified:ae}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}};return $.\u0275fac=function(L){return new(L||$)(de.\u0275\u0275directiveInject(je))},$.\u0275cmp=de.\u0275\u0275defineComponent({type:$,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(L,ce){if(1&L&&de.\u0275\u0275viewQuery(st,7),2&L){let ae;de.\u0275\u0275queryRefresh(ae=de.\u0275\u0275loadQuery())&&(ce.editorContent=ae.first)}},inputs:{original:"original",modified:"modified",options:"options"},outputs:{init:"init"},features:[de.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["diffEditor",""]],template:function(L,ce){1&L&&(de.\u0275\u0275elementStart(0,"div",0,1),de.\u0275\u0275element(2,"div",2,3),de.\u0275\u0275elementEnd())},styles:[ct],changeDetection:0}),a([(0,de.Input)(),w("design:type",String)],$.prototype,"original",void 0),a([(0,de.Input)(),w("design:type",String)],$.prototype,"modified",void 0),a([(0,de.Input)(),w("design:type",Object)],$.prototype,"options",void 0),a([(0,de.Output)(),w("design:type",de.EventEmitter)],$.prototype,"init",void 0),a([(0,de.ViewChild)("diffEditor",{static:!0}),w("design:type",de.ElementRef)],$.prototype,"editorContent",void 0),$=a([w("design:paramtypes",[je])],$),$})(),dt=(()=>{let $=class{};return $.\u0275fac=function(L){return new(L||$)},$.\u0275mod=de.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=de.\u0275\u0275defineInjector({imports:[[]]}),$})()},7634:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{AngularSplitModule:()=>Pe,SplitAreaDirective:()=>Oe,SplitComponent:()=>Me});var o=d(7716),l=d(8583),f=d(9765),_=d(9897),a=d(4395);const C=["gutterEls"];function w(de,qe){if(1&de){const Y=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",2,3),o.\u0275\u0275listener("mousedown",function(_e){o.\u0275\u0275restoreView(Y);const fe=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().startDragging(_e,2*fe+1,fe+1)})("touchstart",function(_e){o.\u0275\u0275restoreView(Y);const fe=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().startDragging(_e,2*fe+1,fe+1)})("mouseup",function(_e){o.\u0275\u0275restoreView(Y);const fe=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().clickGutter(_e,fe+1)})("touchend",function(_e){o.\u0275\u0275restoreView(Y);const fe=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().clickGutter(_e,fe+1)}),o.\u0275\u0275element(2,"div",4),o.\u0275\u0275elementEnd()}if(2&de){const Y=o.\u0275\u0275nextContext().index,se=o.\u0275\u0275nextContext();o.\u0275\u0275styleProp("flex-basis",se.gutterSize,"px")("order",2*Y+1)}}function D(de,qe){1&de&&o.\u0275\u0275template(0,w,3,4,"div",1),2&de&&o.\u0275\u0275property("ngIf",!1===qe.last)}const g=["*"];function E(de){return void 0!==de.changedTouches&&de.changedTouches.length>0?{x:de.changedTouches[0].clientX,y:de.changedTouches[0].clientY}:void 0!==de.clientX&&void 0!==de.clientY?{x:de.clientX,y:de.clientY}:null}function M(de,qe){const Y=de.nativeElement.getBoundingClientRect();return"horizontal"===qe?Y.width:Y.height}function S(de){return"boolean"==typeof de?de:"false"!==de}function P(de,qe){return null==de?qe:(de=Number(de),!isNaN(de)&&de>=0?de:qe)}function B(de,qe){if("percent"===de){const Y=qe.reduce((se,_e)=>null!==_e?se+_e:se,0);return qe.every(se=>null!==se)&&Y>99.9&&Y<100.1}if("pixel"===de)return 1===qe.filter(Y=>null===Y).length}function j(de){return null===de.size?null:!0===de.component.lockSize?de.size:null===de.component.minSize?null:de.component.minSize>de.size?de.size:de.component.minSize}function oe(de){return null===de.size?null:!0===de.component.lockSize?de.size:null===de.component.maxSize?null:de.component.maxSize<de.size?de.size:de.component.maxSize}function le(de,qe,Y,se){return qe.reduce((_e,fe)=>{const Be=function(de,qe,Y,se){return 0===Y?{areaSnapshot:qe,pixelAbsorb:0,percentAfterAbsorption:qe.sizePercentAtStart,pixelRemain:0}:0===qe.sizePixelAtStart&&Y<0?{areaSnapshot:qe,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:Y}:"percent"===de?function(de,qe,Y){const _e=(de.sizePixelAtStart+qe)/Y*100;if(qe>0){if(null!==de.area.maxSize&&_e>de.area.maxSize){const fe=de.area.maxSize/100*Y;return{areaSnapshot:de,pixelAbsorb:fe,percentAfterAbsorption:de.area.maxSize,pixelRemain:de.sizePixelAtStart+qe-fe}}return{areaSnapshot:de,pixelAbsorb:qe,percentAfterAbsorption:_e>100?100:_e,pixelRemain:0}}if(qe<0){if(null!==de.area.minSize&&_e<de.area.minSize){const fe=de.area.minSize/100*Y;return{areaSnapshot:de,pixelAbsorb:fe,percentAfterAbsorption:de.area.minSize,pixelRemain:de.sizePixelAtStart+qe-fe}}return _e<0?{areaSnapshot:de,pixelAbsorb:-de.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:qe+de.sizePixelAtStart}:{areaSnapshot:de,pixelAbsorb:qe,percentAfterAbsorption:_e,pixelRemain:0}}}(qe,Y,se):"pixel"===de?function(de,qe,Y){const se=de.sizePixelAtStart+qe;return qe>0?null!==de.area.maxSize&&se>de.area.maxSize?{areaSnapshot:de,pixelAbsorb:de.area.maxSize-de.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:se-de.area.maxSize}:{areaSnapshot:de,pixelAbsorb:qe,percentAfterAbsorption:-1,pixelRemain:0}:qe<0?null!==de.area.minSize&&se<de.area.minSize?{areaSnapshot:de,pixelAbsorb:de.area.minSize+qe-se,percentAfterAbsorption:-1,pixelRemain:se-de.area.minSize}:se<0?{areaSnapshot:de,pixelAbsorb:-de.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:qe+de.sizePixelAtStart}:{areaSnapshot:de,pixelAbsorb:qe,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(qe,Y):void 0}(de,fe,_e.remain,se);return _e.list.push(Be),_e.remain=Be.pixelRemain,_e},{remain:Y,list:[]})}function Ye(de,qe){"percent"===de?qe.areaSnapshot.area.size=qe.percentAfterAbsorption:"pixel"===de&&null!==qe.areaSnapshot.area.size&&(qe.areaSnapshot.area.size=qe.areaSnapshot.sizePixelAtStart+qe.pixelAbsorb)}let Me=(()=>{class de{constructor(Y,se,_e,fe){this.ngZone=Y,this.elRef=se,this.cdRef=_e,this.renderer=fe,this._direction="horizontal",this._unit="percent",this._gutterSize=11,this._gutterStep=1,this._restrictMove=!1,this._useTransition=!1,this._disabled=!1,this._dir="ltr",this._gutterDblClickDuration=0,this.dragStart=new o.EventEmitter(!1),this.dragEnd=new o.EventEmitter(!1),this.gutterClick=new o.EventEmitter(!1),this.gutterDblClick=new o.EventEmitter(!1),this.dragProgressSubject=new f.xQ,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}set direction(Y){this._direction="vertical"===Y?"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(Y){this._unit="pixel"===Y?"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(Y){this._gutterSize=P(Y,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(Y){this._gutterStep=P(Y,1)}get gutterStep(){return this._gutterStep}set restrictMove(Y){this._restrictMove=S(Y)}get restrictMove(){return this._restrictMove}set useTransition(Y){this._useTransition=S(Y),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(Y){this._disabled=S(Y),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(Y){this._dir="rtl"===Y?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(Y){this._gutterDblClickDuration=P(Y,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new _.y(Y=>this.transitionEndSubscriber=Y).pipe((0,a.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(Y){const se={component:Y,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===Y.visible?(this.displayedAreas.push(se),this.build(!0,!0)):this.hiddenAreas.push(se)}removeArea(Y){if(this.displayedAreas.some(se=>se.component===Y)){const se=this.displayedAreas.find(_e=>_e.component===Y);this.displayedAreas.splice(this.displayedAreas.indexOf(se),1),this.build(!0,!0)}else if(this.hiddenAreas.some(se=>se.component===Y)){const se=this.hiddenAreas.find(_e=>_e.component===Y);this.hiddenAreas.splice(this.hiddenAreas.indexOf(se),1)}}updateArea(Y,se,_e){!0===Y.visible&&this.build(se,_e)}showArea(Y){const se=this.hiddenAreas.find(fe=>fe.component===Y);if(void 0===se)return;const _e=this.hiddenAreas.splice(this.hiddenAreas.indexOf(se),1);this.displayedAreas.push(..._e),this.build(!0,!0)}hideArea(Y){const se=this.displayedAreas.find(fe=>fe.component===Y);if(void 0===se)return;const _e=this.displayedAreas.splice(this.displayedAreas.indexOf(se),1);_e.forEach(fe=>{fe.order=0,fe.size=0}),this.hiddenAreas.push(..._e),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(Y=>null===Y.size?"*":Y.size)}setVisibleAreaSizes(Y){if(Y.length!==this.displayedAreas.length)return!1;const se=Y.map(fe=>P(fe,null));return!1!==B(this.unit,se)&&(this.displayedAreas.forEach((fe,Be)=>fe.component._size=se[Be]),this.build(!1,!0),!0)}build(Y,se){if(this.stopDragging(),!0===Y&&(this.displayedAreas.every(_e=>null!==_e.component.order)&&this.displayedAreas.sort((_e,fe)=>_e.component.order-fe.component.order),this.displayedAreas.forEach((_e,fe)=>{_e.order=2*fe,_e.component.setStyleOrder(_e.order)})),!0===se){const _e=B(this.unit,this.displayedAreas.map(fe=>fe.component.size));switch(this.unit){case"percent":{const fe=100/this.displayedAreas.length;this.displayedAreas.forEach(Be=>{Be.size=_e?Be.component.size:fe,Be.minSize=j(Be),Be.maxSize=oe(Be)});break}case"pixel":if(_e)this.displayedAreas.forEach(fe=>{fe.size=fe.component.size,fe.minSize=j(fe),fe.maxSize=oe(fe)});else{const fe=this.displayedAreas.filter(Be=>null===Be.component.size);if(0===fe.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((Be,Fe)=>{Be.size=0===Fe?null:Be.component.size,Be.minSize=0===Fe?null:j(Be),Be.maxSize=0===Fe?null:oe(Be)});else if(fe.length>1){let Be=!1;this.displayedAreas.forEach(Fe=>{null===Fe.component.size?!1===Be?(Fe.size=null,Fe.minSize=null,Fe.maxSize=null,Be=!0):(Fe.size=100,Fe.minSize=null,Fe.maxSize=null):(Fe.size=Fe.component.size,Fe.minSize=j(Fe),Fe.maxSize=oe(Fe))})}}}}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 Y=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(se=>{se.component.setStyleFlex(0,0,`calc( ${se.size}% - ${se.size/100*Y}px )`,null!==se.minSize&&se.minSize===se.size,null!==se.maxSize&&se.maxSize===se.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(Y=>{null===Y.size?Y.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?Y.component.setStyleFlex(0,0,"100%",!1,!1):Y.component.setStyleFlex(0,0,`${Y.size}px`,null!==Y.minSize&&Y.minSize===Y.size,null!==Y.maxSize&&Y.maxSize===Y.size)})}clickGutter(Y,se){const _e=E(Y);this.startPoint&&this.startPoint.x===_e.x&&this.startPoint.y===_e.y&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",se),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",se),this.stopDragging()},this.gutterDblClickDuration))}startDragging(Y,se,_e){Y.preventDefault(),Y.stopPropagation(),this.startPoint=E(Y),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.snapshot={gutterNum:_e,lastSteppedOffset:0,allAreasSizePixel:M(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(fe=>{const Be={area:fe,sizePixelAtStart:M(fe.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?fe.size:-1};fe.order<se?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[Be]:this.snapshot.areasBeforeGutter.unshift(Be):fe.order>se&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[Be]):this.snapshot.areasAfterGutter.push(Be))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((fe,Be)=>fe+Be.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(fe=>fe.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0))}dragEvent(Y){if(Y.preventDefault(),Y.stopPropagation(),null!==this._clickTimeout&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging||(this.endPoint=E(Y),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 se="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(se=-se);const _e=Math.round(se/this.gutterStep)*this.gutterStep;if(_e===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=_e;let fe=le(this.unit,this.snapshot.areasBeforeGutter,-_e,this.snapshot.allAreasSizePixel),Be=le(this.unit,this.snapshot.areasAfterGutter,_e,this.snapshot.allAreasSizePixel);if(0!==fe.remain&&0!==Be.remain?Math.abs(fe.remain)===Math.abs(Be.remain)||(Math.abs(fe.remain)>Math.abs(Be.remain)?Be=le(this.unit,this.snapshot.areasAfterGutter,_e+fe.remain,this.snapshot.allAreasSizePixel):fe=le(this.unit,this.snapshot.areasBeforeGutter,-(_e-Be.remain),this.snapshot.allAreasSizePixel)):0!==fe.remain?Be=le(this.unit,this.snapshot.areasAfterGutter,_e+fe.remain,this.snapshot.allAreasSizePixel):0!==Be.remain&&(fe=le(this.unit,this.snapshot.areasBeforeGutter,-(_e-Be.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const Fe=[...fe.list,...Be.list],st=Fe.find(ct=>0!==ct.percentAfterAbsorption&&ct.percentAfterAbsorption!==ct.areaSnapshot.area.minSize&&ct.percentAfterAbsorption!==ct.areaSnapshot.area.maxSize);st&&(st.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-Fe.filter(ct=>ct!==st).reduce((ct,Ct)=>ct+Ct.percentAfterAbsorption,0))}fe.list.forEach(Fe=>Ye(this.unit,Fe)),Be.list.forEach(Fe=>Ye(this.unit,Fe)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(Y){if(Y&&(Y.preventDefault(),Y.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(se=>se.component.unlockEvents());this.dragListeners.length>0;){const se=this.dragListeners.pop();se&&se()}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(Y,se){const _e=this.getVisibleAreaSizes();"start"===Y?this.dragStart.emit({gutterNum:se,sizes:_e}):"end"===Y?this.dragEnd.emit({gutterNum:se,sizes:_e}):"click"===Y?this.gutterClick.emit({gutterNum:se,sizes:_e}):"dblclick"===Y?this.gutterDblClick.emit({gutterNum:se,sizes:_e}):"transitionEnd"===Y?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(_e)):"progress"===Y&&this.dragProgressSubject.next({gutterNum:se,sizes:_e})}ngOnDestroy(){this.stopDragging()}collapseArea(Y,se,_e){const fe=this.displayedAreas.find(st=>st.component===Y);if(void 0===fe)return;const Be="right"===_e?1:-1;fe.sizeBeforeCollapse||(fe.sizeBeforeCollapse=fe.size,fe.gutterBeforeCollapse=Be),fe.size=se;const Fe=this.gutterEls.find(st=>st.nativeElement.style.order===`${fe.order+Be}`);Fe&&this.renderer.addClass(Fe.nativeElement,"as-split-gutter-collapsed"),this.updateArea(Y,!1,!1)}expandArea(Y){const se=this.displayedAreas.find(fe=>fe.component===Y);if(void 0===se||!se.sizeBeforeCollapse)return;se.size=se.sizeBeforeCollapse,se.sizeBeforeCollapse=null;const _e=this.gutterEls.find(fe=>fe.nativeElement.style.order===`${se.order+se.gutterBeforeCollapse}`);_e&&this.renderer.removeClass(_e.nativeElement,"as-split-gutter-collapsed"),this.updateArea(Y,!1,!1)}}return de.\u0275fac=function(Y){return new(Y||de)(o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.Renderer2))},de.\u0275cmp=o.\u0275\u0275defineComponent({type:de,selectors:[["as-split"]],viewQuery:function(Y,se){if(1&Y&&o.\u0275\u0275viewQuery(C,5),2&Y){let _e;o.\u0275\u0275queryRefresh(_e=o.\u0275\u0275loadQuery())&&(se.gutterEls=_e)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration"},outputs:{dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick",transitionEnd:"transitionEnd"},exportAs:["asSplit"],ngContentSelectors:g,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(Y,se){1&Y&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0),o.\u0275\u0275template(1,D,1,1,"ng-template",0)),2&Y&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",se.displayedAreas))},directives:[l.NgForOf,l.NgIf],styles:['[_nghost-%COMP%]{align-items:stretch;display:flex;flex-wrap:nowrap;height:100%;justify-content:flex-start;overflow:hidden;width:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{align-items:center;background-color:#eee;display:flex;flex-grow:0;flex-shrink:0;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%]{background-position:50%;background-repeat:no-repeat;height:100%;width:100%}[_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%]{cursor:col-resize;flex-direction:row;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%]{cursor:row-resize;flex-direction:column;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-area, .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%]{transition:flex-basis .3s}'],changeDetection:0}),de})(),Oe=(()=>{class de{constructor(Y,se,_e,fe){this.ngZone=Y,this.elRef=se,this.renderer=_e,this.split=fe,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(Y){this._order=P(Y,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(Y){this._size=P(Y,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(Y){this._minSize=P(Y,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(Y){this._maxSize=P(Y,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(Y){this._lockSize=S(Y),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(Y){this._visible=S(Y),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",Y=>{"flex-basis"===Y.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(Y){this.renderer.setStyle(this.elRef.nativeElement,"order",Y)}setStyleFlex(Y,se,_e,fe,Be){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",Y),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",se),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",_e),!0===fe?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===Be?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 Y=this.lockListeners.pop();Y&&Y()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(Y=0,se="right"){this.split.collapseArea(this,Y,se)}expand(){this.split.expandArea(this)}}return de.\u0275fac=function(Y){return new(Y||de)(o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(Me))},de.\u0275dir=o.\u0275\u0275defineDirective({type:de,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),de})(),Pe=(()=>{class de{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:de,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:de,providers:[]}}}return de.\u0275fac=function(Y){return new(Y||de)},de.\u0275mod=o.\u0275\u0275defineNgModule({type:de}),de.\u0275inj=o.\u0275\u0275defineInjector({imports:[[l.CommonModule]]}),de})()},9457:function(Ne,T){var d,l;void 0!==(l="function"==typeof(d=function(){"use strict";function _(E,M,S){var P=new XMLHttpRequest;P.open("GET",E),P.responseType="blob",P.onload=function(){g(P.response,M,S)},P.onerror=function(){console.error("could not download file")},P.send()}function a(E){var M=new XMLHttpRequest;M.open("HEAD",E,!1);try{M.send()}catch(S){}return 200<=M.status&&299>=M.status}function C(E){try{E.dispatchEvent(new MouseEvent("click"))}catch(S){var M=document.createEvent("MouseEvents");M.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),E.dispatchEvent(M)}}var w="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,D=w.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=w.saveAs||("object"!=typeof window||window!==w?function(){}:"download"in HTMLAnchorElement.prototype&&!D?function(E,M,S){var P=w.URL||w.webkitURL,B=document.createElement("a");B.download=M=M||E.name||"download",B.rel="noopener","string"==typeof E?(B.href=E,B.origin===location.origin?C(B):a(B.href)?_(E,M,S):C(B,B.target="_blank")):(B.href=P.createObjectURL(E),setTimeout(function(){P.revokeObjectURL(B.href)},4e4),setTimeout(function(){C(B)},0))}:"msSaveOrOpenBlob"in navigator?function(E,M,S){if(M=M||E.name||"download","string"!=typeof E)navigator.msSaveOrOpenBlob(function(E,M){return void 0===M?M={autoBom:!1}:"object"!=typeof M&&(console.warn("Deprecated: Expected third argument to be a object"),M={autoBom:!M}),M.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(E.type)?new Blob(["\ufeff",E],{type:E.type}):E}(E,S),M);else if(a(E))_(E,M,S);else{var P=document.createElement("a");P.href=E,P.target="_blank",setTimeout(function(){C(P)})}}:function(E,M,S,P){if((P=P||open("","_blank"))&&(P.document.title=P.document.body.innerText="downloading..."),"string"==typeof E)return _(E,M,S);var B="application/octet-stream"===E.type,j=/constructor/i.test(w.HTMLElement)||w.safari,oe=/CriOS\/[\d]+/.test(navigator.userAgent);if((oe||B&&j||D)&&"undefined"!=typeof FileReader){var le=new FileReader;le.onloadend=function(){var lt=le.result;lt=oe?lt:lt.replace(/^data:[^;]*;/,"data:attachment/file;"),P?P.location.href=lt:location=lt,P=null},le.readAsDataURL(E)}else{var Ce=w.URL||w.webkitURL,$e=Ce.createObjectURL(E);P?P.location=$e:location.href=$e,P=null,setTimeout(function(){Ce.revokeObjectURL($e)},4e4)}});w.saveAs=g.saveAs=g,Ne.exports=g})?d.apply(T,[]):d)&&(Ne.exports=l)},1103:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{NgxJsonViewerComponent:()=>g,NgxJsonViewerModule:()=>E});var o=d(8583),l=d(7716);function f(M,S){1&M&&l.\u0275\u0275element(0,"div",9)}function _(M,S){if(1&M&&(l.\u0275\u0275elementStart(0,"span",10),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&M){const P=l.\u0275\u0275nextContext().$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(P.description)}}function a(M,S){if(1&M&&(l.\u0275\u0275elementStart(0,"section",11),l.\u0275\u0275element(1,"ngx-json-viewer",12),l.\u0275\u0275elementEnd()),2&M){const P=l.\u0275\u0275nextContext().$implicit,B=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("json",P.value)("expanded",B.expanded)("depth",B.depth)("_currentDepth",B._currentDepth)}}const C=function(M){return["segment",M]},w=function(M,S){return{"segment-main":!0,expandable:M,expanded:S}};function D(M,S){if(1&M){const P=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"section",2),l.\u0275\u0275elementStart(1,"section",3),l.\u0275\u0275listener("click",function(){const oe=l.\u0275\u0275restoreView(P).$implicit;return l.\u0275\u0275nextContext().toggle(oe)}),l.\u0275\u0275template(2,f,1,0,"div",4),l.\u0275\u0275elementStart(3,"span",5),l.\u0275\u0275text(4),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"span",6),l.\u0275\u0275text(6,": "),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(7,_,2,1,"span",7),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(8,a,2,4,"section",8),l.\u0275\u0275elementEnd()}if(2&M){const P=S.$implicit,B=l.\u0275\u0275nextContext();l.\u0275\u0275property("ngClass",l.\u0275\u0275pureFunction1(6,C,"segment-type-"+P.type)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",l.\u0275\u0275pureFunction2(8,w,B.isExpandable(P),P.expanded)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",B.isExpandable(P)),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(P.key),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngIf",!P.expanded||!B.isExpandable(P)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",P.expanded&&B.isExpandable(P))}}let g=(()=>{class M{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(P=>{this.segments.push(this.parseKeyValue(P,this.json[P]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(P){return"object"===P.type||"array"===P.type}toggle(P){this.isExpandable(P)&&(P.expanded=!P.expanded)}parseKeyValue(P,B){const j={key:P,value:B,type:void 0,description:""+B,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(P){const B=new WeakMap;return function j(oe,le){let Ce,$e;return"object"!=typeof oe||null===oe||oe instanceof Boolean||oe instanceof Date||oe instanceof Number||oe instanceof RegExp||oe instanceof String?oe:(Ce=B.get(oe),void 0!==Ce?{$ref:Ce}:(B.set(oe,le),Array.isArray(oe)?($e=[],oe.forEach(function(lt,Ye){$e[Ye]=j(lt,le+"["+Ye+"]")})):($e={},Object.keys(oe).forEach(function(lt){$e[lt]=j(oe[lt],le+"["+JSON.stringify(lt)+"]")})),$e))}(P,"$")}}return M.\u0275fac=function(P){return new(P||M)},M.\u0275cmp=l.\u0275\u0275defineComponent({type:M,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth",json:"json"},features:[l.\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(P,B){1&P&&(l.\u0275\u0275elementStart(0,"section",0),l.\u0275\u0275template(1,D,9,11,"section",1),l.\u0275\u0275elementEnd()),2&P&&(l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",B.segments))},directives:[o.NgForOf,o.NgClass,o.NgIf,M],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}']}),M})(),E=(()=>{class M{}return M.\u0275fac=function(P){return new(P||M)},M.\u0275mod=l.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=l.\u0275\u0275defineInjector({imports:[[o.CommonModule]]}),M})()},9344:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{BasePortalHost:()=>de,ComponentPortal:()=>Pe,DefaultGlobalConfig:()=>ct,DefaultNoAnimationsGlobalConfig:()=>ht,DefaultNoComponentGlobalConfig:()=>Me,Overlay:()=>_e,OverlayContainer:()=>Y,OverlayRef:()=>se,TOAST_CONFIG:()=>Oe,Toast:()=>st,ToastContainerDirective:()=>$e,ToastContainerModule:()=>lt,ToastInjector:()=>Be,ToastNoAnimation:()=>rt,ToastNoAnimationModule:()=>It,ToastPackage:()=>Ye,ToastRef:()=>fe,ToastrComponentlessModule:()=>je,ToastrModule:()=>Ct,ToastrService:()=>Fe});var o=d(7716),l=d(7238),f=d(9765),_=d(9075),a=d(8583);const C=["toast-component",""];function w(Ze,dt){if(1&Ze){const $=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",5),o.\u0275\u0275listener("click",function(){return o.\u0275\u0275restoreView($),o.\u0275\u0275nextContext().remove()}),o.\u0275\u0275elementStart(1,"span",6),o.\u0275\u0275text(2,"\xd7"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()}}function D(Ze,dt){if(1&Ze&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275text(1),o.\u0275\u0275elementContainerEnd()),2&Ze){const $=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1("[",$.duplicatesCount+1,"]")}}function g(Ze,dt){if(1&Ze&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275text(1),o.\u0275\u0275template(2,D,2,1,"ng-container",4),o.\u0275\u0275elementEnd()),2&Ze){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.titleClass),o.\u0275\u0275attribute("aria-label",$.title),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.title," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",$.duplicatesCount)}}function E(Ze,dt){if(1&Ze&&o.\u0275\u0275element(0,"div",7),2&Ze){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275property("innerHTML",$.message,o.\u0275\u0275sanitizeHtml)}}function M(Ze,dt){if(1&Ze&&(o.\u0275\u0275elementStart(0,"div",8),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Ze){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275attribute("aria-label",$.message),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.message," ")}}function S(Ze,dt){if(1&Ze&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"div",9),o.\u0275\u0275elementEnd()),2&Ze){const $=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275styleProp("width",$.width+"%")}}function P(Ze,dt){if(1&Ze){const $=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",5),o.\u0275\u0275listener("click",function(){return o.\u0275\u0275restoreView($),o.\u0275\u0275nextContext().remove()}),o.\u0275\u0275elementStart(1,"span",6),o.\u0275\u0275text(2,"\xd7"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()}}function B(Ze,dt){if(1&Ze&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275text(1),o.\u0275\u0275elementContainerEnd()),2&Ze){const $=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1("[",$.duplicatesCount+1,"]")}}function j(Ze,dt){if(1&Ze&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275text(1),o.\u0275\u0275template(2,B,2,1,"ng-container",4),o.\u0275\u0275elementEnd()),2&Ze){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.titleClass),o.\u0275\u0275attribute("aria-label",$.title),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.title," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",$.duplicatesCount)}}function oe(Ze,dt){if(1&Ze&&o.\u0275\u0275element(0,"div",7),2&Ze){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275property("innerHTML",$.message,o.\u0275\u0275sanitizeHtml)}}function le(Ze,dt){if(1&Ze&&(o.\u0275\u0275elementStart(0,"div",8),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Ze){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275attribute("aria-label",$.message),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.message," ")}}function Ce(Ze,dt){if(1&Ze&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"div",9),o.\u0275\u0275elementEnd()),2&Ze){const $=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275styleProp("width",$.width+"%")}}let $e=(()=>{class Ze{constructor($){this.el=$}getContainerElement(){return this.el.nativeElement}}return Ze.\u0275fac=function($){return new($||Ze)(o.\u0275\u0275directiveInject(o.ElementRef))},Ze.\u0275dir=o.\u0275\u0275defineDirective({type:Ze,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),Ze})(),lt=(()=>{class Ze{}return Ze.\u0275fac=function($){return new($||Ze)},Ze.\u0275mod=o.\u0275\u0275defineNgModule({type:Ze}),Ze.\u0275inj=o.\u0275\u0275defineInjector({}),Ze})();class Ye{constructor(dt,$,re,L,ce,ae){this.toastId=dt,this.config=$,this.message=re,this.title=L,this.toastType=ce,this.toastRef=ae,this._onTap=new f.xQ,this._onAction=new f.xQ,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(dt){this._onAction.next(dt)}onAction(){return this._onAction.asObservable()}}const Me={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},Oe=new o.InjectionToken("ToastConfig");class Pe{constructor(dt,$){this.component=dt,this.injector=$}attach(dt,$){return this._attachedHost=dt,dt.attach(this,$)}detach(){const dt=this._attachedHost;if(dt)return this._attachedHost=void 0,dt.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(dt){this._attachedHost=dt}}class de{attach(dt,$){return this._attachedPortal=dt,this.attachComponentPortal(dt,$)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(dt){this._disposeFn=dt}}class qe extends de{constructor(dt,$,re){super(),this._hostDomElement=dt,this._componentFactoryResolver=$,this._appRef=re}attachComponentPortal(dt,$){const re=this._componentFactoryResolver.resolveComponentFactory(dt.component);let L;return L=re.create(dt.injector),this._appRef.attachView(L.hostView),this.setDisposeFn(()=>{this._appRef.detachView(L.hostView),L.destroy()}),$?this._hostDomElement.insertBefore(this._getComponentRootNode(L),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(L)),L}_getComponentRootNode(dt){return dt.hostView.rootNodes[0]}}let Y=(()=>{class Ze{constructor($){this._document=$}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const $=this._document.createElement("div");$.classList.add("overlay-container"),this._document.body.appendChild($),this._containerElement=$}}return Ze.\u0275fac=function($){return new($||Ze)(o.\u0275\u0275inject(a.DOCUMENT))},Ze.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Ze(o.\u0275\u0275inject(a.DOCUMENT))},token:Ze,providedIn:"root"}),Ze})();class se{constructor(dt){this._portalHost=dt}attach(dt,$=!0){return this._portalHost.attach(dt,$)}detach(){return this._portalHost.detach()}}let _e=(()=>{class Ze{constructor($,re,L,ce){this._overlayContainer=$,this._componentFactoryResolver=re,this._appRef=L,this._document=ce,this._paneElements=new Map}create($,re){return this._createOverlayRef(this.getPaneElement($,re))}getPaneElement($="",re){return this._paneElements.get(re)||this._paneElements.set(re,{}),this._paneElements.get(re)[$]||(this._paneElements.get(re)[$]=this._createPaneElement($,re)),this._paneElements.get(re)[$]}_createPaneElement($,re){const L=this._document.createElement("div");return L.id="toast-container",L.classList.add($),L.classList.add("toast-container"),re?re.getContainerElement().appendChild(L):this._overlayContainer.getContainerElement().appendChild(L),L}_createPortalHost($){return new qe($,this._componentFactoryResolver,this._appRef)}_createOverlayRef($){return new se(this._createPortalHost($))}}return Ze.\u0275fac=function($){return new($||Ze)(o.\u0275\u0275inject(Y),o.\u0275\u0275inject(o.ComponentFactoryResolver),o.\u0275\u0275inject(o.ApplicationRef),o.\u0275\u0275inject(a.DOCUMENT))},Ze.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Ze(o.\u0275\u0275inject(Y),o.\u0275\u0275inject(o.ComponentFactoryResolver),o.\u0275\u0275inject(o.ApplicationRef),o.\u0275\u0275inject(a.DOCUMENT))},token:Ze,providedIn:"root"}),Ze})();class fe{constructor(dt){this._overlayRef=dt,this.duplicatesCount=0,this._afterClosed=new f.xQ,this._activate=new f.xQ,this._manualClose=new f.xQ,this._resetTimeout=new f.xQ,this._countDuplicate=new f.xQ}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(dt,$){dt&&this._resetTimeout.next(),$&&this._countDuplicate.next(++this.duplicatesCount)}}class Be{constructor(dt,$){this._toastPackage=dt,this._parentInjector=$}get(dt,$,re){return dt===Ye?this._toastPackage:this._parentInjector.get(dt,$,re)}}let Fe=(()=>{class Ze{constructor($,re,L,ce,ae){this.overlay=re,this._injector=L,this.sanitizer=ce,this.ngZone=ae,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},$.default),$.config),$.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},$.default.iconClasses),$.config.iconClasses))}show($,re,L={},ce=""){return this._preBuildNotification(ce,$,re,this.applyConfig(L))}success($,re,L={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",$,re,this.applyConfig(L))}error($,re,L={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",$,re,this.applyConfig(L))}info($,re,L={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",$,re,this.applyConfig(L))}warning($,re,L={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",$,re,this.applyConfig(L))}clear($){for(const re of this.toasts)if(void 0!==$){if(re.toastId===$)return void re.toastRef.manualClose()}else re.toastRef.manualClose()}remove($){const re=this._findToast($);if(!re||(re.activeToast.toastRef.close(),this.toasts.splice(re.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 L=this.toasts[this.currentlyActive].toastRef;L.isInactive()||(this.currentlyActive=this.currentlyActive+1,L.activate())}return!0}findDuplicate($="",re="",L,ce){const{includeTitleDuplicates:ae}=this.toastrConfig;for(const pe of this.toasts){const ke=ae&&pe.title===$;if((!ae||ke)&&pe.message===re)return pe.toastRef.onDuplicate(L,ce),pe}return null}applyConfig($={}){return Object.assign(Object.assign({},this.toastrConfig),$)}_findToast($){for(let re=0;re<this.toasts.length;re++)if(this.toasts[re].toastId===$)return{index:re,activeToast:this.toasts[re]};return null}_preBuildNotification($,re,L,ce){return ce.onActivateTick?this.ngZone.run(()=>this._buildNotification($,re,L,ce)):this._buildNotification($,re,L,ce)}_buildNotification($,re,L,ce){if(!ce.toastComponent)throw new Error("toastComponent required");const ae=this.findDuplicate(L,re,this.toastrConfig.resetTimeoutOnDuplicate&&ce.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&L||re)&&this.toastrConfig.preventDuplicates&&null!==ae)return ae;this.previousToastMessage=re;let pe=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(pe=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const ke=this.overlay.create(ce.positionClass,this.overlayContainer);this.index=this.index+1;let ot=re;re&&ce.enableHtml&&(ot=this.sanitizer.sanitize(o.SecurityContext.HTML,re));const wt=new fe(ke),Je=new Ye(this.index,ce,ot,L,$,wt),Ue=new Be(Je,this._injector),He=new Pe(ce.toastComponent,Ue),q=ke.attach(He,this.toastrConfig.newestOnTop);wt.componentInstance=q.instance;const Ke={toastId:this.index,title:L||"",message:re||"",toastRef:wt,onShown:wt.afterActivate(),onHidden:wt.afterClosed(),onTap:Je.onTap(),onAction:Je.onAction(),portal:q};return pe||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Ke.toastRef.activate()})),this.toasts.push(Ke),Ke}}return Ze.\u0275fac=function($){return new($||Ze)(o.\u0275\u0275inject(Oe),o.\u0275\u0275inject(_e),o.\u0275\u0275inject(o.Injector),o.\u0275\u0275inject(_.DomSanitizer),o.\u0275\u0275inject(o.NgZone))},Ze.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Ze(o.\u0275\u0275inject(Oe),o.\u0275\u0275inject(_e),o.\u0275\u0275inject(o.INJECTOR),o.\u0275\u0275inject(_.DomSanitizer),o.\u0275\u0275inject(o.NgZone))},token:Ze,providedIn:"root"}),Ze})(),st=(()=>{class Ze{constructor($,re,L){this.toastrService=$,this.toastPackage=re,this.ngZone=L,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=re.message,this.title=re.title,this.options=re.config,this.originalTimeout=re.config.timeOut,this.toastClasses=`${re.toastType} ${re.config.toastClass}`,this.sub=re.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=re.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=re.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=re.toastRef.countDuplicate().subscribe(ce=>{this.duplicatesCount=ce})}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 $=(new Date).getTime();this.width=(this.hideTime-$)/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($,re){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular($),re)):this.timeout=setTimeout(()=>$(),re)}outsideInterval($,re){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular($),re)):this.intervalId=setInterval(()=>$(),re)}runInsideAngular($){this.ngZone?this.ngZone.run(()=>$()):$()}}return Ze.\u0275fac=function($){return new($||Ze)(o.\u0275\u0275directiveInject(Fe),o.\u0275\u0275directiveInject(Ye),o.\u0275\u0275directiveInject(o.NgZone))},Ze.\u0275cmp=o.\u0275\u0275defineComponent({type:Ze,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function($,re){1&$&&o.\u0275\u0275listener("click",function(){return re.tapToast()})("mouseenter",function(){return re.stickAround()})("mouseleave",function(){return re.delayedHideToast()}),2&$&&(o.\u0275\u0275syntheticHostProperty("@flyInOut",re.state),o.\u0275\u0275classMap(re.toastClasses),o.\u0275\u0275styleProp("display",re.displayStyle))},attrs:C,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($,re){1&$&&(o.\u0275\u0275template(0,w,3,0,"button",0),o.\u0275\u0275template(1,g,3,5,"div",1),o.\u0275\u0275template(2,E,1,3,"div",2),o.\u0275\u0275template(3,M,2,4,"div",3),o.\u0275\u0275template(4,S,2,2,"div",4)),2&$&&(o.\u0275\u0275property("ngIf",re.options.closeButton),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",re.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",re.message&&re.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",re.message&&!re.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",re.options.progressBar))},directives:[a.NgIf],encapsulation:2,data:{animation:[(0,l.X$)("flyInOut",[(0,l.SB)("inactive",(0,l.oB)({opacity:0})),(0,l.SB)("active",(0,l.oB)({opacity:1})),(0,l.SB)("removed",(0,l.oB)({opacity:0})),(0,l.eR)("inactive => active",(0,l.jt)("{{ easeTime }}ms {{ easing }}")),(0,l.eR)("active => removed",(0,l.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Ze})();const ct=Object.assign(Object.assign({},Me),{toastComponent:st});let Ct=(()=>{class Ze{static forRoot($={}){return{ngModule:Ze,providers:[{provide:Oe,useValue:{default:ct,config:$}}]}}}return Ze.\u0275fac=function($){return new($||Ze)},Ze.\u0275mod=o.\u0275\u0275defineNgModule({type:Ze}),Ze.\u0275inj=o.\u0275\u0275defineInjector({imports:[[a.CommonModule]]}),Ze})(),je=(()=>{class Ze{static forRoot($={}){return{ngModule:Ct,providers:[{provide:Oe,useValue:{default:Me,config:$}}]}}}return Ze.\u0275fac=function($){return new($||Ze)},Ze.\u0275mod=o.\u0275\u0275defineNgModule({type:Ze}),Ze.\u0275inj=o.\u0275\u0275defineInjector({imports:[[a.CommonModule]]}),Ze})(),rt=(()=>{class Ze{constructor($,re,L){this.toastrService=$,this.toastPackage=re,this.appRef=L,this.width=-1,this.toastClasses="",this.state="inactive",this.message=re.message,this.title=re.title,this.options=re.config,this.originalTimeout=re.config.timeOut,this.toastClasses=`${re.toastType} ${re.config.toastClass}`,this.sub=re.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=re.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=re.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=re.toastRef.countDuplicate().subscribe(ce=>{this.duplicatesCount=ce})}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 $=(new Date).getTime();this.width=(this.hideTime-$)/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 Ze.\u0275fac=function($){return new($||Ze)(o.\u0275\u0275directiveInject(Fe),o.\u0275\u0275directiveInject(Ye),o.\u0275\u0275directiveInject(o.ApplicationRef))},Ze.\u0275cmp=o.\u0275\u0275defineComponent({type:Ze,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function($,re){1&$&&o.\u0275\u0275listener("click",function(){return re.tapToast()})("mouseenter",function(){return re.stickAround()})("mouseleave",function(){return re.delayedHideToast()}),2&$&&(o.\u0275\u0275classMap(re.toastClasses),o.\u0275\u0275styleProp("display",re.displayStyle))},attrs:C,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($,re){1&$&&(o.\u0275\u0275template(0,P,3,0,"button",0),o.\u0275\u0275template(1,j,3,5,"div",1),o.\u0275\u0275template(2,oe,1,3,"div",2),o.\u0275\u0275template(3,le,2,4,"div",3),o.\u0275\u0275template(4,Ce,2,2,"div",4)),2&$&&(o.\u0275\u0275property("ngIf",re.options.closeButton),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",re.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",re.message&&re.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",re.message&&!re.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",re.options.progressBar))},directives:[a.NgIf],encapsulation:2}),Ze})();const ht=Object.assign(Object.assign({},Me),{toastComponent:rt});let It=(()=>{class Ze{static forRoot($={}){return{ngModule:Ze,providers:[{provide:Oe,useValue:{default:ht,config:$}}]}}}return Ze.\u0275fac=function($){return new($||Ze)},Ze.\u0275mod=o.\u0275\u0275defineNgModule({type:Ze}),Ze.\u0275inj=o.\u0275\u0275defineInjector({imports:[[a.CommonModule]]}),Ze})()},4813:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{ArgumentOutOfRangeError:()=>fe.W,AsyncSubject:()=>B,BehaviorSubject:()=>S.X,ConnectableObservable:()=>l.c,EMPTY:()=>Ue.E,EmptyError:()=>Fe,GroupedObservable:()=>D,NEVER:()=>Le,Notification:()=>de.P,NotificationKind:()=>de.W,ObjectUnsubscribedError:()=>st.N,Observable:()=>o.y,ReplaySubject:()=>P.t,Scheduler:()=>Oe.b,Subject:()=>M.xQ,Subscriber:()=>Pe.L,Subscription:()=>f.w,TimeoutError:()=>je,UnsubscriptionError:()=>ct.B,VirtualAction:()=>Me,VirtualTimeScheduler:()=>Ye,animationFrame:()=>Ce.r,animationFrameScheduler:()=>Ce.Z,asap:()=>j.e,asapScheduler:()=>j.E,async:()=>oe.P,asyncScheduler:()=>oe.z,bindCallback:()=>dt,bindNodeCallback:()=>ce,combineLatest:()=>ot.aj,concat:()=>wt.z,config:()=>yn.v,defer:()=>Je.P,empty:()=>Ue.c,forkJoin:()=>He.D,from:()=>q.D,fromEvent:()=>Ke.R,fromEventPattern:()=>vt,generate:()=>Qe,identity:()=>se.y,iif:()=>F,interval:()=>he,isObservable:()=>_e.b,merge:()=>ne.T,never:()=>gt,noop:()=>Y.Z,observable:()=>E.L,of:()=>Et.of,onErrorResumeNext:()=>xt,pairs:()=>Nt,partition:()=>jt,pipe:()=>qe.z,queue:()=>le.c,queueScheduler:()=>le.N,race:()=>V,range:()=>De,scheduled:()=>wn.x,throwError:()=>Q._,timer:()=>Z.H,using:()=>N,zip:()=>_t});var o=d(9897),l=d(2441),f=d(826);class D extends o.y{constructor(xe,Se,et){super(),this.key=xe,this.groupSubject=Se,this.refCountSubscription=et}_subscribe(xe){const Se=new f.w,{refCountSubscription:et,groupSubject:ft}=this;return et&&!et.closed&&Se.add(new g(et)),Se.add(ft.subscribe(xe)),Se}}class g extends f.w{constructor(xe){super(),this.parent=xe,xe.count++}unsubscribe(){const xe=this.parent;!xe.closed&&!this.closed&&(super.unsubscribe(),xe.count-=1,0===xe.count&&xe.attemptedToUnsubscribe&&xe.unsubscribe())}}var E=d(6554),M=d(9765),S=d(6215),P=d(4448);class B extends M.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(xe){return this.hasError?(xe.error(this.thrownError),f.w.EMPTY):this.hasCompleted&&this.hasNext?(xe.next(this.value),xe.complete(),f.w.EMPTY):super._subscribe(xe)}next(xe){this.hasCompleted||(this.value=xe,this.hasNext=!0)}error(xe){this.hasCompleted||super.error(xe)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}var j=d(4581),oe=d(3637),le=d(7771),Ce=d(1927),$e=d(6465),lt=d(4548);let Ye=(()=>{class mt extends lt.v{constructor(Se=Me,et=Number.POSITIVE_INFINITY){super(Se,()=>this.frame),this.maxFrames=et,this.frame=0,this.index=-1}flush(){const{actions:Se,maxFrames:et}=this;let ft,Rt;for(;(Rt=Se[0])&&Rt.delay<=et&&(Se.shift(),this.frame=Rt.delay,!(ft=Rt.execute(Rt.state,Rt.delay))););if(ft){for(;Rt=Se.shift();)Rt.unsubscribe();throw ft}}}return mt.frameTimeFactor=10,mt})();class Me extends $e.o{constructor(xe,Se,et=(xe.index+=1)){super(xe,Se),this.scheduler=xe,this.work=Se,this.index=et,this.active=!0,this.index=xe.index=et}schedule(xe,Se=0){if(!this.id)return super.schedule(xe,Se);this.active=!1;const et=new Me(this.scheduler,this.work);return this.add(et),et.schedule(xe,Se)}requestAsyncId(xe,Se,et=0){this.delay=xe.frame+et;const{actions:ft}=xe;return ft.push(this),ft.sort(Me.sortActions),!0}recycleAsyncId(xe,Se,et=0){}_execute(xe,Se){if(!0===this.active)return super._execute(xe,Se)}static sortActions(xe,Se){return xe.delay===Se.delay?xe.index===Se.index?0:xe.index>Se.index?1:-1:xe.delay>Se.delay?1:-1}}var Oe=d(2217),Pe=d(7393),de=d(3098),qe=d(4022),Y=d(8640),se=d(4487),_e=d(5639),fe=d(7108);const Fe=(()=>{function mt(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return mt.prototype=Object.create(Error.prototype),mt})();var st=d(7971),ct=d(7744);const je=(()=>{function mt(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return mt.prototype=Object.create(Error.prototype),mt})();var rt=d(8002),ht=d(3179),It=d(9796),Ze=d(4869);function dt(mt,xe,Se){if(xe){if(!(0,Ze.K)(xe))return(...et)=>dt(mt,Se)(...et).pipe((0,rt.U)(ft=>(0,It.k)(ft)?xe(...ft):xe(ft)));Se=xe}return function(...et){const ft=this;let Rt;const ee={context:ft,subject:Rt,callbackFunc:mt,scheduler:Se};return new o.y(be=>{if(Se)return Se.schedule($,0,{args:et,subscriber:be,params:ee});if(!Rt){Rt=new B;const J=(...ve)=>{Rt.next(ve.length<=1?ve[0]:ve),Rt.complete()};try{mt.apply(ft,[...et,J])}catch(ve){(0,ht._)(Rt)?Rt.error(ve):console.warn(ve)}}return Rt.subscribe(be)})}}function $(mt){const{args:Se,subscriber:et,params:ft}=mt,{callbackFunc:Rt,context:ee,scheduler:be}=ft;let{subject:J}=ft;if(!J){J=ft.subject=new B;const ve=(...We)=>{this.add(be.schedule(re,0,{value:We.length<=1?We[0]:We,subject:J}))};try{Rt.apply(ee,[...Se,ve])}catch(We){J.error(We)}}this.add(J.subscribe(et))}function re(mt){const{value:xe,subject:Se}=mt;Se.next(xe),Se.complete()}function ce(mt,xe,Se){if(xe){if(!(0,Ze.K)(xe))return(...et)=>ce(mt,Se)(...et).pipe((0,rt.U)(ft=>(0,It.k)(ft)?xe(...ft):xe(ft)));Se=xe}return function(...et){const ft={subject:void 0,args:et,callbackFunc:mt,scheduler:Se,context:this};return new o.y(Rt=>{const{context:ee}=ft;let{subject:be}=ft;if(Se)return Se.schedule(ae,0,{params:ft,subscriber:Rt,context:ee});if(!be){be=ft.subject=new B;const J=(...ve)=>{const We=ve.shift();We?be.error(We):(be.next(ve.length<=1?ve[0]:ve),be.complete())};try{mt.apply(ee,[...et,J])}catch(ve){(0,ht._)(be)?be.error(ve):console.warn(ve)}}return be.subscribe(Rt)})}}function ae(mt){const{params:xe,subscriber:Se,context:et}=mt,{callbackFunc:ft,args:Rt,scheduler:ee}=xe;let be=xe.subject;if(!be){be=xe.subject=new B;const J=(...ve)=>{const We=ve.shift();this.add(We?ee.schedule(ke,0,{err:We,subject:be}):ee.schedule(pe,0,{value:ve.length<=1?ve[0]:ve,subject:be}))};try{ft.apply(et,[...Rt,J])}catch(ve){this.add(ee.schedule(ke,0,{err:ve,subject:be}))}}this.add(be.subscribe(Se))}function pe(mt){const{value:xe,subject:Se}=mt;Se.next(xe),Se.complete()}function ke(mt){const{err:xe,subject:Se}=mt;Se.error(xe)}var ot=d(9112),wt=d(8071),Je=d(1439),Ue=d(9193),He=d(5758),q=d(9412),Ke=d(2759),pt=d(9105);function vt(mt,xe,Se){return Se?vt(mt,xe).pipe((0,rt.U)(et=>(0,It.k)(et)?Se(...et):Se(et))):new o.y(et=>{const ft=(...ee)=>et.next(1===ee.length?ee[0]:ee);let Rt;try{Rt=mt(ft)}catch(ee){return void et.error(ee)}if((0,pt.m)(xe))return()=>xe(ft,Rt)})}function Qe(mt,xe,Se,et,ft){let Rt,ee;return 1==arguments.length?(ee=mt.initialState,xe=mt.condition,Se=mt.iterate,Rt=mt.resultSelector||se.y,ft=mt.scheduler):void 0===et||(0,Ze.K)(et)?(ee=mt,Rt=se.y,ft=et):(ee=mt,Rt=et),new o.y(be=>{let J=ee;if(ft)return ft.schedule(x,0,{subscriber:be,iterate:Se,condition:xe,resultSelector:Rt,state:J});for(;;){if(xe){let We;try{We=xe(J)}catch(yt){return void be.error(yt)}if(!We){be.complete();break}}let ve;try{ve=Rt(J)}catch(We){return void be.error(We)}if(be.next(ve),be.closed)break;try{J=Se(J)}catch(We){return void be.error(We)}}})}function x(mt){const{subscriber:xe,condition:Se}=mt;if(xe.closed)return;if(mt.needIterate)try{mt.state=mt.iterate(mt.state)}catch(ft){return void xe.error(ft)}else mt.needIterate=!0;if(Se){let ft;try{ft=Se(mt.state)}catch(Rt){return void xe.error(Rt)}if(!ft)return void xe.complete();if(xe.closed)return}let et;try{et=mt.resultSelector(mt.state)}catch(ft){return void xe.error(ft)}return xe.closed||(xe.next(et),xe.closed)?void 0:this.schedule(mt)}function F(mt,xe=Ue.E,Se=Ue.E){return(0,Je.P)(()=>mt()?xe:Se)}var R=d(6561);function he(mt=0,xe=oe.P){return(!(0,R.k)(mt)||mt<0)&&(mt=0),(!xe||"function"!=typeof xe.schedule)&&(xe=oe.P),new o.y(Se=>(Se.add(xe.schedule(z,mt,{subscriber:Se,counter:0,period:mt})),Se))}function z(mt){const{subscriber:xe,counter:Se,period:et}=mt;xe.next(Se),this.schedule({subscriber:xe,counter:Se+1,period:et},et)}var ne=d(6682);const Le=new o.y(Y.Z);function gt(){return Le}var Et=d(5917);function xt(...mt){if(0===mt.length)return Ue.E;const[xe,...Se]=mt;return 1===mt.length&&(0,It.k)(xe)?xt(...xe):new o.y(et=>{const ft=()=>et.add(xt(...Se).subscribe(et));return(0,q.D)(xe).subscribe({next(Rt){et.next(Rt)},error:ft,complete:ft})})}function Nt(mt,xe){return new o.y(xe?Se=>{const et=Object.keys(mt),ft=new f.w;return ft.add(xe.schedule(Ut,0,{keys:et,index:0,subscriber:Se,subscription:ft,obj:mt})),ft}:Se=>{const et=Object.keys(mt);for(let ft=0;ft<et.length&&!Se.closed;ft++){const Rt=et[ft];mt.hasOwnProperty(Rt)&&Se.next([Rt,mt[Rt]])}Se.complete()})}function Ut(mt){const{keys:xe,index:Se,subscriber:et,subscription:ft,obj:Rt}=mt;if(!et.closed)if(Se<xe.length){const ee=xe[Se];et.next([ee,Rt[ee]]),ft.add(this.schedule({keys:xe,index:Se+1,subscriber:et,subscription:ft,obj:Rt}))}else et.complete()}function Qt(mt,xe){function Se(){return!Se.pred.apply(Se.thisArg,arguments)}return Se.pred=mt,Se.thisArg=xe,Se}var At=d(7444),Lt=d(5435);function jt(mt,xe,Se){return[(0,Lt.h)(xe,Se)(new o.y((0,At.s)(mt))),(0,Lt.h)(Qt(xe,Se))(new o.y((0,At.s)(mt)))]}var _n=d(6693),Xe=d(5866),Pt=d(509);function V(...mt){if(1===mt.length){if(!(0,It.k)(mt[0]))return mt[0];mt=mt[0]}return(0,_n.n)(mt,void 0).lift(new K)}class K{call(xe,Se){return Se.subscribe(new W(xe))}}class W extends Xe.L{constructor(xe){super(xe),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(xe){this.observables.push(xe)}_complete(){const xe=this.observables,Se=xe.length;if(0===Se)this.destination.complete();else{for(let et=0;et<Se&&!this.hasFirst;et++){const Rt=(0,Pt.D)(this,xe[et],void 0,et);this.subscriptions&&this.subscriptions.push(Rt),this.add(Rt)}this.observables=null}}notifyNext(xe,Se,et){if(!this.hasFirst){this.hasFirst=!0;for(let ft=0;ft<this.subscriptions.length;ft++)if(ft!==et){let Rt=this.subscriptions[ft];Rt.unsubscribe(),this.remove(Rt)}this.subscriptions=null}this.destination.next(Se)}}function De(mt=0,xe,Se){return new o.y(et=>{void 0===xe&&(xe=mt,mt=0);let ft=0,Rt=mt;if(Se)return Se.schedule(Ee,0,{index:ft,count:xe,start:mt,subscriber:et});for(;;){if(ft++>=xe){et.complete();break}if(et.next(Rt++),et.closed)break}})}function Ee(mt){const{start:xe,index:Se,count:et,subscriber:ft}=mt;Se>=et?ft.complete():(ft.next(xe),!ft.closed&&(mt.index=Se+1,mt.start=xe+1,this.schedule(mt)))}var Q=d(205),Z=d(6797);function N(mt,xe){return new o.y(Se=>{let et,ft;try{et=mt()}catch(be){return void Se.error(be)}try{ft=xe(et)}catch(be){return void Se.error(be)}const ee=(ft?(0,q.D)(ft):Ue.E).subscribe(Se);return()=>{ee.unsubscribe(),et&&et.unsubscribe()}})}var ie=d(377),it=d(5345);function _t(...mt){const xe=mt[mt.length-1];return"function"==typeof xe&&mt.pop(),(0,_n.n)(mt,void 0).lift(new Ht(xe))}class Ht{constructor(xe){this.resultSelector=xe}call(xe,Se){return Se.subscribe(new dn(xe,this.resultSelector))}}class dn extends Pe.L{constructor(xe,Se,et=Object.create(null)){super(xe),this.resultSelector=Se,this.iterators=[],this.active=0,this.resultSelector="function"==typeof Se?Se:void 0}_next(xe){const Se=this.iterators;(0,It.k)(xe)?Se.push(new an(xe)):Se.push("function"==typeof xe[ie.hZ]?new cn(xe[ie.hZ]()):new un(this.destination,this,xe))}_complete(){const xe=this.iterators,Se=xe.length;if(this.unsubscribe(),0!==Se){this.active=Se;for(let et=0;et<Se;et++){let ft=xe[et];ft.stillUnsubscribed?this.destination.add(ft.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const xe=this.iterators,Se=xe.length,et=this.destination;for(let ee=0;ee<Se;ee++){let be=xe[ee];if("function"==typeof be.hasValue&&!be.hasValue())return}let ft=!1;const Rt=[];for(let ee=0;ee<Se;ee++){let be=xe[ee],J=be.next();if(be.hasCompleted()&&(ft=!0),J.done)return void et.complete();Rt.push(J.value)}this.resultSelector?this._tryresultSelector(Rt):et.next(Rt),ft&&et.complete()}_tryresultSelector(xe){let Se;try{Se=this.resultSelector.apply(this,xe)}catch(et){return void this.destination.error(et)}this.destination.next(Se)}}class cn{constructor(xe){this.iterator=xe,this.nextResult=xe.next()}hasValue(){return!0}next(){const xe=this.nextResult;return this.nextResult=this.iterator.next(),xe}hasCompleted(){const xe=this.nextResult;return Boolean(xe&&xe.done)}}class an{constructor(xe){this.array=xe,this.index=0,this.length=0,this.length=xe.length}[ie.hZ](){return this}next(xe){const Se=this.index++;return Se<this.length?{value:this.array[Se],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class un extends it.Ds{constructor(xe,Se,et){super(xe),this.parent=Se,this.observable=et,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[ie.hZ](){return this}next(){const xe=this.buffer;return 0===xe.length&&this.isComplete?{value:null,done:!0}:{value:xe.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(xe){this.buffer.push(xe),this.parent.checkIterators()}subscribe(){return(0,it.ft)(this.observable,new it.IY(this))}}var wn=d(1115),yn=d(2494)},6215:(Ne,T,d)=>{"use strict";d.d(T,{X:()=>f});var o=d(9765),l=d(7971);class f extends o.xQ{constructor(a){super(),this._value=a}get value(){return this.getValue()}_subscribe(a){const C=super._subscribe(a);return C&&!C.closed&&a.next(this._value),C}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new l.N;return this._value}next(a){super.next(this._value=a)}}},3098:(Ne,T,d)=>{"use strict";d.d(T,{W:()=>_,P:()=>a});var o=d(9193),l=d(5917),f=d(205),_=(()=>{return(C=_||(_={})).NEXT="N",C.ERROR="E",C.COMPLETE="C",_;var C})();class a{constructor(w,D,g){this.kind=w,this.value=D,this.error=g,this.hasValue="N"===w}observe(w){switch(this.kind){case"N":return w.next&&w.next(this.value);case"E":return w.error&&w.error(this.error);case"C":return w.complete&&w.complete()}}do(w,D,g){switch(this.kind){case"N":return w&&w(this.value);case"E":return D&&D(this.error);case"C":return g&&g()}}accept(w,D,g){return w&&"function"==typeof w.next?this.observe(w):this.do(w,D,g)}toObservable(){switch(this.kind){case"N":return(0,l.of)(this.value);case"E":return(0,f._)(this.error);case"C":return(0,o.c)()}throw new Error("unexpected notification kind value")}static createNext(w){return void 0!==w?new a("N",w):a.undefinedValueNotification}static createError(w){return new a("E",void 0,w)}static createComplete(){return a.completeNotification}}a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0)},9897:(Ne,T,d)=>{"use strict";d.d(T,{y:()=>g});var o=d(3179),l=d(7393),f=d(9181),_=d(6490),C=d(6554),w=d(4022),D=d(2494);let g=(()=>{class M{constructor(P){this._isScalar=!1,P&&(this._subscribe=P)}lift(P){const B=new M;return B.source=this,B.operator=P,B}subscribe(P,B,j){const{operator:oe}=this,le=function(M,S,P){if(M){if(M instanceof l.L)return M;if(M[f.b])return M[f.b]()}return M||S||P?new l.L(M,S,P):new l.L(_.c)}(P,B,j);if(le.add(oe?oe.call(le,this.source):this.source||D.v.useDeprecatedSynchronousErrorHandling&&!le.syncErrorThrowable?this._subscribe(le):this._trySubscribe(le)),D.v.useDeprecatedSynchronousErrorHandling&&le.syncErrorThrowable&&(le.syncErrorThrowable=!1,le.syncErrorThrown))throw le.syncErrorValue;return le}_trySubscribe(P){try{return this._subscribe(P)}catch(B){D.v.useDeprecatedSynchronousErrorHandling&&(P.syncErrorThrown=!0,P.syncErrorValue=B),(0,o._)(P)?P.error(B):console.warn(B)}}forEach(P,B){return new(B=E(B))((j,oe)=>{let le;le=this.subscribe(Ce=>{try{P(Ce)}catch($e){oe($e),le&&le.unsubscribe()}},oe,j)})}_subscribe(P){const{source:B}=this;return B&&B.subscribe(P)}[C.L](){return this}pipe(...P){return 0===P.length?this:(0,w.U)(P)(this)}toPromise(P){return new(P=E(P))((B,j)=>{let oe;this.subscribe(le=>oe=le,le=>j(le),()=>B(oe))})}}return M.create=S=>new M(S),M})();function E(M){if(M||(M=D.v.Promise||Promise),!M)throw new Error("no Promise impl found");return M}},6490:(Ne,T,d)=>{"use strict";d.d(T,{c:()=>f});var o=d(2494),l=d(4449);const f={closed:!0,next(_){},error(_){if(o.v.useDeprecatedSynchronousErrorHandling)throw _;(0,l.z)(_)},complete(){}}},5866:(Ne,T,d)=>{"use strict";d.d(T,{L:()=>l});var o=d(7393);class l extends o.L{notifyNext(_,a,C,w,D){this.destination.next(a)}notifyError(_,a){this.destination.error(_)}notifyComplete(_){this.destination.complete()}}},4448:(Ne,T,d)=>{"use strict";d.d(T,{t:()=>S});var o=d(9765),l=d(7771),f=d(826),_=d(7393),a=d(3098);class D extends _.L{constructor(j,oe,le=0){super(j),this.scheduler=oe,this.delay=le}static dispatch(j){const{notification:oe,destination:le}=j;oe.observe(le),this.unsubscribe()}scheduleMessage(j){this.destination.add(this.scheduler.schedule(D.dispatch,this.delay,new g(j,this.destination)))}_next(j){this.scheduleMessage(a.P.createNext(j))}_error(j){this.scheduleMessage(a.P.createError(j)),this.unsubscribe()}_complete(){this.scheduleMessage(a.P.createComplete()),this.unsubscribe()}}class g{constructor(j,oe){this.notification=j,this.destination=oe}}var E=d(7971),M=d(8858);class S extends o.xQ{constructor(j=Number.POSITIVE_INFINITY,oe=Number.POSITIVE_INFINITY,le){super(),this.scheduler=le,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=j<1?1:j,this._windowTime=oe<1?1:oe,oe===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(j){if(!this.isStopped){const oe=this._events;oe.push(j),oe.length>this._bufferSize&&oe.shift()}super.next(j)}nextTimeWindow(j){this.isStopped||(this._events.push(new P(this._getNow(),j)),this._trimBufferThenGetEvents()),super.next(j)}_subscribe(j){const oe=this._infiniteTimeWindow,le=oe?this._events:this._trimBufferThenGetEvents(),Ce=this.scheduler,$e=le.length;let lt;if(this.closed)throw new E.N;if(this.isStopped||this.hasError?lt=f.w.EMPTY:(this.observers.push(j),lt=new M.W(this,j)),Ce&&j.add(j=new D(j,Ce)),oe)for(let Ye=0;Ye<$e&&!j.closed;Ye++)j.next(le[Ye]);else for(let Ye=0;Ye<$e&&!j.closed;Ye++)j.next(le[Ye].value);return this.hasError?j.error(this.thrownError):this.isStopped&&j.complete(),lt}_getNow(){return(this.scheduler||l.c).now()}_trimBufferThenGetEvents(){const j=this._getNow(),oe=this._bufferSize,le=this._windowTime,Ce=this._events,$e=Ce.length;let lt=0;for(;lt<$e&&!(j-Ce[lt].time<le);)lt++;return $e>oe&&(lt=Math.max(lt,$e-oe)),lt>0&&Ce.splice(0,lt),Ce}}class P{constructor(j,oe){this.time=j,this.value=oe}}},2217:(Ne,T,d)=>{"use strict";d.d(T,{b:()=>o});let o=(()=>{class l{constructor(_,a=l.now){this.SchedulerAction=_,this.now=a}schedule(_,a=0,C){return new this.SchedulerAction(this,_).schedule(C,a)}}return l.now=()=>Date.now(),l})()},9765:(Ne,T,d)=>{"use strict";d.d(T,{Yc:()=>w,xQ:()=>D});var o=d(9897),l=d(7393),f=d(826),_=d(7971),a=d(8858),C=d(9181);class w extends l.L{constructor(M){super(M),this.destination=M}}let D=(()=>{class E extends o.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[C.b](){return new w(this)}lift(S){const P=new g(this,this);return P.operator=S,P}next(S){if(this.closed)throw new _.N;if(!this.isStopped){const{observers:P}=this,B=P.length,j=P.slice();for(let oe=0;oe<B;oe++)j[oe].next(S)}}error(S){if(this.closed)throw new _.N;this.hasError=!0,this.thrownError=S,this.isStopped=!0;const{observers:P}=this,B=P.length,j=P.slice();for(let oe=0;oe<B;oe++)j[oe].error(S);this.observers.length=0}complete(){if(this.closed)throw new _.N;this.isStopped=!0;const{observers:S}=this,P=S.length,B=S.slice();for(let j=0;j<P;j++)B[j].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(S){if(this.closed)throw new _.N;return super._trySubscribe(S)}_subscribe(S){if(this.closed)throw new _.N;return this.hasError?(S.error(this.thrownError),f.w.EMPTY):this.isStopped?(S.complete(),f.w.EMPTY):(this.observers.push(S),new a.W(this,S))}asObservable(){const S=new o.y;return S.source=this,S}}return E.create=(M,S)=>new g(M,S),E})();class g extends D{constructor(M,S){super(),this.destination=M,this.source=S}next(M){const{destination:S}=this;S&&S.next&&S.next(M)}error(M){const{destination:S}=this;S&&S.error&&this.destination.error(M)}complete(){const{destination:M}=this;M&&M.complete&&this.destination.complete()}_subscribe(M){const{source:S}=this;return S?this.source.subscribe(M):f.w.EMPTY}}},8858:(Ne,T,d)=>{"use strict";d.d(T,{W:()=>l});var o=d(826);class l extends o.w{constructor(_,a){super(),this.subject=_,this.subscriber=a,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const _=this.subject,a=_.observers;if(this.subject=null,!a||0===a.length||_.isStopped||_.closed)return;const C=a.indexOf(this.subscriber);-1!==C&&a.splice(C,1)}}},7393:(Ne,T,d)=>{"use strict";d.d(T,{L:()=>w});var o=d(9105),l=d(6490),f=d(826),_=d(9181),a=d(2494),C=d(4449);class w extends f.w{constructor(E,M,S){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l.c;break;case 1:if(!E){this.destination=l.c;break}if("object"==typeof E){E instanceof w?(this.syncErrorThrowable=E.syncErrorThrowable,this.destination=E,E.add(this)):(this.syncErrorThrowable=!0,this.destination=new D(this,E));break}default:this.syncErrorThrowable=!0,this.destination=new D(this,E,M,S)}}[_.b](){return this}static create(E,M,S){const P=new w(E,M,S);return P.syncErrorThrowable=!1,P}next(E){this.isStopped||this._next(E)}error(E){this.isStopped||(this.isStopped=!0,this._error(E))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(E){this.destination.next(E)}_error(E){this.destination.error(E),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:E}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=E,this}}class D extends w{constructor(E,M,S,P){super(),this._parentSubscriber=E;let B,j=this;(0,o.m)(M)?B=M:M&&(B=M.next,S=M.error,P=M.complete,M!==l.c&&(j=Object.create(M),(0,o.m)(j.unsubscribe)&&this.add(j.unsubscribe.bind(j)),j.unsubscribe=this.unsubscribe.bind(this))),this._context=j,this._next=B,this._error=S,this._complete=P}next(E){if(!this.isStopped&&this._next){const{_parentSubscriber:M}=this;a.v.useDeprecatedSynchronousErrorHandling&&M.syncErrorThrowable?this.__tryOrSetError(M,this._next,E)&&this.unsubscribe():this.__tryOrUnsub(this._next,E)}}error(E){if(!this.isStopped){const{_parentSubscriber:M}=this,{useDeprecatedSynchronousErrorHandling:S}=a.v;if(this._error)S&&M.syncErrorThrowable?(this.__tryOrSetError(M,this._error,E),this.unsubscribe()):(this.__tryOrUnsub(this._error,E),this.unsubscribe());else if(M.syncErrorThrowable)S?(M.syncErrorValue=E,M.syncErrorThrown=!0):(0,C.z)(E),this.unsubscribe();else{if(this.unsubscribe(),S)throw E;(0,C.z)(E)}}}complete(){if(!this.isStopped){const{_parentSubscriber:E}=this;if(this._complete){const M=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&E.syncErrorThrowable?(this.__tryOrSetError(E,M),this.unsubscribe()):(this.__tryOrUnsub(M),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(E,M){try{E.call(this._context,M)}catch(S){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw S;(0,C.z)(S)}}__tryOrSetError(E,M,S){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{M.call(this._context,S)}catch(P){return a.v.useDeprecatedSynchronousErrorHandling?(E.syncErrorValue=P,E.syncErrorThrown=!0,!0):((0,C.z)(P),!0)}return!1}_unsubscribe(){const{_parentSubscriber:E}=this;this._context=null,this._parentSubscriber=null,E.unsubscribe()}}},826:(Ne,T,d)=>{"use strict";d.d(T,{w:()=>a});var w,o=d(9796),l=d(1555),f=d(9105),_=d(7744);class a{constructor(D){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,D&&(this._ctorUnsubscribe=!0,this._unsubscribe=D)}unsubscribe(){let D;if(this.closed)return;let{_parentOrParents:g,_ctorUnsubscribe:E,_unsubscribe:M,_subscriptions:S}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,g instanceof a)g.remove(this);else if(null!==g)for(let P=0;P<g.length;++P)g[P].remove(this);if((0,f.m)(M)){E&&(this._unsubscribe=void 0);try{M.call(this)}catch(P){D=P instanceof _.B?C(P.errors):[P]}}if((0,o.k)(S)){let P=-1,B=S.length;for(;++P<B;){const j=S[P];if((0,l.K)(j))try{j.unsubscribe()}catch(oe){D=D||[],oe instanceof _.B?D=D.concat(C(oe.errors)):D.push(oe)}}}if(D)throw new _.B(D)}add(D){let g=D;if(!D)return a.EMPTY;switch(typeof D){case"function":g=new a(D);case"object":if(g===this||g.closed||"function"!=typeof g.unsubscribe)return g;if(this.closed)return g.unsubscribe(),g;if(!(g instanceof a)){const S=g;g=new a,g._subscriptions=[S]}break;default:throw new Error("unrecognized teardown "+D+" added to Subscription.")}let{_parentOrParents:E}=g;if(null===E)g._parentOrParents=this;else if(E instanceof a){if(E===this)return g;g._parentOrParents=[E,this]}else{if(-1!==E.indexOf(this))return g;E.push(this)}const M=this._subscriptions;return null===M?this._subscriptions=[g]:M.push(g),g}remove(D){const g=this._subscriptions;if(g){const E=g.indexOf(D);-1!==E&&g.splice(E,1)}}}function C(w){return w.reduce((D,g)=>D.concat(g instanceof _.B?g.errors:g),[])}a.EMPTY=((w=new a).closed=!0,w)},2494:(Ne,T,d)=>{"use strict";d.d(T,{v:()=>l});let o=!1;const l={Promise:void 0,set useDeprecatedSynchronousErrorHandling(f){if(f){const _=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+_.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=f},get useDeprecatedSynchronousErrorHandling(){return o}}},5345:(Ne,T,d)=>{"use strict";d.d(T,{IY:()=>_,Ds:()=>C,ft:()=>D});var o=d(7393),l=d(9897),f=d(7444);class _ extends o.L{constructor(E){super(),this.parent=E}_next(E){this.parent.notifyNext(E)}_error(E){this.parent.notifyError(E),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class C extends o.L{notifyNext(E){this.destination.next(E)}notifyError(E){this.destination.error(E)}notifyComplete(){this.destination.complete()}}function D(g,E){if(E.closed)return;if(g instanceof l.y)return g.subscribe(E);let M;try{M=(0,f.s)(g)(E)}catch(S){E.error(S)}return M}},2441:(Ne,T,d)=>{"use strict";d.d(T,{c:()=>a,N:()=>C});var o=d(9765),l=d(9897),f=d(826),_=d(1307);class a extends l.y{constructor(M,S){super(),this.source=M,this.subjectFactory=S,this._refCount=0,this._isComplete=!1}_subscribe(M){return this.getSubject().subscribe(M)}getSubject(){const M=this._subject;return(!M||M.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let M=this._connection;return M||(this._isComplete=!1,M=this._connection=new f.w,M.add(this.source.subscribe(new w(this.getSubject(),this))),M.closed&&(this._connection=null,M=f.w.EMPTY)),M}refCount(){return(0,_.x)()(this)}}const C=(()=>{const E=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:E._subscribe},_isComplete:{value:E._isComplete,writable:!0},getSubject:{value:E.getSubject},connect:{value:E.connect},refCount:{value:E.refCount}}})();class w extends o.Yc{constructor(M,S){super(M),this.connectable=S}_error(M){this._unsubscribe(),super._error(M)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const M=this.connectable;if(M){this.connectable=null;const S=M._connection;M._refCount=0,M._subject=null,M._connection=null,S&&S.unsubscribe()}}}},9112:(Ne,T,d)=>{"use strict";d.d(T,{aj:()=>w});var o=d(4869),l=d(9796),f=d(5866),_=d(509),a=d(6693);const C={};function w(...E){let M,S;return(0,o.K)(E[E.length-1])&&(S=E.pop()),"function"==typeof E[E.length-1]&&(M=E.pop()),1===E.length&&(0,l.k)(E[0])&&(E=E[0]),(0,a.n)(E,S).lift(new D(M))}class D{constructor(M){this.resultSelector=M}call(M,S){return S.subscribe(new g(M,this.resultSelector))}}class g extends f.L{constructor(M,S){super(M),this.resultSelector=S,this.active=0,this.values=[],this.observables=[]}_next(M){this.values.push(C),this.observables.push(M)}_complete(){const M=this.observables,S=M.length;if(0===S)this.destination.complete();else{this.active=S,this.toRespond=S;for(let P=0;P<S;P++)this.add((0,_.D)(this,M[P],void 0,P))}}notifyComplete(M){0==(this.active-=1)&&this.destination.complete()}notifyNext(M,S,P){const B=this.values,oe=this.toRespond?B[P]===C?--this.toRespond:this.toRespond:0;B[P]=S,0===oe&&(this.resultSelector?this._tryResultSelector(B):this.destination.next(B.slice()))}_tryResultSelector(M){let S;try{S=this.resultSelector.apply(this,M)}catch(P){return void this.destination.error(P)}this.destination.next(S)}}},8071:(Ne,T,d)=>{"use strict";d.d(T,{z:()=>_});var o=d(5917),l=d(3282);function _(...a){return(0,l.J)(1)((0,o.of)(...a))}},1439:(Ne,T,d)=>{"use strict";d.d(T,{P:()=>_});var o=d(9897),l=d(9412),f=d(9193);function _(a){return new o.y(C=>{let w;try{w=a()}catch(g){return void C.error(g)}return(w?(0,l.D)(w):(0,f.c)()).subscribe(C)})}},9193:(Ne,T,d)=>{"use strict";d.d(T,{E:()=>l,c:()=>f});var o=d(9897);const l=new o.y(a=>a.complete());function f(a){return a?function(a){return new o.y(C=>a.schedule(()=>C.complete()))}(a):l}},5758:(Ne,T,d)=>{"use strict";d.d(T,{D:()=>C});var o=d(9897),l=d(9796),f=d(8002),_=d(1555),a=d(9412);function C(...D){if(1===D.length){const g=D[0];if((0,l.k)(g))return w(g,null);if((0,_.K)(g)&&Object.getPrototypeOf(g)===Object.prototype){const E=Object.keys(g);return w(E.map(M=>g[M]),E)}}if("function"==typeof D[D.length-1]){const g=D.pop();return w(D=1===D.length&&(0,l.k)(D[0])?D[0]:D,null).pipe((0,f.U)(E=>g(...E)))}return w(D,null)}function w(D,g){return new o.y(E=>{const M=D.length;if(0===M)return void E.complete();const S=new Array(M);let P=0,B=0;for(let j=0;j<M;j++){const oe=(0,a.D)(D[j]);let le=!1;E.add(oe.subscribe({next:Ce=>{le||(le=!0,B++),S[j]=Ce},error:Ce=>E.error(Ce),complete:()=>{P++,(P===M||!le)&&(B===M&&E.next(g?g.reduce((Ce,$e,lt)=>(Ce[$e]=S[lt],Ce),{}):S),E.complete())}}))}})}},9412:(Ne,T,d)=>{"use strict";d.d(T,{D:()=>_});var o=d(9897),l=d(7444),f=d(1115);function _(a,C){return C?(0,f.x)(a,C):a instanceof o.y?a:new o.y((0,l.s)(a))}},6693:(Ne,T,d)=>{"use strict";d.d(T,{n:()=>_});var o=d(9897),l=d(5015),f=d(4087);function _(a,C){return C?(0,f.r)(a,C):new o.y((0,l.V)(a))}},2759:(Ne,T,d)=>{"use strict";d.d(T,{R:()=>C});var o=d(9897),l=d(9796),f=d(9105),_=d(8002);function C(M,S,P,B){return(0,f.m)(P)&&(B=P,P=void 0),B?C(M,S,P).pipe((0,_.U)(j=>(0,l.k)(j)?B(...j):B(j))):new o.y(j=>{w(M,S,function(le){j.next(arguments.length>1?Array.prototype.slice.call(arguments):le)},j,P)})}function w(M,S,P,B,j){let oe;if(function(M){return M&&"function"==typeof M.addEventListener&&"function"==typeof M.removeEventListener}(M)){const le=M;M.addEventListener(S,P,j),oe=()=>le.removeEventListener(S,P,j)}else if(function(M){return M&&"function"==typeof M.on&&"function"==typeof M.off}(M)){const le=M;M.on(S,P),oe=()=>le.off(S,P)}else if(function(M){return M&&"function"==typeof M.addListener&&"function"==typeof M.removeListener}(M)){const le=M;M.addListener(S,P),oe=()=>le.removeListener(S,P)}else{if(!M||!M.length)throw new TypeError("Invalid event target");for(let le=0,Ce=M.length;le<Ce;le++)w(M[le],S,P,B,j)}B.add(oe)}},6682:(Ne,T,d)=>{"use strict";d.d(T,{T:()=>a});var o=d(9897),l=d(4869),f=d(3282),_=d(6693);function a(...C){let w=Number.POSITIVE_INFINITY,D=null,g=C[C.length-1];return(0,l.K)(g)?(D=C.pop(),C.length>1&&"number"==typeof C[C.length-1]&&(w=C.pop())):"number"==typeof g&&(w=C.pop()),null===D&&1===C.length&&C[0]instanceof o.y?C[0]:(0,f.J)(w)((0,_.n)(C,D))}},5917:(Ne,T,d)=>{"use strict";d.d(T,{of:()=>_});var o=d(4869),l=d(6693),f=d(4087);function _(...a){let C=a[a.length-1];return(0,o.K)(C)?(a.pop(),(0,f.r)(a,C)):(0,l.n)(a)}},205:(Ne,T,d)=>{"use strict";d.d(T,{_:()=>l});var o=d(9897);function l(_,a){return new o.y(a?C=>a.schedule(f,0,{error:_,subscriber:C}):C=>C.error(_))}function f({error:_,subscriber:a}){a.error(_)}},6797:(Ne,T,d)=>{"use strict";d.d(T,{H:()=>a});var o=d(9897),l=d(3637),f=d(6561),_=d(4869);function a(w=0,D,g){let E=-1;return(0,f.k)(D)?E=Number(D)<1?1:Number(D):(0,_.K)(D)&&(g=D),(0,_.K)(g)||(g=l.P),new o.y(M=>{const S=(0,f.k)(w)?w:+w-g.now();return g.schedule(C,S,{index:0,period:E,subscriber:M})})}function C(w){const{index:D,period:g,subscriber:E}=w;if(E.next(D),!E.closed){if(-1===g)return E.complete();w.index=D+1,this.schedule(w,g)}}},4395:(Ne,T,d)=>{"use strict";d.d(T,{b:()=>f});var o=d(7393),l=d(3637);function f(w,D=l.P){return g=>g.lift(new _(w,D))}class _{constructor(D,g){this.dueTime=D,this.scheduler=g}call(D,g){return g.subscribe(new a(D,this.dueTime,this.scheduler))}}class a extends o.L{constructor(D,g,E){super(D),this.dueTime=g,this.scheduler=E,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(D){this.clearDebounce(),this.lastValue=D,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(C,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:D}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(D)}}clearDebounce(){const D=this.debouncedSubscription;null!==D&&(this.remove(D),D.unsubscribe(),this.debouncedSubscription=null)}}function C(w){w.debouncedNext()}},7519:(Ne,T,d)=>{"use strict";d.d(T,{x:()=>l});var o=d(7393);function l(a,C){return w=>w.lift(new f(a,C))}class f{constructor(C,w){this.compare=C,this.keySelector=w}call(C,w){return w.subscribe(new _(C,this.compare,this.keySelector))}}class _ extends o.L{constructor(C,w,D){super(C),this.keySelector=D,this.hasKey=!1,"function"==typeof w&&(this.compare=w)}compare(C,w){return C===w}_next(C){let w;try{const{keySelector:g}=this;w=g?g(C):C}catch(g){return this.destination.error(g)}let D=!1;if(this.hasKey)try{const{compare:g}=this;D=g(this.key,w)}catch(g){return this.destination.error(g)}else this.hasKey=!0;D||(this.key=w,this.destination.next(C))}}},5435:(Ne,T,d)=>{"use strict";d.d(T,{h:()=>l});var o=d(7393);function l(a,C){return function(D){return D.lift(new f(a,C))}}class f{constructor(C,w){this.predicate=C,this.thisArg=w}call(C,w){return w.subscribe(new _(C,this.predicate,this.thisArg))}}class _ extends o.L{constructor(C,w,D){super(C),this.predicate=w,this.thisArg=D,this.count=0}_next(C){let w;try{w=this.predicate.call(this.thisArg,C,this.count++)}catch(D){return void this.destination.error(D)}w&&this.destination.next(C)}}},8002:(Ne,T,d)=>{"use strict";d.d(T,{U:()=>l});var o=d(7393);function l(a,C){return function(D){if("function"!=typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return D.lift(new f(a,C))}}class f{constructor(C,w){this.project=C,this.thisArg=w}call(C,w){return w.subscribe(new _(C,this.project,this.thisArg))}}class _ extends o.L{constructor(C,w,D){super(C),this.project=w,this.count=0,this.thisArg=D||this}_next(C){let w;try{w=this.project.call(this.thisArg,C,this.count++)}catch(D){return void this.destination.error(D)}this.destination.next(w)}}},3282:(Ne,T,d)=>{"use strict";d.d(T,{J:()=>f});var o=d(9773),l=d(4487);function f(_=Number.POSITIVE_INFINITY){return(0,o.zg)(l.y,_)}},9773:(Ne,T,d)=>{"use strict";d.d(T,{zg:()=>_});var o=d(8002),l=d(9412),f=d(5345);function _(D,g,E=Number.POSITIVE_INFINITY){return"function"==typeof g?M=>M.pipe(_((S,P)=>(0,l.D)(D(S,P)).pipe((0,o.U)((B,j)=>g(S,B,P,j))),E)):("number"==typeof g&&(E=g),M=>M.lift(new a(D,E)))}class a{constructor(g,E=Number.POSITIVE_INFINITY){this.project=g,this.concurrent=E}call(g,E){return E.subscribe(new C(g,this.project,this.concurrent))}}class C extends f.Ds{constructor(g,E,M=Number.POSITIVE_INFINITY){super(g),this.project=E,this.concurrent=M,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(g){this.active<this.concurrent?this._tryNext(g):this.buffer.push(g)}_tryNext(g){let E;const M=this.index++;try{E=this.project(g,M)}catch(S){return void this.destination.error(S)}this.active++,this._innerSub(E)}_innerSub(g){const E=new f.IY(this),M=this.destination;M.add(E);const S=(0,f.ft)(g,E);S!==E&&M.add(S)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(g){this.destination.next(g)}notifyComplete(){const g=this.buffer;this.active--,g.length>0?this._next(g.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:(Ne,T,d)=>{"use strict";d.d(T,{x:()=>l});var o=d(7393);function l(){return function(C){return C.lift(new f(C))}}class f{constructor(C){this.connectable=C}call(C,w){const{connectable:D}=this;D._refCount++;const g=new _(C,D),E=w.subscribe(g);return g.closed||(g.connection=D.connect()),E}}class _ extends o.L{constructor(C,w){super(C),this.connectable=w}_unsubscribe(){const{connectable:C}=this;if(!C)return void(this.connection=null);this.connectable=null;const w=C._refCount;if(w<=0)return void(this.connection=null);if(C._refCount=w-1,w>1)return void(this.connection=null);const{connection:D}=this,g=C._connection;this.connection=null,g&&(!D||g===D)&&g.unsubscribe()}}},8819:(Ne,T,d)=>{"use strict";d.d(T,{B:()=>w});var o=d(2441);var _=d(1307),a=d(9765);function C(){return new a.xQ}function w(){return D=>(0,_.x)()(function(D,g){return function(M){let S;S="function"==typeof D?D:function(){return D};const P=Object.create(M,o.N);return P.source=M,P.subjectFactory=S,P}}(C)(D))}},3653:(Ne,T,d)=>{"use strict";d.d(T,{T:()=>l});var o=d(7393);function l(a){return C=>C.lift(new f(a))}class f{constructor(C){this.total=C}call(C,w){return w.subscribe(new _(C,this.total))}}class _ extends o.L{constructor(C,w){super(C),this.total=w,this.count=0}_next(C){++this.count>this.total&&this.destination.next(C)}}},9761:(Ne,T,d)=>{"use strict";d.d(T,{O:()=>f});var o=d(8071),l=d(4869);function f(..._){const a=_[_.length-1];return(0,l.K)(a)?(_.pop(),C=>(0,o.z)(_,C,a)):C=>(0,o.z)(_,C)}},3190:(Ne,T,d)=>{"use strict";d.d(T,{w:()=>_});var o=d(8002),l=d(9412),f=d(5345);function _(w,D){return"function"==typeof D?g=>g.pipe(_((E,M)=>(0,l.D)(w(E,M)).pipe((0,o.U)((S,P)=>D(E,S,M,P))))):g=>g.lift(new a(w))}class a{constructor(D){this.project=D}call(D,g){return g.subscribe(new C(D,this.project))}}class C extends f.Ds{constructor(D,g){super(D),this.project=g,this.index=0}_next(D){let g;const E=this.index++;try{g=this.project(D,E)}catch(M){return void this.destination.error(M)}this._innerSub(g)}_innerSub(D){const g=this.innerSubscription;g&&g.unsubscribe();const E=new f.IY(this),M=this.destination;M.add(E),this.innerSubscription=(0,f.ft)(D,E),this.innerSubscription!==E&&M.add(this.innerSubscription)}_complete(){const{innerSubscription:D}=this;(!D||D.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(D){this.destination.next(D)}}},5257:(Ne,T,d)=>{"use strict";d.d(T,{q:()=>_});var o=d(7393),l=d(7108),f=d(9193);function _(w){return D=>0===w?(0,f.c)():D.lift(new a(w))}class a{constructor(D){if(this.total=D,this.total<0)throw new l.W}call(D,g){return g.subscribe(new C(D,this.total))}}class C extends o.L{constructor(D,g){super(D),this.total=g,this.count=0}_next(D){const g=this.total,E=++this.count;E<=g&&(this.destination.next(D),E===g&&(this.destination.complete(),this.unsubscribe()))}}},6782:(Ne,T,d)=>{"use strict";d.d(T,{R:()=>l});var o=d(5345);function l(a){return C=>C.lift(new f(a))}class f{constructor(C){this.notifier=C}call(C,w){const D=new _(C),g=(0,o.ft)(this.notifier,new o.IY(D));return g&&!D.seenValue?(D.add(g),w.subscribe(D)):D}}class _ extends o.Ds{constructor(C){super(C),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},8307:(Ne,T,d)=>{"use strict";d.d(T,{b:()=>_});var o=d(7393),l=d(8640),f=d(9105);function _(w,D,g){return function(M){return M.lift(new a(w,D,g))}}class a{constructor(D,g,E){this.nextOrObserver=D,this.error=g,this.complete=E}call(D,g){return g.subscribe(new C(D,this.nextOrObserver,this.error,this.complete))}}class C extends o.L{constructor(D,g,E,M){super(D),this._tapNext=l.Z,this._tapError=l.Z,this._tapComplete=l.Z,this._tapError=E||l.Z,this._tapComplete=M||l.Z,(0,f.m)(g)?(this._context=this,this._tapNext=g):g&&(this._context=g,this._tapNext=g.next||l.Z,this._tapError=g.error||l.Z,this._tapComplete=g.complete||l.Z)}_next(D){try{this._tapNext.call(this._context,D)}catch(g){return void this.destination.error(g)}this.destination.next(D)}_error(D){try{this._tapError.call(this._context,D)}catch(g){return void this.destination.error(g)}this.destination.error(D)}_complete(){try{this._tapComplete.call(this._context)}catch(D){return void this.destination.error(D)}return this.destination.complete()}}},4087:(Ne,T,d)=>{"use strict";d.d(T,{r:()=>f});var o=d(9897),l=d(826);function f(_,a){return new o.y(C=>{const w=new l.w;let D=0;return w.add(a.schedule(function(){D!==_.length?(C.next(_[D++]),C.closed||w.add(this.schedule())):C.complete()})),w})}},1115:(Ne,T,d)=>{"use strict";d.d(T,{x:()=>P});var o=d(9897),l=d(826),f=d(6554),C=d(4087),w=d(377),E=d(4072),M=d(9489);function P(B,j){if(null!=B){if(function(B){return B&&"function"==typeof B[f.L]}(B))return function(B,j){return new o.y(oe=>{const le=new l.w;return le.add(j.schedule(()=>{const Ce=B[f.L]();le.add(Ce.subscribe({next($e){le.add(j.schedule(()=>oe.next($e)))},error($e){le.add(j.schedule(()=>oe.error($e)))},complete(){le.add(j.schedule(()=>oe.complete()))}}))})),le})}(B,j);if((0,E.t)(B))return function(B,j){return new o.y(oe=>{const le=new l.w;return le.add(j.schedule(()=>B.then(Ce=>{le.add(j.schedule(()=>{oe.next(Ce),le.add(j.schedule(()=>oe.complete()))}))},Ce=>{le.add(j.schedule(()=>oe.error(Ce)))}))),le})}(B,j);if((0,M.z)(B))return(0,C.r)(B,j);if(function(B){return B&&"function"==typeof B[w.hZ]}(B)||"string"==typeof B)return function(B,j){if(!B)throw new Error("Iterable cannot be null");return new o.y(oe=>{const le=new l.w;let Ce;return le.add(()=>{Ce&&"function"==typeof Ce.return&&Ce.return()}),le.add(j.schedule(()=>{Ce=B[w.hZ](),le.add(j.schedule(function(){if(oe.closed)return;let $e,lt;try{const Ye=Ce.next();$e=Ye.value,lt=Ye.done}catch(Ye){return void oe.error(Ye)}lt?oe.complete():(oe.next($e),this.schedule())}))})),le})}(B,j)}throw new TypeError((null!==B&&typeof B||B)+" is not observable")}},6465:(Ne,T,d)=>{"use strict";d.d(T,{o:()=>f});var o=d(826);class l extends o.w{constructor(a,C){super()}schedule(a,C=0){return this}}class f extends l{constructor(a,C){super(a,C),this.scheduler=a,this.work=C,this.pending=!1}schedule(a,C=0){if(this.closed)return this;this.state=a;const w=this.id,D=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(D,w,C)),this.pending=!0,this.delay=C,this.id=this.id||this.requestAsyncId(D,this.id,C),this}requestAsyncId(a,C,w=0){return setInterval(a.flush.bind(a,this),w)}recycleAsyncId(a,C,w=0){if(null!==w&&this.delay===w&&!1===this.pending)return C;clearInterval(C)}execute(a,C){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const w=this._execute(a,C);if(w)return w;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(a,C){let D,w=!1;try{this.work(a)}catch(g){w=!0,D=!!g&&g||new Error(g)}if(w)return this.unsubscribe(),D}_unsubscribe(){const a=this.id,C=this.scheduler,w=C.actions,D=w.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==D&&w.splice(D,1),null!=a&&(this.id=this.recycleAsyncId(C,a,null)),this.delay=null}}},4548:(Ne,T,d)=>{"use strict";d.d(T,{v:()=>l});var o=d(2217);class l extends o.b{constructor(_,a=o.b.now){super(_,()=>l.delegate&&l.delegate!==this?l.delegate.now():a()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(_,a=0,C){return l.delegate&&l.delegate!==this?l.delegate.schedule(_,a,C):super.schedule(_,a,C)}flush(_){const{actions:a}=this;if(this.active)return void a.push(_);let C;this.active=!0;do{if(C=_.execute(_.state,_.delay))break}while(_=a.shift());if(this.active=!1,C){for(;_=a.shift();)_.unsubscribe();throw C}}}},1927:(Ne,T,d)=>{"use strict";d.d(T,{r:()=>C,Z:()=>a});var o=d(6465),f=d(4548);const a=new class extends f.v{flush(D){this.active=!0,this.scheduled=void 0;const{actions:g}=this;let E,M=-1,S=g.length;D=D||g.shift();do{if(E=D.execute(D.state,D.delay))break}while(++M<S&&(D=g.shift()));if(this.active=!1,E){for(;++M<S&&(D=g.shift());)D.unsubscribe();throw E}}}(class extends o.o{constructor(D,g){super(D,g),this.scheduler=D,this.work=g}requestAsyncId(D,g,E=0){return null!==E&&E>0?super.requestAsyncId(D,g,E):(D.actions.push(this),D.scheduled||(D.scheduled=requestAnimationFrame(()=>D.flush(null))))}recycleAsyncId(D,g,E=0){if(null!==E&&E>0||null===E&&this.delay>0)return super.recycleAsyncId(D,g,E);0===D.actions.length&&(cancelAnimationFrame(g),D.scheduled=void 0)}}),C=a},4581:(Ne,T,d)=>{"use strict";d.d(T,{e:()=>S,E:()=>M});let o=1;const l=Promise.resolve(),f={};function _(P){return P in f&&(delete f[P],!0)}const a={setImmediate(P){const B=o++;return f[B]=!0,l.then(()=>_(B)&&P()),B},clearImmediate(P){_(P)}};var w=d(6465),g=d(4548);const M=new class extends g.v{flush(B){this.active=!0,this.scheduled=void 0;const{actions:j}=this;let oe,le=-1,Ce=j.length;B=B||j.shift();do{if(oe=B.execute(B.state,B.delay))break}while(++le<Ce&&(B=j.shift()));if(this.active=!1,oe){for(;++le<Ce&&(B=j.shift());)B.unsubscribe();throw oe}}}(class extends w.o{constructor(B,j){super(B,j),this.scheduler=B,this.work=j}requestAsyncId(B,j,oe=0){return null!==oe&&oe>0?super.requestAsyncId(B,j,oe):(B.actions.push(this),B.scheduled||(B.scheduled=a.setImmediate(B.flush.bind(B,null))))}recycleAsyncId(B,j,oe=0){if(null!==oe&&oe>0||null===oe&&this.delay>0)return super.recycleAsyncId(B,j,oe);0===B.actions.length&&(a.clearImmediate(j),B.scheduled=void 0)}}),S=M},3637:(Ne,T,d)=>{"use strict";d.d(T,{z:()=>f,P:()=>_});var o=d(6465);const f=new(d(4548).v)(o.o),_=f},7771:(Ne,T,d)=>{"use strict";d.d(T,{c:()=>C,N:()=>a});var o=d(6465),f=d(4548);const a=new class extends f.v{}(class extends o.o{constructor(D,g){super(D,g),this.scheduler=D,this.work=g}schedule(D,g=0){return g>0?super.schedule(D,g):(this.delay=g,this.state=D,this.scheduler.flush(this),this)}execute(D,g){return g>0||this.closed?super.execute(D,g):this._execute(D,g)}requestAsyncId(D,g,E=0){return null!==E&&E>0||null===E&&this.delay>0?super.requestAsyncId(D,g,E):D.flush(this)}}),C=a},377:(Ne,T,d)=>{"use strict";d.d(T,{hZ:()=>l});const l="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:(Ne,T,d)=>{"use strict";d.d(T,{L:()=>o});const o="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(Ne,T,d)=>{"use strict";d.d(T,{b:()=>o});const o="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(Ne,T,d)=>{"use strict";d.d(T,{W:()=>l});const l=(()=>{function f(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return f.prototype=Object.create(Error.prototype),f})()},7971:(Ne,T,d)=>{"use strict";d.d(T,{N:()=>l});const l=(()=>{function f(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return f.prototype=Object.create(Error.prototype),f})()},7744:(Ne,T,d)=>{"use strict";d.d(T,{B:()=>l});const l=(()=>{function f(_){return Error.call(this),this.message=_?`${_.length} errors occurred during unsubscription:\n${_.map((a,C)=>`${C+1}) ${a.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_,this}return f.prototype=Object.create(Error.prototype),f})()},3179:(Ne,T,d)=>{"use strict";d.d(T,{_:()=>l});var o=d(7393);function l(f){for(;f;){const{closed:_,destination:a,isStopped:C}=f;if(_||C)return!1;f=a&&a instanceof o.L?a:null}return!0}},4449:(Ne,T,d)=>{"use strict";function o(l){setTimeout(()=>{throw l},0)}d.d(T,{z:()=>o})},4487:(Ne,T,d)=>{"use strict";function o(l){return l}d.d(T,{y:()=>o})},9796:(Ne,T,d)=>{"use strict";d.d(T,{k:()=>o});const o=Array.isArray||(l=>l&&"number"==typeof l.length)},9489:(Ne,T,d)=>{"use strict";d.d(T,{z:()=>o});const o=l=>l&&"number"==typeof l.length&&"function"!=typeof l},9105:(Ne,T,d)=>{"use strict";function o(l){return"function"==typeof l}d.d(T,{m:()=>o})},6561:(Ne,T,d)=>{"use strict";d.d(T,{k:()=>l});var o=d(9796);function l(f){return!(0,o.k)(f)&&f-parseFloat(f)+1>=0}},1555:(Ne,T,d)=>{"use strict";function o(l){return null!==l&&"object"==typeof l}d.d(T,{K:()=>o})},5639:(Ne,T,d)=>{"use strict";d.d(T,{b:()=>l});var o=d(9897);function l(f){return!!f&&(f instanceof o.y||"function"==typeof f.lift&&"function"==typeof f.subscribe)}},4072:(Ne,T,d)=>{"use strict";function o(l){return!!l&&"function"!=typeof l.subscribe&&"function"==typeof l.then}d.d(T,{t:()=>o})},4869:(Ne,T,d)=>{"use strict";function o(l){return l&&"function"==typeof l.schedule}d.d(T,{K:()=>o})},8640:(Ne,T,d)=>{"use strict";function o(){}d.d(T,{Z:()=>o})},4022:(Ne,T,d)=>{"use strict";d.d(T,{z:()=>l,U:()=>f});var o=d(4487);function l(..._){return f(_)}function f(_){return 0===_.length?o.y:1===_.length?_[0]:function(C){return _.reduce((w,D)=>D(w),C)}}},7444:(Ne,T,d)=>{"use strict";d.d(T,{s:()=>M});var o=d(5015),l=d(4449),_=d(377),C=d(6554),D=d(9489),g=d(4072),E=d(1555);const M=S=>{if(S&&"function"==typeof S[C.L])return(S=>P=>{const B=S[C.L]();if("function"!=typeof B.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return B.subscribe(P)})(S);if((0,D.z)(S))return(0,o.V)(S);if((0,g.t)(S))return(S=>P=>(S.then(B=>{P.closed||(P.next(B),P.complete())},B=>P.error(B)).then(null,l.z),P))(S);if(S&&"function"==typeof S[_.hZ])return(S=>P=>{const B=S[_.hZ]();for(;;){let j;try{j=B.next()}catch(oe){return P.error(oe),P}if(j.done){P.complete();break}if(P.next(j.value),P.closed)break}return"function"==typeof B.return&&P.add(()=>{B.return&&B.return()}),P})(S);{const B=`You provided ${(0,E.K)(S)?"an invalid object":`'${S}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(B)}}},5015:(Ne,T,d)=>{"use strict";d.d(T,{V:()=>o});const o=l=>f=>{for(let _=0,a=l.length;_<a&&!f.closed;_++)f.next(l[_]);f.complete()}},509:(Ne,T,d)=>{"use strict";d.d(T,{D:()=>a});var o=d(7393);class l extends o.L{constructor(w,D,g){super(),this.parent=w,this.outerValue=D,this.outerIndex=g,this.index=0}_next(w){this.parent.notifyNext(this.outerValue,w,this.outerIndex,this.index++,this)}_error(w){this.parent.notifyError(w,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var f=d(7444),_=d(9897);function a(C,w,D,g,E=new l(C,D,g)){if(!E.closed)return w instanceof _.y?w.subscribe(E):(0,f.s)(w)(E)}},5041:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AppComponent=void 0;const o=d(4762),l=d(3679),f=d(4906),_=d(6988),a=d(2768),C=d(1670),w=d(282),D=d(9457),g=o.__importStar(d(7716)),E=o.__importStar(d(6395)),M=o.__importStar(d(9075)),S=o.__importStar(d(2421)),P=o.__importStar(d(5151)),B=o.__importStar(d(2665)),j=o.__importStar(d(8583)),oe=o.__importStar(d(5384)),le=o.__importStar(d(5939)),Ce=o.__importStar(d(5585)),$e=o.__importStar(d(1095)),lt=o.__importStar(d(1436)),Ye=o.__importStar(d(4264)),Me=o.__importStar(d(7822));function Oe(st,ct){1&st&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275text(1,"Editor Avan\xe7ado"),g.\u0275\u0275elementContainerEnd())}function Pe(st,ct){if(1&st&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275elementStart(1,"span",20),g.\u0275\u0275text(2),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementContainerEnd()),2&st){const Ct=g.\u0275\u0275nextContext(2).$implicit;g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate1("\u25b6\xa0",Ct.function,"")}}function de(st,ct){if(1&st){const Ct=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"span",17),g.\u0275\u0275template(1,Oe,2,0,"ng-container",18),g.\u0275\u0275template(2,Pe,3,1,"ng-container",18),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(3,"button",19),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(Ct);const rt=g.\u0275\u0275nextContext().$implicit;return g.\u0275\u0275nextContext(2).closeTab(rt)}),g.\u0275\u0275elementStart(4,"mat-icon"),g.\u0275\u0275text(5,"close"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}if(2&st){const Ct=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275property("ngSwitch",Ct.type),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","advanced"),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","simple")}}function qe(st,ct){1&st&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275element(1,"app-tab-editor"),g.\u0275\u0275elementContainerEnd())}function Y(st,ct){if(1&st&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275element(1,"app-simple-call",21),g.\u0275\u0275elementContainerEnd()),2&st){const Ct=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275advance(1),g.\u0275\u0275property("fn",Ct.function)}}function se(st,ct){if(1&st&&(g.\u0275\u0275elementStart(0,"mat-tab"),g.\u0275\u0275template(1,de,6,3,"ng-template",16),g.\u0275\u0275elementContainerStart(2,17),g.\u0275\u0275template(3,qe,2,0,"ng-container",18),g.\u0275\u0275template(4,Y,2,1,"ng-container",18),g.\u0275\u0275elementContainerEnd(),g.\u0275\u0275elementEnd()),2&st){const Ct=ct.$implicit;g.\u0275\u0275advance(2),g.\u0275\u0275property("ngSwitch",Ct.type),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","advanced"),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","simple")}}function _e(st,ct){if(1&st){const Ct=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"button",22),g.\u0275\u0275listener("click",function(){return g.\u0275\u0275restoreView(Ct),g.\u0275\u0275nextContext(2).addAdvancedTab()}),g.\u0275\u0275elementStart(1,"mat-icon"),g.\u0275\u0275text(2,"add_circle"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}}function fe(st,ct){if(1&st&&(g.\u0275\u0275elementStart(0,"button",23),g.\u0275\u0275elementStart(1,"mat-icon"),g.\u0275\u0275text(2,"download"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()),2&st){g.\u0275\u0275nextContext(2);const Ct=g.\u0275\u0275reference(5);g.\u0275\u0275property("matMenuTriggerFor",Ct)}}function Be(st,ct){if(1&st){const Ct=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"mat-tab-group",11),g.\u0275\u0275listener("selectedIndexChange",function(rt){return g.\u0275\u0275restoreView(Ct),g.\u0275\u0275nextContext().selected.setValue(rt)}),g.\u0275\u0275elementStart(1,"mat-tab",12),g.\u0275\u0275elementStart(2,"app-tab-home",13),g.\u0275\u0275listener("runFunction",function(rt){return g.\u0275\u0275restoreView(Ct),g.\u0275\u0275nextContext().addSimpleTab(rt)}),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(3,se,5,3,"mat-tab",14),g.\u0275\u0275elementStart(4,"mat-tab",15),g.\u0275\u0275template(5,_e,3,0,"ng-template",16),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(6,"mat-tab",15),g.\u0275\u0275template(7,fe,3,1,"ng-template",16),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}if(2&st){const Ct=g.\u0275\u0275nextContext();g.\u0275\u0275property("selectedIndex",Ct.selected.value),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngForOf",Ct.tabs)}}class Fe{constructor(ct,Ct,je){this.sdkgen=ct,this.domSanitizer=Ct,this.matIconRegistry=je,this.selected=new l.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const rt of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(rt,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${rt}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(ct=>{this.state=null!=ct?ct:void 0})}ngOnDestroy(){var ct;null===(ct=this.state$)||void 0===ct||ct.unsubscribe()}addSimpleTab(ct){this.tabs.push({id:this.tabIndex++,function:ct,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(ct){this.tabs.splice(this.tabs.indexOf(ct),1),this.selected.setValue(0)}downloadTarget(ct){if(!this.state)return;let Ct,je;switch(ct){case"typescript_nodeserver":Ct=w.generateNodeServerSource(this.state.astRoot),je="node-server.ts";break;case"typescript_nodeclient":Ct=w.generateNodeClientSource(this.state.astRoot),je="node-client.ts";break;case"typescript_web":Ct=w.generateBrowserClientSource(this.state.astRoot),je="web-client.ts";break;case"typescript_interfaces":Ct=w.generateTypescriptInterfaces(this.state.astRoot),je="interfaces.ts";break;case"flutter":Ct=_.generateDartClientSource(this.state.astRoot),je="flutter-client.dart";break;case"csharp_server":Ct=f.generateCSharpServerSource(this.state.astRoot),je="csharp-server.cs";break;case"kotlin_android":Ct=a.generateAndroidClientSource(this.state.astRoot,!0),je="android-client.kt";break;case"kotlin_android_without_callbacks":Ct=a.generateAndroidClientSource(this.state.astRoot,!1),je="android-client-no-callbacks.kt";break;case"swift_ios":Ct=C.generateSwiftClientSource(this.state.astRoot,!1),je="ios-client.swift";break;case"rxswift_ios":Ct=C.generateSwiftClientSource(this.state.astRoot,!0),je="ios-client-rx.swift"}D.saveAs(new Blob([Ct],{type:"application/octet-stream"}),je)}}T.AppComponent=Fe,Fe.\u0275fac=function(ct){return new(ct||Fe)(g.\u0275\u0275directiveInject(E.SdkgenService),g.\u0275\u0275directiveInject(M.DomSanitizer),g.\u0275\u0275directiveInject(S.MatIconRegistry))},Fe.\u0275cmp=g.\u0275\u0275defineComponent({type:Fe,selectors:[["app-root"]],decls:43,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(ct,Ct){1&ct&&(g.\u0275\u0275element(0,"ngx-monaco-editor",0),g.\u0275\u0275element(1,"app-tab-nav"),g.\u0275\u0275template(2,Be,8,2,"mat-tab-group",1),g.\u0275\u0275pipe(3,"async"),g.\u0275\u0275elementStart(4,"mat-menu",null,2),g.\u0275\u0275element(6,"div",3),g.\u0275\u0275elementStart(7,"button",4),g.\u0275\u0275text(8,"Cliente"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(9,"button",5),g.\u0275\u0275listener("click",function(){return Ct.downloadTarget("typescript_nodeclient")}),g.\u0275\u0275element(10,"mat-icon",6),g.\u0275\u0275text(11,"Node.js"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(12,"button",5),g.\u0275\u0275listener("click",function(){return Ct.downloadTarget("typescript_web")}),g.\u0275\u0275element(13,"mat-icon",6),g.\u0275\u0275text(14,"Web"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(15,"button",5),g.\u0275\u0275listener("click",function(){return Ct.downloadTarget("flutter")}),g.\u0275\u0275element(16,"mat-icon",7),g.\u0275\u0275text(17,"Flutter"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(18,"button",5),g.\u0275\u0275listener("click",function(){return Ct.downloadTarget("kotlin_android")}),g.\u0275\u0275element(19,"mat-icon",8),g.\u0275\u0275text(20,"Android"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(21,"button",5),g.\u0275\u0275listener("click",function(){return Ct.downloadTarget("kotlin_android_without_callbacks")}),g.\u0275\u0275element(22,"mat-icon",8),g.\u0275\u0275text(23,"Android (sem callbacks)"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(24,"button",5),g.\u0275\u0275listener("click",function(){return Ct.downloadTarget("swift_ios")}),g.\u0275\u0275element(25,"mat-icon",9),g.\u0275\u0275text(26,"iOS"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(27,"button",5),g.\u0275\u0275listener("click",function(){return Ct.downloadTarget("rxswift_ios")}),g.\u0275\u0275element(28,"mat-icon",9),g.\u0275\u0275text(29,"iOS (Rx)"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(30,"button",4),g.\u0275\u0275text(31,"Servidor"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(32,"button",5),g.\u0275\u0275listener("click",function(){return Ct.downloadTarget("typescript_nodeserver")}),g.\u0275\u0275element(33,"mat-icon",6),g.\u0275\u0275text(34,"Node.js"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(35,"button",5),g.\u0275\u0275listener("click",function(){return Ct.downloadTarget("csharp_server")}),g.\u0275\u0275element(36,"mat-icon",10),g.\u0275\u0275text(37,"C#"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(38,"button",4),g.\u0275\u0275text(39,"Outros"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(40,"button",5),g.\u0275\u0275listener("click",function(){return Ct.downloadTarget("typescript_interfaces")}),g.\u0275\u0275element(41,"mat-icon",6),g.\u0275\u0275text(42,"Interfaces"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()),2&ct&&(g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(3,1,Ct.sdkgen.state$)))},directives:[P.MonacoEditorComponent,B.TabNavComponent,j.NgIf,oe.MatMenu,oe.MatMenuItem,S.MatIcon,le.MatTabGroup,le.MatTab,Ce.TabHomeComponent,j.NgForOf,le.MatTabLabel,j.NgSwitch,j.NgSwitchCase,$e.MatButton,lt.MatTooltip,Ye.TabEditorComponent,Me.SimpleCallComponent,oe.MatMenuTrigger],pipes:[j.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:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AppModule=void 0;const o=d(4762),l=d(6820),f=d(3679),_=d(1095),a=d(2675),C=d(2238),w=d(2421),D=d(5384),g=d(2789),E=d(5939),M=d(1436),S=d(9075),P=d(6237),B=d(5151),j=d(7634),oe=d(1103),le=d(9344),Ce=d(5041),$e=o.__importStar(d(7716));o.__importStar(d(9344));class Ye{}T.AppModule=Ye,Ye.\u0275fac=function(Oe){return new(Oe||Ye)},Ye.\u0275mod=$e.\u0275\u0275defineNgModule({type:Ye,bootstrap:[Ce.AppComponent]}),Ye.\u0275inj=$e.\u0275\u0275defineInjector({providers:[{provide:B.MONACO_PATH,useValue:"assets/vs"}],imports:[[S.BrowserModule,f.FormsModule,f.ReactiveFormsModule,B.MonacoEditorModule,P.BrowserAnimationsModule,oe.NgxJsonViewerModule,le.ToastrModule.forRoot(),j.AngularSplitModule,l.HttpClientModule,_.MatButtonModule,a.MatChipsModule,C.MatDialogModule,w.MatIconModule,D.MatMenuModule,g.MatTableModule,E.MatTabsModule,M.MatTooltipModule]]})},8495:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ConsoleComponent=void 0;const o=d(4762),l=d(9972),f=o.__importStar(d(7716)),_=o.__importStar(d(1095)),a=o.__importStar(d(2421)),C=o.__importStar(d(8583)),w=o.__importStar(d(1103));function D(B,j){1&B&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275text(1,"info_outline"),f.\u0275\u0275elementContainerEnd())}function g(B,j){1&B&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275text(1,"error"),f.\u0275\u0275elementContainerEnd())}function E(B,j){1&B&&(f.\u0275\u0275elementContainerStart(0),f.\u0275\u0275text(1,"public"),f.\u0275\u0275elementContainerEnd())}function M(B,j){if(1&B&&f.\u0275\u0275element(0,"ngx-json-viewer",6),2&B){const oe=f.\u0275\u0275nextContext().$implicit;f.\u0275\u0275property("json",oe.details)("expanded",!1)}}function S(B,j){if(1&B&&(f.\u0275\u0275elementStart(0,"li",2),f.\u0275\u0275elementStart(1,"mat-icon",3),f.\u0275\u0275template(2,D,2,0,"ng-container",4),f.\u0275\u0275template(3,g,2,0,"ng-container",4),f.\u0275\u0275template(4,E,2,0,"ng-container",4),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(5,"span"),f.\u0275\u0275text(6),f.\u0275\u0275elementEnd(),f.\u0275\u0275template(7,M,1,2,"ngx-json-viewer",5),f.\u0275\u0275elementEnd()),2&B){const oe=j.$implicit,le=f.\u0275\u0275nextContext();f.\u0275\u0275property("ngClass",oe.type),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitch",oe.type)("ngClass",oe.type),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase",le.itemTypes.INFO),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase",le.itemTypes.ERROR),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngSwitchCase",le.itemTypes.NETWORK),f.\u0275\u0275advance(2),f.\u0275\u0275textInterpolate(oe.message),f.\u0275\u0275advance(1),f.\u0275\u0275property("ngIf",oe.details)}}class P{constructor(){this.itemTypes=l.ConsoleItemType,this.items=[]}}T.ConsoleComponent=P,P.\u0275fac=function(j){return new(j||P)},P.\u0275cmp=f.\u0275\u0275defineComponent({type:P,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,oe){1&j&&(f.\u0275\u0275elementStart(0,"header"),f.\u0275\u0275elementStart(1,"strong"),f.\u0275\u0275text(2,"CONSOLE"),f.\u0275\u0275elementEnd(),f.\u0275\u0275element(3,"s"),f.\u0275\u0275elementStart(4,"button",0),f.\u0275\u0275listener("click",function(){return oe.items.splice(0,oe.items.length)}),f.\u0275\u0275elementStart(5,"mat-icon"),f.\u0275\u0275text(6,"delete"),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementEnd(),f.\u0275\u0275elementStart(7,"ul"),f.\u0275\u0275template(8,S,8,8,"li",1),f.\u0275\u0275elementEnd()),2&j&&(f.\u0275\u0275advance(8),f.\u0275\u0275property("ngForOf",oe.items))},directives:[_.MatButton,a.MatIcon,C.NgForOf,C.NgClass,C.NgSwitch,C.NgSwitchCase,C.NgIf,w.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%] s[_ngcontent-%COMP%]{flex-grow:1}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:(Ne,T)=>{"use strict";var o;Object.defineProperty(T,"__esModule",{value:!0}),T.ConsoleItemType=void 0,(o=T.ConsoleItemType||(T.ConsoleItemType={})).INFO="info",o.ERROR="error",o.NETWORK="network"},4211:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FilterPipe=void 0;const l=d(4762).__importStar(d(7716));class f{transform(a,C){if(!a)return[];if(!C)return a;const w=C.toLocaleLowerCase();return a.filter(D=>JSON.stringify(D).toLocaleLowerCase().includes(w))}}T.FilterPipe=f,f.\u0275fac=function(a){return new(a||f)},f.\u0275pipe=l.\u0275\u0275definePipe({name:"appFilter",type:f,pure:!0})},7120:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ResponsiveService=void 0;const o=d(4762),l=o.__importStar(d(7716)),f=o.__importStar(d(5072));class _{constructor(C){this.observer=C}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)"])}}T.ResponsiveService=_,_.\u0275fac=function(C){return new(C||_)(l.\u0275\u0275inject(f.BreakpointObserver))},_.\u0275prov=l.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac,providedIn:"root"})},9435:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.getTypeDoc=T.getTypeLabels=T.getConstructorName=T.primitiveTypesExamples=T.primitiveTypes=void 0;const o=d(3979),l=d(6395);function f(C){switch(C.constructor){case o.StringPrimitiveType:return"StringPrimitiveType";case o.IntPrimitiveType:return"IntPrimitiveType";case o.UIntPrimitiveType:return"UIntPrimitiveType";case o.FloatPrimitiveType:return"FloatPrimitiveType";case o.BigIntPrimitiveType:return"BigIntPrimitiveType";case o.MoneyPrimitiveType:return"MoneyPrimitiveType";case o.DatePrimitiveType:return"DatePrimitiveType";case o.DateTimePrimitiveType:return"DateTimePrimitiveType";case o.BoolPrimitiveType:return"BoolPrimitiveType";case o.VoidPrimitiveType:return"VoidPrimitiveType";case o.CpfPrimitiveType:return"CpfPrimitiveType";case o.CnpjPrimitiveType:return"CnpjPrimitiveType";case o.EmailPrimitiveType:return"EmailPrimitiveType";case o.UrlPrimitiveType:return"UrlPrimitiveType";case o.UuidPrimitiveType:return"UuidPrimitiveType";case o.HexPrimitiveType:return"HexPrimitiveType";case o.HtmlPrimitiveType:return"HtmlPrimitiveType";case o.BytesPrimitiveType:return"BytesPrimitiveType";case o.Base64PrimitiveType:return"Base64PrimitiveType";case o.XmlPrimitiveType:return"XmlPrimitiveType";case o.JsonPrimitiveType:return"JsonPrimitiveType";case o.OptionalType:return"OptionalType";case o.EnumType:return"EnumType";case o.ArrayType:return"ArrayType";case o.StructType:return"StructType";default:return C.constructor.name}}T.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?."},T.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}']},T.getConstructorName=f,T.getTypeLabels=function _(C){const w=[];switch(C.constructor){case o.StringPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.FloatPrimitiveType:case o.BigIntPrimitiveType:case o.MoneyPrimitiveType:case o.DatePrimitiveType:case o.DateTimePrimitiveType:case o.BoolPrimitiveType:case o.VoidPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.HtmlPrimitiveType:case o.BytesPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.JsonPrimitiveType:w.push("Primitivo");break;case o.OptionalType:w.push("Opcional"),w.push(..._(C.base));break;case o.TypeReference:w.push(..._(C.type));break;case o.ArrayType:w.push("Array"),w.push(..._(C.base));break;case o.EnumType:w.push("Enum");break;default:console.error("No labels for",f(C))}return w},T.getTypeDoc=function a(C){var w,D,g;switch(C.constructor){case o.StringPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.FloatPrimitiveType:case o.BigIntPrimitiveType:case o.MoneyPrimitiveType:case o.DatePrimitiveType:case o.DateTimePrimitiveType:case o.BoolPrimitiveType:case o.VoidPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.HtmlPrimitiveType:case o.BytesPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.JsonPrimitiveType:return{longDescription:T.primitiveTypes[f(C)],shortDescription:T.primitiveTypes[f(C)],examples:T.primitiveTypesExamples[f(C)]};case o.OptionalType:{const M=a(C.base);return Object.assign(Object.assign({},M),{longDescription:M.longDescription,shortDescription:`(opcional) ${M.shortDescription}`,examples:["null",...null!==(w=M.examples)&&void 0!==w?w:[]]})}case o.TypeReference:return a(C.type);case o.ArrayType:{const M=a(C.base);return Object.assign(Object.assign({},M),{longDescription:M.longDescription,shortDescription:`(array) ${M.shortDescription}`,examples:["[]",...null!==(g=null===(D=M.examples)||void 0===D?void 0:D.map(S=>`[${S}]`))&&void 0!==g?g:[]]})}case o.EnumType:const E=C.values.map(M=>M.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${E.slice(0,3).join(", ")}${E.length>3?"\u2026":""}`,examples:E,isEnum:!0};case o.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${C.fields.slice(0,3).map(M=>M.name).join(", ")}\u2026`,isStruct:!0,structFields:C.fields.map(M=>{var S;return{name:M.name,description:null===(S=M.annotations.find(P=>P instanceof o.DescriptionAnnotation))||void 0===S?void 0:S.text,type:M.type,secret:M.secret}}),examples:[JSON.stringify((new l.SdkgenService).buildJsonObject(C.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__(1052).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SdkgenService=void 0;const tslib_1=__webpack_require__(4762),browser_runtime_1=__webpack_require__(2184),parser_1=__webpack_require__(3979),rxjs_1=__webpack_require__(4813),i0=tslib_1.__importStar(__webpack_require__(7716));class SdkgenService{constructor(){this.state$=new rxjs_1.BehaviorSubject(null)}buildJsonObject(Ne){const T=d=>{switch(d.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 this.buildJsonObject(d.fields);case parser_1.OptionalType:return null;case parser_1.TypeReference:return T(d.type);case parser_1.ArrayType:return[T(d.base),T(d.base),T(d.base)];case parser_1.EnumType:return d.values[0].value;default:return null}};return Ne.reduce((d,o)=>(d[o.name]=T(o.type),d),{})}getTypeScriptCode(Ne,T){return`await client.${Ne}(${JSON.stringify(T,null,2)});\n`}buildKotlinString(Ne,T=0){const d=o=>{switch(o.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`${o.name}(\n${this.buildKotlinString(o.fields,T+1)}\n${" ".repeat(T+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return d(o.type);case parser_1.ArrayType:T++;const l=d(o.base);return T--,`arrayOf(\n${" ".repeat(T+2)}${l},\n${" ".repeat(T+2)}${l}\n${" ".repeat(T+1)})`;case parser_1.EnumType:return`"${o.values[0].value}"`;default:return"<>()"}};return Ne.map(o=>`${" ".repeat(T+1)}${d(o.type)}`).join(",\n")}getKotlinCode(Ne,T){return 0===T.length?`client.${Ne}().await();`:`client.${Ne}(\n${this.buildKotlinString(T)}\n).await();`}getDartCode(Ne,T){return'print("todo");'}getSwiftCode(Ne,T){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:(Ne,T)=>function(){var d=_asyncToGenerator(function*(o){return clientInstance.makeRequest(T.toString(),o)});return function(o){return d.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function(T){return new(T||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__(1052).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleCallComponent=void 0;const tslib_1=__webpack_require__(4762),forms_1=__webpack_require__(3679),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=tslib_1.__importStar(__webpack_require__(7716)),i1=tslib_1.__importStar(__webpack_require__(6395)),i2=tslib_1.__importStar(__webpack_require__(7634)),i3=tslib_1.__importStar(__webpack_require__(5939)),i4=tslib_1.__importStar(__webpack_require__(1095)),i5=tslib_1.__importStar(__webpack_require__(2421)),i6=tslib_1.__importStar(__webpack_require__(5151)),i7=tslib_1.__importStar(__webpack_require__(3679)),i8=tslib_1.__importStar(__webpack_require__(1103)),i9=tslib_1.__importStar(__webpack_require__(8495));class SimpleCallComponent{constructor(Ne){this.sdkgen=Ne,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(Ne=>{!Ne||(this.generateFunctionCode(Ne.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(Ne.url,Ne.astJson))})}ngOnDestroy(){var Ne;null===(Ne=this.state$)||void 0===Ne||Ne.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(Ne){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Ne.toString()}),delete Ne.toString,_this.response={error:{type:Ne.type,message:Ne.message,data:Ne.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(Ne,T){var d;const o=null===(d=Ne.operations.find(l=>l.name===T))||void 0===d?void 0:d.args;o&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(o),null,2))}}exports.SimpleCallComponent=SimpleCallComponent,SimpleCallComponent.\u0275fac=function(T){return new(T||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(T,d){1&T&&(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(l){return d.selected.setValue(l)}),i0.\u0275\u0275elementStart(3,"mat-tab",2),i0.\u0275\u0275elementStart(4,"button",3),i0.\u0275\u0275listener("click",function(){return d.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(l){return d.code=l}),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&T&&(i0.\u0275\u0275advance(2),i0.\u0275\u0275property("selectedIndex",d.selected.value),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",d.editorOptions)("ngModel",d.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",!d.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("json",d.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",d.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__(1052).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TabEditorComponent=void 0;const tslib_1=__webpack_require__(4762),typescript_generator_1=__webpack_require__(282),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=tslib_1.__importStar(__webpack_require__(7716)),i1=tslib_1.__importStar(__webpack_require__(6395)),i2=tslib_1.__importStar(__webpack_require__(1095)),i3=tslib_1.__importStar(__webpack_require__(2421)),i4=tslib_1.__importStar(__webpack_require__(7634)),i5=tslib_1.__importStar(__webpack_require__(5151)),i6=tslib_1.__importStar(__webpack_require__(3679)),i7=tslib_1.__importStar(__webpack_require__(8495));class TabEditorComponent{constructor(Ne){this.sdkgen=Ne,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(Ne=>{if(!Ne)return;const T=`${this.patchBrowserClientSource(typescript_generator_1.generateBrowserClientSource(Ne.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(Ne.url,Ne.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 d=monaco.editor.getModels().find(l=>l.uri.toString().endsWith("client.d.ts"));d?d.setValue(T):monaco.editor.createModel(T,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[o]=Ne.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(o.name,this.sdkgen.buildJsonObject(o.args))})}ngOnDestroy(){var Ne;null===(Ne=this.state$)||void 0===Ne||Ne.unsubscribe()}patchBrowserClientSource(Ne){return`declare namespace sdkgen {\n${Ne.substring(95,Ne.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,"")}\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(Ne){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Ne.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function(T){return new(T||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(T,d){1&T&&(i0.\u0275\u0275elementStart(0,"button",0),i0.\u0275\u0275listener("click",function(){return d.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(l){return d.code=l}),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&T&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",d.editorOptions)("ngModel",d.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",d.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:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.TabHomeComponent=void 0;const o=d(4762),l=d(7716),f=d(9435),_=d(5281),a=o.__importStar(d(7716)),C=o.__importStar(d(6395)),w=o.__importStar(d(2238)),D=o.__importStar(d(7120)),g=o.__importStar(d(7634)),E=o.__importStar(d(3679)),M=o.__importStar(d(8583)),S=o.__importStar(d(1436)),P=o.__importStar(d(1095)),B=o.__importStar(d(2421)),j=o.__importStar(d(5939)),oe=o.__importStar(d(5151)),le=o.__importStar(d(2675)),Ce=o.__importStar(d(2789)),$e=o.__importStar(d(4211));function lt(Je,Ue){if(1&Je&&(a.\u0275\u0275elementStart(0,"span",8),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Je){const He=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.description)}}const Ye=function(Je){return{active:Je}};function Me(Je,Ue){if(1&Je){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"li",5),a.\u0275\u0275listener("click",function(){const pt=a.\u0275\u0275restoreView(He).$implicit;return a.\u0275\u0275nextContext().selectedFunction=pt}),a.\u0275\u0275elementStart(1,"span",6),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(3,lt,2,1,"span",7),a.\u0275\u0275elementEnd()}if(2&Je){const He=Ue.$implicit,q=a.\u0275\u0275nextContext();a.\u0275\u0275property("ngClass",a.\u0275\u0275pureFunction1(3,Ye,(null==q.selectedFunction?null:q.selectedFunction.name)===He.name)),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(He.name),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",He.description)}}function Oe(Je,Ue){1&Je&&a.\u0275\u0275element(0,"span")}function Pe(Je,Ue){if(1&Je){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"span"),a.\u0275\u0275element(1,"br"),a.\u0275\u0275text(2,"\xa0\xa0"),a.\u0275\u0275elementStart(3,"span",37),a.\u0275\u0275text(4),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"span",14),a.\u0275\u0275text(6,":"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(7,"\xa0"),a.\u0275\u0275elementStart(8,"u",15),a.\u0275\u0275listener("click",function(){const pt=a.\u0275\u0275restoreView(He).$implicit;return a.\u0275\u0275nextContext(2).showDocumentation(pt.rawType)}),a.\u0275\u0275text(9),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(10,Oe,1,0,"span",38),a.\u0275\u0275elementEnd()}if(2&Je){const He=Ue.$implicit,q=Ue.index;a.\u0275\u0275nextContext();const Ke=a.\u0275\u0275reference(18),pt=a.\u0275\u0275reference(20),vt=a.\u0275\u0275nextContext();a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate(He.name),a.\u0275\u0275advance(4),a.\u0275\u0275property("matTooltip",vt.getTooltip(He.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.type),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",q!=vt.selectedFunction.args.length-1)("ngIfThen",Ke)("ngIfElse",pt)}}function de(Je,Ue){1&Je&&a.\u0275\u0275text(0,",")}function qe(Je,Ue){1&Je&&a.\u0275\u0275element(0,"br")}function Y(Je,Ue){if(1&Je){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"u",29),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(He);const Ke=a.\u0275\u0275nextContext().$implicit;return a.\u0275\u0275nextContext(3).showDocumentation(Ke.dataType)}),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()}if(2&Je){const He=a.\u0275\u0275nextContext().$implicit,q=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("matTooltip",q.getTooltip(He.dataType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1("(",He.dataType.name,")")}}function se(Je,Ue){if(1&Je&&(a.\u0275\u0275elementStart(0,"mat-chip",42),a.\u0275\u0275elementStart(1,"span",28),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(3,"i"),a.\u0275\u0275elementStart(4,"span",28),a.\u0275\u0275text(5),a.\u0275\u0275template(6,Y,2,2,"u",43),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&Je){const He=Ue.$implicit;a.\u0275\u0275property("disableRipple",!0),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(He.name),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1("",He.type," "),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",He.dataType&&"void"!==He.dataType.name)}}function _e(Je,Ue){if(1&Je&&(a.\u0275\u0275elementStart(0,"section",39),a.\u0275\u0275elementStart(1,"mat-chip-list",40),a.\u0275\u0275template(2,se,7,4,"mat-chip",41),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&Je){const He=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("selectable",!1),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",He.selectedFunction.labels)}}function fe(Je,Ue){if(1&Je&&(a.\u0275\u0275elementStart(0,"p"),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Je){const He=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.selectedFunction.description)}}function Be(Je,Ue){1&Je&&(a.\u0275\u0275elementStart(0,"p",44),a.\u0275\u0275text(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),a.\u0275\u0275elementEnd())}function Fe(Je,Ue){1&Je&&(a.\u0275\u0275elementStart(0,"p",44),a.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),a.\u0275\u0275elementEnd())}function st(Je,Ue){1&Je&&(a.\u0275\u0275elementStart(0,"th",54),a.\u0275\u0275text(1,"Nome"),a.\u0275\u0275elementEnd())}function ct(Je,Ue){if(1&Je&&(a.\u0275\u0275elementStart(0,"td",55),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Je){const He=Ue.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.name)}}function Ct(Je,Ue){1&Je&&(a.\u0275\u0275elementStart(0,"th",54),a.\u0275\u0275text(1,"Tipo"),a.\u0275\u0275elementEnd())}function je(Je,Ue){if(1&Je){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"td",55),a.\u0275\u0275elementStart(1,"u",29),a.\u0275\u0275listener("click",function(){const pt=a.\u0275\u0275restoreView(He).$implicit;return a.\u0275\u0275nextContext(3).showDocumentation(pt.rawType)}),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()}if(2&Je){const He=Ue.$implicit,q=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(1),a.\u0275\u0275property("matTooltip",q.getTooltip(He.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.type)}}function rt(Je,Ue){1&Je&&(a.\u0275\u0275elementStart(0,"th",54),a.\u0275\u0275text(1,"Descri\xe7\xe3o"),a.\u0275\u0275elementEnd())}function ht(Je,Ue){if(1&Je&&(a.\u0275\u0275elementStart(0,"td",56),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Je){const He=Ue.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.description||"-")}}function It(Je,Ue){1&Je&&a.\u0275\u0275element(0,"tr",57)}function Ze(Je,Ue){1&Je&&a.\u0275\u0275element(0,"tr",58)}function dt(Je,Ue){if(1&Je&&(a.\u0275\u0275elementStart(0,"table",45),a.\u0275\u0275elementContainerStart(1,46),a.\u0275\u0275template(2,st,2,0,"th",47),a.\u0275\u0275template(3,ct,2,1,"td",48),a.\u0275\u0275elementContainerEnd(),a.\u0275\u0275elementContainerStart(4,49),a.\u0275\u0275template(5,Ct,2,0,"th",47),a.\u0275\u0275template(6,je,3,2,"td",48),a.\u0275\u0275elementContainerEnd(),a.\u0275\u0275elementContainerStart(7,50),a.\u0275\u0275template(8,rt,2,0,"th",47),a.\u0275\u0275template(9,ht,2,1,"td",51),a.\u0275\u0275elementContainerEnd(),a.\u0275\u0275template(10,It,1,0,"tr",52),a.\u0275\u0275template(11,Ze,1,0,"tr",53),a.\u0275\u0275elementEnd()),2&Je){const He=a.\u0275\u0275nextContext(2);a.\u0275\u0275property("dataSource",He.selectedFunction.args),a.\u0275\u0275advance(10),a.\u0275\u0275property("matHeaderRowDef",He.argumentsTableColumns),a.\u0275\u0275advance(1),a.\u0275\u0275property("matRowDefColumns",He.argumentsTableColumns)}}function $(Je,Ue){1&Je&&(a.\u0275\u0275elementStart(0,"span",59),a.\u0275\u0275text(1,"Dart"),a.\u0275\u0275elementEnd())}function re(Je,Ue){1&Je&&(a.\u0275\u0275elementStart(0,"span",59),a.\u0275\u0275text(1,"Swift"),a.\u0275\u0275elementEnd())}const L=function(){return{theme:"vs-dark",language:"javascript"}},ce=function(){return{theme:"vs-dark",language:"kotlin"}},ae=function(){return{theme:"vs-dark",language:"dart"}},pe=function(){return{theme:"vs-dark",language:"swift"}};function ke(Je,Ue){if(1&Je){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"article"),a.\u0275\u0275elementStart(1,"header"),a.\u0275\u0275elementStart(2,"h1",9),a.\u0275\u0275elementStart(3,"span",10),a.\u0275\u0275elementStart(4,"span",11),a.\u0275\u0275text(5,"fn"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(6,"\xa0"),a.\u0275\u0275elementStart(7,"span",12),a.\u0275\u0275text(8),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(9,"("),a.\u0275\u0275template(10,Pe,11,6,"span",13),a.\u0275\u0275text(11,")"),a.\u0275\u0275elementStart(12,"span",14),a.\u0275\u0275text(13,":"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(14,"\xa0"),a.\u0275\u0275elementStart(15,"u",15),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(He);const Ke=a.\u0275\u0275nextContext();return Ke.showDocumentation(Ke.selectedFunction.returns.rawType)}),a.\u0275\u0275text(16),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(17,de,1,0,"ng-template",null,16,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275template(19,qe,1,0,"ng-template",null,17,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275element(21,"s"),a.\u0275\u0275elementStart(22,"button",18),a.\u0275\u0275listener("click",function(){return a.\u0275\u0275restoreView(He),a.\u0275\u0275nextContext().addSimpleCallTab()}),a.\u0275\u0275elementStart(23,"mat-icon"),a.\u0275\u0275text(24,"play_arrow"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(25,"\xa0EXECUTAR "),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(26,_e,3,2,"section",19),a.\u0275\u0275elementStart(27,"section",9),a.\u0275\u0275elementStart(28,"h2",20),a.\u0275\u0275text(29,"Descri\xe7\xe3o"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(30,"div",21),a.\u0275\u0275template(31,fe,2,1,"p",22),a.\u0275\u0275template(32,Be,2,0,"p",23),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(33,"h2",24),a.\u0275\u0275text(34,"Par\xe2metros"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(35,"div",21),a.\u0275\u0275template(36,Fe,2,0,"p",23),a.\u0275\u0275elementStart(37,"div",25),a.\u0275\u0275template(38,dt,12,3,"table",26),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(39,"h2",27),a.\u0275\u0275text(40,"Retorno"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(41,"div"),a.\u0275\u0275elementStart(42,"p",28),a.\u0275\u0275elementStart(43,"u",29),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(He);const Ke=a.\u0275\u0275nextContext();return Ke.showDocumentation(Ke.selectedFunction.returns.rawType)}),a.\u0275\u0275text(44),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(45,"h2",30),a.\u0275\u0275text(46,"Exemplo de Requisi\xe7\xe3o"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(47,"mat-tab-group",31),a.\u0275\u0275elementStart(48,"mat-tab",32),a.\u0275\u0275element(49,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(50,"mat-tab",34),a.\u0275\u0275element(51,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(52,"mat-tab",35),a.\u0275\u0275template(53,$,2,0,"ng-template",36),a.\u0275\u0275element(54,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(55,"mat-tab",35),a.\u0275\u0275template(56,re,2,0,"ng-template",36),a.\u0275\u0275element(57,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()}if(2&Je){const He=a.\u0275\u0275nextContext();a.\u0275\u0275advance(8),a.\u0275\u0275textInterpolate(He.selectedFunction.name),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",He.selectedFunction.args),a.\u0275\u0275advance(5),a.\u0275\u0275property("matTooltip",He.getTooltip(He.selectedFunction.returns.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.selectedFunction.returns.type),a.\u0275\u0275advance(10),a.\u0275\u0275property("ngIf",He.selectedFunction.labels.length>0),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngSwitch",!!He.selectedFunction.description),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!1),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngSwitch",He.selectedFunction.args.length),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",0),a.\u0275\u0275advance(7),a.\u0275\u0275property("matTooltip",He.getTooltip(He.selectedFunction.returns.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.selectedFunction.returns.type),a.\u0275\u0275advance(5),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(20,L))("ngModel",He.selectedFunction.examples.typeScript),a.\u0275\u0275advance(2),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(21,ce))("ngModel",He.selectedFunction.examples.kotlin),a.\u0275\u0275advance(3),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(22,ae))("ngModel",He.selectedFunction.examples.dart),a.\u0275\u0275advance(3),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(23,pe))("ngModel",He.selectedFunction.examples.swift)}}const ot=function(){return{standalone:!0}};class wt{constructor(Ue,He,q){this.sdkgen=Ue,this.dialog=He,this.responsive=q,this.isBelowMd=!1,this.runFunction=new l.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ue=>{!Ue||(this.selectedFunction=void 0,this.fnTable=Ue.astRoot.operations.sort((He,q)=>He.name.localeCompare(q.name)).map(He=>{var q,Ke,pt;const vt=Ue.astJson.annotations[`fn.${He.name}`],Qe=this.sdkgen.buildJsonObject(He.args);return(null==vt?void 0:vt.find(x=>"hidden"===x.type))?null:{name:He.name,description:null===(q=null==vt?void 0:vt.find(x=>"description"===x.type))||void 0===q?void 0:q.value,args:He.args.map(({name:x,type:F})=>{var R,he,z;return{name:x,description:null===(z=[...null!==(R=Ue.astJson.annotations[`type.${F}.${x}`])&&void 0!==R?R:[],...null!==(he=Ue.astJson.annotations[`fn.${He.name}.${x}`])&&void 0!==he?he:[]].find(Le=>"description"===Le.type))||void 0===z?void 0:z.value,type:F.name,rawType:F}}),argsStr:He.args.map(x=>`${x.name}: ${x.type.name}`).join(", "),argsFields:He.args,returns:{type:He.returnType.name,rawType:He.returnType},labels:null!==(Ke=null==vt?void 0:vt.filter(x=>["rest","throws"].includes(x.type)).map(x=>{var F;return"rest"===x.type?{name:"REST",type:`${x.value.method} ${x.value.path}`}:"throws"===x.type?{name:"THROWS",type:x.value,dataType:null===(F=Ue.astRoot.errors.find(R=>R.name===x.value))||void 0===F?void 0:F.dataType}:{name:"?",type:"?"}}))&&void 0!==Ke?Ke:[],throws:null===(pt=null==vt?void 0:vt.find(x=>"throws"===x.type))||void 0===pt?void 0:pt.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(He.name,Qe),kotlin:this.sdkgen.getKotlinCode(He.name,He.args),dart:this.sdkgen.getDartCode(He.name,Qe),swift:this.sdkgen.getSwiftCode(He.name,Qe)}}}).filter(He=>Boolean(He)))})}ngOnDestroy(){var Ue,He;null===(Ue=this.state$)||void 0===Ue||Ue.unsubscribe(),null===(He=this.responsive$)||void 0===He||He.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(Ue=>{this.isBelowMd=Ue.matches})}addSimpleCallTab(){var Ue;this.runFunction.emit(null===(Ue=this.selectedFunction)||void 0===Ue?void 0:Ue.name)}getTooltip(Ue){return f.getTypeDoc(Ue).shortDescription}showDocumentation(Ue){this.dialog.open(_.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:Ue},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}T.TabHomeComponent=wt,wt.\u0275fac=function(Ue){return new(Ue||wt)(a.\u0275\u0275directiveInject(C.SdkgenService),a.\u0275\u0275directiveInject(w.MatDialog),a.\u0275\u0275directiveInject(D.ResponsiveService))},wt.\u0275cmp=a.\u0275\u0275defineComponent({type:wt,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(Ue,He){1&Ue&&(a.\u0275\u0275elementStart(0,"as-split",0),a.\u0275\u0275elementStart(1,"as-split-area",1),a.\u0275\u0275elementStart(2,"aside"),a.\u0275\u0275elementStart(3,"nav"),a.\u0275\u0275elementStart(4,"form"),a.\u0275\u0275elementStart(5,"input",2),a.\u0275\u0275listener("ngModelChange",function(Ke){return He.searchText=Ke}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(6,"ul"),a.\u0275\u0275template(7,Me,4,5,"li",3),a.\u0275\u0275pipe(8,"appFilter"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(9,"as-split-area"),a.\u0275\u0275template(10,ke,58,24,"article",4),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&Ue&&(a.\u0275\u0275property("direction",He.isBelowMd?"vertical":"horizontal"),a.\u0275\u0275advance(1),a.\u0275\u0275property("size",He.isBelowMd?130:350),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngModel",He.searchText)("ngModelOptions",a.\u0275\u0275pureFunction0(9,ot)),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",a.\u0275\u0275pipeBind2(8,6,He.fnTable,He.searchText)),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",He.selectedFunction))},directives:[g.SplitComponent,g.SplitAreaDirective,E.\u0275NgNoValidate,E.NgControlStatusGroup,E.NgForm,E.DefaultValueAccessor,E.NgControlStatus,E.NgModel,M.NgForOf,M.NgIf,M.NgClass,S.MatTooltip,P.MatButton,B.MatIcon,M.NgSwitch,M.NgSwitchCase,M.NgSwitchDefault,j.MatTabGroup,j.MatTab,oe.MonacoEditorComponent,j.MatTabLabel,le.MatChipList,le.MatChip,Ce.MatTable,Ce.MatColumnDef,Ce.MatHeaderCellDef,Ce.MatCellDef,Ce.MatHeaderRowDef,Ce.MatRowDef,Ce.MatHeaderCell,Ce.MatCell,Ce.MatHeaderRow,Ce.MatRow],pipes:[$e.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%] s[_ngcontent-%COMP%]{flex-grow:1}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}']})},2665:(Ne,T,d)=>{"use strict";var o=d(1052).default;Object.defineProperty(T,"__esModule",{value:!0}),T.TabNavComponent=void 0;const l=d(4762),f=d(3679),_=d(3979),a=l.__importStar(d(7716)),C=l.__importStar(d(6395)),w=l.__importStar(d(9344)),D=l.__importStar(d(3679)),g=l.__importStar(d(8583)),E=l.__importStar(d(2421));function M(B,j){1&B&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"mat-icon",5),a.\u0275\u0275text(2,"loop"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd())}function S(B,j){1&B&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"mat-icon"),a.\u0275\u0275text(2,"arrow_forward"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd())}class P{constructor(j,oe){this.sdkgen=j,this.toastr=oe,this.loading=!1,this.url=new f.FormControl("")}ngOnInit(){fetch("/ast.json").then(j=>{j.ok&&this.url.setValue(`${window.location.protocol}://${window.location.hostname}`)}).catch(()=>{})}loadUrl(j){var oe=this;return o(function*(){j.preventDefault();try{oe.loading=!0,/^https?:\/\//.test(oe.url.value)||oe.url.setValue(`https://${oe.url.value}`);const le=new URL(oe.url.value);le.pathname+=(/\/$/u.test(le.pathname)?"":"/")+"ast.json";const Ce=le.toString();console.debug("astUrl",Ce);const $e=yield fetch(Ce).then(lt=>lt.ok?lt.json():lt);if($e instanceof Response)throw $e instanceof Error?$e:new Error($e.statusText);if(!$e.errors||!$e.functionTable||!$e.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(lt=>setTimeout(lt,250));console.debug("astJson",$e),oe.sdkgen.state$.next({astJson:$e,astRoot:_.jsonToAst($e),url:oe.url.value})}catch(le){oe.toastr.error(le instanceof Error?le.message:JSON.stringify(le),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{oe.loading=!1}})()}}T.TabNavComponent=P,P.\u0275fac=function(j){return new(j||P)(a.\u0275\u0275directiveInject(C.SdkgenService),a.\u0275\u0275directiveInject(w.ToastrService))},P.\u0275cmp=a.\u0275\u0275defineComponent({type:P,selectors:[["app-tab-nav"]],decls:6,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],[1,"loader"]],template:function(j,oe){1&j&&(a.\u0275\u0275element(0,"img",0),a.\u0275\u0275elementStart(1,"form",1),a.\u0275\u0275listener("submit",function(Ce){return oe.loadUrl(Ce)}),a.\u0275\u0275element(2,"input",2),a.\u0275\u0275elementStart(3,"button",3),a.\u0275\u0275template(4,M,3,0,"ng-container",4),a.\u0275\u0275template(5,S,3,0,"ng-container",4),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&j&&(a.\u0275\u0275advance(2),a.\u0275\u0275property("formControl",oe.url)("readonly",oe.loading),a.\u0275\u0275advance(1),a.\u0275\u0275property("disabled",oe.loading)("ngSwitch",oe.loading),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!1))},directives:[D.\u0275NgNoValidate,D.NgControlStatusGroup,D.NgForm,D.DefaultValueAccessor,D.NgControlStatus,D.FormControlDirective,g.NgSwitch,g.NgSwitchCase,E.MatIcon],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}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#0003}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:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.TypeDetailsComponent=void 0;const o=d(4762),l=d(2238),f=d(9435),_=o.__importStar(d(7716)),a=o.__importStar(d(2238)),C=o.__importStar(d(8583)),w=o.__importStar(d(2675)),D=o.__importStar(d(1095)),g=o.__importStar(d(2421)),E=o.__importStar(d(2789)),M=o.__importStar(d(1436));function S(se,_e){1&se&&(_.\u0275\u0275elementStart(0,"button",6),_.\u0275\u0275elementStart(1,"mat-icon"),_.\u0275\u0275text(2,"arrow_back"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd())}function P(se,_e){if(1&se&&(_.\u0275\u0275elementStart(0,"mat-chip",7),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&se){const fe=_e.$implicit;_.\u0275\u0275property("disableRipple",!0),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(fe)}}function B(se,_e){1&se&&(_.\u0275\u0275elementStart(0,"button",8),_.\u0275\u0275elementStart(1,"mat-icon"),_.\u0275\u0275text(2,"close"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd())}function j(se,_e){1&se&&(_.\u0275\u0275elementStart(0,"th",19),_.\u0275\u0275text(1,"Nome"),_.\u0275\u0275elementEnd())}function oe(se,_e){if(1&se&&(_.\u0275\u0275elementStart(0,"td",20),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&se){const fe=_e.$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(fe.name)}}function le(se,_e){1&se&&(_.\u0275\u0275elementStart(0,"th",19),_.\u0275\u0275text(1,"Tipo"),_.\u0275\u0275elementEnd())}function Ce(se,_e){if(1&se){const fe=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"td",20),_.\u0275\u0275elementStart(1,"u",21),_.\u0275\u0275listener("click",function(){const st=_.\u0275\u0275restoreView(fe).$implicit;return _.\u0275\u0275nextContext(2).showDocumentation(st.type)}),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()}if(2&se){const fe=_e.$implicit,Be=_.\u0275\u0275nextContext(2);_.\u0275\u0275advance(1),_.\u0275\u0275property("matTooltip",Be.getTooltip(fe.type)),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(fe.type.name)}}function $e(se,_e){1&se&&(_.\u0275\u0275elementStart(0,"th",19),_.\u0275\u0275text(1,"Descri\xe7\xe3o"),_.\u0275\u0275elementEnd())}function lt(se,_e){if(1&se&&(_.\u0275\u0275elementStart(0,"td",22),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&se){const fe=_e.$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(fe.description||"-")}}function Ye(se,_e){1&se&&_.\u0275\u0275element(0,"tr",23)}function Me(se,_e){1&se&&_.\u0275\u0275element(0,"tr",24)}const Oe=function(){return[]};function Pe(se,_e){if(1&se&&(_.\u0275\u0275elementStart(0,"section"),_.\u0275\u0275elementStart(1,"div",9),_.\u0275\u0275elementStart(2,"table",10),_.\u0275\u0275elementContainerStart(3,11),_.\u0275\u0275template(4,j,2,0,"th",12),_.\u0275\u0275template(5,oe,2,1,"td",13),_.\u0275\u0275elementContainerEnd(),_.\u0275\u0275elementContainerStart(6,14),_.\u0275\u0275template(7,le,2,0,"th",12),_.\u0275\u0275template(8,Ce,3,2,"td",13),_.\u0275\u0275elementContainerEnd(),_.\u0275\u0275elementContainerStart(9,15),_.\u0275\u0275template(10,$e,2,0,"th",12),_.\u0275\u0275template(11,lt,2,1,"td",16),_.\u0275\u0275elementContainerEnd(),_.\u0275\u0275template(12,Ye,1,0,"tr",17),_.\u0275\u0275template(13,Me,1,0,"tr",18),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&se){const fe=_.\u0275\u0275nextContext();let Be;_.\u0275\u0275advance(2),_.\u0275\u0275property("dataSource",null!==(Be=null==fe.typeDoc?null:fe.typeDoc.structFields)&&void 0!==Be?Be:_.\u0275\u0275pureFunction0(3,Oe)),_.\u0275\u0275advance(10),_.\u0275\u0275property("matHeaderRowDef",fe.argumentsTableColumns),_.\u0275\u0275advance(1),_.\u0275\u0275property("matRowDefColumns",fe.argumentsTableColumns)}}function de(se,_e){if(1&se&&(_.\u0275\u0275elementStart(0,"li"),_.\u0275\u0275elementStart(1,"code",1),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&se){const fe=_e.$implicit;_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(fe)}}function qe(se,_e){if(1&se&&(_.\u0275\u0275elementStart(0,"section"),_.\u0275\u0275elementStart(1,"h3"),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(3,"ul"),_.\u0275\u0275template(4,de,3,1,"li",25),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&se){const fe=_.\u0275\u0275nextContext();_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(null!=fe.typeDoc&&fe.typeDoc.isEnum?"Valores":"Exemplos"),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngForOf",null==fe.typeDoc?null:fe.typeDoc.examples)}}class Y{constructor(_e,fe,Be){this.dialogRef=_e,this.data=fe,this.dialog=Be,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=f.getTypeLabels(this.data.type),this.typeDoc=f.getTypeDoc(this.data.type)}getTooltip(_e){return f.getTypeDoc(_e).shortDescription}showDocumentation(_e){this.dialog.open(Y,{position:{right:"0"},data:{type:_e,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}T.TypeDetailsComponent=Y,Y.\u0275fac=function(_e){return new(_e||Y)(_.\u0275\u0275directiveInject(a.MatDialogRef),_.\u0275\u0275directiveInject(l.MAT_DIALOG_DATA),_.\u0275\u0275directiveInject(a.MatDialog))},Y.\u0275cmp=_.\u0275\u0275defineComponent({type:Y,selectors:[["app-type-details"]],decls:11,vars:8,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","",4,"ngIf"],[1,"mono"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","",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"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(_e,fe){1&_e&&(_.\u0275\u0275elementStart(0,"h1"),_.\u0275\u0275template(1,S,3,0,"button",0),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275text(3),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(4,"mat-chip-list",2),_.\u0275\u0275template(5,P,2,2,"mat-chip",3),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(6,B,3,0,"button",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(7,"p"),_.\u0275\u0275text(8),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(9,Pe,14,4,"section",5),_.\u0275\u0275template(10,qe,5,2,"section",5)),2&_e&&(_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",fe.data.subdialog),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(fe.data.type.name),_.\u0275\u0275advance(1),_.\u0275\u0275property("selectable",!1),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngForOf",fe.labels),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",!fe.data.subdialog),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(null==fe.typeDoc?null:fe.typeDoc.longDescription),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",(null==fe.typeDoc?null:fe.typeDoc.isStruct)&&(null==fe.typeDoc?null:fe.typeDoc.structFields)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",null==fe.typeDoc||null==fe.typeDoc.examples?null:fe.typeDoc.examples.length))},directives:[C.NgIf,w.MatChipList,C.NgForOf,D.MatButton,a.MatDialogClose,g.MatIcon,w.MatChip,E.MatTable,E.MatColumnDef,E.MatHeaderCellDef,E.MatCellDef,E.MatHeaderRowDef,E.MatRowDef,E.MatHeaderCell,E.MatCell,M.MatTooltip,E.MatHeaderRow,E.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:(Ne,T)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.unwrap=T.wrapper=void 0,T.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',T.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(Ne,T)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.environment=void 0,T.environment={production:!0}},4431:(Ne,T,d)=>{"use strict";const f=d(4762).__importStar(d(9075)),_=d(7716),a=d(6747);d(2340).environment.production&&_.enableProdMode(),f.platformBrowser().bootstrapModule(a.AppModule).catch(w=>console.error(w))},9043:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateRxMethod=T.generateMethodSignature=T.generateErrorClass=T.generateClass=T.generateErrorType=T.generateEnum=T.generateJsonRepresentation=T.mangle=T.generateSwiftTypeName=void 0;const o=d(3979);function l(P){switch(P.constructor){case o.IntPrimitiveType:return"Int";case o.UIntPrimitiveType:return"UInt";case o.MoneyPrimitiveType:return"Int64";case o.FloatPrimitiveType:return"Double";case o.BigIntPrimitiveType:return"Decimal";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"Date";case o.BoolPrimitiveType:return"Bool";case o.BytesPrimitiveType:return"Data";case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.UrlPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"String";case o.VoidPrimitiveType:return"Void";case o.JsonPrimitiveType:return"AnyCodable";case o.OptionalType:return`${l(P.base)}?`;case o.ArrayType:return`[${l(P.base)}]`;case o.StructType:case o.EnumType:return`API.${P.name}`;case o.TypeReference:return l(P.type);default:throw new Error(`BUG: generateSwiftTypeName with ${P.constructor.name}`)}}function f(P){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(P)?`_${P}`:P}function _(P,B){switch(P.constructor){case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:case o.FloatPrimitiveType:case o.BoolPrimitiveType:return`${B}`;case o.OptionalType:return`${B} == nil ? nil : ${_(P.base,`${B}!`)}`;case o.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${B})`;case o.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${B})`;case o.EnumType:return`${B}.rawValue`;case o.TypeReference:return`${_(P.type,`${B}`)}`;case o.StructType:return`${B}.toJSON()`;case o.ArrayType:return`${B}.map({ return ${_(P.base,"$0")} })`;case o.JsonPrimitiveType:return`try? ${B}.toJson()`;case o.VoidPrimitiveType:return"nil";case o.BytesPrimitiveType:return`${B}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${P.constructor.name}`)}}T.generateSwiftTypeName=l,T.mangle=f,T.generateJsonRepresentation=_,T.generateEnum=function(P){let B=` public enum ${P.name}: String, Codable {\n`;return B+=P.values.map(j=>` case ${f(j.value)} = "${j.value}"`).join("\n"),B+="\n }\n",B},T.generateErrorType=function(P){let B=" public enum ErrorType: String, Codable {\n";return B+=P.map(j=>` case ${f(j)} = "${j}"`).join("\n"),B+="\n }\n",B},T.generateClass=function(P){return` public struct ${P.name}: Codable {\n${P.fields.map(B=>` var ${f(B.name)}: ${l(B.type)}`).join("\n")}\n\n${function(P){let B=" init(";return B+=P.fields.map(j=>`${f(j.name)}: ${l(j.type)}`).join(", "),B+=") {\n",B+=P.fields.map(j=>` self.${f(j.name)} = ${f(j.name)}`).join("\n"),B+="\n }\n",B}(P)}\n${function(P){let B=" func toJSON() -> [String: Any] {\n";return B+=" var json = [String: Any]()\n",B+=P.fields.map(j=>` json["${f(j.name)}"] = ${_(j.type,j.name)}`).join("\n"),B+="\n return json",B+="\n }\n",B}(P)}\n }\n`},T.generateErrorClass=function(){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"},T.generateMethodSignature=function(P){const B=P.args.map(j=>`${f(j.name)}: ${l(j.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${P.returnType instanceof o.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${l(P.returnType)}>`}) -> Void)?`]);return` func ${f(P.name)}(${B.join(", ")})`},T.generateRxMethod=function(P){const B=P.args.map(oe=>`${f(oe.name)}: ${l(oe.type)}`).concat(["timeoutSeconds: Double? = nil"]);let j=` static func ${f(P.name)}(${B.join(", ")}) -> ${P.returnType instanceof o.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${l(P.returnType)}>>`} {\n`;return j+=" return Observable.create { observer -> Disposable in\n",j+=` API.calls.${f(P.name)}(${P.args.map(oe=>`${f(oe.name)}: ${f(oe.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}},1670:function(Ne,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(1966),T)},1966:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateSwiftClientSource=void 0;const o=d(3979),l=d(9043);T.generateSwiftClientSource=function(_,a){let C="import Foundation\nimport SdkgenRuntime\n";C+=a?"import RxSwift\nimport RxCocoa\n\n":"\n",C+="protocol APICallsProtocol {\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>`${(0,l.generateMethodSignature)(g)}`).join("\n"),C+="\n}\n\n",C+='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 g of _.enumTypes)C+=(0,l.generateEnum)(g),C+="\n";for(const g of _.structTypes)C+=(0,l.generateClass)(g),C+="\n";const w=[],D=new o.ErrorNode("Connection",new o.VoidPrimitiveType);w.push(D.name);for(const g of _.errors)w.push(g.name);return w.length>0&&(C+=(0,l.generateErrorType)(w),C+="\n"),C+=(0,l.generateErrorClass)(),C+="\n",C+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",C+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>{let E="";return E+=` ${(0,l.generateMethodSignature)(g)} {\n`,g.args.length>0?(E+=" var jsonArgs = [String: Any]()\n",E+=g.args.map(M=>` jsonArgs["${(0,l.mangle)(M.name)}"] = ${(0,l.generateJsonRepresentation)(M.type,(0,l.mangle)(M.name))}`).join("\n")):E+=" let jsonArgs = [String: Any]()",E+="\n\n",E+=` request("${g.name}", jsonArgs, timeoutSeconds, completion: { (value: ${g.returnType instanceof o.VoidPrimitiveType?"API.NoReply":(0,l.generateSwiftTypeName)(g.returnType)}) in\n`,E+=" callback?(API.Result.success(value))\n",E+=" }, onError: { error in\n",E+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",E+=" })",E+="\n }\n",E}).join("\n"),C+=" }\n",C+="}\n",a&&(C+="\n",C+="extension API: ReactiveCompatible {}\n\n",C+="extension Reactive where Base: API {\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>`${(0,l.generateRxMethod)(g)}`).join("\n"),C+="}\n"),C}},7306:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateBrowserClientSource=void 0;const o=d(3979),l=d(760);T.generateBrowserClientSource=function(_){let a="";a+=`/* eslint-disable */\nimport { SdkgenError${_.errors.some(w=>!(w.dataType instanceof o.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n\n`;for(const w of _.enumTypes)a+=(0,l.generateTypescriptEnum)(w),a+="\n";for(const w of _.structTypes)a+=(0,l.generateTypescriptInterface)(w,!0),a+="\n";for(const w of _.errors)a+=(0,l.generateTypescriptErrorClass)(w,!0),a+="\n";return a+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${_.operations.filter(w=>w.annotations.every(D=>!(D instanceof o.HiddenAnnotation))).map(w=>`\n ${w.name}(args${0===w.args.length?"?":""}: {${w.args.map(D=>`${D.name}${D.type.name.endsWith("?")?"?":""}: ${(0,l.generateTypescriptTypeName)(D.type,!0)}`).join(", ")}}): Promise<${(0,l.generateTypescriptTypeName)(w.returnType,!0)}> { return this.makeRequest("${w.name}", args || {}); }`).join("")}\n}\n\n`,a+=`const errClasses = {\n${_.errors.map(w=>` ${w.name}`).join(",\n")}\n};\n\n`,a+=`const astJson = ${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,a}},760:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.clearForLogging=T.generateTypescriptErrorClass=T.generateTypescriptEnum=T.generateTypescriptInterface=T.generateTypescriptTypeName=void 0;const o=d(3979);function l(w,D){switch(w.constructor){case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:case o.FloatPrimitiveType:return"number";case o.BigIntPrimitiveType:return"bigint";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"Date";case o.BoolPrimitiveType:return"boolean";case o.BytesPrimitiveType:return D?"ArrayBuffer":"Buffer";case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"string";case o.VoidPrimitiveType:return"void";case o.JsonPrimitiveType:return"any";case o.OptionalType:return`${l(w.base,D)} | null`;case o.ArrayType:{const{base:g}=w,E=l(g,D);return g instanceof o.OptionalType?`(${E})[]`:`${E}[]`}case o.StructType:case o.EnumType:return w.name;case o.TypeReference:return l(w.type,D);default:throw new Error(`BUG: generateTypescriptTypeName with ${w.constructor.name}`)}}T.generateTypescriptTypeName=l,T.generateTypescriptInterface=function(w,D){return`export interface ${w.name} {\n${w.fields.map(g=>` ${g.name}: ${l(g.type,D)}`).join("\n")}\n}\n`},T.generateTypescriptEnum=function(w){return`export type ${w.name} = ${w.values.map(D=>`"${D.value}"`).join(" | ")};\n`},T.generateTypescriptErrorClass=function(w,D){return`export class ${w.name} extends ${w.dataType instanceof o.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${l(w.dataType,D)}>`} {}\n`},T.clearForLogging=function C(w,D){switch(D.constructor){case o.TypeReference:return C(w,D.type);case o.OptionalType:{const g=C(w,D.base);return g?`if (${w} !== null && ${w} !== undefined) { ${g} }`:""}case o.ArrayType:{const g=C("el",D.base);return g?`for (const el of ${w}) { ${g} }`:""}case o.StructType:{const g=[];for(const E of D.fields)if(E.secret)g.push(`${w}.${E.name} = "<secret>";`);else{const M=C(`${w}.${E.name}`,E.type);M&&g.push(M)}return g.join(" ")}default:return""}}},282:function(Ne,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(f,_,a,C){void 0===C&&(C=a),Object.defineProperty(f,C,{enumerable:!0,get:function(){return _[a]}})}:function(f,_,a,C){void 0===C&&(C=a),f[C]=_[a]}),l=this&&this.__exportStar||function(f,_){for(var a in f)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,f,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(7306),T),l(d(6283),T),l(d(1918),T),l(d(9847),T)},6283:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateTypescriptInterfaces=void 0;const o=d(760);T.generateTypescriptInterfaces=function(f){let _="";for(const a of f.enumTypes)_+=(0,o.generateTypescriptEnum)(a);_+="\n";for(const a of f.structTypes)_+=(0,o.generateTypescriptInterface)(a,!1),_+="\n";return _}},1918:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateNodeClientSource=void 0;const o=d(3979),l=d(760);T.generateNodeClientSource=function(_){let a="";const C=_.errors.some(D=>!(D.dataType instanceof o.VoidPrimitiveType));a+=`/* eslint-disable */\nimport { Context, Fatal${_.errors.filter(D=>"Fatal"!==D.name).some(D=>D.dataType instanceof o.VoidPrimitiveType)?", SdkgenError":""}${C?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const D of _.enumTypes)a+=(0,l.generateTypescriptEnum)(D),a+="\n";for(const D of _.structTypes)a+=(0,l.generateTypescriptInterface)(D,!1),a+="\n";for(const D of _.errors)"Fatal"!==D.name&&(a+=(0,l.generateTypescriptErrorClass)(D,!1),a+="\n");return a+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${_.operations.filter(D=>D.annotations.every(g=>!(g instanceof o.HiddenAnnotation))).map(D=>`\n ${D.name}(ctx: PartialDeep<Context> | null, args: {${D.args.map(g=>`${g.name}${g.type.name.endsWith("?")?"?":""}: ${(0,l.generateTypescriptTypeName)(g.type,!1)}`).join(", ")}}): Promise<${(0,l.generateTypescriptTypeName)(D.returnType,!1)}> { return this.makeRequest(ctx, "${D.name}", args); }`).join("")}\n}\n\n`,a+=`const errClasses = {\n${_.errors.map(D=>` ${D.name}`).join(",\n")}\n};\n\n`,a+=`const astJson = ${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,a}},9847:(Ne,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateNodeServerSource=void 0;const o=d(3979),l=d(760);T.generateNodeServerSource=function(_){let a="";const C=_.errors.some(D=>!(D.dataType instanceof o.VoidPrimitiveType));a+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${_.errors.filter(D=>"Fatal"!==D.name).some(D=>D.dataType instanceof o.VoidPrimitiveType)?", SdkgenError":""}${C?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const D of _.enumTypes)a+=(0,l.generateTypescriptEnum)(D),a+="\n";for(const D of _.structTypes)a+=(0,l.generateTypescriptInterface)(D,!1),a+="\n";for(const D of _.errors)"Fatal"!==D.name&&(a+=(0,l.generateTypescriptErrorClass)(D,!1),a+="\n");return a+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n fn!: {${_.operations.map(D=>`\n ${D.name}: (args: {${D.args.map(g=>`${g.name}: ${(0,l.generateTypescriptTypeName)(g.type,!1)}`).join(", ")}}) => Promise<${(0,l.generateTypescriptTypeName)(D.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,a}},1052:Ne=>{function T(o,l,f,_,a,C,w){try{var D=o[C](w),g=D.value}catch(E){return void f(E)}D.done?l(g):Promise.resolve(g).then(_,a)}Ne.exports=function(o){return function(){var l=this,f=arguments;return new Promise(function(_,a){var C=o.apply(l,f);function w(g){T(C,_,a,w,D,"next",g)}function D(g){T(C,_,a,w,D,"throw",g)}w(void 0)})}},Ne.exports.default=Ne.exports,Ne.exports.__esModule=!0},4762:(Ne,T,d)=>{"use strict";d.r(T),d.d(T,{__extends:()=>l,__assign:()=>f,__rest:()=>_,__decorate:()=>a,__param:()=>C,__metadata:()=>w,__awaiter:()=>D,__generator:()=>g,__createBinding:()=>E,__exportStar:()=>M,__values:()=>S,__read:()=>P,__spread:()=>B,__spreadArrays:()=>j,__spreadArray:()=>oe,__await:()=>le,__asyncGenerator:()=>Ce,__asyncDelegator:()=>$e,__asyncValues:()=>lt,__makeTemplateObject:()=>Ye,__importStar:()=>Oe,__importDefault:()=>Pe,__classPrivateFieldGet:()=>de,__classPrivateFieldSet:()=>qe});var o=function(Y,se){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_e,fe){_e.__proto__=fe}||function(_e,fe){for(var Be in fe)Object.prototype.hasOwnProperty.call(fe,Be)&&(_e[Be]=fe[Be])})(Y,se)};function l(Y,se){if("function"!=typeof se&&null!==se)throw new TypeError("Class extends value "+String(se)+" is not a constructor or null");function _e(){this.constructor=Y}o(Y,se),Y.prototype=null===se?Object.create(se):(_e.prototype=se.prototype,new _e)}var f=function(){return(f=Object.assign||function(se){for(var _e,fe=1,Be=arguments.length;fe<Be;fe++)for(var Fe in _e=arguments[fe])Object.prototype.hasOwnProperty.call(_e,Fe)&&(se[Fe]=_e[Fe]);return se}).apply(this,arguments)};function _(Y,se){var _e={};for(var fe in Y)Object.prototype.hasOwnProperty.call(Y,fe)&&se.indexOf(fe)<0&&(_e[fe]=Y[fe]);if(null!=Y&&"function"==typeof Object.getOwnPropertySymbols){var Be=0;for(fe=Object.getOwnPropertySymbols(Y);Be<fe.length;Be++)se.indexOf(fe[Be])<0&&Object.prototype.propertyIsEnumerable.call(Y,fe[Be])&&(_e[fe[Be]]=Y[fe[Be]])}return _e}function a(Y,se,_e,fe){var st,Be=arguments.length,Fe=Be<3?se:null===fe?fe=Object.getOwnPropertyDescriptor(se,_e):fe;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Fe=Reflect.decorate(Y,se,_e,fe);else for(var ct=Y.length-1;ct>=0;ct--)(st=Y[ct])&&(Fe=(Be<3?st(Fe):Be>3?st(se,_e,Fe):st(se,_e))||Fe);return Be>3&&Fe&&Object.defineProperty(se,_e,Fe),Fe}function C(Y,se){return function(_e,fe){se(_e,fe,Y)}}function w(Y,se){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(Y,se)}function D(Y,se,_e,fe){return new(_e||(_e=Promise))(function(Fe,st){function ct(rt){try{je(fe.next(rt))}catch(ht){st(ht)}}function Ct(rt){try{je(fe.throw(rt))}catch(ht){st(ht)}}function je(rt){rt.done?Fe(rt.value):function(Fe){return Fe instanceof _e?Fe:new _e(function(st){st(Fe)})}(rt.value).then(ct,Ct)}je((fe=fe.apply(Y,se||[])).next())})}function g(Y,se){var fe,Be,Fe,st,_e={label:0,sent:function(){if(1&Fe[0])throw Fe[1];return Fe[1]},trys:[],ops:[]};return st={next:ct(0),throw:ct(1),return:ct(2)},"function"==typeof Symbol&&(st[Symbol.iterator]=function(){return this}),st;function ct(je){return function(rt){return function(je){if(fe)throw new TypeError("Generator is already executing.");for(;_e;)try{if(fe=1,Be&&(Fe=2&je[0]?Be.return:je[0]?Be.throw||((Fe=Be.return)&&Fe.call(Be),0):Be.next)&&!(Fe=Fe.call(Be,je[1])).done)return Fe;switch(Be=0,Fe&&(je=[2&je[0],Fe.value]),je[0]){case 0:case 1:Fe=je;break;case 4:return _e.label++,{value:je[1],done:!1};case 5:_e.label++,Be=je[1],je=[0];continue;case 7:je=_e.ops.pop(),_e.trys.pop();continue;default:if(!(Fe=(Fe=_e.trys).length>0&&Fe[Fe.length-1])&&(6===je[0]||2===je[0])){_e=0;continue}if(3===je[0]&&(!Fe||je[1]>Fe[0]&&je[1]<Fe[3])){_e.label=je[1];break}if(6===je[0]&&_e.label<Fe[1]){_e.label=Fe[1],Fe=je;break}if(Fe&&_e.label<Fe[2]){_e.label=Fe[2],_e.ops.push(je);break}Fe[2]&&_e.ops.pop(),_e.trys.pop();continue}je=se.call(Y,_e)}catch(rt){je=[6,rt],Be=0}finally{fe=Fe=0}if(5&je[0])throw je[1];return{value:je[0]?je[1]:void 0,done:!0}}([je,rt])}}}var E=Object.create?function(Y,se,_e,fe){void 0===fe&&(fe=_e),Object.defineProperty(Y,fe,{enumerable:!0,get:function(){return se[_e]}})}:function(Y,se,_e,fe){void 0===fe&&(fe=_e),Y[fe]=se[_e]};function M(Y,se){for(var _e in Y)"default"!==_e&&!Object.prototype.hasOwnProperty.call(se,_e)&&E(se,Y,_e)}function S(Y){var se="function"==typeof Symbol&&Symbol.iterator,_e=se&&Y[se],fe=0;if(_e)return _e.call(Y);if(Y&&"number"==typeof Y.length)return{next:function(){return Y&&fe>=Y.length&&(Y=void 0),{value:Y&&Y[fe++],done:!Y}}};throw new TypeError(se?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(Y,se){var _e="function"==typeof Symbol&&Y[Symbol.iterator];if(!_e)return Y;var Be,st,fe=_e.call(Y),Fe=[];try{for(;(void 0===se||se-- >0)&&!(Be=fe.next()).done;)Fe.push(Be.value)}catch(ct){st={error:ct}}finally{try{Be&&!Be.done&&(_e=fe.return)&&_e.call(fe)}finally{if(st)throw st.error}}return Fe}function B(){for(var Y=[],se=0;se<arguments.length;se++)Y=Y.concat(P(arguments[se]));return Y}function j(){for(var Y=0,se=0,_e=arguments.length;se<_e;se++)Y+=arguments[se].length;var fe=Array(Y),Be=0;for(se=0;se<_e;se++)for(var Fe=arguments[se],st=0,ct=Fe.length;st<ct;st++,Be++)fe[Be]=Fe[st];return fe}function oe(Y,se,_e){if(_e||2===arguments.length)for(var Fe,fe=0,Be=se.length;fe<Be;fe++)(Fe||!(fe in se))&&(Fe||(Fe=Array.prototype.slice.call(se,0,fe)),Fe[fe]=se[fe]);return Y.concat(Fe||Array.prototype.slice.call(se))}function le(Y){return this instanceof le?(this.v=Y,this):new le(Y)}function Ce(Y,se,_e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Be,fe=_e.apply(Y,se||[]),Fe=[];return Be={},st("next"),st("throw"),st("return"),Be[Symbol.asyncIterator]=function(){return this},Be;function st(It){fe[It]&&(Be[It]=function(Ze){return new Promise(function(dt,$){Fe.push([It,Ze,dt,$])>1||ct(It,Ze)})})}function ct(It,Ze){try{!function(It){It.value instanceof le?Promise.resolve(It.value.v).then(je,rt):ht(Fe[0][2],It)}(fe[It](Ze))}catch(dt){ht(Fe[0][3],dt)}}function je(It){ct("next",It)}function rt(It){ct("throw",It)}function ht(It,Ze){It(Ze),Fe.shift(),Fe.length&&ct(Fe[0][0],Fe[0][1])}}function $e(Y){var se,_e;return se={},fe("next"),fe("throw",function(Be){throw Be}),fe("return"),se[Symbol.iterator]=function(){return this},se;function fe(Be,Fe){se[Be]=Y[Be]?function(st){return(_e=!_e)?{value:le(Y[Be](st)),done:"return"===Be}:Fe?Fe(st):st}:Fe}}function lt(Y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _e,se=Y[Symbol.asyncIterator];return se?se.call(Y):(Y=S(Y),_e={},fe("next"),fe("throw"),fe("return"),_e[Symbol.asyncIterator]=function(){return this},_e);function fe(Fe){_e[Fe]=Y[Fe]&&function(st){return new Promise(function(ct,Ct){!function(Fe,st,ct,Ct){Promise.resolve(Ct).then(function(je){Fe({value:je,done:ct})},st)}(ct,Ct,(st=Y[Fe](st)).done,st.value)})}}}function Ye(Y,se){return Object.defineProperty?Object.defineProperty(Y,"raw",{value:se}):Y.raw=se,Y}var Me=Object.create?function(Y,se){Object.defineProperty(Y,"default",{enumerable:!0,value:se})}:function(Y,se){Y.default=se};function Oe(Y){if(Y&&Y.__esModule)return Y;var se={};if(null!=Y)for(var _e in Y)"default"!==_e&&Object.prototype.hasOwnProperty.call(Y,_e)&&E(se,Y,_e);return Me(se,Y),se}function Pe(Y){return Y&&Y.__esModule?Y:{default:Y}}function de(Y,se,_e,fe){if("a"===_e&&!fe)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof se?Y!==se||!fe:!se.has(Y))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===_e?fe:"a"===_e?fe.call(Y):fe?fe.value:se.get(Y)}function qe(Y,se,_e,fe,Be){if("m"===fe)throw new TypeError("Private method is not writable");if("a"===fe&&!Be)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof se?Y!==se||!Be:!se.has(Y))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===fe?Be.call(Y,_e):Be?Be.value=_e:se.set(Y,_e),_e}}},Ne=>{Ne(Ne.s=4431)}]);