@sdkgen/playground 0.0.0-dev.20220801204706 → 0.0.0-dev.20220808135249

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.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{4602:function(H,o){"use strict";var h,a=this&&this.__extends||(h=function(m,d){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(_[y]=v[y])})(m,d)},function(m,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function _(){this.constructor=m}h(m,d),m.prototype=null===d?Object.create(d):(_.prototype=d.prototype,new _)}),n=this&&this.__spreadArray||function(h,m,d){if(d||2===arguments.length)for(var y,_=0,v=m.length;_<v;_++)(y||!(_ in m))&&(y||(y=Array.prototype.slice.call(m,0,_)),y[_]=m[_]);return h.concat(y||Array.prototype.slice.call(m))};Object.defineProperty(o,"__esModule",{value:!0}),o.decode=o.encode=void 0;var p=["string","email","phone","html","xml"],b=n(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],p,!0),u=function(h){function m(d,_,v){var y;try{y=JSON.stringify(v)}catch(E){y=String(v)}return h.call(this,"Invalid type at '".concat(d,"', expected ").concat(_,", got ").concat(y))||this}return a(m,h),m}(Error);function r(h,m,d){if("json"===m)return null==d?null:JSON.parse(JSON.stringify(d));if("bool"===m){if("boolean"!=typeof d)throw new u(h,m,d);return d}if(p.indexOf(m)>=0){if("string"!=typeof d)throw new u(h,m,d);return d}if("hex"===m){if("string"!=typeof d||!/^(?:[A-Fa-f0-9]{2})*$/u.test(d))throw new u(h,m,d);return d.toLowerCase()}if("uuid"===m){if("string"!=typeof d||!/^[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(d))throw new u(h,m,d);return d.toLowerCase()}if("base64"===m){var _=!0;try{atob(d)}catch(y){_=!1}if("string"!=typeof d||!_)throw new u(h,m,d);return d}if("int"===m){if("number"!=typeof d||(0|d)!==d)throw new u(h,m,d);return d}if("uint"===m){if("number"!=typeof d||(0|d)!==d||d<0)throw new u(h,m,d);return d}if("float"===m){if("number"!=typeof d)throw new u(h,m,d);return d}if("money"===m){if("number"!=typeof d||!Number.isInteger(d))throw new u(h,m,d);return d}if("url"===m){var v=void 0;if("string"==typeof d)try{v=new URL(d)}catch(y){}if(!v)throw new u(h,m,d);return v.toString()}if("void"===m)return null;throw new Error("Unknown type '".concat(m,"' at '").concat(h,"'"))}o.encode=function c(h,m,d,_){if("string"==typeof d&&!d.endsWith("?")&&"void"!==d&&null==_)throw new Error("Invalid type at '".concat(m,"', cannot be null"));if(Array.isArray(d)){for(var v=0,y=d;v<y.length;v++){var E=y[v];if(E===_)return _;if(Array.isArray(_)&&2===_.length&&E===_[0])return _[0];if(Array.isArray(E)&&2===E.length){if(E[0]===_)return[_,c(h,"".concat(m,".").concat(E[0]),E[1],{})];if(Array.isArray(_)&&2===_.length&&E[0]===_[0])return[_[0],c(h,"".concat(m,".").concat(E[0]),E[1],_[1])]}}throw new u(m,d,_)}if("object"==typeof d){if("object"!=typeof _)throw new u(m,d,_);for(var M={},A=0,k=Object.keys(d);A<k.length;A++){var j=k[A];M[j]=c(h,"".concat(m,".").concat(j),d[j],_[j])}return M}if(d.endsWith("?"))return null==_?null:c(h,m,d.slice(0,d.length-1),_);if(d.endsWith("[]")){if(!Array.isArray(_))throw new u(m,d,_);return _.map(function(U,Q){return c(h,"".concat(m,"[").concat(Q,"]"),d.slice(0,d.length-2),U)})}if(b.indexOf(d)>=0)return r(m,d,_);if("bytes"===d){if(!(_ instanceof ArrayBuffer))throw new u(m,d,_);return btoa(String.fromCharCode.apply(String,new Uint8Array(_)))}if("bigint"===d){if("bigint"!=typeof _)throw new u(m,d,_);return _.toString()}if("cpf"===d){if("string"!=typeof _)throw new u(m,d,_);return _}if("cnpj"===d){if("string"!=typeof _)throw new u(m,d,_);return _}if("date"===d){if((!(_ instanceof Date)||isNaN(_.getTime()))&&("string"!=typeof _||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(_)))throw new u(m,d,_);return"string"==typeof _?new Date(_).toISOString().split("T")[0]:_.toISOString().split("T")[0]}if("datetime"===d){if((!(_ instanceof Date)||isNaN(_.getTime()))&&("string"!=typeof _||!/^[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(_)))throw new u(m,d,_);return("string"==typeof _?new Date(_):_).toISOString().replace("Z","")}var Y=h[d];if(Y)return c(h,m,Y,_);throw new Error("Unknown type '".concat(d,"' at '").concat(m,"'"))},o.decode=function f(h,m,d,_){if("string"==typeof d&&!d.endsWith("?")&&"void"!==d&&null==_)throw new Error("Invalid type at '".concat(m,"', cannot be null"));if(Array.isArray(d)){for(var v=0,y=d;v<y.length;v++){var E=y[v];if(E===_)return _;if(Array.isArray(_)&&2===_.length&&E===_[0])return _[0];if(Array.isArray(E)&&2===E.length){if(E[0]===_)return[_,f(h,"".concat(m,".").concat(E[0]),E[1],{})];if(Array.isArray(_)&&2===_.length&&E[0]===_[0])return[_[0],f(h,"".concat(m,".").concat(E[0]),E[1],_[1])]}}throw new u(m,d,_)}if("object"==typeof d){if("object"!=typeof _)throw new u(m,d,_);for(var M={},A=0,k=Object.keys(d);A<k.length;A++){var j=k[A];M[j]=f(h,"".concat(m,".").concat(j),d[j],_[j])}return M}if(d.endsWith("?"))return null==_?null:f(h,m,d.slice(0,d.length-1),_);if(d.endsWith("[]")){if(!Array.isArray(_))throw new u(m,d,_);return _.map(function(re,me){return f(h,"".concat(m,"[").concat(me,"]"),d.slice(0,d.length-2),re)})}if(b.indexOf(d)>=0)return r(m,d,_);if("bytes"!==d){if("bigint"===d){if("number"!=typeof _&&("string"!=typeof _||!/^-?[0-9]+$/u.test(_)))throw new u(m,d,_);return BigInt(_)}if("cpf"===d){if("string"!=typeof _)throw new u(m,d,_);return _}if("cnpj"===d){if("string"!=typeof _)throw new u(m,d,_);return _}if("date"===d){if("string"!=typeof _||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(_))throw new u(m,d,_);var Y=parseInt(_.split("-")[2],10),U=parseInt(_.split("-")[1],10)-1,Q=parseInt(_.split("-")[0],10),V=new Date(Q,U,Y);if(V.getFullYear()!==Q||V.getMonth()!==U||V.getDate()!==Y)throw new u(m,d,_);return V}if("datetime"===d){if("string"!=typeof _||!/^[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(_))throw new u(m,d,_);return new Date("".concat(_.endsWith("Z")?_:_.concat("Z")))}var X=h[d];if(X)return f(h,m,X,_);throw new Error("Unknown type '".concat(d,"' at '").concat(m,"'"))}if("string"!=typeof _)throw new u(m,"".concat(d," (base 64)"),_);try{return Uint8Array.from(atob(_),function(re){return re.charCodeAt(0)})}catch(re){throw new u(m,"".concat(d," (base 64)"),_)}}},2837:function(H,o){"use strict";var b,a=this&&this.__extends||(b=function(u,r){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,f){c.__proto__=f}||function(c,f){for(var h in f)Object.prototype.hasOwnProperty.call(f,h)&&(c[h]=f[h])})(u,r)},function(u,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function c(){this.constructor=u}b(u,r),u.prototype=null===r?Object.create(r):(c.prototype=r.prototype,new c)});Object.defineProperty(o,"__esModule",{value:!0}),o.SdkgenErrorWithData=o.SdkgenError=void 0;var n=function(b){function u(){return null!==b&&b.apply(this,arguments)||this}return a(u,b),Object.defineProperty(u.prototype,"type",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),u.prototype.toJSON=function(){return{message:this.message,type:this.type}},u}(Error);o.SdkgenError=n;var p=function(b){function u(r,c){var f=b.call(this,r)||this;return f.data=c,f}return a(u,b),u.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},u}(n);o.SdkgenErrorWithData=p},2062:function(H,o,a){"use strict";var n=this&&this.__awaiter||function(m,d,_,v){return new(_||(_=Promise))(function(E,M){function A(Y){try{j(v.next(Y))}catch(U){M(U)}}function k(Y){try{j(v.throw(Y))}catch(U){M(U)}}function j(Y){Y.done?E(Y.value):function y(E){return E instanceof _?E:new _(function(M){M(E)})}(Y.value).then(A,k)}j((v=v.apply(m,d||[])).next())})},p=this&&this.__generator||function(m,d){var v,y,E,M,_={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return M={next:A(0),throw:A(1),return:A(2)},"function"==typeof Symbol&&(M[Symbol.iterator]=function(){return this}),M;function A(j){return function(Y){return function k(j){if(v)throw new TypeError("Generator is already executing.");for(;_;)try{if(v=1,y&&(E=2&j[0]?y.return:j[0]?y.throw||((E=y.return)&&E.call(y),0):y.next)&&!(E=E.call(y,j[1])).done)return E;switch(y=0,E&&(j=[2&j[0],E.value]),j[0]){case 0:case 1:E=j;break;case 4:return _.label++,{value:j[1],done:!1};case 5:_.label++,y=j[1],j=[0];continue;case 7:j=_.ops.pop(),_.trys.pop();continue;default:if(!(E=(E=_.trys).length>0&&E[E.length-1])&&(6===j[0]||2===j[0])){_=0;continue}if(3===j[0]&&(!E||j[1]>E[0]&&j[1]<E[3])){_.label=j[1];break}if(6===j[0]&&_.label<E[1]){_.label=E[1],E=j;break}if(E&&_.label<E[2]){_.label=E[2],_.ops.push(j);break}E[2]&&_.ops.pop(),_.trys.pop();continue}j=d.call(m,_)}catch(Y){j=[6,Y],y=0}finally{v=E=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([j,Y])}}};Object.defineProperty(o,"__esModule",{value:!0}),o.SdkgenHttpClient=void 0;var b=a(4602);function u(m){for(var d="",_=0;_<2*m;++_)d+="0123456789abcdef"[Math.floor(16*Math.random())];return d}var r=u(20);function c(){try{var m=localStorage.getItem("deviceId");return m||(m=r,localStorage.setItem("deviceId",m)),m}catch(d){return r}}function f(m,d){return d in m}var h=function(){function m(d,_,v){this.baseUrl=d,this.astJson=_,this.errClasses=v,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){}}return m.prototype.makeRequest=function(d,_){var v,y;return n(this,void 0,void 0,function(){var E,M,A,k,j,Y=this;return p(this,function(U){switch(U.label){case 0:if(!(E=this.astJson.functionTable[d]))throw new Error("Unknown function ".concat(d));return M={},this.extra.forEach(function(Q,V){M[V]=Q}),A={args:(0,b.encode)(this.astJson.typeTable,"".concat(d,".args"),E.args,_),deviceInfo:{id:c(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(y=null===(v=document.currentScript)||void 0===v?void 0:v.getAttribute("src"))&&void 0!==y?y:""},extra:M,name:d,requestId:u(16),version:3},[4,new Promise(function(Q,V){var X=new XMLHttpRequest;X.open("POST","".concat(Y.baseUrl,"/").concat(d)),X.setRequestHeader("Content-Type","application/sdkgen"),X.onreadystatechange=function(){if(4===X.readyState)try{var re=JSON.parse(X.responseText);try{f(re,"error")&&re.error?V(re.error):Q(f(re,"result")?re.result:null)}catch(we){var me={message:"".concat(we),type:"Fatal"};V(me)}}catch(we){V(me={message:"Falha de conex\xe3o com o servidor",type:"Fatal"})}},X.send(JSON.stringify(A))}).catch(function(Q){var V;if(Y.errorHook(Q,d,_),f(Q,"type")&&f(Q,"message")&&"string"==typeof Q.type&&"string"==typeof Q.message){var X=null!==(V=Y.errClasses[Q.type])&&void 0!==V?V:Y.errClasses.Fatal,re=X.name,me=Y.astJson.errors.find(function(tt){return Array.isArray(tt)?tt[0]===re:tt===re}),we=void 0;throw(we=me&&Array.isArray(me)&&f(Q,"data")?new X(Q.message,(0,b.decode)(Y.astJson.typeTable,"".concat(X.name,".data"),me[1],Q.data)):new X(Q.message,void 0)).type||(we.type=re),we}throw Q})];case 1:return k=U.sent(),j=(0,b.decode)(this.astJson.typeTable,"".concat(d,".ret"),E.ret,k),this.successHook(j,d,_),[2,j]}})})},m}();o.SdkgenHttpClient=h},4539:function(H,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(b,u,r,c){void 0===c&&(c=r);var f=Object.getOwnPropertyDescriptor(u,r);(!f||("get"in f?!u.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(b,c,f)}:function(b,u,r,c){void 0===c&&(c=r),b[c]=u[r]}),p=this&&this.__exportStar||function(b,u){for(var r in b)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,b,r)};Object.defineProperty(o,"__esModule",{value:!0}),p(a(2837),o),p(a(2062),o)},3905:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateCSharpServerSource=void 0;const n=a(6676),p=a(4510);o.generateCSharpServerSource=function b(u){let r="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing static Sdkgen.Runtime;\nusing static Sdkgen.Context;\nusing static Sdkgen.Helpers;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const c of u.operations){const f=c.returnType instanceof n.VoidPrimitiveType?"":`<${(0,p.generateTypeName)(c.returnType)}>`;r+=`\n public virtual Task${f} ${(0,p.capitalize)(c.name)}(${["Context ctx",...c.args.map(h=>`${(0,p.generateTypeName)(h.type)} ${(0,p.ident)(h.name)}`)].join(", ")})\n {\n return Task.FromException${f}(new FatalException("Function '${c.name}' not implemented."));\n }\n`}r+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const c of u.operations){r+=`\n case ${JSON.stringify(c.name)}:\n {`;for(const f of c.args)r+=`\n JsonElement ${f.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(f.name)}, out ${f.name}Json_))\n {\n ${f.type instanceof n.OptionalType?`${f.name}Json_ = new JsonElement();`:`throw new FatalException("'${c.name}().args.${f.name}' must be set to a value of type ${f.type.name}.");`}\n }\n ${(0,p.generateTypeName)(f.type)} ${(0,p.ident)(f.name)};\n ${(0,p.decodeType)(f.type,`${f.name}Json_`,`"${c.name}().args.${f.name}"`,(0,p.ident)(f.name)).replace(/\n/gu,"\n ")}`;r+=c.returnType instanceof n.VoidPrimitiveType?`\n await ${(0,p.capitalize)(c.name)}(${["context_",...c.args.map(f=>(0,p.ident)(f.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,p.capitalize)(c.name)}(${["context_",...c.args.map(f=>(0,p.ident)(f.name))].join(", ")});\n ${(0,p.encodeType)(c.returnType,"result_",`"${c.name}().ret"`).replace(/\n/gu,"\n ")}`,r+="\n return;\n }"}r+="\n default:\n {\n throw new FatalException($\"Unknown function '{context_.Name}'.\");\n }\n }\n }\n";for(const c of u.structTypes)r+=(0,p.generateStruct)(c);for(const c of u.enumTypes)r+=(0,p.generateEnum)(c);r+=`\n public string GetAstJson() => @"${JSON.stringify((0,n.astToJson)(u),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const c of u.errors)r+=`\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 r+="\n}\n",r}},4510:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateEnum=o.generateStruct=o.encodeType=o.decodeType=o.generateTypeName=o.capitalize=o.ident=void 0;const n=a(6676),p=["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"],b=[n.StringPrimitiveType,n.HtmlPrimitiveType,n.CpfPrimitiveType,n.CnpjPrimitiveType,n.BytesPrimitiveType,n.EmailPrimitiveType,n.UrlPrimitiveType,n.UuidPrimitiveType,n.HexPrimitiveType,n.Base64PrimitiveType,n.XmlPrimitiveType,n.StructType,n.ArrayType],u=[n.BigIntPrimitiveType,n.DatePrimitiveType,n.DateTimePrimitiveType,n.FloatPrimitiveType,n.IntPrimitiveType,n.MoneyPrimitiveType,n.UIntPrimitiveType];function r(v){return p.includes(v)?`@${v}`:v}function c(v){return v[0].toUpperCase()+v.slice(1)}function f(v){switch(v.constructor){case n.StringPrimitiveType:return"string";case n.IntPrimitiveType:return"int";case n.UIntPrimitiveType:return"uint";case n.FloatPrimitiveType:return"double";case n.BigIntPrimitiveType:return"BigInteger";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"DateTime";case n.BoolPrimitiveType:return"bool";case n.BytesPrimitiveType:return"byte[]";case n.MoneyPrimitiveType:return"decimal";case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"string";case n.VoidPrimitiveType:return"void";case n.JsonPrimitiveType:return"JsonElement";case n.OptionalType:return`${f(v.base)}?`;case n.ArrayType:return`List<${f(v.base)}>`;case n.StructType:case n.EnumType:return v.name;case n.TypeReference:return f(v.type);default:throw new Error(`BUG: generateTypeName with ${v.constructor.name}`)}}function h(v,y,E,M,A=1,k=!0){switch(v.constructor){case n.IntPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.Number || !${y}.TryGetInt32(out ${M}))\n {\n throw new FatalException($"'{${E}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.UIntPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.Number || !${y}.TryGetUInt32(out ${M}))\n {\n throw new FatalException($"'{${E}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.MoneyPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.Number || !${y}.TryGetDecimal(out ${M}) || ${M} % 1 != 0)\n {\n throw new FatalException($"'{${E}}' must be an integer amount of cents.");\n }\n ${M} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case n.FloatPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.Number || !${y}.TryGetDouble(out ${M}))\n {\n throw new FatalException($"'{${E}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.BigIntPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${y}.GetString(), out ${M}))\n {\n throw new FatalException($"'{${E}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.StringPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${E}}' must be a string.");\n }\n ${M} = ${y}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.HtmlPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${E}}' must be a valid HTML string.");\n }\n ${M} = ${y}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.CpfPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${E}}' must be a valid CPF string.");\n }\n ${M} = ${y}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.CnpjPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${E}}' must be a valid CNPJ string.");\n }\n ${M} = ${y}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.EmailPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${E}}' must be a valid email.");\n }\n ${M} = ${y}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.UrlPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${E}}' must be a valid URL string.");\n }\n ${M} = ${y}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.UuidPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${E}}' must be a valid UUID.");\n }\n ${M} = ${y}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.HexPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${E}}' must be a valid hex string.");\n }\n ${M} = ${y}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.Base64PrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${E}}' must be a base64 string.");\n }\n ${M} = ${y}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.XmlPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${E}}' must be a XML string.");\n }\n ${M} = ${y}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case n.BoolPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.True && ${y}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${E}}' must be either true or false.");\n }\n ${M} = ${y}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case n.BytesPrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${E}}' must be a string.");\n }\n try\n {\n ${M} = Convert.FromBase64String(${y}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${E}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.TypeReference:return h(v.type,y,E,M,A);case n.OptionalType:if(u.includes(v.base.constructor)){const j=`${M.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${y}.ValueKind == JsonValueKind.Null || ${y}.ValueKind == JsonValueKind.Undefined)\n {\n ${M} = null;\n }\n else\n {\n ${f(v.base)} ${j};\n ${h(v.base,y,E,j,A,!1).replace(/\n/gu,"\n ")}\n ${M} = ${j};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${y}.ValueKind == JsonValueKind.Null || ${y}.ValueKind == JsonValueKind.Undefined)\n {\n ${M} = null;\n }\n else\n {\n ${h(v.base,y,E,M,A,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case n.EnumType:case n.StructType:return`${M} = Decode${v.name}(${y}, ${E});`;case n.JsonPrimitiveType:return k?`\n if (${y}.ValueKind == JsonValueKind.Null || ${y}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${E}}' can't be null.");\n }\n ${M} = ${y};\n `.replace(/\n {16}/gu,"\n").trim():`${M} = ${y};`;case n.DateTimePrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${y}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${M}) || DateTime.TryParseExact(${y}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${M})))\n {\n throw new FatalException($"'{${E}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.DatePrimitiveType:return`\n if (${y}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${y}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${M})))\n {\n throw new FatalException($"'{${E}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case n.ArrayType:return`\n if (${y}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${E}}' must be a date.");\n }\n ${M} = new ${f(v)}();\n for (var i${A} = 0; i${A} < ${y}.GetArrayLength(); ++i${A})\n {\n ${f(v.base)} element${A};\n ${h(v.base,`${y}[i${A}]`,`$"{${E}}[{i${A}}]"`,`element${A}`,A+1).replace(/\n/gu,"\n ")}\n ${M}.Add(element${A});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${v.constructor.name}`)}}function m(v,y,E,M=1){switch(v.constructor){case n.StringPrimitiveType:return`resultWriter_.WriteStringValue(${y});`;case n.FloatPrimitiveType:case n.UIntPrimitiveType:case n.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${y});`;case n.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${y} * 100));`;case n.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${y}.ToString());`;case n.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${y});`;case n.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${y}));`;case n.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${y}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case n.DatePrimitiveType:return`resultWriter_.WriteStringValue(${y}.ToString("yyyy-MM-dd"));`;case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.Base64PrimitiveType:case n.HexPrimitiveType:case n.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${y});`;case n.OptionalType:{let A=v.base;for(;A instanceof n.TypeReference;)A=A.type;return`\n if (${y} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${m(A,b.includes(A.constructor)?y:`${y}.Value`,E,M).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case n.TypeReference:return m(v.type,y,E,M);case n.EnumType:case n.StructType:return`Encode${v.name}(${y}, resultWriter_, ${E});`;case n.JsonPrimitiveType:return`${y}.WriteTo(resultWriter_);`;case n.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${M} = 0; i${M} < ${y}.Count; ++i${M})\n {\n ${m(v.base,`${y}[i${M}]`,`$"{${E}}[{i${M}}]"`,M+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${v.constructor.name}`)}}o.ident=r,o.capitalize=c,o.generateTypeName=f,o.decodeType=h,o.encodeType=m,o.generateStruct=function d(v){return`\n public class ${v.name}\n {${v.fields.map(y=>`\n public ${f(y.type)} ${c(y.name)};`).join("")}\n public ${v.name}(${v.fields.map(y=>`${f(y.type)} ${r(y.name)}`).join(", ")})\n {${v.fields.map(y=>`\n ${c(y.name)} = ${r(y.name)};`).join("")}\n }\n }\n\n ${v.name} Decode${v.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${v.fields.map(y=>` JsonElement ${y.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(y.name)}, out ${y.name}Json_))\n {\n ${y.type instanceof n.OptionalType?`${y.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${y.name}' must be set to a value of type ${y.type.name}.");`}\n }\n ${f(y.type)} ${r(y.name)};\n ${h(y.type,`${y.name}Json_`,`$"{path_}.${y.name}"`,r(y.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${v.name}(${v.fields.map(y=>r(y.name)).join(", ")});\n }\n\n void Encode${v.name}(${v.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${v.fields.map(y=>`resultWriter_.WritePropertyName(${JSON.stringify(y.name)});\n ${m(y.type,`obj_.${c(y.name)}`,`$"{path_}.${y.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},o.generateEnum=function _(v){return`\n public enum ${v.name}\n {${v.values.map(({value:y})=>`\n ${c(y)}`).join(",\n ")}\n }\n\n ${v.name} Decode${v.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();${v.values.map(({value:y})=>`\n if (value == "${y}")\n {\n return ${v.name}.${c(y)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${v.values.map(({value:y})=>`'${y}'`).join(", ")}).");\n }\n\n void Encode${v.name}(${v.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${v.values.map(({value:y})=>`\n if (obj_ == ${v.name}.${c(y)})\n {\n resultWriter_.WriteStringValue("${y}");\n }`).join("")}\n }\n`}},7179:function(H,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(b,u,r,c){void 0===c&&(c=r);var f=Object.getOwnPropertyDescriptor(u,r);(!f||("get"in f?!u.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(b,c,f)}:function(b,u,r,c){void 0===c&&(c=r),b[c]=u[r]}),p=this&&this.__exportStar||function(b,u){for(var r in b)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,b,r)};Object.defineProperty(o,"__esModule",{value:!0}),p(a(3905),o)},1911:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateDartClientSource=void 0;const n=a(6676),p=a(5235);o.generateDartClientSource=function b(u){let r="";r+="import 'dart:typed_data';\nimport 'dart:ui';\n\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n\n";for(const c of u.enumTypes)r+=(0,p.generateEnum)(c),r+="\n";for(const c of u.structTypes)r+=(0,p.generateClass)(c),r+="\n";for(const c of u.errors)r+=(0,p.generateErrorClass)(c),r+="\n";r+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl) : super(baseUrl, _typeTable, _fnTable, _errTable);\n${u.operations.filter(c=>c.annotations.every(f=>!(f instanceof n.HiddenAnnotation))).map(c=>`\n ${c.returnType instanceof n.VoidPrimitiveType?"Future<void> ":`Future<${(0,p.generateTypeName)(c.returnType)}> `}${c.name}(${0===c.args.length?"":`{${c.args.map(f=>`${f.type instanceof n.OptionalType?"":"required "}${(0,p.generateTypeName)(f.type)} ${(0,p.mangle)(f.name)}`).join(", ")}}`}) async { ${c.returnType instanceof n.VoidPrimitiveType?"":"return "}${(0,p.cast)(`await makeRequest('${c.name}', {${c.args.map(f=>`'${f.name}': ${(0,p.mangle)(f.name)}`).join(", ")}})`,c.returnType)}; }`).join("")}\n}\n\n`,r+="var _typeTable = {\n";for(const c of u.structTypes){r+=` '${c.name}': StructTypeDescription(\n`,r+=` ${c.name},\n`,r+=" {\n";for(const f of c.fields)r+=` '${f.name}': '${f.type.name}',\n`;r+=" },\n",r+=` (Map fields) => ${c.name}(\n`;for(const f of c.fields)r+=` ${(0,p.mangle)(f.name)}: ${(0,p.cast)(`fields['${f.name}']`,f.type)},\n`;r+=" ),\n",r+=` (${c.name} obj) => ({\n`;for(const f of c.fields)r+=` '${f.name}': obj.${(0,p.mangle)(f.name)},\n`;r+=" }),\n",r+=" ),\n"}for(const c of u.enumTypes)r+=` '${c.name}': EnumTypeDescription(${c.name}, ${c.name}.values, [\n ${c.values.map(f=>`'${f.value}'`).join(",\n ")}\n ]),\n`;r+="};\n\n",r+="var _fnTable = {\n";for(const c of u.operations){r+=` '${c.name}': FunctionDescription('${c.returnType.name}', {\n`;for(const f of c.args)r+=` '${f.name}': '${f.type.name}',\n`;r+=" }),\n"}r+="};\n\n",r+="var _errTable = {\n";for(const c of u.errors)r+=` '${c.name}': SdkgenErrorDescription('${c.dataType.name}', (msg, data) => ${c.name}(msg${c.dataType instanceof n.VoidPrimitiveType?"":", data"})),\n`;return r+="};\n",r}},5235:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateClass=o.cast=o.generateErrorClass=o.generateTypeName=o.generateEnum=o.mangle=void 0;const n=a(6676);function p(v){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(v)?`$${v}`:v}function u(v){switch(v.constructor){case n.StringPrimitiveType:return"String";case n.IntPrimitiveType:case n.UIntPrimitiveType:return"int";case n.FloatPrimitiveType:return"double";case n.BigIntPrimitiveType:return"BigInt";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"DateTime";case n.BoolPrimitiveType:return"bool";case n.BytesPrimitiveType:return"Uint8List";case n.MoneyPrimitiveType:return"int";case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"String";case n.VoidPrimitiveType:return"void";case n.JsonPrimitiveType:return"dynamic";case n.OptionalType:return`${u(v.base)}?`;case n.ArrayType:return`List<${u(v.base)}>`;case n.StructType:case n.EnumType:return v.name;case n.TypeReference:return u(v.type);default:throw new Error(`BUG: generateTypeName with ${v.constructor.name}`)}}o.mangle=p,o.generateEnum=function b(v){return`enum ${v.name} {\n ${v.values.map(y=>y.value).join(",\n ")}\n}\n`},o.generateTypeName=u,o.generateErrorClass=function r(v){if(v.dataType instanceof n.VoidPrimitiveType)return`class ${v.name} extends SdkgenError {\n ${v.name}(String msg) : super(msg);\n}\n`;const y=u(v.dataType);return`class ${v.name} extends SdkgenErrorWithData<${y}> {\n ${v.name}(String msg, ${y} data) : super(msg, data);\n}\n`},o.cast=function c(v,y){return y instanceof n.OptionalType?`${v} == null ? null : ${c(v,y.base)}`:y instanceof n.ArrayType?`(${v} as List).map((e) => ${c("e",y.base)}).toList()`:y instanceof n.VoidPrimitiveType?v:y instanceof n.FloatPrimitiveType?`(${v} as num).toDouble()`:y instanceof n.MoneyPrimitiveType?`${v} as int`:`${v} as ${u(y)}`},o.generateClass=function _(v){return`class ${v.name} {\n ${v.fields.map(y=>`final ${u(y.type)} ${p(y.name)};`).join("\n ")}\n\n${function f(v){let y=` ${v.name}({\n`;for(const E of v.fields)y+=E.type instanceof n.OptionalType?" ":" required ",y+=`this.${p(E.name)},\n`;return y+=" });\n",y}(v)}\n${function h(v){let y=" bool operator ==(other){\n";return y+=" if (identical(this, other)) return true;\n",y+=` return ${[`other is ${v.name}`,...v.fields.map(E=>`${p(E.name)} == other.${p(E.name)}`)].join(" && ")};\n`,y+=" }\n",y}(v)}\n${function m(v){return` @override\n int get hashCode => hashList([${v.fields.map(y=>p(y.name)).join(", ")}]);\n`}(v)}\n${function d(v){return` String toString() {\n return '${v.name} { ${v.fields.map(y=>`${y.name}: $${p(y.name).startsWith("$")?`{${p(y.name)}}`:p(y.name)}`).join(", ")} }';\n }\n`}(v)}}\n`}},1823:function(H,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(b,u,r,c){void 0===c&&(c=r);var f=Object.getOwnPropertyDescriptor(u,r);(!f||("get"in f?!u.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(b,c,f)}:function(b,u,r,c){void 0===c&&(c=r),b[c]=u[r]}),p=this&&this.__exportStar||function(b,u){for(var r in b)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,b,r)};Object.defineProperty(o,"__esModule",{value:!0}),p(a(1911),o)},196:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateFSharpServerSource=void 0;const n=a(6676),p=a(8735);o.generateFSharpServerSource=function b(u){let r="module rec SdkgenGenerated\nopen Sdkgen.Runtime\nopen Sdkgen.Helpers\nopen Sdkgen.Context\nopen System.Threading.Tasks\nopen System.Text.Json\nopen System\nopen System.Globalization\n#if NET5_0\n// To use tasks as computation expression in .NET 5 install https://www.nuget.org/packages/TaskBuilder.fs/\nopen FSharp.Control.Tasks.V2.ContextInsensitive\n#endif\n";for(const c of u.errors)r+=`\ntype ${c.name}Exception =\n inherit SdkgenException\n\n new(message: string) = {\n inherit SdkgenException("${c.name}", message, null)\n }\n\n new(message: string, inner: Exception) = {\n inherit SdkgenException("${c.name}", message, inner)\n }\n`;for(const c of u.enumTypes)r+=`\n${(0,p.generateEnum)(c)}\n`;for(const c of u.structTypes)r+=`\n${(0,p.generateStruct)(c)}\n`;r+="\ntype Api() =";for(const c of u.operations){const f=c.returnType instanceof n.VoidPrimitiveType?"":`<${(0,p.generateTypeName)(c.returnType)}>`,h=c.args.length>0?`{| ${c.args.map(m=>`${m.name}: ${(0,p.generateTypeName)(m.type)};`).join("")} |} ->`:"";r+=`\n member val ${(0,p.capitalize)(c.name)}: Context -> ${h} Task${f} =\n fun _ -> (raise (FatalException("Function '${c.name}' not implemented.")))\n with get, set\n `}r+="\n interface BaseApi with\n member __.ExecuteFunction(context_: Context, resultWriter_: Utf8JsonWriter) : Task =\n task {\n match context_.Name with";for(const c of u.operations){r+=`\n | ${JSON.stringify(c.name)} ->`;for(const f of c.args)r+=`\n let ${f.name}Json_ =\n match context_.Args.TryGetValue(${JSON.stringify(f.name)}) with\n | true, v -> v\n | _ -> raise (FatalException("'${c.name}().args.${f.name}' must be set to a value of type ${f.type.name}."))\n\n let ${(0,p.ident)(f.name)} =\n ${(0,p.decodeType)(f.type,`${f.name}Json_`,`"${c.name}().args.${f.name}"`,(0,p.ident)(f.name)).replace(/\n/gu,"\n ")}`;r+=c.returnType instanceof n.VoidPrimitiveType?`\n\n do! (__.${(0,p.capitalize)(c.name)} context_ ${c.args.length>0?"{|":""} ${c.args.map(f=>`${f.name} = ${(0,p.ident)(f.name)}`).join("; ")} ${c.args.length>0?"|}":""})\n `:`\n\n let! result_ = (__.${(0,p.capitalize)(c.name)} context_ ${c.args.length>0?"{|":""} ${c.args.map(f=>`${f.name} = ${(0,p.ident)(f.name)}`).join("; ")} ${c.args.length>0?"|}":""})\n ${(0,p.encodeType)(c.returnType,"result_",`"${c.name}().ret"`,1,!1).replace(/\n/gu,"\n ")}`}return r+="\n\n | _ -> raise (FatalException($\"Unknown function '{context_.Name}'.\"))\n } :> Task",r+=`\n member __.GetAstJson() = """${JSON.stringify((0,n.astToJson)(u),null,4).replace(/\n/gu,"\n ")}""";`,r}},8735:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateEnum=o.generateStruct=o.encodeType=o.decodeType=o.generateTypeName=o.capitalize=o.ident=void 0;const n=a(6676),p=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while","type","end","id"],u=[n.BigIntPrimitiveType,n.DatePrimitiveType,n.DateTimePrimitiveType,n.FloatPrimitiveType,n.IntPrimitiveType,n.MoneyPrimitiveType,n.UIntPrimitiveType,n.ArrayType];function r(v){return p.includes(v)?`${v}'`:v}function c(v){return v[0].toUpperCase()+v.slice(1)}function f(v){switch(v.constructor){case n.StringPrimitiveType:return"string";case n.IntPrimitiveType:return"int";case n.UIntPrimitiveType:return"uint";case n.FloatPrimitiveType:return"double";case n.BigIntPrimitiveType:return"bigint";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"DateTime";case n.BoolPrimitiveType:return"bool";case n.BytesPrimitiveType:return"byte[]";case n.MoneyPrimitiveType:return"decimal";case n.UuidPrimitiveType:return"Guid";case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"string";case n.VoidPrimitiveType:return"void";case n.JsonPrimitiveType:return"JsonElement";case n.OptionalType:return`${f(v.base)} option`;case n.ArrayType:return`${f(v.base)} list`;case n.StructType:case n.EnumType:return v.name;case n.TypeReference:return f(v.type);default:throw new Error(`BUG: generateTypeName with ${v.constructor.name}`)}}function h(v,y,E,M,A=1,k=!0){switch(v.constructor){case n.IntPrimitiveType:return`\n decodeInt32 ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.UIntPrimitiveType:return`\n decodeUInt32 ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.MoneyPrimitiveType:return`\n (decodeMoney ${y} ${E}) / 100m\n `.replace(/\n {16}/gu,"\n").trim();case n.FloatPrimitiveType:return`\n decodeFloat ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.BigIntPrimitiveType:return`\n decodeBigInt ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.StringPrimitiveType:return`\n decodeString ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.HtmlPrimitiveType:return`\n decodeHtml ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.CpfPrimitiveType:return`\n decodeCpf ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.CnpjPrimitiveType:return`\n decodeCnpj ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.EmailPrimitiveType:return`\n decodeEmail ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.UrlPrimitiveType:return`\n decodeUrl ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.UuidPrimitiveType:return`\n decodeUuid ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.HexPrimitiveType:return`\n decodeHex ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.Base64PrimitiveType:return`\n decodeBase64 ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.XmlPrimitiveType:return`\n decodeXml ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.BoolPrimitiveType:return`\n decodeBool ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.BytesPrimitiveType:return`\n decodeBytes ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.TypeReference:return h(v.type,y,E,M,A);case n.OptionalType:return u.includes(v.base.constructor)?`match ${y}.ValueKind with\n | JsonValueKind.Null | JsonValueKind.Undefined -> None\n | _ ->\n (${h(v.base,y,E,M,A,!1).replace(/\n/gu,"\n ")}) |> Some\n `.replace(/\n {16}/gu,"\n").trim():v.base instanceof n.OptionalType||v.base instanceof n.ArrayType?`\n (>.>) decodeOptional ${h(v.base,y,E,M,A,!1)}\n `.replace(/\n {16}/gu,"\n").trim():`\n decodeOptional ${h(v.base,y,E,M,A,!1)}\n `.replace(/\n {16}/gu,"\n").trim();case n.EnumType:case n.StructType:return`Decode${v.name} ${y} ${E}`;case n.JsonPrimitiveType:return k?`\n ${y}\n `.replace(/\n {16}/gu,"\n").trim():`${M} <- ${y}`;case n.DateTimePrimitiveType:return`\n decodeDateTime ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.DatePrimitiveType:return`\n decodeDate ${y} ${E}\n `.replace(/\n {16}/gu,"\n").trim();case n.ArrayType:return`\n match ${y}.ValueKind with\n | JsonValueKind.Array ->\n let mutable list_ = List.empty\n for i1 in 0 .. (${y}.GetArrayLength() - 1) do\n let item = ${y}.[i1]\n let partialResult =\n ${h(v.base,`${y}.[i1]`,`${E.slice(0,-1)}.{i1}"`,M,A,!1).replace(/\n/gu,"\n ")}\n list_ <- list_ |> List.append [ partialResult ]\n list_\n | _ -> raise (FatalException(${E.slice(0,-1)} must be an array."))\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${v.constructor.name}`)}}function m(v,y,E,M=1,A=!0){switch(v.constructor){case n.StringPrimitiveType:return`resultWriter_.WriteStringValue(${y})`;case n.FloatPrimitiveType:case n.UIntPrimitiveType:case n.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${y})`;case n.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(int (Math.Round(${y} * 100m)))`;case n.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${y}.ToString())`;case n.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${y})`;case n.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${y}))`;case n.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${y}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"))`;case n.DatePrimitiveType:return`resultWriter_.WriteStringValue(${y}.ToString("yyyy-MM-dd"))`;case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.Base64PrimitiveType:case n.HexPrimitiveType:case n.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${y})`;case n.OptionalType:{let k=v.base;for(;k instanceof n.TypeReference;)k=k.type;return`\n if (${y}.IsNone) then\n resultWriter_.WriteNullValue()\n else\n ${m(k,`${y}.Value`,E,M,A)}\n `.replace(/\n {14}/gu,"\n").trim()}case n.TypeReference:return m(v.type,y,E,M,A);case n.EnumType:case n.StructType:return`Encode${v.name} ${y} resultWriter_ ${E}`;case n.JsonPrimitiveType:return`${y}.WriteTo(resultWriter_)`;case n.ArrayType:return`\n resultWriter_.WriteStartArray()\n for i${M} in 0..${y}.Length - 1 do\n ${m(v.base,`${y}.[i${M}]`,`${E}`,M+1).replace(/\n/gu,"\n ")}\n resultWriter_.WriteEndArray()\n `.replace(/\n {14}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${v.constructor.name}`)}}o.ident=r,o.capitalize=c,o.generateTypeName=f,o.decodeType=h,o.encodeType=m,o.generateStruct=function d(v){return`\ntype ${v.name} = {\n ${v.fields.map(y=>`${c(y.name)}: ${f(y.type)}`).join(";\n ")}\n} with\n static member Create (${v.fields.map(y=>`${r(y.name)}: ${f(y.type)}`).join(", ")}): ${v.name} =\n { ${v.fields.map(y=>`${c(y.name)} = ${r(y.name)}`).join("; ")} }\n\nlet Decode${v.name} (json_: JsonElement) (path_: string): ${v.name} =\n if (json_.ValueKind <> JsonValueKind.Object) then raise (FatalException($"'{path_}' must be an object."))\n ${v.fields.map(y=>`\n let ${y.name}Json_ = decodeJsonElementStrict ${JSON.stringify(y.name)} json_ $"{path_}.${y.name}"\n let ${r(y.name)} =\n ${h(y.type,`${y.name}Json_`,`$"{path_}.${y.name}"`,r(y.name)).replace(/\n/gu,"\n ")}\n `).join("")}\n { ${v.fields.map(y=>`${c(y.name)} = ${r(y.name)}`).join("; ")} }\n\nlet Encode${v.name} (obj_: ${v.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n resultWriter_.WriteStartObject()\n ${v.fields.map(y=>`\n resultWriter_.WritePropertyName(${JSON.stringify(y.name)})\n ${m(y.type,`obj_.${c(y.name)}`,`$"{path_}.${y.name}"`).replace(/\n/gu,"\n ")}`).join("\n")}\n resultWriter_.WriteEndObject()`},o.generateEnum=function _(v){return`\ntype ${v.name} =\n ${v.values.map(({value:y})=>`| ${c(y)}`).join("\n ")}\n\nlet Decode${v.name} (json_: JsonElement) (path_: string): ${v.name} =\n if (json_.ValueKind <> JsonValueKind.String) then raise (FatalException($"'{path_}' must be a string."))\n match json_.GetString() with\n ${v.values.map(({value:y})=>`| "${y}" -> ${v.name}.${c(y)}`).join("\n ")}\n | _ -> raise (FatalException($"'{path_}' must be one of: (${v.values.map(({value:y})=>`'${y}'`).join(", ")})."))\n\nlet Encode${v.name} (obj_: ${v.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n match obj_ with\n ${v.values.map(({value:y})=>`| ${v.name}.${c(y)} -> resultWriter_.WriteStringValue("${y}")`).join("\n ")}\n\n`}},2863:function(H,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(b,u,r,c){void 0===c&&(c=r);var f=Object.getOwnPropertyDescriptor(u,r);(!f||("get"in f?!u.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(b,c,f)}:function(b,u,r,c){void 0===c&&(c=r),b[c]=u[r]}),p=this&&this.__exportStar||function(b,u){for(var r in b)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,b,r)};Object.defineProperty(o,"__esModule",{value:!0}),p(a(196),o)},9409:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateAndroidClientSource=void 0;const n=a(6676),p=a(7250);o.generateAndroidClientSource=function b(u,r){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 m of u.enumTypes)c+=` ${(0,p.generateEnum)(m)}`,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 m of u.structTypes)c+=` ${(0,p.generateClass)(m)}\n`;const f=[],h=new n.ErrorNode("Connection",new n.VoidPrimitiveType);f.push(h.name),c+=` ${(0,p.generateErrorClass)(h)}`;for(const m of u.errors)c+=` ${(0,p.generateErrorClass)(m)}`,f.push(m.name);return f.length>0&&(c+=`\n enum class ErrorType {\n ${f.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${f.map(m=>`${m} -> ApiClient.${m}::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+=u.operations.filter(m=>m.annotations.every(d=>!(d instanceof n.HiddenAnnotation))).map(m=>{let d="";const _=[];_.push("timeoutMillis: Long? = null"),r&&_.push(`callback: ((response: Response<${(0,p.generateKotlinTypeName)(m.returnType)}>) -> Unit)? = null`);const v=m.args.map(y=>`${(0,p.mangle)(y.name)}: ${(0,p.generateKotlinTypeName)(y.type)}`).concat(_);return d+=` fun ${(0,p.mangle)(m.name)}(\n ${v.join(",\n ")}\n ): Deferred<Response<out ${(0,p.generateKotlinTypeName)(m.returnType)}>> = sdkgenIOScope.async {\n`,m.args.length>0?(d+=" val bodyArgs = JsonObject().apply {\n",d+=m.args.map(y=>` ${(0,p.generateJsonAddRepresentation)(y.type,y.name)}`).join("\n"),d+="\n }\n"):d+=" val bodyArgs: JsonObject? = null",d+="\n",d+=` val call = makeRequest("${m.name}", bodyArgs, timeoutMillis)\n`,d+=` val response: Response<${(0,p.generateKotlinTypeName)(m.returnType)}> = handleCallResponse(call)\n`,r&&(d+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),d+=" return@async response\n",d+=" }\n",d}).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}},7250:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateErrorClass=o.generateClass=o.getAnnotation=o.generateEnum=o.generateJsonAddRepresentation=o.mangle=o.generateKotlinTypeName=void 0;const n=a(6676);function p(m){switch(m.constructor){case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.MoneyPrimitiveType:return"Int";case n.FloatPrimitiveType:return"Double";case n.BigIntPrimitiveType:return"BigInt";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"Calendar";case n.BoolPrimitiveType:return"Boolean";case n.BytesPrimitiveType:return"ByteArray";case n.StringPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"String";case n.VoidPrimitiveType:return"Unit";case n.JsonPrimitiveType:return"JsonElement";case n.OptionalType:return`${p(m.base)}?`;case n.ArrayType:return`ArrayList<${p(m.base)}>`;case n.StructType:case n.EnumType:return m.name;case n.TypeReference:return p(m.type);default:throw new Error(`BUG: generateKotlinTypeName with ${m.constructor.name}`)}}function b(m){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(m)?`_${m}`:m}function c(m,d){let _="";switch(d&&d!==b(d)&&(_+=` @SerializedName("${d}")\n`),m.constructor){case n.DatePrimitiveType:_+=" @JsonAdapter(DateAdapter::class)\n";break;case n.DateTimePrimitiveType:_+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case n.ArrayType:case n.OptionalType:_+=c(m.base)}return _}o.generateKotlinTypeName=p,o.mangle=b,o.generateJsonAddRepresentation=function u(m,d){switch(m.constructor){case n.StringPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.MoneyPrimitiveType:case n.FloatPrimitiveType:case n.BoolPrimitiveType:return`addProperty("${d}", ${b(d)})`;case n.OptionalType:return u(m.base,d);case n.DatePrimitiveType:return`addProperty("${d}", ${b(d)}?.let { DateAdapter.sdf.format(it.time)}) `;case n.DateTimePrimitiveType:return`addProperty("${d}", ${b(d)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case n.ArrayType:case n.StructType:case n.EnumType:case n.TypeReference:case n.JsonPrimitiveType:return`add("${d}", gson.toJsonTree(${b(d)}))`;case n.VoidPrimitiveType:return"";case n.BytesPrimitiveType:return`addProperty("${d}", Base64.encodeToString(${b(d)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${m.constructor.name}`)}},o.generateEnum=function r(m){let d="@Parcelize \n";return d+=` enum class ${m.name} : Parcelable { ${m.values.map(_=>b(_.value)).join(", ")} }\n`,d},o.getAnnotation=c,o.generateClass=function f(m){let d="@Parcelize\n";return d+=` data class ${m.name}(\n${m.fields.map(_=>{let v=c(_.type,_.name);return v+=` var ${b(_.name)}: ${p(_.type)}${_.type.constructor===n.OptionalType?" = null":""}`,v}).join(",\n")}\n ) : Parcelable\n`,d},o.generateErrorClass=function h(m){return`class ${m.name}(message: String) : Error(message)\n`}},7402:function(H,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(b,u,r,c){void 0===c&&(c=r);var f=Object.getOwnPropertyDescriptor(u,r);(!f||("get"in f?!u.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(b,c,f)}:function(b,u,r,c){void 0===c&&(c=r),b[c]=u[r]}),p=this&&this.__exportStar||function(b,u){for(var r in b)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,b,r)};Object.defineProperty(o,"__esModule",{value:!0}),p(a(9409),o)},1942:function(H,o,a){"use strict";var n=this&&this.__rest||function(Ct,st){var It={};for(var ze in Ct)Object.prototype.hasOwnProperty.call(Ct,ze)&&st.indexOf(ze)<0&&(It[ze]=Ct[ze]);if(null!=Ct&&"function"==typeof Object.getOwnPropertySymbols){var Ae=0;for(ze=Object.getOwnPropertySymbols(Ct);Ae<ze.length;Ae++)st.indexOf(ze[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ct,ze[Ae])&&(It[ze[Ae]]=Ct[ze[Ae]])}return It};Object.defineProperty(o,"__esModule",{value:!0}),o.AstRoot=o.FunctionOperation=o.TypeDefinition=o.StructType=o.TypeReference=o.Spread=o.Field=o.EnumType=o.EnumValue=o.ArrayType=o.OptionalType=o.JsonPrimitiveType=o.XmlPrimitiveType=o.Base64PrimitiveType=o.HtmlPrimitiveType=o.HexPrimitiveType=o.UuidPrimitiveType=o.UrlPrimitiveType=o.EmailPrimitiveType=o.CnpjPrimitiveType=o.CpfPrimitiveType=o.MoneyPrimitiveType=o.VoidPrimitiveType=o.BytesPrimitiveType=o.BoolPrimitiveType=o.DateTimePrimitiveType=o.DatePrimitiveType=o.BigIntPrimitiveType=o.FloatPrimitiveType=o.UIntPrimitiveType=o.IntPrimitiveType=o.StringPrimitiveType=o.PrimitiveType=o.HiddenAnnotation=o.RestAnnotation=o.ArgDescriptionAnnotation=o.ThrowsAnnotation=o.DescriptionAnnotation=o.Annotation=o.ErrorNode=o.Type=o.AstNode=void 0;const p=a(9037);class b{constructor(){this.location=new p.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(st){return this.location=st.location,this}atLocation(st){return this.location=st,this}}o.AstNode=b;class u extends b{toJSON(){const st=Object.assign({},this);return n(st,["name"])}}o.Type=u,o.ErrorNode=class r extends b{constructor(st,It){super(),this.name=st,this.dataType=It}};class c extends b{}o.Annotation=c,o.DescriptionAnnotation=class f extends c{constructor(st){super(),this.text=st}},o.ThrowsAnnotation=class h extends c{constructor(st){super(),this.error=st}},o.ArgDescriptionAnnotation=class m extends c{constructor(st,It){super(),this.argName=st,this.text=It}},o.RestAnnotation=class d extends c{constructor(st,It,ze,Ae,je,pe){super(),this.method=st,this.path=It,this.pathVariables=ze,this.queryVariables=Ae,this.headers=je,this.bodyVariable=pe}},o.HiddenAnnotation=class _ extends c{};class v extends u{toJSON(){return this.name}}o.PrimitiveType=v,o.StringPrimitiveType=class y extends v{constructor(){super(...arguments),this.name="string"}},o.IntPrimitiveType=class E extends v{constructor(){super(...arguments),this.name="int"}},o.UIntPrimitiveType=class M extends v{constructor(){super(...arguments),this.name="uint"}},o.FloatPrimitiveType=class A extends v{constructor(){super(...arguments),this.name="float"}},o.BigIntPrimitiveType=class k extends v{constructor(){super(...arguments),this.name="bigint"}},o.DatePrimitiveType=class j extends v{constructor(){super(...arguments),this.name="date"}},o.DateTimePrimitiveType=class Y extends v{constructor(){super(...arguments),this.name="datetime"}},o.BoolPrimitiveType=class U extends v{constructor(){super(...arguments),this.name="bool"}},o.BytesPrimitiveType=class Q extends v{constructor(){super(...arguments),this.name="bytes"}},o.VoidPrimitiveType=class V extends v{constructor(){super(...arguments),this.name="void"}},o.MoneyPrimitiveType=class X extends v{constructor(){super(...arguments),this.name="money"}},o.CpfPrimitiveType=class re extends v{constructor(){super(...arguments),this.name="cpf"}},o.CnpjPrimitiveType=class me extends v{constructor(){super(...arguments),this.name="cnpj"}},o.EmailPrimitiveType=class we extends v{constructor(){super(...arguments),this.name="email"}},o.UrlPrimitiveType=class tt extends v{constructor(){super(...arguments),this.name="url"}},o.UuidPrimitiveType=class G extends v{constructor(){super(...arguments),this.name="uuid"}},o.HexPrimitiveType=class q extends v{constructor(){super(...arguments),this.name="hex"}},o.HtmlPrimitiveType=class B extends v{constructor(){super(...arguments),this.name="html"}},o.Base64PrimitiveType=class ae extends v{constructor(){super(...arguments),this.name="base64"}},o.XmlPrimitiveType=class de extends v{constructor(){super(...arguments),this.name="xml"}},o.JsonPrimitiveType=class _e extends v{constructor(){super(...arguments),this.name="json"}},o.OptionalType=class it extends u{constructor(st){super(),this.base=st}get name(){return`${this.base.name}?`}},o.ArrayType=class rt extends u{constructor(st){super(),this.base=st}get name(){return`${this.base.name}[]`}},o.EnumValue=class yt extends b{constructor(st){super(),this.value=st,this.annotations=[],this.struct=null}},o.EnumType=class Oe extends u{constructor(st){super(),this.values=st}get hasStructValues(){return this.values.some(st=>null!==st.struct)}},o.Field=class ft extends b{constructor(st,It,ze=!1){super(),this.name=st,this.type=It,this.secret=ze,this.annotations=[]}},o.Spread=class wt extends b{constructor(st){super(),this.typeReference=st}},o.TypeReference=class et extends u{constructor(st){super(),this.name=st}},o.StructType=class at extends u{constructor(st){super(),this.fieldsAndSpreads=st,this.fields=[]}},o.TypeDefinition=class Ke extends b{constructor(st,It){super(),this.name=st,this.type=It,this.annotations=[]}},o.FunctionOperation=class nt extends b{constructor(st,It,ze){super(),this.name=st,this.fieldsAndSpreads=It,this.returnType=ze,this.annotations=[],this.args=[]}},o.AstRoot=class Tt{constructor(st=[],It=[],ze=[]){this.typeDefinitions=st,this.operations=It,this.errors=ze,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},9747:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.compatibilityIssues=void 0;const n=a(1942);function p(r,c,f,h){var m,d;if(f instanceof n.TypeReference)p(r,c,f.type,h);else if(h instanceof n.TypeReference)p(r,c,f,h.type);else if(f instanceof n.OptionalType||!(h instanceof n.OptionalType))if(f instanceof n.OptionalType&&h instanceof n.OptionalType)p(r,c,f.base,h.base);else{if(f instanceof n.OptionalType&&!(h instanceof n.OptionalType))return c.push(`${r} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void p(r,c,f.base,h);if(f instanceof n.ArrayType&&h instanceof n.ArrayType)p(r,c,f.base,h.base);else if(f instanceof n.StructType&&h instanceof n.StructType)for(const _ of h.fields){const v=f.fields.find(y=>y.name===_.name);if(v)p(`${r}.${v.name}`,c,v.type,_.type);else{if(_.type instanceof n.OptionalType)continue;c.push(`${r}.${_.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(f instanceof n.UIntPrimitiveType&&h instanceof n.IntPrimitiveType||f instanceof n.IntPrimitiveType&&h instanceof n.FloatPrimitiveType||f instanceof n.MoneyPrimitiveType&&h instanceof n.IntPrimitiveType||f instanceof n.MoneyPrimitiveType&&h instanceof n.UIntPrimitiveType||f instanceof n.UIntPrimitiveType&&h instanceof n.BigIntPrimitiveType||f instanceof n.IntPrimitiveType&&h instanceof n.BigIntPrimitiveType||f instanceof n.MoneyPrimitiveType&&h instanceof n.BigIntPrimitiveType||f instanceof n.BigIntPrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.UuidPrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.XmlPrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.DatePrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.DateTimePrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.CpfPrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.CnpjPrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.HexPrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.HtmlPrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.Base64PrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.BytesPrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.BytesPrimitiveType&&h instanceof n.Base64PrimitiveType||f instanceof n.UrlPrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.EmailPrimitiveType&&h instanceof n.StringPrimitiveType||f instanceof n.EnumType&&h instanceof n.StringPrimitiveType)){if(f instanceof n.EnumType&&h instanceof n.EnumType){for(const _ of f.values){const v=h.values.find(y=>y.value===_.value);v?p(`${r}.${_.value}`,c,null!==(m=_.struct)&&void 0!==m?m:new n.StructType([]),null!==(d=v.struct)&&void 0!==d?d:new n.StructType([])):c.push(`The enum at ${r} used to accept the value "${_.value}" that doesn't exist now. Clients that send it will fail.`)}return}f.constructor.name!==h.constructor.name&&c.push(`${r} was ${f.name} and now it is ${h.name}. They are not compatible.`)}}else p(r,c,f,h.base)}function b(r,c,f,h){var m,d;if(f instanceof n.TypeReference)b(r,c,f.type,h);else if(h instanceof n.TypeReference)b(r,c,f,h.type);else if(!(f instanceof n.OptionalType)||h instanceof n.OptionalType)if(f instanceof n.OptionalType&&h instanceof n.OptionalType)b(r,c,f.base,h.base);else{if(!(f instanceof n.OptionalType)&&h instanceof n.OptionalType)return c.push(`${r} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void b(r,c,f,h.base);if(f instanceof n.ArrayType&&h instanceof n.ArrayType)b(r,c,f.base,h.base);else if(f instanceof n.StructType&&h instanceof n.StructType)for(const _ of f.fields){const v=h.fields.find(y=>y.name===_.name);if(v)b(`${r}.${_.name}`,c,_.type,v.type);else{if(_.type instanceof n.OptionalType)continue;c.push(`${r}.${_.name} used to exist with type ${_.type.name}, but it's now missing. Add it back.`)}}else if(!(f instanceof n.IntPrimitiveType&&h instanceof n.UIntPrimitiveType||f instanceof n.FloatPrimitiveType&&h instanceof n.IntPrimitiveType||f instanceof n.IntPrimitiveType&&h instanceof n.MoneyPrimitiveType||f instanceof n.UIntPrimitiveType&&h instanceof n.MoneyPrimitiveType||f instanceof n.BigIntPrimitiveType&&h instanceof n.UIntPrimitiveType||f instanceof n.BigIntPrimitiveType&&h instanceof n.IntPrimitiveType||f instanceof n.BigIntPrimitiveType&&h instanceof n.MoneyPrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.BigIntPrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.UuidPrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.XmlPrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.DatePrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.DateTimePrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.CpfPrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.CnpjPrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.HexPrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.HtmlPrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.Base64PrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.BytesPrimitiveType||f instanceof n.Base64PrimitiveType&&h instanceof n.BytesPrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.UrlPrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.EmailPrimitiveType||f instanceof n.StringPrimitiveType&&h instanceof n.EnumType)){if(f instanceof n.EnumType&&h instanceof n.EnumType){for(const _ of h.values){const v=f.values.find(y=>y.value===_.value);v?b(`${r}.${_.value}`,c,null!==(m=v.struct)&&void 0!==m?m:new n.StructType([]),null!==(d=_.struct)&&void 0!==d?d:new n.StructType([])):c.push(`The enum at ${r} now has the value "${_.value}" that didn't exist before. Client will crash if it receives it`)}return}f.constructor.name!==h.constructor.name&&c.push(`${r} was ${f.name} and now it is ${h.name}. They are not compatible.`)}}else b(r,c,f.base,h)}o.compatibilityIssues=function u(r,c){const f=[];for(const h of r.operations){const m=c.operations.find(d=>d.name===h.name);if(m){b(`${h.name}.ret`,f,h.returnType,m.returnType);for(const d of m.args){const _=h.args.find(v=>v.name===d.name);if(_)p(`${h.name}.args.${_.name}`,f,_.type,d.type);else{if(d.type instanceof n.OptionalType)continue;f.push(`${h.name}.args.${d.name} didn't exist before and isn't optional. Make it optional.`)}}}else f.push(`function ${h.name} used to exist, but it's now missing. Add it back.`)}for(const h of r.errors){const m=c.errors.find(d=>d.name===h.name);!m||b(`${h.name}.data`,f,h.dataType,m.dataType)}return f}},6676:function(H,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(u,r,c,f){void 0===f&&(f=c);var h=Object.getOwnPropertyDescriptor(r,c);(!h||("get"in h?!r.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return r[c]}}),Object.defineProperty(u,f,h)}:function(u,r,c,f){void 0===f&&(f=c),u[f]=r[c]}),p=this&&this.__exportStar||function(u,r){for(var c in u)"default"!==c&&!Object.prototype.hasOwnProperty.call(r,c)&&n(r,u,c)};Object.defineProperty(o,"__esModule",{value:!0}),o.jsonToAst=o.astToJson=void 0,p(a(1942),o),p(a(9747),o);var b=a(1557);Object.defineProperty(o,"astToJson",{enumerable:!0,get:function(){return b.astToJson}}),Object.defineProperty(o,"jsonToAst",{enumerable:!0,get:function(){return b.jsonToAst}}),p(a(8053),o),p(a(2701),o),p(a(9037),o)},1557:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.jsonToAst=o.astToJson=void 0;const n=a(1942),p=a(6758),b=a(6569);function u(h){if(h instanceof n.DescriptionAnnotation)return{type:"description",value:h.text};if(h instanceof n.ThrowsAnnotation)return{type:"throws",value:h.error};if(h instanceof n.RestAnnotation)return{type:"rest",value:{bodyVariable:h.bodyVariable,headers:[...h.headers.entries()].sort(([m],[d])=>m.localeCompare(d)),method:h.method,path:h.path,pathVariables:h.pathVariables,queryVariables:[...h.queryVariables].sort((m,d)=>m.localeCompare(d))}};if(h instanceof n.HiddenAnnotation)return{type:"hidden",value:null};throw new Error(`BUG: annotationToJson with ${h.constructor.name}`)}function r(h){switch(h.type){case"description":return new n.DescriptionAnnotation(h.value);case"throws":return new n.ThrowsAnnotation(h.value);case"rest":{const{method:m,path:d,pathVariables:_,queryVariables:v,headers:y,bodyVariable:E}=h.value;return new n.RestAnnotation(m,d,_,v,new Map(y),E)}case"hidden":return new n.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${h.type}`)}}o.astToJson=function c(h){var m,d,_;const v={},y={};function E(k){return k instanceof n.ArrayType?`${E(k.base)}[]`:k instanceof n.OptionalType?`${E(k.base)}?`:k.name}for(const{name:k,fields:j}of h.structTypes){if(k in y)throw new Error(`Duplicate struct type ${k}`);y[k]={};const Y=y[k];for(const U of j){Y[U.name]=E(U.type);for(const Q of U.annotations)if(Q instanceof n.DescriptionAnnotation){const V=`type.${k}.${U.name}`;null!==(m=v[V])&&void 0!==m||(v[V]=[]),v[V].push(u(Q))}}}for(const{name:k,values:j}of h.enumTypes){if(k in y)throw new Error(`Duplicate enum type ${k}`);y[k]=j.map(Y=>Y.struct?[Y.value,Y.struct.name]:Y.value)}for(const{name:k,type:j}of h.typeDefinitions)j instanceof n.StructType||j instanceof n.EnumType||(y[k]=E(j));const M={};for(const k of h.operations){const j={};for(const Y of k.args){j[Y.name]=E(Y.type);for(const U of Y.annotations)if(U instanceof n.DescriptionAnnotation){const Q=`fn.${k.name}.${Y.name}`;null!==(d=v[Q])&&void 0!==d||(v[Q]=[]),v[Q].push(u(U))}}M[k.name]={args:j,ret:E(k.returnType)};for(const Y of k.annotations){const U=`fn.${k.name}`;null!==(_=v[U])&&void 0!==_||(v[U]=[]),v[U].push(u(Y))}}return{annotations:v,errors:h.errors.map(k=>k.dataType instanceof n.VoidPrimitiveType?k.name:[k.name,k.dataType.name]),functionTable:M,typeTable:y}},o.jsonToAst=function f(h){var m,d;const _=[],v=[],y=[];function E(k,j){var Y;if("string"==typeof k){const Q=b.primitiveToAstClass.get(k);return Q?new Q:k.endsWith("?")?new n.OptionalType(E(k.slice(0,k.length-1))):k.endsWith("[]")?new n.ArrayType(E(k.slice(0,k.length-2))):new n.TypeReference(k)}if(Array.isArray(k))return new n.EnumType(k.map(Q=>{if(Array.isArray(Q)){const[V,X]=Q,re=new n.EnumValue(V);return y.push([re,X]),re}return new n.EnumValue(Q)}));const U=[];for(const Q of Object.keys(k)){const V=new n.Field(Q,E(k[Q]));if(j){const X=`type.${j}.${Q}`;for(const re of null!==(Y=h.annotations[X])&&void 0!==Y?Y:[])V.annotations.push(r(re))}U.push(V)}return new n.StructType(U)}for(const[k,j]of Object.entries(h.typeTable)){const Y=E(j,k);v.push(new n.TypeDefinition(k,Y))}for(const[k,j]of Object.entries(h.functionTable)){const Y=Object.keys(j.args).map(V=>{var X;const re=new n.Field(V,E(j.args[V])),me=`fn.${k}.${V}`;for(const we of null!==(X=h.annotations[me])&&void 0!==X?X:[])re.annotations.push(r(we));return re}),U=new n.FunctionOperation(k,Y,E(j.ret)),Q=`fn.${k}`;for(const V of null!==(m=h.annotations[Q])&&void 0!==m?m:[])U.annotations.push(r(V));_.push(U)}for(const[k,j]of y){const Y=null===(d=v.find(U=>U.name===j))||void 0===d?void 0:d.type;Y instanceof n.StructType&&(k.struct=Y)}const M=h.errors.map(k=>{if(Array.isArray(k)){const[j,Y]=k;return new n.ErrorNode(j,E(Y))}return new n.ErrorNode(k,new n.VoidPrimitiveType)}),A=new n.AstRoot(v,_,M);return(0,p.analyse)(A),A}},8053:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Lexer=o.LexerError=void 0;const n=a(9037);class p extends Error{}o.LexerError=p;class b{constructor(r,c="-"){this.source=r,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 r=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(),r=new n.CurlyOpenSymbolToken;break;case"}":this.nextChar(),r=new n.CurlyCloseSymbolToken;break;case"(":this.nextChar(),r=new n.ParensOpenSymbolToken;break;case")":this.nextChar(),r=new n.ParensCloseSymbolToken;break;case"?":this.nextChar(),r=new n.OptionalSymbolToken;break;case":":this.nextChar(),r=new n.ColonSymbolToken;break;case"=":this.nextChar(),r=new n.EqualSymbolToken;break;case"!":this.nextChar(),r=new n.ExclamationMarkSymbolToken;break;case",":this.nextChar(),r=new n.CommaSymbolToken;break;case"[":"]"===this.nextChar()&&(this.nextChar(),r=new n.ArraySymbolToken);break;case".":"."===this.nextChar()&&"."===this.nextChar()&&(this.nextChar(),r=new n.SpreadSymbolToken);break;case"@":{let c="\\",f=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(f,this.pos).trim()}`.trim(),f=this.pos+1}r=new n.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(),r=new n.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":r=new n.ErrorKeywordToken;break;case"enum":r=new n.EnumKeywordToken;break;case"type":r=new n.TypeKeywordToken;break;case"import":r=new n.ImportKeywordToken;break;case"fn":r=new n.FnKeywordToken;break;case"true":r=new n.TrueKeywordToken;break;case"false":r=new n.FalseKeywordToken;break;default:r=b.PRIMITIVES.has(c)?new n.PrimitiveTypeToken(c):new n.IdentifierToken(c)}}}if(null!==r)return r.location.filename=this.filename,r.location.line=this.startLine,r.location.column=this.startColumn,r;throw"\0"===this.currentChar()?new p(`Unexpected end of file at ${this.filename}`):new p(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}o.Lexer=b,b.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]),b.KEYWORDS=new Set([...b.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"])},2701:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Parser=o.ParserError=void 0;const n=a(1942),p=a(8053),b=a(7145),u=a(6758),r=a(9037),c=a(6569);class f extends Error{}o.ParserError=f,o.Parser=class h{constructor(d){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var y=new Error("Cannot find module 'fs'");throw y.code="MODULE_NOT_FOUND",y}())}catch(v){}const _=Array.isArray(d)?[...d].reverse():[d];this.lexers=_.map(v=>v instanceof p.Lexer?v:new p.Lexer(this.readFileSync(v).toString(),v)),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(d){if(!this.token)throw new f(`Expected ${Object.keys(d).map(v=>v.replace("Token","")).join(" or ")}, but found end of file`);const _=this.token.constructor.name;if(_ in d)return d[_](this.token);if(d.IdentifierToken){const v=this.token.maybeAsIdentifier();if(v instanceof r.IdentifierToken)return d.IdentifierToken(v)}throw new f(`Expected ${Object.keys(d).map(v=>v.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(d){if(null===this.token)throw new f(`Expected ${d.name.replace("Token","")}, but found end of file`);if(this.token instanceof d)return this.token;if(d===r.IdentifierToken){const _=this.token.maybeAsIdentifier();if(_ instanceof r.IdentifierToken)return _}throw new f(`Expected ${d.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const d=[],_=[],v=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{v.push(this.parseError())},FnKeywordToken:()=>{d.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const E=this.expect(r.StringLiteralToken),M=E.location.filename.replace(/[^/\\]+$/u,`${E.value}.sdkgen`);this.lexers.push(new p.Lexer(this.readFileSync(M).toString(),M)),this.nextToken()},TypeKeywordToken:()=>{_.push(this.parseTypeDefinition())}});const y=new n.AstRoot(_,d,v);return y.warnings=this.warnings,(0,u.analyse)(y),y}acceptAnnotations(){for(;this.token instanceof r.AnnotationToken;){const d=this.token.value.split(" "),_=this.token.value.slice(d[0].length).trim();switch(d[0]){case"description":this.annotations.push(new n.DescriptionAnnotation(_).at(this.token));break;case"arg":this.annotations.push(new n.ArgDescriptionAnnotation(d[1],this.token.value.slice(d[0].length+1+d[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new n.ThrowsAnnotation(_).at(this.token));break;case"rest":try{this.annotations.push((0,b.parseRestAnnotation)(_).at(this.token))}catch(v){throw new f(`${v instanceof Error?v.message:v} at ${this.token.location}`)}break;case"hidden":if(""!==_)throw new f("@hidden annotation doesn't take any argument");this.annotations.push((new n.HiddenAnnotation).at(this.token));break;default:throw new f(`Unknown annotation '${d[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new f(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const d=this.expect(r.TypeKeywordToken);this.nextToken();const _=this.expect(r.IdentifierToken),v=_.value;if(!/[A-Z]/u.test(v[0]))throw new f(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(v)} at ${_.location}`);this.nextToken();const{annotations:y}=this;this.annotations=[];const E=this.parseType(),M=new n.TypeDefinition(v,E).at(d);return M.annotations=y,M}parseError(){this.checkCannotHaveAnnotationsHere();const d=this.expect(r.ErrorKeywordToken);this.nextToken();const _=this.expect(r.IdentifierToken),v=_.value;if(!/[A-Z]/u.test(v[0]))throw new f(`Error name must start with an uppercase letter, but found ${JSON.stringify(v)} at ${_.location}`);this.nextToken();let y=new n.VoidPrimitiveType;return(this.token instanceof r.CurlyOpenSymbolToken||this.token instanceof r.EnumKeywordToken||this.token instanceof r.IdentifierToken||this.token instanceof r.PrimitiveTypeToken)&&(y=this.parseType()),new n.ErrorNode(v,y).at(d)}parseOperation(){let{annotations:d}=this;this.annotations=[],this.expect(r.FnKeywordToken),this.nextToken();const _=this.expect(r.IdentifierToken).value;this.nextToken(),this.expect(r.ParensOpenSymbolToken),this.nextToken();const v=new Set,y=[];let M,E=!1;for(;!E;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:j=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),E=!0,M=j},IdentifierToken:()=>{const j=this.parseField();if(v.has(j.name))throw new f(`Cannot redeclare argument '${j.name}'`);v.add(j.name),y.push(j),this.multiExpect({ParensCloseSymbolToken:Y=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),E=!0,M=Y},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const j=this.expect(r.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(j.value[0]))throw new f(`Expected a type but found ${JSON.stringify(j.value)} at ${j.location}`);y.push(new n.Spread(new n.TypeReference(j.value).at(j)).at(j)),this.multiExpect({ParensCloseSymbolToken:Y=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),E=!0,M=Y},CommaSymbolToken:()=>this.nextToken()})}});for(const j of d)if(j instanceof n.ArgDescriptionAnnotation){const Y=y.find(U=>U instanceof n.Field&&U.name===j.argName);if(!Y)throw new f(`Argument '${j.argName}' not found, at ${j.location}`);Y.annotations.push(new n.DescriptionAnnotation(j.text).atLocation(j.location))}d=d.filter(j=>!(j instanceof n.ArgDescriptionAnnotation));let A=(new n.VoidPrimitiveType).at(M);this.token instanceof r.ColonSymbolToken&&(this.nextToken(),A=this.parseType());const k=new n.FunctionOperation(_,y,A);return k.annotations=d,k}parseEnum(){this.checkCannotHaveAnnotationsHere();const d=this.expect(r.EnumKeywordToken);this.nextToken(),this.expect(r.CurlyOpenSymbolToken),this.nextToken();const _=new n.EnumType([]).at(d);let v=!1;for(;!v;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),v=!0},IdentifierToken:y=>{const E=new n.EnumValue(y.value).at(y);if(E.annotations=this.annotations,this.annotations=[],_.values.push(E),this.nextToken(),!(this.token instanceof r.ParensOpenSymbolToken))return;this.nextToken();const M=new Set,A=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof r.IdentifierToken;){const k=this.parseField();if("tag"===k.name&&(k.name="_tag"),M.has(k.name))throw new f(`Cannot redeclare argument '${k.name}'`);if(M.add(k.name),A.push(k),!(this.token instanceof r.CommaSymbolToken))break;this.nextToken()}E.struct=new n.StructType(A).atLocation(E.location),this.expect(r.ParensCloseSymbolToken),this.nextToken()}});return _}parseField(){const d=this.expect(r.IdentifierToken);this.nextToken(),this.expect(r.ColonSymbolToken),this.nextToken();const{annotations:_}=this;this.annotations=[];const v=this.parseType(),y=new n.Field(d.value,v).at(d);for(y.annotations=_;this.token instanceof r.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(r.IdentifierToken).value))throw new f(`Unknown field mark !${this.token.value} at ${this.token.location}`);y.secret=!0,this.nextToken()}return y}parseStruct(){const d=this.expect(r.CurlyOpenSymbolToken);this.nextToken();const _=[],v=new Set;let y=!1;for(;!y;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),y=!0},IdentifierToken:()=>{const E=this.parseField();if(v.has(E.name))throw new f(`Cannot redeclare field '${E.name}'`);v.add(E.name),_.push(E)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const E=this.expect(r.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(E.value[0]))throw new f(`Expected a type but found ${JSON.stringify(E.value)} at ${E.location}`);_.push(new n.Spread(new n.TypeReference(E.value).at(E)).at(E))}});return new n.StructType(_).at(d)}parseType(){this.checkCannotHaveAnnotationsHere();let d=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:_=>{if(this.nextToken(),!/[A-Z]/u.test(_.value[0]))throw new f(`Expected a type but found ${JSON.stringify(_.value)} at ${_.location}`);return new n.TypeReference(_.value).at(_)},PrimitiveTypeToken:_=>{this.nextToken();const v=c.primitiveToAstClass.get(_.value);if(v)return(new v).at(_);throw new f(`BUG! Should handle primitive ${_.value}`)}});for(;this.token instanceof r.ArraySymbolToken||this.token instanceof r.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:_=>d=new n.ArrayType(d).at(_),OptionalSymbolToken:_=>d=new n.OptionalType(d).at(_)}),this.nextToken();return d}}},7145:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.parseRestAnnotation=void 0;const n=a(1942);function u(c){var f;const h=new RegExp("\\{(?<name>\\w+)\\}","gu"),m=[];let d;for(;null!==(d=h.exec(c));)null!==(f=d.groups)&&void 0!==f&&f.name&&m.push(d.groups.name);return m}o.parseRestAnnotation=function r(c){const f=c.split(" "),h=f[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(h))throw new Error(`Unsupported method '${h}'`);let m=f[1];if(!m.startsWith("/"))throw new Error("Invalid path");let d=[];if(m.includes("?")){const[M,...A]=m.split("?");m=M;const k=A.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(k))throw new Error("Invalid querystring on path");d=u(k)}const _=u(m),v=f.slice(2).join(" "),y=function p(c){var f;const h=new RegExp('\\[header (?<header>[^()<>@,;:\\\\"/[\\]?={}\\s\\t]+): \\{(?<name>\\w+)\\}\\]',"gu"),m=new Map;let d;for(;null!==(d=h.exec(c));)(null===(f=d.groups)||void 0===f?void 0:f.header)&&d.groups.name&&m.set(d.groups.header.toLowerCase(),d.groups.name);return m}(v),E=function b(c){var f;const h=new RegExp("\\[body \\{(?<name>\\w+)\\}\\]","u").exec(c);return null!==(f=null==h?void 0:h.groups)&&void 0!==f&&f.name?h.groups.name:null}(v);return new n.RestAnnotation(h,m,_,d,y,E)}},7629:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CheckMultipleDeclarationVisitor=void 0;const n=a(1942),p=a(3154);o.CheckMultipleDeclarationVisitor=class b extends p.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(r){if(r instanceof n.TypeDefinition){const c=this.nameToType.get(r.name);if(c&&JSON.stringify(c)!==JSON.stringify(r.type))throw new p.SemanticError(`Type '${r.name}' at ${r.location} is defined multiple times (also at ${c.location})`);this.nameToType.set(r.name,r.type)}super.visit(r)}}},6153:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.GiveStructAndEnumNamesTransformer=void 0;const n=a(1942),p=a(9989),b=a(3154);o.GiveStructAndEnumNamesTransformer=class u extends p.Transformer{constructor(){super(...arguments),this.path=[],this.names=new Map}transform(c){if(c instanceof n.TypeDefinition)return this.path=[c.name],super.transform(c);if(c instanceof n.ErrorNode)return this.path=[`${c.name}Data`],super.transform(c);if(c instanceof n.FunctionOperation)return this.path=[c.name],super.transform(c);if(c instanceof n.Field)try{return this.path.push(c.name),super.transform(c)}finally{this.path.pop()}else{if(!(c instanceof n.EnumValue)){if(c instanceof n.StructType||c instanceof n.EnumType){c.name=this.path.map(h=>h[0].toUpperCase()+h.slice(1)).join("");const f=this.names.get(c.name);if(f){if(f.type.constructor!==c.constructor||JSON.stringify(f.type)!==JSON.stringify(c))throw new b.SemanticError(`The name of the type '${this.path.join(".")}' at ${c.location} will conflict with '${f.path.join(".")}' at ${f.type.location}`);return f.type}return this.names.set(c.name,{path:[...this.path],type:c}),super.transform(c)}return super.transform(c)}try{return this.path.push(c.value),super.transform(c)}finally{this.path.pop()}}}}},9471:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.MatchTypeDefinitionsVisitor=void 0;const n=a(1942),p=a(3154);o.MatchTypeDefinitionsVisitor=class b extends p.Visitor{visit(r){if(r instanceof n.TypeReference){const c=this.root.typeDefinitions.find(f=>f.name===r.name);if(void 0===c)throw new p.SemanticError(`Could not find type '${r.name}' at ${r.location}`);r.type=c.type}super.visit(r)}}},4612:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CheckDontReturnSecretVisitor=void 0;const n=a(1942),p=a(3154);o.CheckDontReturnSecretVisitor=class b extends p.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(r){if(!this.visited.has(r))if(this.visited.add(r),r instanceof n.FunctionOperation)this.isInReturn=!0,this.visited.clear(),this.path.push(`${r.name}(...)`),this.visit(r.returnType),this.path.pop(),this.isInReturn=!1;else if(r instanceof n.TypeReference)this.visit(r.type);else if(r instanceof n.Field){if(this.path.push(r.name),this.isInReturn&&r.secret)throw new p.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${r.location}`);super.visit(r),this.path.pop()}else super.visit(r)}}},4978:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ExpandSpreadsVisitor=void 0;const n=a(1942),p=a(3154);o.ExpandSpreadsVisitor=class b extends p.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(r,c){const f=new Map;for(const h of c){let m;if(h instanceof n.Field)m=[h];else{const d=h.typeReference.type;if(!(d instanceof n.StructType))throw new p.SemanticError(`A spread operator can't refer to something that is not a struct, in '${h.typeReference.name}' at ${h.location}.`);this.visit(d),m=d.fields}for(const d of m){const _=f.get(d.name);_?r[_]=d:(f.set(d.name,r.length),r.push(d))}}}visit(r){if(r instanceof n.StructType){if(this.processed.has(r))return;this.processed.add(r)}super.visit(r),r instanceof n.StructType?(this.expandSpread(r.fields,r.fieldsAndSpreads),r.fieldsAndSpreads=[]):r instanceof n.FunctionOperation&&(this.expandSpread(r.args,r.fieldsAndSpreads),r.fieldsAndSpreads=[])}}},9866:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CheckEmptyStructOrEnumVisitor=void 0;const n=a(1942),p=a(3154);o.CheckEmptyStructOrEnumVisitor=class b extends p.Visitor{visit(r){if(super.visit(r),r instanceof n.EnumType&&0===r.values.length)throw new p.SemanticError(`Enum '${r.name}' at ${r.location} is empty`);if(r instanceof n.StructType&&0===r.fields.length)throw new p.SemanticError(`Struct '${r.name}' at ${r.location} is empty`)}}},4647:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ValidateRecursiveTypes=void 0;const n=a(1942),p=a(3154);o.ValidateRecursiveTypes=class b extends p.Visitor{visit(r){if(super.visit(r),r instanceof n.TypeDefinition&&this.isRecursiveType(r,r.type)){if(!(r.type instanceof n.StructType||r.type instanceof n.EnumType))throw new p.SemanticError(`Type '${r.name}' at ${r.location} is recursive but is not an struct`);if(this.isInfinitelyRecursiveType(r,r.type))throw new p.SemanticError(`Type '${r.name}' at ${r.location} is infinitely recursive`)}}isRecursiveType(r,c){return c instanceof n.TypeReference?r.name===c.name:c instanceof n.ArrayType||c instanceof n.OptionalType?this.isRecursiveType(r,c.base):c instanceof n.StructType?c.fields.some(f=>this.isRecursiveType(r,f.type)):c instanceof n.EnumType&&c.values.some(f=>f.struct&&this.isRecursiveType(r,f.struct))}isInfinitelyRecursiveType(r,c){return c instanceof n.TypeReference?c.name===r.name:c instanceof n.StructType?c.fields.some(f=>this.isInfinitelyRecursiveType(r,f.type)):c instanceof n.EnumType&&c.values.every(f=>f.struct&&this.isInfinitelyRecursiveType(r,f.struct))}}},2060:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.CollectStructAndEnumTypesVisitor=void 0;const n=a(1942),p=a(3154);o.CollectStructAndEnumTypesVisitor=class b extends p.Visitor{constructor(){super(...arguments),this.visited=new Set}visit(r){super.visit(r),!this.visited.has(r)&&(this.visited.add(r),r instanceof n.StructType?this.root.structTypes.push(r):r instanceof n.EnumType&&this.root.enumTypes.push(r))}}},4212:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ValidateAnnotationsVisitor=void 0;const n=a(1942),p=a(3154);function u(c){return c instanceof n.TypeReference?u(c.type):c}o.ValidateAnnotationsVisitor=class r extends p.Visitor{visit(f){if(f instanceof n.EnumValue){for(const h of f.annotations)if(!(h instanceof n.DescriptionAnnotation))throw new p.SemanticError(`Cannot have @${h.constructor.name.replace("Annotation","").toLowerCase()} at ${h.location}`)}else if(f instanceof n.TypeDefinition){for(const h of f.annotations)if(!(h instanceof n.DescriptionAnnotation))throw new p.SemanticError(`Cannot have @${h.constructor.name.replace("Annotation","").toLowerCase()} at ${h.location}`)}else if(f instanceof n.Field){for(const h of f.annotations)if(!(h instanceof n.DescriptionAnnotation))throw new p.SemanticError(`Cannot have @${h.constructor.name.replace("Annotation","").toLowerCase()} at ${h.location}`)}else if(f instanceof n.FunctionOperation)for(const h of f.annotations)if(!(h instanceof n.DescriptionAnnotation))if(h instanceof n.ThrowsAnnotation){if(!this.root.errors.some(m=>m.name===h.error))throw new p.SemanticError(`Unknown error type '${h.error}' at ${h.location}`)}else if(h instanceof n.RestAnnotation){const m=[...h.pathVariables,...h.queryVariables,...h.headers.values()];if(m.length!==new Set(m).size)throw new p.SemanticError(`Arguments must appear only once for rest annotation at ${h.location}`);for(const d of m){const _=f.args.find(y=>y.name===d);if(!_)throw new p.SemanticError(`Argument '${d}' not found at ${h.location}`);if(h.pathVariables.includes(d)&&_.type instanceof n.OptionalType)throw new p.SemanticError(`The path argument '${d}' can't be nullable at ${h.location}`);if(!((c=u(_.type instanceof n.OptionalType?_.type.base:_.type))instanceof n.BoolPrimitiveType||c instanceof n.IntPrimitiveType||c instanceof n.UIntPrimitiveType||c instanceof n.BigIntPrimitiveType||c instanceof n.FloatPrimitiveType||c instanceof n.StringPrimitiveType||c instanceof n.DatePrimitiveType||c instanceof n.DateTimePrimitiveType||c instanceof n.MoneyPrimitiveType||c instanceof n.CpfPrimitiveType||c instanceof n.CnpjPrimitiveType||c instanceof n.UuidPrimitiveType||c instanceof n.HexPrimitiveType||c instanceof n.Base64PrimitiveType||c instanceof n.EnumType))throw new p.SemanticError(`Argument '${d}' can't have type '${_.type.name}' for rest annotation at ${h.location}`)}for(const d of f.args){if(!m.includes(d.name)&&h.bodyVariable!==d.name)throw new p.SemanticError(`Argument '${d.name}' is missing from the rest annotation at ${h.location}`);const _=[...h.pathVariables,...h.queryVariables];if("GET"===h.method&&_.includes(d.name)&&d.secret)throw new p.SemanticError(`Argument marked as secret cannot be used in the path or query parts of a GET endpoint at ${h.location}`)}if("GET"===h.method&&f.returnType instanceof n.VoidPrimitiveType)throw new p.SemanticError(`A GET rest endpoint must return something at ${h.location}`)}else if(!(h instanceof n.HiddenAnnotation))throw new p.SemanticError(`Cannot have @${h.constructor.name.replace("Annotation","").toLowerCase()} at ${h.location}`);var c}}},6758:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.analyse=void 0;const n=a(1942),p=a(7629),b=a(6153),u=a(9471),r=a(4612),c=a(4978),f=a(9866),h=a(4647),m=a(2060),d=a(4212);o.analyse=function _(v){v.errors.some(y=>"Fatal"===y.name)||v.errors.push(new n.ErrorNode("Fatal",new n.VoidPrimitiveType)),new p.CheckMultipleDeclarationVisitor(v).process(),new b.GiveStructAndEnumNamesTransformer(v).process(),new u.MatchTypeDefinitionsVisitor(v).process(),new r.CheckDontReturnSecretVisitor(v).process(),new c.ExpandSpreadsVisitor(v).process(),new f.CheckEmptyStructOrEnumVisitor(v).process(),new h.ValidateRecursiveTypes(v).process(),new m.CollectStructAndEnumTypesVisitor(v).process(),new d.ValidateAnnotationsVisitor(v).process()}},9989:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Transformer=o.SemanticError=void 0;const n=a(1942);class p extends Error{}o.SemanticError=p,o.Transformer=class b{constructor(r){this.root=r}process(){this.root.errors=this.root.errors.map(r=>this.transform(r)),this.root.typeDefinitions=this.root.typeDefinitions.map(r=>this.transform(r)),this.root.operations=this.root.operations.map(r=>this.transform(r))}transform(r){return r instanceof n.FunctionOperation?(r.args=r.args.map(c=>this.transform(c)),r.fieldsAndSpreads=r.fieldsAndSpreads.map(c=>this.transform(c)),r.returnType=this.transform(r.returnType)):r instanceof n.Field||r instanceof n.TypeDefinition?r.type=this.transform(r.type):r instanceof n.StructType?(r.fields=r.fields.map(c=>this.transform(c)),r.fieldsAndSpreads=r.fieldsAndSpreads.map(c=>this.transform(c))):r instanceof n.EnumType?r.values=r.values.map(c=>this.transform(c)):r instanceof n.EnumValue?r.struct&&(r.struct=this.transform(r.struct)):r instanceof n.ArrayType||r instanceof n.OptionalType?r.base=this.transform(r.base):r instanceof n.ErrorNode?r.dataType=this.transform(r.dataType):r instanceof n.Spread&&(r.typeReference=this.transform(r.typeReference)),r}}},3154:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Visitor=o.SemanticError=void 0;const n=a(1942);class p extends Error{}o.SemanticError=p,o.Visitor=class b{constructor(r){this.root=r}process(){for(const r of this.root.errors)this.visit(r);for(const r of this.root.typeDefinitions)this.visit(r);for(const r of this.root.operations)this.visit(r)}visit(r){if(r instanceof n.FunctionOperation){for(const c of r.args)this.visit(c);for(const c of r.fieldsAndSpreads)this.visit(c);this.visit(r.returnType)}else if(r instanceof n.Field||r instanceof n.TypeDefinition)this.visit(r.type);else if(r instanceof n.StructType){for(const c of r.fields)this.visit(c);for(const c of r.fieldsAndSpreads)this.visit(c)}else if(r instanceof n.EnumType)for(const c of r.values)this.visit(c);else r instanceof n.EnumValue?r.struct&&this.visit(r.struct):r instanceof n.ArrayType||r instanceof n.OptionalType?this.visit(r.base):r instanceof n.ErrorNode?this.visit(r.dataType):r instanceof n.Spread&&this.visit(r.typeReference)}}},9037:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.PrimitiveTypeToken=o.FalseKeywordToken=o.TrueKeywordToken=o.ErrorKeywordToken=o.FnKeywordToken=o.EnumKeywordToken=o.TypeKeywordToken=o.ImportKeywordToken=o.AnnotationToken=o.SpreadSymbolToken=o.CommaSymbolToken=o.ArraySymbolToken=o.OptionalSymbolToken=o.ColonSymbolToken=o.ParensCloseSymbolToken=o.ParensOpenSymbolToken=o.CurlyCloseSymbolToken=o.CurlyOpenSymbolToken=o.ExclamationMarkSymbolToken=o.EqualSymbolToken=o.StringLiteralToken=o.IdentifierToken=o.Token=o.TokenLocation=void 0;class a{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}o.TokenLocation=a;class n{constructor(me=""){this.value=me,this.location=new a,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const me=this.constructor.name.replace("Token","");return""===this.value?me:`${me}(${JSON.stringify(this.value)})`}}o.Token=n;class p extends n{}o.IdentifierToken=p,o.StringLiteralToken=class b extends n{},o.EqualSymbolToken=class u extends n{},o.ExclamationMarkSymbolToken=class r extends n{},o.CurlyOpenSymbolToken=class c extends n{},o.CurlyCloseSymbolToken=class f extends n{},o.ParensOpenSymbolToken=class h extends n{},o.ParensCloseSymbolToken=class m extends n{},o.ColonSymbolToken=class d extends n{},o.OptionalSymbolToken=class _ extends n{},o.ArraySymbolToken=class v extends n{},o.CommaSymbolToken=class y extends n{},o.SpreadSymbolToken=class E extends n{},o.AnnotationToken=class M extends n{},o.ImportKeywordToken=class A extends n{maybeAsIdentifier(){return new p("import")}},o.TypeKeywordToken=class k extends n{maybeAsIdentifier(){return new p("type")}},o.EnumKeywordToken=class j extends n{maybeAsIdentifier(){return new p("enum")}},o.FnKeywordToken=class Y extends n{maybeAsIdentifier(){return new p("fn")}},o.ErrorKeywordToken=class U extends n{maybeAsIdentifier(){return new p("error")}},o.TrueKeywordToken=class Q extends n{maybeAsIdentifier(){return new p("true")}},o.FalseKeywordToken=class V extends n{maybeAsIdentifier(){return new p("false")}},o.PrimitiveTypeToken=class X extends n{maybeAsIdentifier(){return new p(this.value)}}},6569:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.primitiveToAstClass=void 0;const n=a(1942);o.primitiveToAstClass=new Map,o.primitiveToAstClass.set("string",n.StringPrimitiveType),o.primitiveToAstClass.set("int",n.IntPrimitiveType),o.primitiveToAstClass.set("uint",n.UIntPrimitiveType),o.primitiveToAstClass.set("date",n.DatePrimitiveType),o.primitiveToAstClass.set("datetime",n.DateTimePrimitiveType),o.primitiveToAstClass.set("float",n.FloatPrimitiveType),o.primitiveToAstClass.set("bigint",n.BigIntPrimitiveType),o.primitiveToAstClass.set("bool",n.BoolPrimitiveType),o.primitiveToAstClass.set("bytes",n.BytesPrimitiveType),o.primitiveToAstClass.set("money",n.MoneyPrimitiveType),o.primitiveToAstClass.set("cpf",n.CpfPrimitiveType),o.primitiveToAstClass.set("cnpj",n.CnpjPrimitiveType),o.primitiveToAstClass.set("email",n.EmailPrimitiveType),o.primitiveToAstClass.set("html",n.HtmlPrimitiveType),o.primitiveToAstClass.set("url",n.UrlPrimitiveType),o.primitiveToAstClass.set("uuid",n.UuidPrimitiveType),o.primitiveToAstClass.set("hex",n.HexPrimitiveType),o.primitiveToAstClass.set("base64",n.Base64PrimitiveType),o.primitiveToAstClass.set("xml",n.XmlPrimitiveType),o.primitiveToAstClass.set("json",n.JsonPrimitiveType),o.primitiveToAstClass.set("void",n.VoidPrimitiveType)},5041:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.AppComponent=void 0;const n=a(655),p=a(3075),b=a(7179),u=a(1823),r=a(2863),c=a(7402),f=a(7295),h=a(2911),m=a(4327),d=n.__importStar(a(5e3)),_=n.__importStar(a(6395)),v=n.__importStar(a(2313)),y=n.__importStar(a(3293)),E=n.__importStar(a(9808)),M=n.__importStar(a(107)),A=n.__importStar(a(7423)),k=n.__importStar(a(1451)),j=n.__importStar(a(3251)),Y=n.__importStar(a(7238)),U=n.__importStar(a(7822)),Q=n.__importStar(a(2253)),V=n.__importStar(a(4264)),X=n.__importStar(a(5585));function re(it,rt){1&it&&(d.\u0275\u0275elementContainerStart(0),d.\u0275\u0275text(1,"Editor Avan\xe7ado"),d.\u0275\u0275elementContainerEnd())}function me(it,rt){if(1&it&&(d.\u0275\u0275elementContainerStart(0),d.\u0275\u0275elementStart(1,"span",20),d.\u0275\u0275text(2),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementContainerEnd()),2&it){const yt=d.\u0275\u0275nextContext(2).$implicit;d.\u0275\u0275advance(2),d.\u0275\u0275textInterpolate1("\u25b6\xa0",yt.function,"")}}function we(it,rt){if(1&it){const yt=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"span",17),d.\u0275\u0275template(1,re,2,0,"ng-container",18),d.\u0275\u0275template(2,me,3,1,"ng-container",18),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(3,"button",19),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(yt);const ft=d.\u0275\u0275nextContext().$implicit,wt=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(wt.closeTab(ft))}),d.\u0275\u0275elementStart(4,"mat-icon"),d.\u0275\u0275text(5,"close"),d.\u0275\u0275elementEnd()()}if(2&it){const yt=d.\u0275\u0275nextContext().$implicit;d.\u0275\u0275property("ngSwitch",yt.type),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngSwitchCase","advanced"),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngSwitchCase","simple")}}function tt(it,rt){1&it&&(d.\u0275\u0275elementContainerStart(0),d.\u0275\u0275element(1,"app-tab-editor"),d.\u0275\u0275elementContainerEnd())}function G(it,rt){if(1&it&&(d.\u0275\u0275elementContainerStart(0),d.\u0275\u0275element(1,"app-simple-call",21),d.\u0275\u0275elementContainerEnd()),2&it){const yt=d.\u0275\u0275nextContext().$implicit;d.\u0275\u0275advance(1),d.\u0275\u0275property("fn",yt.function)}}function q(it,rt){if(1&it&&(d.\u0275\u0275elementStart(0,"mat-tab"),d.\u0275\u0275template(1,we,6,3,"ng-template",16),d.\u0275\u0275elementContainerStart(2,17),d.\u0275\u0275template(3,tt,2,0,"ng-container",18),d.\u0275\u0275template(4,G,2,1,"ng-container",18),d.\u0275\u0275elementContainerEnd(),d.\u0275\u0275elementEnd()),2&it){const yt=rt.$implicit;d.\u0275\u0275advance(2),d.\u0275\u0275property("ngSwitch",yt.type),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngSwitchCase","advanced"),d.\u0275\u0275advance(1),d.\u0275\u0275property("ngSwitchCase","simple")}}function B(it,rt){if(1&it){const yt=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"button",22),d.\u0275\u0275listener("click",function(){d.\u0275\u0275restoreView(yt);const ft=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(ft.addAdvancedTab())}),d.\u0275\u0275elementStart(1,"mat-icon"),d.\u0275\u0275text(2,"add_circle"),d.\u0275\u0275elementEnd()()}}function ae(it,rt){if(1&it&&(d.\u0275\u0275elementStart(0,"button",23)(1,"mat-icon"),d.\u0275\u0275text(2,"download"),d.\u0275\u0275elementEnd()()),2&it){d.\u0275\u0275nextContext(2);const yt=d.\u0275\u0275reference(5);d.\u0275\u0275property("matMenuTriggerFor",yt)}}function de(it,rt){if(1&it){const yt=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"mat-tab-group",11),d.\u0275\u0275listener("selectedIndexChange",function(ft){d.\u0275\u0275restoreView(yt);const wt=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(wt.selected.setValue(ft))}),d.\u0275\u0275elementStart(1,"mat-tab",12)(2,"app-tab-home",13),d.\u0275\u0275listener("runFunction",function(ft){d.\u0275\u0275restoreView(yt);const wt=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(wt.addSimpleTab(ft))}),d.\u0275\u0275elementEnd()(),d.\u0275\u0275template(3,q,5,3,"mat-tab",14),d.\u0275\u0275elementStart(4,"mat-tab",15),d.\u0275\u0275template(5,B,3,0,"ng-template",16),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(6,"mat-tab",15),d.\u0275\u0275template(7,ae,3,1,"ng-template",16),d.\u0275\u0275elementEnd()()}if(2&it){const yt=d.\u0275\u0275nextContext();d.\u0275\u0275property("selectedIndex",yt.selected.value),d.\u0275\u0275advance(3),d.\u0275\u0275property("ngForOf",yt.tabs)}}class _e{constructor(rt,yt,Oe){this.sdkgen=rt,this.domSanitizer=yt,this.matIconRegistry=Oe,this.selected=new p.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const ft of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(ft,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${ft}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(rt=>{this.state=null!=rt?rt:void 0})}ngOnDestroy(){var rt;null===(rt=this.state$)||void 0===rt||rt.unsubscribe()}addSimpleTab(rt){this.tabs.push({id:this.tabIndex++,function:rt,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(rt){this.tabs.splice(this.tabs.indexOf(rt),1),this.selected.setValue(0)}downloadTarget(rt){if(!this.state)return;let yt,Oe;switch(rt){case"typescript_nodeserver":yt=(0,h.generateNodeServerSource)(this.state.astRoot),Oe="node-server.ts";break;case"typescript_nodeclient":yt=(0,h.generateNodeClientSource)(this.state.astRoot),Oe="node-client.ts";break;case"typescript_web":yt=(0,h.generateBrowserClientSource)(this.state.astRoot),Oe="web-client.ts";break;case"typescript_interfaces":yt=(0,h.generateTypescriptInterfaces)(this.state.astRoot),Oe="interfaces.ts";break;case"flutter":yt=(0,u.generateDartClientSource)(this.state.astRoot),Oe="flutter-client.dart";break;case"csharp_server":yt=(0,b.generateCSharpServerSource)(this.state.astRoot),Oe="csharp-server.cs";break;case"fsharp_server":yt=(0,r.generateFSharpServerSource)(this.state.astRoot),Oe="fsharp-server.fs";break;case"kotlin_android":yt=(0,c.generateAndroidClientSource)(this.state.astRoot,!0),Oe="android-client.kt";break;case"kotlin_android_without_callbacks":yt=(0,c.generateAndroidClientSource)(this.state.astRoot,!1),Oe="android-client-no-callbacks.kt";break;case"swift_ios":yt=(0,f.generateSwiftClientSource)(this.state.astRoot,!1),Oe="ios-client.swift";break;case"rxswift_ios":yt=(0,f.generateSwiftClientSource)(this.state.astRoot,!0),Oe="ios-client-rx.swift"}(0,m.saveAs)(new Blob([yt],{type:"application/octet-stream"}),Oe)}}o.AppComponent=_e,_e.\u0275fac=function(rt){return new(rt||_e)(d.\u0275\u0275directiveInject(_.SdkgenService),d.\u0275\u0275directiveInject(v.DomSanitizer),d.\u0275\u0275directiveInject(y.MatIconRegistry))},_e.\u0275cmp=d.\u0275\u0275defineComponent({type:_e,selectors:[["app-root"]],decls:46,vars:3,consts:[[2,"width","0","height","0","opacity","0","display","block"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange",4,"ngIf"],["downloadMenu","matMenu"],["id","download-menu-size-flow"],["mat-menu-item","","disabled",""],["mat-menu-item","",3,"click"],["svgIcon","typescript"],["svgIcon","dart"],["svgIcon","kotlin"],["svgIcon","swift"],["svgIcon","dot-net"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange"],["label","Documenta\xe7\xe3o"],[3,"runFunction"],[4,"ngFor","ngForOf"],["disabled",""],["mat-tab-label",""],[3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","matTooltip","Fechar aba",3,"click"],[1,"mono","tt-none"],[3,"fn"],["mat-icon-button","","matTooltip","Nova aba de editor avan\xe7ado",3,"click"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(rt,yt){1&rt&&(d.\u0275\u0275element(0,"ngx-monaco-editor",0)(1,"app-tab-nav"),d.\u0275\u0275template(2,de,8,2,"mat-tab-group",1),d.\u0275\u0275pipe(3,"async"),d.\u0275\u0275elementStart(4,"mat-menu",null,2),d.\u0275\u0275element(6,"div",3),d.\u0275\u0275elementStart(7,"button",4),d.\u0275\u0275text(8,"Cliente"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(9,"button",5),d.\u0275\u0275listener("click",function(){return yt.downloadTarget("typescript_nodeclient")}),d.\u0275\u0275element(10,"mat-icon",6),d.\u0275\u0275text(11,"Node.js"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(12,"button",5),d.\u0275\u0275listener("click",function(){return yt.downloadTarget("typescript_web")}),d.\u0275\u0275element(13,"mat-icon",6),d.\u0275\u0275text(14,"Web"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(15,"button",5),d.\u0275\u0275listener("click",function(){return yt.downloadTarget("flutter")}),d.\u0275\u0275element(16,"mat-icon",7),d.\u0275\u0275text(17,"Flutter"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(18,"button",5),d.\u0275\u0275listener("click",function(){return yt.downloadTarget("kotlin_android")}),d.\u0275\u0275element(19,"mat-icon",8),d.\u0275\u0275text(20,"Android"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(21,"button",5),d.\u0275\u0275listener("click",function(){return yt.downloadTarget("kotlin_android_without_callbacks")}),d.\u0275\u0275element(22,"mat-icon",8),d.\u0275\u0275text(23,"Android (sem callbacks)"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(24,"button",5),d.\u0275\u0275listener("click",function(){return yt.downloadTarget("swift_ios")}),d.\u0275\u0275element(25,"mat-icon",9),d.\u0275\u0275text(26,"iOS"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(27,"button",5),d.\u0275\u0275listener("click",function(){return yt.downloadTarget("rxswift_ios")}),d.\u0275\u0275element(28,"mat-icon",9),d.\u0275\u0275text(29,"iOS (Rx)"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(30,"button",4),d.\u0275\u0275text(31,"Servidor"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(32,"button",5),d.\u0275\u0275listener("click",function(){return yt.downloadTarget("typescript_nodeserver")}),d.\u0275\u0275element(33,"mat-icon",6),d.\u0275\u0275text(34,"Node.js"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(35,"button",5),d.\u0275\u0275listener("click",function(){return yt.downloadTarget("csharp_server")}),d.\u0275\u0275element(36,"mat-icon",10),d.\u0275\u0275text(37,"C#"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(38,"button",5),d.\u0275\u0275listener("click",function(){return yt.downloadTarget("fsharp_server")}),d.\u0275\u0275element(39,"mat-icon",10),d.\u0275\u0275text(40,"F#"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(41,"button",4),d.\u0275\u0275text(42,"Outros"),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(43,"button",5),d.\u0275\u0275listener("click",function(){return yt.downloadTarget("typescript_interfaces")}),d.\u0275\u0275element(44,"mat-icon",6),d.\u0275\u0275text(45,"Interfaces"),d.\u0275\u0275elementEnd()()),2&rt&&(d.\u0275\u0275advance(2),d.\u0275\u0275property("ngIf",d.\u0275\u0275pipeBind1(3,1,yt.sdkgen.state$)))},dependencies:[E.NgForOf,E.NgIf,E.NgSwitch,E.NgSwitchCase,M.MonacoEditorComponent,A.MatButton,y.MatIcon,k.MatMenu,k.MatMenuItem,k.MatMenuTrigger,j.MatTabGroup,j.MatTabLabel,j.MatTab,Y.MatTooltip,U.SimpleCallComponent,Q.TabNavComponent,V.TabEditorComponent,X.TabHomeComponent,E.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:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.AppModule=void 0;const n=a(655),p=a(6529),b=a(3075),u=a(7423),r=a(9417),c=a(508),f=a(9694),h=a(3293),m=a(1451),d=a(4999),_=a(3251),v=a(7238),y=a(2313),E=a(6360),M=a(107),A=a(1430),k=a(1017),j=a(2290),Y=a(5041),U=n.__importStar(a(5e3));n.__importStar(a(2290));class V{}o.AppModule=V,V.\u0275fac=function(re){return new(re||V)},V.\u0275mod=U.\u0275\u0275defineNgModule({type:V,bootstrap:[Y.AppComponent]}),V.\u0275inj=U.\u0275\u0275defineInjector({providers:[{provide:M.MONACO_PATH,useValue:"assets/vs"}],imports:[y.BrowserModule,b.FormsModule,b.ReactiveFormsModule,M.MonacoEditorModule,E.BrowserAnimationsModule,k.NgxJsonViewerModule,j.ToastrModule.forRoot(),A.AngularSplitModule,p.HttpClientModule,u.MatButtonModule,r.MatChipsModule,f.MatDialogModule,h.MatIconModule,m.MatMenuModule,c.MatRippleModule,d.MatTableModule,_.MatTabsModule,v.MatTooltipModule]})},8495:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ConsoleComponent=void 0;const n=a(655),p=a(9972),b=n.__importStar(a(5e3)),u=n.__importStar(a(9808)),r=n.__importStar(a(1017)),c=n.__importStar(a(7423)),f=n.__importStar(a(3293));function h(E,M){1&E&&(b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275text(1,"info_outline"),b.\u0275\u0275elementContainerEnd())}function m(E,M){1&E&&(b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275text(1,"error"),b.\u0275\u0275elementContainerEnd())}function d(E,M){1&E&&(b.\u0275\u0275elementContainerStart(0),b.\u0275\u0275text(1,"public"),b.\u0275\u0275elementContainerEnd())}function _(E,M){if(1&E&&b.\u0275\u0275element(0,"ngx-json-viewer",6),2&E){const A=b.\u0275\u0275nextContext().$implicit;b.\u0275\u0275property("json",A.details)("expanded",!1)}}function v(E,M){if(1&E&&(b.\u0275\u0275elementStart(0,"li",2)(1,"mat-icon",3),b.\u0275\u0275template(2,h,2,0,"ng-container",4),b.\u0275\u0275template(3,m,2,0,"ng-container",4),b.\u0275\u0275template(4,d,2,0,"ng-container",4),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(5,"span"),b.\u0275\u0275text(6),b.\u0275\u0275elementEnd(),b.\u0275\u0275template(7,_,1,2,"ngx-json-viewer",5),b.\u0275\u0275elementEnd()),2&E){const A=M.$implicit,k=b.\u0275\u0275nextContext();b.\u0275\u0275property("ngClass",A.type),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngSwitch",A.type)("ngClass",A.type),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngSwitchCase",k.itemTypes.INFO),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngSwitchCase",k.itemTypes.ERROR),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngSwitchCase",k.itemTypes.NETWORK),b.\u0275\u0275advance(2),b.\u0275\u0275textInterpolate(A.message),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngIf",A.details)}}class y{constructor(){this.itemTypes=p.ConsoleItemType,this.items=[]}}o.ConsoleComponent=y,y.\u0275fac=function(M){return new(M||y)},y.\u0275cmp=b.\u0275\u0275defineComponent({type:y,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(M,A){1&M&&(b.\u0275\u0275elementStart(0,"header")(1,"strong"),b.\u0275\u0275text(2,"CONSOLE"),b.\u0275\u0275elementEnd(),b.\u0275\u0275element(3,"s"),b.\u0275\u0275elementStart(4,"button",0),b.\u0275\u0275listener("click",function(){return A.items.splice(0,A.items.length)}),b.\u0275\u0275elementStart(5,"mat-icon"),b.\u0275\u0275text(6,"delete"),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(7,"ul"),b.\u0275\u0275template(8,v,8,8,"li",1),b.\u0275\u0275elementEnd()),2&M&&(b.\u0275\u0275advance(8),b.\u0275\u0275property("ngForOf",A.items))},dependencies:[u.NgClass,u.NgForOf,u.NgIf,u.NgSwitch,u.NgSwitchCase,r.NgxJsonViewerComponent,c.MatButton,f.MatIcon],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 rgb(231,231,231);line-height:27px;font-size:11pt;align-self:center}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 10px}ul[_ngcontent-%COMP%]{padding:0;margin:0;box-sizing:border-box}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style:none;display:block;width:100%;height:auto;padding:5px 10px;font-size:1rem;border-bottom:1px solid #444444;background-color:#111;word-break:break-all;box-sizing:border-box;word-wrap:break-word;font-family:monospace}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline;vertical-align:text-bottom}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:1rem;width:1rem;font-size:1rem;vertical-align:sub;margin-right:7.5px;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.info[_ngcontent-%COMP%]{color:#b9b9bb}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.error[_ngcontent-%COMP%]{color:#ff3b6b}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_recv[_ngcontent-%COMP%], ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_send[_ngcontent-%COMP%]{color:#939395}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#0000004d}ul[_ngcontent-%COMP%] > li.error[_ngcontent-%COMP%]{color:#e69fa3;background-color:#4b2f36}"]})},9972:(H,o)=>{"use strict";var n;Object.defineProperty(o,"__esModule",{value:!0}),o.ConsoleItemType=void 0,(n=o.ConsoleItemType||(o.ConsoleItemType={})).INFO="info",n.ERROR="error",n.NETWORK="network"},4814:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.DialogAboutComponent=void 0;const n=a(655),p=a(4147),b=n.__importStar(a(5e3)),u=n.__importStar(a(7423)),r=n.__importStar(a(9417)),c=n.__importStar(a(9694)),f=n.__importStar(a(3293));class h{constructor(){this.version=p.version}}o.DialogAboutComponent=h,h.\u0275fac=function(d){return new(d||h)},h.\u0275cmp=b.\u0275\u0275defineComponent({type:h,selectors:[["app-dialog-about"]],decls:20,vars:3,consts:[["mat-dialog-title",""],[3,"selectable"],[3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1"],["href","https://sdkgen.github.io/","rel","external noreferer","target","_blank","mat-stroked-button",""],["href","https://github.com/sdkgen/sdkgen","rel","external noreferer","target","_blank","mat-stroked-button",""],["href","https://github.com/sdkgen/sdkgen/issues/new","rel","external noreferer","target","_blank","mat-stroked-button",""]],template:function(d,_){1&d&&(b.\u0275\u0275elementStart(0,"header")(1,"h1",0),b.\u0275\u0275text(2,"sdkgen Playground"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(3,"mat-chip-list",1)(4,"mat-chip",2),b.\u0275\u0275text(5),b.\u0275\u0275elementEnd()(),b.\u0275\u0275element(6,"s"),b.\u0275\u0275elementStart(7,"button",3)(8,"mat-icon"),b.\u0275\u0275text(9,"close"),b.\u0275\u0275elementEnd()()(),b.\u0275\u0275elementStart(10,"p"),b.\u0275\u0275text(11,"Ferramenta para explorar e invocar APIs feitas com sdkgen."),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(12,"p"),b.\u0275\u0275text(13,"Feito com \u2764\ufe0f no Brasil \u{1f1e7}\u{1f1f7}"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(14,"a",4),b.\u0275\u0275text(15,"Documenta\xe7\xe3o"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(16,"a",5),b.\u0275\u0275text(17,"C\xf3digo-fonte"),b.\u0275\u0275elementEnd(),b.\u0275\u0275elementStart(18,"a",6),b.\u0275\u0275text(19,"Reportar um problema"),b.\u0275\u0275elementEnd()),2&d&&(b.\u0275\u0275advance(3),b.\u0275\u0275property("selectable",!1),b.\u0275\u0275advance(1),b.\u0275\u0275property("disableRipple",!0),b.\u0275\u0275advance(1),b.\u0275\u0275textInterpolate(_.version))},dependencies:[u.MatButton,u.MatAnchor,r.MatChipList,r.MatChip,c.MatDialogClose,c.MatDialogTitle,f.MatIcon],styles:["header[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid rgba(255,255,255,.2);padding-bottom:5px}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], header[_ngcontent-%COMP%] button[_ngcontent-%COMP%], header[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline;align-self:center}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 10px 0 0}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}a[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}"]})},4211:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.FilterPipe=void 0;const p=a(655).__importStar(a(5e3));class b{transform(r,c){if(!r)return[];if(!c)return r;const f=c.toLocaleLowerCase();return r.filter(h=>JSON.stringify(h).toLocaleLowerCase().includes(f))}}o.FilterPipe=b,b.\u0275fac=function(r){return new(r||b)},b.\u0275pipe=p.\u0275\u0275definePipe({name:"appFilter",type:b,pure:!0})},7120:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ResponsiveService=void 0;const n=a(655),p=n.__importStar(a(5e3)),b=n.__importStar(a(5113));class u{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)"])}}o.ResponsiveService=u,u.\u0275fac=function(c){return new(c||u)(p.\u0275\u0275inject(b.BreakpointObserver))},u.\u0275prov=p.\u0275\u0275defineInjectable({token:u,factory:u.\u0275fac,providedIn:"root"})},9435:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.getTypeDoc=o.getTypeLabels=o.getConstructorName=o.primitiveTypesExamples=o.primitiveTypes=void 0;const n=a(6676),p=a(6395);function b(c){switch(c.constructor){case n.StringPrimitiveType:return"StringPrimitiveType";case n.IntPrimitiveType:return"IntPrimitiveType";case n.UIntPrimitiveType:return"UIntPrimitiveType";case n.FloatPrimitiveType:return"FloatPrimitiveType";case n.BigIntPrimitiveType:return"BigIntPrimitiveType";case n.MoneyPrimitiveType:return"MoneyPrimitiveType";case n.DatePrimitiveType:return"DatePrimitiveType";case n.DateTimePrimitiveType:return"DateTimePrimitiveType";case n.BoolPrimitiveType:return"BoolPrimitiveType";case n.VoidPrimitiveType:return"VoidPrimitiveType";case n.CpfPrimitiveType:return"CpfPrimitiveType";case n.CnpjPrimitiveType:return"CnpjPrimitiveType";case n.EmailPrimitiveType:return"EmailPrimitiveType";case n.UrlPrimitiveType:return"UrlPrimitiveType";case n.UuidPrimitiveType:return"UuidPrimitiveType";case n.HexPrimitiveType:return"HexPrimitiveType";case n.HtmlPrimitiveType:return"HtmlPrimitiveType";case n.BytesPrimitiveType:return"BytesPrimitiveType";case n.Base64PrimitiveType:return"Base64PrimitiveType";case n.XmlPrimitiveType:return"XmlPrimitiveType";case n.JsonPrimitiveType:return"JsonPrimitiveType";case n.OptionalType:return"OptionalType";case n.EnumType:return"EnumType";case n.ArrayType:return"ArrayType";case n.StructType:return"StructType";default:return c.constructor.name}}o.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?."},o.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}']},o.getConstructorName=b,o.getTypeLabels=function u(c){const f=[];switch(c.constructor){case n.StringPrimitiveType:case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.FloatPrimitiveType:case n.BigIntPrimitiveType:case n.MoneyPrimitiveType:case n.DatePrimitiveType:case n.DateTimePrimitiveType:case n.BoolPrimitiveType:case n.VoidPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.HtmlPrimitiveType:case n.BytesPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:case n.JsonPrimitiveType:f.push("Primitivo");break;case n.OptionalType:f.push("Opcional"),f.push(...u(c.base));break;case n.TypeReference:f.push(...u(c.type));break;case n.ArrayType:f.push("Array"),f.push(...u(c.base));break;case n.EnumType:f.push("Enum");break;default:console.error("No labels for",b(c))}return f},o.getTypeDoc=function r(c){var f,h,m;switch(c.constructor){case n.StringPrimitiveType:case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.FloatPrimitiveType:case n.BigIntPrimitiveType:case n.MoneyPrimitiveType:case n.DatePrimitiveType:case n.DateTimePrimitiveType:case n.BoolPrimitiveType:case n.VoidPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.HtmlPrimitiveType:case n.BytesPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:case n.JsonPrimitiveType:return{longDescription:o.primitiveTypes[b(c)],shortDescription:o.primitiveTypes[b(c)],examples:o.primitiveTypesExamples[b(c)]};case n.OptionalType:{const y=r(c.base);return Object.assign(Object.assign({},y),{longDescription:y.longDescription,shortDescription:`(opcional) ${y.shortDescription}`,examples:["null",...null!==(f=y.examples)&&void 0!==f?f:[]]})}case n.TypeReference:return r(c.type);case n.ArrayType:{const y=r(c.base);return Object.assign(Object.assign({},y),{longDescription:y.longDescription,shortDescription:`(array) ${y.shortDescription}`,examples:["[]",...null!==(m=null===(h=y.examples)||void 0===h?void 0:h.map(E=>`[${E}]`))&&void 0!==m?m:[]]})}case n.EnumType:const d=c,_=d.values.slice(0,3),v=_.map(y=>y.struct?`${y.value}: ${JSON.stringify((new p.SdkgenService).buildJsonObject(y.struct.fields),null,2)}`:y.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${_.map(y=>`${y.value}${y.struct?"(\u2026)":""}`).join(", ")}${_.length>3?"\u2026":""}`,examples:v,isEnum:!0,isStruct:!0,structFields:d.values.map(y=>{var E;return{name:y.value,type:y.struct,description:null===(E=y.annotations.find(M=>M instanceof n.DescriptionAnnotation))||void 0===E?void 0:E.text,secret:!1}})};case n.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${c.fields.slice(0,3).map(y=>y.name).join(", ")}\u2026`,isStruct:!0,structFields:c.fields.map(y=>{var E;return{name:y.name,description:null===(E=y.annotations.find(M=>M instanceof n.DescriptionAnnotation))||void 0===E?void 0:E.text,type:y.type,secret:y.secret}}),examples:[JSON.stringify((new p.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__(7156).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SdkgenService=void 0;const tslib_1=__webpack_require__(655),browser_runtime_1=__webpack_require__(4539),parser_1=__webpack_require__(6676),rxjs_1=__webpack_require__(6477),i0=tslib_1.__importStar(__webpack_require__(5e3));class SdkgenService{constructor(){this.state$=new rxjs_1.BehaviorSubject(null)}buildJsonObject(H,o=new Set){const a=n=>{switch(n.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 o.has(n.name)?{}:this.buildJsonObject(n.fields,new Set([...o,n.name]));case parser_1.OptionalType:return null;case parser_1.TypeReference:return a(n.type);case parser_1.ArrayType:return[a(n.base),a(n.base),a(n.base)];case parser_1.EnumType:return n.values[0].value;default:return null}};return H.reduce((n,p)=>(n[p.name]=a(p.type),n),{})}getTypeScriptCode(H,o){return`await client.${H}(${JSON.stringify(o,null,2)});\n`}buildKotlinString(H,o=0){const a=n=>{switch(n.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`${n.name}(\n${this.buildKotlinString(n.fields,o+1)}\n${" ".repeat(o+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return a(n.type);case parser_1.ArrayType:o++;const p=a(n.base);return o--,`arrayOf(\n${" ".repeat(o+2)}${p},\n${" ".repeat(o+2)}${p}\n${" ".repeat(o+1)})`;case parser_1.EnumType:return`"${n.values[0].value}"`;default:return"<>()"}};return H.map(n=>`${" ".repeat(o+1)}${a(n.type)}`).join(",\n")}getKotlinCode(H,o){return 0===o.length?`client.${H}().await();`:`client.${H}(\n${this.buildKotlinString(o)}\n).await();`}getDartCode(H,o){return'print("todo");'}getSwiftCode(H,o){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:(H,o)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(o.toString())?clientInstance[o.toString()]:function(){var a=_asyncToGenerator(function*(n){return clientInstance.makeRequest(o.toString(),n)});return function(n){return a.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function H(o){return new(o||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__(7156).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleCallComponent=void 0;const tslib_1=__webpack_require__(655),forms_1=__webpack_require__(3075),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=tslib_1.__importStar(__webpack_require__(5e3)),i1=tslib_1.__importStar(__webpack_require__(6395)),i2=tslib_1.__importStar(__webpack_require__(3075)),i3=tslib_1.__importStar(__webpack_require__(107)),i4=tslib_1.__importStar(__webpack_require__(1017)),i5=tslib_1.__importStar(__webpack_require__(1430)),i6=tslib_1.__importStar(__webpack_require__(7423)),i7=tslib_1.__importStar(__webpack_require__(3293)),i8=tslib_1.__importStar(__webpack_require__(3251)),i9=tslib_1.__importStar(__webpack_require__(8495));class SimpleCallComponent{constructor(H){this.sdkgen=H,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(H=>{!H||(this.generateFunctionCode(H.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(H.url,H.astJson))})}ngOnDestroy(){var H;null===(H=this.state$)||void 0===H||H.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(H){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:H.toString()}),delete H.toString,_this.response={error:{type:H.type,message:H.message,data:H.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(H,o){var a;const n=null===(a=H.operations.find(p=>p.name===o))||void 0===a?void 0:a.args;n&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(n),null,2))}}exports.SimpleCallComponent=SimpleCallComponent,SimpleCallComponent.\u0275fac=function H(o){return new(o||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 H(o,a){1&o&&(i0.\u0275\u0275elementStart(0,"as-split",0)(1,"as-split-area")(2,"mat-tab-group",1),i0.\u0275\u0275listener("selectedIndexChange",function(p){return a.selected.setValue(p)}),i0.\u0275\u0275elementStart(3,"mat-tab",2)(4,"button",3),i0.\u0275\u0275listener("click",function(){return a.run()}),i0.\u0275\u0275elementStart(5,"mat-icon"),i0.\u0275\u0275text(6,"play_arrow"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(7,"ngx-monaco-editor",4),i0.\u0275\u0275listener("ngModelChange",function(p){return a.code=p}),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(8,"mat-tab",5),i0.\u0275\u0275element(9,"ngx-json-viewer",6),i0.\u0275\u0275elementEnd()()(),i0.\u0275\u0275elementStart(10,"as-split-area",7),i0.\u0275\u0275element(11,"app-console",8),i0.\u0275\u0275elementEnd()()),2&o&&(i0.\u0275\u0275advance(2),i0.\u0275\u0275property("selectedIndex",a.selected.value),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",a.editorOptions)("ngModel",a.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",!a.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("json",a.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",a.consoleItems))},dependencies:[i2.NgControlStatus,i2.NgModel,i3.MonacoEditorComponent,i4.NgxJsonViewerComponent,i5.SplitComponent,i5.SplitAreaDirective,i6.MatButton,i7.MatIcon,i8.MatTabGroup,i8.MatTab,i9.ConsoleComponent],styles:["[_nghost-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%]{height:100%}mat-tab-group[_ngcontent-%COMP%] .ngx-json-viewer{overflow:inherit!important}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%}mat-tab-group[_ngcontent-%COMP%] ngx-json-viewer[_ngcontent-%COMP%]{display:block;height:100%;width:100%;overflow-y:auto;scrollbar-width:thin}"]})},4264:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(7156).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TabEditorComponent=void 0;const tslib_1=__webpack_require__(655),typescript_generator_1=__webpack_require__(2911),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=tslib_1.__importStar(__webpack_require__(5e3)),i1=tslib_1.__importStar(__webpack_require__(6395)),i2=tslib_1.__importStar(__webpack_require__(3075)),i3=tslib_1.__importStar(__webpack_require__(107)),i4=tslib_1.__importStar(__webpack_require__(1430)),i5=tslib_1.__importStar(__webpack_require__(7423)),i6=tslib_1.__importStar(__webpack_require__(3293)),i7=tslib_1.__importStar(__webpack_require__(8495));class TabEditorComponent{constructor(H){this.sdkgen=H,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(H=>{if(!H)return;const o=`${this.patchBrowserClientSource((0,typescript_generator_1.generateBrowserClientSource)(H.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(H.url,H.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 a=monaco.editor.getModels().find(p=>p.uri.toString().endsWith("client.d.ts"));a?a.setValue(o):monaco.editor.createModel(o,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[n]=H.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(n.name,this.sdkgen.buildJsonObject(n.args))})}ngOnDestroy(){var H;null===(H=this.state$)||void 0===H||H.unsubscribe()}patchBrowserClientSource(H){return`declare namespace sdkgen {\n${H.substring(95,H.indexOf("const errClasses")).replace(/ extends SdkgenError/g," extends Error").replace(/ extends SdkgenHttpClient/g,"").replace(/{ return this.makeRequest\(.*$/gm,"").replace(/ {\n {8}super\(baseUrl, astJson, errClasses\);\n {4}}/g,"").replace("constructor(","\n baseUrl: string;\n extra = new Map<string, any>();\n successHook: (result: any, name: string, args: any) => void = () => undefined;\n errorHook: (result: any, name: string, args: any) => void = () => undefined;\n async makeRequest(functionName: string, args: unknown): Promise<any>;\n \nconstructor(")}\n}\n`}run(){var _this=this;return _asyncToGenerator(function*(){try{yield eval(`\n (async (client, events) => {\n ${code_execution_1.wrapper}\n ${_this.code}\n })\n `)(_this.client,_this.consoleItems).finally(()=>eval(code_execution_1.unwrap))}catch(H){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:H.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function H(o){return new(o||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 H(o,a){1&o&&(i0.\u0275\u0275elementStart(0,"button",0),i0.\u0275\u0275listener("click",function(){return a.run()}),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"play_arrow"),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(3,"as-split",1)(4,"as-split-area",2)(5,"ngx-monaco-editor",3),i0.\u0275\u0275listener("ngModelChange",function(p){return a.code=p}),i0.\u0275\u0275elementEnd()(),i0.\u0275\u0275elementStart(6,"as-split-area",4),i0.\u0275\u0275element(7,"app-console",5),i0.\u0275\u0275elementEnd()()),2&o&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",a.editorOptions)("ngModel",a.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",a.consoleItems))},dependencies:[i2.NgControlStatus,i2.NgModel,i3.MonacoEditorComponent,i4.SplitComponent,i4.SplitAreaDirective,i5.MatButton,i6.MatIcon,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:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.TabHomeComponent=void 0;const n=a(655),p=a(5e3),b=a(9435),u=a(5281),r=n.__importStar(a(5e3)),c=n.__importStar(a(6395)),f=n.__importStar(a(9694)),h=n.__importStar(a(7120)),m=n.__importStar(a(9808)),d=n.__importStar(a(3075)),_=n.__importStar(a(107)),v=n.__importStar(a(1430)),y=n.__importStar(a(7423)),E=n.__importStar(a(9417)),M=n.__importStar(a(3293)),A=n.__importStar(a(4999)),k=n.__importStar(a(3251)),j=n.__importStar(a(7238)),Y=n.__importStar(a(4211));function U(pe,We){if(1&pe&&(r.\u0275\u0275elementStart(0,"span",8),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&pe){const Ie=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.description)}}const Q=function(pe){return{active:pe}};function V(pe,We){if(1&pe){const Ie=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"li",5),r.\u0275\u0275listener("click",function(){const De=r.\u0275\u0275restoreView(Ie).$implicit,Le=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Le.selectedFunction=De)}),r.\u0275\u0275elementStart(1,"span",6),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(3,U,2,1,"span",7),r.\u0275\u0275elementEnd()}if(2&pe){const Ie=We.$implicit,Ye=r.\u0275\u0275nextContext();r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(3,Q,(null==Ye.selectedFunction?null:Ye.selectedFunction.name)===Ie.name)),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(Ie.name),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ie.description)}}function X(pe,We){1&pe&&r.\u0275\u0275element(0,"span")}function re(pe,We){if(1&pe){const Ie=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"span"),r.\u0275\u0275element(1,"br"),r.\u0275\u0275text(2,"\xa0\xa0"),r.\u0275\u0275elementStart(3,"span",37),r.\u0275\u0275text(4),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(5,"span",14),r.\u0275\u0275text(6,":"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(7,"\xa0"),r.\u0275\u0275elementStart(8,"u",15),r.\u0275\u0275listener("click",function(){const De=r.\u0275\u0275restoreView(Ie).$implicit,Le=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(Le.showDocumentation(De.rawType))}),r.\u0275\u0275text(9),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(10,X,1,0,"span",38),r.\u0275\u0275elementEnd()}if(2&pe){const Ie=We.$implicit,Ye=We.index;r.\u0275\u0275nextContext();const z=r.\u0275\u0275reference(18),De=r.\u0275\u0275reference(20),Le=r.\u0275\u0275nextContext();r.\u0275\u0275advance(4),r.\u0275\u0275textInterpolate(Ie.name),r.\u0275\u0275advance(4),r.\u0275\u0275property("matTooltip",Le.getTooltip(Ie.rawType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.type),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ye!=Le.selectedFunction.args.length-1)("ngIfThen",z)("ngIfElse",De)}}function me(pe,We){1&pe&&r.\u0275\u0275text(0,",")}function we(pe,We){1&pe&&r.\u0275\u0275element(0,"br")}function tt(pe,We){if(1&pe){const Ie=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"u",29),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(Ie);const z=r.\u0275\u0275nextContext().$implicit,De=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(De.showDocumentation(z.dataType))}),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()}if(2&pe){const Ie=r.\u0275\u0275nextContext().$implicit,Ye=r.\u0275\u0275nextContext(3);r.\u0275\u0275property("matTooltip",Ye.getTooltip(Ie.dataType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("(",Ie.dataType.name,")")}}function G(pe,We){if(1&pe&&(r.\u0275\u0275elementStart(0,"mat-chip",42)(1,"span",28),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(3,"i"),r.\u0275\u0275elementStart(4,"span",28),r.\u0275\u0275text(5),r.\u0275\u0275template(6,tt,2,2,"u",43),r.\u0275\u0275elementEnd()()),2&pe){const Ie=We.$implicit;r.\u0275\u0275property("disableRipple",!0),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(Ie.name),r.\u0275\u0275advance(3),r.\u0275\u0275textInterpolate1("",Ie.type," "),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ie.dataType&&"void"!==Ie.dataType.name)}}function q(pe,We){if(1&pe&&(r.\u0275\u0275elementStart(0,"section",39)(1,"mat-chip-list",40),r.\u0275\u0275template(2,G,7,4,"mat-chip",41),r.\u0275\u0275elementEnd()()),2&pe){const Ie=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275property("selectable",!1),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngForOf",Ie.selectedFunction.labels)}}function B(pe,We){if(1&pe&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&pe){const Ie=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.selectedFunction.description)}}function ae(pe,We){1&pe&&(r.\u0275\u0275elementStart(0,"p",44),r.\u0275\u0275text(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),r.\u0275\u0275elementEnd())}function de(pe,We){1&pe&&(r.\u0275\u0275elementStart(0,"p",44),r.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),r.\u0275\u0275elementEnd())}function _e(pe,We){1&pe&&(r.\u0275\u0275elementStart(0,"th",54),r.\u0275\u0275text(1,"Nome"),r.\u0275\u0275elementEnd())}function it(pe,We){if(1&pe&&(r.\u0275\u0275elementStart(0,"td",55),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&pe){const Ie=We.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.name)}}function rt(pe,We){1&pe&&(r.\u0275\u0275elementStart(0,"th",54),r.\u0275\u0275text(1,"Tipo"),r.\u0275\u0275elementEnd())}function yt(pe,We){if(1&pe){const Ie=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"td",55)(1,"u",29),r.\u0275\u0275listener("click",function(){const De=r.\u0275\u0275restoreView(Ie).$implicit,Le=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(Le.showDocumentation(De.rawType))}),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd()()}if(2&pe){const Ie=We.$implicit,Ye=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(1),r.\u0275\u0275property("matTooltip",Ye.getTooltip(Ie.rawType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.type)}}function Oe(pe,We){1&pe&&(r.\u0275\u0275elementStart(0,"th",54),r.\u0275\u0275text(1,"Descri\xe7\xe3o"),r.\u0275\u0275elementEnd())}function ft(pe,We){if(1&pe&&(r.\u0275\u0275elementStart(0,"td",56),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&pe){const Ie=We.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.description||"-")}}function wt(pe,We){1&pe&&r.\u0275\u0275element(0,"tr",57)}function et(pe,We){1&pe&&r.\u0275\u0275element(0,"tr",58)}function at(pe,We){if(1&pe&&(r.\u0275\u0275elementStart(0,"table",45),r.\u0275\u0275elementContainerStart(1,46),r.\u0275\u0275template(2,_e,2,0,"th",47),r.\u0275\u0275template(3,it,2,1,"td",48),r.\u0275\u0275elementContainerEnd(),r.\u0275\u0275elementContainerStart(4,49),r.\u0275\u0275template(5,rt,2,0,"th",47),r.\u0275\u0275template(6,yt,3,2,"td",48),r.\u0275\u0275elementContainerEnd(),r.\u0275\u0275elementContainerStart(7,50),r.\u0275\u0275template(8,Oe,2,0,"th",47),r.\u0275\u0275template(9,ft,2,1,"td",51),r.\u0275\u0275elementContainerEnd(),r.\u0275\u0275template(10,wt,1,0,"tr",52),r.\u0275\u0275template(11,et,1,0,"tr",53),r.\u0275\u0275elementEnd()),2&pe){const Ie=r.\u0275\u0275nextContext(2);r.\u0275\u0275property("dataSource",Ie.selectedFunction.args),r.\u0275\u0275advance(10),r.\u0275\u0275property("matHeaderRowDef",Ie.argumentsTableColumns),r.\u0275\u0275advance(1),r.\u0275\u0275property("matRowDefColumns",Ie.argumentsTableColumns)}}function Ke(pe,We){1&pe&&(r.\u0275\u0275elementStart(0,"span",59),r.\u0275\u0275text(1,"Dart"),r.\u0275\u0275elementEnd())}function nt(pe,We){1&pe&&(r.\u0275\u0275elementStart(0,"span",59),r.\u0275\u0275text(1,"Swift"),r.\u0275\u0275elementEnd())}const Tt=function(){return{theme:"vs-dark",language:"javascript"}},Ct=function(){return{theme:"vs-dark",language:"kotlin"}},st=function(){return{theme:"vs-dark",language:"dart"}},It=function(){return{theme:"vs-dark",language:"swift"}};function ze(pe,We){if(1&pe){const Ie=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"article")(1,"header")(2,"h1",9)(3,"span",10)(4,"span",11),r.\u0275\u0275text(5,"fn"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(6,"\xa0"),r.\u0275\u0275elementStart(7,"span",12),r.\u0275\u0275text(8),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(9,"("),r.\u0275\u0275template(10,re,11,6,"span",13),r.\u0275\u0275text(11,")"),r.\u0275\u0275elementStart(12,"span",14),r.\u0275\u0275text(13,":"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(14,"\xa0"),r.\u0275\u0275elementStart(15,"u",15),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(Ie);const z=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(z.showDocumentation(z.selectedFunction.returns.rawType))}),r.\u0275\u0275text(16),r.\u0275\u0275elementEnd()(),r.\u0275\u0275template(17,me,1,0,"ng-template",null,16,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275template(19,we,1,0,"ng-template",null,17,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275element(21,"s"),r.\u0275\u0275elementStart(22,"button",18),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(Ie);const z=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(z.addSimpleCallTab())}),r.\u0275\u0275elementStart(23,"mat-icon"),r.\u0275\u0275text(24,"play_arrow"),r.\u0275\u0275elementEnd(),r.\u0275\u0275text(25,"\xa0EXECUTAR "),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275template(26,q,3,2,"section",19),r.\u0275\u0275elementStart(27,"section",9)(28,"h2",20),r.\u0275\u0275text(29,"Descri\xe7\xe3o"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(30,"div",21),r.\u0275\u0275template(31,B,2,1,"p",22),r.\u0275\u0275template(32,ae,2,0,"p",23),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(33,"h2",24),r.\u0275\u0275text(34,"Par\xe2metros"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(35,"div",21),r.\u0275\u0275template(36,de,2,0,"p",23),r.\u0275\u0275elementStart(37,"div",25),r.\u0275\u0275template(38,at,12,3,"table",26),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(39,"h2",27),r.\u0275\u0275text(40,"Retorno"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(41,"div")(42,"p",28)(43,"u",29),r.\u0275\u0275listener("click",function(){r.\u0275\u0275restoreView(Ie);const z=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(z.showDocumentation(z.selectedFunction.returns.rawType))}),r.\u0275\u0275text(44),r.\u0275\u0275elementEnd()()(),r.\u0275\u0275elementStart(45,"h2",30),r.\u0275\u0275text(46,"Exemplo de Requisi\xe7\xe3o"),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(47,"mat-tab-group",31)(48,"mat-tab",32),r.\u0275\u0275element(49,"ngx-monaco-editor",33),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(50,"mat-tab",34),r.\u0275\u0275element(51,"ngx-monaco-editor",33),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(52,"mat-tab",35),r.\u0275\u0275template(53,Ke,2,0,"ng-template",36),r.\u0275\u0275element(54,"ngx-monaco-editor",33),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(55,"mat-tab",35),r.\u0275\u0275template(56,nt,2,0,"ng-template",36),r.\u0275\u0275element(57,"ngx-monaco-editor",33),r.\u0275\u0275elementEnd()()()()}if(2&pe){const Ie=r.\u0275\u0275nextContext();r.\u0275\u0275advance(8),r.\u0275\u0275textInterpolate(Ie.selectedFunction.name),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",Ie.selectedFunction.args),r.\u0275\u0275advance(5),r.\u0275\u0275property("matTooltip",Ie.getTooltip(Ie.selectedFunction.returns.rawType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.selectedFunction.returns.type),r.\u0275\u0275advance(10),r.\u0275\u0275property("ngIf",Ie.selectedFunction.labels.length>0),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngSwitch",!!Ie.selectedFunction.description),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngSwitchCase",!0),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngSwitchCase",!1),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngSwitch",Ie.selectedFunction.args.length),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngSwitchCase",0),r.\u0275\u0275advance(7),r.\u0275\u0275property("matTooltip",Ie.getTooltip(Ie.selectedFunction.returns.rawType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.selectedFunction.returns.type),r.\u0275\u0275advance(5),r.\u0275\u0275property("options",r.\u0275\u0275pureFunction0(20,Tt))("ngModel",Ie.selectedFunction.examples.typeScript),r.\u0275\u0275advance(2),r.\u0275\u0275property("options",r.\u0275\u0275pureFunction0(21,Ct))("ngModel",Ie.selectedFunction.examples.kotlin),r.\u0275\u0275advance(3),r.\u0275\u0275property("options",r.\u0275\u0275pureFunction0(22,st))("ngModel",Ie.selectedFunction.examples.dart),r.\u0275\u0275advance(3),r.\u0275\u0275property("options",r.\u0275\u0275pureFunction0(23,It))("ngModel",Ie.selectedFunction.examples.swift)}}const Ae=function(){return{standalone:!0}};class je{constructor(We,Ie,Ye){this.sdkgen=We,this.dialog=Ie,this.responsive=Ye,this.isBelowMd=!1,this.runFunction=new p.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(We=>{!We||(this.selectedFunction=void 0,this.fnTable=We.astRoot.operations.sort((Ie,Ye)=>Ie.name.localeCompare(Ye.name)).map(Ie=>{var Ye,z,De;const Le=We.astJson.annotations[`fn.${Ie.name}`],Se=this.sdkgen.buildJsonObject(Ie.args);return null!=Le&&Le.find(Fe=>"hidden"===Fe.type)?null:{name:Ie.name,description:null===(Ye=null==Le?void 0:Le.find(Fe=>"description"===Fe.type))||void 0===Ye?void 0:Ye.value,args:Ie.args.map(({name:Fe,type:ge})=>{var xe,ht,Me;return{name:Fe,description:null===(Me=[...null!==(xe=We.astJson.annotations[`type.${ge}.${Fe}`])&&void 0!==xe?xe:[],...null!==(ht=We.astJson.annotations[`fn.${Ie.name}.${Fe}`])&&void 0!==ht?ht:[]].find(ne=>"description"===ne.type))||void 0===Me?void 0:Me.value,type:ge.name,rawType:ge}}),argsStr:Ie.args.map(Fe=>`${Fe.name}: ${Fe.type.name}`).join(", "),argsFields:Ie.args,returns:{type:Ie.returnType.name,rawType:Ie.returnType},labels:null!==(z=null==Le?void 0:Le.filter(Fe=>["rest","throws"].includes(Fe.type)).map(Fe=>{var ge;return"rest"===Fe.type?{name:"REST",type:`${Fe.value.method} ${Fe.value.path}`}:"throws"===Fe.type?{name:"THROWS",type:Fe.value,dataType:null===(ge=We.astRoot.errors.find(xe=>xe.name===Fe.value))||void 0===ge?void 0:ge.dataType}:{name:"?",type:"?"}}))&&void 0!==z?z:[],throws:null===(De=null==Le?void 0:Le.find(Fe=>"throws"===Fe.type))||void 0===De?void 0:De.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(Ie.name,Se),kotlin:this.sdkgen.getKotlinCode(Ie.name,Ie.args),dart:this.sdkgen.getDartCode(Ie.name,Se),swift:this.sdkgen.getSwiftCode(Ie.name,Se)}}}).filter(Ie=>Boolean(Ie)))})}ngOnDestroy(){var We,Ie;null===(We=this.state$)||void 0===We||We.unsubscribe(),null===(Ie=this.responsive$)||void 0===Ie||Ie.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(We=>{this.isBelowMd=We.matches})}addSimpleCallTab(){var We;this.runFunction.emit(null===(We=this.selectedFunction)||void 0===We?void 0:We.name)}getTooltip(We){return(0,b.getTypeDoc)(We).shortDescription}showDocumentation(We){this.dialog.open(u.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:We},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}o.TabHomeComponent=je,je.\u0275fac=function(We){return new(We||je)(r.\u0275\u0275directiveInject(c.SdkgenService),r.\u0275\u0275directiveInject(f.MatDialog),r.\u0275\u0275directiveInject(h.ResponsiveService))},je.\u0275cmp=r.\u0275\u0275defineComponent({type:je,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(We,Ie){1&We&&(r.\u0275\u0275elementStart(0,"as-split",0)(1,"as-split-area",1)(2,"aside")(3,"nav")(4,"form")(5,"input",2),r.\u0275\u0275listener("ngModelChange",function(z){return Ie.searchText=z}),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(6,"ul"),r.\u0275\u0275template(7,V,4,5,"li",3),r.\u0275\u0275pipe(8,"appFilter"),r.\u0275\u0275elementEnd()()()(),r.\u0275\u0275elementStart(9,"as-split-area"),r.\u0275\u0275template(10,ze,58,24,"article",4),r.\u0275\u0275elementEnd()()),2&We&&(r.\u0275\u0275property("direction",Ie.isBelowMd?"vertical":"horizontal"),r.\u0275\u0275advance(1),r.\u0275\u0275property("size",Ie.isBelowMd?130:350),r.\u0275\u0275advance(4),r.\u0275\u0275property("ngModel",Ie.searchText)("ngModelOptions",r.\u0275\u0275pureFunction0(9,Ae)),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",r.\u0275\u0275pipeBind2(8,6,Ie.fnTable,Ie.searchText)),r.\u0275\u0275advance(3),r.\u0275\u0275property("ngIf",Ie.selectedFunction))},dependencies:[m.NgClass,m.NgForOf,m.NgIf,m.NgSwitch,m.NgSwitchCase,m.NgSwitchDefault,d.\u0275NgNoValidate,d.DefaultValueAccessor,d.NgControlStatus,d.NgControlStatusGroup,d.NgModel,d.NgForm,_.MonacoEditorComponent,v.SplitComponent,v.SplitAreaDirective,y.MatButton,E.MatChipList,E.MatChip,M.MatIcon,A.MatTable,A.MatHeaderCellDef,A.MatHeaderRowDef,A.MatColumnDef,A.MatCellDef,A.MatRowDef,A.MatHeaderCell,A.MatCell,A.MatHeaderRow,A.MatRow,k.MatTabGroup,k.MatTabLabel,k.MatTab,j.MatTooltip,Y.FilterPipe],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:hidden!important}aside[_ngcontent-%COMP%]{display:block;background:#2b2b2b;height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}nav[_ngcontent-%COMP%]{display:block;width:100%}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background:#2b2b2b;border-bottom:1px solid #444444;position:sticky;top:0;left:0;right:0;z-index:2}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;background:#444444;border:0 none;color:#fff;width:100%;padding:5px}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:100%;padding:15px 10px;border-bottom:1px solid #444444;cursor:pointer}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#0003}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#0000004d}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-call[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-description[_ngcontent-%COMP%]{color:#777;font-size:.9rem;margin-top:5px}u[_ngcontent-%COMP%]{-webkit-text-decoration-style:dotted;text-decoration-style:dotted;cursor:pointer;font-family:Roboto Mono,monospace}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{background-color:#2b2b2b;padding:25px 20px;width:100%;position:sticky;top:0;left:0;right:0;z-index:3}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 auto;font-weight:300;line-height:36px;white-space:pre}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span.hide-overflow[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-fn[_ngcontent-%COMP%]{color:#c586c0}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-name[_ngcontent-%COMP%]{color:#dcdcaa}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-arg-name[_ngcontent-%COMP%]{color:#9cdcfe}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-sym[_ngcontent-%COMP%]{color:#d4d4d4}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-type[_ngcontent-%COMP%]{color:#569cd6}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:130px;align-self:center}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{display:block;padding:0 20px 15px}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%]{padding:20px 20px 0}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{overflow:hidden}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;width:1.3px;background:#FFF;margin:0 7.5px;border-radius:5px;height:calc(100% + 14px)}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:300;margin-top:40px;text-transform:uppercase}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .no-content[_ngcontent-%COMP%]{background-color:#383838;color:#fafafa;display:inline-block;padding:15px;border-radius:5px;margin-top:0}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] table[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .table-responsive[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] mat-tab-group[_ngcontent-%COMP%]{width:100%;max-width:720px}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%;min-height:300px}"]})},2253:(H,o,a)=>{"use strict";var n=a(7156).default;Object.defineProperty(o,"__esModule",{value:!0}),o.TabNavComponent=void 0;const p=a(655),b=a(3075),u=a(6676),r=a(4814),c=p.__importStar(a(5e3)),f=p.__importStar(a(6395)),h=p.__importStar(a(2290)),m=p.__importStar(a(9694)),d=p.__importStar(a(9808)),_=p.__importStar(a(3075)),v=p.__importStar(a(7423)),y=p.__importStar(a(3293)),E=p.__importStar(a(508));function M(j,Y){1&j&&(c.\u0275\u0275elementContainerStart(0),c.\u0275\u0275elementStart(1,"mat-icon",6),c.\u0275\u0275text(2,"loop"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementContainerEnd())}function A(j,Y){1&j&&(c.\u0275\u0275elementContainerStart(0),c.\u0275\u0275elementStart(1,"mat-icon"),c.\u0275\u0275text(2,"arrow_forward"),c.\u0275\u0275elementEnd(),c.\u0275\u0275elementContainerEnd())}class k{constructor(Y,U,Q){this.sdkgen=Y,this.toastr=U,this.dialog=Q,this.loading=!1,this.url=new b.FormControl("")}ngOnInit(){fetch("/ast.json").then(Y=>{Y.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(Y){var U=this;return n(function*(){null==Y||Y.preventDefault();try{U.loading=!0,/^https?:\/\//.test(U.url.value)||U.url.setValue(`https://${U.url.value}`);const Q=new URL(U.url.value);Q.pathname+=(/\/$/u.test(Q.pathname)?"":"/")+"ast.json";const V=Q.toString();console.debug("astUrl",V);const X=yield fetch(V).then(re=>re.ok?re.json():re);if(X instanceof Response)throw X instanceof Error?X:new Error(X.statusText);if(!X.errors||!X.functionTable||!X.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(re=>setTimeout(re,250));console.debug("astJson",X),U.sdkgen.state$.next({astJson:X,astRoot:(0,u.jsonToAst)(X),url:U.url.value})}catch(Q){U.toastr.error(Q instanceof Error?Q.message:JSON.stringify(Q),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{U.loading=!1}})()}openAbout(){this.dialog.open(r.DialogAboutComponent)}}o.TabNavComponent=k,k.\u0275fac=function(Y){return new(Y||k)(c.\u0275\u0275directiveInject(f.SdkgenService),c.\u0275\u0275directiveInject(h.ToastrService),c.\u0275\u0275directiveInject(m.MatDialog))},k.\u0275cmp=c.\u0275\u0275defineComponent({type:k,selectors:[["app-tab-nav"]],decls:9,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["mat-ripple","","type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","",3,"click"],[1,"loader"]],template:function(Y,U){1&Y&&(c.\u0275\u0275element(0,"img",0),c.\u0275\u0275elementStart(1,"form",1),c.\u0275\u0275listener("submit",function(V){return U.loadUrl(V)}),c.\u0275\u0275element(2,"input",2),c.\u0275\u0275elementStart(3,"button",3),c.\u0275\u0275template(4,M,3,0,"ng-container",4),c.\u0275\u0275template(5,A,3,0,"ng-container",4),c.\u0275\u0275elementEnd()(),c.\u0275\u0275elementStart(6,"button",5),c.\u0275\u0275listener("click",function(){return U.openAbout()}),c.\u0275\u0275elementStart(7,"mat-icon"),c.\u0275\u0275text(8,"info"),c.\u0275\u0275elementEnd()()),2&Y&&(c.\u0275\u0275advance(2),c.\u0275\u0275property("formControl",U.url)("readonly",U.loading),c.\u0275\u0275advance(1),c.\u0275\u0275property("disabled",U.loading)("ngSwitch",U.loading),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngSwitchCase",!0),c.\u0275\u0275advance(1),c.\u0275\u0275property("ngSwitchCase",!1))},dependencies:[d.NgSwitch,d.NgSwitchCase,_.\u0275NgNoValidate,_.DefaultValueAccessor,_.NgControlStatus,_.NgControlStatusGroup,_.NgForm,_.FormControlDirective,v.MatButton,y.MatIcon,E.MatRipple],styles:["[_nghost-%COMP%]{display:flex;height:42px;background-color:#2b2b2b;box-shadow:0 0 3px #00000080}img[_ngcontent-%COMP%]{padding:5px}form[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-grow:1;box-shadow:0 0 1px #00000080;background:#383838;border:0 none;border-radius:5px;margin:5px 10vw 5px calc(10vw - 42px);overflow:hidden}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex-grow:1;padding:10px 5px;background:transparent;border:0 none;text-align:center;color:#ccc}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:transparent;color:#bfbfbf;border:0 none;cursor:pointer}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})},5281:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.TypeDetailsComponent=void 0;const n=a(655),p=a(9694),b=a(9435),u=n.__importStar(a(5e3)),r=n.__importStar(a(9694)),c=n.__importStar(a(9808)),f=n.__importStar(a(7423)),h=n.__importStar(a(9417)),m=n.__importStar(a(3293)),d=n.__importStar(a(4999)),_=n.__importStar(a(7238));function v(B,ae){1&B&&(u.\u0275\u0275elementStart(0,"button",6)(1,"mat-icon"),u.\u0275\u0275text(2,"arrow_back"),u.\u0275\u0275elementEnd()())}function y(B,ae){if(1&B&&(u.\u0275\u0275elementStart(0,"mat-chip",7),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&B){const de=ae.$implicit;u.\u0275\u0275property("disableRipple",!0),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(de)}}function E(B,ae){1&B&&(u.\u0275\u0275elementStart(0,"button",8)(1,"mat-icon"),u.\u0275\u0275text(2,"close"),u.\u0275\u0275elementEnd()())}function M(B,ae){1&B&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Nome"),u.\u0275\u0275elementEnd())}function A(B,ae){if(1&B&&(u.\u0275\u0275elementStart(0,"td",21),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&B){const de=ae.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(de.name)}}function k(B,ae){1&B&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Tipo"),u.\u0275\u0275elementEnd())}function j(B,ae){1&B&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1,"-"),u.\u0275\u0275elementEnd())}function Y(B,ae){if(1&B){const de=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"u",25),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(de);const it=u.\u0275\u0275nextContext().$implicit,rt=u.\u0275\u0275nextContext(2);return u.\u0275\u0275resetView(rt.showDocumentation(it.type))}),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()}if(2&B){const de=u.\u0275\u0275nextContext().$implicit,_e=u.\u0275\u0275nextContext(2);u.\u0275\u0275property("matTooltip",_e.getTooltip(de.type)),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(de.type.name)}}function U(B,ae){1&B&&(u.\u0275\u0275elementStart(0,"td",22),u.\u0275\u0275template(1,j,2,0,"span",23),u.\u0275\u0275template(2,Y,2,2,"u",24),u.\u0275\u0275elementEnd()),2&B&&(u.\u0275\u0275property("ngSwitch",ae.$implicit.type),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngSwitchCase",null))}function Q(B,ae){1&B&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Descri\xe7\xe3o"),u.\u0275\u0275elementEnd())}function V(B,ae){if(1&B&&(u.\u0275\u0275elementStart(0,"td",26),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&B){const de=ae.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(de.description||"-")}}function X(B,ae){1&B&&u.\u0275\u0275element(0,"tr",27)}function re(B,ae){1&B&&u.\u0275\u0275element(0,"tr",28)}const me=function(){return[]};function we(B,ae){if(1&B&&(u.\u0275\u0275elementStart(0,"section")(1,"div",9)(2,"table",10),u.\u0275\u0275elementContainerStart(3,11),u.\u0275\u0275template(4,M,2,0,"th",12),u.\u0275\u0275template(5,A,2,1,"td",13),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(6,14),u.\u0275\u0275template(7,k,2,0,"th",12),u.\u0275\u0275template(8,U,3,2,"td",15),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275elementContainerStart(9,16),u.\u0275\u0275template(10,Q,2,0,"th",12),u.\u0275\u0275template(11,V,2,1,"td",17),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275template(12,X,1,0,"tr",18),u.\u0275\u0275template(13,re,1,0,"tr",19),u.\u0275\u0275elementEnd()()()),2&B){const de=u.\u0275\u0275nextContext();let _e;u.\u0275\u0275advance(2),u.\u0275\u0275property("dataSource",null!==(_e=null==de.typeDoc?null:de.typeDoc.structFields)&&void 0!==_e?_e:u.\u0275\u0275pureFunction0(3,me)),u.\u0275\u0275advance(10),u.\u0275\u0275property("matHeaderRowDef",de.argumentsTableColumns),u.\u0275\u0275advance(1),u.\u0275\u0275property("matRowDefColumns",de.argumentsTableColumns)}}function tt(B,ae){if(1&B&&(u.\u0275\u0275elementStart(0,"li")(1,"code",1),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&B){const de=ae.$implicit;u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(de)}}function G(B,ae){if(1&B&&(u.\u0275\u0275elementStart(0,"section")(1,"h3"),u.\u0275\u0275text(2,"Exemplos"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"ul"),u.\u0275\u0275template(4,tt,3,1,"li",29),u.\u0275\u0275elementEnd()()),2&B){const de=u.\u0275\u0275nextContext();u.\u0275\u0275advance(4),u.\u0275\u0275property("ngForOf",null==de.typeDoc?null:de.typeDoc.examples)}}class q{constructor(ae,de,_e){this.dialogRef=ae,this.data=de,this.dialog=_e,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=(0,b.getTypeLabels)(this.data.type),this.typeDoc=(0,b.getTypeDoc)(this.data.type)}getTooltip(ae){return(0,b.getTypeDoc)(ae).shortDescription}showDocumentation(ae){this.dialog.open(q,{position:{right:"0"},data:{type:ae,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}o.TypeDetailsComponent=q,q.\u0275fac=function(ae){return new(ae||q)(u.\u0275\u0275directiveInject(r.MatDialogRef),u.\u0275\u0275directiveInject(p.MAT_DIALOG_DATA),u.\u0275\u0275directiveInject(r.MatDialog))},q.\u0275cmp=u.\u0275\u0275defineComponent({type:q,selectors:[["app-type-details"]],decls:11,vars:8,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[1,"mono"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"close-button"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["class","mono","mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell","",1,"mono",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"matTooltip","click",4,"ngSwitchDefault"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(ae,de){1&ae&&(u.\u0275\u0275elementStart(0,"h1"),u.\u0275\u0275template(1,v,3,0,"button",0),u.\u0275\u0275elementStart(2,"span",1),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(4,"mat-chip-list",2),u.\u0275\u0275template(5,y,2,2,"mat-chip",3),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(6,E,3,0,"button",4),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(7,"p"),u.\u0275\u0275text(8),u.\u0275\u0275elementEnd(),u.\u0275\u0275template(9,we,14,4,"section",5),u.\u0275\u0275template(10,G,5,1,"section",5)),2&ae&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",de.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(de.data.type.name),u.\u0275\u0275advance(1),u.\u0275\u0275property("selectable",!1),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",de.labels),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!de.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(null==de.typeDoc?null:de.typeDoc.longDescription),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",(null==de.typeDoc?null:de.typeDoc.isStruct)&&(null==de.typeDoc?null:de.typeDoc.structFields)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",null==de.typeDoc||null==de.typeDoc.examples?null:de.typeDoc.examples.length))},dependencies:[c.NgForOf,c.NgIf,c.NgSwitch,c.NgSwitchCase,c.NgSwitchDefault,f.MatButton,h.MatChipList,h.MatChip,r.MatDialogClose,m.MatIcon,d.MatTable,d.MatHeaderCellDef,d.MatHeaderRowDef,d.MatColumnDef,d.MatCellDef,d.MatRowDef,d.MatHeaderCell,d.MatCell,d.MatHeaderRow,d.MatRow,_.MatTooltip],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:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.unwrap=o.wrapper=void 0,o.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',o.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.environment=void 0,o.environment={production:!0}},4431:(H,o,a)=>{"use strict";const b=a(655).__importStar(a(2313)),u=a(5e3),r=a(6747);a(2340).environment.production&&(0,u.enableProdMode)(),b.platformBrowser().bootstrapModule(r.AppModule).catch(f=>console.error(f))},4327:function(H,o){var p;void 0!==(p=function(){"use strict";function u(d,_,v){var y=new XMLHttpRequest;y.open("GET",d),y.responseType="blob",y.onload=function(){m(y.response,_,v)},y.onerror=function(){console.error("could not download file")},y.send()}function r(d){var _=new XMLHttpRequest;_.open("HEAD",d,!1);try{_.send()}catch(v){}return 200<=_.status&&299>=_.status}function c(d){try{d.dispatchEvent(new MouseEvent("click"))}catch(v){var _=document.createEvent("MouseEvents");_.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),d.dispatchEvent(_)}}var f="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,h=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),m=f.saveAs||("object"!=typeof window||window!==f?function(){}:"download"in HTMLAnchorElement.prototype&&!h?function(d,_,v){var y=f.URL||f.webkitURL,E=document.createElement("a");E.download=_=_||d.name||"download",E.rel="noopener","string"==typeof d?(E.href=d,E.origin===location.origin?c(E):r(E.href)?u(d,_,v):c(E,E.target="_blank")):(E.href=y.createObjectURL(d),setTimeout(function(){y.revokeObjectURL(E.href)},4e4),setTimeout(function(){c(E)},0))}:"msSaveOrOpenBlob"in navigator?function(d,_,v){if(_=_||d.name||"download","string"!=typeof d)navigator.msSaveOrOpenBlob(function b(d,_){return void 0===_?_={autoBom:!1}:"object"!=typeof _&&(console.warn("Deprecated: Expected third argument to be a object"),_={autoBom:!_}),_.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(d.type)?new Blob(["\ufeff",d],{type:d.type}):d}(d,v),_);else if(r(d))u(d,_,v);else{var y=document.createElement("a");y.href=d,y.target="_blank",setTimeout(function(){c(y)})}}:function(d,_,v,y){if((y=y||open("","_blank"))&&(y.document.title=y.document.body.innerText="downloading..."),"string"==typeof d)return u(d,_,v);var E="application/octet-stream"===d.type,M=/constructor/i.test(f.HTMLElement)||f.safari,A=/CriOS\/[\d]+/.test(navigator.userAgent);if((A||E&&M||h)&&"undefined"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var U=k.result;U=A?U:U.replace(/^data:[^;]*;/,"data:attachment/file;"),y?y.location.href=U:location=U,y=null},k.readAsDataURL(d)}else{var j=f.URL||f.webkitURL,Y=j.createObjectURL(d);y?y.location=Y:location.href=Y,y=null,setTimeout(function(){j.revokeObjectURL(Y)},4e4)}});f.saveAs=m.saveAs=m,H.exports=m}.apply(o,[]))&&(H.exports=p)},6477:function(H,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(li,jn,Bn,Dn){void 0===Dn&&(Dn=Bn),Object.defineProperty(li,Dn,{enumerable:!0,get:function(){return jn[Bn]}})}:function(li,jn,Bn,Dn){void 0===Dn&&(Dn=Bn),li[Dn]=jn[Bn]}),p=this&&this.__exportStar||function(li,jn){for(var Bn in li)"default"!==Bn&&!Object.prototype.hasOwnProperty.call(jn,Bn)&&n(jn,li,Bn)};Object.defineProperty(o,"__esModule",{value:!0}),o.interval=o.iif=o.generate=o.fromEventPattern=o.fromEvent=o.from=o.forkJoin=o.empty=o.defer=o.connectable=o.concat=o.combineLatest=o.bindNodeCallback=o.bindCallback=o.UnsubscriptionError=o.TimeoutError=o.SequenceError=o.ObjectUnsubscribedError=o.NotFoundError=o.EmptyError=o.ArgumentOutOfRangeError=o.firstValueFrom=o.lastValueFrom=o.isObservable=o.identity=o.noop=o.pipe=o.NotificationKind=o.Notification=o.Subscriber=o.Subscription=o.Scheduler=o.VirtualAction=o.VirtualTimeScheduler=o.animationFrameScheduler=o.animationFrame=o.queueScheduler=o.queue=o.asyncScheduler=o.async=o.asapScheduler=o.asap=o.AsyncSubject=o.ReplaySubject=o.BehaviorSubject=o.Subject=o.animationFrames=o.observable=o.ConnectableObservable=o.Observable=void 0,o.filter=o.expand=o.exhaustMap=o.exhaustAll=o.exhaust=o.every=o.endWith=o.elementAt=o.distinctUntilKeyChanged=o.distinctUntilChanged=o.distinct=o.dematerialize=o.delayWhen=o.delay=o.defaultIfEmpty=o.debounceTime=o.debounce=o.count=o.connect=o.concatWith=o.concatMapTo=o.concatMap=o.concatAll=o.combineLatestWith=o.combineLatestAll=o.combineAll=o.catchError=o.bufferWhen=o.bufferToggle=o.bufferTime=o.bufferCount=o.buffer=o.auditTime=o.audit=o.config=o.NEVER=o.EMPTY=o.scheduled=o.zip=o.using=o.timer=o.throwError=o.range=o.race=o.partition=o.pairs=o.onErrorResumeNext=o.of=o.never=o.merge=void 0,o.switchMapTo=o.switchMap=o.switchAll=o.subscribeOn=o.startWith=o.skipWhile=o.skipUntil=o.skipLast=o.skip=o.single=o.shareReplay=o.share=o.sequenceEqual=o.scan=o.sampleTime=o.sample=o.refCount=o.retryWhen=o.retry=o.repeatWhen=o.repeat=o.reduce=o.raceWith=o.publishReplay=o.publishLast=o.publishBehavior=o.publish=o.pluck=o.pairwise=o.observeOn=o.multicast=o.min=o.mergeWith=o.mergeScan=o.mergeMapTo=o.mergeMap=o.flatMap=o.mergeAll=o.max=o.materialize=o.mapTo=o.map=o.last=o.isEmpty=o.ignoreElements=o.groupBy=o.first=o.findIndex=o.find=o.finalize=void 0,o.zipWith=o.zipAll=o.withLatestFrom=o.windowWhen=o.windowToggle=o.windowTime=o.windowCount=o.window=o.toArray=o.timestamp=o.timeoutWith=o.timeout=o.timeInterval=o.throwIfEmpty=o.throttleTime=o.throttle=o.tap=o.takeWhile=o.takeUntil=o.takeLast=o.take=o.switchScan=void 0;var b=a(5821);Object.defineProperty(o,"Observable",{enumerable:!0,get:function(){return b.Observable}});var u=a(6686);Object.defineProperty(o,"ConnectableObservable",{enumerable:!0,get:function(){return u.ConnectableObservable}});var r=a(1689);Object.defineProperty(o,"observable",{enumerable:!0,get:function(){return r.observable}});var c=a(2946);Object.defineProperty(o,"animationFrames",{enumerable:!0,get:function(){return c.animationFrames}});var f=a(3768);Object.defineProperty(o,"Subject",{enumerable:!0,get:function(){return f.Subject}});var h=a(5482);Object.defineProperty(o,"BehaviorSubject",{enumerable:!0,get:function(){return h.BehaviorSubject}});var m=a(3406);Object.defineProperty(o,"ReplaySubject",{enumerable:!0,get:function(){return m.ReplaySubject}});var d=a(7606);Object.defineProperty(o,"AsyncSubject",{enumerable:!0,get:function(){return d.AsyncSubject}});var _=a(1212);Object.defineProperty(o,"asap",{enumerable:!0,get:function(){return _.asap}}),Object.defineProperty(o,"asapScheduler",{enumerable:!0,get:function(){return _.asapScheduler}});var v=a(4006);Object.defineProperty(o,"async",{enumerable:!0,get:function(){return v.async}}),Object.defineProperty(o,"asyncScheduler",{enumerable:!0,get:function(){return v.asyncScheduler}});var y=a(5668);Object.defineProperty(o,"queue",{enumerable:!0,get:function(){return y.queue}}),Object.defineProperty(o,"queueScheduler",{enumerable:!0,get:function(){return y.queueScheduler}});var E=a(1906);Object.defineProperty(o,"animationFrame",{enumerable:!0,get:function(){return E.animationFrame}}),Object.defineProperty(o,"animationFrameScheduler",{enumerable:!0,get:function(){return E.animationFrameScheduler}});var M=a(2018);Object.defineProperty(o,"VirtualTimeScheduler",{enumerable:!0,get:function(){return M.VirtualTimeScheduler}}),Object.defineProperty(o,"VirtualAction",{enumerable:!0,get:function(){return M.VirtualAction}});var A=a(2716);Object.defineProperty(o,"Scheduler",{enumerable:!0,get:function(){return A.Scheduler}});var k=a(6448);Object.defineProperty(o,"Subscription",{enumerable:!0,get:function(){return k.Subscription}});var j=a(7052);Object.defineProperty(o,"Subscriber",{enumerable:!0,get:function(){return j.Subscriber}});var Y=a(7262);Object.defineProperty(o,"Notification",{enumerable:!0,get:function(){return Y.Notification}}),Object.defineProperty(o,"NotificationKind",{enumerable:!0,get:function(){return Y.NotificationKind}});var U=a(1471);Object.defineProperty(o,"pipe",{enumerable:!0,get:function(){return U.pipe}});var Q=a(31);Object.defineProperty(o,"noop",{enumerable:!0,get:function(){return Q.noop}});var V=a(7884);Object.defineProperty(o,"identity",{enumerable:!0,get:function(){return V.identity}});var X=a(4341);Object.defineProperty(o,"isObservable",{enumerable:!0,get:function(){return X.isObservable}});var re=a(5257);Object.defineProperty(o,"lastValueFrom",{enumerable:!0,get:function(){return re.lastValueFrom}});var me=a(5754);Object.defineProperty(o,"firstValueFrom",{enumerable:!0,get:function(){return me.firstValueFrom}});var we=a(4769);Object.defineProperty(o,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return we.ArgumentOutOfRangeError}});var tt=a(8915);Object.defineProperty(o,"EmptyError",{enumerable:!0,get:function(){return tt.EmptyError}});var G=a(5477);Object.defineProperty(o,"NotFoundError",{enumerable:!0,get:function(){return G.NotFoundError}});var q=a(3965);Object.defineProperty(o,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return q.ObjectUnsubscribedError}});var B=a(1551);Object.defineProperty(o,"SequenceError",{enumerable:!0,get:function(){return B.SequenceError}});var ae=a(5001);Object.defineProperty(o,"TimeoutError",{enumerable:!0,get:function(){return ae.TimeoutError}});var de=a(4970);Object.defineProperty(o,"UnsubscriptionError",{enumerable:!0,get:function(){return de.UnsubscriptionError}});var _e=a(7532);Object.defineProperty(o,"bindCallback",{enumerable:!0,get:function(){return _e.bindCallback}});var it=a(3488);Object.defineProperty(o,"bindNodeCallback",{enumerable:!0,get:function(){return it.bindNodeCallback}});var rt=a(6892);Object.defineProperty(o,"combineLatest",{enumerable:!0,get:function(){return rt.combineLatest}});var yt=a(509);Object.defineProperty(o,"concat",{enumerable:!0,get:function(){return yt.concat}});var Oe=a(9190);Object.defineProperty(o,"connectable",{enumerable:!0,get:function(){return Oe.connectable}});var ft=a(9954);Object.defineProperty(o,"defer",{enumerable:!0,get:function(){return ft.defer}});var wt=a(7406);Object.defineProperty(o,"empty",{enumerable:!0,get:function(){return wt.empty}});var et=a(7928);Object.defineProperty(o,"forkJoin",{enumerable:!0,get:function(){return et.forkJoin}});var at=a(4996);Object.defineProperty(o,"from",{enumerable:!0,get:function(){return at.from}});var Ke=a(2579);Object.defineProperty(o,"fromEvent",{enumerable:!0,get:function(){return Ke.fromEvent}});var nt=a(3975);Object.defineProperty(o,"fromEventPattern",{enumerable:!0,get:function(){return nt.fromEventPattern}});var Tt=a(4318);Object.defineProperty(o,"generate",{enumerable:!0,get:function(){return Tt.generate}});var Ct=a(3140);Object.defineProperty(o,"iif",{enumerable:!0,get:function(){return Ct.iif}});var st=a(1836);Object.defineProperty(o,"interval",{enumerable:!0,get:function(){return st.interval}});var It=a(9248);Object.defineProperty(o,"merge",{enumerable:!0,get:function(){return It.merge}});var ze=a(2818);Object.defineProperty(o,"never",{enumerable:!0,get:function(){return ze.never}});var Ae=a(9677);Object.defineProperty(o,"of",{enumerable:!0,get:function(){return Ae.of}});var je=a(9978);Object.defineProperty(o,"onErrorResumeNext",{enumerable:!0,get:function(){return je.onErrorResumeNext}});var pe=a(5519);Object.defineProperty(o,"pairs",{enumerable:!0,get:function(){return pe.pairs}});var We=a(8221);Object.defineProperty(o,"partition",{enumerable:!0,get:function(){return We.partition}});var Ie=a(8181);Object.defineProperty(o,"race",{enumerable:!0,get:function(){return Ie.race}});var Ye=a(4622);Object.defineProperty(o,"range",{enumerable:!0,get:function(){return Ye.range}});var z=a(338);Object.defineProperty(o,"throwError",{enumerable:!0,get:function(){return z.throwError}});var De=a(3271);Object.defineProperty(o,"timer",{enumerable:!0,get:function(){return De.timer}});var Le=a(924);Object.defineProperty(o,"using",{enumerable:!0,get:function(){return Le.using}});var Se=a(4842);Object.defineProperty(o,"zip",{enumerable:!0,get:function(){return Se.zip}});var Fe=a(9341);Object.defineProperty(o,"scheduled",{enumerable:!0,get:function(){return Fe.scheduled}});var ge=a(7406);Object.defineProperty(o,"EMPTY",{enumerable:!0,get:function(){return ge.EMPTY}});var xe=a(2818);Object.defineProperty(o,"NEVER",{enumerable:!0,get:function(){return xe.NEVER}}),p(a(5256),o);var ht=a(3570);Object.defineProperty(o,"config",{enumerable:!0,get:function(){return ht.config}});var Me=a(4815);Object.defineProperty(o,"audit",{enumerable:!0,get:function(){return Me.audit}});var $=a(9034);Object.defineProperty(o,"auditTime",{enumerable:!0,get:function(){return $.auditTime}});var ne=a(8544);Object.defineProperty(o,"buffer",{enumerable:!0,get:function(){return ne.buffer}});var ce=a(3999);Object.defineProperty(o,"bufferCount",{enumerable:!0,get:function(){return ce.bufferCount}});var Te=a(1392);Object.defineProperty(o,"bufferTime",{enumerable:!0,get:function(){return Te.bufferTime}});var He=a(555);Object.defineProperty(o,"bufferToggle",{enumerable:!0,get:function(){return He.bufferToggle}});var dt=a(7274);Object.defineProperty(o,"bufferWhen",{enumerable:!0,get:function(){return dt.bufferWhen}});var xt=a(6e3);Object.defineProperty(o,"catchError",{enumerable:!0,get:function(){return xt.catchError}});var kt=a(8996);Object.defineProperty(o,"combineAll",{enumerable:!0,get:function(){return kt.combineAll}});var Bt=a(8931);Object.defineProperty(o,"combineLatestAll",{enumerable:!0,get:function(){return Bt.combineLatestAll}});var Zt=a(8947);Object.defineProperty(o,"combineLatestWith",{enumerable:!0,get:function(){return Zt.combineLatestWith}});var Ne=a(739);Object.defineProperty(o,"concatAll",{enumerable:!0,get:function(){return Ne.concatAll}});var $e=a(4659);Object.defineProperty(o,"concatMap",{enumerable:!0,get:function(){return $e.concatMap}});var ve=a(2993);Object.defineProperty(o,"concatMapTo",{enumerable:!0,get:function(){return ve.concatMapTo}});var fe=a(5898);Object.defineProperty(o,"concatWith",{enumerable:!0,get:function(){return fe.concatWith}});var ee=a(9725);Object.defineProperty(o,"connect",{enumerable:!0,get:function(){return ee.connect}});var oe=a(1814);Object.defineProperty(o,"count",{enumerable:!0,get:function(){return oe.count}});var L=a(9784);Object.defineProperty(o,"debounce",{enumerable:!0,get:function(){return L.debounce}});var be=a(7061);Object.defineProperty(o,"debounceTime",{enumerable:!0,get:function(){return be.debounceTime}});var ct=a(926);Object.defineProperty(o,"defaultIfEmpty",{enumerable:!0,get:function(){return ct.defaultIfEmpty}});var ke=a(2096);Object.defineProperty(o,"delay",{enumerable:!0,get:function(){return ke.delay}});var pt=a(3264);Object.defineProperty(o,"delayWhen",{enumerable:!0,get:function(){return pt.delayWhen}});var se=a(533);Object.defineProperty(o,"dematerialize",{enumerable:!0,get:function(){return se.dematerialize}});var ye=a(5045);Object.defineProperty(o,"distinct",{enumerable:!0,get:function(){return ye.distinct}});var qe=a(5794);Object.defineProperty(o,"distinctUntilChanged",{enumerable:!0,get:function(){return qe.distinctUntilChanged}});var gt=a(8589);Object.defineProperty(o,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return gt.distinctUntilKeyChanged}});var $t=a(1069);Object.defineProperty(o,"elementAt",{enumerable:!0,get:function(){return $t.elementAt}});var on=a(4312);Object.defineProperty(o,"endWith",{enumerable:!0,get:function(){return on.endWith}});var nn=a(9098);Object.defineProperty(o,"every",{enumerable:!0,get:function(){return nn.every}});var vn=a(5429);Object.defineProperty(o,"exhaust",{enumerable:!0,get:function(){return vn.exhaust}});var Ue=a(1399);Object.defineProperty(o,"exhaustAll",{enumerable:!0,get:function(){return Ue.exhaustAll}});var Ve=a(5183);Object.defineProperty(o,"exhaustMap",{enumerable:!0,get:function(){return Ve.exhaustMap}});var he=a(8678);Object.defineProperty(o,"expand",{enumerable:!0,get:function(){return he.expand}});var Xe=a(4270);Object.defineProperty(o,"filter",{enumerable:!0,get:function(){return Xe.filter}});var mt=a(1587);Object.defineProperty(o,"finalize",{enumerable:!0,get:function(){return mt.finalize}});var _t=a(2265);Object.defineProperty(o,"find",{enumerable:!0,get:function(){return _t.find}});var Pt=a(8195);Object.defineProperty(o,"findIndex",{enumerable:!0,get:function(){return Pt.findIndex}});var Ht=a(8012);Object.defineProperty(o,"first",{enumerable:!0,get:function(){return Ht.first}});var dn=a(4075);Object.defineProperty(o,"groupBy",{enumerable:!0,get:function(){return dn.groupBy}});var On=a(4041);Object.defineProperty(o,"ignoreElements",{enumerable:!0,get:function(){return On.ignoreElements}});var _n=a(6478);Object.defineProperty(o,"isEmpty",{enumerable:!0,get:function(){return _n.isEmpty}});var ue=a(5126);Object.defineProperty(o,"last",{enumerable:!0,get:function(){return ue.last}});var Pe=a(752);Object.defineProperty(o,"map",{enumerable:!0,get:function(){return Pe.map}});var Z=a(2182);Object.defineProperty(o,"mapTo",{enumerable:!0,get:function(){return Z.mapTo}});var Re=a(119);Object.defineProperty(o,"materialize",{enumerable:!0,get:function(){return Re.materialize}});var Ze=a(9329);Object.defineProperty(o,"max",{enumerable:!0,get:function(){return Ze.max}});var Dt=a(3917);Object.defineProperty(o,"mergeAll",{enumerable:!0,get:function(){return Dt.mergeAll}});var Rt=a(1463);Object.defineProperty(o,"flatMap",{enumerable:!0,get:function(){return Rt.flatMap}});var Yt=a(3010);Object.defineProperty(o,"mergeMap",{enumerable:!0,get:function(){return Yt.mergeMap}});var Qt=a(929);Object.defineProperty(o,"mergeMapTo",{enumerable:!0,get:function(){return Qt.mergeMapTo}});var ln=a(2816);Object.defineProperty(o,"mergeScan",{enumerable:!0,get:function(){return ln.mergeScan}});var hn=a(9684);Object.defineProperty(o,"mergeWith",{enumerable:!0,get:function(){return hn.mergeWith}});var gn=a(6250);Object.defineProperty(o,"min",{enumerable:!0,get:function(){return gn.min}});var qt=a(9872);Object.defineProperty(o,"multicast",{enumerable:!0,get:function(){return qt.multicast}});var Rn=a(4928);Object.defineProperty(o,"observeOn",{enumerable:!0,get:function(){return Rn.observeOn}});var ni=a(9526);Object.defineProperty(o,"pairwise",{enumerable:!0,get:function(){return ni.pairwise}});var Jt=a(5199);Object.defineProperty(o,"pluck",{enumerable:!0,get:function(){return Jt.pluck}});var xn=a(955);Object.defineProperty(o,"publish",{enumerable:!0,get:function(){return xn.publish}});var si=a(6750);Object.defineProperty(o,"publishBehavior",{enumerable:!0,get:function(){return si.publishBehavior}});var In=a(1003);Object.defineProperty(o,"publishLast",{enumerable:!0,get:function(){return In.publishLast}});var Wn=a(5530);Object.defineProperty(o,"publishReplay",{enumerable:!0,get:function(){return Wn.publishReplay}});var Qi=a(2992);Object.defineProperty(o,"raceWith",{enumerable:!0,get:function(){return Qi.raceWith}});var Si=a(8587);Object.defineProperty(o,"reduce",{enumerable:!0,get:function(){return Si.reduce}});var Zn=a(8408);Object.defineProperty(o,"repeat",{enumerable:!0,get:function(){return Zn.repeat}});var Hn=a(7032);Object.defineProperty(o,"repeatWhen",{enumerable:!0,get:function(){return Hn.repeatWhen}});var Ci=a(6069);Object.defineProperty(o,"retry",{enumerable:!0,get:function(){return Ci.retry}});var fr=a(5131);Object.defineProperty(o,"retryWhen",{enumerable:!0,get:function(){return fr.retryWhen}});var Vi=a(904);Object.defineProperty(o,"refCount",{enumerable:!0,get:function(){return Vi.refCount}});var $i=a(2531);Object.defineProperty(o,"sample",{enumerable:!0,get:function(){return $i.sample}});var hr=a(2098);Object.defineProperty(o,"sampleTime",{enumerable:!0,get:function(){return hr.sampleTime}});var Rr=a(251);Object.defineProperty(o,"scan",{enumerable:!0,get:function(){return Rr.scan}});var xr=a(9788);Object.defineProperty(o,"sequenceEqual",{enumerable:!0,get:function(){return xr.sequenceEqual}});var Jn=a(3222);Object.defineProperty(o,"share",{enumerable:!0,get:function(){return Jn.share}});var qr=a(2186);Object.defineProperty(o,"shareReplay",{enumerable:!0,get:function(){return qr.shareReplay}});var Hi=a(695);Object.defineProperty(o,"single",{enumerable:!0,get:function(){return Hi.single}});var pr=a(4975);Object.defineProperty(o,"skip",{enumerable:!0,get:function(){return pr.skip}});var Ii=a(728);Object.defineProperty(o,"skipLast",{enumerable:!0,get:function(){return Ii.skipLast}});var Fr=a(7409);Object.defineProperty(o,"skipUntil",{enumerable:!0,get:function(){return Fr.skipUntil}});var Ui=a(385);Object.defineProperty(o,"skipWhile",{enumerable:!0,get:function(){return Ui.skipWhile}});var mr=a(4930);Object.defineProperty(o,"startWith",{enumerable:!0,get:function(){return mr.startWith}});var Ur=a(1698);Object.defineProperty(o,"subscribeOn",{enumerable:!0,get:function(){return Ur.subscribeOn}});var Oi=a(8044);Object.defineProperty(o,"switchAll",{enumerable:!0,get:function(){return Oi.switchAll}});var zr=a(986);Object.defineProperty(o,"switchMap",{enumerable:!0,get:function(){return zr.switchMap}});var Di=a(9309);Object.defineProperty(o,"switchMapTo",{enumerable:!0,get:function(){return Di.switchMapTo}});var Zi=a(9499);Object.defineProperty(o,"switchScan",{enumerable:!0,get:function(){return Zi.switchScan}});var Ai=a(1333);Object.defineProperty(o,"take",{enumerable:!0,get:function(){return Ai.take}});var Ji=a(3534);Object.defineProperty(o,"takeLast",{enumerable:!0,get:function(){return Ji.takeLast}});var Pi=a(5716);Object.defineProperty(o,"takeUntil",{enumerable:!0,get:function(){return Pi.takeUntil}});var mi=a(9928);Object.defineProperty(o,"takeWhile",{enumerable:!0,get:function(){return mi.takeWhile}});var Xi=a(6821);Object.defineProperty(o,"tap",{enumerable:!0,get:function(){return Xi.tap}});var Ei=a(4330);Object.defineProperty(o,"throttle",{enumerable:!0,get:function(){return Ei.throttle}});var qi=a(4029);Object.defineProperty(o,"throttleTime",{enumerable:!0,get:function(){return qi.throttleTime}});var er=a(9194);Object.defineProperty(o,"throwIfEmpty",{enumerable:!0,get:function(){return er.throwIfEmpty}});var gr=a(5904);Object.defineProperty(o,"timeInterval",{enumerable:!0,get:function(){return gr.timeInterval}});var gi=a(5001);Object.defineProperty(o,"timeout",{enumerable:!0,get:function(){return gi.timeout}});var Ti=a(8308);Object.defineProperty(o,"timeoutWith",{enumerable:!0,get:function(){return Ti.timeoutWith}});var vr=a(250);Object.defineProperty(o,"timestamp",{enumerable:!0,get:function(){return vr.timestamp}});var tr=a(2976);Object.defineProperty(o,"toArray",{enumerable:!0,get:function(){return tr.toArray}});var yr=a(9374);Object.defineProperty(o,"window",{enumerable:!0,get:function(){return yr.window}});var Xn=a(8427);Object.defineProperty(o,"windowCount",{enumerable:!0,get:function(){return Xn.windowCount}});var ai=a(2358);Object.defineProperty(o,"windowTime",{enumerable:!0,get:function(){return ai.windowTime}});var nr=a(6464);Object.defineProperty(o,"windowToggle",{enumerable:!0,get:function(){return nr.windowToggle}});var Ri=a(5424);Object.defineProperty(o,"windowWhen",{enumerable:!0,get:function(){return Ri.windowWhen}});var _r=a(135);Object.defineProperty(o,"withLatestFrom",{enumerable:!0,get:function(){return _r.withLatestFrom}});var wi=a(8101);Object.defineProperty(o,"zipAll",{enumerable:!0,get:function(){return wi.zipAll}});var wn=a(9411);Object.defineProperty(o,"zipWith",{enumerable:!0,get:function(){return wn.zipWith}})},7606:function(H,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)});Object.defineProperty(o,"__esModule",{value:!0}),o.AsyncSubject=void 0;var b=function(u){function r(){var c=null!==u&&u.apply(this,arguments)||this;return c._value=null,c._hasValue=!1,c._isComplete=!1,c}return n(r,u),r.prototype._checkFinalizedStatuses=function(c){var f=this,m=f._hasValue,d=f._value,v=f.isStopped,y=f._isComplete;f.hasError?c.error(f.thrownError):(v||y)&&(m&&c.next(d),c.complete())},r.prototype.next=function(c){this.isStopped||(this._value=c,this._hasValue=!0)},r.prototype.complete=function(){var c=this,f=c._hasValue,h=c._value;c._isComplete||(this._isComplete=!0,f&&u.prototype.next.call(this,h),u.prototype.complete.call(this))},r}(a(3768).Subject);o.AsyncSubject=b},5482:function(H,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)});Object.defineProperty(o,"__esModule",{value:!0}),o.BehaviorSubject=void 0;var b=function(u){function r(c){var f=u.call(this)||this;return f._value=c,f}return n(r,u),Object.defineProperty(r.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),r.prototype._subscribe=function(c){var f=u.prototype._subscribe.call(this,c);return!f.closed&&c.next(this._value),f},r.prototype.getValue=function(){var c=this,m=c._value;if(c.hasError)throw c.thrownError;return this._throwIfClosed(),m},r.prototype.next=function(c){u.prototype.next.call(this,this._value=c)},r}(a(3768).Subject);o.BehaviorSubject=b},7262:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.observeNotification=o.Notification=o.NotificationKind=void 0;var h,n=a(7406),p=a(9677),b=a(338),u=a(7104);(h=o.NotificationKind||(o.NotificationKind={})).NEXT="N",h.ERROR="E",h.COMPLETE="C";var c=function(){function h(m,d,_){this.kind=m,this.value=d,this.error=_,this.hasValue="N"===m}return h.prototype.observe=function(m){return f(this,m)},h.prototype.do=function(m,d,_){var v=this,y=v.kind,M=v.error;return"N"===y?null==m?void 0:m(v.value):"E"===y?null==d?void 0:d(M):null==_?void 0:_()},h.prototype.accept=function(m,d,_){var v;return u.isFunction(null===(v=m)||void 0===v?void 0:v.next)?this.observe(m):this.do(m,d,_)},h.prototype.toObservable=function(){var m=this,d=m.kind,v=m.error,y="N"===d?p.of(m.value):"E"===d?b.throwError(function(){return v}):"C"===d?n.EMPTY:0;if(!y)throw new TypeError("Unexpected notification kind "+d);return y},h.createNext=function(m){return new h("N",m)},h.createError=function(m){return new h("E",void 0,m)},h.createComplete=function(){return h.completeNotification},h.completeNotification=new h("C"),h}();function f(h,m){var d,_,v,E=h.kind,M=h.value,A=h.error;if("string"!=typeof E)throw new TypeError('Invalid notification, missing "kind"');"N"===E?null===(d=m.next)||void 0===d||d.call(m,M):"E"===E?null===(_=m.error)||void 0===_||_.call(m,A):null===(v=m.complete)||void 0===v||v.call(m)}o.Notification=c,o.observeNotification=f},6941:(H,o)=>{"use strict";function p(b,u,r){return{kind:b,value:u,error:r}}Object.defineProperty(o,"__esModule",{value:!0}),o.createNotification=o.nextNotification=o.errorNotification=o.COMPLETE_NOTIFICATION=void 0,o.COMPLETE_NOTIFICATION=p("C",void 0,void 0),o.errorNotification=function a(b){return p("E",void 0,b)},o.nextNotification=function n(b){return p("N",b,void 0)},o.createNotification=p},5821:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Observable=void 0;var n=a(7052),p=a(6448),b=a(1689),u=a(1471),r=a(3570),c=a(7104),f=a(5808),h=function(){function v(y){y&&(this._subscribe=y)}return v.prototype.lift=function(y){var E=new v;return E.source=this,E.operator=y,E},v.prototype.subscribe=function(y,E,M){var A=this,k=function _(v){return v&&v instanceof n.Subscriber||function d(v){return v&&c.isFunction(v.next)&&c.isFunction(v.error)&&c.isFunction(v.complete)}(v)&&p.isSubscription(v)}(y)?y:new n.SafeSubscriber(y,E,M);return f.errorContext(function(){var Y=A.operator,U=A.source;k.add(Y?Y.call(k,U):U?A._subscribe(k):A._trySubscribe(k))}),k},v.prototype._trySubscribe=function(y){try{return this._subscribe(y)}catch(E){y.error(E)}},v.prototype.forEach=function(y,E){var M=this;return new(E=m(E))(function(A,k){var j=new n.SafeSubscriber({next:function(Y){try{y(Y)}catch(U){k(U),j.unsubscribe()}},error:k,complete:A});M.subscribe(j)})},v.prototype._subscribe=function(y){var E;return null===(E=this.source)||void 0===E?void 0:E.subscribe(y)},v.prototype[b.observable]=function(){return this},v.prototype.pipe=function(){for(var y=[],E=0;E<arguments.length;E++)y[E]=arguments[E];return u.pipeFromArray(y)(this)},v.prototype.toPromise=function(y){var E=this;return new(y=m(y))(function(M,A){var k;E.subscribe(function(j){return k=j},function(j){return A(j)},function(){return M(k)})})},v.create=function(y){return new v(y)},v}();function m(v){var y;return null!==(y=null!=v?v:r.config.Promise)&&void 0!==y?y:Promise}o.Observable=h},3406:function(H,o,a){"use strict";var r,n=this&&this.__extends||(r=function(c,f){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&(h[d]=m[d])})(c,f)},function(c,f){if("function"!=typeof f&&null!==f)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function h(){this.constructor=c}r(c,f),c.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)});Object.defineProperty(o,"__esModule",{value:!0}),o.ReplaySubject=void 0;var p=a(3768),b=a(8354),u=function(r){function c(f,h,m){void 0===f&&(f=1/0),void 0===h&&(h=1/0),void 0===m&&(m=b.dateTimestampProvider);var d=r.call(this)||this;return d._bufferSize=f,d._windowTime=h,d._timestampProvider=m,d._buffer=[],d._infiniteTimeWindow=!0,d._infiniteTimeWindow=h===1/0,d._bufferSize=Math.max(1,f),d._windowTime=Math.max(1,h),d}return n(c,r),c.prototype.next=function(f){var h=this,d=h._buffer,_=h._infiniteTimeWindow,v=h._timestampProvider,y=h._windowTime;h.isStopped||(d.push(f),!_&&d.push(v.now()+y)),this._trimBuffer(),r.prototype.next.call(this,f)},c.prototype._subscribe=function(f){this._throwIfClosed(),this._trimBuffer();for(var h=this._innerSubscribe(f),d=this._infiniteTimeWindow,v=this._buffer.slice(),y=0;y<v.length&&!f.closed;y+=d?1:2)f.next(v[y]);return this._checkFinalizedStatuses(f),h},c.prototype._trimBuffer=function(){var f=this,h=f._bufferSize,m=f._timestampProvider,d=f._buffer,_=f._infiniteTimeWindow,v=(_?1:2)*h;if(h<1/0&&v<d.length&&d.splice(0,d.length-v),!_){for(var y=m.now(),E=0,M=1;M<d.length&&d[M]<=y;M+=2)E=M;E&&d.splice(0,E+1)}},c}(p.Subject);o.ReplaySubject=u},2716:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.Scheduler=void 0;var n=a(8354),p=function(){function b(u,r){void 0===r&&(r=b.now),this.schedulerActionCtor=u,this.now=r}return b.prototype.schedule=function(u,r,c){return void 0===r&&(r=0),new this.schedulerActionCtor(this,u).schedule(c,r)},b.now=n.dateTimestampProvider.now,b}();o.Scheduler=p},3768:function(H,o,a){"use strict";var d,n=this&&this.__extends||(d=function(_,v){return(d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var M in E)Object.prototype.hasOwnProperty.call(E,M)&&(y[M]=E[M])})(_,v)},function(_,v){if("function"!=typeof v&&null!==v)throw new TypeError("Class extends value "+String(v)+" is not a constructor or null");function y(){this.constructor=_}d(_,v),_.prototype=null===v?Object.create(v):(y.prototype=v.prototype,new y)}),p=this&&this.__values||function(d){var _="function"==typeof Symbol&&Symbol.iterator,v=_&&d[_],y=0;if(v)return v.call(d);if(d&&"number"==typeof d.length)return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.AnonymousSubject=o.Subject=void 0;var b=a(5821),u=a(6448),r=a(3965),c=a(5137),f=a(5808),h=function(d){function _(){var v=d.call(this)||this;return v.closed=!1,v.currentObservers=null,v.observers=[],v.isStopped=!1,v.hasError=!1,v.thrownError=null,v}return n(_,d),_.prototype.lift=function(v){var y=new m(this,this);return y.operator=v,y},_.prototype._throwIfClosed=function(){if(this.closed)throw new r.ObjectUnsubscribedError},_.prototype.next=function(v){var y=this;f.errorContext(function(){var E,M;if(y._throwIfClosed(),!y.isStopped){y.currentObservers||(y.currentObservers=Array.from(y.observers));try{for(var A=p(y.currentObservers),k=A.next();!k.done;k=A.next())k.value.next(v)}catch(Y){E={error:Y}}finally{try{k&&!k.done&&(M=A.return)&&M.call(A)}finally{if(E)throw E.error}}}})},_.prototype.error=function(v){var y=this;f.errorContext(function(){if(y._throwIfClosed(),!y.isStopped){y.hasError=y.isStopped=!0,y.thrownError=v;for(var E=y.observers;E.length;)E.shift().error(v)}})},_.prototype.complete=function(){var v=this;f.errorContext(function(){if(v._throwIfClosed(),!v.isStopped){v.isStopped=!0;for(var y=v.observers;y.length;)y.shift().complete()}})},_.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(_.prototype,"observed",{get:function(){var v;return(null===(v=this.observers)||void 0===v?void 0:v.length)>0},enumerable:!1,configurable:!0}),_.prototype._trySubscribe=function(v){return this._throwIfClosed(),d.prototype._trySubscribe.call(this,v)},_.prototype._subscribe=function(v){return this._throwIfClosed(),this._checkFinalizedStatuses(v),this._innerSubscribe(v)},_.prototype._innerSubscribe=function(v){var y=this,E=this,k=E.observers;return E.hasError||E.isStopped?u.EMPTY_SUBSCRIPTION:(this.currentObservers=null,k.push(v),new u.Subscription(function(){y.currentObservers=null,c.arrRemove(k,v)}))},_.prototype._checkFinalizedStatuses=function(v){var y=this,A=y.isStopped;y.hasError?v.error(y.thrownError):A&&v.complete()},_.prototype.asObservable=function(){var v=new b.Observable;return v.source=this,v},_.create=function(v,y){return new m(v,y)},_}(b.Observable);o.Subject=h;var m=function(d){function _(v,y){var E=d.call(this)||this;return E.destination=v,E.source=y,E}return n(_,d),_.prototype.next=function(v){var y,E;null===(E=null===(y=this.destination)||void 0===y?void 0:y.next)||void 0===E||E.call(y,v)},_.prototype.error=function(v){var y,E;null===(E=null===(y=this.destination)||void 0===y?void 0:y.error)||void 0===E||E.call(y,v)},_.prototype.complete=function(){var v,y;null===(y=null===(v=this.destination)||void 0===v?void 0:v.complete)||void 0===y||y.call(v)},_.prototype._subscribe=function(v){var y,E;return null!==(E=null===(y=this.source)||void 0===y?void 0:y.subscribe(v))&&void 0!==E?E:u.EMPTY_SUBSCRIPTION},_}(h);o.AnonymousSubject=m},7052:function(H,o,a){"use strict";var j,n=this&&this.__extends||(j=function(Y,U){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,V){Q.__proto__=V}||function(Q,V){for(var X in V)Object.prototype.hasOwnProperty.call(V,X)&&(Q[X]=V[X])})(Y,U)},function(Y,U){if("function"!=typeof U&&null!==U)throw new TypeError("Class extends value "+String(U)+" is not a constructor or null");function Q(){this.constructor=Y}j(Y,U),Y.prototype=null===U?Object.create(U):(Q.prototype=U.prototype,new Q)});Object.defineProperty(o,"__esModule",{value:!0}),o.EMPTY_OBSERVER=o.SafeSubscriber=o.Subscriber=void 0;var p=a(7104),b=a(6448),u=a(3570),r=a(4709),c=a(31),f=a(6941),h=a(3914),m=a(5808),d=function(j){function Y(U){var Q=j.call(this)||this;return Q.isStopped=!1,U?(Q.destination=U,b.isSubscription(U)&&U.add(Q)):Q.destination=o.EMPTY_OBSERVER,Q}return n(Y,j),Y.create=function(U,Q,V){return new E(U,Q,V)},Y.prototype.next=function(U){this.isStopped?k(f.nextNotification(U),this):this._next(U)},Y.prototype.error=function(U){this.isStopped?k(f.errorNotification(U),this):(this.isStopped=!0,this._error(U))},Y.prototype.complete=function(){this.isStopped?k(f.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},Y.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,j.prototype.unsubscribe.call(this),this.destination=null)},Y.prototype._next=function(U){this.destination.next(U)},Y.prototype._error=function(U){try{this.destination.error(U)}finally{this.unsubscribe()}},Y.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Y}(b.Subscription);o.Subscriber=d;var _=Function.prototype.bind;function v(j,Y){return _.call(j,Y)}var y=function(){function j(Y){this.partialObserver=Y}return j.prototype.next=function(Y){var U=this.partialObserver;if(U.next)try{U.next(Y)}catch(Q){M(Q)}},j.prototype.error=function(Y){var U=this.partialObserver;if(U.error)try{U.error(Y)}catch(Q){M(Q)}else M(Y)},j.prototype.complete=function(){var Y=this.partialObserver;if(Y.complete)try{Y.complete()}catch(U){M(U)}},j}(),E=function(j){function Y(U,Q,V){var re,me,X=j.call(this)||this;return p.isFunction(U)||!U?re={next:null!=U?U:void 0,error:null!=Q?Q:void 0,complete:null!=V?V:void 0}:X&&u.config.useDeprecatedNextContext?((me=Object.create(U)).unsubscribe=function(){return X.unsubscribe()},re={next:U.next&&v(U.next,me),error:U.error&&v(U.error,me),complete:U.complete&&v(U.complete,me)}):re=U,X.destination=new y(re),X}return n(Y,j),Y}(d);function M(j){u.config.useDeprecatedSynchronousErrorHandling?m.captureError(j):r.reportUnhandledError(j)}function k(j,Y){var U=u.config.onStoppedNotification;U&&h.timeoutProvider.setTimeout(function(){return U(j,Y)})}o.SafeSubscriber=E,o.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function A(j){throw j},complete:c.noop}},6448:function(H,o,a){"use strict";var n=this&&this.__values||function(d){var _="function"==typeof Symbol&&Symbol.iterator,v=_&&d[_],y=0;if(v)return v.call(d);if(d&&"number"==typeof d.length)return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(d,_){var v="function"==typeof Symbol&&d[Symbol.iterator];if(!v)return d;var E,A,y=v.call(d),M=[];try{for(;(void 0===_||_-- >0)&&!(E=y.next()).done;)M.push(E.value)}catch(k){A={error:k}}finally{try{E&&!E.done&&(v=y.return)&&v.call(y)}finally{if(A)throw A.error}}return M},b=this&&this.__spreadArray||function(d,_){for(var v=0,y=_.length,E=d.length;v<y;v++,E++)d[E]=_[v];return d};Object.defineProperty(o,"__esModule",{value:!0}),o.isSubscription=o.EMPTY_SUBSCRIPTION=o.Subscription=void 0;var u=a(7104),r=a(4970),c=a(5137),f=function(){function d(_){this.initialTeardown=_,this.closed=!1,this._parentage=null,this._finalizers=null}return d.prototype.unsubscribe=function(){var _,v,y,E,M;if(!this.closed){this.closed=!0;var A=this._parentage;if(A)if(this._parentage=null,Array.isArray(A))try{for(var k=n(A),j=k.next();!j.done;j=k.next())j.value.remove(this)}catch(me){_={error:me}}finally{try{j&&!j.done&&(v=k.return)&&v.call(k)}finally{if(_)throw _.error}}else A.remove(this);var U=this.initialTeardown;if(u.isFunction(U))try{U()}catch(me){M=me instanceof r.UnsubscriptionError?me.errors:[me]}var Q=this._finalizers;if(Q){this._finalizers=null;try{for(var V=n(Q),X=V.next();!X.done;X=V.next()){var re=X.value;try{m(re)}catch(me){M=null!=M?M:[],me instanceof r.UnsubscriptionError?M=b(b([],p(M)),p(me.errors)):M.push(me)}}}catch(me){y={error:me}}finally{try{X&&!X.done&&(E=V.return)&&E.call(V)}finally{if(y)throw y.error}}}if(M)throw new r.UnsubscriptionError(M)}},d.prototype.add=function(_){var v;if(_&&_!==this)if(this.closed)m(_);else{if(_ instanceof d){if(_.closed||_._hasParent(this))return;_._addParent(this)}(this._finalizers=null!==(v=this._finalizers)&&void 0!==v?v:[]).push(_)}},d.prototype._hasParent=function(_){var v=this._parentage;return v===_||Array.isArray(v)&&v.includes(_)},d.prototype._addParent=function(_){var v=this._parentage;this._parentage=Array.isArray(v)?(v.push(_),v):v?[v,_]:_},d.prototype._removeParent=function(_){var v=this._parentage;v===_?this._parentage=null:Array.isArray(v)&&c.arrRemove(v,_)},d.prototype.remove=function(_){var v=this._finalizers;v&&c.arrRemove(v,_),_ instanceof d&&_._removeParent(this)},d.EMPTY=((_=new d).closed=!0,_),d;var _}();function m(d){u.isFunction(d)?d():d.unsubscribe()}o.Subscription=f,o.EMPTY_SUBSCRIPTION=f.EMPTY,o.isSubscription=function h(d){return d instanceof f||d&&"closed"in d&&u.isFunction(d.remove)&&u.isFunction(d.add)&&u.isFunction(d.unsubscribe)}},3570:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.config=void 0,o.config={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},5754:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.firstValueFrom=void 0;var n=a(8915),p=a(7052);o.firstValueFrom=function b(u,r){var c="object"==typeof r;return new Promise(function(f,h){var m=new p.SafeSubscriber({next:function(d){f(d),m.unsubscribe()},error:h,complete:function(){c?f(r.defaultValue):h(new n.EmptyError)}});u.subscribe(m)})}},5257:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.lastValueFrom=void 0;var n=a(8915);o.lastValueFrom=function p(b,u){var r="object"==typeof u;return new Promise(function(c,f){var m,h=!1;b.subscribe({next:function(d){m=d,h=!0},error:f,complete:function(){h?c(m):r?c(u.defaultValue):f(new n.EmptyError)}})})}},6686:function(H,o,a){"use strict";var h,n=this&&this.__extends||(h=function(m,d){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,v){_.__proto__=v}||function(_,v){for(var y in v)Object.prototype.hasOwnProperty.call(v,y)&&(_[y]=v[y])})(m,d)},function(m,d){if("function"!=typeof d&&null!==d)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function _(){this.constructor=m}h(m,d),m.prototype=null===d?Object.create(d):(_.prototype=d.prototype,new _)});Object.defineProperty(o,"__esModule",{value:!0}),o.ConnectableObservable=void 0;var p=a(5821),b=a(6448),u=a(904),r=a(3173),c=a(9216),f=function(h){function m(d,_){var v=h.call(this)||this;return v.source=d,v.subjectFactory=_,v._subject=null,v._refCount=0,v._connection=null,c.hasLift(d)&&(v.lift=d.lift),v}return n(m,h),m.prototype._subscribe=function(d){return this.getSubject().subscribe(d)},m.prototype.getSubject=function(){var d=this._subject;return(!d||d.isStopped)&&(this._subject=this.subjectFactory()),this._subject},m.prototype._teardown=function(){this._refCount=0;var d=this._connection;this._subject=this._connection=null,null==d||d.unsubscribe()},m.prototype.connect=function(){var d=this,_=this._connection;if(!_){_=this._connection=new b.Subscription;var v=this.getSubject();_.add(this.source.subscribe(r.createOperatorSubscriber(v,void 0,function(){d._teardown(),v.complete()},function(y){d._teardown(),v.error(y)},function(){return d._teardown()}))),_.closed&&(this._connection=null,_=b.Subscription.EMPTY)}return _},m.prototype.refCount=function(){return u.refCount()(this)},m}(p.Observable);o.ConnectableObservable=f},7532:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.bindCallback=void 0;var n=a(4832);o.bindCallback=function p(b,u,r){return n.bindCallbackInternals(!1,b,u,r)}},4832:function(H,o,a){"use strict";var n=this&&this.__read||function(d,_){var v="function"==typeof Symbol&&d[Symbol.iterator];if(!v)return d;var E,A,y=v.call(d),M=[];try{for(;(void 0===_||_-- >0)&&!(E=y.next()).done;)M.push(E.value)}catch(k){A={error:k}}finally{try{E&&!E.done&&(v=y.return)&&v.call(y)}finally{if(A)throw A.error}}return M},p=this&&this.__spreadArray||function(d,_){for(var v=0,y=_.length,E=d.length;v<y;v++,E++)d[E]=_[v];return d};Object.defineProperty(o,"__esModule",{value:!0}),o.bindCallbackInternals=void 0;var b=a(1875),u=a(5821),r=a(1698),c=a(5280),f=a(4928),h=a(7606);o.bindCallbackInternals=function m(d,_,v,y){if(v){if(!b.isScheduler(v))return function(){for(var E=[],M=0;M<arguments.length;M++)E[M]=arguments[M];return m(d,_,y).apply(this,E).pipe(c.mapOneOrManyArgs(v))};y=v}return y?function(){for(var E=[],M=0;M<arguments.length;M++)E[M]=arguments[M];return m(d,_).apply(this,E).pipe(r.subscribeOn(y),f.observeOn(y))}:function(){for(var E=this,M=[],A=0;A<arguments.length;A++)M[A]=arguments[A];var k=new h.AsyncSubject,j=!0;return new u.Observable(function(Y){var U=k.subscribe(Y);if(j){j=!1;var Q=!1,V=!1;_.apply(E,p(p([],n(M)),[function(){for(var X=[],re=0;re<arguments.length;re++)X[re]=arguments[re];if(d){var me=X.shift();if(null!=me)return void k.error(me)}k.next(1<X.length?X:X[0]),V=!0,Q&&k.complete()}])),V&&k.complete(),Q=!0}return U})}}},3488:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.bindNodeCallback=void 0;var n=a(4832);o.bindNodeCallback=function p(b,u,r){return n.bindCallbackInternals(!0,b,u,r)}},6892:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.combineLatestInit=o.combineLatest=void 0;var n=a(5821),p=a(9923),b=a(4996),u=a(7884),r=a(5280),c=a(1642),f=a(7598),h=a(3173),m=a(2590);function _(y,E,M){return void 0===M&&(M=u.identity),function(A){v(E,function(){for(var k=y.length,j=new Array(k),Y=k,U=k,Q=function(X){v(E,function(){var re=b.from(y[X],E),me=!1;re.subscribe(h.createOperatorSubscriber(A,function(we){j[X]=we,me||(me=!0,U--),U||A.next(M(j.slice()))},function(){--Y||A.complete()}))},A)},V=0;V<k;V++)Q(V)},A)}}function v(y,E,M){y?m.executeSchedule(M,y,E):E()}o.combineLatest=function d(){for(var y=[],E=0;E<arguments.length;E++)y[E]=arguments[E];var M=c.popScheduler(y),A=c.popResultSelector(y),k=p.argsArgArrayOrObject(y),j=k.args,Y=k.keys;if(0===j.length)return b.from([],M);var U=new n.Observable(_(j,M,Y?function(Q){return f.createObject(Y,Q)}:u.identity));return A?U.pipe(r.mapOneOrManyArgs(A)):U},o.combineLatestInit=_},509:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.concat=void 0;var n=a(739),p=a(1642),b=a(4996);o.concat=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return n.concatAll()(b.from(r,p.popScheduler(r)))}},9190:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.connectable=void 0;var n=a(3768),p=a(5821),b=a(9954),u={connector:function(){return new n.Subject},resetOnDisconnect:!0};o.connectable=function r(c,f){void 0===f&&(f=u);var h=null,m=f.connector,d=f.resetOnDisconnect,_=void 0===d||d,v=m(),y=new p.Observable(function(E){return v.subscribe(E)});return y.connect=function(){return(!h||h.closed)&&(h=b.defer(function(){return c}).subscribe(v),_&&h.add(function(){return v=m()})),h},y}},9954:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.defer=void 0;var n=a(5821),p=a(8767);o.defer=function b(u){return new n.Observable(function(r){p.innerFrom(u()).subscribe(r)})}},2946:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.animationFrames=void 0;var n=a(5821),p=a(6448),b=a(1038),u=a(6343);function c(h){var m=u.animationFrameProvider.schedule;return new n.Observable(function(d){var _=new p.Subscription,v=h||b.performanceTimestampProvider,y=v.now(),E=function(M){var A=v.now();d.next({timestamp:h?A:M,elapsed:A-y}),d.closed||_.add(m(E))};return _.add(m(E)),_})}o.animationFrames=function r(h){return h?c(h):f};var f=c()},7406:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.empty=o.EMPTY=void 0;var n=a(5821);o.EMPTY=new n.Observable(function(u){return u.complete()}),o.empty=function p(u){return u?function b(u){return new n.Observable(function(r){return u.schedule(function(){return r.complete()})})}(u):o.EMPTY}},7928:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.forkJoin=void 0;var n=a(5821),p=a(9923),b=a(8767),u=a(1642),r=a(3173),c=a(5280),f=a(7598);o.forkJoin=function h(){for(var m=[],d=0;d<arguments.length;d++)m[d]=arguments[d];var _=u.popResultSelector(m),v=p.argsArgArrayOrObject(m),y=v.args,E=v.keys,M=new n.Observable(function(A){var k=y.length;if(k)for(var j=new Array(k),Y=k,U=k,Q=function(X){var re=!1;b.innerFrom(y[X]).subscribe(r.createOperatorSubscriber(A,function(me){re||(re=!0,U--),j[X]=me},function(){return Y--},void 0,function(){(!Y||!re)&&(U||A.next(E?f.createObject(E,j):j),A.complete())}))},V=0;V<k;V++)Q(V);else A.complete()});return _?M.pipe(c.mapOneOrManyArgs(_)):M}},4996:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.from=void 0;var n=a(9341),p=a(8767);o.from=function b(u,r){return r?n.scheduled(u,r):p.innerFrom(u)}},2579:function(H,o,a){"use strict";var n=this&&this.__read||function(A,k){var j="function"==typeof Symbol&&A[Symbol.iterator];if(!j)return A;var U,V,Y=j.call(A),Q=[];try{for(;(void 0===k||k-- >0)&&!(U=Y.next()).done;)Q.push(U.value)}catch(X){V={error:X}}finally{try{U&&!U.done&&(j=Y.return)&&j.call(Y)}finally{if(V)throw V.error}}return Q};Object.defineProperty(o,"__esModule",{value:!0}),o.fromEvent=void 0;var p=a(8767),b=a(5821),u=a(3010),r=a(697),c=a(7104),f=a(5280),h=["addListener","removeListener"],m=["addEventListener","removeEventListener"],d=["on","off"];function v(A,k){return function(j){return function(Y){return A[j](k,Y)}}}o.fromEvent=function _(A,k,j,Y){if(c.isFunction(j)&&(Y=j,j=void 0),Y)return _(A,k,j).pipe(f.mapOneOrManyArgs(Y));var U=n(function M(A){return c.isFunction(A.addEventListener)&&c.isFunction(A.removeEventListener)}(A)?m.map(function(X){return function(re){return A[X](k,re,j)}}):function y(A){return c.isFunction(A.addListener)&&c.isFunction(A.removeListener)}(A)?h.map(v(A,k)):function E(A){return c.isFunction(A.on)&&c.isFunction(A.off)}(A)?d.map(v(A,k)):[],2),Q=U[0],V=U[1];if(!Q&&r.isArrayLike(A))return u.mergeMap(function(X){return _(X,k,j)})(p.innerFrom(A));if(!Q)throw new TypeError("Invalid event target");return new b.Observable(function(X){var re=function(){for(var me=[],we=0;we<arguments.length;we++)me[we]=arguments[we];return X.next(1<me.length?me:me[0])};return Q(re),function(){return V(re)}})}},3975:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.fromEventPattern=void 0;var n=a(5821),p=a(7104),b=a(5280);o.fromEventPattern=function u(r,c,f){return f?u(r,c).pipe(b.mapOneOrManyArgs(f)):new n.Observable(function(h){var m=function(){for(var _=[],v=0;v<arguments.length;v++)_[v]=arguments[v];return h.next(1===_.length?_[0]:_)},d=r(m);return p.isFunction(c)?function(){return c(m,d)}:void 0})}},5107:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.fromSubscribable=void 0;var n=a(5821);o.fromSubscribable=function p(b){return new n.Observable(function(u){return b.subscribe(u)})}},4318:function(H,o,a){"use strict";var n=this&&this.__generator||function(f,h){var d,_,v,y,m={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return y={next:E(0),throw:E(1),return:E(2)},"function"==typeof Symbol&&(y[Symbol.iterator]=function(){return this}),y;function E(A){return function(k){return function M(A){if(d)throw new TypeError("Generator is already executing.");for(;m;)try{if(d=1,_&&(v=2&A[0]?_.return:A[0]?_.throw||((v=_.return)&&v.call(_),0):_.next)&&!(v=v.call(_,A[1])).done)return v;switch(_=0,v&&(A=[2&A[0],v.value]),A[0]){case 0:case 1:v=A;break;case 4:return m.label++,{value:A[1],done:!1};case 5:m.label++,_=A[1],A=[0];continue;case 7:A=m.ops.pop(),m.trys.pop();continue;default:if(!(v=(v=m.trys).length>0&&v[v.length-1])&&(6===A[0]||2===A[0])){m=0;continue}if(3===A[0]&&(!v||A[1]>v[0]&&A[1]<v[3])){m.label=A[1];break}if(6===A[0]&&m.label<v[1]){m.label=v[1],v=A;break}if(v&&m.label<v[2]){m.label=v[2],m.ops.push(A);break}v[2]&&m.ops.pop(),m.trys.pop();continue}A=h.call(f,m)}catch(k){A=[6,k],_=0}finally{d=v=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}([A,k])}}};Object.defineProperty(o,"__esModule",{value:!0}),o.generate=void 0;var p=a(7884),b=a(1875),u=a(9954),r=a(9049);o.generate=function c(f,h,m,d,_){var v,y,E,M;function A(){var k;return n(this,function(j){switch(j.label){case 0:k=M,j.label=1;case 1:return!h||h(k)?[4,E(k)]:[3,4];case 2:j.sent(),j.label=3;case 3:return k=m(k),[3,1];case 4:return[2]}})}return 1===arguments.length?(M=(v=f).initialState,h=v.condition,m=v.iterate,E=void 0===(y=v.resultSelector)?p.identity:y,_=v.scheduler):(M=f,!d||b.isScheduler(d)?(E=p.identity,_=d):E=d),u.defer(_?function(){return r.scheduleIterable(A(),_)}:A)}},3140:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.iif=void 0;var n=a(9954);o.iif=function p(b,u,r){return n.defer(function(){return b()?u:r})}},8767:function(H,o,a){"use strict";var n=this&&this.__awaiter||function(re,me,we,tt){return new(we||(we=Promise))(function(q,B){function ae(it){try{_e(tt.next(it))}catch(rt){B(rt)}}function de(it){try{_e(tt.throw(it))}catch(rt){B(rt)}}function _e(it){it.done?q(it.value):function G(q){return q instanceof we?q:new we(function(B){B(q)})}(it.value).then(ae,de)}_e((tt=tt.apply(re,me||[])).next())})},p=this&&this.__generator||function(re,me){var tt,G,q,B,we={label:0,sent:function(){if(1&q[0])throw q[1];return q[1]},trys:[],ops:[]};return B={next:ae(0),throw:ae(1),return:ae(2)},"function"==typeof Symbol&&(B[Symbol.iterator]=function(){return this}),B;function ae(_e){return function(it){return function de(_e){if(tt)throw new TypeError("Generator is already executing.");for(;we;)try{if(tt=1,G&&(q=2&_e[0]?G.return:_e[0]?G.throw||((q=G.return)&&q.call(G),0):G.next)&&!(q=q.call(G,_e[1])).done)return q;switch(G=0,q&&(_e=[2&_e[0],q.value]),_e[0]){case 0:case 1:q=_e;break;case 4:return we.label++,{value:_e[1],done:!1};case 5:we.label++,G=_e[1],_e=[0];continue;case 7:_e=we.ops.pop(),we.trys.pop();continue;default:if(!(q=(q=we.trys).length>0&&q[q.length-1])&&(6===_e[0]||2===_e[0])){we=0;continue}if(3===_e[0]&&(!q||_e[1]>q[0]&&_e[1]<q[3])){we.label=_e[1];break}if(6===_e[0]&&we.label<q[1]){we.label=q[1],q=_e;break}if(q&&we.label<q[2]){we.label=q[2],we.ops.push(_e);break}q[2]&&we.ops.pop(),we.trys.pop();continue}_e=me.call(re,we)}catch(it){_e=[6,it],G=0}finally{tt=q=0}if(5&_e[0])throw _e[1];return{value:_e[0]?_e[1]:void 0,done:!0}}([_e,it])}}},b=this&&this.__asyncValues||function(re){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var we,me=re[Symbol.asyncIterator];return me?me.call(re):(re="function"==typeof u?u(re):re[Symbol.iterator](),we={},tt("next"),tt("throw"),tt("return"),we[Symbol.asyncIterator]=function(){return this},we);function tt(q){we[q]=re[q]&&function(B){return new Promise(function(ae,de){!function G(q,B,ae,de){Promise.resolve(de).then(function(_e){q({value:_e,done:ae})},B)}(ae,de,(B=re[q](B)).done,B.value)})}}},u=this&&this.__values||function(re){var me="function"==typeof Symbol&&Symbol.iterator,we=me&&re[me],tt=0;if(we)return we.call(re);if(re&&"number"==typeof re.length)return{next:function(){return re&&tt>=re.length&&(re=void 0),{value:re&&re[tt++],done:!re}}};throw new TypeError(me?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.fromReadableStreamLike=o.fromAsyncIterable=o.fromIterable=o.fromPromise=o.fromArrayLike=o.fromInteropObservable=o.innerFrom=void 0;var r=a(697),c=a(5050),f=a(5821),h=a(7454),m=a(6175),d=a(6870),_=a(5431),v=a(7128),y=a(7104),E=a(4709),M=a(1689);function k(re){return new f.Observable(function(me){var we=re[M.observable]();if(y.isFunction(we.subscribe))return we.subscribe(me);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function j(re){return new f.Observable(function(me){for(var we=0;we<re.length&&!me.closed;we++)me.next(re[we]);me.complete()})}function Y(re){return new f.Observable(function(me){re.then(function(we){me.closed||(me.next(we),me.complete())},function(we){return me.error(we)}).then(null,E.reportUnhandledError)})}function U(re){return new f.Observable(function(me){var we,tt;try{for(var G=u(re),q=G.next();!q.done;q=G.next())if(me.next(q.value),me.closed)return}catch(ae){we={error:ae}}finally{try{q&&!q.done&&(tt=G.return)&&tt.call(G)}finally{if(we)throw we.error}}me.complete()})}function Q(re){return new f.Observable(function(me){(function X(re,me){var we,tt,G,q;return n(this,void 0,void 0,function(){var ae;return p(this,function(de){switch(de.label){case 0:de.trys.push([0,5,6,11]),we=b(re),de.label=1;case 1:return[4,we.next()];case 2:if((tt=de.sent()).done)return[3,4];if(me.next(tt.value),me.closed)return[2];de.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return ae=de.sent(),G={error:ae},[3,11];case 6:return de.trys.push([6,,9,10]),tt&&!tt.done&&(q=we.return)?[4,q.call(we)]:[3,8];case 7:de.sent(),de.label=8;case 8:return[3,10];case 9:if(G)throw G.error;return[7];case 10:return[7];case 11:return me.complete(),[2]}})})})(re,me).catch(function(we){return me.error(we)})})}function V(re){return Q(v.readableStreamLikeToAsyncGenerator(re))}o.innerFrom=function A(re){if(re instanceof f.Observable)return re;if(null!=re){if(h.isInteropObservable(re))return k(re);if(r.isArrayLike(re))return j(re);if(c.isPromise(re))return Y(re);if(m.isAsyncIterable(re))return Q(re);if(_.isIterable(re))return U(re);if(v.isReadableStreamLike(re))return V(re)}throw d.createInvalidObservableTypeError(re)},o.fromInteropObservable=k,o.fromArrayLike=j,o.fromPromise=Y,o.fromIterable=U,o.fromAsyncIterable=Q,o.fromReadableStreamLike=V},1836:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.interval=void 0;var n=a(4006),p=a(3271);o.interval=function b(u,r){return void 0===u&&(u=0),void 0===r&&(r=n.asyncScheduler),u<0&&(u=0),p.timer(u,u,r)}},9248:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.merge=void 0;var n=a(3917),p=a(8767),b=a(7406),u=a(1642),r=a(4996);o.merge=function c(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];var m=u.popScheduler(f),d=u.popNumber(f,1/0),_=f;return _.length?1===_.length?p.innerFrom(_[0]):n.mergeAll(d)(r.from(_,m)):b.EMPTY}},2818:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.never=o.NEVER=void 0;var n=a(5821),p=a(31);o.NEVER=new n.Observable(p.noop),o.never=function b(){return o.NEVER}},9677:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.of=void 0;var n=a(1642),p=a(4996);o.of=function b(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];var c=n.popScheduler(u);return p.from(u,c)}},9978:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.onErrorResumeNext=void 0;var n=a(7406),p=a(2158),b=a(3531);o.onErrorResumeNext=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return p.onErrorResumeNext(b.argsOrArgArray(r))(n.EMPTY)}},5519:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.pairs=void 0;var n=a(4996);o.pairs=function p(b,u){return n.from(Object.entries(b),u)}},8221:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.partition=void 0;var n=a(963),p=a(4270),b=a(8767);o.partition=function u(r,c,f){return[p.filter(c,f)(b.innerFrom(r)),p.filter(n.not(c,f))(b.innerFrom(r))]}},8181:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.raceInit=o.race=void 0;var n=a(5821),p=a(8767),b=a(3531),u=a(3173);function c(f){return function(h){for(var m=[],d=function(v){m.push(p.innerFrom(f[v]).subscribe(u.createOperatorSubscriber(h,function(y){if(m){for(var E=0;E<m.length;E++)E!==v&&m[E].unsubscribe();m=null}h.next(y)})))},_=0;m&&!h.closed&&_<f.length;_++)d(_)}}o.race=function r(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return 1===(f=b.argsOrArgArray(f)).length?p.innerFrom(f[0]):new n.Observable(c(f))},o.raceInit=c},4622:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.range=void 0;var n=a(5821),p=a(7406);o.range=function b(u,r,c){if(null==r&&(r=u,u=0),r<=0)return p.EMPTY;var f=r+u;return new n.Observable(c?function(h){var m=u;return c.schedule(function(){m<f?(h.next(m++),this.schedule()):h.complete()})}:function(h){for(var m=u;m<f&&!h.closed;)h.next(m++);h.complete()})}},338:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.throwError=void 0;var n=a(5821),p=a(7104);o.throwError=function b(u,r){var c=p.isFunction(u)?u:function(){return u},f=function(h){return h.error(c())};return new n.Observable(r?function(h){return r.schedule(f,0,h)}:f)}},3271:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.timer=void 0;var n=a(5821),p=a(4006),b=a(1875),u=a(7323);o.timer=function r(c,f,h){void 0===c&&(c=0),void 0===h&&(h=p.async);var m=-1;return null!=f&&(b.isScheduler(f)?h=f:m=f),new n.Observable(function(d){var _=u.isValidDate(c)?+c-h.now():c;_<0&&(_=0);var v=0;return h.schedule(function(){d.closed||(d.next(v++),0<=m?this.schedule(void 0,m):d.complete())},_)})}},924:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.using=void 0;var n=a(5821),p=a(8767),b=a(7406);o.using=function u(r,c){return new n.Observable(function(f){var h=r(),m=c(h);return(m?p.innerFrom(m):b.EMPTY).subscribe(f),function(){h&&h.unsubscribe()}})}},4842:function(H,o,a){"use strict";var n=this&&this.__read||function(d,_){var v="function"==typeof Symbol&&d[Symbol.iterator];if(!v)return d;var E,A,y=v.call(d),M=[];try{for(;(void 0===_||_-- >0)&&!(E=y.next()).done;)M.push(E.value)}catch(k){A={error:k}}finally{try{E&&!E.done&&(v=y.return)&&v.call(y)}finally{if(A)throw A.error}}return M},p=this&&this.__spreadArray||function(d,_){for(var v=0,y=_.length,E=d.length;v<y;v++,E++)d[E]=_[v];return d};Object.defineProperty(o,"__esModule",{value:!0}),o.zip=void 0;var b=a(5821),u=a(8767),r=a(3531),c=a(7406),f=a(3173),h=a(1642);o.zip=function m(){for(var d=[],_=0;_<arguments.length;_++)d[_]=arguments[_];var v=h.popResultSelector(d),y=r.argsOrArgArray(d);return y.length?new b.Observable(function(E){var M=y.map(function(){return[]}),A=y.map(function(){return!1});E.add(function(){M=A=null});for(var k=function(Y){u.innerFrom(y[Y]).subscribe(f.createOperatorSubscriber(E,function(U){if(M[Y].push(U),M.every(function(V){return V.length})){var Q=M.map(function(V){return V.shift()});E.next(v?v.apply(void 0,p([],n(Q))):Q),M.some(function(V,X){return!V.length&&A[X]})&&E.complete()}},function(){A[Y]=!0,!M[Y].length&&E.complete()}))},j=0;!E.closed&&j<y.length;j++)k(j);return function(){M=A=null}}):c.EMPTY}},3173:function(H,o,a){"use strict";var r,n=this&&this.__extends||(r=function(c,f){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&(h[d]=m[d])})(c,f)},function(c,f){if("function"!=typeof f&&null!==f)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function h(){this.constructor=c}r(c,f),c.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)});Object.defineProperty(o,"__esModule",{value:!0}),o.OperatorSubscriber=o.createOperatorSubscriber=void 0;var p=a(7052);o.createOperatorSubscriber=function b(r,c,f,h,m){return new u(r,c,f,h,m)};var u=function(r){function c(f,h,m,d,_,v){var y=r.call(this,f)||this;return y.onFinalize=_,y.shouldUnsubscribe=v,y._next=h?function(E){try{h(E)}catch(M){f.error(M)}}:r.prototype._next,y._error=d?function(E){try{d(E)}catch(M){f.error(M)}finally{this.unsubscribe()}}:r.prototype._error,y._complete=m?function(){try{m()}catch(E){f.error(E)}finally{this.unsubscribe()}}:r.prototype._complete,y}return n(c,r),c.prototype.unsubscribe=function(){var f;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var h=this.closed;r.prototype.unsubscribe.call(this),!h&&(null===(f=this.onFinalize)||void 0===f||f.call(this))}},c}(p.Subscriber);o.OperatorSubscriber=u},4815:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.audit=void 0;var n=a(9216),p=a(8767),b=a(3173);o.audit=function u(r){return n.operate(function(c,f){var h=!1,m=null,d=null,_=!1,v=function(){if(null==d||d.unsubscribe(),d=null,h){h=!1;var E=m;m=null,f.next(E)}_&&f.complete()},y=function(){d=null,_&&f.complete()};c.subscribe(b.createOperatorSubscriber(f,function(E){h=!0,m=E,d||p.innerFrom(r(E)).subscribe(d=b.createOperatorSubscriber(f,v,y))},function(){_=!0,(!h||!d||d.closed)&&f.complete()}))})}},9034:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.auditTime=void 0;var n=a(4006),p=a(4815),b=a(3271);o.auditTime=function u(r,c){return void 0===c&&(c=n.asyncScheduler),p.audit(function(){return b.timer(r,c)})}},8544:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.buffer=void 0;var n=a(9216),p=a(31),b=a(3173);o.buffer=function u(r){return n.operate(function(c,f){var h=[];return c.subscribe(b.createOperatorSubscriber(f,function(m){return h.push(m)},function(){f.next(h),f.complete()})),r.subscribe(b.createOperatorSubscriber(f,function(){var m=h;h=[],f.next(m)},p.noop)),function(){h=null}})}},3999:function(H,o,a){"use strict";var n=this&&this.__values||function(c){var f="function"==typeof Symbol&&Symbol.iterator,h=f&&c[f],m=0;if(h)return h.call(c);if(c&&"number"==typeof c.length)return{next:function(){return c&&m>=c.length&&(c=void 0),{value:c&&c[m++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.bufferCount=void 0;var p=a(9216),b=a(3173),u=a(5137);o.bufferCount=function r(c,f){return void 0===f&&(f=null),f=null!=f?f:c,p.operate(function(h,m){var d=[],_=0;h.subscribe(b.createOperatorSubscriber(m,function(v){var y,E,M,A,k=null;_++%f==0&&d.push([]);try{for(var j=n(d),Y=j.next();!Y.done;Y=j.next())(U=Y.value).push(v),c<=U.length&&(k=null!=k?k:[]).push(U)}catch(X){y={error:X}}finally{try{Y&&!Y.done&&(E=j.return)&&E.call(j)}finally{if(y)throw y.error}}if(k)try{for(var Q=n(k),V=Q.next();!V.done;V=Q.next()){var U;u.arrRemove(d,U=V.value),m.next(U)}}catch(X){M={error:X}}finally{try{V&&!V.done&&(A=Q.return)&&A.call(Q)}finally{if(M)throw M.error}}},function(){var v,y;try{for(var E=n(d),M=E.next();!M.done;M=E.next())m.next(M.value)}catch(k){v={error:k}}finally{try{M&&!M.done&&(y=E.return)&&y.call(E)}finally{if(v)throw v.error}}m.complete()},void 0,function(){d=null}))})}},1392:function(H,o,a){"use strict";var n=this&&this.__values||function(d){var _="function"==typeof Symbol&&Symbol.iterator,v=_&&d[_],y=0;if(v)return v.call(d);if(d&&"number"==typeof d.length)return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.bufferTime=void 0;var p=a(6448),b=a(9216),u=a(3173),r=a(5137),c=a(4006),f=a(1642),h=a(2590);o.bufferTime=function m(d){for(var _,v,y=[],E=1;E<arguments.length;E++)y[E-1]=arguments[E];var M=null!==(_=f.popScheduler(y))&&void 0!==_?_:c.asyncScheduler,A=null!==(v=y[0])&&void 0!==v?v:null,k=y[1]||1/0;return b.operate(function(j,Y){var U=[],Q=!1,V=function(me){var we=me.buffer;me.subs.unsubscribe(),r.arrRemove(U,me),Y.next(we),Q&&X()},X=function(){if(U){var me=new p.Subscription;Y.add(me);var tt={buffer:[],subs:me};U.push(tt),h.executeSchedule(me,M,function(){return V(tt)},d)}};null!==A&&A>=0?h.executeSchedule(Y,M,X,A,!0):Q=!0,X();var re=u.createOperatorSubscriber(Y,function(me){var we,tt,G=U.slice();try{for(var q=n(G),B=q.next();!B.done;B=q.next()){var ae=B.value,de=ae.buffer;de.push(me),k<=de.length&&V(ae)}}catch(_e){we={error:_e}}finally{try{B&&!B.done&&(tt=q.return)&&tt.call(q)}finally{if(we)throw we.error}}},function(){for(;null!=U&&U.length;)Y.next(U.shift().buffer);null==re||re.unsubscribe(),Y.complete(),Y.unsubscribe()},void 0,function(){return U=null});j.subscribe(re)})}},555:function(H,o,a){"use strict";var n=this&&this.__values||function(m){var d="function"==typeof Symbol&&Symbol.iterator,_=d&&m[d],v=0;if(_)return _.call(m);if(m&&"number"==typeof m.length)return{next:function(){return m&&v>=m.length&&(m=void 0),{value:m&&m[v++],done:!m}}};throw new TypeError(d?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.bufferToggle=void 0;var p=a(6448),b=a(9216),u=a(8767),r=a(3173),c=a(31),f=a(5137);o.bufferToggle=function h(m,d){return b.operate(function(_,v){var y=[];u.innerFrom(m).subscribe(r.createOperatorSubscriber(v,function(E){var M=[];y.push(M);var A=new p.Subscription;A.add(u.innerFrom(d(E)).subscribe(r.createOperatorSubscriber(v,function(){f.arrRemove(y,M),v.next(M),A.unsubscribe()},c.noop)))},c.noop)),_.subscribe(r.createOperatorSubscriber(v,function(E){var M,A;try{for(var k=n(y),j=k.next();!j.done;j=k.next())j.value.push(E)}catch(U){M={error:U}}finally{try{j&&!j.done&&(A=k.return)&&A.call(k)}finally{if(M)throw M.error}}},function(){for(;y.length>0;)v.next(y.shift());v.complete()}))})}},7274:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.bufferWhen=void 0;var n=a(9216),p=a(31),b=a(3173),u=a(8767);o.bufferWhen=function r(c){return n.operate(function(f,h){var m=null,d=null,_=function(){null==d||d.unsubscribe();var v=m;m=[],v&&h.next(v),u.innerFrom(c()).subscribe(d=b.createOperatorSubscriber(h,_,p.noop))};_(),f.subscribe(b.createOperatorSubscriber(h,function(v){return null==m?void 0:m.push(v)},function(){m&&h.next(m),h.complete()},void 0,function(){return m=d=null}))})}},6e3:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.catchError=void 0;var n=a(8767),p=a(3173),b=a(9216);o.catchError=function u(r){return b.operate(function(c,f){var d,h=null,m=!1;h=c.subscribe(p.createOperatorSubscriber(f,void 0,void 0,function(_){d=n.innerFrom(r(_,u(r)(c))),h?(h.unsubscribe(),h=null,d.subscribe(f)):m=!0})),m&&(h.unsubscribe(),h=null,d.subscribe(f))})}},8996:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.combineAll=void 0;var n=a(8931);o.combineAll=n.combineLatestAll},5538:function(H,o,a){"use strict";var n=this&&this.__read||function(d,_){var v="function"==typeof Symbol&&d[Symbol.iterator];if(!v)return d;var E,A,y=v.call(d),M=[];try{for(;(void 0===_||_-- >0)&&!(E=y.next()).done;)M.push(E.value)}catch(k){A={error:k}}finally{try{E&&!E.done&&(v=y.return)&&v.call(y)}finally{if(A)throw A.error}}return M},p=this&&this.__spreadArray||function(d,_){for(var v=0,y=_.length,E=d.length;v<y;v++,E++)d[E]=_[v];return d};Object.defineProperty(o,"__esModule",{value:!0}),o.combineLatest=void 0;var b=a(6892),u=a(9216),r=a(3531),c=a(5280),f=a(1471),h=a(1642);o.combineLatest=function m(){for(var d=[],_=0;_<arguments.length;_++)d[_]=arguments[_];var v=h.popResultSelector(d);return v?f.pipe(m.apply(void 0,p([],n(d))),c.mapOneOrManyArgs(v)):u.operate(function(y,E){b.combineLatestInit(p([y],n(r.argsOrArgArray(d))))(E)})}},8931:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.combineLatestAll=void 0;var n=a(6892),p=a(1277);o.combineLatestAll=function b(u){return p.joinAllInternals(n.combineLatest,u)}},8947:function(H,o,a){"use strict";var n=this&&this.__read||function(r,c){var f="function"==typeof Symbol&&r[Symbol.iterator];if(!f)return r;var m,_,h=f.call(r),d=[];try{for(;(void 0===c||c-- >0)&&!(m=h.next()).done;)d.push(m.value)}catch(v){_={error:v}}finally{try{m&&!m.done&&(f=h.return)&&f.call(h)}finally{if(_)throw _.error}}return d},p=this&&this.__spreadArray||function(r,c){for(var f=0,h=c.length,m=r.length;f<h;f++,m++)r[m]=c[f];return r};Object.defineProperty(o,"__esModule",{value:!0}),o.combineLatestWith=void 0;var b=a(5538);o.combineLatestWith=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return b.combineLatest.apply(void 0,p([],n(r)))}},4656:function(H,o,a){"use strict";var n=this&&this.__read||function(h,m){var d="function"==typeof Symbol&&h[Symbol.iterator];if(!d)return h;var v,E,_=d.call(h),y=[];try{for(;(void 0===m||m-- >0)&&!(v=_.next()).done;)y.push(v.value)}catch(M){E={error:M}}finally{try{v&&!v.done&&(d=_.return)&&d.call(_)}finally{if(E)throw E.error}}return y},p=this&&this.__spreadArray||function(h,m){for(var d=0,_=m.length,v=h.length;d<_;d++,v++)h[v]=m[d];return h};Object.defineProperty(o,"__esModule",{value:!0}),o.concat=void 0;var b=a(9216),u=a(739),r=a(1642),c=a(4996);o.concat=function f(){for(var h=[],m=0;m<arguments.length;m++)h[m]=arguments[m];var d=r.popScheduler(h);return b.operate(function(_,v){u.concatAll()(c.from(p([_],n(h)),d)).subscribe(v)})}},739:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.concatAll=void 0;var n=a(3917);o.concatAll=function p(){return n.mergeAll(1)}},4659:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.concatMap=void 0;var n=a(3010),p=a(7104);o.concatMap=function b(u,r){return p.isFunction(r)?n.mergeMap(u,r,1):n.mergeMap(u,1)}},2993:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.concatMapTo=void 0;var n=a(4659),p=a(7104);o.concatMapTo=function b(u,r){return p.isFunction(r)?n.concatMap(function(){return u},r):n.concatMap(function(){return u})}},5898:function(H,o,a){"use strict";var n=this&&this.__read||function(r,c){var f="function"==typeof Symbol&&r[Symbol.iterator];if(!f)return r;var m,_,h=f.call(r),d=[];try{for(;(void 0===c||c-- >0)&&!(m=h.next()).done;)d.push(m.value)}catch(v){_={error:v}}finally{try{m&&!m.done&&(f=h.return)&&f.call(h)}finally{if(_)throw _.error}}return d},p=this&&this.__spreadArray||function(r,c){for(var f=0,h=c.length,m=r.length;f<h;f++,m++)r[m]=c[f];return r};Object.defineProperty(o,"__esModule",{value:!0}),o.concatWith=void 0;var b=a(4656);o.concatWith=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return b.concat.apply(void 0,p([],n(r)))}},9725:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.connect=void 0;var n=a(3768),p=a(8767),b=a(9216),u=a(5107),r={connector:function(){return new n.Subject}};o.connect=function c(f,h){void 0===h&&(h=r);var m=h.connector;return b.operate(function(d,_){var v=m();p.innerFrom(f(u.fromSubscribable(v))).subscribe(_),_.add(d.subscribe(v))})}},1814:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.count=void 0;var n=a(8587);o.count=function p(b){return n.reduce(function(u,r,c){return!b||b(r,c)?u+1:u},0)}},9784:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.debounce=void 0;var n=a(9216),p=a(31),b=a(3173),u=a(8767);o.debounce=function r(c){return n.operate(function(f,h){var m=!1,d=null,_=null,v=function(){if(null==_||_.unsubscribe(),_=null,m){m=!1;var y=d;d=null,h.next(y)}};f.subscribe(b.createOperatorSubscriber(h,function(y){null==_||_.unsubscribe(),m=!0,d=y,_=b.createOperatorSubscriber(h,v,p.noop),u.innerFrom(c(y)).subscribe(_)},function(){v(),h.complete()},void 0,function(){d=_=null}))})}},7061:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.debounceTime=void 0;var n=a(4006),p=a(9216),b=a(3173);o.debounceTime=function u(r,c){return void 0===c&&(c=n.asyncScheduler),p.operate(function(f,h){var m=null,d=null,_=null,v=function(){if(m){m.unsubscribe(),m=null;var E=d;d=null,h.next(E)}};function y(){var E=_+r,M=c.now();if(M<E)return m=this.schedule(void 0,E-M),void h.add(m);v()}f.subscribe(b.createOperatorSubscriber(h,function(E){d=E,_=c.now(),m||(m=c.schedule(y,r),h.add(m))},function(){v(),h.complete()},void 0,function(){d=m=null}))})}},926:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.defaultIfEmpty=void 0;var n=a(9216),p=a(3173);o.defaultIfEmpty=function b(u){return n.operate(function(r,c){var f=!1;r.subscribe(p.createOperatorSubscriber(c,function(h){f=!0,c.next(h)},function(){f||c.next(u),c.complete()}))})}},2096:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.delay=void 0;var n=a(4006),p=a(3264),b=a(3271);o.delay=function u(r,c){void 0===c&&(c=n.asyncScheduler);var f=b.timer(r,c);return p.delayWhen(function(){return f})}},3264:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.delayWhen=void 0;var n=a(509),p=a(1333),b=a(4041),u=a(2182),r=a(3010);o.delayWhen=function c(f,h){return h?function(m){return n.concat(h.pipe(p.take(1),b.ignoreElements()),m.pipe(c(f)))}:r.mergeMap(function(m,d){return f(m,d).pipe(p.take(1),u.mapTo(m))})}},533:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.dematerialize=void 0;var n=a(7262),p=a(9216),b=a(3173);o.dematerialize=function u(){return p.operate(function(r,c){r.subscribe(b.createOperatorSubscriber(c,function(f){return n.observeNotification(f,c)}))})}},5045:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.distinct=void 0;var n=a(9216),p=a(3173),b=a(31);o.distinct=function u(r,c){return n.operate(function(f,h){var m=new Set;f.subscribe(p.createOperatorSubscriber(h,function(d){var _=r?r(d):d;m.has(_)||(m.add(_),h.next(d))})),null==c||c.subscribe(p.createOperatorSubscriber(h,function(){return m.clear()},b.noop))})}},5794:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.distinctUntilChanged=void 0;var n=a(7884),p=a(9216),b=a(3173);function r(c,f){return c===f}o.distinctUntilChanged=function u(c,f){return void 0===f&&(f=n.identity),c=null!=c?c:r,p.operate(function(h,m){var d,_=!0;h.subscribe(b.createOperatorSubscriber(m,function(v){var y=f(v);(_||!c(d,y))&&(_=!1,d=y,m.next(v))}))})}},8589:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.distinctUntilKeyChanged=void 0;var n=a(5794);o.distinctUntilKeyChanged=function p(b,u){return n.distinctUntilChanged(function(r,c){return u?u(r[b],c[b]):r[b]===c[b]})}},1069:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.elementAt=void 0;var n=a(4769),p=a(4270),b=a(9194),u=a(926),r=a(1333);o.elementAt=function c(f,h){if(f<0)throw new n.ArgumentOutOfRangeError;var m=arguments.length>=2;return function(d){return d.pipe(p.filter(function(_,v){return v===f}),r.take(1),m?u.defaultIfEmpty(h):b.throwIfEmpty(function(){return new n.ArgumentOutOfRangeError}))}}},4312:function(H,o,a){"use strict";var n=this&&this.__read||function(c,f){var h="function"==typeof Symbol&&c[Symbol.iterator];if(!h)return c;var d,v,m=h.call(c),_=[];try{for(;(void 0===f||f-- >0)&&!(d=m.next()).done;)_.push(d.value)}catch(y){v={error:y}}finally{try{d&&!d.done&&(h=m.return)&&h.call(m)}finally{if(v)throw v.error}}return _},p=this&&this.__spreadArray||function(c,f){for(var h=0,m=f.length,d=c.length;h<m;h++,d++)c[d]=f[h];return c};Object.defineProperty(o,"__esModule",{value:!0}),o.endWith=void 0;var b=a(509),u=a(9677);o.endWith=function r(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return function(h){return b.concat(h,u.of.apply(void 0,p([],n(c))))}}},9098:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.every=void 0;var n=a(9216),p=a(3173);o.every=function b(u,r){return n.operate(function(c,f){var h=0;c.subscribe(p.createOperatorSubscriber(f,function(m){u.call(r,m,h++,c)||(f.next(!1),f.complete())},function(){f.next(!0),f.complete()}))})}},5429:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.exhaust=void 0;var n=a(1399);o.exhaust=n.exhaustAll},1399:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.exhaustAll=void 0;var n=a(5183),p=a(7884);o.exhaustAll=function b(){return n.exhaustMap(p.identity)}},5183:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.exhaustMap=void 0;var n=a(752),p=a(8767),b=a(9216),u=a(3173);o.exhaustMap=function r(c,f){return f?function(h){return h.pipe(r(function(m,d){return p.innerFrom(c(m,d)).pipe(n.map(function(_,v){return f(m,_,d,v)}))}))}:b.operate(function(h,m){var d=0,_=null,v=!1;h.subscribe(u.createOperatorSubscriber(m,function(y){_||(_=u.createOperatorSubscriber(m,void 0,function(){_=null,v&&m.complete()}),p.innerFrom(c(y,d++)).subscribe(_))},function(){v=!0,!_&&m.complete()}))})}},8678:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.expand=void 0;var n=a(9216),p=a(8457);o.expand=function b(u,r,c){return void 0===r&&(r=1/0),r=(r||0)<1?1/0:r,n.operate(function(f,h){return p.mergeInternals(f,h,u,r,void 0,!0,c)})}},4270:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.filter=void 0;var n=a(9216),p=a(3173);o.filter=function b(u,r){return n.operate(function(c,f){var h=0;c.subscribe(p.createOperatorSubscriber(f,function(m){return u.call(r,m,h++)&&f.next(m)}))})}},1587:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.finalize=void 0;var n=a(9216);o.finalize=function p(b){return n.operate(function(u,r){try{u.subscribe(r)}finally{r.add(b)}})}},2265:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createFind=o.find=void 0;var n=a(9216),p=a(3173);function u(r,c,f){var h="index"===f;return function(m,d){var _=0;m.subscribe(p.createOperatorSubscriber(d,function(v){var y=_++;r.call(c,v,y,m)&&(d.next(h?y:v),d.complete())},function(){d.next(h?-1:void 0),d.complete()}))}}o.find=function b(r,c){return n.operate(u(r,c,"value"))},o.createFind=u},8195:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.findIndex=void 0;var n=a(9216),p=a(2265);o.findIndex=function b(u,r){return n.operate(p.createFind(u,r,"index"))}},8012:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.first=void 0;var n=a(8915),p=a(4270),b=a(1333),u=a(926),r=a(9194),c=a(7884);o.first=function f(h,m){var d=arguments.length>=2;return function(_){return _.pipe(h?p.filter(function(v,y){return h(v,y,_)}):c.identity,b.take(1),d?u.defaultIfEmpty(m):r.throwIfEmpty(function(){return new n.EmptyError}))}}},1463:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.flatMap=void 0;var n=a(3010);o.flatMap=n.mergeMap},4075:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.groupBy=void 0;var n=a(5821),p=a(8767),b=a(3768),u=a(9216),r=a(3173);o.groupBy=function c(f,h,m,d){return u.operate(function(_,v){var y;h&&"function"!=typeof h?(m=h.duration,y=h.element,d=h.connector):y=h;var E=new Map,M=function(Q){E.forEach(Q),Q(v)},A=function(Q){return M(function(V){return V.error(Q)})},k=0,j=!1,Y=new r.OperatorSubscriber(v,function(Q){try{var V=f(Q),X=E.get(V);if(!X){E.set(V,X=d?d():new b.Subject);var re=function U(Q,V){var X=new n.Observable(function(re){k++;var me=V.subscribe(re);return function(){me.unsubscribe(),0==--k&&j&&Y.unsubscribe()}});return X.key=Q,X}(V,X);if(v.next(re),m){var me=r.createOperatorSubscriber(X,function(){X.complete(),null==me||me.unsubscribe()},void 0,void 0,function(){return E.delete(V)});Y.add(p.innerFrom(m(re)).subscribe(me))}}X.next(y?y(Q):Q)}catch(we){A(we)}},function(){return M(function(Q){return Q.complete()})},A,function(){return E.clear()},function(){return j=!0,0===k});_.subscribe(Y)})}},4041:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ignoreElements=void 0;var n=a(9216),p=a(3173),b=a(31);o.ignoreElements=function u(){return n.operate(function(r,c){r.subscribe(p.createOperatorSubscriber(c,b.noop))})}},6478:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isEmpty=void 0;var n=a(9216),p=a(3173);o.isEmpty=function b(){return n.operate(function(u,r){u.subscribe(p.createOperatorSubscriber(r,function(){r.next(!1),r.complete()},function(){r.next(!0),r.complete()}))})}},1277:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.joinAllInternals=void 0;var n=a(7884),p=a(5280),b=a(1471),u=a(3010),r=a(2976);o.joinAllInternals=function c(f,h){return b.pipe(r.toArray(),u.mergeMap(function(m){return f(m)}),h?p.mapOneOrManyArgs(h):n.identity)}},5126:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.last=void 0;var n=a(8915),p=a(4270),b=a(3534),u=a(9194),r=a(926),c=a(7884);o.last=function f(h,m){var d=arguments.length>=2;return function(_){return _.pipe(h?p.filter(function(v,y){return h(v,y,_)}):c.identity,b.takeLast(1),d?r.defaultIfEmpty(m):u.throwIfEmpty(function(){return new n.EmptyError}))}}},752:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.map=void 0;var n=a(9216),p=a(3173);o.map=function b(u,r){return n.operate(function(c,f){var h=0;c.subscribe(p.createOperatorSubscriber(f,function(m){f.next(u.call(r,m,h++))}))})}},2182:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mapTo=void 0;var n=a(752);o.mapTo=function p(b){return n.map(function(){return b})}},119:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.materialize=void 0;var n=a(7262),p=a(9216),b=a(3173);o.materialize=function u(){return p.operate(function(r,c){r.subscribe(b.createOperatorSubscriber(c,function(f){c.next(n.Notification.createNext(f))},function(){c.next(n.Notification.createComplete()),c.complete()},function(f){c.next(n.Notification.createError(f)),c.complete()}))})}},9329:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.max=void 0;var n=a(8587),p=a(7104);o.max=function b(u){return n.reduce(p.isFunction(u)?function(r,c){return u(r,c)>0?r:c}:function(r,c){return r>c?r:c})}},8789:function(H,o,a){"use strict";var n=this&&this.__read||function(m,d){var _="function"==typeof Symbol&&m[Symbol.iterator];if(!_)return m;var y,M,v=_.call(m),E=[];try{for(;(void 0===d||d-- >0)&&!(y=v.next()).done;)E.push(y.value)}catch(A){M={error:A}}finally{try{y&&!y.done&&(_=v.return)&&_.call(v)}finally{if(M)throw M.error}}return E},p=this&&this.__spreadArray||function(m,d){for(var _=0,v=d.length,y=m.length;_<v;_++,y++)m[y]=d[_];return m};Object.defineProperty(o,"__esModule",{value:!0}),o.merge=void 0;var b=a(9216),u=a(3531),r=a(3917),c=a(1642),f=a(4996);o.merge=function h(){for(var m=[],d=0;d<arguments.length;d++)m[d]=arguments[d];var _=c.popScheduler(m),v=c.popNumber(m,1/0);return m=u.argsOrArgArray(m),b.operate(function(y,E){r.mergeAll(v)(f.from(p([y],n(m)),_)).subscribe(E)})}},3917:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mergeAll=void 0;var n=a(3010),p=a(7884);o.mergeAll=function b(u){return void 0===u&&(u=1/0),n.mergeMap(p.identity,u)}},8457:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mergeInternals=void 0;var n=a(8767),p=a(2590),b=a(3173);o.mergeInternals=function u(r,c,f,h,m,d,_,v){var y=[],E=0,M=0,A=!1,k=function(){A&&!y.length&&!E&&c.complete()},j=function(U){return E<h?Y(U):y.push(U)},Y=function(U){d&&c.next(U),E++;var Q=!1;n.innerFrom(f(U,M++)).subscribe(b.createOperatorSubscriber(c,function(V){null==m||m(V),d?j(V):c.next(V)},function(){Q=!0},void 0,function(){if(Q)try{E--;for(var V=function(){var X=y.shift();_?p.executeSchedule(c,_,function(){return Y(X)}):Y(X)};y.length&&E<h;)V();k()}catch(X){c.error(X)}}))};return r.subscribe(b.createOperatorSubscriber(c,j,function(){A=!0,k()})),function(){null==v||v()}}},3010:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mergeMap=void 0;var n=a(752),p=a(8767),b=a(9216),u=a(8457),r=a(7104);o.mergeMap=function c(f,h,m){return void 0===m&&(m=1/0),r.isFunction(h)?c(function(d,_){return n.map(function(v,y){return h(d,v,_,y)})(p.innerFrom(f(d,_)))},m):("number"==typeof h&&(m=h),b.operate(function(d,_){return u.mergeInternals(d,_,f,m)}))}},929:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mergeMapTo=void 0;var n=a(3010),p=a(7104);o.mergeMapTo=function b(u,r,c){return void 0===c&&(c=1/0),p.isFunction(r)?n.mergeMap(function(){return u},r,c):("number"==typeof r&&(c=r),n.mergeMap(function(){return u},c))}},2816:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.mergeScan=void 0;var n=a(9216),p=a(8457);o.mergeScan=function b(u,r,c){return void 0===c&&(c=1/0),n.operate(function(f,h){var m=r;return p.mergeInternals(f,h,function(d,_){return u(m,d,_)},c,function(d){m=d},!1,void 0,function(){return m=null})})}},9684:function(H,o,a){"use strict";var n=this&&this.__read||function(r,c){var f="function"==typeof Symbol&&r[Symbol.iterator];if(!f)return r;var m,_,h=f.call(r),d=[];try{for(;(void 0===c||c-- >0)&&!(m=h.next()).done;)d.push(m.value)}catch(v){_={error:v}}finally{try{m&&!m.done&&(f=h.return)&&f.call(h)}finally{if(_)throw _.error}}return d},p=this&&this.__spreadArray||function(r,c){for(var f=0,h=c.length,m=r.length;f<h;f++,m++)r[m]=c[f];return r};Object.defineProperty(o,"__esModule",{value:!0}),o.mergeWith=void 0;var b=a(8789);o.mergeWith=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return b.merge.apply(void 0,p([],n(r)))}},6250:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.min=void 0;var n=a(8587),p=a(7104);o.min=function b(u){return n.reduce(p.isFunction(u)?function(r,c){return u(r,c)<0?r:c}:function(r,c){return r<c?r:c})}},9872:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.multicast=void 0;var n=a(6686),p=a(7104),b=a(9725);o.multicast=function u(r,c){var f=p.isFunction(r)?r:function(){return r};return p.isFunction(c)?b.connect(c,{connector:f}):function(h){return new n.ConnectableObservable(h,f)}}},4928:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.observeOn=void 0;var n=a(2590),p=a(9216),b=a(3173);o.observeOn=function u(r,c){return void 0===c&&(c=0),p.operate(function(f,h){f.subscribe(b.createOperatorSubscriber(h,function(m){return n.executeSchedule(h,r,function(){return h.next(m)},c)},function(){return n.executeSchedule(h,r,function(){return h.complete()},c)},function(m){return n.executeSchedule(h,r,function(){return h.error(m)},c)}))})}},2158:function(H,o,a){"use strict";var n=this&&this.__read||function(m,d){var _="function"==typeof Symbol&&m[Symbol.iterator];if(!_)return m;var y,M,v=_.call(m),E=[];try{for(;(void 0===d||d-- >0)&&!(y=v.next()).done;)E.push(y.value)}catch(A){M={error:A}}finally{try{y&&!y.done&&(_=v.return)&&_.call(v)}finally{if(M)throw M.error}}return E},p=this&&this.__spreadArray||function(m,d){for(var _=0,v=d.length,y=m.length;_<v;_++,y++)m[y]=d[_];return m};Object.defineProperty(o,"__esModule",{value:!0}),o.onErrorResumeNext=void 0;var b=a(9216),u=a(8767),r=a(3531),c=a(3173),f=a(31);o.onErrorResumeNext=function h(){for(var m=[],d=0;d<arguments.length;d++)m[d]=arguments[d];var _=r.argsOrArgArray(m);return b.operate(function(v,y){var E=p([v],n(_)),M=function(){if(!y.closed)if(E.length>0){var A=void 0;try{A=u.innerFrom(E.shift())}catch(j){return void M()}var k=c.createOperatorSubscriber(y,void 0,f.noop,f.noop);A.subscribe(k),k.add(M)}else y.complete()};M()})}},9526:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.pairwise=void 0;var n=a(9216),p=a(3173);o.pairwise=function b(){return n.operate(function(u,r){var c,f=!1;u.subscribe(p.createOperatorSubscriber(r,function(h){var m=c;c=h,f&&r.next([m,h]),f=!0}))})}},5199:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.pluck=void 0;var n=a(752);o.pluck=function p(){for(var b=[],u=0;u<arguments.length;u++)b[u]=arguments[u];var r=b.length;if(0===r)throw new Error("list of properties cannot be empty.");return n.map(function(c){for(var f=c,h=0;h<r;h++){var m=null==f?void 0:f[b[h]];if(void 0===m)return;f=m}return f})}},955:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.publish=void 0;var n=a(3768),p=a(9872),b=a(9725);o.publish=function u(r){return r?function(c){return b.connect(r)(c)}:function(c){return p.multicast(new n.Subject)(c)}}},6750:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.publishBehavior=void 0;var n=a(5482),p=a(6686);o.publishBehavior=function b(u){return function(r){var c=new n.BehaviorSubject(u);return new p.ConnectableObservable(r,function(){return c})}}},1003:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.publishLast=void 0;var n=a(7606),p=a(6686);o.publishLast=function b(){return function(u){var r=new n.AsyncSubject;return new p.ConnectableObservable(u,function(){return r})}}},5530:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.publishReplay=void 0;var n=a(3406),p=a(9872),b=a(7104);o.publishReplay=function u(r,c,f,h){f&&!b.isFunction(f)&&(h=f);var m=b.isFunction(f)?f:void 0;return function(d){return p.multicast(new n.ReplaySubject(r,c,h),m)(d)}}},2992:function(H,o,a){"use strict";var n=this&&this.__read||function(f,h){var m="function"==typeof Symbol&&f[Symbol.iterator];if(!m)return f;var _,y,d=m.call(f),v=[];try{for(;(void 0===h||h-- >0)&&!(_=d.next()).done;)v.push(_.value)}catch(E){y={error:E}}finally{try{_&&!_.done&&(m=d.return)&&m.call(d)}finally{if(y)throw y.error}}return v},p=this&&this.__spreadArray||function(f,h){for(var m=0,d=h.length,_=f.length;m<d;m++,_++)f[_]=h[m];return f};Object.defineProperty(o,"__esModule",{value:!0}),o.raceWith=void 0;var b=a(8181),u=a(9216),r=a(7884);o.raceWith=function c(){for(var f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];return f.length?u.operate(function(m,d){b.raceInit(p([m],n(f)))(d)}):r.identity}},8587:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.reduce=void 0;var n=a(3049),p=a(9216);o.reduce=function b(u,r){return p.operate(n.scanInternals(u,r,arguments.length>=2,!1,!0))}},904:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.refCount=void 0;var n=a(9216),p=a(3173);o.refCount=function b(){return n.operate(function(u,r){var c=null;u._refCount++;var f=p.createOperatorSubscriber(r,void 0,void 0,void 0,function(){if(!u||u._refCount<=0||0<--u._refCount)c=null;else{var h=u._connection,m=c;c=null,h&&(!m||h===m)&&h.unsubscribe(),r.unsubscribe()}});u.subscribe(f),f.closed||(c=u.connect())})}},8408:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.repeat=void 0;var n=a(7406),p=a(9216),b=a(3173),u=a(8767),r=a(3271);o.repeat=function c(f){var h,d,m=1/0;return null!=f&&("object"==typeof f?(m=void 0===(h=f.count)?1/0:h,d=f.delay):m=f),m<=0?function(){return n.EMPTY}:p.operate(function(_,v){var E,y=0,M=function(){if(null==E||E.unsubscribe(),E=null,null!=d){var k="number"==typeof d?r.timer(d):u.innerFrom(d(y)),j=b.createOperatorSubscriber(v,function(){j.unsubscribe(),A()});k.subscribe(j)}else A()},A=function(){var k=!1;E=_.subscribe(b.createOperatorSubscriber(v,void 0,function(){++y<m?E?M():k=!0:v.complete()})),k&&M()};A()})}},7032:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.repeatWhen=void 0;var n=a(3768),p=a(9216),b=a(3173);o.repeatWhen=function u(r){return p.operate(function(c,f){var h,d,m=!1,_=!1,v=!1,y=function(){return v&&_&&(f.complete(),!0)},M=function(){v=!1,h=c.subscribe(b.createOperatorSubscriber(f,void 0,function(){v=!0,!y()&&(d||(d=new n.Subject,r(d).subscribe(b.createOperatorSubscriber(f,function(){h?M():m=!0},function(){_=!0,y()}))),d).next()})),m&&(h.unsubscribe(),h=null,m=!1,M())};M()})}},6069:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.retry=void 0;var n=a(9216),p=a(3173),b=a(7884),u=a(3271),r=a(8767);o.retry=function c(f){var h;void 0===f&&(f=1/0);var m=(h=f&&"object"==typeof f?f:{count:f}).count,d=void 0===m?1/0:m,_=h.delay,v=h.resetOnSuccess,y=void 0!==v&&v;return d<=0?b.identity:n.operate(function(E,M){var k,A=0,j=function(){var Y=!1;k=E.subscribe(p.createOperatorSubscriber(M,function(U){y&&(A=0),M.next(U)},void 0,function(U){if(A++<d){var Q=function(){k?(k.unsubscribe(),k=null,j()):Y=!0};if(null!=_){var V="number"==typeof _?u.timer(_):r.innerFrom(_(U,A)),X=p.createOperatorSubscriber(M,function(){X.unsubscribe(),Q()},function(){M.complete()});V.subscribe(X)}else Q()}else M.error(U)})),Y&&(k.unsubscribe(),k=null,j())};j()})}},5131:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.retryWhen=void 0;var n=a(3768),p=a(9216),b=a(3173);o.retryWhen=function u(r){return p.operate(function(c,f){var h,d,m=!1,_=function(){h=c.subscribe(b.createOperatorSubscriber(f,void 0,void 0,function(v){d||(d=new n.Subject,r(d).subscribe(b.createOperatorSubscriber(f,function(){return h?_():m=!0}))),d&&d.next(v)})),m&&(h.unsubscribe(),h=null,m=!1,_())};_()})}},2531:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sample=void 0;var n=a(9216),p=a(31),b=a(3173);o.sample=function u(r){return n.operate(function(c,f){var h=!1,m=null;c.subscribe(b.createOperatorSubscriber(f,function(d){h=!0,m=d})),r.subscribe(b.createOperatorSubscriber(f,function(){if(h){h=!1;var d=m;m=null,f.next(d)}},p.noop))})}},2098:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleTime=void 0;var n=a(4006),p=a(2531),b=a(1836);o.sampleTime=function u(r,c){return void 0===c&&(c=n.asyncScheduler),p.sample(b.interval(r,c))}},251:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scan=void 0;var n=a(9216),p=a(3049);o.scan=function b(u,r){return n.operate(p.scanInternals(u,r,arguments.length>=2,!0))}},3049:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scanInternals=void 0;var n=a(3173);o.scanInternals=function p(b,u,r,c,f){return function(h,m){var d=r,_=u,v=0;h.subscribe(n.createOperatorSubscriber(m,function(y){var E=v++;_=d?b(_,y,E):(d=!0,y),c&&m.next(_)},f&&function(){d&&m.next(_),m.complete()}))}}},9788:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sequenceEqual=void 0;var n=a(9216),p=a(3173);o.sequenceEqual=function b(r,c){return void 0===c&&(c=function(f,h){return f===h}),n.operate(function(f,h){var m={buffer:[],complete:!1},d={buffer:[],complete:!1},_=function(y){h.next(y),h.complete()},v=function(y,E){var M=p.createOperatorSubscriber(h,function(A){var k=E.buffer;0===k.length?E.complete?_(!1):y.buffer.push(A):!c(A,k.shift())&&_(!1)},function(){y.complete=!0,E.complete&&_(0===E.buffer.length),null==M||M.unsubscribe()});return M};f.subscribe(v(m,d)),r.subscribe(v(d,m))})}},3222:function(H,o,a){"use strict";var n=this&&this.__read||function(m,d){var _="function"==typeof Symbol&&m[Symbol.iterator];if(!_)return m;var y,M,v=_.call(m),E=[];try{for(;(void 0===d||d-- >0)&&!(y=v.next()).done;)E.push(y.value)}catch(A){M={error:A}}finally{try{y&&!y.done&&(_=v.return)&&_.call(v)}finally{if(M)throw M.error}}return E},p=this&&this.__spreadArray||function(m,d){for(var _=0,v=d.length,y=m.length;_<v;_++,y++)m[y]=d[_];return m};Object.defineProperty(o,"__esModule",{value:!0}),o.share=void 0;var b=a(8767),u=a(3768),r=a(7052),c=a(9216);function h(m,d){for(var _=[],v=2;v<arguments.length;v++)_[v-2]=arguments[v];if(!0!==d){if(!1!==d){var y=new r.SafeSubscriber({next:function(){y.unsubscribe(),m()}});return d.apply(void 0,p([],n(_))).subscribe(y)}}else m()}o.share=function f(m){void 0===m&&(m={});var d=m.connector,_=void 0===d?function(){return new u.Subject}:d,v=m.resetOnError,y=void 0===v||v,E=m.resetOnComplete,M=void 0===E||E,A=m.resetOnRefCountZero,k=void 0===A||A;return function(j){var Y,U,Q,V=0,X=!1,re=!1,me=function(){null==U||U.unsubscribe(),U=void 0},we=function(){me(),Y=Q=void 0,X=re=!1},tt=function(){var G=Y;we(),null==G||G.unsubscribe()};return c.operate(function(G,q){V++,!re&&!X&&me();var B=Q=null!=Q?Q:_();q.add(function(){0==--V&&!re&&!X&&(U=h(tt,k))}),B.subscribe(q),!Y&&V>0&&(Y=new r.SafeSubscriber({next:function(ae){return B.next(ae)},error:function(ae){re=!0,me(),U=h(we,y,ae),B.error(ae)},complete:function(){X=!0,me(),U=h(we,M),B.complete()}}),b.innerFrom(G).subscribe(Y))})(j)}}},2186:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.shareReplay=void 0;var n=a(3406),p=a(3222);o.shareReplay=function b(u,r,c){var f,h,m,d,_=!1;return u&&"object"==typeof u?(d=void 0===(f=u.bufferSize)?1/0:f,r=void 0===(h=u.windowTime)?1/0:h,_=void 0!==(m=u.refCount)&&m,c=u.scheduler):d=null!=u?u:1/0,p.share({connector:function(){return new n.ReplaySubject(d,r,c)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:_})}},695:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.single=void 0;var n=a(8915),p=a(1551),b=a(5477),u=a(9216),r=a(3173);o.single=function c(f){return u.operate(function(h,m){var _,d=!1,v=!1,y=0;h.subscribe(r.createOperatorSubscriber(m,function(E){v=!0,(!f||f(E,y++,h))&&(d&&m.error(new p.SequenceError("Too many matching values")),d=!0,_=E)},function(){d?(m.next(_),m.complete()):m.error(v?new b.NotFoundError("No matching values"):new n.EmptyError)}))})}},4975:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.skip=void 0;var n=a(4270);o.skip=function p(b){return n.filter(function(u,r){return b<=r})}},728:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.skipLast=void 0;var n=a(7884),p=a(9216),b=a(3173);o.skipLast=function u(r){return r<=0?n.identity:p.operate(function(c,f){var h=new Array(r),m=0;return c.subscribe(b.createOperatorSubscriber(f,function(d){var _=m++;if(_<r)h[_]=d;else{var v=_%r,y=h[v];h[v]=d,f.next(y)}})),function(){h=null}})}},7409:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.skipUntil=void 0;var n=a(9216),p=a(3173),b=a(8767),u=a(31);o.skipUntil=function r(c){return n.operate(function(f,h){var m=!1,d=p.createOperatorSubscriber(h,function(){null==d||d.unsubscribe(),m=!0},u.noop);b.innerFrom(c).subscribe(d),f.subscribe(p.createOperatorSubscriber(h,function(_){return m&&h.next(_)}))})}},385:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.skipWhile=void 0;var n=a(9216),p=a(3173);o.skipWhile=function b(u){return n.operate(function(r,c){var f=!1,h=0;r.subscribe(p.createOperatorSubscriber(c,function(m){return(f||(f=!u(m,h++)))&&c.next(m)}))})}},4930:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.startWith=void 0;var n=a(509),p=a(1642),b=a(9216);o.startWith=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];var f=p.popScheduler(r);return b.operate(function(h,m){(f?n.concat(r,h,f):n.concat(r,h)).subscribe(m)})}},1698:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.subscribeOn=void 0;var n=a(9216);o.subscribeOn=function p(b,u){return void 0===u&&(u=0),n.operate(function(r,c){c.add(b.schedule(function(){return r.subscribe(c)},u))})}},8044:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.switchAll=void 0;var n=a(986),p=a(7884);o.switchAll=function b(){return n.switchMap(p.identity)}},986:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.switchMap=void 0;var n=a(8767),p=a(9216),b=a(3173);o.switchMap=function u(r,c){return p.operate(function(f,h){var m=null,d=0,_=!1,v=function(){return _&&!m&&h.complete()};f.subscribe(b.createOperatorSubscriber(h,function(y){null==m||m.unsubscribe();var E=0,M=d++;n.innerFrom(r(y,M)).subscribe(m=b.createOperatorSubscriber(h,function(A){return h.next(c?c(y,A,M,E++):A)},function(){m=null,v()}))},function(){_=!0,v()}))})}},9309:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.switchMapTo=void 0;var n=a(986),p=a(7104);o.switchMapTo=function b(u,r){return p.isFunction(r)?n.switchMap(function(){return u},r):n.switchMap(function(){return u})}},9499:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.switchScan=void 0;var n=a(986),p=a(9216);o.switchScan=function b(u,r){return p.operate(function(c,f){var h=r;return n.switchMap(function(m,d){return u(h,m,d)},function(m,d){return h=d,d})(c).subscribe(f),function(){h=null}})}},1333:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.take=void 0;var n=a(7406),p=a(9216),b=a(3173);o.take=function u(r){return r<=0?function(){return n.EMPTY}:p.operate(function(c,f){var h=0;c.subscribe(b.createOperatorSubscriber(f,function(m){++h<=r&&(f.next(m),r<=h&&f.complete())}))})}},3534:function(H,o,a){"use strict";var n=this&&this.__values||function(c){var f="function"==typeof Symbol&&Symbol.iterator,h=f&&c[f],m=0;if(h)return h.call(c);if(c&&"number"==typeof c.length)return{next:function(){return c&&m>=c.length&&(c=void 0),{value:c&&c[m++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.takeLast=void 0;var p=a(7406),b=a(9216),u=a(3173);o.takeLast=function r(c){return c<=0?function(){return p.EMPTY}:b.operate(function(f,h){var m=[];f.subscribe(u.createOperatorSubscriber(h,function(d){m.push(d),c<m.length&&m.shift()},function(){var d,_;try{for(var v=n(m),y=v.next();!y.done;y=v.next())h.next(y.value)}catch(M){d={error:M}}finally{try{y&&!y.done&&(_=v.return)&&_.call(v)}finally{if(d)throw d.error}}h.complete()},void 0,function(){m=null}))})}},5716:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.takeUntil=void 0;var n=a(9216),p=a(3173),b=a(8767),u=a(31);o.takeUntil=function r(c){return n.operate(function(f,h){b.innerFrom(c).subscribe(p.createOperatorSubscriber(h,function(){return h.complete()},u.noop)),!h.closed&&f.subscribe(h)})}},9928:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.takeWhile=void 0;var n=a(9216),p=a(3173);o.takeWhile=function b(u,r){return void 0===r&&(r=!1),n.operate(function(c,f){var h=0;c.subscribe(p.createOperatorSubscriber(f,function(m){var d=u(m,h++);(d||r)&&f.next(m),!d&&f.complete()}))})}},6821:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.tap=void 0;var n=a(7104),p=a(9216),b=a(3173),u=a(7884);o.tap=function r(c,f,h){var m=n.isFunction(c)||f||h?{next:c,error:f,complete:h}:c;return m?p.operate(function(d,_){var v;null===(v=m.subscribe)||void 0===v||v.call(m);var y=!0;d.subscribe(b.createOperatorSubscriber(_,function(E){var M;null===(M=m.next)||void 0===M||M.call(m,E),_.next(E)},function(){var E;y=!1,null===(E=m.complete)||void 0===E||E.call(m),_.complete()},function(E){var M;y=!1,null===(M=m.error)||void 0===M||M.call(m,E),_.error(E)},function(){var E,M;y&&(null===(E=m.unsubscribe)||void 0===E||E.call(m)),null===(M=m.finalize)||void 0===M||M.call(m)}))}):u.identity}},4330:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.throttle=o.defaultThrottleConfig=void 0;var n=a(9216),p=a(3173),b=a(8767);o.defaultThrottleConfig={leading:!0,trailing:!1},o.throttle=function u(r,c){return void 0===c&&(c=o.defaultThrottleConfig),n.operate(function(f,h){var m=c.leading,d=c.trailing,_=!1,v=null,y=null,E=!1,M=function(){null==y||y.unsubscribe(),y=null,d&&(j(),E&&h.complete())},A=function(){y=null,E&&h.complete()},k=function(Y){return y=b.innerFrom(r(Y)).subscribe(p.createOperatorSubscriber(h,M,A))},j=function(){if(_){_=!1;var Y=v;v=null,h.next(Y),!E&&k(Y)}};f.subscribe(p.createOperatorSubscriber(h,function(Y){_=!0,v=Y,(!y||y.closed)&&(m?j():k(Y))},function(){E=!0,(!(d&&_&&y)||y.closed)&&h.complete()}))})}},4029:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.throttleTime=void 0;var n=a(4006),p=a(4330),b=a(3271);o.throttleTime=function u(r,c,f){void 0===c&&(c=n.asyncScheduler),void 0===f&&(f=p.defaultThrottleConfig);var h=b.timer(r,c);return p.throttle(function(){return h},f)}},9194:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.throwIfEmpty=void 0;var n=a(8915),p=a(9216),b=a(3173);function r(){return new n.EmptyError}o.throwIfEmpty=function u(c){return void 0===c&&(c=r),p.operate(function(f,h){var m=!1;f.subscribe(b.createOperatorSubscriber(h,function(d){m=!0,h.next(d)},function(){return m?h.complete():h.error(c())}))})}},5904:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.TimeInterval=o.timeInterval=void 0;var n=a(4006),p=a(9216),b=a(3173);o.timeInterval=function u(c){return void 0===c&&(c=n.asyncScheduler),p.operate(function(f,h){var m=c.now();f.subscribe(b.createOperatorSubscriber(h,function(d){var _=c.now(),v=_-m;m=_,h.next(new r(d,v))}))})};var r=function c(f,h){this.value=f,this.interval=h};o.TimeInterval=r},5001:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.timeout=o.TimeoutError=void 0;var n=a(4006),p=a(7323),b=a(9216),u=a(8767),r=a(9703),c=a(3173),f=a(2590);function m(d){throw new o.TimeoutError(d)}o.TimeoutError=r.createErrorClass(function(d){return function(v){void 0===v&&(v=null),d(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=v}}),o.timeout=function h(d,_){var v=p.isValidDate(d)?{first:d}:"number"==typeof d?{each:d}:d,y=v.first,E=v.each,M=v.with,A=void 0===M?m:M,k=v.scheduler,j=void 0===k?null!=_?_:n.asyncScheduler:k,Y=v.meta,U=void 0===Y?null:Y;if(null==y&&null==E)throw new TypeError("No timeout provided.");return b.operate(function(Q,V){var X,re,me=null,we=0,tt=function(G){re=f.executeSchedule(V,j,function(){try{X.unsubscribe(),u.innerFrom(A({meta:U,lastValue:me,seen:we})).subscribe(V)}catch(q){V.error(q)}},G)};X=Q.subscribe(c.createOperatorSubscriber(V,function(G){null==re||re.unsubscribe(),we++,V.next(me=G),E>0&&tt(E)},void 0,void 0,function(){null!=re&&re.closed||null==re||re.unsubscribe(),me=null})),!we&&tt(null!=y?"number"==typeof y?y:+y-j.now():E)})}},8308:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.timeoutWith=void 0;var n=a(4006),p=a(7323),b=a(5001);o.timeoutWith=function u(r,c,f){var h,m,d;if(f=null!=f?f:n.async,p.isValidDate(r)?h=r:"number"==typeof r&&(m=r),!c)throw new TypeError("No observable provided to switch to");if(d=function(){return c},null==h&&null==m)throw new TypeError("No timeout provided.");return b.timeout({first:h,each:m,scheduler:f,with:d})}},250:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.timestamp=void 0;var n=a(8354),p=a(752);o.timestamp=function b(u){return void 0===u&&(u=n.dateTimestampProvider),p.map(function(r){return{value:r,timestamp:u.now()}})}},2976:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.toArray=void 0;var n=a(8587),p=a(9216),b=function(r,c){return r.push(c),r};o.toArray=function u(){return p.operate(function(r,c){n.reduce(b,[])(r).subscribe(c)})}},9374:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.window=void 0;var n=a(3768),p=a(9216),b=a(3173),u=a(31);o.window=function r(c){return p.operate(function(f,h){var m=new n.Subject;h.next(m.asObservable());var d=function(_){m.error(_),h.error(_)};return f.subscribe(b.createOperatorSubscriber(h,function(_){return null==m?void 0:m.next(_)},function(){m.complete(),h.complete()},d)),c.subscribe(b.createOperatorSubscriber(h,function(){m.complete(),h.next(m=new n.Subject)},u.noop,d)),function(){null==m||m.unsubscribe(),m=null}})}},8427:function(H,o,a){"use strict";var n=this&&this.__values||function(c){var f="function"==typeof Symbol&&Symbol.iterator,h=f&&c[f],m=0;if(h)return h.call(c);if(c&&"number"==typeof c.length)return{next:function(){return c&&m>=c.length&&(c=void 0),{value:c&&c[m++],done:!c}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.windowCount=void 0;var p=a(3768),b=a(9216),u=a(3173);o.windowCount=function r(c,f){void 0===f&&(f=0);var h=f>0?f:c;return b.operate(function(m,d){var _=[new p.Subject],y=0;d.next(_[0].asObservable()),m.subscribe(u.createOperatorSubscriber(d,function(E){var M,A;try{for(var k=n(_),j=k.next();!j.done;j=k.next())j.value.next(E)}catch(V){M={error:V}}finally{try{j&&!j.done&&(A=k.return)&&A.call(k)}finally{if(M)throw M.error}}var U=y-c+1;if(U>=0&&U%h==0&&_.shift().complete(),++y%h==0){var Q=new p.Subject;_.push(Q),d.next(Q.asObservable())}},function(){for(;_.length>0;)_.shift().complete();d.complete()},function(E){for(;_.length>0;)_.shift().error(E);d.error(E)},function(){_=null}))})}},2358:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.windowTime=void 0;var n=a(3768),p=a(4006),b=a(6448),u=a(9216),r=a(3173),c=a(5137),f=a(1642),h=a(2590);o.windowTime=function m(d){for(var _,v,y=[],E=1;E<arguments.length;E++)y[E-1]=arguments[E];var M=null!==(_=f.popScheduler(y))&&void 0!==_?_:p.asyncScheduler,A=null!==(v=y[0])&&void 0!==v?v:null,k=y[1]||1/0;return u.operate(function(j,Y){var U=[],Q=!1,V=function(we){var G=we.subs;we.window.complete(),G.unsubscribe(),c.arrRemove(U,we),Q&&X()},X=function(){if(U){var we=new b.Subscription;Y.add(we);var tt=new n.Subject,G={window:tt,subs:we,seen:0};U.push(G),Y.next(tt.asObservable()),h.executeSchedule(we,M,function(){return V(G)},d)}};null!==A&&A>=0?h.executeSchedule(Y,M,X,A,!0):Q=!0,X();var re=function(we){return U.slice().forEach(we)},me=function(we){re(function(tt){return we(tt.window)}),we(Y),Y.unsubscribe()};return j.subscribe(r.createOperatorSubscriber(Y,function(we){re(function(tt){tt.window.next(we),k<=++tt.seen&&V(tt)})},function(){return me(function(we){return we.complete()})},function(we){return me(function(tt){return tt.error(we)})})),function(){U=null}})}},6464:function(H,o,a){"use strict";var n=this&&this.__values||function(d){var _="function"==typeof Symbol&&Symbol.iterator,v=_&&d[_],y=0;if(v)return v.call(d);if(d&&"number"==typeof d.length)return{next:function(){return d&&y>=d.length&&(d=void 0),{value:d&&d[y++],done:!d}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(o,"__esModule",{value:!0}),o.windowToggle=void 0;var p=a(3768),b=a(6448),u=a(9216),r=a(8767),c=a(3173),f=a(31),h=a(5137);o.windowToggle=function m(d,_){return u.operate(function(v,y){var E=[],M=function(A){for(;0<E.length;)E.shift().error(A);y.error(A)};r.innerFrom(d).subscribe(c.createOperatorSubscriber(y,function(A){var k=new p.Subject;E.push(k);var U,j=new b.Subscription;try{U=r.innerFrom(_(A))}catch(Q){return void M(Q)}y.next(k.asObservable()),j.add(U.subscribe(c.createOperatorSubscriber(y,function(){h.arrRemove(E,k),k.complete(),j.unsubscribe()},f.noop,M)))},f.noop)),v.subscribe(c.createOperatorSubscriber(y,function(A){var k,j,Y=E.slice();try{for(var U=n(Y),Q=U.next();!Q.done;Q=U.next())Q.value.next(A)}catch(X){k={error:X}}finally{try{Q&&!Q.done&&(j=U.return)&&j.call(U)}finally{if(k)throw k.error}}},function(){for(;0<E.length;)E.shift().complete();y.complete()},M,function(){for(;0<E.length;)E.shift().unsubscribe()}))})}},5424:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.windowWhen=void 0;var n=a(3768),p=a(9216),b=a(3173),u=a(8767);o.windowWhen=function r(c){return p.operate(function(f,h){var m,d,_=function(y){m.error(y),h.error(y)},v=function(){var y;null==d||d.unsubscribe(),null==m||m.complete(),m=new n.Subject,h.next(m.asObservable());try{y=u.innerFrom(c())}catch(E){return void _(E)}y.subscribe(d=b.createOperatorSubscriber(h,v,v,_))};v(),f.subscribe(b.createOperatorSubscriber(h,function(y){return m.next(y)},function(){m.complete(),h.complete()},_,function(){null==d||d.unsubscribe(),m=null}))})}},135:function(H,o,a){"use strict";var n=this&&this.__read||function(d,_){var v="function"==typeof Symbol&&d[Symbol.iterator];if(!v)return d;var E,A,y=v.call(d),M=[];try{for(;(void 0===_||_-- >0)&&!(E=y.next()).done;)M.push(E.value)}catch(k){A={error:k}}finally{try{E&&!E.done&&(v=y.return)&&v.call(y)}finally{if(A)throw A.error}}return M},p=this&&this.__spreadArray||function(d,_){for(var v=0,y=_.length,E=d.length;v<y;v++,E++)d[E]=_[v];return d};Object.defineProperty(o,"__esModule",{value:!0}),o.withLatestFrom=void 0;var b=a(9216),u=a(3173),r=a(8767),c=a(7884),f=a(31),h=a(1642);o.withLatestFrom=function m(){for(var d=[],_=0;_<arguments.length;_++)d[_]=arguments[_];var v=h.popResultSelector(d);return b.operate(function(y,E){for(var M=d.length,A=new Array(M),k=d.map(function(){return!1}),j=!1,Y=function(Q){r.innerFrom(d[Q]).subscribe(u.createOperatorSubscriber(E,function(V){A[Q]=V,!j&&!k[Q]&&(k[Q]=!0,(j=k.every(c.identity))&&(k=null))},f.noop))},U=0;U<M;U++)Y(U);y.subscribe(u.createOperatorSubscriber(E,function(Q){if(j){var V=p([Q],n(A));E.next(v?v.apply(void 0,p([],n(V))):V)}}))})}},5573:function(H,o,a){"use strict";var n=this&&this.__read||function(c,f){var h="function"==typeof Symbol&&c[Symbol.iterator];if(!h)return c;var d,v,m=h.call(c),_=[];try{for(;(void 0===f||f-- >0)&&!(d=m.next()).done;)_.push(d.value)}catch(y){v={error:y}}finally{try{d&&!d.done&&(h=m.return)&&h.call(m)}finally{if(v)throw v.error}}return _},p=this&&this.__spreadArray||function(c,f){for(var h=0,m=f.length,d=c.length;h<m;h++,d++)c[d]=f[h];return c};Object.defineProperty(o,"__esModule",{value:!0}),o.zip=void 0;var b=a(4842),u=a(9216);o.zip=function r(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return u.operate(function(h,m){b.zip.apply(void 0,p([h],n(c))).subscribe(m)})}},8101:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.zipAll=void 0;var n=a(4842),p=a(1277);o.zipAll=function b(u){return p.joinAllInternals(n.zip,u)}},9411:function(H,o,a){"use strict";var n=this&&this.__read||function(r,c){var f="function"==typeof Symbol&&r[Symbol.iterator];if(!f)return r;var m,_,h=f.call(r),d=[];try{for(;(void 0===c||c-- >0)&&!(m=h.next()).done;)d.push(m.value)}catch(v){_={error:v}}finally{try{m&&!m.done&&(f=h.return)&&f.call(h)}finally{if(_)throw _.error}}return d},p=this&&this.__spreadArray||function(r,c){for(var f=0,h=c.length,m=r.length;f<h;f++,m++)r[m]=c[f];return r};Object.defineProperty(o,"__esModule",{value:!0}),o.zipWith=void 0;var b=a(5573);o.zipWith=function u(){for(var r=[],c=0;c<arguments.length;c++)r[c]=arguments[c];return b.zip.apply(void 0,p([],n(r)))}},9611:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduleArray=void 0;var n=a(5821);o.scheduleArray=function p(b,u){return new n.Observable(function(r){var c=0;return u.schedule(function(){c===b.length?r.complete():(r.next(b[c++]),r.closed||this.schedule())})})}},3009:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduleAsyncIterable=void 0;var n=a(5821),p=a(2590);o.scheduleAsyncIterable=function b(u,r){if(!u)throw new Error("Iterable cannot be null");return new n.Observable(function(c){p.executeSchedule(c,r,function(){var f=u[Symbol.asyncIterator]();p.executeSchedule(c,r,function(){f.next().then(function(h){h.done?c.complete():c.next(h.value)})},0,!0)})})}},9049:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduleIterable=void 0;var n=a(5821),p=a(4260),b=a(7104),u=a(2590);o.scheduleIterable=function r(c,f){return new n.Observable(function(h){var m;return u.executeSchedule(h,f,function(){m=c[p.iterator](),u.executeSchedule(h,f,function(){var d,_,v;try{_=(d=m.next()).value,v=d.done}catch(y){return void h.error(y)}v?h.complete():h.next(_)},0,!0)}),function(){return b.isFunction(null==m?void 0:m.return)&&m.return()}})}},7767:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduleObservable=void 0;var n=a(8767),p=a(4928),b=a(1698);o.scheduleObservable=function u(r,c){return n.innerFrom(r).pipe(b.subscribeOn(c),p.observeOn(c))}},2247:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.schedulePromise=void 0;var n=a(8767),p=a(4928),b=a(1698);o.schedulePromise=function u(r,c){return n.innerFrom(r).pipe(b.subscribeOn(c),p.observeOn(c))}},3958:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduleReadableStreamLike=void 0;var n=a(3009),p=a(7128);o.scheduleReadableStreamLike=function b(u,r){return n.scheduleAsyncIterable(p.readableStreamLikeToAsyncGenerator(u),r)}},9341:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.scheduled=void 0;var n=a(7767),p=a(2247),b=a(9611),u=a(9049),r=a(3009),c=a(7454),f=a(5050),h=a(697),m=a(5431),d=a(6175),_=a(6870),v=a(7128),y=a(3958);o.scheduled=function E(M,A){if(null!=M){if(c.isInteropObservable(M))return n.scheduleObservable(M,A);if(h.isArrayLike(M))return b.scheduleArray(M,A);if(f.isPromise(M))return p.schedulePromise(M,A);if(d.isAsyncIterable(M))return r.scheduleAsyncIterable(M,A);if(m.isIterable(M))return u.scheduleIterable(M,A);if(v.isReadableStreamLike(M))return y.scheduleReadableStreamLike(M,A)}throw _.createInvalidObservableTypeError(M)}},1394:function(H,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)});Object.defineProperty(o,"__esModule",{value:!0}),o.Action=void 0;var b=function(u){function r(c,f){return u.call(this)||this}return n(r,u),r.prototype.schedule=function(c,f){return void 0===f&&(f=0),this},r}(a(6448).Subscription);o.Action=b},275:function(H,o,a){"use strict";var r,n=this&&this.__extends||(r=function(c,f){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&(h[d]=m[d])})(c,f)},function(c,f){if("function"!=typeof f&&null!==f)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function h(){this.constructor=c}r(c,f),c.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)});Object.defineProperty(o,"__esModule",{value:!0}),o.AnimationFrameAction=void 0;var p=a(4723),b=a(6343),u=function(r){function c(f,h){var m=r.call(this,f,h)||this;return m.scheduler=f,m.work=h,m}return n(c,r),c.prototype.requestAsyncId=function(f,h,m){return void 0===m&&(m=0),null!==m&&m>0?r.prototype.requestAsyncId.call(this,f,h,m):(f.actions.push(this),f._scheduled||(f._scheduled=b.animationFrameProvider.requestAnimationFrame(function(){return f.flush(void 0)})))},c.prototype.recycleAsyncId=function(f,h,m){if(void 0===m&&(m=0),null!=m&&m>0||null==m&&this.delay>0)return r.prototype.recycleAsyncId.call(this,f,h,m);f.actions.some(function(d){return d.id===h})||(b.animationFrameProvider.cancelAnimationFrame(h),f._scheduled=void 0)},c}(p.AsyncAction);o.AnimationFrameAction=u},3625:function(H,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)});Object.defineProperty(o,"__esModule",{value:!0}),o.AnimationFrameScheduler=void 0;var b=function(u){function r(){return null!==u&&u.apply(this,arguments)||this}return n(r,u),r.prototype.flush=function(c){this._active=!0;var f=this._scheduled;this._scheduled=void 0;var m,h=this.actions;c=c||h.shift();do{if(m=c.execute(c.state,c.delay))break}while((c=h[0])&&c.id===f&&h.shift());if(this._active=!1,m){for(;(c=h[0])&&c.id===f&&h.shift();)c.unsubscribe();throw m}},r}(a(6216).AsyncScheduler);o.AnimationFrameScheduler=b},7046:function(H,o,a){"use strict";var r,n=this&&this.__extends||(r=function(c,f){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,m){h.__proto__=m}||function(h,m){for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&(h[d]=m[d])})(c,f)},function(c,f){if("function"!=typeof f&&null!==f)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function h(){this.constructor=c}r(c,f),c.prototype=null===f?Object.create(f):(h.prototype=f.prototype,new h)});Object.defineProperty(o,"__esModule",{value:!0}),o.AsapAction=void 0;var p=a(4723),b=a(7766),u=function(r){function c(f,h){var m=r.call(this,f,h)||this;return m.scheduler=f,m.work=h,m}return n(c,r),c.prototype.requestAsyncId=function(f,h,m){return void 0===m&&(m=0),null!==m&&m>0?r.prototype.requestAsyncId.call(this,f,h,m):(f.actions.push(this),f._scheduled||(f._scheduled=b.immediateProvider.setImmediate(f.flush.bind(f,void 0))))},c.prototype.recycleAsyncId=function(f,h,m){if(void 0===m&&(m=0),null!=m&&m>0||null==m&&this.delay>0)return r.prototype.recycleAsyncId.call(this,f,h,m);f.actions.some(function(d){return d.id===h})||(b.immediateProvider.clearImmediate(h),f._scheduled=void 0)},c}(p.AsyncAction);o.AsapAction=u},3706:function(H,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)});Object.defineProperty(o,"__esModule",{value:!0}),o.AsapScheduler=void 0;var b=function(u){function r(){return null!==u&&u.apply(this,arguments)||this}return n(r,u),r.prototype.flush=function(c){this._active=!0;var f=this._scheduled;this._scheduled=void 0;var m,h=this.actions;c=c||h.shift();do{if(m=c.execute(c.state,c.delay))break}while((c=h[0])&&c.id===f&&h.shift());if(this._active=!1,m){for(;(c=h[0])&&c.id===f&&h.shift();)c.unsubscribe();throw m}},r}(a(6216).AsyncScheduler);o.AsapScheduler=b},4723:function(H,o,a){"use strict";var c,n=this&&this.__extends||(c=function(f,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,d){m.__proto__=d}||function(m,d){for(var _ in d)Object.prototype.hasOwnProperty.call(d,_)&&(m[_]=d[_])})(f,h)},function(f,h){if("function"!=typeof h&&null!==h)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");function m(){this.constructor=f}c(f,h),f.prototype=null===h?Object.create(h):(m.prototype=h.prototype,new m)});Object.defineProperty(o,"__esModule",{value:!0}),o.AsyncAction=void 0;var p=a(1394),b=a(2444),u=a(5137),r=function(c){function f(h,m){var d=c.call(this,h,m)||this;return d.scheduler=h,d.work=m,d.pending=!1,d}return n(f,c),f.prototype.schedule=function(h,m){if(void 0===m&&(m=0),this.closed)return this;this.state=h;var d=this.id,_=this.scheduler;return null!=d&&(this.id=this.recycleAsyncId(_,d,m)),this.pending=!0,this.delay=m,this.id=this.id||this.requestAsyncId(_,this.id,m),this},f.prototype.requestAsyncId=function(h,m,d){return void 0===d&&(d=0),b.intervalProvider.setInterval(h.flush.bind(h,this),d)},f.prototype.recycleAsyncId=function(h,m,d){if(void 0===d&&(d=0),null!=d&&this.delay===d&&!1===this.pending)return m;b.intervalProvider.clearInterval(m)},f.prototype.execute=function(h,m){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var d=this._execute(h,m);if(d)return d;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},f.prototype._execute=function(h,m){var _,d=!1;try{this.work(h)}catch(v){d=!0,_=v||new Error("Scheduled action threw falsy error")}if(d)return this.unsubscribe(),_},f.prototype.unsubscribe=function(){if(!this.closed){var m=this.id,d=this.scheduler,_=d.actions;this.work=this.state=this.scheduler=null,this.pending=!1,u.arrRemove(_,this),null!=m&&(this.id=this.recycleAsyncId(d,m,null)),this.delay=null,c.prototype.unsubscribe.call(this)}},f}(p.Action);o.AsyncAction=r},6216:function(H,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)});Object.defineProperty(o,"__esModule",{value:!0}),o.AsyncScheduler=void 0;var p=a(2716),b=function(u){function r(c,f){void 0===f&&(f=p.Scheduler.now);var h=u.call(this,c,f)||this;return h.actions=[],h._active=!1,h._scheduled=void 0,h}return n(r,u),r.prototype.flush=function(c){var f=this.actions;if(this._active)f.push(c);else{var h;this._active=!0;do{if(h=c.execute(c.state,c.delay))break}while(c=f.shift());if(this._active=!1,h){for(;c=f.shift();)c.unsubscribe();throw h}}},r}(p.Scheduler);o.AsyncScheduler=b},4954:function(H,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)});Object.defineProperty(o,"__esModule",{value:!0}),o.QueueAction=void 0;var b=function(u){function r(c,f){var h=u.call(this,c,f)||this;return h.scheduler=c,h.work=f,h}return n(r,u),r.prototype.schedule=function(c,f){return void 0===f&&(f=0),f>0?u.prototype.schedule.call(this,c,f):(this.delay=f,this.state=c,this.scheduler.flush(this),this)},r.prototype.execute=function(c,f){return f>0||this.closed?u.prototype.execute.call(this,c,f):this._execute(c,f)},r.prototype.requestAsyncId=function(c,f,h){return void 0===h&&(h=0),null!=h&&h>0||null==h&&this.delay>0?u.prototype.requestAsyncId.call(this,c,f,h):c.flush(this)},r}(a(4723).AsyncAction);o.QueueAction=b},345:function(H,o,a){"use strict";var u,n=this&&this.__extends||(u=function(r,c){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(f[m]=h[m])})(r,c)},function(r,c){if("function"!=typeof c&&null!==c)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function f(){this.constructor=r}u(r,c),r.prototype=null===c?Object.create(c):(f.prototype=c.prototype,new f)});Object.defineProperty(o,"__esModule",{value:!0}),o.QueueScheduler=void 0;var b=function(u){function r(){return null!==u&&u.apply(this,arguments)||this}return n(r,u),r}(a(6216).AsyncScheduler);o.QueueScheduler=b},2018:function(H,o,a){"use strict";var f,n=this&&this.__extends||(f=function(h,m){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,_){d.__proto__=_}||function(d,_){for(var v in _)Object.prototype.hasOwnProperty.call(_,v)&&(d[v]=_[v])})(h,m)},function(h,m){if("function"!=typeof m&&null!==m)throw new TypeError("Class extends value "+String(m)+" is not a constructor or null");function d(){this.constructor=h}f(h,m),h.prototype=null===m?Object.create(m):(d.prototype=m.prototype,new d)});Object.defineProperty(o,"__esModule",{value:!0}),o.VirtualAction=o.VirtualTimeScheduler=void 0;var p=a(4723),b=a(6448),r=function(f){function h(m,d){void 0===m&&(m=c),void 0===d&&(d=1/0);var _=f.call(this,m,function(){return _.frame})||this;return _.maxFrames=d,_.frame=0,_.index=-1,_}return n(h,f),h.prototype.flush=function(){for(var v,y,d=this.actions,_=this.maxFrames;(y=d[0])&&y.delay<=_&&(d.shift(),this.frame=y.delay,!(v=y.execute(y.state,y.delay))););if(v){for(;y=d.shift();)y.unsubscribe();throw v}},h.frameTimeFactor=10,h}(a(6216).AsyncScheduler);o.VirtualTimeScheduler=r;var c=function(f){function h(m,d,_){void 0===_&&(_=m.index+=1);var v=f.call(this,m,d)||this;return v.scheduler=m,v.work=d,v.index=_,v.active=!0,v.index=m.index=_,v}return n(h,f),h.prototype.schedule=function(m,d){if(void 0===d&&(d=0),Number.isFinite(d)){if(!this.id)return f.prototype.schedule.call(this,m,d);this.active=!1;var _=new h(this.scheduler,this.work);return this.add(_),_.schedule(m,d)}return b.Subscription.EMPTY},h.prototype.requestAsyncId=function(m,d,_){void 0===_&&(_=0),this.delay=m.frame+_;var v=m.actions;return v.push(this),v.sort(h.sortActions),!0},h.prototype.recycleAsyncId=function(m,d,_){void 0===_&&(_=0)},h.prototype._execute=function(m,d){if(!0===this.active)return f.prototype._execute.call(this,m,d)},h.sortActions=function(m,d){return m.delay===d.delay?m.index===d.index?0:m.index>d.index?1:-1:m.delay>d.delay?1:-1},h}(p.AsyncAction);o.VirtualAction=c},1906:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.animationFrame=o.animationFrameScheduler=void 0;var n=a(275),p=a(3625);o.animationFrameScheduler=new p.AnimationFrameScheduler(n.AnimationFrameAction),o.animationFrame=o.animationFrameScheduler},6343:function(H,o,a){"use strict";var n=this&&this.__read||function(u,r){var c="function"==typeof Symbol&&u[Symbol.iterator];if(!c)return u;var h,d,f=c.call(u),m=[];try{for(;(void 0===r||r-- >0)&&!(h=f.next()).done;)m.push(h.value)}catch(_){d={error:_}}finally{try{h&&!h.done&&(c=f.return)&&c.call(f)}finally{if(d)throw d.error}}return m},p=this&&this.__spreadArray||function(u,r){for(var c=0,f=r.length,h=u.length;c<f;c++,h++)u[h]=r[c];return u};Object.defineProperty(o,"__esModule",{value:!0}),o.animationFrameProvider=void 0;var b=a(6448);o.animationFrameProvider={schedule:function(u){var r=requestAnimationFrame,c=cancelAnimationFrame,f=o.animationFrameProvider.delegate;f&&(r=f.requestAnimationFrame,c=f.cancelAnimationFrame);var h=r(function(m){c=void 0,u(m)});return new b.Subscription(function(){return null==c?void 0:c(h)})},requestAnimationFrame:function(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];var c=o.animationFrameProvider.delegate;return((null==c?void 0:c.requestAnimationFrame)||requestAnimationFrame).apply(void 0,p([],n(u)))},cancelAnimationFrame:function(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];var c=o.animationFrameProvider.delegate;return((null==c?void 0:c.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,p([],n(u)))},delegate:void 0}},1212:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.asap=o.asapScheduler=void 0;var n=a(7046),p=a(3706);o.asapScheduler=new p.AsapScheduler(n.AsapAction),o.asap=o.asapScheduler},4006:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.async=o.asyncScheduler=void 0;var n=a(4723),p=a(6216);o.asyncScheduler=new p.AsyncScheduler(n.AsyncAction),o.async=o.asyncScheduler},8354:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.dateTimestampProvider=void 0,o.dateTimestampProvider={now:function(){return(o.dateTimestampProvider.delegate||Date).now()},delegate:void 0}},7766:function(H,o,a){"use strict";var n=this&&this.__read||function(c,f){var h="function"==typeof Symbol&&c[Symbol.iterator];if(!h)return c;var d,v,m=h.call(c),_=[];try{for(;(void 0===f||f-- >0)&&!(d=m.next()).done;)_.push(d.value)}catch(y){v={error:y}}finally{try{d&&!d.done&&(h=m.return)&&h.call(m)}finally{if(v)throw v.error}}return _},p=this&&this.__spreadArray||function(c,f){for(var h=0,m=f.length,d=c.length;h<m;h++,d++)c[d]=f[h];return c};Object.defineProperty(o,"__esModule",{value:!0}),o.immediateProvider=void 0;var b=a(349),u=b.Immediate.setImmediate,r=b.Immediate.clearImmediate;o.immediateProvider={setImmediate:function(){for(var c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];var h=o.immediateProvider.delegate;return((null==h?void 0:h.setImmediate)||u).apply(void 0,p([],n(c)))},clearImmediate:function(c){var f=o.immediateProvider.delegate;return((null==f?void 0:f.clearImmediate)||r)(c)},delegate:void 0}},2444:function(H,o){"use strict";var a=this&&this.__read||function(p,b){var u="function"==typeof Symbol&&p[Symbol.iterator];if(!u)return p;var c,h,r=u.call(p),f=[];try{for(;(void 0===b||b-- >0)&&!(c=r.next()).done;)f.push(c.value)}catch(m){h={error:m}}finally{try{c&&!c.done&&(u=r.return)&&u.call(r)}finally{if(h)throw h.error}}return f},n=this&&this.__spreadArray||function(p,b){for(var u=0,r=b.length,c=p.length;u<r;u++,c++)p[c]=b[u];return p};Object.defineProperty(o,"__esModule",{value:!0}),o.intervalProvider=void 0,o.intervalProvider={setInterval:function(p,b){for(var u=[],r=2;r<arguments.length;r++)u[r-2]=arguments[r];var c=o.intervalProvider.delegate;return null!=c&&c.setInterval?c.setInterval.apply(c,n([p,b],a(u))):setInterval.apply(void 0,n([p,b],a(u)))},clearInterval:function(p){var b=o.intervalProvider.delegate;return((null==b?void 0:b.clearInterval)||clearInterval)(p)},delegate:void 0}},1038:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.performanceTimestampProvider=void 0,o.performanceTimestampProvider={now:function(){return(o.performanceTimestampProvider.delegate||performance).now()},delegate:void 0}},5668:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.queue=o.queueScheduler=void 0;var n=a(4954),p=a(345);o.queueScheduler=new p.QueueScheduler(n.QueueAction),o.queue=o.queueScheduler},3914:function(H,o){"use strict";var a=this&&this.__read||function(p,b){var u="function"==typeof Symbol&&p[Symbol.iterator];if(!u)return p;var c,h,r=u.call(p),f=[];try{for(;(void 0===b||b-- >0)&&!(c=r.next()).done;)f.push(c.value)}catch(m){h={error:m}}finally{try{c&&!c.done&&(u=r.return)&&u.call(r)}finally{if(h)throw h.error}}return f},n=this&&this.__spreadArray||function(p,b){for(var u=0,r=b.length,c=p.length;u<r;u++,c++)p[c]=b[u];return p};Object.defineProperty(o,"__esModule",{value:!0}),o.timeoutProvider=void 0,o.timeoutProvider={setTimeout:function(p,b){for(var u=[],r=2;r<arguments.length;r++)u[r-2]=arguments[r];var c=o.timeoutProvider.delegate;return null!=c&&c.setTimeout?c.setTimeout.apply(c,n([p,b],a(u))):setTimeout.apply(void 0,n([p,b],a(u)))},clearTimeout:function(p){var b=o.timeoutProvider.delegate;return((null==b?void 0:b.clearTimeout)||clearTimeout)(p)},delegate:void 0}},4260:(H,o)=>{"use strict";function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}Object.defineProperty(o,"__esModule",{value:!0}),o.iterator=o.getSymbolIterator=void 0,o.getSymbolIterator=a,o.iterator=a()},1689:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.observable=void 0,o.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},5256:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0})},4769:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ArgumentOutOfRangeError=void 0;var n=a(9703);o.ArgumentOutOfRangeError=n.createErrorClass(function(p){return function(){p(this),this.name="ArgumentOutOfRangeError",this.message="argument out of range"}})},8915:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.EmptyError=void 0;var n=a(9703);o.EmptyError=n.createErrorClass(function(p){return function(){p(this),this.name="EmptyError",this.message="no elements in sequence"}})},349:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.TestTools=o.Immediate=void 0;var n,a=1,p={};function b(u){return u in p&&(delete p[u],!0)}o.Immediate={setImmediate:function(u){var r=a++;return p[r]=!0,n||(n=Promise.resolve()),n.then(function(){return b(r)&&u()}),r},clearImmediate:function(u){b(u)}},o.TestTools={pending:function(){return Object.keys(p).length}}},5477:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.NotFoundError=void 0;var n=a(9703);o.NotFoundError=n.createErrorClass(function(p){return function(u){p(this),this.name="NotFoundError",this.message=u}})},3965:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.ObjectUnsubscribedError=void 0;var n=a(9703);o.ObjectUnsubscribedError=n.createErrorClass(function(p){return function(){p(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})},1551:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.SequenceError=void 0;var n=a(9703);o.SequenceError=n.createErrorClass(function(p){return function(u){p(this),this.name="SequenceError",this.message=u}})},4970:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.UnsubscriptionError=void 0;var n=a(9703);o.UnsubscriptionError=n.createErrorClass(function(p){return function(u){p(this),this.message=u?u.length+" errors occurred during unsubscription:\n"+u.map(function(r,c){return c+1+") "+r.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=u}})},1642:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.popNumber=o.popScheduler=o.popResultSelector=void 0;var n=a(7104),p=a(1875);function b(f){return f[f.length-1]}o.popResultSelector=function u(f){return n.isFunction(b(f))?f.pop():void 0},o.popScheduler=function r(f){return p.isScheduler(b(f))?f.pop():void 0},o.popNumber=function c(f,h){return"number"==typeof b(f)?f.pop():h}},9923:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.argsArgArrayOrObject=void 0;var a=Array.isArray,n=Object.getPrototypeOf,p=Object.prototype,b=Object.keys;o.argsArgArrayOrObject=function u(c){if(1===c.length){var f=c[0];if(a(f))return{args:f,keys:null};if(function r(c){return c&&"object"==typeof c&&n(c)===p}(f)){var h=b(f);return{args:h.map(function(m){return f[m]}),keys:h}}}return{args:c,keys:null}}},3531:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.argsOrArgArray=void 0;var a=Array.isArray;o.argsOrArgArray=function n(p){return 1===p.length&&a(p[0])?p[0]:p}},5137:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.arrRemove=void 0,o.arrRemove=function a(n,p){if(n){var b=n.indexOf(p);0<=b&&n.splice(b,1)}}},9703:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createErrorClass=void 0,o.createErrorClass=function a(n){var b=n(function(u){Error.call(u),u.stack=(new Error).stack});return b.prototype=Object.create(Error.prototype),b.prototype.constructor=b,b}},7598:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createObject=void 0,o.createObject=function a(n,p){return n.reduce(function(b,u,r){return b[u]=p[r],b},{})}},5808:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.captureError=o.errorContext=void 0;var n=a(3570),p=null;o.errorContext=function b(r){if(n.config.useDeprecatedSynchronousErrorHandling){var c=!p;if(c&&(p={errorThrown:!1,error:null}),r(),c){var f=p;if(p=null,f.errorThrown)throw f.error}}else r()},o.captureError=function u(r){n.config.useDeprecatedSynchronousErrorHandling&&p&&(p.errorThrown=!0,p.error=r)}},2590:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.executeSchedule=void 0,o.executeSchedule=function a(n,p,b,u,r){void 0===u&&(u=0),void 0===r&&(r=!1);var c=p.schedule(function(){b(),r?n.add(this.schedule(null,u)):this.unsubscribe()},u);if(n.add(c),!r)return c}},7884:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.identity=void 0,o.identity=function a(n){return n}},697:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isArrayLike=void 0,o.isArrayLike=function(a){return a&&"number"==typeof a.length&&"function"!=typeof a}},6175:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isAsyncIterable=void 0;var n=a(7104);o.isAsyncIterable=function p(b){return Symbol.asyncIterator&&n.isFunction(null==b?void 0:b[Symbol.asyncIterator])}},7323:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isValidDate=void 0,o.isValidDate=function a(n){return n instanceof Date&&!isNaN(n)}},7104:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isFunction=void 0,o.isFunction=function a(n){return"function"==typeof n}},7454:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isInteropObservable=void 0;var n=a(1689),p=a(7104);o.isInteropObservable=function b(u){return p.isFunction(u[n.observable])}},5431:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isIterable=void 0;var n=a(4260),p=a(7104);o.isIterable=function b(u){return p.isFunction(null==u?void 0:u[n.iterator])}},4341:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isObservable=void 0;var n=a(5821),p=a(7104);o.isObservable=function b(u){return!!u&&(u instanceof n.Observable||p.isFunction(u.lift)&&p.isFunction(u.subscribe))}},5050:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isPromise=void 0;var n=a(7104);o.isPromise=function p(b){return n.isFunction(null==b?void 0:b.then)}},7128:function(H,o,a){"use strict";var n=this&&this.__generator||function(f,h){var d,_,v,y,m={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return y={next:E(0),throw:E(1),return:E(2)},"function"==typeof Symbol&&(y[Symbol.iterator]=function(){return this}),y;function E(A){return function(k){return function M(A){if(d)throw new TypeError("Generator is already executing.");for(;m;)try{if(d=1,_&&(v=2&A[0]?_.return:A[0]?_.throw||((v=_.return)&&v.call(_),0):_.next)&&!(v=v.call(_,A[1])).done)return v;switch(_=0,v&&(A=[2&A[0],v.value]),A[0]){case 0:case 1:v=A;break;case 4:return m.label++,{value:A[1],done:!1};case 5:m.label++,_=A[1],A=[0];continue;case 7:A=m.ops.pop(),m.trys.pop();continue;default:if(!(v=(v=m.trys).length>0&&v[v.length-1])&&(6===A[0]||2===A[0])){m=0;continue}if(3===A[0]&&(!v||A[1]>v[0]&&A[1]<v[3])){m.label=A[1];break}if(6===A[0]&&m.label<v[1]){m.label=v[1],v=A;break}if(v&&m.label<v[2]){m.label=v[2],m.ops.push(A);break}v[2]&&m.ops.pop(),m.trys.pop();continue}A=h.call(f,m)}catch(k){A=[6,k],_=0}finally{d=v=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}([A,k])}}},p=this&&this.__await||function(f){return this instanceof p?(this.v=f,this):new p(f)},b=this&&this.__asyncGenerator||function(f,h,m){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _,d=m.apply(f,h||[]),v=[];return _={},y("next"),y("throw"),y("return"),_[Symbol.asyncIterator]=function(){return this},_;function y(Y){d[Y]&&(_[Y]=function(U){return new Promise(function(Q,V){v.push([Y,U,Q,V])>1||E(Y,U)})})}function E(Y,U){try{!function M(Y){Y.value instanceof p?Promise.resolve(Y.value.v).then(A,k):j(v[0][2],Y)}(d[Y](U))}catch(Q){j(v[0][3],Q)}}function A(Y){E("next",Y)}function k(Y){E("throw",Y)}function j(Y,U){Y(U),v.shift(),v.length&&E(v[0][0],v[0][1])}};Object.defineProperty(o,"__esModule",{value:!0}),o.isReadableStreamLike=o.readableStreamLikeToAsyncGenerator=void 0;var u=a(7104);o.readableStreamLikeToAsyncGenerator=function r(f){return b(this,arguments,function(){var m,d,_;return n(this,function(y){switch(y.label){case 0:m=f.getReader(),y.label=1;case 1:y.trys.push([1,,9,10]),y.label=2;case 2:return[4,p(m.read())];case 3:return d=y.sent(),_=d.value,d.done?[4,p(void 0)]:[3,5];case 4:return[2,y.sent()];case 5:return[4,p(_)];case 6:return[4,y.sent()];case 7:return y.sent(),[3,2];case 8:return[3,10];case 9:return m.releaseLock(),[7];case 10:return[2]}})})},o.isReadableStreamLike=function c(f){return u.isFunction(null==f?void 0:f.getReader)}},1875:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isScheduler=void 0;var n=a(7104);o.isScheduler=function p(b){return b&&n.isFunction(b.schedule)}},9216:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.operate=o.hasLift=void 0;var n=a(7104);function p(u){return n.isFunction(null==u?void 0:u.lift)}o.hasLift=p,o.operate=function b(u){return function(r){if(p(r))return r.lift(function(c){try{return u(c,this)}catch(f){this.error(f)}});throw new TypeError("Unable to lift unknown Observable type")}}},5280:function(H,o,a){"use strict";var n=this&&this.__read||function(f,h){var m="function"==typeof Symbol&&f[Symbol.iterator];if(!m)return f;var _,y,d=m.call(f),v=[];try{for(;(void 0===h||h-- >0)&&!(_=d.next()).done;)v.push(_.value)}catch(E){y={error:E}}finally{try{_&&!_.done&&(m=d.return)&&m.call(d)}finally{if(y)throw y.error}}return v},p=this&&this.__spreadArray||function(f,h){for(var m=0,d=h.length,_=f.length;m<d;m++,_++)f[_]=h[m];return f};Object.defineProperty(o,"__esModule",{value:!0}),o.mapOneOrManyArgs=void 0;var b=a(752),u=Array.isArray;o.mapOneOrManyArgs=function c(f){return b.map(function(h){return function r(f,h){return u(h)?f.apply(void 0,p([],n(h))):f(h)}(f,h)})}},31:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.noop=void 0,o.noop=function a(){}},963:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.not=void 0,o.not=function a(n,p){return function(b,u){return!n.call(p,b,u)}}},1471:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.pipeFromArray=o.pipe=void 0;var n=a(7884);function b(u){return 0===u.length?n.identity:1===u.length?u[0]:function(c){return u.reduce(function(f,h){return h(f)},c)}}o.pipe=function p(){for(var u=[],r=0;r<arguments.length;r++)u[r]=arguments[r];return b(u)},o.pipeFromArray=b},4709:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.reportUnhandledError=void 0;var n=a(3570),p=a(3914);o.reportUnhandledError=function b(u){p.timeoutProvider.setTimeout(function(){var r=n.config.onUnhandledError;if(!r)throw u;r(u)})}},6870:(H,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.createInvalidObservableTypeError=void 0,o.createInvalidObservableTypeError=function a(n){return new TypeError("You provided "+(null!==n&&"object"==typeof n?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}},1135:(H,o,a)=>{"use strict";a.d(o,{X:()=>p});var n=a(7579);class p extends n.x{constructor(u){super(),this._value=u}get value(){return this.getValue()}_subscribe(u){const r=super._subscribe(u);return!r.closed&&u.next(this._value),r}getValue(){const{hasError:u,thrownError:r,_value:c}=this;if(u)throw r;return this._throwIfClosed(),c}next(u){super.next(this._value=u)}}},8306:(H,o,a)=>{"use strict";a.d(o,{y:()=>d});var n=a(930),p=a(727),b=a(8822),u=a(4671);var f=a(2416),h=a(576),m=a(2806);let d=(()=>{class E{constructor(A){A&&(this._subscribe=A)}lift(A){const k=new E;return k.source=this,k.operator=A,k}subscribe(A,k,j){const Y=function y(E){return E&&E instanceof n.Lv||function v(E){return E&&(0,h.m)(E.next)&&(0,h.m)(E.error)&&(0,h.m)(E.complete)}(E)&&(0,p.Nn)(E)}(A)?A:new n.Hp(A,k,j);return(0,m.x)(()=>{const{operator:U,source:Q}=this;Y.add(U?U.call(Y,Q):Q?this._subscribe(Y):this._trySubscribe(Y))}),Y}_trySubscribe(A){try{return this._subscribe(A)}catch(k){A.error(k)}}forEach(A,k){return new(k=_(k))((j,Y)=>{const U=new n.Hp({next:Q=>{try{A(Q)}catch(V){Y(V),U.unsubscribe()}},error:Y,complete:j});this.subscribe(U)})}_subscribe(A){var k;return null===(k=this.source)||void 0===k?void 0:k.subscribe(A)}[b.L](){return this}pipe(...A){return function c(E){return 0===E.length?u.y:1===E.length?E[0]:function(A){return E.reduce((k,j)=>j(k),A)}}(A)(this)}toPromise(A){return new(A=_(A))((k,j)=>{let Y;this.subscribe(U=>Y=U,U=>j(U),()=>k(Y))})}}return E.create=M=>new E(M),E})();function _(E){var M;return null!==(M=null!=E?E:f.v.Promise)&&void 0!==M?M:Promise}},7579:(H,o,a)=>{"use strict";a.d(o,{x:()=>f});var n=a(8306),p=a(727);const u=(0,a(3888).d)(m=>function(){m(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var r=a(8737),c=a(2806);let f=(()=>{class m extends n.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(_){const v=new h(this,this);return v.operator=_,v}_throwIfClosed(){if(this.closed)throw new u}next(_){(0,c.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const v of this.currentObservers)v.next(_)}})}error(_){(0,c.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=_;const{observers:v}=this;for(;v.length;)v.shift().error(_)}})}complete(){(0,c.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:_}=this;for(;_.length;)_.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var _;return(null===(_=this.observers)||void 0===_?void 0:_.length)>0}_trySubscribe(_){return this._throwIfClosed(),super._trySubscribe(_)}_subscribe(_){return this._throwIfClosed(),this._checkFinalizedStatuses(_),this._innerSubscribe(_)}_innerSubscribe(_){const{hasError:v,isStopped:y,observers:E}=this;return v||y?p.Lc:(this.currentObservers=null,E.push(_),new p.w0(()=>{this.currentObservers=null,(0,r.P)(E,_)}))}_checkFinalizedStatuses(_){const{hasError:v,thrownError:y,isStopped:E}=this;v?_.error(y):E&&_.complete()}asObservable(){const _=new n.y;return _.source=this,_}}return m.create=(d,_)=>new h(d,_),m})();class h extends f{constructor(d,_){super(),this.destination=d,this.source=_}next(d){var _,v;null===(v=null===(_=this.destination)||void 0===_?void 0:_.next)||void 0===v||v.call(_,d)}error(d){var _,v;null===(v=null===(_=this.destination)||void 0===_?void 0:_.error)||void 0===v||v.call(_,d)}complete(){var d,_;null===(_=null===(d=this.destination)||void 0===d?void 0:d.complete)||void 0===_||_.call(d)}_subscribe(d){var _,v;return null!==(v=null===(_=this.source)||void 0===_?void 0:_.subscribe(d))&&void 0!==v?v:p.Lc}}},930:(H,o,a)=>{"use strict";a.d(o,{Hp:()=>A,Lv:()=>v});var n=a(576),p=a(727),b=a(2416),u=a(7849),r=a(5032);const c=m("C",void 0,void 0);function m(Q,V,X){return{kind:Q,value:V,error:X}}var d=a(3410),_=a(2806);class v extends p.w0{constructor(V){super(),this.isStopped=!1,V?(this.destination=V,(0,p.Nn)(V)&&V.add(this)):this.destination=U}static create(V,X,re){return new A(V,X,re)}next(V){this.isStopped?Y(function h(Q){return m("N",Q,void 0)}(V),this):this._next(V)}error(V){this.isStopped?Y(function f(Q){return m("E",void 0,Q)}(V),this):(this.isStopped=!0,this._error(V))}complete(){this.isStopped?Y(c,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(V){this.destination.next(V)}_error(V){try{this.destination.error(V)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const y=Function.prototype.bind;function E(Q,V){return y.call(Q,V)}class M{constructor(V){this.partialObserver=V}next(V){const{partialObserver:X}=this;if(X.next)try{X.next(V)}catch(re){k(re)}}error(V){const{partialObserver:X}=this;if(X.error)try{X.error(V)}catch(re){k(re)}else k(V)}complete(){const{partialObserver:V}=this;if(V.complete)try{V.complete()}catch(X){k(X)}}}class A extends v{constructor(V,X,re){let me;if(super(),(0,n.m)(V)||!V)me={next:null!=V?V:void 0,error:null!=X?X:void 0,complete:null!=re?re:void 0};else{let we;this&&b.v.useDeprecatedNextContext?(we=Object.create(V),we.unsubscribe=()=>this.unsubscribe(),me={next:V.next&&E(V.next,we),error:V.error&&E(V.error,we),complete:V.complete&&E(V.complete,we)}):me=V}this.destination=new M(me)}}function k(Q){b.v.useDeprecatedSynchronousErrorHandling?(0,_.O)(Q):(0,u.h)(Q)}function Y(Q,V){const{onStoppedNotification:X}=b.v;X&&d.z.setTimeout(()=>X(Q,V))}const U={closed:!0,next:r.Z,error:function j(Q){throw Q},complete:r.Z}},727:(H,o,a)=>{"use strict";a.d(o,{Lc:()=>c,w0:()=>r,Nn:()=>f});var n=a(576);const b=(0,a(3888).d)(m=>function(_){m(this),this.message=_?`${_.length} errors occurred during unsubscription:\n${_.map((v,y)=>`${y+1}) ${v.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_});var u=a(8737);class r{constructor(d){this.initialTeardown=d,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let d;if(!this.closed){this.closed=!0;const{_parentage:_}=this;if(_)if(this._parentage=null,Array.isArray(_))for(const E of _)E.remove(this);else _.remove(this);const{initialTeardown:v}=this;if((0,n.m)(v))try{v()}catch(E){d=E instanceof b?E.errors:[E]}const{_finalizers:y}=this;if(y){this._finalizers=null;for(const E of y)try{h(E)}catch(M){d=null!=d?d:[],M instanceof b?d=[...d,...M.errors]:d.push(M)}}if(d)throw new b(d)}}add(d){var _;if(d&&d!==this)if(this.closed)h(d);else{if(d instanceof r){if(d.closed||d._hasParent(this))return;d._addParent(this)}(this._finalizers=null!==(_=this._finalizers)&&void 0!==_?_:[]).push(d)}}_hasParent(d){const{_parentage:_}=this;return _===d||Array.isArray(_)&&_.includes(d)}_addParent(d){const{_parentage:_}=this;this._parentage=Array.isArray(_)?(_.push(d),_):_?[_,d]:d}_removeParent(d){const{_parentage:_}=this;_===d?this._parentage=null:Array.isArray(_)&&(0,u.P)(_,d)}remove(d){const{_finalizers:_}=this;_&&(0,u.P)(_,d),d instanceof r&&d._removeParent(this)}}r.EMPTY=(()=>{const m=new r;return m.closed=!0,m})();const c=r.EMPTY;function f(m){return m instanceof r||m&&"closed"in m&&(0,n.m)(m.remove)&&(0,n.m)(m.add)&&(0,n.m)(m.unsubscribe)}function h(m){(0,n.m)(m)?m():m.unsubscribe()}},2416:(H,o,a)=>{"use strict";a.d(o,{v:()=>n});const n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(H,o,a)=>{"use strict";a.d(o,{a:()=>d});var n=a(8306),p=a(4742),b=a(2076),u=a(4671),r=a(3268),c=a(3269),f=a(1810),h=a(5403),m=a(9672);function d(...y){const E=(0,c.yG)(y),M=(0,c.jO)(y),{args:A,keys:k}=(0,p.D)(y);if(0===A.length)return(0,b.D)([],E);const j=new n.y(function _(y,E,M=u.y){return A=>{v(E,()=>{const{length:k}=y,j=new Array(k);let Y=k,U=k;for(let Q=0;Q<k;Q++)v(E,()=>{const V=(0,b.D)(y[Q],E);let X=!1;V.subscribe((0,h.x)(A,re=>{j[Q]=re,X||(X=!0,U--),U||A.next(M(j.slice()))},()=>{--Y||A.complete()}))},A)},A)}}(A,E,k?Y=>(0,f.n)(k,Y):u.y));return M?j.pipe((0,r.Z)(M)):j}function v(y,E,M){y?(0,m.f)(M,y,E):E()}},7272:(H,o,a)=>{"use strict";a.d(o,{z:()=>r});var n=a(8189),b=a(3269),u=a(2076);function r(...c){return function p(){return(0,n.J)(1)}()((0,u.D)(c,(0,b.yG)(c)))}},515:(H,o,a)=>{"use strict";a.d(o,{E:()=>p});const p=new(a(8306).y)(r=>r.complete())},4128:(H,o,a)=>{"use strict";a.d(o,{D:()=>h});var n=a(8306),p=a(4742),b=a(8421),u=a(3269),r=a(5403),c=a(3268),f=a(1810);function h(...m){const d=(0,u.jO)(m),{args:_,keys:v}=(0,p.D)(m),y=new n.y(E=>{const{length:M}=_;if(!M)return void E.complete();const A=new Array(M);let k=M,j=M;for(let Y=0;Y<M;Y++){let U=!1;(0,b.Xf)(_[Y]).subscribe((0,r.x)(E,Q=>{U||(U=!0,j--),A[Y]=Q},()=>k--,void 0,()=>{(!k||!U)&&(j||E.next(v?(0,f.n)(v,A):A),E.complete())}))}});return d?y.pipe((0,c.Z)(d)):y}},2076:(H,o,a)=>{"use strict";a.d(o,{D:()=>re});var n=a(8421),p=a(9672),b=a(4482),u=a(5403);function r(me,we=0){return(0,b.e)((tt,G)=>{tt.subscribe((0,u.x)(G,q=>(0,p.f)(G,me,()=>G.next(q),we),()=>(0,p.f)(G,me,()=>G.complete(),we),q=>(0,p.f)(G,me,()=>G.error(q),we)))})}function c(me,we=0){return(0,b.e)((tt,G)=>{G.add(me.schedule(()=>tt.subscribe(G),we))})}var m=a(8306),_=a(2202),v=a(576);function E(me,we){if(!me)throw new Error("Iterable cannot be null");return new m.y(tt=>{(0,p.f)(tt,we,()=>{const G=me[Symbol.asyncIterator]();(0,p.f)(tt,we,()=>{G.next().then(q=>{q.done?tt.complete():tt.next(q.value)})},0,!0)})})}var M=a(3670),A=a(8239),k=a(1144),j=a(6495),Y=a(2206),U=a(4532),Q=a(3260);function re(me,we){return we?function X(me,we){if(null!=me){if((0,M.c)(me))return function f(me,we){return(0,n.Xf)(me).pipe(c(we),r(we))}(me,we);if((0,k.z)(me))return function d(me,we){return new m.y(tt=>{let G=0;return we.schedule(function(){G===me.length?tt.complete():(tt.next(me[G++]),tt.closed||this.schedule())})})}(me,we);if((0,A.t)(me))return function h(me,we){return(0,n.Xf)(me).pipe(c(we),r(we))}(me,we);if((0,Y.D)(me))return E(me,we);if((0,j.T)(me))return function y(me,we){return new m.y(tt=>{let G;return(0,p.f)(tt,we,()=>{G=me[_.h](),(0,p.f)(tt,we,()=>{let q,B;try{({value:q,done:B}=G.next())}catch(ae){return void tt.error(ae)}B?tt.complete():tt.next(q)},0,!0)}),()=>(0,v.m)(null==G?void 0:G.return)&&G.return()})}(me,we);if((0,Q.L)(me))return function V(me,we){return E((0,Q.Q)(me),we)}(me,we)}throw(0,U.z)(me)}(me,we):(0,n.Xf)(me)}},4968:(H,o,a)=>{"use strict";a.d(o,{R:()=>d});var n=a(8421),p=a(8306),b=a(5577),u=a(1144),r=a(576),c=a(3268);const f=["addListener","removeListener"],h=["addEventListener","removeEventListener"],m=["on","off"];function d(M,A,k,j){if((0,r.m)(k)&&(j=k,k=void 0),j)return d(M,A,k).pipe((0,c.Z)(j));const[Y,U]=function E(M){return(0,r.m)(M.addEventListener)&&(0,r.m)(M.removeEventListener)}(M)?h.map(Q=>V=>M[Q](A,V,k)):function v(M){return(0,r.m)(M.addListener)&&(0,r.m)(M.removeListener)}(M)?f.map(_(M,A)):function y(M){return(0,r.m)(M.on)&&(0,r.m)(M.off)}(M)?m.map(_(M,A)):[];if(!Y&&(0,u.z)(M))return(0,b.z)(Q=>d(Q,A,k))((0,n.Xf)(M));if(!Y)throw new TypeError("Invalid event target");return new p.y(Q=>{const V=(...X)=>Q.next(1<X.length?X:X[0]);return Y(V),()=>U(V)})}function _(M,A){return k=>j=>M[k](A,j)}},8421:(H,o,a)=>{"use strict";a.d(o,{Xf:()=>y});var n=a(655),p=a(1144),b=a(8239),u=a(8306),r=a(3670),c=a(2206),f=a(4532),h=a(6495),m=a(3260),d=a(576),_=a(7849),v=a(8822);function y(Q){if(Q instanceof u.y)return Q;if(null!=Q){if((0,r.c)(Q))return function E(Q){return new u.y(V=>{const X=Q[v.L]();if((0,d.m)(X.subscribe))return X.subscribe(V);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Q);if((0,p.z)(Q))return function M(Q){return new u.y(V=>{for(let X=0;X<Q.length&&!V.closed;X++)V.next(Q[X]);V.complete()})}(Q);if((0,b.t)(Q))return function A(Q){return new u.y(V=>{Q.then(X=>{V.closed||(V.next(X),V.complete())},X=>V.error(X)).then(null,_.h)})}(Q);if((0,c.D)(Q))return j(Q);if((0,h.T)(Q))return function k(Q){return new u.y(V=>{for(const X of Q)if(V.next(X),V.closed)return;V.complete()})}(Q);if((0,m.L)(Q))return function Y(Q){return j((0,m.Q)(Q))}(Q)}throw(0,f.z)(Q)}function j(Q){return new u.y(V=>{(function U(Q,V){var X,re,me,we;return(0,n.__awaiter)(this,void 0,void 0,function*(){try{for(X=(0,n.__asyncValues)(Q);!(re=yield X.next()).done;)if(V.next(re.value),V.closed)return}catch(tt){me={error:tt}}finally{try{re&&!re.done&&(we=X.return)&&(yield we.call(X))}finally{if(me)throw me.error}}V.complete()})})(Q,V).catch(X=>V.error(X))})}},6451:(H,o,a)=>{"use strict";a.d(o,{T:()=>c});var n=a(8189),p=a(8421),b=a(515),u=a(3269),r=a(2076);function c(...f){const h=(0,u.yG)(f),m=(0,u._6)(f,1/0),d=f;return d.length?1===d.length?(0,p.Xf)(d[0]):(0,n.J)(m)((0,r.D)(d,h)):b.E}},9646:(H,o,a)=>{"use strict";a.d(o,{of:()=>b});var n=a(3269),p=a(2076);function b(...u){const r=(0,n.yG)(u);return(0,p.D)(u,r)}},5963:(H,o,a)=>{"use strict";a.d(o,{H:()=>r});var n=a(8306),p=a(4986),b=a(3532);function r(c=0,f,h=p.P){let m=-1;return null!=f&&((0,b.K)(f)?h=f:m=f),new n.y(d=>{let _=function u(c){return c instanceof Date&&!isNaN(c)}(c)?+c-h.now():c;_<0&&(_=0);let v=0;return h.schedule(function(){d.closed||(d.next(v++),0<=m?this.schedule(void 0,m):d.complete())},_)})}},5403:(H,o,a)=>{"use strict";a.d(o,{x:()=>p});var n=a(930);function p(u,r,c,f,h){return new b(u,r,c,f,h)}class b extends n.Lv{constructor(r,c,f,h,m,d){super(r),this.onFinalize=m,this.shouldUnsubscribe=d,this._next=c?function(_){try{c(_)}catch(v){r.error(v)}}:super._next,this._error=h?function(_){try{h(_)}catch(v){r.error(v)}finally{this.unsubscribe()}}:super._error,this._complete=f?function(){try{f()}catch(_){r.error(_)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:c}=this;super.unsubscribe(),!c&&(null===(r=this.onFinalize)||void 0===r||r.call(this))}}}},8372:(H,o,a)=>{"use strict";a.d(o,{b:()=>u});var n=a(4986),p=a(4482),b=a(5403);function u(r,c=n.z){return(0,p.e)((f,h)=>{let m=null,d=null,_=null;const v=()=>{if(m){m.unsubscribe(),m=null;const E=d;d=null,h.next(E)}};function y(){const E=_+r,M=c.now();if(M<E)return m=this.schedule(void 0,E-M),void h.add(m);v()}f.subscribe((0,b.x)(h,E=>{d=E,_=c.now(),m||(m=c.schedule(y,r),h.add(m))},()=>{v(),h.complete()},void 0,()=>{d=m=null}))})}},1884:(H,o,a)=>{"use strict";a.d(o,{x:()=>u});var n=a(4671),p=a(4482),b=a(5403);function u(c,f=n.y){return c=null!=c?c:r,(0,p.e)((h,m)=>{let d,_=!0;h.subscribe((0,b.x)(m,v=>{const y=f(v);(_||!c(d,y))&&(_=!1,d=y,m.next(v))}))})}function r(c,f){return c===f}},9300:(H,o,a)=>{"use strict";a.d(o,{h:()=>b});var n=a(4482),p=a(5403);function b(u,r){return(0,n.e)((c,f)=>{let h=0;c.subscribe((0,p.x)(f,m=>u.call(r,m,h++)&&f.next(m)))})}},4004:(H,o,a)=>{"use strict";a.d(o,{U:()=>b});var n=a(4482),p=a(5403);function b(u,r){return(0,n.e)((c,f)=>{let h=0;c.subscribe((0,p.x)(f,m=>{f.next(u.call(r,m,h++))}))})}},8189:(H,o,a)=>{"use strict";a.d(o,{J:()=>b});var n=a(5577),p=a(4671);function b(u=1/0){return(0,n.z)(p.y,u)}},5577:(H,o,a)=>{"use strict";a.d(o,{z:()=>h});var n=a(4004),p=a(8421),b=a(4482),u=a(9672),r=a(5403),f=a(576);function h(m,d,_=1/0){return(0,f.m)(d)?h((v,y)=>(0,n.U)((E,M)=>d(v,E,y,M))((0,p.Xf)(m(v,y))),_):("number"==typeof d&&(_=d),(0,b.e)((v,y)=>function c(m,d,_,v,y,E,M,A){const k=[];let j=0,Y=0,U=!1;const Q=()=>{U&&!k.length&&!j&&d.complete()},V=re=>j<v?X(re):k.push(re),X=re=>{E&&d.next(re),j++;let me=!1;(0,p.Xf)(_(re,Y++)).subscribe((0,r.x)(d,we=>{null==y||y(we),E?V(we):d.next(we)},()=>{me=!0},void 0,()=>{if(me)try{for(j--;k.length&&j<v;){const we=k.shift();M?(0,u.f)(d,M,()=>X(we)):X(we)}Q()}catch(we){d.error(we)}}))};return m.subscribe((0,r.x)(d,V,()=>{U=!0,Q()})),()=>{null==A||A()}}(v,y,m,_)))}},3099:(H,o,a)=>{"use strict";a.d(o,{B:()=>r});var n=a(8421),p=a(7579),b=a(930),u=a(4482);function r(f={}){const{connector:h=(()=>new p.x),resetOnError:m=!0,resetOnComplete:d=!0,resetOnRefCountZero:_=!0}=f;return v=>{let y,E,M,A=0,k=!1,j=!1;const Y=()=>{null==E||E.unsubscribe(),E=void 0},U=()=>{Y(),y=M=void 0,k=j=!1},Q=()=>{const V=y;U(),null==V||V.unsubscribe()};return(0,u.e)((V,X)=>{A++,!j&&!k&&Y();const re=M=null!=M?M:h();X.add(()=>{A--,0===A&&!j&&!k&&(E=c(Q,_))}),re.subscribe(X),!y&&A>0&&(y=new b.Hp({next:me=>re.next(me),error:me=>{j=!0,Y(),E=c(U,m,me),re.error(me)},complete:()=>{k=!0,Y(),E=c(U,d),re.complete()}}),(0,n.Xf)(V).subscribe(y))})(v)}}function c(f,h,...m){if(!0===h)return void f();if(!1===h)return;const d=new b.Hp({next:()=>{d.unsubscribe(),f()}});return h(...m).subscribe(d)}},5684:(H,o,a)=>{"use strict";a.d(o,{T:()=>p});var n=a(9300);function p(b){return(0,n.h)((u,r)=>b<=r)}},8675:(H,o,a)=>{"use strict";a.d(o,{O:()=>u});var n=a(7272),p=a(3269),b=a(4482);function u(...r){const c=(0,p.yG)(r);return(0,b.e)((f,h)=>{(c?(0,n.z)(r,f,c):(0,n.z)(r,f)).subscribe(h)})}},3900:(H,o,a)=>{"use strict";a.d(o,{w:()=>u});var n=a(8421),p=a(4482),b=a(5403);function u(r,c){return(0,p.e)((f,h)=>{let m=null,d=0,_=!1;const v=()=>_&&!m&&h.complete();f.subscribe((0,b.x)(h,y=>{null==m||m.unsubscribe();let E=0;const M=d++;(0,n.Xf)(r(y,M)).subscribe(m=(0,b.x)(h,A=>h.next(c?c(y,A,M,E++):A),()=>{m=null,v()}))},()=>{_=!0,v()}))})}},5698:(H,o,a)=>{"use strict";a.d(o,{q:()=>u});var n=a(515),p=a(4482),b=a(5403);function u(r){return r<=0?()=>n.E:(0,p.e)((c,f)=>{let h=0;c.subscribe((0,b.x)(f,m=>{++h<=r&&(f.next(m),r<=h&&f.complete())}))})}},2722:(H,o,a)=>{"use strict";a.d(o,{R:()=>r});var n=a(4482),p=a(5403),b=a(8421),u=a(5032);function r(c){return(0,n.e)((f,h)=>{(0,b.Xf)(c).subscribe((0,p.x)(h,()=>h.complete(),u.Z)),!h.closed&&f.subscribe(h)})}},8505:(H,o,a)=>{"use strict";a.d(o,{b:()=>r});var n=a(576),p=a(4482),b=a(5403),u=a(4671);function r(c,f,h){const m=(0,n.m)(c)||f||h?{next:c,error:f,complete:h}:c;return m?(0,p.e)((d,_)=>{var v;null===(v=m.subscribe)||void 0===v||v.call(m);let y=!0;d.subscribe((0,b.x)(_,E=>{var M;null===(M=m.next)||void 0===M||M.call(m,E),_.next(E)},()=>{var E;y=!1,null===(E=m.complete)||void 0===E||E.call(m),_.complete()},E=>{var M;y=!1,null===(M=m.error)||void 0===M||M.call(m,E),_.error(E)},()=>{var E,M;y&&(null===(E=m.unsubscribe)||void 0===E||E.call(m)),null===(M=m.finalize)||void 0===M||M.call(m)}))}):u.y}},4408:(H,o,a)=>{"use strict";a.d(o,{o:()=>r});var n=a(727);class p extends n.w0{constructor(f,h){super()}schedule(f,h=0){return this}}const b={setInterval(c,f,...h){const{delegate:m}=b;return null!=m&&m.setInterval?m.setInterval(c,f,...h):setInterval(c,f,...h)},clearInterval(c){const{delegate:f}=b;return((null==f?void 0:f.clearInterval)||clearInterval)(c)},delegate:void 0};var u=a(8737);class r extends p{constructor(f,h){super(f,h),this.scheduler=f,this.work=h,this.pending=!1}schedule(f,h=0){if(this.closed)return this;this.state=f;const m=this.id,d=this.scheduler;return null!=m&&(this.id=this.recycleAsyncId(d,m,h)),this.pending=!0,this.delay=h,this.id=this.id||this.requestAsyncId(d,this.id,h),this}requestAsyncId(f,h,m=0){return b.setInterval(f.flush.bind(f,this),m)}recycleAsyncId(f,h,m=0){if(null!=m&&this.delay===m&&!1===this.pending)return h;b.clearInterval(h)}execute(f,h){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const m=this._execute(f,h);if(m)return m;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(f,h){let d,m=!1;try{this.work(f)}catch(_){m=!0,d=_||new Error("Scheduled action threw falsy error")}if(m)return this.unsubscribe(),d}unsubscribe(){if(!this.closed){const{id:f,scheduler:h}=this,{actions:m}=h;this.work=this.state=this.scheduler=null,this.pending=!1,(0,u.P)(m,this),null!=f&&(this.id=this.recycleAsyncId(h,f,null)),this.delay=null,super.unsubscribe()}}}},640:(H,o,a)=>{"use strict";a.d(o,{v:()=>b});const n={now:()=>(n.delegate||Date).now(),delegate:void 0};class p{constructor(r,c=p.now){this.schedulerActionCtor=r,this.now=c}schedule(r,c=0,f){return new this.schedulerActionCtor(this,r).schedule(f,c)}}p.now=n.now;class b extends p{constructor(r,c=p.now){super(r,c),this.actions=[],this._active=!1,this._scheduled=void 0}flush(r){const{actions:c}=this;if(this._active)return void c.push(r);let f;this._active=!0;do{if(f=r.execute(r.state,r.delay))break}while(r=c.shift());if(this._active=!1,f){for(;r=c.shift();)r.unsubscribe();throw f}}}},3101:(H,o,a)=>{"use strict";a.d(o,{E:()=>E});var n=a(4408);let b,p=1;const u={};function r(A){return A in u&&(delete u[A],!0)}const c={setImmediate(A){const k=p++;return u[k]=!0,b||(b=Promise.resolve()),b.then(()=>r(k)&&A()),k},clearImmediate(A){r(A)}},{setImmediate:h,clearImmediate:m}=c,d={setImmediate(...A){const{delegate:k}=d;return((null==k?void 0:k.setImmediate)||h)(...A)},clearImmediate(A){const{delegate:k}=d;return((null==k?void 0:k.clearImmediate)||m)(A)},delegate:void 0};var v=a(640);const E=new class y extends v.v{flush(k){this._active=!0;const j=this._scheduled;this._scheduled=void 0;const{actions:Y}=this;let U;k=k||Y.shift();do{if(U=k.execute(k.state,k.delay))break}while((k=Y[0])&&k.id===j&&Y.shift());if(this._active=!1,U){for(;(k=Y[0])&&k.id===j&&Y.shift();)k.unsubscribe();throw U}}}(class _ extends n.o{constructor(k,j){super(k,j),this.scheduler=k,this.work=j}requestAsyncId(k,j,Y=0){return null!==Y&&Y>0?super.requestAsyncId(k,j,Y):(k.actions.push(this),k._scheduled||(k._scheduled=d.setImmediate(k.flush.bind(k,void 0))))}recycleAsyncId(k,j,Y=0){if(null!=Y&&Y>0||null==Y&&this.delay>0)return super.recycleAsyncId(k,j,Y);k.actions.some(U=>U.id===j)||(d.clearImmediate(j),k._scheduled=void 0)}})},4986:(H,o,a)=>{"use strict";a.d(o,{P:()=>u,z:()=>b});var n=a(4408);const b=new(a(640).v)(n.o),u=b},3410:(H,o,a)=>{"use strict";a.d(o,{z:()=>n});const n={setTimeout(p,b,...u){const{delegate:r}=n;return null!=r&&r.setTimeout?r.setTimeout(p,b,...u):setTimeout(p,b,...u)},clearTimeout(p){const{delegate:b}=n;return((null==b?void 0:b.clearTimeout)||clearTimeout)(p)},delegate:void 0}},2202:(H,o,a)=>{"use strict";a.d(o,{h:()=>p});const p=function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(H,o,a)=>{"use strict";a.d(o,{L:()=>n});const n="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:(H,o,a)=>{"use strict";a.d(o,{_6:()=>c,jO:()=>u,yG:()=>r});var n=a(576),p=a(3532);function b(f){return f[f.length-1]}function u(f){return(0,n.m)(b(f))?f.pop():void 0}function r(f){return(0,p.K)(b(f))?f.pop():void 0}function c(f,h){return"number"==typeof b(f)?f.pop():h}},4742:(H,o,a)=>{"use strict";a.d(o,{D:()=>r});const{isArray:n}=Array,{getPrototypeOf:p,prototype:b,keys:u}=Object;function r(f){if(1===f.length){const h=f[0];if(n(h))return{args:h,keys:null};if(function c(f){return f&&"object"==typeof f&&p(f)===b}(h)){const m=u(h);return{args:m.map(d=>h[d]),keys:m}}}return{args:f,keys:null}}},8737:(H,o,a)=>{"use strict";function n(p,b){if(p){const u=p.indexOf(b);0<=u&&p.splice(u,1)}}a.d(o,{P:()=>n})},3888:(H,o,a)=>{"use strict";function n(p){const u=p(r=>{Error.call(r),r.stack=(new Error).stack});return u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u}a.d(o,{d:()=>n})},1810:(H,o,a)=>{"use strict";function n(p,b){return p.reduce((u,r,c)=>(u[r]=b[c],u),{})}a.d(o,{n:()=>n})},2806:(H,o,a)=>{"use strict";a.d(o,{O:()=>u,x:()=>b});var n=a(2416);let p=null;function b(r){if(n.v.useDeprecatedSynchronousErrorHandling){const c=!p;if(c&&(p={errorThrown:!1,error:null}),r(),c){const{errorThrown:f,error:h}=p;if(p=null,f)throw h}}else r()}function u(r){n.v.useDeprecatedSynchronousErrorHandling&&p&&(p.errorThrown=!0,p.error=r)}},9672:(H,o,a)=>{"use strict";function n(p,b,u,r=0,c=!1){const f=b.schedule(function(){u(),c?p.add(this.schedule(null,r)):this.unsubscribe()},r);if(p.add(f),!c)return f}a.d(o,{f:()=>n})},4671:(H,o,a)=>{"use strict";function n(p){return p}a.d(o,{y:()=>n})},1144:(H,o,a)=>{"use strict";a.d(o,{z:()=>n});const n=p=>p&&"number"==typeof p.length&&"function"!=typeof p},2206:(H,o,a)=>{"use strict";a.d(o,{D:()=>p});var n=a(576);function p(b){return Symbol.asyncIterator&&(0,n.m)(null==b?void 0:b[Symbol.asyncIterator])}},576:(H,o,a)=>{"use strict";function n(p){return"function"==typeof p}a.d(o,{m:()=>n})},3670:(H,o,a)=>{"use strict";a.d(o,{c:()=>b});var n=a(8822),p=a(576);function b(u){return(0,p.m)(u[n.L])}},6495:(H,o,a)=>{"use strict";a.d(o,{T:()=>b});var n=a(2202),p=a(576);function b(u){return(0,p.m)(null==u?void 0:u[n.h])}},8239:(H,o,a)=>{"use strict";a.d(o,{t:()=>p});var n=a(576);function p(b){return(0,n.m)(null==b?void 0:b.then)}},3260:(H,o,a)=>{"use strict";a.d(o,{L:()=>u,Q:()=>b});var n=a(655),p=a(576);function b(r){return(0,n.__asyncGenerator)(this,arguments,function*(){const f=r.getReader();try{for(;;){const{value:h,done:m}=yield(0,n.__await)(f.read());if(m)return yield(0,n.__await)(void 0);yield yield(0,n.__await)(h)}}finally{f.releaseLock()}})}function u(r){return(0,p.m)(null==r?void 0:r.getReader)}},3532:(H,o,a)=>{"use strict";a.d(o,{K:()=>p});var n=a(576);function p(b){return b&&(0,n.m)(b.schedule)}},4482:(H,o,a)=>{"use strict";a.d(o,{e:()=>b});var n=a(576);function b(u){return r=>{if(function p(u){return(0,n.m)(null==u?void 0:u.lift)}(r))return r.lift(function(c){try{return u(c,this)}catch(f){this.error(f)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(H,o,a)=>{"use strict";a.d(o,{Z:()=>u});var n=a(4004);const{isArray:p}=Array;function u(r){return(0,n.U)(c=>function b(r,c){return p(c)?r(...c):r(c)}(r,c))}},5032:(H,o,a)=>{"use strict";function n(){}a.d(o,{Z:()=>n})},7849:(H,o,a)=>{"use strict";a.d(o,{h:()=>b});var n=a(2416),p=a(3410);function b(u){p.z.setTimeout(()=>{const{onUnhandledError:r}=n.v;if(!r)throw u;r(u)})}},4532:(H,o,a)=>{"use strict";function n(p){return new TypeError(`You provided ${null!==p&&"object"==typeof p?"an invalid object":`'${p}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}a.d(o,{z:()=>n})},3642:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateRxMethod=o.generateMethodSignature=o.generateErrorClass=o.generateClass=o.generateErrorType=o.generateEnum=o.generateJsonRepresentation=o.mangle=o.generateSwiftTypeName=void 0;const n=a(6676);function p(y){switch(y.constructor){case n.IntPrimitiveType:return"Int";case n.UIntPrimitiveType:return"UInt";case n.MoneyPrimitiveType:return"Int64";case n.FloatPrimitiveType:return"Double";case n.BigIntPrimitiveType:return"Decimal";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"Date";case n.BoolPrimitiveType:return"Bool";case n.BytesPrimitiveType:return"Data";case n.StringPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.UrlPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"String";case n.VoidPrimitiveType:return"Void";case n.JsonPrimitiveType:return"AnyCodable";case n.OptionalType:return`${p(y.base)}?`;case n.ArrayType:return`[${p(y.base)}]`;case n.StructType:case n.EnumType:return`API.${y.name}`;case n.TypeReference:return p(y.type);default:throw new Error(`BUG: generateSwiftTypeName with ${y.constructor.name}`)}}function b(y){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(y)?`_${y}`:y}function u(y,E){switch(y.constructor){case n.StringPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.MoneyPrimitiveType:case n.FloatPrimitiveType:case n.BoolPrimitiveType:return`${E}`;case n.OptionalType:return`${E} == nil ? nil : ${u(y.base,`${E}!`)}`;case n.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${E})`;case n.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${E})`;case n.EnumType:return`${E}.rawValue`;case n.TypeReference:return`${u(y.type,`${E}`)}`;case n.StructType:return`${E}.toJSON()`;case n.ArrayType:return`${E}.map({ return ${u(y.base,"$0")} })`;case n.JsonPrimitiveType:return`try? ${E}.toJson()`;case n.VoidPrimitiveType:return"nil";case n.BytesPrimitiveType:return`${E}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${y.constructor.name}`)}}o.generateSwiftTypeName=p,o.mangle=b,o.generateJsonRepresentation=u,o.generateEnum=function r(y){let E=` public enum ${y.name}: String, Codable {\n`;return E+=y.values.map(M=>` case ${b(M.value)} = "${M.value}"`).join("\n"),E+="\n }\n",E},o.generateErrorType=function c(y){let E=" public enum ErrorType: String, Codable {\n";return E+=y.map(M=>` case ${b(M)} = "${M}"`).join("\n"),E+="\n }\n",E},o.generateClass=function m(y){return` public struct ${y.name}: Codable {\n${y.fields.map(E=>` var ${b(E.name)}: ${p(E.type)}`).join("\n")}\n\n${function f(y){let E=" init(";return E+=y.fields.map(M=>`${b(M.name)}: ${p(M.type)}`).join(", "),E+=") {\n",E+=y.fields.map(M=>` self.${b(M.name)} = ${b(M.name)}`).join("\n"),E+="\n }\n",E}(y)}\n${function h(y){let E=" func toJSON() -> [String: Any] {\n";return E+=" var json = [String: Any]()\n",E+=y.fields.map(M=>` json["${b(M.name)}"] = ${u(M.type,M.name)}`).join("\n"),E+="\n return json",E+="\n }\n",E}(y)}\n }\n`},o.generateErrorClass=function d(){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"},o.generateMethodSignature=function _(y){const E=y.args.map(M=>`${b(M.name)}: ${p(M.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${y.returnType instanceof n.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${p(y.returnType)}>`}) -> Void)?`]);return` func ${b(y.name)}(${E.join(", ")})`},o.generateRxMethod=function v(y){const E=y.args.map(A=>`${b(A.name)}: ${p(A.type)}`).concat(["timeoutSeconds: Double? = nil"]);let M=` static func ${b(y.name)}(${E.join(", ")}) -> ${y.returnType instanceof n.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${p(y.returnType)}>>`} {\n`;return M+=" return Observable.create { observer -> Disposable in\n",M+=` API.calls.${b(y.name)}(${y.args.map(A=>`${b(A.name)}: ${b(A.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,M+=" observer.on(.next(result))\n",M+=" observer.on(.completed)\n",M+=" }\n",M+=" return Disposables.create()\n",M+=" }\n",M+=" }\n",M}},7295:function(H,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(b,u,r,c){void 0===c&&(c=r);var f=Object.getOwnPropertyDescriptor(u,r);(!f||("get"in f?!u.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(b,c,f)}:function(b,u,r,c){void 0===c&&(c=r),b[c]=u[r]}),p=this&&this.__exportStar||function(b,u){for(var r in b)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,b,r)};Object.defineProperty(o,"__esModule",{value:!0}),p(a(7636),o)},7636:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateSwiftClientSource=void 0;const n=a(6676),p=a(3642);o.generateSwiftClientSource=function b(u,r){let c="import Foundation\nimport SdkgenRuntime\n";c+=r?"import RxSwift\nimport RxCocoa\n\n":"\n",c+="protocol APICallsProtocol {\n",c+=u.operations.filter(m=>m.annotations.every(d=>!(d instanceof n.HiddenAnnotation))).map(m=>`${(0,p.generateMethodSignature)(m)}`).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 m of u.enumTypes)c+=(0,p.generateEnum)(m),c+="\n";for(const m of u.structTypes)c+=(0,p.generateClass)(m),c+="\n";const f=[],h=new n.ErrorNode("Connection",new n.VoidPrimitiveType);f.push(h.name);for(const m of u.errors)f.push(m.name);return f.length>0&&(c+=(0,p.generateErrorType)(f),c+="\n"),c+=(0,p.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+=u.operations.filter(m=>m.annotations.every(d=>!(d instanceof n.HiddenAnnotation))).map(m=>{let d="";return d+=` ${(0,p.generateMethodSignature)(m)} {\n`,m.args.length>0?(d+=" var jsonArgs = [String: Any]()\n",d+=m.args.map(_=>` jsonArgs["${(0,p.mangle)(_.name)}"] = ${(0,p.generateJsonRepresentation)(_.type,(0,p.mangle)(_.name))}`).join("\n")):d+=" let jsonArgs = [String: Any]()",d+="\n\n",d+=` request("${m.name}", jsonArgs, timeoutSeconds, completion: { (value: ${m.returnType instanceof n.VoidPrimitiveType?"API.NoReply":(0,p.generateSwiftTypeName)(m.returnType)}) in\n`,d+=" callback?(API.Result.success(value))\n",d+=" }, onError: { error in\n",d+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",d+=" })",d+="\n }\n",d}).join("\n"),c+=" }\n",c+="}\n",r&&(c+="\n",c+="extension API: ReactiveCompatible {}\n\n",c+="extension Reactive where Base: API {\n",c+=u.operations.filter(m=>m.annotations.every(d=>!(d instanceof n.HiddenAnnotation))).map(m=>`${(0,p.generateRxMethod)(m)}`).join("\n"),c+="}\n"),c}},8173:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateBrowserClientSource=void 0;const n=a(6676),p=a(5596);o.generateBrowserClientSource=function b(u){let r="";r+=`/* eslint-disable */\nimport { SdkgenError${u.errors.some(f=>!(f.dataType instanceof n.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n\n`;for(const f of u.enumTypes)r+=(0,p.generateTypescriptEnum)(f),r+="\n";for(const f of u.structTypes)r+=(0,p.generateTypescriptInterface)(f,!0),r+="\n";for(const f of u.errors)r+=(0,p.generateTypescriptErrorClass)(f,!0),r+="\n";return r+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${u.operations.filter(f=>f.annotations.every(h=>!(h instanceof n.HiddenAnnotation))).map(f=>`\n ${f.name}(args${0===f.args.length?"?":""}: {${f.args.map(h=>`${h.name}${h.type.name.endsWith("?")?"?":""}: ${(0,p.generateTypescriptTypeName)(h.type,!0)}`).join(", ")}}): Promise<${(0,p.generateTypescriptTypeName)(f.returnType,!0)}> { return this.makeRequest("${f.name}", args || {}); }`).join("")}\n}\n\n`,r+=`const errClasses = {\n${u.errors.map(f=>` ${f.name}`).join(",\n")}\n};\n\n`,r+=`const astJson = ${JSON.stringify((0,n.astToJson)(u),null,4).replace(new RegExp('"(?<key>\\w+)":',"gu"),"$<key>:")} as const;\n`,r}},5596:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.clearForLogging=o.generateTypescriptErrorClass=o.generateTypescriptEnum=o.generateTypescriptInterface=o.generateTypescriptTypeName=void 0;const n=a(6676);function p(f,h){switch(f.constructor){case n.IntPrimitiveType:case n.UIntPrimitiveType:case n.MoneyPrimitiveType:case n.FloatPrimitiveType:return"number";case n.BigIntPrimitiveType:return"bigint";case n.DatePrimitiveType:case n.DateTimePrimitiveType:return"Date";case n.BoolPrimitiveType:return"boolean";case n.BytesPrimitiveType:return h?"ArrayBuffer":"Buffer";case n.StringPrimitiveType:case n.CpfPrimitiveType:case n.CnpjPrimitiveType:case n.EmailPrimitiveType:case n.HtmlPrimitiveType:case n.UrlPrimitiveType:case n.UuidPrimitiveType:case n.HexPrimitiveType:case n.Base64PrimitiveType:case n.XmlPrimitiveType:return"string";case n.VoidPrimitiveType:return"void";case n.JsonPrimitiveType:return"any";case n.OptionalType:return`${p(f.base,h)} | null`;case n.ArrayType:{const{base:m}=f,d=p(m,h);return m instanceof n.OptionalType?`(${d})[]`:`${d}[]`}case n.StructType:case n.EnumType:return f.name;case n.TypeReference:return p(f.type,h);default:throw new Error(`BUG: generateTypescriptTypeName with ${f.constructor.name}`)}}o.generateTypescriptTypeName=p,o.generateTypescriptInterface=function b(f,h){return`export interface ${f.name} {\n${f.fields.map(m=>` ${m.name}: ${p(m.type,h)}`).join("\n")}\n}\n`},o.generateTypescriptEnum=function u(f){return f.hasStructValues?`export type ${f.name} = ${f.values.map(h=>h.struct?`({tag: "${h.value}"} & ${h.struct.name})`:`{tag: "${h.value}"}`).join(" | ")};\n`:`export type ${f.name} = ${f.values.map(h=>`"${h.value}"`).join(" | ")};\n`},o.generateTypescriptErrorClass=function r(f,h){return`export class ${f.name} extends ${f.dataType instanceof n.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${p(f.dataType,h)}>`} {}\n`},o.clearForLogging=function c(f,h){switch(h.constructor){case n.TypeReference:return c(f,h.type);case n.OptionalType:{const m=c(f,h.base);return m?`if (${f} !== null && ${f} !== undefined) { ${m} }`:""}case n.ArrayType:{const m=c("el",h.base);return m?`for (const el of ${f}) { ${m} }`:""}case n.StructType:{const m=[];for(const d of h.fields)if(d.secret)m.push(`${f}.${d.name} = "<secret>";`);else{const _=c(`${f}.${d.name}`,d.type);_&&m.push(_)}return m.join(" ")}default:return""}}},2911:function(H,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(b,u,r,c){void 0===c&&(c=r);var f=Object.getOwnPropertyDescriptor(u,r);(!f||("get"in f?!u.__esModule:f.writable||f.configurable))&&(f={enumerable:!0,get:function(){return u[r]}}),Object.defineProperty(b,c,f)}:function(b,u,r,c){void 0===c&&(c=r),b[c]=u[r]}),p=this&&this.__exportStar||function(b,u){for(var r in b)"default"!==r&&!Object.prototype.hasOwnProperty.call(u,r)&&n(u,b,r)};Object.defineProperty(o,"__esModule",{value:!0}),p(a(8173),o),p(a(7538),o),p(a(1727),o),p(a(615),o)},7538:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateTypescriptInterfaces=void 0;const n=a(5596);o.generateTypescriptInterfaces=function p(b){let u="";for(const r of b.enumTypes)u+=(0,n.generateTypescriptEnum)(r);u+="\n";for(const r of b.structTypes)u+=(0,n.generateTypescriptInterface)(r,!1),u+="\n";return u}},1727:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateNodeClientSource=void 0;const n=a(6676),p=a(5596);o.generateNodeClientSource=function b(u){let r="";const c=u.errors.some(h=>!(h.dataType instanceof n.VoidPrimitiveType));r+=`/* eslint-disable */\nimport { Context, Fatal${u.errors.filter(h=>"Fatal"!==h.name).some(h=>h.dataType instanceof n.VoidPrimitiveType)?", SdkgenError":""}${c?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const h of u.enumTypes)r+=(0,p.generateTypescriptEnum)(h),r+="\n";for(const h of u.structTypes)r+=(0,p.generateTypescriptInterface)(h,!1),r+="\n";for(const h of u.errors)"Fatal"!==h.name&&(r+=(0,p.generateTypescriptErrorClass)(h,!1),r+="\n");return r+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${u.operations.filter(h=>h.annotations.every(m=>!(m instanceof n.HiddenAnnotation))).map(h=>`\n ${h.name}(ctx: PartialDeep<Context> | null, args: {${h.args.map(m=>`${m.name}${m.type.name.endsWith("?")?"?":""}: ${(0,p.generateTypescriptTypeName)(m.type,!1)}`).join(", ")}}): Promise<${(0,p.generateTypescriptTypeName)(h.returnType,!1)}> { return this.makeRequest(ctx, "${h.name}", args); }`).join("")}\n}\n\n`,r+=`const errClasses = {\n${u.errors.map(h=>` ${h.name}`).join(",\n")}\n};\n\n`,r+=`const astJson = ${JSON.stringify((0,n.astToJson)(u),null,4).replace(new RegExp('"(?<key>\\w+)":',"gu"),"$<key>:")} as const;\n`,r}},615:(H,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.generateNodeServerSource=void 0;const n=a(6676),p=a(5596);o.generateNodeServerSource=function b(u){let r="";const c=u.errors.some(h=>!(h.dataType instanceof n.VoidPrimitiveType));r+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${u.errors.filter(h=>"Fatal"!==h.name).some(h=>h.dataType instanceof n.VoidPrimitiveType)?", SdkgenError":""}${c?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const h of u.enumTypes)r+=(0,p.generateTypescriptEnum)(h),r+="\n";for(const h of u.structTypes)r+=(0,p.generateTypescriptInterface)(h,!1),r+="\n";for(const h of u.errors)"Fatal"!==h.name&&(r+=(0,p.generateTypescriptErrorClass)(h,!1),r+="\n");return r+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n declare fn: {${u.operations.map(h=>`\n ${h.name}: (ctx: Context & ExtraContextT, args: {${h.args.map(m=>`${m.name}: ${(0,p.generateTypescriptTypeName)(m.type,!1)}`).join(", ")}}) => Promise<${(0,p.generateTypescriptTypeName)(h.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,n.astToJson)(u),null,4).replace(new RegExp('"(?<key>\\w+)":',"gu"),"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,r}},655:(H,o,a)=>{"use strict";a.r(o),a.d(o,{__assign:()=>b,__asyncDelegator:()=>Y,__asyncGenerator:()=>j,__asyncValues:()=>U,__await:()=>k,__awaiter:()=>h,__classPrivateFieldGet:()=>me,__classPrivateFieldIn:()=>tt,__classPrivateFieldSet:()=>we,__createBinding:()=>d,__decorate:()=>r,__exportStar:()=>_,__extends:()=>p,__generator:()=>m,__importDefault:()=>re,__importStar:()=>X,__makeTemplateObject:()=>Q,__metadata:()=>f,__param:()=>c,__read:()=>y,__rest:()=>u,__spread:()=>E,__spreadArray:()=>A,__spreadArrays:()=>M,__values:()=>v});var n=function(G,q){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,ae){B.__proto__=ae}||function(B,ae){for(var de in ae)Object.prototype.hasOwnProperty.call(ae,de)&&(B[de]=ae[de])})(G,q)};function p(G,q){if("function"!=typeof q&&null!==q)throw new TypeError("Class extends value "+String(q)+" is not a constructor or null");function B(){this.constructor=G}n(G,q),G.prototype=null===q?Object.create(q):(B.prototype=q.prototype,new B)}var b=function(){return b=Object.assign||function(q){for(var B,ae=1,de=arguments.length;ae<de;ae++)for(var _e in B=arguments[ae])Object.prototype.hasOwnProperty.call(B,_e)&&(q[_e]=B[_e]);return q},b.apply(this,arguments)};function u(G,q){var B={};for(var ae in G)Object.prototype.hasOwnProperty.call(G,ae)&&q.indexOf(ae)<0&&(B[ae]=G[ae]);if(null!=G&&"function"==typeof Object.getOwnPropertySymbols){var de=0;for(ae=Object.getOwnPropertySymbols(G);de<ae.length;de++)q.indexOf(ae[de])<0&&Object.prototype.propertyIsEnumerable.call(G,ae[de])&&(B[ae[de]]=G[ae[de]])}return B}function r(G,q,B,ae){var it,de=arguments.length,_e=de<3?q:null===ae?ae=Object.getOwnPropertyDescriptor(q,B):ae;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)_e=Reflect.decorate(G,q,B,ae);else for(var rt=G.length-1;rt>=0;rt--)(it=G[rt])&&(_e=(de<3?it(_e):de>3?it(q,B,_e):it(q,B))||_e);return de>3&&_e&&Object.defineProperty(q,B,_e),_e}function c(G,q){return function(B,ae){q(B,ae,G)}}function f(G,q){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(G,q)}function h(G,q,B,ae){return new(B||(B=Promise))(function(_e,it){function rt(ft){try{Oe(ae.next(ft))}catch(wt){it(wt)}}function yt(ft){try{Oe(ae.throw(ft))}catch(wt){it(wt)}}function Oe(ft){ft.done?_e(ft.value):function de(_e){return _e instanceof B?_e:new B(function(it){it(_e)})}(ft.value).then(rt,yt)}Oe((ae=ae.apply(G,q||[])).next())})}function m(G,q){var ae,de,_e,it,B={label:0,sent:function(){if(1&_e[0])throw _e[1];return _e[1]},trys:[],ops:[]};return it={next:rt(0),throw:rt(1),return:rt(2)},"function"==typeof Symbol&&(it[Symbol.iterator]=function(){return this}),it;function rt(Oe){return function(ft){return function yt(Oe){if(ae)throw new TypeError("Generator is already executing.");for(;B;)try{if(ae=1,de&&(_e=2&Oe[0]?de.return:Oe[0]?de.throw||((_e=de.return)&&_e.call(de),0):de.next)&&!(_e=_e.call(de,Oe[1])).done)return _e;switch(de=0,_e&&(Oe=[2&Oe[0],_e.value]),Oe[0]){case 0:case 1:_e=Oe;break;case 4:return B.label++,{value:Oe[1],done:!1};case 5:B.label++,de=Oe[1],Oe=[0];continue;case 7:Oe=B.ops.pop(),B.trys.pop();continue;default:if(!(_e=(_e=B.trys).length>0&&_e[_e.length-1])&&(6===Oe[0]||2===Oe[0])){B=0;continue}if(3===Oe[0]&&(!_e||Oe[1]>_e[0]&&Oe[1]<_e[3])){B.label=Oe[1];break}if(6===Oe[0]&&B.label<_e[1]){B.label=_e[1],_e=Oe;break}if(_e&&B.label<_e[2]){B.label=_e[2],B.ops.push(Oe);break}_e[2]&&B.ops.pop(),B.trys.pop();continue}Oe=q.call(G,B)}catch(ft){Oe=[6,ft],de=0}finally{ae=_e=0}if(5&Oe[0])throw Oe[1];return{value:Oe[0]?Oe[1]:void 0,done:!0}}([Oe,ft])}}}var d=Object.create?function(G,q,B,ae){void 0===ae&&(ae=B);var de=Object.getOwnPropertyDescriptor(q,B);(!de||("get"in de?!q.__esModule:de.writable||de.configurable))&&(de={enumerable:!0,get:function(){return q[B]}}),Object.defineProperty(G,ae,de)}:function(G,q,B,ae){void 0===ae&&(ae=B),G[ae]=q[B]};function _(G,q){for(var B in G)"default"!==B&&!Object.prototype.hasOwnProperty.call(q,B)&&d(q,G,B)}function v(G){var q="function"==typeof Symbol&&Symbol.iterator,B=q&&G[q],ae=0;if(B)return B.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&ae>=G.length&&(G=void 0),{value:G&&G[ae++],done:!G}}};throw new TypeError(q?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(G,q){var B="function"==typeof Symbol&&G[Symbol.iterator];if(!B)return G;var de,it,ae=B.call(G),_e=[];try{for(;(void 0===q||q-- >0)&&!(de=ae.next()).done;)_e.push(de.value)}catch(rt){it={error:rt}}finally{try{de&&!de.done&&(B=ae.return)&&B.call(ae)}finally{if(it)throw it.error}}return _e}function E(){for(var G=[],q=0;q<arguments.length;q++)G=G.concat(y(arguments[q]));return G}function M(){for(var G=0,q=0,B=arguments.length;q<B;q++)G+=arguments[q].length;var ae=Array(G),de=0;for(q=0;q<B;q++)for(var _e=arguments[q],it=0,rt=_e.length;it<rt;it++,de++)ae[de]=_e[it];return ae}function A(G,q,B){if(B||2===arguments.length)for(var _e,ae=0,de=q.length;ae<de;ae++)(_e||!(ae in q))&&(_e||(_e=Array.prototype.slice.call(q,0,ae)),_e[ae]=q[ae]);return G.concat(_e||Array.prototype.slice.call(q))}function k(G){return this instanceof k?(this.v=G,this):new k(G)}function j(G,q,B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var de,ae=B.apply(G,q||[]),_e=[];return de={},it("next"),it("throw"),it("return"),de[Symbol.asyncIterator]=function(){return this},de;function it(et){ae[et]&&(de[et]=function(at){return new Promise(function(Ke,nt){_e.push([et,at,Ke,nt])>1||rt(et,at)})})}function rt(et,at){try{!function yt(et){et.value instanceof k?Promise.resolve(et.value.v).then(Oe,ft):wt(_e[0][2],et)}(ae[et](at))}catch(Ke){wt(_e[0][3],Ke)}}function Oe(et){rt("next",et)}function ft(et){rt("throw",et)}function wt(et,at){et(at),_e.shift(),_e.length&&rt(_e[0][0],_e[0][1])}}function Y(G){var q,B;return q={},ae("next"),ae("throw",function(de){throw de}),ae("return"),q[Symbol.iterator]=function(){return this},q;function ae(de,_e){q[de]=G[de]?function(it){return(B=!B)?{value:k(G[de](it)),done:"return"===de}:_e?_e(it):it}:_e}}function U(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var B,q=G[Symbol.asyncIterator];return q?q.call(G):(G=v(G),B={},ae("next"),ae("throw"),ae("return"),B[Symbol.asyncIterator]=function(){return this},B);function ae(_e){B[_e]=G[_e]&&function(it){return new Promise(function(rt,yt){!function de(_e,it,rt,yt){Promise.resolve(yt).then(function(Oe){_e({value:Oe,done:rt})},it)}(rt,yt,(it=G[_e](it)).done,it.value)})}}}function Q(G,q){return Object.defineProperty?Object.defineProperty(G,"raw",{value:q}):G.raw=q,G}var V=Object.create?function(G,q){Object.defineProperty(G,"default",{enumerable:!0,value:q})}:function(G,q){G.default=q};function X(G){if(G&&G.__esModule)return G;var q={};if(null!=G)for(var B in G)"default"!==B&&Object.prototype.hasOwnProperty.call(G,B)&&d(q,G,B);return V(q,G),q}function re(G){return G&&G.__esModule?G:{default:G}}function me(G,q,B,ae){if("a"===B&&!ae)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof q?G!==q||!ae:!q.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===B?ae:"a"===B?ae.call(G):ae?ae.value:q.get(G)}function we(G,q,B,ae,de){if("m"===ae)throw new TypeError("Private method is not writable");if("a"===ae&&!de)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof q?G!==q||!de:!q.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===ae?de.call(G,B):de?de.value=B:q.set(G,B),B}function tt(G,q){if(null===q||"object"!=typeof q&&"function"!=typeof q)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof G?q===G:G.has(q)}},7156:H=>{function o(n,p,b,u,r,c,f){try{var h=n[c](f),m=h.value}catch(d){return void b(d)}h.done?p(m):Promise.resolve(m).then(u,r)}H.exports=function a(n){return function(){var p=this,b=arguments;return new Promise(function(u,r){var c=n.apply(p,b);function f(m){o(c,u,r,f,h,"next",m)}function h(m){o(c,u,r,f,h,"throw",m)}f(void 0)})}},H.exports.__esModule=!0,H.exports.default=H.exports},1777:(H,o,a)=>{"use strict";a.d(o,{F4:()=>d,IO:()=>M,LC:()=>p,SB:()=>m,X$:()=>u,ZE:()=>Y,ZN:()=>j,_j:()=>n,eR:()=>_,jt:()=>r,k1:()=>U,l3:()=>b,oB:()=>h,pV:()=>y,ru:()=>c,vP:()=>f});class n{}class p{}const b="*";function u(Q,V){return{type:7,name:Q,definitions:V,options:{}}}function r(Q,V=null){return{type:4,styles:V,timings:Q}}function c(Q,V=null){return{type:3,steps:Q,options:V}}function f(Q,V=null){return{type:2,steps:Q,options:V}}function h(Q){return{type:6,styles:Q,offset:null}}function m(Q,V,X){return{type:0,name:Q,styles:V,options:X}}function d(Q){return{type:5,steps:Q}}function _(Q,V,X=null){return{type:1,expr:Q,animation:V,options:X}}function y(Q=null){return{type:9,options:Q}}function M(Q,V,X=null){return{type:11,selector:Q,animation:V,options:X}}function k(Q){Promise.resolve(null).then(Q)}class j{constructor(V=0,X=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=V+X}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(V=>V()),this._onDoneFns=[])}onStart(V){this._originalOnStartFns.push(V),this._onStartFns.push(V)}onDone(V){this._originalOnDoneFns.push(V),this._onDoneFns.push(V)}onDestroy(V){this._onDestroyFns.push(V)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){k(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(V=>V()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(V=>V()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(V){this._position=this.totalTime?V*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(V){const X="start"==V?this._onStartFns:this._onDoneFns;X.forEach(re=>re()),X.length=0}}class Y{constructor(V){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=V;let X=0,re=0,me=0;const we=this.players.length;0==we?k(()=>this._onFinish()):this.players.forEach(tt=>{tt.onDone(()=>{++X==we&&this._onFinish()}),tt.onDestroy(()=>{++re==we&&this._onDestroy()}),tt.onStart(()=>{++me==we&&this._onStart()})}),this.totalTime=this.players.reduce((tt,G)=>Math.max(tt,G.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(V=>V()),this._onDoneFns=[])}init(){this.players.forEach(V=>V.init())}onStart(V){this._onStartFns.push(V)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(V=>V()),this._onStartFns=[])}onDone(V){this._onDoneFns.push(V)}onDestroy(V){this._onDestroyFns.push(V)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(V=>V.play())}pause(){this.players.forEach(V=>V.pause())}restart(){this.players.forEach(V=>V.restart())}finish(){this._onFinish(),this.players.forEach(V=>V.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(V=>V.destroy()),this._onDestroyFns.forEach(V=>V()),this._onDestroyFns=[])}reset(){this.players.forEach(V=>V.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(V){const X=V*this.totalTime;this.players.forEach(re=>{const me=re.totalTime?Math.min(1,X/re.totalTime):1;re.setPosition(me)})}getPosition(){const V=this.players.reduce((X,re)=>null===X||re.totalTime>X.totalTime?re:X,null);return null!=V?V.getPosition():0}beforeDestroy(){this.players.forEach(V=>{V.beforeDestroy&&V.beforeDestroy()})}triggerCallback(V){const X="start"==V?this._onStartFns:this._onDoneFns;X.forEach(re=>re()),X.length=0}}const U="!"},5664:(H,o,a)=>{"use strict";a.d(o,{$s:()=>G,Em:()=>_e,X6:()=>De,ic:()=>rt,kH:()=>kt,qV:()=>Ae,qm:()=>$e,rt:()=>ve,tE:()=>xt,yG:()=>Le});var n=a(9808),p=a(5e3),b=a(925),u=a(7579),r=a(727),c=a(1135),f=a(9646),h=a(1159),m=a(8505),d=a(8372),_=a(9300),v=a(4004),y=a(5698),E=a(5684),M=a(1884),A=a(2722),k=a(3191),j=a(7144),Y=a(5113);function X(fe,ee){return(fe.getAttribute(ee)||"").match(/\S+/g)||[]}const me="cdk-describedby-message",we="cdk-describedby-host";let tt=0,G=(()=>{class fe{constructor(oe,L){this._platform=L,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+tt++,this._document=oe,this._id=(0,p.inject)(p.APP_ID)+"-"+tt++}describe(oe,L,be){if(!this._canBeDescribed(oe,L))return;const ct=q(L,be);"string"!=typeof L?(B(L,this._id),this._messageRegistry.set(ct,{messageElement:L,referenceCount:0})):this._messageRegistry.has(ct)||this._createMessageElement(L,be),this._isElementDescribedByMessage(oe,ct)||this._addMessageReference(oe,ct)}removeDescription(oe,L,be){var ct;if(!L||!this._isElementNode(oe))return;const ke=q(L,be);if(this._isElementDescribedByMessage(oe,ke)&&this._removeMessageReference(oe,ke),"string"==typeof L){const pt=this._messageRegistry.get(ke);pt&&0===pt.referenceCount&&this._deleteMessageElement(ke)}0===(null===(ct=this._messagesContainer)||void 0===ct?void 0:ct.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var oe;const L=this._document.querySelectorAll(`[${we}="${this._id}"]`);for(let be=0;be<L.length;be++)this._removeCdkDescribedByReferenceIds(L[be]),L[be].removeAttribute(we);null===(oe=this._messagesContainer)||void 0===oe||oe.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(oe,L){const be=this._document.createElement("div");B(be,this._id),be.textContent=oe,L&&be.setAttribute("role",L),this._createMessagesContainer(),this._messagesContainer.appendChild(be),this._messageRegistry.set(q(oe,L),{messageElement:be,referenceCount:0})}_deleteMessageElement(oe){var L,be;null===(be=null===(L=this._messageRegistry.get(oe))||void 0===L?void 0:L.messageElement)||void 0===be||be.remove(),this._messageRegistry.delete(oe)}_createMessagesContainer(){if(this._messagesContainer)return;const oe="cdk-describedby-message-container",L=this._document.querySelectorAll(`.${oe}[platform="server"]`);for(let ct=0;ct<L.length;ct++)L[ct].remove();const be=this._document.createElement("div");be.style.visibility="hidden",be.classList.add(oe),be.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&be.setAttribute("platform","server"),this._document.body.appendChild(be),this._messagesContainer=be}_removeCdkDescribedByReferenceIds(oe){const L=X(oe,"aria-describedby").filter(be=>0!=be.indexOf(me));oe.setAttribute("aria-describedby",L.join(" "))}_addMessageReference(oe,L){const be=this._messageRegistry.get(L);(function Q(fe,ee,oe){const L=X(fe,ee);L.some(be=>be.trim()==oe.trim())||(L.push(oe.trim()),fe.setAttribute(ee,L.join(" ")))})(oe,"aria-describedby",be.messageElement.id),oe.setAttribute(we,this._id),be.referenceCount++}_removeMessageReference(oe,L){const be=this._messageRegistry.get(L);be.referenceCount--,function V(fe,ee,oe){const be=X(fe,ee).filter(ct=>ct!=oe.trim());be.length?fe.setAttribute(ee,be.join(" ")):fe.removeAttribute(ee)}(oe,"aria-describedby",be.messageElement.id),oe.removeAttribute(we)}_isElementDescribedByMessage(oe,L){const be=X(oe,"aria-describedby"),ct=this._messageRegistry.get(L),ke=ct&&ct.messageElement.id;return!!ke&&-1!=be.indexOf(ke)}_canBeDescribed(oe,L){if(!this._isElementNode(oe))return!1;if(L&&"object"==typeof L)return!0;const be=null==L?"":`${L}`.trim(),ct=oe.getAttribute("aria-label");return!(!be||ct&&ct.trim()===be)}_isElementNode(oe){return oe.nodeType===this._document.ELEMENT_NODE}}return fe.\u0275fac=function(oe){return new(oe||fe)(p.\u0275\u0275inject(n.DOCUMENT),p.\u0275\u0275inject(b.t4))},fe.\u0275prov=p.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();function q(fe,ee){return"string"==typeof fe?`${ee||""}/${fe}`:fe}function B(fe,ee){fe.id||(fe.id=`${me}-${ee}-${tt++}`)}class _e extends class ae{constructor(ee){this._items=ee,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new u.x,this._typeaheadSubscription=r.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=oe=>oe.disabled,this._pressedLetters=[],this.tabOut=new u.x,this.change=new u.x,ee instanceof p.QueryList&&ee.changes.subscribe(oe=>{if(this._activeItem){const be=oe.toArray().indexOf(this._activeItem);be>-1&&be!==this._activeItemIndex&&(this._activeItemIndex=be)}})}skipPredicate(ee){return this._skipPredicateFn=ee,this}withWrap(ee=!0){return this._wrap=ee,this}withVerticalOrientation(ee=!0){return this._vertical=ee,this}withHorizontalOrientation(ee){return this._horizontal=ee,this}withAllowedModifierKeys(ee){return this._allowedModifierKeys=ee,this}withTypeAhead(ee=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,m.b)(oe=>this._pressedLetters.push(oe)),(0,d.b)(ee),(0,_.h)(()=>this._pressedLetters.length>0),(0,v.U)(()=>this._pressedLetters.join(""))).subscribe(oe=>{const L=this._getItemsArray();for(let be=1;be<L.length+1;be++){const ct=(this._activeItemIndex+be)%L.length,ke=L[ct];if(!this._skipPredicateFn(ke)&&0===ke.getLabel().toUpperCase().trim().indexOf(oe)){this.setActiveItem(ct);break}}this._pressedLetters=[]}),this}withHomeAndEnd(ee=!0){return this._homeAndEnd=ee,this}setActiveItem(ee){const oe=this._activeItem;this.updateActiveItem(ee),this._activeItem!==oe&&this.change.next(this._activeItemIndex)}onKeydown(ee){const oe=ee.keyCode,be=["altKey","ctrlKey","metaKey","shiftKey"].every(ct=>!ee[ct]||this._allowedModifierKeys.indexOf(ct)>-1);switch(oe){case h.Mf:return void this.tabOut.next();case h.JH:if(this._vertical&&be){this.setNextItemActive();break}return;case h.LH:if(this._vertical&&be){this.setPreviousItemActive();break}return;case h.SV:if(this._horizontal&&be){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case h.oh:if(this._horizontal&&be){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case h.Sd:if(this._homeAndEnd&&be){this.setFirstItemActive();break}return;case h.uR:if(this._homeAndEnd&&be){this.setLastItemActive();break}return;default:return void((be||(0,h.Vb)(ee,"shiftKey"))&&(ee.key&&1===ee.key.length?this._letterKeyStream.next(ee.key.toLocaleUpperCase()):(oe>=h.A&&oe<=h.Z||oe>=h.xE&&oe<=h.aO)&&this._letterKeyStream.next(String.fromCharCode(oe))))}this._pressedLetters=[],ee.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(ee){const oe=this._getItemsArray(),L="number"==typeof ee?ee:oe.indexOf(ee),be=oe[L];this._activeItem=null==be?null:be,this._activeItemIndex=L}_setActiveItemByDelta(ee){this._wrap?this._setActiveInWrapMode(ee):this._setActiveInDefaultMode(ee)}_setActiveInWrapMode(ee){const oe=this._getItemsArray();for(let L=1;L<=oe.length;L++){const be=(this._activeItemIndex+ee*L+oe.length)%oe.length;if(!this._skipPredicateFn(oe[be]))return void this.setActiveItem(be)}}_setActiveInDefaultMode(ee){this._setActiveItemByIndex(this._activeItemIndex+ee,ee)}_setActiveItemByIndex(ee,oe){const L=this._getItemsArray();if(L[ee]){for(;this._skipPredicateFn(L[ee]);)if(!L[ee+=oe])return;this.setActiveItem(ee)}}_getItemsArray(){return this._items instanceof p.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ee){return this._origin=ee,this}setActiveItem(ee){super.setActiveItem(ee),this.activeItem&&this.activeItem.focus(this._origin)}}let rt=(()=>{class fe{constructor(oe){this._platform=oe}isDisabled(oe){return oe.hasAttribute("disabled")}isVisible(oe){return function Oe(fe){return!!(fe.offsetWidth||fe.offsetHeight||"function"==typeof fe.getClientRects&&fe.getClientRects().length)}(oe)&&"visible"===getComputedStyle(oe).visibility}isTabbable(oe){if(!this._platform.isBrowser)return!1;const L=function yt(fe){try{return fe.frameElement}catch(ee){return null}}(function It(fe){return fe.ownerDocument&&fe.ownerDocument.defaultView||window}(oe));if(L&&(-1===Tt(L)||!this.isVisible(L)))return!1;let be=oe.nodeName.toLowerCase(),ct=Tt(oe);return oe.hasAttribute("contenteditable")?-1!==ct:!("iframe"===be||"object"===be||this._platform.WEBKIT&&this._platform.IOS&&!function Ct(fe){let ee=fe.nodeName.toLowerCase(),oe="input"===ee&&fe.type;return"text"===oe||"password"===oe||"select"===ee||"textarea"===ee}(oe))&&("audio"===be?!!oe.hasAttribute("controls")&&-1!==ct:"video"===be?-1!==ct&&(null!==ct||this._platform.FIREFOX||oe.hasAttribute("controls")):oe.tabIndex>=0)}isFocusable(oe,L){return function st(fe){return!function wt(fe){return function at(fe){return"input"==fe.nodeName.toLowerCase()}(fe)&&"hidden"==fe.type}(fe)&&(function ft(fe){let ee=fe.nodeName.toLowerCase();return"input"===ee||"select"===ee||"button"===ee||"textarea"===ee}(fe)||function et(fe){return function Ke(fe){return"a"==fe.nodeName.toLowerCase()}(fe)&&fe.hasAttribute("href")}(fe)||fe.hasAttribute("contenteditable")||nt(fe))}(oe)&&!this.isDisabled(oe)&&((null==L?void 0:L.ignoreVisibility)||this.isVisible(oe))}}return fe.\u0275fac=function(oe){return new(oe||fe)(p.\u0275\u0275inject(b.t4))},fe.\u0275prov=p.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();function nt(fe){if(!fe.hasAttribute("tabindex")||void 0===fe.tabIndex)return!1;let ee=fe.getAttribute("tabindex");return!(!ee||isNaN(parseInt(ee,10)))}function Tt(fe){if(!nt(fe))return null;const ee=parseInt(fe.getAttribute("tabindex")||"",10);return isNaN(ee)?-1:ee}class ze{constructor(ee,oe,L,be,ct=!1){this._element=ee,this._checker=oe,this._ngZone=L,this._document=be,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,ct||this.attachAnchors()}get enabled(){return this._enabled}set enabled(ee){this._enabled=ee,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ee,this._startAnchor),this._toggleAnchorTabIndex(ee,this._endAnchor))}destroy(){const ee=this._startAnchor,oe=this._endAnchor;ee&&(ee.removeEventListener("focus",this.startAnchorListener),ee.remove()),oe&&(oe.removeEventListener("focus",this.endAnchorListener),oe.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(ee){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusInitialElement(ee)))})}focusFirstTabbableElementWhenReady(ee){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusFirstTabbableElement(ee)))})}focusLastTabbableElementWhenReady(ee){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusLastTabbableElement(ee)))})}_getRegionBoundary(ee){const oe=this._element.querySelectorAll(`[cdk-focus-region-${ee}], [cdkFocusRegion${ee}], [cdk-focus-${ee}]`);return"start"==ee?oe.length?oe[0]:this._getFirstTabbableElement(this._element):oe.length?oe[oe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ee){const oe=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(oe){if(!this._checker.isFocusable(oe)){const L=this._getFirstTabbableElement(oe);return null==L||L.focus(ee),!!L}return oe.focus(ee),!0}return this.focusFirstTabbableElement(ee)}focusFirstTabbableElement(ee){const oe=this._getRegionBoundary("start");return oe&&oe.focus(ee),!!oe}focusLastTabbableElement(ee){const oe=this._getRegionBoundary("end");return oe&&oe.focus(ee),!!oe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ee){if(this._checker.isFocusable(ee)&&this._checker.isTabbable(ee))return ee;const oe=ee.children;for(let L=0;L<oe.length;L++){const be=oe[L].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(oe[L]):null;if(be)return be}return null}_getLastTabbableElement(ee){if(this._checker.isFocusable(ee)&&this._checker.isTabbable(ee))return ee;const oe=ee.children;for(let L=oe.length-1;L>=0;L--){const be=oe[L].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(oe[L]):null;if(be)return be}return null}_createAnchor(){const ee=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ee),ee.classList.add("cdk-visually-hidden"),ee.classList.add("cdk-focus-trap-anchor"),ee.setAttribute("aria-hidden","true"),ee}_toggleAnchorTabIndex(ee,oe){ee?oe.setAttribute("tabindex","0"):oe.removeAttribute("tabindex")}toggleAnchors(ee){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ee,this._startAnchor),this._toggleAnchorTabIndex(ee,this._endAnchor))}_executeOnStable(ee){this._ngZone.isStable?ee():this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(ee)}}let Ae=(()=>{class fe{constructor(oe,L,be){this._checker=oe,this._ngZone=L,this._document=be}create(oe,L=!1){return new ze(oe,this._checker,this._ngZone,this._document,L)}}return fe.\u0275fac=function(oe){return new(oe||fe)(p.\u0275\u0275inject(rt),p.\u0275\u0275inject(p.NgZone),p.\u0275\u0275inject(n.DOCUMENT))},fe.\u0275prov=p.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();function De(fe){return 0===fe.buttons||0===fe.offsetX&&0===fe.offsetY}function Le(fe){const ee=fe.touches&&fe.touches[0]||fe.changedTouches&&fe.changedTouches[0];return!(!ee||-1!==ee.identifier||null!=ee.radiusX&&1!==ee.radiusX||null!=ee.radiusY&&1!==ee.radiusY)}const Se=new p.InjectionToken("cdk-input-modality-detector-options"),Fe={ignoreKeys:[h.zL,h.jx,h.b2,h.MW,h.JU]},xe=(0,b.i$)({passive:!0,capture:!0});let ht=(()=>{class fe{constructor(oe,L,be,ct){this._platform=oe,this._mostRecentTarget=null,this._modality=new c.X(null),this._lastTouchMs=0,this._onKeydown=ke=>{var pt,se;null!==(se=null===(pt=this._options)||void 0===pt?void 0:pt.ignoreKeys)&&void 0!==se&&se.some(ye=>ye===ke.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(ke))},this._onMousedown=ke=>{Date.now()-this._lastTouchMs<650||(this._modality.next(De(ke)?"keyboard":"mouse"),this._mostRecentTarget=(0,b.sA)(ke))},this._onTouchstart=ke=>{Le(ke)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,b.sA)(ke))},this._options=Object.assign(Object.assign({},Fe),ct),this.modalityDetected=this._modality.pipe((0,E.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,M.x)()),oe.isBrowser&&L.runOutsideAngular(()=>{be.addEventListener("keydown",this._onKeydown,xe),be.addEventListener("mousedown",this._onMousedown,xe),be.addEventListener("touchstart",this._onTouchstart,xe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,xe),document.removeEventListener("mousedown",this._onMousedown,xe),document.removeEventListener("touchstart",this._onTouchstart,xe))}}return fe.\u0275fac=function(oe){return new(oe||fe)(p.\u0275\u0275inject(b.t4),p.\u0275\u0275inject(p.NgZone),p.\u0275\u0275inject(n.DOCUMENT),p.\u0275\u0275inject(Se,8))},fe.\u0275prov=p.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})();const He=new p.InjectionToken("cdk-focus-monitor-default-options"),dt=(0,b.i$)({passive:!0,capture:!0});let xt=(()=>{class fe{constructor(oe,L,be,ct,ke){this._ngZone=oe,this._platform=L,this._inputModalityDetector=be,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new u.x,this._rootNodeFocusAndBlurListener=pt=>{for(let ye=(0,b.sA)(pt);ye;ye=ye.parentElement)"focus"===pt.type?this._onFocus(pt,ye):this._onBlur(pt,ye)},this._document=ct,this._detectionMode=(null==ke?void 0:ke.detectionMode)||0}monitor(oe,L=!1){const be=(0,k.fI)(oe);if(!this._platform.isBrowser||1!==be.nodeType)return(0,f.of)(null);const ct=(0,b.kV)(be)||this._getDocument(),ke=this._elementInfo.get(be);if(ke)return L&&(ke.checkChildren=!0),ke.subject;const pt={checkChildren:L,subject:new u.x,rootNode:ct};return this._elementInfo.set(be,pt),this._registerGlobalListeners(pt),pt.subject}stopMonitoring(oe){const L=(0,k.fI)(oe),be=this._elementInfo.get(L);be&&(be.subject.complete(),this._setClasses(L),this._elementInfo.delete(L),this._removeGlobalListeners(be))}focusVia(oe,L,be){const ct=(0,k.fI)(oe);ct===this._getDocument().activeElement?this._getClosestElementsInfo(ct).forEach(([pt,se])=>this._originChanged(pt,L,se)):(this._setOrigin(L),"function"==typeof ct.focus&&ct.focus(be))}ngOnDestroy(){this._elementInfo.forEach((oe,L)=>this.stopMonitoring(L))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(oe){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(oe)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:oe&&this._isLastInteractionFromInputLabel(oe)?"mouse":"program"}_shouldBeAttributedToTouch(oe){return 1===this._detectionMode||!(null==oe||!oe.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(oe,L){oe.classList.toggle("cdk-focused",!!L),oe.classList.toggle("cdk-touch-focused","touch"===L),oe.classList.toggle("cdk-keyboard-focused","keyboard"===L),oe.classList.toggle("cdk-mouse-focused","mouse"===L),oe.classList.toggle("cdk-program-focused","program"===L)}_setOrigin(oe,L=!1){this._ngZone.runOutsideAngular(()=>{this._origin=oe,this._originFromTouchInteraction="touch"===oe&&L,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(oe,L){const be=this._elementInfo.get(L),ct=(0,b.sA)(oe);!be||!be.checkChildren&&L!==ct||this._originChanged(L,this._getFocusOrigin(ct),be)}_onBlur(oe,L){const be=this._elementInfo.get(L);!be||be.checkChildren&&oe.relatedTarget instanceof Node&&L.contains(oe.relatedTarget)||(this._setClasses(L),this._emitOrigin(be,null))}_emitOrigin(oe,L){oe.subject.observers.length&&this._ngZone.run(()=>oe.subject.next(L))}_registerGlobalListeners(oe){if(!this._platform.isBrowser)return;const L=oe.rootNode,be=this._rootNodeFocusListenerCount.get(L)||0;be||this._ngZone.runOutsideAngular(()=>{L.addEventListener("focus",this._rootNodeFocusAndBlurListener,dt),L.addEventListener("blur",this._rootNodeFocusAndBlurListener,dt)}),this._rootNodeFocusListenerCount.set(L,be+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,A.R)(this._stopInputModalityDetector)).subscribe(ct=>{this._setOrigin(ct,!0)}))}_removeGlobalListeners(oe){const L=oe.rootNode;if(this._rootNodeFocusListenerCount.has(L)){const be=this._rootNodeFocusListenerCount.get(L);be>1?this._rootNodeFocusListenerCount.set(L,be-1):(L.removeEventListener("focus",this._rootNodeFocusAndBlurListener,dt),L.removeEventListener("blur",this._rootNodeFocusAndBlurListener,dt),this._rootNodeFocusListenerCount.delete(L))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(oe,L,be){this._setClasses(oe,L),this._emitOrigin(be,L),this._lastFocusOrigin=L}_getClosestElementsInfo(oe){const L=[];return this._elementInfo.forEach((be,ct)=>{(ct===oe||be.checkChildren&&ct.contains(oe))&&L.push([ct,be])}),L}_isLastInteractionFromInputLabel(oe){const{_mostRecentTarget:L,mostRecentModality:be}=this._inputModalityDetector;if("mouse"!==be||!L||L===oe||"INPUT"!==oe.nodeName&&"TEXTAREA"!==oe.nodeName||oe.disabled)return!1;const ct=oe.labels;if(ct)for(let ke=0;ke<ct.length;ke++)if(ct[ke].contains(L))return!0;return!1}}return fe.\u0275fac=function(oe){return new(oe||fe)(p.\u0275\u0275inject(p.NgZone),p.\u0275\u0275inject(b.t4),p.\u0275\u0275inject(ht),p.\u0275\u0275inject(n.DOCUMENT,8),p.\u0275\u0275inject(He,8))},fe.\u0275prov=p.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),kt=(()=>{class fe{constructor(oe,L){this._elementRef=oe,this._focusMonitor=L,this.cdkFocusChange=new p.EventEmitter}ngAfterViewInit(){const oe=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(oe,1===oe.nodeType&&oe.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(L=>this.cdkFocusChange.emit(L))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return fe.\u0275fac=function(oe){return new(oe||fe)(p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(xt))},fe.\u0275dir=p.\u0275\u0275defineDirective({type:fe,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),fe})();const Bt="cdk-high-contrast-black-on-white",Zt="cdk-high-contrast-white-on-black",Ne="cdk-high-contrast-active";let $e=(()=>{class fe{constructor(oe,L){this._platform=oe,this._document=L,this._breakpointSubscription=(0,p.inject)(Y.BreakpointObserver).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const oe=this._document.createElement("div");oe.style.backgroundColor="rgb(1,2,3)",oe.style.position="absolute",this._document.body.appendChild(oe);const L=this._document.defaultView||window,be=L&&L.getComputedStyle?L.getComputedStyle(oe):null,ct=(be&&be.backgroundColor||"").replace(/ /g,"");switch(oe.remove(),ct){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const oe=this._document.body.classList;oe.remove(Ne,Bt,Zt),this._hasCheckedHighContrastMode=!0;const L=this.getHighContrastMode();1===L?oe.add(Ne,Bt):2===L&&oe.add(Ne,Zt)}}}return fe.\u0275fac=function(oe){return new(oe||fe)(p.\u0275\u0275inject(b.t4),p.\u0275\u0275inject(n.DOCUMENT))},fe.\u0275prov=p.\u0275\u0275defineInjectable({token:fe,factory:fe.\u0275fac,providedIn:"root"}),fe})(),ve=(()=>{class fe{constructor(oe){oe._applyBodyHighContrastModeCssClasses()}}return fe.\u0275fac=function(oe){return new(oe||fe)(p.\u0275\u0275inject($e))},fe.\u0275mod=p.\u0275\u0275defineNgModule({type:fe}),fe.\u0275inj=p.\u0275\u0275defineInjector({imports:[j.Q8]}),fe})()},226:(H,o,a)=>{"use strict";a.d(o,{Is:()=>f,vT:()=>m});var n=a(5e3),p=a(9808);const b=new n.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function u(){return(0,n.inject)(p.DOCUMENT)}}),r=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let f=(()=>{class d{constructor(v){if(this.value="ltr",this.change=new n.EventEmitter,v){const E=v.documentElement?v.documentElement.dir:null;this.value=function c(d){const _=(null==d?void 0:d.toLowerCase())||"";return"auto"===_&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?r.test(navigator.language)?"rtl":"ltr":"rtl"===_?"rtl":"ltr"}((v.body?v.body.dir:null)||E||"ltr")}}ngOnDestroy(){this.change.complete()}}return d.\u0275fac=function(v){return new(v||d)(n.\u0275\u0275inject(b,8))},d.\u0275prov=n.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"}),d})(),m=(()=>{class d{}return d.\u0275fac=function(v){return new(v||d)},d.\u0275mod=n.\u0275\u0275defineNgModule({type:d}),d.\u0275inj=n.\u0275\u0275defineInjector({}),d})()},3191:(H,o,a)=>{"use strict";a.d(o,{Eq:()=>r,HM:()=>c,Ig:()=>p,fI:()=>f,su:()=>b,t6:()=>u});var n=a(5e3);function p(m){return null!=m&&"false"!=`${m}`}function b(m,d=0){return u(m)?Number(m):d}function u(m){return!isNaN(parseFloat(m))&&!isNaN(Number(m))}function r(m){return Array.isArray(m)?m:[m]}function c(m){return null==m?"":"string"==typeof m?m:`${m}px`}function f(m){return m instanceof n.ElementRef?m.nativeElement:m}},449:(H,o,a)=>{"use strict";a.d(o,{Ov:()=>h,Z9:()=>u,eX:()=>f,k:()=>_,o2:()=>b,yy:()=>c});var n=a(7579),p=a(5e3);class b{}function u(v){return v&&"function"==typeof v.connect}class c{applyChanges(y,E,M,A,k){y.forEachOperation((j,Y,U)=>{let Q,V;if(null==j.previousIndex){const X=M(j,Y,U);Q=E.createEmbeddedView(X.templateRef,X.context,X.index),V=1}else null==U?(E.remove(Y),V=3):(Q=E.get(Y),E.move(Q,U),V=2);k&&k({context:null==Q?void 0:Q.context,operation:V,record:j})})}detach(){}}class f{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(y,E,M,A,k){y.forEachOperation((j,Y,U)=>{let Q,V;null==j.previousIndex?(Q=this._insertView(()=>M(j,Y,U),U,E,A(j)),V=Q?1:0):null==U?(this._detachAndCacheView(Y,E),V=3):(Q=this._moveView(Y,U,E,A(j)),V=2),k&&k({context:null==Q?void 0:Q.context,operation:V,record:j})})}detach(){for(const y of this._viewCache)y.destroy();this._viewCache=[]}_insertView(y,E,M,A){const k=this._insertViewFromCache(E,M);if(k)return void(k.context.$implicit=A);const j=y();return M.createEmbeddedView(j.templateRef,j.context,j.index)}_detachAndCacheView(y,E){const M=E.detach(y);this._maybeCacheView(M,E)}_moveView(y,E,M,A){const k=M.get(y);return M.move(k,E),k.context.$implicit=A,k}_maybeCacheView(y,E){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(y);else{const M=E.indexOf(y);-1===M?y.destroy():E.remove(M)}}_insertViewFromCache(y,E){const M=this._viewCache.pop();return M&&E.insert(M,y),M||null}}class h{constructor(y=!1,E,M=!0,A){this._multiple=y,this._emitChanges=M,this.compareWith=A,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new n.x,E&&E.length&&(y?E.forEach(k=>this._markSelected(k)):this._markSelected(E[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...y){this._verifyValueAssignment(y),y.forEach(M=>this._markSelected(M));const E=this._hasQueuedChanges();return this._emitChangeEvent(),E}deselect(...y){this._verifyValueAssignment(y),y.forEach(M=>this._unmarkSelected(M));const E=this._hasQueuedChanges();return this._emitChangeEvent(),E}setSelection(...y){this._verifyValueAssignment(y);const E=this.selected,M=new Set(y);y.forEach(k=>this._markSelected(k)),E.filter(k=>!M.has(k)).forEach(k=>this._unmarkSelected(k));const A=this._hasQueuedChanges();return this._emitChangeEvent(),A}toggle(y){return this.isSelected(y)?this.deselect(y):this.select(y)}clear(y=!0){this._unmarkAll();const E=this._hasQueuedChanges();return y&&this._emitChangeEvent(),E}isSelected(y){if(this.compareWith){for(const E of this._selection)if(this.compareWith(E,y))return!0;return!1}return this._selection.has(y)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(y){this._multiple&&this.selected&&this._selected.sort(y)}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(y){this.isSelected(y)||(this._multiple||this._unmarkAll(),this.isSelected(y)||this._selection.add(y),this._emitChanges&&this._selectedToEmit.push(y))}_unmarkSelected(y){this.isSelected(y)&&(this._selection.delete(y),this._emitChanges&&this._deselectedToEmit.push(y))}_unmarkAll(){this.isEmpty()||this._selection.forEach(y=>this._unmarkSelected(y))}_verifyValueAssignment(y){}_hasQueuedChanges(){return!(!this._deselectedToEmit.length&&!this._selectedToEmit.length)}}const _=new p.InjectionToken("_ViewRepeater")},1159:(H,o,a)=>{"use strict";a.d(o,{A:()=>wt,JH:()=>U,JU:()=>c,K5:()=>r,LH:()=>j,L_:()=>v,MW:()=>ne,Mf:()=>b,SV:()=>Y,Sd:()=>A,Vb:()=>xn,Z:()=>$,ZH:()=>p,aO:()=>it,b2:()=>Jt,hY:()=>_,jx:()=>f,oh:()=>k,uR:()=>M,xE:()=>me,yY:()=>re,zL:()=>h});const p=8,b=9,r=13,c=16,f=17,h=18,_=27,v=32,M=35,A=36,k=37,j=38,Y=39,U=40,re=46,me=48,it=57,wt=65,$=90,ne=91,Jt=224;function xn(si,...In){return In.length?In.some(Wn=>si[Wn]):si.altKey||si.shiftKey||si.ctrlKey||si.metaKey}},5113:(H,o,a)=>{"use strict";a.r(o),a.d(o,{BreakpointObserver:()=>U,Breakpoints:()=>V,LayoutModule:()=>E,MediaMatcher:()=>k});var n=a(5e3),p=a(3191),b=a(7579),u=a(9841),r=a(7272),c=a(8306),f=a(5698),h=a(5684),m=a(8372),d=a(4004),_=a(8675),v=a(2722),y=a(925);let E=(()=>{class X{}return X.\u0275fac=function(me){return new(me||X)},X.\u0275mod=n.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=n.\u0275\u0275defineInjector({}),X})();const M=new Set;let A,k=(()=>{class X{constructor(me){this._platform=me,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Y}matchMedia(me){return(this._platform.WEBKIT||this._platform.BLINK)&&function j(X){if(!M.has(X))try{A||(A=document.createElement("style"),A.setAttribute("type","text/css"),document.head.appendChild(A)),A.sheet&&(A.sheet.insertRule(`@media ${X} {body{ }}`,0),M.add(X))}catch(re){console.error(re)}}(me),this._matchMedia(me)}}return X.\u0275fac=function(me){return new(me||X)(n.\u0275\u0275inject(y.t4))},X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();function Y(X){return{matches:"all"===X||""===X,media:X,addListener:()=>{},removeListener:()=>{}}}let U=(()=>{class X{constructor(me,we){this._mediaMatcher=me,this._zone=we,this._queries=new Map,this._destroySubject=new b.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(me){return Q((0,p.Eq)(me)).some(tt=>this._registerQuery(tt).mql.matches)}observe(me){const tt=Q((0,p.Eq)(me)).map(q=>this._registerQuery(q).observable);let G=(0,u.a)(tt);return G=(0,r.z)(G.pipe((0,f.q)(1)),G.pipe((0,h.T)(1),(0,m.b)(0))),G.pipe((0,d.U)(q=>{const B={matches:!1,breakpoints:{}};return q.forEach(({matches:ae,query:de})=>{B.matches=B.matches||ae,B.breakpoints[de]=ae}),B}))}_registerQuery(me){if(this._queries.has(me))return this._queries.get(me);const we=this._mediaMatcher.matchMedia(me),G={observable:new c.y(q=>{const B=ae=>this._zone.run(()=>q.next(ae));return we.addListener(B),()=>{we.removeListener(B)}}).pipe((0,_.O)(we),(0,d.U)(({matches:q})=>({query:me,matches:q})),(0,v.R)(this._destroySubject)),mql:we};return this._queries.set(me,G),G}}return X.\u0275fac=function(me){return new(me||X)(n.\u0275\u0275inject(k),n.\u0275\u0275inject(n.NgZone))},X.\u0275prov=n.\u0275\u0275defineInjectable({token:X,factory:X.\u0275fac,providedIn:"root"}),X})();function Q(X){return X.map(re=>re.split(",")).reduce((re,me)=>re.concat(me)).map(re=>re.trim())}const V={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},7144:(H,o,a)=>{"use strict";a.d(o,{Q8:()=>m,wD:()=>h});var n=a(3191),p=a(5e3),b=a(8306),u=a(7579),r=a(8372);let c=(()=>{class d{create(v){return"undefined"==typeof MutationObserver?null:new MutationObserver(v)}}return d.\u0275fac=function(v){return new(v||d)},d.\u0275prov=p.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"}),d})(),f=(()=>{class d{constructor(v){this._mutationObserverFactory=v,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((v,y)=>this._cleanupObserver(y))}observe(v){const y=(0,n.fI)(v);return new b.y(E=>{const A=this._observeElement(y).subscribe(E);return()=>{A.unsubscribe(),this._unobserveElement(y)}})}_observeElement(v){if(this._observedElements.has(v))this._observedElements.get(v).count++;else{const y=new u.x,E=this._mutationObserverFactory.create(M=>y.next(M));E&&E.observe(v,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(v,{observer:E,stream:y,count:1})}return this._observedElements.get(v).stream}_unobserveElement(v){this._observedElements.has(v)&&(this._observedElements.get(v).count--,this._observedElements.get(v).count||this._cleanupObserver(v))}_cleanupObserver(v){if(this._observedElements.has(v)){const{observer:y,stream:E}=this._observedElements.get(v);y&&y.disconnect(),E.complete(),this._observedElements.delete(v)}}}return d.\u0275fac=function(v){return new(v||d)(p.\u0275\u0275inject(c))},d.\u0275prov=p.\u0275\u0275defineInjectable({token:d,factory:d.\u0275fac,providedIn:"root"}),d})(),h=(()=>{class d{constructor(v,y,E){this._contentObserver=v,this._elementRef=y,this._ngZone=E,this.event=new p.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(v){this._disabled=(0,n.Ig)(v),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(v){this._debounce=(0,n.su)(v),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const v=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?v.pipe((0,r.b)(this.debounce)):v).subscribe(this.event)})}_unsubscribe(){var v;null===(v=this._currentSubscription)||void 0===v||v.unsubscribe()}}return d.\u0275fac=function(v){return new(v||d)(p.\u0275\u0275directiveInject(f),p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(p.NgZone))},d.\u0275dir=p.\u0275\u0275defineDirective({type:d,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),d})(),m=(()=>{class d{}return d.\u0275fac=function(v){return new(v||d)},d.\u0275mod=p.\u0275\u0275defineNgModule({type:d}),d.\u0275inj=p.\u0275\u0275defineInjector({providers:[c]}),d})()},1314:(H,o,a)=>{"use strict";a.d(o,{Iu:()=>G,U8:()=>We,X_:()=>V,Xj:()=>q,aV:()=>Ct});var n=a(495),p=a(9808),b=a(5e3),u=a(3191),r=a(925),c=a(226),f=a(7429),h=a(7579),m=a(727),d=a(6451),_=a(5698),v=a(2722);const y=(0,r.Mq)();class E{constructor(z,De){this._viewportRuler=z,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=De}attach(){}enable(){if(this._canBeEnabled()){const z=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=z.style.left||"",this._previousHTMLStyles.top=z.style.top||"",z.style.left=(0,u.HM)(-this._previousScrollPosition.left),z.style.top=(0,u.HM)(-this._previousScrollPosition.top),z.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const z=this._document.documentElement,Le=z.style,Se=this._document.body.style,Fe=Le.scrollBehavior||"",ge=Se.scrollBehavior||"";this._isEnabled=!1,Le.left=this._previousHTMLStyles.left,Le.top=this._previousHTMLStyles.top,z.classList.remove("cdk-global-scrollblock"),y&&(Le.scrollBehavior=Se.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),y&&(Le.scrollBehavior=Fe,Se.scrollBehavior=ge)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const De=this._document.body,Le=this._viewportRuler.getViewportSize();return De.scrollHeight>Le.height||De.scrollWidth>Le.width}}class A{constructor(z,De,Le,Se){this._scrollDispatcher=z,this._ngZone=De,this._viewportRuler=Le,this._config=Se,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(z){this._overlayRef=z}enable(){if(this._scrollSubscription)return;const z=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=z.subscribe(()=>{const De=this._viewportRuler.getViewportScrollPosition().top;Math.abs(De-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=z.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class k{enable(){}disable(){}attach(){}}function j(Ye,z){return z.some(De=>Ye.bottom<De.top||Ye.top>De.bottom||Ye.right<De.left||Ye.left>De.right)}function Y(Ye,z){return z.some(De=>Ye.top<De.top||Ye.bottom>De.bottom||Ye.left<De.left||Ye.right>De.right)}class U{constructor(z,De,Le,Se){this._scrollDispatcher=z,this._viewportRuler=De,this._ngZone=Le,this._config=Se,this._scrollSubscription=null}attach(z){this._overlayRef=z}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 De=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Le,height:Se}=this._viewportRuler.getViewportSize();j(De,[{width:Le,height:Se,bottom:Se,right:Le,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 Q=(()=>{class Ye{constructor(De,Le,Se,Fe){this._scrollDispatcher=De,this._viewportRuler=Le,this._ngZone=Se,this.noop=()=>new k,this.close=ge=>new A(this._scrollDispatcher,this._ngZone,this._viewportRuler,ge),this.block=()=>new E(this._viewportRuler,this._document),this.reposition=ge=>new U(this._scrollDispatcher,this._viewportRuler,this._ngZone,ge),this._document=Fe}}return Ye.\u0275fac=function(De){return new(De||Ye)(b.\u0275\u0275inject(n.mF),b.\u0275\u0275inject(n.rL),b.\u0275\u0275inject(b.NgZone),b.\u0275\u0275inject(p.DOCUMENT))},Ye.\u0275prov=b.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})();class V{constructor(z){if(this.scrollStrategy=new k,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,z){const De=Object.keys(z);for(const Le of De)void 0!==z[Le]&&(this[Le]=z[Le])}}}class me{constructor(z,De){this.connectionPair=z,this.scrollableViewProperties=De}}class G{constructor(z,De,Le,Se,Fe,ge,xe,ht,Me,$=!1){this._portalOutlet=z,this._host=De,this._pane=Le,this._config=Se,this._ngZone=Fe,this._keyboardDispatcher=ge,this._document=xe,this._location=ht,this._outsideClickDispatcher=Me,this._animationsDisabled=$,this._backdropElement=null,this._backdropClick=new h.x,this._attachments=new h.x,this._detachments=new h.x,this._locationChanges=m.w0.EMPTY,this._backdropClickHandler=ne=>this._backdropClick.next(ne),this._backdropTransitionendHandler=ne=>{this._disposeBackdrop(ne.target)},this._keydownEvents=new h.x,this._outsidePointerEvents=new h.x,Se.scrollStrategy&&(this._scrollStrategy=Se.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=Se.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(z){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const De=this._portalOutlet.attach(z);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,_.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),De}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const z=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),z}dispose(){var z;const De=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(z=this._host)||void 0===z||z.remove(),this._previousHostParent=this._pane=this._host=null,De&&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(z){z!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=z,this.hasAttached()&&(z.attach(this),this.updatePosition()))}updateSize(z){this._config=Object.assign(Object.assign({},this._config),z),this._updateElementSize()}setDirection(z){this._config=Object.assign(Object.assign({},this._config),{direction:z}),this._updateElementDirection()}addPanelClass(z){this._pane&&this._toggleClasses(this._pane,z,!0)}removePanelClass(z){this._pane&&this._toggleClasses(this._pane,z,!1)}getDirection(){const z=this._config.direction;return z?"string"==typeof z?z:z.value:"ltr"}updateScrollStrategy(z){z!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=z,this.hasAttached()&&(z.attach(this),z.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const z=this._pane.style;z.width=(0,u.HM)(this._config.width),z.height=(0,u.HM)(this._config.height),z.minWidth=(0,u.HM)(this._config.minWidth),z.minHeight=(0,u.HM)(this._config.minHeight),z.maxWidth=(0,u.HM)(this._config.maxWidth),z.maxHeight=(0,u.HM)(this._config.maxHeight)}_togglePointerEvents(z){this._pane.style.pointerEvents=z?"":"none"}_attachBackdrop(){const z="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),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),this._animationsDisabled||"undefined"==typeof requestAnimationFrame?this._backdropElement.classList.add(z):this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(z)})})}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const z=this._backdropElement;if(z){if(this._animationsDisabled)return void this._disposeBackdrop(z);z.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{z.addEventListener("transitionend",this._backdropTransitionendHandler)}),z.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(z)},500))}}_toggleClasses(z,De,Le){const Se=(0,u.Eq)(De||[]).filter(Fe=>!!Fe);Se.length&&(Le?z.classList.add(...Se):z.classList.remove(...Se))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const z=this._ngZone.onStable.pipe((0,v.R)((0,d.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),z.unsubscribe())})})}_disposeScrollStrategy(){const z=this._scrollStrategy;z&&(z.disable(),z.detach&&z.detach())}_disposeBackdrop(z){z&&(z.removeEventListener("click",this._backdropClickHandler),z.removeEventListener("transitionend",this._backdropTransitionendHandler),z.remove(),this._backdropElement===z&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let q=(()=>{class Ye{constructor(De,Le){this._platform=Le,this._document=De}ngOnDestroy(){var De;null===(De=this._containerElement)||void 0===De||De.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const De="cdk-overlay-container";if(this._platform.isBrowser||(0,r.Oy)()){const Se=this._document.querySelectorAll(`.${De}[platform="server"], .${De}[platform="test"]`);for(let Fe=0;Fe<Se.length;Fe++)Se[Fe].remove()}const Le=this._document.createElement("div");Le.classList.add(De),(0,r.Oy)()?Le.setAttribute("platform","test"):this._platform.isBrowser||Le.setAttribute("platform","server"),this._document.body.appendChild(Le),this._containerElement=Le}}return Ye.\u0275fac=function(De){return new(De||Ye)(b.\u0275\u0275inject(p.DOCUMENT),b.\u0275\u0275inject(r.t4))},Ye.\u0275prov=b.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})();const B="cdk-overlay-connected-position-bounding-box",ae=/([A-Za-z%]+)$/;class de{constructor(z,De,Le,Se,Fe){this._viewportRuler=De,this._document=Le,this._platform=Se,this._overlayContainer=Fe,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 h.x,this._resizeSubscription=m.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(z)}get positions(){return this._preferredPositions}attach(z){this._validatePositions(),z.hostElement.classList.add(B),this._overlayRef=z,this._boundingBox=z.hostElement,this._pane=z.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const z=this._originRect,De=this._overlayRect,Le=this._viewportRect,Se=this._containerRect,Fe=[];let ge;for(let xe of this._preferredPositions){let ht=this._getOriginPoint(z,Se,xe),Me=this._getOverlayPoint(ht,De,xe),$=this._getOverlayFit(Me,De,Le,xe);if($.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(xe,ht);this._canFitWithFlexibleDimensions($,Me,Le)?Fe.push({position:xe,origin:ht,overlayRect:De,boundingBoxRect:this._calculateBoundingBoxRect(ht,xe)}):(!ge||ge.overlayFit.visibleArea<$.visibleArea)&&(ge={overlayFit:$,overlayPoint:Me,originPoint:ht,position:xe,overlayRect:De})}if(Fe.length){let xe=null,ht=-1;for(const Me of Fe){const $=Me.boundingBoxRect.width*Me.boundingBoxRect.height*(Me.position.weight||1);$>ht&&(ht=$,xe=Me)}return this._isPushed=!1,void this._applyPosition(xe.position,xe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(ge.position,ge.originPoint);this._applyPosition(ge.position,ge.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_e(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(B),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const z=this._lastPosition;if(z){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const De=this._getOriginPoint(this._originRect,this._containerRect,z);this._applyPosition(z,De)}else this.apply()}withScrollableContainers(z){return this._scrollables=z,this}withPositions(z){return this._preferredPositions=z,-1===z.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(z){return this._viewportMargin=z,this}withFlexibleDimensions(z=!0){return this._hasFlexibleDimensions=z,this}withGrowAfterOpen(z=!0){return this._growAfterOpen=z,this}withPush(z=!0){return this._canPush=z,this}withLockedPosition(z=!0){return this._positionLocked=z,this}setOrigin(z){return this._origin=z,this}withDefaultOffsetX(z){return this._offsetX=z,this}withDefaultOffsetY(z){return this._offsetY=z,this}withTransformOriginOn(z){return this._transformOriginSelector=z,this}_getOriginPoint(z,De,Le){let Se,Fe;if("center"==Le.originX)Se=z.left+z.width/2;else{const ge=this._isRtl()?z.right:z.left,xe=this._isRtl()?z.left:z.right;Se="start"==Le.originX?ge:xe}return De.left<0&&(Se-=De.left),Fe="center"==Le.originY?z.top+z.height/2:"top"==Le.originY?z.top:z.bottom,De.top<0&&(Fe-=De.top),{x:Se,y:Fe}}_getOverlayPoint(z,De,Le){let Se,Fe;return Se="center"==Le.overlayX?-De.width/2:"start"===Le.overlayX?this._isRtl()?-De.width:0:this._isRtl()?0:-De.width,Fe="center"==Le.overlayY?-De.height/2:"top"==Le.overlayY?0:-De.height,{x:z.x+Se,y:z.y+Fe}}_getOverlayFit(z,De,Le,Se){const Fe=rt(De);let{x:ge,y:xe}=z,ht=this._getOffset(Se,"x"),Me=this._getOffset(Se,"y");ht&&(ge+=ht),Me&&(xe+=Me);let ce=0-xe,Te=xe+Fe.height-Le.height,He=this._subtractOverflows(Fe.width,0-ge,ge+Fe.width-Le.width),dt=this._subtractOverflows(Fe.height,ce,Te),xt=He*dt;return{visibleArea:xt,isCompletelyWithinViewport:Fe.width*Fe.height===xt,fitsInViewportVertically:dt===Fe.height,fitsInViewportHorizontally:He==Fe.width}}_canFitWithFlexibleDimensions(z,De,Le){if(this._hasFlexibleDimensions){const Se=Le.bottom-De.y,Fe=Le.right-De.x,ge=it(this._overlayRef.getConfig().minHeight),xe=it(this._overlayRef.getConfig().minWidth),Me=z.fitsInViewportHorizontally||null!=xe&&xe<=Fe;return(z.fitsInViewportVertically||null!=ge&&ge<=Se)&&Me}return!1}_pushOverlayOnScreen(z,De,Le){if(this._previousPushAmount&&this._positionLocked)return{x:z.x+this._previousPushAmount.x,y:z.y+this._previousPushAmount.y};const Se=rt(De),Fe=this._viewportRect,ge=Math.max(z.x+Se.width-Fe.width,0),xe=Math.max(z.y+Se.height-Fe.height,0),ht=Math.max(Fe.top-Le.top-z.y,0),Me=Math.max(Fe.left-Le.left-z.x,0);let $=0,ne=0;return $=Se.width<=Fe.width?Me||-ge:z.x<this._viewportMargin?Fe.left-Le.left-z.x:0,ne=Se.height<=Fe.height?ht||-xe:z.y<this._viewportMargin?Fe.top-Le.top-z.y:0,this._previousPushAmount={x:$,y:ne},{x:z.x+$,y:z.y+ne}}_applyPosition(z,De){if(this._setTransformOrigin(z),this._setOverlayElementStyles(De,z),this._setBoundingBoxStyles(De,z),z.panelClass&&this._addPanelClasses(z.panelClass),this._lastPosition=z,this._positionChanges.observers.length){const Le=this._getScrollVisibility(),Se=new me(z,Le);this._positionChanges.next(Se)}this._isInitialRender=!1}_setTransformOrigin(z){if(!this._transformOriginSelector)return;const De=this._boundingBox.querySelectorAll(this._transformOriginSelector);let Le,Se=z.overlayY;Le="center"===z.overlayX?"center":this._isRtl()?"start"===z.overlayX?"right":"left":"start"===z.overlayX?"left":"right";for(let Fe=0;Fe<De.length;Fe++)De[Fe].style.transformOrigin=`${Le} ${Se}`}_calculateBoundingBoxRect(z,De){const Le=this._viewportRect,Se=this._isRtl();let Fe,ge,xe,$,ne,ce;if("top"===De.overlayY)ge=z.y,Fe=Le.height-ge+this._viewportMargin;else if("bottom"===De.overlayY)xe=Le.height-z.y+2*this._viewportMargin,Fe=Le.height-xe+this._viewportMargin;else{const Te=Math.min(Le.bottom-z.y+Le.top,z.y),He=this._lastBoundingBoxSize.height;Fe=2*Te,ge=z.y-Te,Fe>He&&!this._isInitialRender&&!this._growAfterOpen&&(ge=z.y-He/2)}if("end"===De.overlayX&&!Se||"start"===De.overlayX&&Se)ce=Le.width-z.x+this._viewportMargin,$=z.x-this._viewportMargin;else if("start"===De.overlayX&&!Se||"end"===De.overlayX&&Se)ne=z.x,$=Le.right-z.x;else{const Te=Math.min(Le.right-z.x+Le.left,z.x),He=this._lastBoundingBoxSize.width;$=2*Te,ne=z.x-Te,$>He&&!this._isInitialRender&&!this._growAfterOpen&&(ne=z.x-He/2)}return{top:ge,left:ne,bottom:xe,right:ce,width:$,height:Fe}}_setBoundingBoxStyles(z,De){const Le=this._calculateBoundingBoxRect(z,De);!this._isInitialRender&&!this._growAfterOpen&&(Le.height=Math.min(Le.height,this._lastBoundingBoxSize.height),Le.width=Math.min(Le.width,this._lastBoundingBoxSize.width));const Se={};if(this._hasExactPosition())Se.top=Se.left="0",Se.bottom=Se.right=Se.maxHeight=Se.maxWidth="",Se.width=Se.height="100%";else{const Fe=this._overlayRef.getConfig().maxHeight,ge=this._overlayRef.getConfig().maxWidth;Se.height=(0,u.HM)(Le.height),Se.top=(0,u.HM)(Le.top),Se.bottom=(0,u.HM)(Le.bottom),Se.width=(0,u.HM)(Le.width),Se.left=(0,u.HM)(Le.left),Se.right=(0,u.HM)(Le.right),Se.alignItems="center"===De.overlayX?"center":"end"===De.overlayX?"flex-end":"flex-start",Se.justifyContent="center"===De.overlayY?"center":"bottom"===De.overlayY?"flex-end":"flex-start",Fe&&(Se.maxHeight=(0,u.HM)(Fe)),ge&&(Se.maxWidth=(0,u.HM)(ge))}this._lastBoundingBoxSize=Le,_e(this._boundingBox.style,Se)}_resetBoundingBoxStyles(){_e(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_e(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(z,De){const Le={},Se=this._hasExactPosition(),Fe=this._hasFlexibleDimensions,ge=this._overlayRef.getConfig();if(Se){const $=this._viewportRuler.getViewportScrollPosition();_e(Le,this._getExactOverlayY(De,z,$)),_e(Le,this._getExactOverlayX(De,z,$))}else Le.position="static";let xe="",ht=this._getOffset(De,"x"),Me=this._getOffset(De,"y");ht&&(xe+=`translateX(${ht}px) `),Me&&(xe+=`translateY(${Me}px)`),Le.transform=xe.trim(),ge.maxHeight&&(Se?Le.maxHeight=(0,u.HM)(ge.maxHeight):Fe&&(Le.maxHeight="")),ge.maxWidth&&(Se?Le.maxWidth=(0,u.HM)(ge.maxWidth):Fe&&(Le.maxWidth="")),_e(this._pane.style,Le)}_getExactOverlayY(z,De,Le){let Se={top:"",bottom:""},Fe=this._getOverlayPoint(De,this._overlayRect,z);return this._isPushed&&(Fe=this._pushOverlayOnScreen(Fe,this._overlayRect,Le)),"bottom"===z.overlayY?Se.bottom=this._document.documentElement.clientHeight-(Fe.y+this._overlayRect.height)+"px":Se.top=(0,u.HM)(Fe.y),Se}_getExactOverlayX(z,De,Le){let ge,Se={left:"",right:""},Fe=this._getOverlayPoint(De,this._overlayRect,z);return this._isPushed&&(Fe=this._pushOverlayOnScreen(Fe,this._overlayRect,Le)),ge=this._isRtl()?"end"===z.overlayX?"left":"right":"end"===z.overlayX?"right":"left","right"===ge?Se.right=this._document.documentElement.clientWidth-(Fe.x+this._overlayRect.width)+"px":Se.left=(0,u.HM)(Fe.x),Se}_getScrollVisibility(){const z=this._getOriginRect(),De=this._pane.getBoundingClientRect(),Le=this._scrollables.map(Se=>Se.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Y(z,Le),isOriginOutsideView:j(z,Le),isOverlayClipped:Y(De,Le),isOverlayOutsideView:j(De,Le)}}_subtractOverflows(z,...De){return De.reduce((Le,Se)=>Le-Math.max(Se,0),z)}_getNarrowedViewportRect(){const z=this._document.documentElement.clientWidth,De=this._document.documentElement.clientHeight,Le=this._viewportRuler.getViewportScrollPosition();return{top:Le.top+this._viewportMargin,left:Le.left+this._viewportMargin,right:Le.left+z-this._viewportMargin,bottom:Le.top+De-this._viewportMargin,width:z-2*this._viewportMargin,height:De-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(z,De){return"x"===De?null==z.offsetX?this._offsetX:z.offsetX:null==z.offsetY?this._offsetY:z.offsetY}_validatePositions(){}_addPanelClasses(z){this._pane&&(0,u.Eq)(z).forEach(De=>{""!==De&&-1===this._appliedPanelClasses.indexOf(De)&&(this._appliedPanelClasses.push(De),this._pane.classList.add(De))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(z=>{this._pane.classList.remove(z)}),this._appliedPanelClasses=[])}_getOriginRect(){const z=this._origin;if(z instanceof b.ElementRef)return z.nativeElement.getBoundingClientRect();if(z instanceof Element)return z.getBoundingClientRect();const De=z.width||0,Le=z.height||0;return{top:z.y,bottom:z.y+Le,left:z.x,right:z.x+De,height:Le,width:De}}}function _e(Ye,z){for(let De in z)z.hasOwnProperty(De)&&(Ye[De]=z[De]);return Ye}function it(Ye){if("number"!=typeof Ye&&null!=Ye){const[z,De]=Ye.split(ae);return De&&"px"!==De?null:parseFloat(z)}return Ye||null}function rt(Ye){return{top:Math.floor(Ye.top),right:Math.floor(Ye.right),bottom:Math.floor(Ye.bottom),left:Math.floor(Ye.left),width:Math.floor(Ye.width),height:Math.floor(Ye.height)}}const ft="cdk-global-overlay-wrapper";class wt{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(z){const De=z.getConfig();this._overlayRef=z,this._width&&!De.width&&z.updateSize({width:this._width}),this._height&&!De.height&&z.updateSize({height:this._height}),z.hostElement.classList.add(ft),this._isDisposed=!1}top(z=""){return this._bottomOffset="",this._topOffset=z,this._alignItems="flex-start",this}left(z=""){return this._xOffset=z,this._xPosition="left",this}bottom(z=""){return this._topOffset="",this._bottomOffset=z,this._alignItems="flex-end",this}right(z=""){return this._xOffset=z,this._xPosition="right",this}start(z=""){return this._xOffset=z,this._xPosition="start",this}end(z=""){return this._xOffset=z,this._xPosition="end",this}width(z=""){return this._overlayRef?this._overlayRef.updateSize({width:z}):this._width=z,this}height(z=""){return this._overlayRef?this._overlayRef.updateSize({height:z}):this._height=z,this}centerHorizontally(z=""){return this.left(z),this._xPosition="center",this}centerVertically(z=""){return this.top(z),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const z=this._overlayRef.overlayElement.style,De=this._overlayRef.hostElement.style,Le=this._overlayRef.getConfig(),{width:Se,height:Fe,maxWidth:ge,maxHeight:xe}=Le,ht=!("100%"!==Se&&"100vw"!==Se||ge&&"100%"!==ge&&"100vw"!==ge),Me=!("100%"!==Fe&&"100vh"!==Fe||xe&&"100%"!==xe&&"100vh"!==xe),$=this._xPosition,ne=this._xOffset,ce="rtl"===this._overlayRef.getConfig().direction;let Te="",He="",dt="";ht?dt="flex-start":"center"===$?(dt="center",ce?He=ne:Te=ne):ce?"left"===$||"end"===$?(dt="flex-end",Te=ne):("right"===$||"start"===$)&&(dt="flex-start",He=ne):"left"===$||"start"===$?(dt="flex-start",Te=ne):("right"===$||"end"===$)&&(dt="flex-end",He=ne),z.position=this._cssPosition,z.marginLeft=ht?"0":Te,z.marginTop=Me?"0":this._topOffset,z.marginBottom=this._bottomOffset,z.marginRight=ht?"0":He,De.justifyContent=dt,De.alignItems=Me?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const z=this._overlayRef.overlayElement.style,De=this._overlayRef.hostElement,Le=De.style;De.classList.remove(ft),Le.justifyContent=Le.alignItems=z.marginTop=z.marginBottom=z.marginLeft=z.marginRight=z.position="",this._overlayRef=null,this._isDisposed=!0}}let et=(()=>{class Ye{constructor(De,Le,Se,Fe){this._viewportRuler=De,this._document=Le,this._platform=Se,this._overlayContainer=Fe}global(){return new wt}flexibleConnectedTo(De){return new de(De,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ye.\u0275fac=function(De){return new(De||Ye)(b.\u0275\u0275inject(n.rL),b.\u0275\u0275inject(p.DOCUMENT),b.\u0275\u0275inject(r.t4),b.\u0275\u0275inject(q))},Ye.\u0275prov=b.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),at=(()=>{class Ye{constructor(De){this._attachedOverlays=[],this._document=De}ngOnDestroy(){this.detach()}add(De){this.remove(De),this._attachedOverlays.push(De)}remove(De){const Le=this._attachedOverlays.indexOf(De);Le>-1&&this._attachedOverlays.splice(Le,1),0===this._attachedOverlays.length&&this.detach()}}return Ye.\u0275fac=function(De){return new(De||Ye)(b.\u0275\u0275inject(p.DOCUMENT))},Ye.\u0275prov=b.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),Ke=(()=>{class Ye extends at{constructor(De,Le){super(De),this._ngZone=Le,this._keydownListener=Se=>{const Fe=this._attachedOverlays;for(let ge=Fe.length-1;ge>-1;ge--)if(Fe[ge]._keydownEvents.observers.length>0){const xe=Fe[ge]._keydownEvents;this._ngZone?this._ngZone.run(()=>xe.next(Se)):xe.next(Se);break}}}add(De){super.add(De),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Ye.\u0275fac=function(De){return new(De||Ye)(b.\u0275\u0275inject(p.DOCUMENT),b.\u0275\u0275inject(b.NgZone,8))},Ye.\u0275prov=b.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),nt=(()=>{class Ye extends at{constructor(De,Le,Se){super(De),this._platform=Le,this._ngZone=Se,this._cursorStyleIsSet=!1,this._pointerDownListener=Fe=>{this._pointerDownEventTarget=(0,r.sA)(Fe)},this._clickListener=Fe=>{const ge=(0,r.sA)(Fe),xe="click"===Fe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:ge;this._pointerDownEventTarget=null;const ht=this._attachedOverlays.slice();for(let Me=ht.length-1;Me>-1;Me--){const $=ht[Me];if($._outsidePointerEvents.observers.length<1||!$.hasAttached())continue;if($.overlayElement.contains(ge)||$.overlayElement.contains(xe))break;const ne=$._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>ne.next(Fe)):ne.next(Fe)}}}add(De){if(super.add(De),!this._isAttached){const Le=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Le)):this._addEventListeners(Le),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Le.style.cursor,Le.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const De=this._document.body;De.removeEventListener("pointerdown",this._pointerDownListener,!0),De.removeEventListener("click",this._clickListener,!0),De.removeEventListener("auxclick",this._clickListener,!0),De.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(De.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(De){De.addEventListener("pointerdown",this._pointerDownListener,!0),De.addEventListener("click",this._clickListener,!0),De.addEventListener("auxclick",this._clickListener,!0),De.addEventListener("contextmenu",this._clickListener,!0)}}return Ye.\u0275fac=function(De){return new(De||Ye)(b.\u0275\u0275inject(p.DOCUMENT),b.\u0275\u0275inject(r.t4),b.\u0275\u0275inject(b.NgZone,8))},Ye.\u0275prov=b.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),Tt=0,Ct=(()=>{class Ye{constructor(De,Le,Se,Fe,ge,xe,ht,Me,$,ne,ce,Te){this.scrollStrategies=De,this._overlayContainer=Le,this._componentFactoryResolver=Se,this._positionBuilder=Fe,this._keyboardDispatcher=ge,this._injector=xe,this._ngZone=ht,this._document=Me,this._directionality=$,this._location=ne,this._outsideClickDispatcher=ce,this._animationsModuleType=Te}create(De){const Le=this._createHostElement(),Se=this._createPaneElement(Le),Fe=this._createPortalOutlet(Se),ge=new V(De);return ge.direction=ge.direction||this._directionality.value,new G(Fe,Le,Se,ge,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(De){const Le=this._document.createElement("div");return Le.id="cdk-overlay-"+Tt++,Le.classList.add("cdk-overlay-pane"),De.appendChild(Le),Le}_createHostElement(){const De=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(De),De}_createPortalOutlet(De){return this._appRef||(this._appRef=this._injector.get(b.ApplicationRef)),new f.u0(De,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ye.\u0275fac=function(De){return new(De||Ye)(b.\u0275\u0275inject(Q),b.\u0275\u0275inject(q),b.\u0275\u0275inject(b.ComponentFactoryResolver),b.\u0275\u0275inject(et),b.\u0275\u0275inject(Ke),b.\u0275\u0275inject(b.Injector),b.\u0275\u0275inject(b.NgZone),b.\u0275\u0275inject(p.DOCUMENT),b.\u0275\u0275inject(c.Is),b.\u0275\u0275inject(p.Location),b.\u0275\u0275inject(nt),b.\u0275\u0275inject(b.ANIMATION_MODULE_TYPE,8))},Ye.\u0275prov=b.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac}),Ye})();const pe={provide:new b.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[Ct],useFactory:function je(Ye){return()=>Ye.scrollStrategies.reposition()}};let We=(()=>{class Ye{}return Ye.\u0275fac=function(De){return new(De||Ye)},Ye.\u0275mod=b.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=b.\u0275\u0275defineInjector({providers:[Ct,pe],imports:[c.vT,f.eL,n.Cl,n.Cl]}),Ye})()},925:(H,o,a)=>{"use strict";a.d(o,{Mq:()=>E,Oy:()=>Q,ht:()=>Y,i$:()=>_,kV:()=>j,sA:()=>U,t4:()=>u});var n=a(5e3),p=a(9808);let b;try{b="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(V){b=!1}let m,y,A,u=(()=>{class V{constructor(re){this._platformId=re,this.isBrowser=this._platformId?(0,p.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&&!b)&&"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 V.\u0275fac=function(re){return new(re||V)(n.\u0275\u0275inject(n.PLATFORM_ID))},V.\u0275prov=n.\u0275\u0275defineInjectable({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();function _(V){return function d(){if(null==m&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>m=!0}))}finally{m=m||!1}return m}()?V:!!V.capture}function E(){if(null==y){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return y=!1,y;if("scrollBehavior"in document.documentElement.style)y=!0;else{const V=Element.prototype.scrollTo;y=!!V&&!/\{\s*\[native code\]\s*\}/.test(V.toString())}}return y}function j(V){if(function k(){if(null==A){const V="undefined"!=typeof document?document.head:null;A=!(!V||!V.createShadowRoot&&!V.attachShadow)}return A}()){const X=V.getRootNode?V.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&X instanceof ShadowRoot)return X}return null}function Y(){let V="undefined"!=typeof document&&document?document.activeElement:null;for(;V&&V.shadowRoot;){const X=V.shadowRoot.activeElement;if(X===V)break;V=X}return V}function U(V){return V.composedPath?V.composedPath()[0]:V.target}function Q(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(H,o,a)=>{"use strict";a.d(o,{C5:()=>d,Pl:()=>Y,UE:()=>_,eL:()=>Q,en:()=>y,ig:()=>k,u0:()=>M});var n=a(5e3),p=a(9808);class m{attach(re){return this._attachedHost=re,re.attach(this)}detach(){let re=this._attachedHost;null!=re&&(this._attachedHost=null,re.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(re){this._attachedHost=re}}class d extends m{constructor(re,me,we,tt){super(),this.component=re,this.viewContainerRef=me,this.injector=we,this.componentFactoryResolver=tt}}class _ extends m{constructor(re,me,we,tt){super(),this.templateRef=re,this.viewContainerRef=me,this.context=we,this.injector=tt}get origin(){return this.templateRef.elementRef}attach(re,me=this.context){return this.context=me,super.attach(re)}detach(){return this.context=void 0,super.detach()}}class v extends m{constructor(re){super(),this.element=re instanceof n.ElementRef?re.nativeElement:re}}class y{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(re){return re instanceof d?(this._attachedPortal=re,this.attachComponentPortal(re)):re instanceof _?(this._attachedPortal=re,this.attachTemplatePortal(re)):this.attachDomPortal&&re instanceof v?(this._attachedPortal=re,this.attachDomPortal(re)):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(re){this._disposeFn=re}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class M extends y{constructor(re,me,we,tt,G){super(),this.outletElement=re,this._componentFactoryResolver=me,this._appRef=we,this._defaultInjector=tt,this.attachDomPortal=q=>{const B=q.element,ae=this._document.createComment("dom-portal");B.parentNode.insertBefore(ae,B),this.outletElement.appendChild(B),this._attachedPortal=q,super.setDisposeFn(()=>{ae.parentNode&&ae.parentNode.replaceChild(B,ae)})},this._document=G}attachComponentPortal(re){const we=(re.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(re.component);let tt;return re.viewContainerRef?(tt=re.viewContainerRef.createComponent(we,re.viewContainerRef.length,re.injector||re.viewContainerRef.injector),this.setDisposeFn(()=>tt.destroy())):(tt=we.create(re.injector||this._defaultInjector||n.Injector.NULL),this._appRef.attachView(tt.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(tt.hostView),tt.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(tt)),this._attachedPortal=re,tt}attachTemplatePortal(re){let me=re.viewContainerRef,we=me.createEmbeddedView(re.templateRef,re.context,{injector:re.injector});return we.rootNodes.forEach(tt=>this.outletElement.appendChild(tt)),we.detectChanges(),this.setDisposeFn(()=>{let tt=me.indexOf(we);-1!==tt&&me.remove(tt)}),this._attachedPortal=re,we}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(re){return re.hostView.rootNodes[0]}}let k=(()=>{class X extends _{constructor(me,we){super(me,we)}}return X.\u0275fac=function(me){return new(me||X)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.\u0275\u0275InheritDefinitionFeature]}),X})(),Y=(()=>{class X extends y{constructor(me,we,tt){super(),this._componentFactoryResolver=me,this._viewContainerRef=we,this._isInitialized=!1,this.attached=new n.EventEmitter,this.attachDomPortal=G=>{const q=G.element,B=this._document.createComment("dom-portal");G.setAttachedHost(this),q.parentNode.insertBefore(B,q),this._getRootNode().appendChild(q),this._attachedPortal=G,super.setDisposeFn(()=>{B.parentNode&&B.parentNode.replaceChild(q,B)})},this._document=tt}get portal(){return this._attachedPortal}set portal(me){this.hasAttached()&&!me&&!this._isInitialized||(this.hasAttached()&&super.detach(),me&&super.attach(me),this._attachedPortal=me||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(me){me.setAttachedHost(this);const we=null!=me.viewContainerRef?me.viewContainerRef:this._viewContainerRef,G=(me.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(me.component),q=we.createComponent(G,we.length,me.injector||we.injector);return we!==this._viewContainerRef&&this._getRootNode().appendChild(q.hostView.rootNodes[0]),super.setDisposeFn(()=>q.destroy()),this._attachedPortal=me,this._attachedRef=q,this.attached.emit(q),q}attachTemplatePortal(me){me.setAttachedHost(this);const we=this._viewContainerRef.createEmbeddedView(me.templateRef,me.context,{injector:me.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=me,this._attachedRef=we,this.attached.emit(we),we}_getRootNode(){const me=this._viewContainerRef.element.nativeElement;return me.nodeType===me.ELEMENT_NODE?me:me.parentNode}}return X.\u0275fac=function(me){return new(me||X)(n.\u0275\u0275directiveInject(n.ComponentFactoryResolver),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(p.DOCUMENT))},X.\u0275dir=n.\u0275\u0275defineDirective({type:X,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.\u0275\u0275InheritDefinitionFeature]}),X})(),Q=(()=>{class X{}return X.\u0275fac=function(me){return new(me||X)},X.\u0275mod=n.\u0275\u0275defineNgModule({type:X}),X.\u0275inj=n.\u0275\u0275defineInjector({}),X})()},495:(H,o,a)=>{"use strict";a.d(o,{ZD:()=>It,mF:()=>it,Cl:()=>ze,rL:()=>wt});var n=a(3191),p=a(5e3),b=a(4408),u=a(727);const r={schedule(Ae){let je=requestAnimationFrame,pe=cancelAnimationFrame;const{delegate:We}=r;We&&(je=We.requestAnimationFrame,pe=We.cancelAnimationFrame);const Ie=je(Ye=>{pe=void 0,Ae(Ye)});return new u.w0(()=>null==pe?void 0:pe(Ie))},requestAnimationFrame(...Ae){const{delegate:je}=r;return((null==je?void 0:je.requestAnimationFrame)||requestAnimationFrame)(...Ae)},cancelAnimationFrame(...Ae){const{delegate:je}=r;return((null==je?void 0:je.cancelAnimationFrame)||cancelAnimationFrame)(...Ae)},delegate:void 0};var f=a(640);new class h extends f.v{flush(je){this._active=!0;const pe=this._scheduled;this._scheduled=void 0;const{actions:We}=this;let Ie;je=je||We.shift();do{if(Ie=je.execute(je.state,je.delay))break}while((je=We[0])&&je.id===pe&&We.shift());if(this._active=!1,Ie){for(;(je=We[0])&&je.id===pe&&We.shift();)je.unsubscribe();throw Ie}}}(class c extends b.o{constructor(je,pe){super(je,pe),this.scheduler=je,this.work=pe}requestAsyncId(je,pe,We=0){return null!==We&&We>0?super.requestAsyncId(je,pe,We):(je.actions.push(this),je._scheduled||(je._scheduled=r.requestAnimationFrame(()=>je.flush(void 0))))}recycleAsyncId(je,pe,We=0){if(null!=We&&We>0||null==We&&this.delay>0)return super.recycleAsyncId(je,pe,We);je.actions.some(Ie=>Ie.id===pe)||(r.cancelAnimationFrame(pe),je._scheduled=void 0)}});var _=a(7579),v=a(9646),y=a(8306),E=a(4968),A=(a(3101),a(4986)),k=a(4482),j=a(8421),Y=a(5403),Q=a(5963);function V(Ae,je=A.z){return function U(Ae){return(0,k.e)((je,pe)=>{let We=!1,Ie=null,Ye=null,z=!1;const De=()=>{if(null==Ye||Ye.unsubscribe(),Ye=null,We){We=!1;const Se=Ie;Ie=null,pe.next(Se)}z&&pe.complete()},Le=()=>{Ye=null,z&&pe.complete()};je.subscribe((0,Y.x)(pe,Se=>{We=!0,Ie=Se,Ye||(0,j.Xf)(Ae(Se)).subscribe(Ye=(0,Y.x)(pe,De,Le))},()=>{z=!0,(!We||!Ye||Ye.closed)&&pe.complete()}))})}(()=>(0,Q.H)(Ae,je))}var X=a(9300),re=a(9808),me=a(925),we=a(226);let it=(()=>{class Ae{constructor(pe,We,Ie){this._ngZone=pe,this._platform=We,this._scrolled=new _.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ie}register(pe){this.scrollContainers.has(pe)||this.scrollContainers.set(pe,pe.elementScrolled().subscribe(()=>this._scrolled.next(pe)))}deregister(pe){const We=this.scrollContainers.get(pe);We&&(We.unsubscribe(),this.scrollContainers.delete(pe))}scrolled(pe=20){return this._platform.isBrowser?new y.y(We=>{this._globalSubscription||this._addGlobalListener();const Ie=pe>0?this._scrolled.pipe(V(pe)).subscribe(We):this._scrolled.subscribe(We);return this._scrolledCount++,()=>{Ie.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,v.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((pe,We)=>this.deregister(We)),this._scrolled.complete()}ancestorScrolled(pe,We){const Ie=this.getAncestorScrollContainers(pe);return this.scrolled(We).pipe((0,X.h)(Ye=>!Ye||Ie.indexOf(Ye)>-1))}getAncestorScrollContainers(pe){const We=[];return this.scrollContainers.forEach((Ie,Ye)=>{this._scrollableContainsElement(Ye,pe)&&We.push(Ye)}),We}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(pe,We){let Ie=(0,n.fI)(We),Ye=pe.getElementRef().nativeElement;do{if(Ie==Ye)return!0}while(Ie=Ie.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const pe=this._getWindow();return(0,E.R)(pe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Ae.\u0275fac=function(pe){return new(pe||Ae)(p.\u0275\u0275inject(p.NgZone),p.\u0275\u0275inject(me.t4),p.\u0275\u0275inject(re.DOCUMENT,8))},Ae.\u0275prov=p.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),wt=(()=>{class Ae{constructor(pe,We,Ie){this._platform=pe,this._change=new _.x,this._changeListener=Ye=>{this._change.next(Ye)},this._document=Ie,We.runOutsideAngular(()=>{if(pe.isBrowser){const Ye=this._getWindow();Ye.addEventListener("resize",this._changeListener),Ye.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const pe=this._getWindow();pe.removeEventListener("resize",this._changeListener),pe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const pe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),pe}getViewportRect(){const pe=this.getViewportScrollPosition(),{width:We,height:Ie}=this.getViewportSize();return{top:pe.top,left:pe.left,bottom:pe.top+Ie,right:pe.left+We,height:Ie,width:We}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const pe=this._document,We=this._getWindow(),Ie=pe.documentElement,Ye=Ie.getBoundingClientRect();return{top:-Ye.top||pe.body.scrollTop||We.scrollY||Ie.scrollTop||0,left:-Ye.left||pe.body.scrollLeft||We.scrollX||Ie.scrollLeft||0}}change(pe=20){return pe>0?this._change.pipe(V(pe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const pe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:pe.innerWidth,height:pe.innerHeight}:{width:0,height:0}}}return Ae.\u0275fac=function(pe){return new(pe||Ae)(p.\u0275\u0275inject(me.t4),p.\u0275\u0275inject(p.NgZone),p.\u0275\u0275inject(re.DOCUMENT,8))},Ae.\u0275prov=p.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),It=(()=>{class Ae{}return Ae.\u0275fac=function(pe){return new(pe||Ae)},Ae.\u0275mod=p.\u0275\u0275defineNgModule({type:Ae}),Ae.\u0275inj=p.\u0275\u0275defineInjector({}),Ae})(),ze=(()=>{class Ae{}return Ae.\u0275fac=function(pe){return new(pe||Ae)},Ae.\u0275mod=p.\u0275\u0275defineNgModule({type:Ae}),Ae.\u0275inj=p.\u0275\u0275defineInjector({imports:[we.vT,It,we.vT,It]}),Ae})()},9808:(H,o,a)=>{"use strict";a.r(o),a.d(o,{APP_BASE_HREF:()=>Y,AsyncPipe:()=>Fr,CommonModule:()=>yr,CurrencyPipe:()=>gr,DATE_PIPE_DEFAULT_TIMEZONE:()=>zr,DOCUMENT:()=>f,DatePipe:()=>Di,DecimalPipe:()=>qi,FormStyle:()=>q,FormatWidth:()=>ae,HashLocationStrategy:()=>Q,I18nPluralPipe:()=>Ai,I18nSelectPipe:()=>Ji,JsonPipe:()=>Pi,KeyValuePipe:()=>Xi,LOCATION_INITIALIZED:()=>d,Location:()=>V,LocationStrategy:()=>k,LowerCasePipe:()=>Ui,NgClass:()=>hn,NgComponentOutlet:()=>gn,NgForOf:()=>Jt,NgForOfContext:()=>ni,NgIf:()=>In,NgIfContext:()=>Wn,NgLocaleLocalization:()=>Yt,NgLocalization:()=>Dt,NgPlural:()=>Vi,NgPluralCase:()=>$i,NgStyle:()=>hr,NgSwitch:()=>Zn,NgSwitchCase:()=>Hn,NgSwitchDefault:()=>Ci,NgTemplateOutlet:()=>Rr,NumberFormatStyle:()=>tt,NumberSymbol:()=>de,PathLocationStrategy:()=>U,PercentPipe:()=>er,PlatformLocation:()=>h,Plural:()=>G,SlicePipe:()=>vr,TitleCasePipe:()=>Ur,TranslationWidth:()=>B,UpperCasePipe:()=>Oi,VERSION:()=>jn,ViewportScroller:()=>Bn,WeekDay:()=>_e,XhrFactory:()=>Gn,formatCurrency:()=>dn,formatDate:()=>ce,formatNumber:()=>_n,formatPercent:()=>On,getCurrencySymbol:()=>Le,getLocaleCurrencyCode:()=>ze,getLocaleCurrencyName:()=>It,getLocaleCurrencySymbol:()=>st,getLocaleDateFormat:()=>at,getLocaleDateTimeFormat:()=>nt,getLocaleDayNames:()=>yt,getLocaleDayPeriods:()=>rt,getLocaleDirection:()=>Ye,getLocaleEraNames:()=>ft,getLocaleExtraDayPeriodRules:()=>We,getLocaleExtraDayPeriods:()=>Ie,getLocaleFirstDayOfWeek:()=>wt,getLocaleId:()=>it,getLocaleMonthNames:()=>Oe,getLocaleNumberFormat:()=>Ct,getLocaleNumberSymbol:()=>Tt,getLocalePluralCase:()=>je,getLocaleTimeFormat:()=>Ke,getLocaleWeekEndRange:()=>et,getNumberOfCurrencyDigits:()=>Fe,isPlatformBrowser:()=>_r,isPlatformServer:()=>wi,isPlatformWorkerApp:()=>wn,isPlatformWorkerUi:()=>li,registerLocaleData:()=>Qt,\u0275BrowserPlatformLocation:()=>_,\u0275DomAdapter:()=>c,\u0275NullViewportScroller:()=>Mi,\u0275PLATFORM_BROWSER_ID:()=>Xn,\u0275PLATFORM_SERVER_ID:()=>ai,\u0275PLATFORM_WORKER_APP_ID:()=>nr,\u0275PLATFORM_WORKER_UI_ID:()=>Ri,\u0275getDOM:()=>b,\u0275parseCookieValue:()=>ln,\u0275setRootDomAdapter:()=>r});var n=a(5e3);let p=null;function b(){return p}function r(R){p||(p=R)}class c{}const f=new n.InjectionToken("DocumentToken");let h=(()=>{class R{historyGo(x){throw new Error("Not implemented")}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=n.\u0275\u0275defineInjectable({token:R,factory:function(){return function m(){return(0,n.\u0275\u0275inject)(_)}()},providedIn:"platform"}),R})();const d=new n.InjectionToken("Location Initialized");let _=(()=>{class R extends h{constructor(x){super(),this._doc=x,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return b().getBaseHref(this._doc)}onPopState(x){const le=b().getGlobalEventTarget(this._doc,"window");return le.addEventListener("popstate",x,!1),()=>le.removeEventListener("popstate",x)}onHashChange(x){const le=b().getGlobalEventTarget(this._doc,"window");return le.addEventListener("hashchange",x,!1),()=>le.removeEventListener("hashchange",x)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(x){this.location.pathname=x}pushState(x,le,Be){v()?this._history.pushState(x,le,Be):this.location.hash=Be}replaceState(x,le,Be){v()?this._history.replaceState(x,le,Be):this.location.hash=Be}forward(){this._history.forward()}back(){this._history.back()}historyGo(x=0){this._history.go(x)}getState(){return this._history.state}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275inject(f))},R.\u0275prov=n.\u0275\u0275defineInjectable({token:R,factory:function(){return function y(){return new _((0,n.\u0275\u0275inject)(f))}()},providedIn:"platform"}),R})();function v(){return!!window.history.pushState}function E(R,ie){if(0==R.length)return ie;if(0==ie.length)return R;let x=0;return R.endsWith("/")&&x++,ie.startsWith("/")&&x++,2==x?R+ie.substring(1):1==x?R+ie:R+"/"+ie}function M(R){const ie=R.match(/#|\?|$/),x=ie&&ie.index||R.length;return R.slice(0,x-("/"===R[x-1]?1:0))+R.slice(x)}function A(R){return R&&"?"!==R[0]?"?"+R:R}let k=(()=>{class R{historyGo(x){throw new Error("Not implemented")}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=n.\u0275\u0275defineInjectable({token:R,factory:function(){return function j(){const R=(0,n.\u0275\u0275inject)(f).location;return new U((0,n.\u0275\u0275inject)(h),R&&R.origin||"")}()},providedIn:"root"}),R})();const Y=new n.InjectionToken("appBaseHref");let U=(()=>{class R extends k{constructor(x,le){if(super(),this._platformLocation=x,this._removeListenerFns=[],null==le&&(le=this._platformLocation.getBaseHrefFromDOM()),null==le)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=le}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(x){this._removeListenerFns.push(this._platformLocation.onPopState(x),this._platformLocation.onHashChange(x))}getBaseHref(){return this._baseHref}prepareExternalUrl(x){return E(this._baseHref,x)}path(x=!1){const le=this._platformLocation.pathname+A(this._platformLocation.search),Be=this._platformLocation.hash;return Be&&x?`${le}${Be}`:le}pushState(x,le,Be,bt){const ut=this.prepareExternalUrl(Be+A(bt));this._platformLocation.pushState(x,le,ut)}replaceState(x,le,Be,bt){const ut=this.prepareExternalUrl(Be+A(bt));this._platformLocation.replaceState(x,le,ut)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(x=0){var le,Be;null===(Be=(le=this._platformLocation).historyGo)||void 0===Be||Be.call(le,x)}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275inject(h),n.\u0275\u0275inject(Y,8))},R.\u0275prov=n.\u0275\u0275defineInjectable({token:R,factory:R.\u0275fac}),R})(),Q=(()=>{class R extends k{constructor(x,le){super(),this._platformLocation=x,this._baseHref="",this._removeListenerFns=[],null!=le&&(this._baseHref=le)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(x){this._removeListenerFns.push(this._platformLocation.onPopState(x),this._platformLocation.onHashChange(x))}getBaseHref(){return this._baseHref}path(x=!1){let le=this._platformLocation.hash;return null==le&&(le="#"),le.length>0?le.substring(1):le}prepareExternalUrl(x){const le=E(this._baseHref,x);return le.length>0?"#"+le:le}pushState(x,le,Be,bt){let ut=this.prepareExternalUrl(Be+A(bt));0==ut.length&&(ut=this._platformLocation.pathname),this._platformLocation.pushState(x,le,ut)}replaceState(x,le,Be,bt){let ut=this.prepareExternalUrl(Be+A(bt));0==ut.length&&(ut=this._platformLocation.pathname),this._platformLocation.replaceState(x,le,ut)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(x=0){var le,Be;null===(Be=(le=this._platformLocation).historyGo)||void 0===Be||Be.call(le,x)}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275inject(h),n.\u0275\u0275inject(Y,8))},R.\u0275prov=n.\u0275\u0275defineInjectable({token:R,factory:R.\u0275fac}),R})(),V=(()=>{class R{constructor(x){this._subject=new n.EventEmitter,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=x;const le=this._locationStrategy.getBaseHref();this._baseHref=M(me(le)),this._locationStrategy.onPopState(Be=>{this._subject.emit({url:this.path(!0),pop:!0,state:Be.state,type:Be.type})})}ngOnDestroy(){var x;null===(x=this._urlChangeSubscription)||void 0===x||x.unsubscribe(),this._urlChangeListeners=[]}path(x=!1){return this.normalize(this._locationStrategy.path(x))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(x,le=""){return this.path()==this.normalize(x+A(le))}normalize(x){return R.stripTrailingSlash(function re(R,ie){return R&&ie.startsWith(R)?ie.substring(R.length):ie}(this._baseHref,me(x)))}prepareExternalUrl(x){return x&&"/"!==x[0]&&(x="/"+x),this._locationStrategy.prepareExternalUrl(x)}go(x,le="",Be=null){this._locationStrategy.pushState(Be,"",x,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(x+A(le)),Be)}replaceState(x,le="",Be=null){this._locationStrategy.replaceState(Be,"",x,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(x+A(le)),Be)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(x=0){var le,Be;null===(Be=(le=this._locationStrategy).historyGo)||void 0===Be||Be.call(le,x)}onUrlChange(x){return this._urlChangeListeners.push(x),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(le=>{this._notifyUrlChangeListeners(le.url,le.state)})),()=>{var le;const Be=this._urlChangeListeners.indexOf(x);this._urlChangeListeners.splice(Be,1),0===this._urlChangeListeners.length&&(null===(le=this._urlChangeSubscription)||void 0===le||le.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(x="",le){this._urlChangeListeners.forEach(Be=>Be(x,le))}subscribe(x,le,Be){return this._subject.subscribe({next:x,error:le,complete:Be})}}return R.normalizeQueryParams=A,R.joinWithSlash=E,R.stripTrailingSlash=M,R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275inject(k))},R.\u0275prov=n.\u0275\u0275defineInjectable({token:R,factory:function(){return function X(){return new V((0,n.\u0275\u0275inject)(k))}()},providedIn:"root"}),R})();function me(R){return R.replace(/\/index.html$/,"")}const we={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var tt=(()=>((tt=tt||{})[tt.Decimal=0]="Decimal",tt[tt.Percent=1]="Percent",tt[tt.Currency=2]="Currency",tt[tt.Scientific=3]="Scientific",tt))(),G=(()=>((G=G||{})[G.Zero=0]="Zero",G[G.One=1]="One",G[G.Two=2]="Two",G[G.Few=3]="Few",G[G.Many=4]="Many",G[G.Other=5]="Other",G))(),q=(()=>((q=q||{})[q.Format=0]="Format",q[q.Standalone=1]="Standalone",q))(),B=(()=>((B=B||{})[B.Narrow=0]="Narrow",B[B.Abbreviated=1]="Abbreviated",B[B.Wide=2]="Wide",B[B.Short=3]="Short",B))(),ae=(()=>((ae=ae||{})[ae.Short=0]="Short",ae[ae.Medium=1]="Medium",ae[ae.Long=2]="Long",ae[ae.Full=3]="Full",ae))(),de=(()=>((de=de||{})[de.Decimal=0]="Decimal",de[de.Group=1]="Group",de[de.List=2]="List",de[de.PercentSign=3]="PercentSign",de[de.PlusSign=4]="PlusSign",de[de.MinusSign=5]="MinusSign",de[de.Exponential=6]="Exponential",de[de.SuperscriptingExponent=7]="SuperscriptingExponent",de[de.PerMille=8]="PerMille",de[de.Infinity=9]="Infinity",de[de.NaN=10]="NaN",de[de.TimeSeparator=11]="TimeSeparator",de[de.CurrencyDecimal=12]="CurrencyDecimal",de[de.CurrencyGroup=13]="CurrencyGroup",de))(),_e=(()=>((_e=_e||{})[_e.Sunday=0]="Sunday",_e[_e.Monday=1]="Monday",_e[_e.Tuesday=2]="Tuesday",_e[_e.Wednesday=3]="Wednesday",_e[_e.Thursday=4]="Thursday",_e[_e.Friday=5]="Friday",_e[_e.Saturday=6]="Saturday",_e))();function it(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.LocaleId]}function rt(R,ie,x){const le=(0,n.\u0275findLocaleData)(R),bt=z([le[n.\u0275LocaleDataIndex.DayPeriodsFormat],le[n.\u0275LocaleDataIndex.DayPeriodsStandalone]],ie);return z(bt,x)}function yt(R,ie,x){const le=(0,n.\u0275findLocaleData)(R),bt=z([le[n.\u0275LocaleDataIndex.DaysFormat],le[n.\u0275LocaleDataIndex.DaysStandalone]],ie);return z(bt,x)}function Oe(R,ie,x){const le=(0,n.\u0275findLocaleData)(R),bt=z([le[n.\u0275LocaleDataIndex.MonthsFormat],le[n.\u0275LocaleDataIndex.MonthsStandalone]],ie);return z(bt,x)}function ft(R,ie){return z((0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.Eras],ie)}function wt(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.FirstDayOfWeek]}function et(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.WeekendRange]}function at(R,ie){return z((0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.DateFormat],ie)}function Ke(R,ie){return z((0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.TimeFormat],ie)}function nt(R,ie){return z((0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.DateTimeFormat],ie)}function Tt(R,ie){const x=(0,n.\u0275findLocaleData)(R),le=x[n.\u0275LocaleDataIndex.NumberSymbols][ie];if(void 0===le){if(ie===de.CurrencyDecimal)return x[n.\u0275LocaleDataIndex.NumberSymbols][de.Decimal];if(ie===de.CurrencyGroup)return x[n.\u0275LocaleDataIndex.NumberSymbols][de.Group]}return le}function Ct(R,ie){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.NumberFormats][ie]}function st(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.CurrencySymbol]||null}function It(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.CurrencyName]||null}function ze(R){return(0,n.\u0275getLocaleCurrencyCode)(R)}const je=n.\u0275getLocalePluralCase;function pe(R){if(!R[n.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${R[n.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function We(R){const ie=(0,n.\u0275findLocaleData)(R);return pe(ie),(ie[n.\u0275LocaleDataIndex.ExtraData][2]||[]).map(le=>"string"==typeof le?De(le):[De(le[0]),De(le[1])])}function Ie(R,ie,x){const le=(0,n.\u0275findLocaleData)(R);pe(le);const bt=z([le[n.\u0275LocaleDataIndex.ExtraData][0],le[n.\u0275LocaleDataIndex.ExtraData][1]],ie)||[];return z(bt,x)||[]}function Ye(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.Directionality]}function z(R,ie){for(let x=ie;x>-1;x--)if(void 0!==R[x])return R[x];throw new Error("Locale data API: locale data undefined")}function De(R){const[ie,x]=R.split(":");return{hours:+ie,minutes:+x}}function Le(R,ie,x="en"){const le=function Ae(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.Currencies]}(x)[R]||we[R]||[],Be=le[1];return"narrow"===ie&&"string"==typeof Be?Be:le[0]||R}function Fe(R){let ie;const x=we[R];return x&&(ie=x[2]),"number"==typeof ie?ie:2}const ge=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,xe={},ht=/((?:[^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 Me=(()=>((Me=Me||{})[Me.Short=0]="Short",Me[Me.ShortGMT=1]="ShortGMT",Me[Me.Long=2]="Long",Me[Me.Extended=3]="Extended",Me))(),$=(()=>(($=$||{})[$.FullYear=0]="FullYear",$[$.Month=1]="Month",$[$.Date=2]="Date",$[$.Hours=3]="Hours",$[$.Minutes=4]="Minutes",$[$.Seconds=5]="Seconds",$[$.FractionalSeconds=6]="FractionalSeconds",$[$.Day=7]="Day",$))(),ne=(()=>((ne=ne||{})[ne.DayPeriods=0]="DayPeriods",ne[ne.Days=1]="Days",ne[ne.Months=2]="Months",ne[ne.Eras=3]="Eras",ne))();function ce(R,ie,x,le){let Be=function gt(R){if(on(R))return R;if("number"==typeof R&&!isNaN(R))return new Date(R);if("string"==typeof R){if(R=R.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(R)){const[Be,bt=1,ut=1]=R.split("-").map(jt=>+jt);return Te(Be,bt-1,ut)}const x=parseFloat(R);if(!isNaN(R-x))return new Date(x);let le;if(le=R.match(ge))return function $t(R){const ie=new Date(0);let x=0,le=0;const Be=R[8]?ie.setUTCFullYear:ie.setFullYear,bt=R[8]?ie.setUTCHours:ie.setHours;R[9]&&(x=Number(R[9]+R[10]),le=Number(R[9]+R[11])),Be.call(ie,Number(R[1]),Number(R[2])-1,Number(R[3]));const ut=Number(R[4]||0)-x,jt=Number(R[5]||0)-le,bn=Number(R[6]||0),Mn=Math.floor(1e3*parseFloat("0."+(R[7]||0)));return bt.call(ie,ut,jt,bn,Mn),ie}(le)}const ie=new Date(R);if(!on(ie))throw new Error(`Unable to convert "${R}" into a date`);return ie}(R);ie=He(x,ie)||ie;let jt,ut=[];for(;ie;){if(jt=ht.exec(ie),!jt){ut.push(ie);break}{ut=ut.concat(jt.slice(1));const Cn=ut.pop();if(!Cn)break;ie=Cn}}let bn=Be.getTimezoneOffset();le&&(bn=se(le,bn),Be=function qe(R,ie,x){const le=x?-1:1,Be=R.getTimezoneOffset();return function ye(R,ie){return(R=new Date(R.getTime())).setMinutes(R.getMinutes()+ie),R}(R,le*(se(ie,Be)-Be))}(Be,le,!0));let Mn="";return ut.forEach(Cn=>{const pn=function pt(R){if(ke[R])return ke[R];let ie;switch(R){case"G":case"GG":case"GGG":ie=Ne(ne.Eras,B.Abbreviated);break;case"GGGG":ie=Ne(ne.Eras,B.Wide);break;case"GGGGG":ie=Ne(ne.Eras,B.Narrow);break;case"y":ie=Bt($.FullYear,1,0,!1,!0);break;case"yy":ie=Bt($.FullYear,2,0,!0,!0);break;case"yyy":ie=Bt($.FullYear,3,0,!1,!0);break;case"yyyy":ie=Bt($.FullYear,4,0,!1,!0);break;case"Y":ie=ct(1);break;case"YY":ie=ct(2,!0);break;case"YYY":ie=ct(3);break;case"YYYY":ie=ct(4);break;case"M":case"L":ie=Bt($.Month,1,1);break;case"MM":case"LL":ie=Bt($.Month,2,1);break;case"MMM":ie=Ne(ne.Months,B.Abbreviated);break;case"MMMM":ie=Ne(ne.Months,B.Wide);break;case"MMMMM":ie=Ne(ne.Months,B.Narrow);break;case"LLL":ie=Ne(ne.Months,B.Abbreviated,q.Standalone);break;case"LLLL":ie=Ne(ne.Months,B.Wide,q.Standalone);break;case"LLLLL":ie=Ne(ne.Months,B.Narrow,q.Standalone);break;case"w":ie=be(1);break;case"ww":ie=be(2);break;case"W":ie=be(1,!0);break;case"d":ie=Bt($.Date,1);break;case"dd":ie=Bt($.Date,2);break;case"c":case"cc":ie=Bt($.Day,1);break;case"ccc":ie=Ne(ne.Days,B.Abbreviated,q.Standalone);break;case"cccc":ie=Ne(ne.Days,B.Wide,q.Standalone);break;case"ccccc":ie=Ne(ne.Days,B.Narrow,q.Standalone);break;case"cccccc":ie=Ne(ne.Days,B.Short,q.Standalone);break;case"E":case"EE":case"EEE":ie=Ne(ne.Days,B.Abbreviated);break;case"EEEE":ie=Ne(ne.Days,B.Wide);break;case"EEEEE":ie=Ne(ne.Days,B.Narrow);break;case"EEEEEE":ie=Ne(ne.Days,B.Short);break;case"a":case"aa":case"aaa":ie=Ne(ne.DayPeriods,B.Abbreviated);break;case"aaaa":ie=Ne(ne.DayPeriods,B.Wide);break;case"aaaaa":ie=Ne(ne.DayPeriods,B.Narrow);break;case"b":case"bb":case"bbb":ie=Ne(ne.DayPeriods,B.Abbreviated,q.Standalone,!0);break;case"bbbb":ie=Ne(ne.DayPeriods,B.Wide,q.Standalone,!0);break;case"bbbbb":ie=Ne(ne.DayPeriods,B.Narrow,q.Standalone,!0);break;case"B":case"BB":case"BBB":ie=Ne(ne.DayPeriods,B.Abbreviated,q.Format,!0);break;case"BBBB":ie=Ne(ne.DayPeriods,B.Wide,q.Format,!0);break;case"BBBBB":ie=Ne(ne.DayPeriods,B.Narrow,q.Format,!0);break;case"h":ie=Bt($.Hours,1,-12);break;case"hh":ie=Bt($.Hours,2,-12);break;case"H":ie=Bt($.Hours,1);break;case"HH":ie=Bt($.Hours,2);break;case"m":ie=Bt($.Minutes,1);break;case"mm":ie=Bt($.Minutes,2);break;case"s":ie=Bt($.Seconds,1);break;case"ss":ie=Bt($.Seconds,2);break;case"S":ie=Bt($.FractionalSeconds,1);break;case"SS":ie=Bt($.FractionalSeconds,2);break;case"SSS":ie=Bt($.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ie=ve(Me.Short);break;case"ZZZZZ":ie=ve(Me.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ie=ve(Me.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ie=ve(Me.Long);break;default:return null}return ke[R]=ie,ie}(Cn);Mn+=pn?pn(Be,x,bn):"''"===Cn?"'":Cn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Mn}function Te(R,ie,x){const le=new Date(0);return le.setFullYear(R,ie,x),le.setHours(0,0,0),le}function He(R,ie){const x=it(R);if(xe[x]=xe[x]||{},xe[x][ie])return xe[x][ie];let le="";switch(ie){case"shortDate":le=at(R,ae.Short);break;case"mediumDate":le=at(R,ae.Medium);break;case"longDate":le=at(R,ae.Long);break;case"fullDate":le=at(R,ae.Full);break;case"shortTime":le=Ke(R,ae.Short);break;case"mediumTime":le=Ke(R,ae.Medium);break;case"longTime":le=Ke(R,ae.Long);break;case"fullTime":le=Ke(R,ae.Full);break;case"short":const Be=He(R,"shortTime"),bt=He(R,"shortDate");le=dt(nt(R,ae.Short),[Be,bt]);break;case"medium":const ut=He(R,"mediumTime"),jt=He(R,"mediumDate");le=dt(nt(R,ae.Medium),[ut,jt]);break;case"long":const bn=He(R,"longTime"),Mn=He(R,"longDate");le=dt(nt(R,ae.Long),[bn,Mn]);break;case"full":const Cn=He(R,"fullTime"),pn=He(R,"fullDate");le=dt(nt(R,ae.Full),[Cn,pn])}return le&&(xe[x][ie]=le),le}function dt(R,ie){return ie&&(R=R.replace(/\{([^}]+)}/g,function(x,le){return null!=ie&&le in ie?ie[le]:x})),R}function xt(R,ie,x="-",le,Be){let bt="";(R<0||Be&&R<=0)&&(Be?R=1-R:(R=-R,bt=x));let ut=String(R);for(;ut.length<ie;)ut="0"+ut;return le&&(ut=ut.slice(ut.length-ie)),bt+ut}function Bt(R,ie,x=0,le=!1,Be=!1){return function(bt,ut){let jt=function Zt(R,ie){switch(R){case $.FullYear:return ie.getFullYear();case $.Month:return ie.getMonth();case $.Date:return ie.getDate();case $.Hours:return ie.getHours();case $.Minutes:return ie.getMinutes();case $.Seconds:return ie.getSeconds();case $.FractionalSeconds:return ie.getMilliseconds();case $.Day:return ie.getDay();default:throw new Error(`Unknown DateType value "${R}".`)}}(R,bt);if((x>0||jt>-x)&&(jt+=x),R===$.Hours)0===jt&&-12===x&&(jt=12);else if(R===$.FractionalSeconds)return function kt(R,ie){return xt(R,3).substring(0,ie)}(jt,ie);const bn=Tt(ut,de.MinusSign);return xt(jt,ie,bn,le,Be)}}function Ne(R,ie,x=q.Format,le=!1){return function(Be,bt){return function $e(R,ie,x,le,Be,bt){switch(x){case ne.Months:return Oe(ie,Be,le)[R.getMonth()];case ne.Days:return yt(ie,Be,le)[R.getDay()];case ne.DayPeriods:const ut=R.getHours(),jt=R.getMinutes();if(bt){const Mn=We(ie),Cn=Ie(ie,Be,le),pn=Mn.findIndex(Fn=>{if(Array.isArray(Fn)){const[yn,kn]=Fn,St=ut>=yn.hours&&jt>=yn.minutes,sn=ut<kn.hours||ut===kn.hours&&jt<kn.minutes;if(yn.hours<kn.hours){if(St&&sn)return!0}else if(St||sn)return!0}else if(Fn.hours===ut&&Fn.minutes===jt)return!0;return!1});if(-1!==pn)return Cn[pn]}return rt(ie,Be,le)[ut<12?0:1];case ne.Eras:return ft(ie,le)[R.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${x}`)}}(Be,bt,R,ie,x,le)}}function ve(R){return function(ie,x,le){const Be=-1*le,bt=Tt(x,de.MinusSign),ut=Be>0?Math.floor(Be/60):Math.ceil(Be/60);switch(R){case Me.Short:return(Be>=0?"+":"")+xt(ut,2,bt)+xt(Math.abs(Be%60),2,bt);case Me.ShortGMT:return"GMT"+(Be>=0?"+":"")+xt(ut,1,bt);case Me.Long:return"GMT"+(Be>=0?"+":"")+xt(ut,2,bt)+":"+xt(Math.abs(Be%60),2,bt);case Me.Extended:return 0===le?"Z":(Be>=0?"+":"")+xt(ut,2,bt)+":"+xt(Math.abs(Be%60),2,bt);default:throw new Error(`Unknown zone width "${R}"`)}}}function L(R){return Te(R.getFullYear(),R.getMonth(),R.getDate()+(4-R.getDay()))}function be(R,ie=!1){return function(x,le){let Be;if(ie){const bt=new Date(x.getFullYear(),x.getMonth(),1).getDay()-1,ut=x.getDate();Be=1+Math.floor((ut+bt)/7)}else{const bt=L(x),ut=function oe(R){const ie=Te(R,0,1).getDay();return Te(R,0,1+(ie<=4?4:11)-ie)}(bt.getFullYear()),jt=bt.getTime()-ut.getTime();Be=1+Math.round(jt/6048e5)}return xt(Be,R,Tt(le,de.MinusSign))}}function ct(R,ie=!1){return function(x,le){return xt(L(x).getFullYear(),R,Tt(le,de.MinusSign),ie)}}const ke={};function se(R,ie){R=R.replace(/:/g,"");const x=Date.parse("Jan 01, 1970 00:00:00 "+R)/6e4;return isNaN(x)?ie:x}function on(R){return R instanceof Date&&!isNaN(R.valueOf())}const nn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Ht(R,ie,x,le,Be,bt,ut=!1){let jt="",bn=!1;if(isFinite(R)){let Mn=function Z(R){let le,Be,bt,ut,jt,ie=Math.abs(R)+"",x=0;for((Be=ie.indexOf("."))>-1&&(ie=ie.replace(".","")),(bt=ie.search(/e/i))>0?(Be<0&&(Be=bt),Be+=+ie.slice(bt+1),ie=ie.substring(0,bt)):Be<0&&(Be=ie.length),bt=0;"0"===ie.charAt(bt);bt++);if(bt===(jt=ie.length))le=[0],Be=1;else{for(jt--;"0"===ie.charAt(jt);)jt--;for(Be-=bt,le=[],ut=0;bt<=jt;bt++,ut++)le[ut]=Number(ie.charAt(bt))}return Be>22&&(le=le.splice(0,21),x=Be-1,Be=1),{digits:le,exponent:x,integerLen:Be}}(R);ut&&(Mn=function Pe(R){if(0===R.digits[0])return R;const ie=R.digits.length-R.integerLen;return R.exponent?R.exponent+=2:(0===ie?R.digits.push(0,0):1===ie&&R.digits.push(0),R.integerLen+=2),R}(Mn));let Cn=ie.minInt,pn=ie.minFrac,Fn=ie.maxFrac;if(bt){const xi=bt.match(nn);if(null===xi)throw new Error(`${bt} is not a valid digit info`);const An=xi[1],Cr=xi[3],F=xi[5];null!=An&&(Cn=Ze(An)),null!=Cr&&(pn=Ze(Cr)),null!=F?Fn=Ze(F):null!=Cr&&pn>Fn&&(Fn=pn)}!function Re(R,ie,x){if(ie>x)throw new Error(`The minimum number of digits after fraction (${ie}) is higher than the maximum (${x}).`);let le=R.digits,Be=le.length-R.integerLen;const bt=Math.min(Math.max(ie,Be),x);let ut=bt+R.integerLen,jt=le[ut];if(ut>0){le.splice(Math.max(R.integerLen,ut));for(let pn=ut;pn<le.length;pn++)le[pn]=0}else{Be=Math.max(0,Be),R.integerLen=1,le.length=Math.max(1,ut=bt+1),le[0]=0;for(let pn=1;pn<ut;pn++)le[pn]=0}if(jt>=5)if(ut-1<0){for(let pn=0;pn>ut;pn--)le.unshift(0),R.integerLen++;le.unshift(1),R.integerLen++}else le[ut-1]++;for(;Be<Math.max(0,bt);Be++)le.push(0);let bn=0!==bt;const Mn=ie+R.integerLen,Cn=le.reduceRight(function(pn,Fn,yn,kn){return kn[yn]=(Fn+=pn)<10?Fn:Fn-10,bn&&(0===kn[yn]&&yn>=Mn?kn.pop():bn=!1),Fn>=10?1:0},0);Cn&&(le.unshift(Cn),R.integerLen++)}(Mn,pn,Fn);let yn=Mn.digits,kn=Mn.integerLen;const St=Mn.exponent;let sn=[];for(bn=yn.every(xi=>!xi);kn<Cn;kn++)yn.unshift(0);for(;kn<0;kn++)yn.unshift(0);kn>0?sn=yn.splice(kn,yn.length):(sn=yn,yn=[0]);const vi=[];for(yn.length>=ie.lgSize&&vi.unshift(yn.splice(-ie.lgSize,yn.length).join(""));yn.length>ie.gSize;)vi.unshift(yn.splice(-ie.gSize,yn.length).join(""));yn.length&&vi.unshift(yn.join("")),jt=vi.join(Tt(x,le)),sn.length&&(jt+=Tt(x,Be)+sn.join("")),St&&(jt+=Tt(x,de.Exponential)+"+"+St)}else jt=Tt(x,de.Infinity);return jt=R<0&&!bn?ie.negPre+jt+ie.negSuf:ie.posPre+jt+ie.posSuf,jt}function dn(R,ie,x,le,Be){const ut=ue(Ct(ie,tt.Currency),Tt(ie,de.MinusSign));return ut.minFrac=Fe(le),ut.maxFrac=ut.minFrac,Ht(R,ut,ie,de.CurrencyGroup,de.CurrencyDecimal,Be).replace("\xa4",x).replace("\xa4","").trim()}function On(R,ie,x){return Ht(R,ue(Ct(ie,tt.Percent),Tt(ie,de.MinusSign)),ie,de.Group,de.Decimal,x,!0).replace(new RegExp("%","g"),Tt(ie,de.PercentSign))}function _n(R,ie,x){return Ht(R,ue(Ct(ie,tt.Decimal),Tt(ie,de.MinusSign)),ie,de.Group,de.Decimal,x)}function ue(R,ie="-"){const x={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},le=R.split(";"),Be=le[0],bt=le[1],ut=-1!==Be.indexOf(".")?Be.split("."):[Be.substring(0,Be.lastIndexOf("0")+1),Be.substring(Be.lastIndexOf("0")+1)],jt=ut[0],bn=ut[1]||"";x.posPre=jt.substring(0,jt.indexOf("#"));for(let Cn=0;Cn<bn.length;Cn++){const pn=bn.charAt(Cn);"0"===pn?x.minFrac=x.maxFrac=Cn+1:"#"===pn?x.maxFrac=Cn+1:x.posSuf+=pn}const Mn=jt.split(",");if(x.gSize=Mn[1]?Mn[1].length:0,x.lgSize=Mn[2]||Mn[1]?(Mn[2]||Mn[1]).length:0,bt){const Cn=Be.length-x.posPre.length-x.posSuf.length,pn=bt.indexOf("#");x.negPre=bt.substring(0,pn).replace(/'/g,""),x.negSuf=bt.slice(pn+Cn).replace(/'/g,"")}else x.negPre=ie+x.posPre,x.negSuf=x.posSuf;return x}function Ze(R){const ie=parseInt(R);if(isNaN(ie))throw new Error("Invalid integer literal when parsing "+R);return ie}let Dt=(()=>{class R{}return R.\u0275fac=function(x){return new(x||R)},R.\u0275prov=n.\u0275\u0275defineInjectable({token:R,factory:function(x){let le=null;return x?le=new x:(Be=n.\u0275\u0275inject(n.LOCALE_ID),le=new Yt(Be)),le;var Be},providedIn:"root"}),R})();function Rt(R,ie,x,le){let Be=`=${R}`;if(ie.indexOf(Be)>-1||(Be=x.getPluralCategory(R,le),ie.indexOf(Be)>-1))return Be;if(ie.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${R}"`)}let Yt=(()=>{class R extends Dt{constructor(x){super(),this.locale=x}getPluralCategory(x,le){switch(je(le||this.locale)(x)){case G.Zero:return"zero";case G.One:return"one";case G.Two:return"two";case G.Few:return"few";case G.Many:return"many";default:return"other"}}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275inject(n.LOCALE_ID))},R.\u0275prov=n.\u0275\u0275defineInjectable({token:R,factory:R.\u0275fac}),R})();function Qt(R,ie,x){return(0,n.\u0275registerLocaleData)(R,ie,x)}function ln(R,ie){ie=encodeURIComponent(ie);for(const x of R.split(";")){const le=x.indexOf("="),[Be,bt]=-1==le?[x,""]:[x.slice(0,le),x.slice(le+1)];if(Be.trim()===ie)return decodeURIComponent(bt)}return null}let hn=(()=>{class R{constructor(x,le,Be,bt){this._iterableDiffers=x,this._keyValueDiffers=le,this._ngEl=Be,this._renderer=bt,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(x){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof x?x.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(x){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof x?x.split(/\s+/):x,this._rawClass&&((0,n.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const x=this._iterableDiffer.diff(this._rawClass);x&&this._applyIterableChanges(x)}else if(this._keyValueDiffer){const x=this._keyValueDiffer.diff(this._rawClass);x&&this._applyKeyValueChanges(x)}}_applyKeyValueChanges(x){x.forEachAddedItem(le=>this._toggleClass(le.key,le.currentValue)),x.forEachChangedItem(le=>this._toggleClass(le.key,le.currentValue)),x.forEachRemovedItem(le=>{le.previousValue&&this._toggleClass(le.key,!1)})}_applyIterableChanges(x){x.forEachAddedItem(le=>{if("string"!=typeof le.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.\u0275stringify)(le.item)}`);this._toggleClass(le.item,!0)}),x.forEachRemovedItem(le=>this._toggleClass(le.item,!1))}_applyClasses(x){x&&(Array.isArray(x)||x instanceof Set?x.forEach(le=>this._toggleClass(le,!0)):Object.keys(x).forEach(le=>this._toggleClass(le,!!x[le])))}_removeClasses(x){x&&(Array.isArray(x)||x instanceof Set?x.forEach(le=>this._toggleClass(le,!1)):Object.keys(x).forEach(le=>this._toggleClass(le,!1)))}_toggleClass(x,le){(x=x.trim())&&x.split(/\s+/g).forEach(Be=>{le?this._renderer.addClass(this._ngEl.nativeElement,Be):this._renderer.removeClass(this._ngEl.nativeElement,Be)})}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),R})(),gn=(()=>{class R{constructor(x){this._viewContainerRef=x,this.ngComponentOutlet=null}ngOnChanges(x){const{_viewContainerRef:le,ngComponentOutletNgModule:Be,ngComponentOutletNgModuleFactory:bt}=this;if(le.clear(),this._componentRef=void 0,this.ngComponentOutlet){const ut=this.ngComponentOutletInjector||le.parentInjector;(x.ngComponentOutletNgModule||x.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=Be?(0,n.createNgModule)(Be,qt(ut)):bt?bt.create(qt(ut)):void 0),this._componentRef=le.createComponent(this.ngComponentOutlet,{index:le.length,injector:ut,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent})}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),R})();function qt(R){return R.get(n.NgModuleRef).injector}class ni{constructor(ie,x,le,Be){this.$implicit=ie,this.ngForOf=x,this.index=le,this.count=Be}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 Jt=(()=>{class R{constructor(x,le,Be){this._viewContainer=x,this._template=le,this._differs=Be,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(x){this._ngForOf=x,this._ngForOfDirty=!0}set ngForTrackBy(x){this._trackByFn=x}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(x){x&&(this._template=x)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const x=this._ngForOf;!this._differ&&x&&(this._differ=this._differs.find(x).create(this.ngForTrackBy))}if(this._differ){const x=this._differ.diff(this._ngForOf);x&&this._applyChanges(x)}}_applyChanges(x){const le=this._viewContainer;x.forEachOperation((Be,bt,ut)=>{if(null==Be.previousIndex)le.createEmbeddedView(this._template,new ni(Be.item,this._ngForOf,-1,-1),null===ut?void 0:ut);else if(null==ut)le.remove(null===bt?void 0:bt);else if(null!==bt){const jt=le.get(bt);le.move(jt,ut),xn(jt,Be)}});for(let Be=0,bt=le.length;Be<bt;Be++){const jt=le.get(Be).context;jt.index=Be,jt.count=bt,jt.ngForOf=this._ngForOf}x.forEachIdentityChange(Be=>{xn(le.get(Be.currentIndex),Be)})}static ngTemplateContextGuard(x,le){return!0}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),R})();function xn(R,ie){R.context.$implicit=ie.item}let In=(()=>{class R{constructor(x,le){this._viewContainer=x,this._context=new Wn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=le}set ngIf(x){this._context.$implicit=this._context.ngIf=x,this._updateView()}set ngIfThen(x){Qi("ngIfThen",x),this._thenTemplateRef=x,this._thenViewRef=null,this._updateView()}set ngIfElse(x){Qi("ngIfElse",x),this._elseTemplateRef=x,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(x,le){return!0}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),R})();class Wn{constructor(){this.$implicit=null,this.ngIf=null}}function Qi(R,ie){if(ie&&!ie.createEmbeddedView)throw new Error(`${R} must be a TemplateRef, but received '${(0,n.\u0275stringify)(ie)}'.`)}class Si{constructor(ie,x){this._viewContainerRef=ie,this._templateRef=x,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ie){ie&&!this._created?this.create():!ie&&this._created&&this.destroy()}}let Zn=(()=>{class R{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(x){this._ngSwitch=x,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(x){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(x)}_matchCase(x){const le=x==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||le,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),le}_updateDefaultCases(x){if(this._defaultViews&&x!==this._defaultUsed){this._defaultUsed=x;for(let le=0;le<this._defaultViews.length;le++)this._defaultViews[le].enforceState(x)}}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),R})(),Hn=(()=>{class R{constructor(x,le,Be){this.ngSwitch=Be,Be._addCase(),this._view=new Si(x,le)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Zn,9))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),R})(),Ci=(()=>{class R{constructor(x,le,Be){Be._addDefault(new Si(x,le))}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Zn,9))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngSwitchDefault",""]],standalone:!0}),R})(),Vi=(()=>{class R{constructor(x){this._localization=x,this._caseViews={}}set ngPlural(x){this._switchValue=x,this._updateView()}addCase(x,le){this._caseViews[x]=le}_updateView(){this._clearViews();const x=Object.keys(this._caseViews),le=Rt(this._switchValue,x,this._localization);this._activateView(this._caseViews[le])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(x){x&&(this._activeView=x,this._activeView.create())}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(Dt))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0}),R})(),$i=(()=>{class R{constructor(x,le,Be,bt){this.value=x;const ut=!isNaN(Number(x));bt.addCase(ut?`=${x}`:x,new Si(Be,le))}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275injectAttribute("ngPluralCase"),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(Vi,1))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngPluralCase",""]],standalone:!0}),R})(),hr=(()=>{class R{constructor(x,le,Be){this._ngEl=x,this._differs=le,this._renderer=Be,this._ngStyle=null,this._differ=null}set ngStyle(x){this._ngStyle=x,!this._differ&&x&&(this._differ=this._differs.find(x).create())}ngDoCheck(){if(this._differ){const x=this._differ.diff(this._ngStyle);x&&this._applyChanges(x)}}_setStyle(x,le){const[Be,bt]=x.split("."),ut=-1===Be.indexOf("-")?void 0:n.RendererStyleFlags2.DashCase;null!=le?this._renderer.setStyle(this._ngEl.nativeElement,Be,bt?`${le}${bt}`:le,ut):this._renderer.removeStyle(this._ngEl.nativeElement,Be,ut)}_applyChanges(x){x.forEachRemovedItem(le=>this._setStyle(le.key,null)),x.forEachAddedItem(le=>this._setStyle(le.key,le.currentValue)),x.forEachChangedItem(le=>this._setStyle(le.key,le.currentValue))}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.KeyValueDiffers),n.\u0275\u0275directiveInject(n.Renderer2))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),R})(),Rr=(()=>{class R{constructor(x){this._viewContainerRef=x,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(x){if(x.ngTemplateOutlet||x.ngTemplateOutletInjector){const le=this._viewContainerRef;if(this._viewRef&&le.remove(le.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:Be,ngTemplateOutletContext:bt,ngTemplateOutletInjector:ut}=this;this._viewRef=le.createEmbeddedView(Be,bt,ut?{injector:ut}:void 0)}else this._viewRef=null}else this._viewRef&&x.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[n.\u0275\u0275NgOnChangesFeature]}),R})();function Jn(R,ie){return new n.\u0275RuntimeError(2100,!1)}class qr{createSubscription(ie,x){return ie.subscribe({next:x,error:le=>{throw le}})}dispose(ie){ie.unsubscribe()}}class Hi{createSubscription(ie,x){return ie.then(x,le=>{throw le})}dispose(ie){}}const pr=new Hi,Ii=new qr;let Fr=(()=>{class R{constructor(x){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=x}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(x){return this._obj?x!==this._obj?(this._dispose(),this.transform(x)):this._latestValue:(x&&this._subscribe(x),this._latestValue)}_subscribe(x){this._obj=x,this._strategy=this._selectStrategy(x),this._subscription=this._strategy.createSubscription(x,le=>this._updateLatestValue(x,le))}_selectStrategy(x){if((0,n.\u0275isPromise)(x))return pr;if((0,n.\u0275isSubscribable)(x))return Ii;throw Jn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(x,le){x===this._obj&&(this._latestValue=le,this._ref.markForCheck())}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.ChangeDetectorRef,16))},R.\u0275pipe=n.\u0275\u0275definePipe({name:"async",type:R,pure:!1,standalone:!0}),R})(),Ui=(()=>{class R{transform(x){if(null==x)return null;if("string"!=typeof x)throw Jn();return x.toLowerCase()}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275pipe=n.\u0275\u0275definePipe({name:"lowercase",type:R,pure:!0,standalone:!0}),R})();const mr=/(?:[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 Ur=(()=>{class R{transform(x){if(null==x)return null;if("string"!=typeof x)throw Jn();return x.replace(mr,le=>le[0].toUpperCase()+le.slice(1).toLowerCase())}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275pipe=n.\u0275\u0275definePipe({name:"titlecase",type:R,pure:!0,standalone:!0}),R})(),Oi=(()=>{class R{transform(x){if(null==x)return null;if("string"!=typeof x)throw Jn();return x.toUpperCase()}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275pipe=n.\u0275\u0275definePipe({name:"uppercase",type:R,pure:!0,standalone:!0}),R})();const zr=new n.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let Di=(()=>{class R{constructor(x,le){this.locale=x,this.defaultTimezone=le}transform(x,le="mediumDate",Be,bt){var ut;if(null==x||""===x||x!=x)return null;try{return ce(x,le,bt||this.locale,null!==(ut=null!=Be?Be:this.defaultTimezone)&&void 0!==ut?ut:void 0)}catch(jt){throw Jn()}}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(zr,24))},R.\u0275pipe=n.\u0275\u0275definePipe({name:"date",type:R,pure:!0,standalone:!0}),R})();const Zi=/#/g;let Ai=(()=>{class R{constructor(x){this._localization=x}transform(x,le,Be){if(null==x)return"";if("object"!=typeof le||null===le)throw Jn();return le[Rt(x,Object.keys(le),this._localization,Be)].replace(Zi,x.toString())}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(Dt,16))},R.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nPlural",type:R,pure:!0,standalone:!0}),R})(),Ji=(()=>{class R{transform(x,le){if(null==x)return"";if("object"!=typeof le||"string"!=typeof x)throw Jn();return le.hasOwnProperty(x)?le[x]:le.hasOwnProperty("other")?le.other:""}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nSelect",type:R,pure:!0,standalone:!0}),R})(),Pi=(()=>{class R{transform(x){return JSON.stringify(x,null,2)}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275pipe=n.\u0275\u0275definePipe({name:"json",type:R,pure:!1,standalone:!0}),R})(),Xi=(()=>{class R{constructor(x){this.differs=x,this.keyValues=[],this.compareFn=Ei}transform(x,le=Ei){if(!x||!(x instanceof Map)&&"object"!=typeof x)return null;this.differ||(this.differ=this.differs.find(x).create());const Be=this.differ.diff(x),bt=le!==this.compareFn;return Be&&(this.keyValues=[],Be.forEachItem(ut=>{this.keyValues.push(function mi(R,ie){return{key:R,value:ie}}(ut.key,ut.currentValue))})),(Be||bt)&&(this.keyValues.sort(le),this.compareFn=le),this.keyValues}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.KeyValueDiffers,16))},R.\u0275pipe=n.\u0275\u0275definePipe({name:"keyvalue",type:R,pure:!1,standalone:!0}),R})();function Ei(R,ie){const x=R.key,le=ie.key;if(x===le)return 0;if(void 0===x)return 1;if(void 0===le)return-1;if(null===x)return 1;if(null===le)return-1;if("string"==typeof x&&"string"==typeof le)return x<le?-1:1;if("number"==typeof x&&"number"==typeof le)return x-le;if("boolean"==typeof x&&"boolean"==typeof le)return x<le?-1:1;const Be=String(x),bt=String(le);return Be==bt?0:Be<bt?-1:1}let qi=(()=>{class R{constructor(x){this._locale=x}transform(x,le,Be){if(!gi(x))return null;Be=Be||this._locale;try{return _n(Ti(x),Be,le)}catch(bt){throw Jn()}}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},R.\u0275pipe=n.\u0275\u0275definePipe({name:"number",type:R,pure:!0,standalone:!0}),R})(),er=(()=>{class R{constructor(x){this._locale=x}transform(x,le,Be){if(!gi(x))return null;Be=Be||this._locale;try{return On(Ti(x),Be,le)}catch(bt){throw Jn()}}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16))},R.\u0275pipe=n.\u0275\u0275definePipe({name:"percent",type:R,pure:!0,standalone:!0}),R})(),gr=(()=>{class R{constructor(x,le="USD"){this._locale=x,this._defaultCurrencyCode=le}transform(x,le=this._defaultCurrencyCode,Be="symbol",bt,ut){if(!gi(x))return null;ut=ut||this._locale,"boolean"==typeof Be&&(Be=Be?"symbol":"code");let jt=le||this._defaultCurrencyCode;"code"!==Be&&(jt="symbol"===Be||"symbol-narrow"===Be?Le(jt,"symbol"===Be?"wide":"narrow",ut):Be);try{return dn(Ti(x),ut,jt,le,bt)}catch(bn){throw Jn()}}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(n.DEFAULT_CURRENCY_CODE,16))},R.\u0275pipe=n.\u0275\u0275definePipe({name:"currency",type:R,pure:!0,standalone:!0}),R})();function gi(R){return!(null==R||""===R||R!=R)}function Ti(R){if("string"==typeof R&&!isNaN(Number(R)-parseFloat(R)))return Number(R);if("number"!=typeof R)throw new Error(`${R} is not a number`);return R}let vr=(()=>{class R{transform(x,le,Be){if(null==x)return null;if(!this.supports(x))throw Jn();return x.slice(le,Be)}supports(x){return"string"==typeof x||Array.isArray(x)}}return R.\u0275fac=function(x){return new(x||R)},R.\u0275pipe=n.\u0275\u0275definePipe({name:"slice",type:R,pure:!1,standalone:!0}),R})(),yr=(()=>{class R{}return R.\u0275fac=function(x){return new(x||R)},R.\u0275mod=n.\u0275\u0275defineNgModule({type:R}),R.\u0275inj=n.\u0275\u0275defineInjector({}),R})();const Xn="browser",ai="server",nr="browserWorkerApp",Ri="browserWorkerUi";function _r(R){return R===Xn}function wi(R){return R===ai}function wn(R){return R===nr}function li(R){return R===Ri}const jn=new n.Version("14.1.0");let Bn=(()=>{class R{}return R.\u0275prov=(0,n.\u0275\u0275defineInjectable)({token:R,providedIn:"root",factory:()=>new Dn((0,n.\u0275\u0275inject)(f),window)}),R})();class Dn{constructor(ie,x){this.document=ie,this.window=x,this.offset=()=>[0,0]}setOffset(ie){this.offset=Array.isArray(ie)?()=>ie:ie}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ie){this.supportsScrolling()&&this.window.scrollTo(ie[0],ie[1])}scrollToAnchor(ie){if(!this.supportsScrolling())return;const x=function zi(R,ie){const x=R.getElementById(ie)||R.getElementsByName(ie)[0];if(x)return x;if("function"==typeof R.createTreeWalker&&R.body&&(R.body.createShadowRoot||R.body.attachShadow)){const le=R.createTreeWalker(R.body,NodeFilter.SHOW_ELEMENT);let Be=le.currentNode;for(;Be;){const bt=Be.shadowRoot;if(bt){const ut=bt.getElementById(ie)||bt.querySelector(`[name="${ie}"]`);if(ut)return ut}Be=le.nextNode()}}return null}(this.document,ie);x&&(this.scrollToElement(x),x.focus())}setHistoryScrollRestoration(ie){if(this.supportScrollRestoration()){const x=this.window.history;x&&x.scrollRestoration&&(x.scrollRestoration=ie)}}scrollToElement(ie){const x=ie.getBoundingClientRect(),le=x.left+this.window.pageXOffset,Be=x.top+this.window.pageYOffset,bt=this.offset();this.window.scrollTo(le-bt[0],Be-bt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ie=br(this.window.history)||br(Object.getPrototypeOf(this.window.history));return!(!ie||!ie.writable&&!ie.set)}catch(ie){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(ie){return!1}}}function br(R){return Object.getOwnPropertyDescriptor(R,"scrollRestoration")}class Mi{setOffset(ie){}getScrollPosition(){return[0,0]}scrollToPosition(ie){}scrollToAnchor(ie){}setHistoryScrollRestoration(ie){}}class Gn{}},6529:(H,o,a)=>{"use strict";a.r(o),a.d(o,{HTTP_INTERCEPTORS:()=>Oe,HttpBackend:()=>_,HttpClient:()=>rt,HttpClientJsonpModule:()=>xe,HttpClientModule:()=>ge,HttpClientXsrfModule:()=>Fe,HttpContext:()=>V,HttpContextToken:()=>Q,HttpErrorResponse:()=>_e,HttpEventType:()=>q,HttpHandler:()=>d,HttpHeaderResponse:()=>ae,HttpHeaders:()=>v,HttpParams:()=>U,HttpRequest:()=>G,HttpResponse:()=>de,HttpResponseBase:()=>B,HttpUrlEncodingCodec:()=>E,HttpXhrBackend:()=>je,HttpXsrfTokenExtractor:()=>Ie,JsonpClientBackend:()=>st,JsonpInterceptor:()=>It,XhrFactory:()=>ht,\u0275HttpInterceptingHandler:()=>De});var n=a(9808),p=a(5e3),b=a(9646),u=a(8306),r=a(5577),c=a(576),h=a(9300),m=a(4004);class d{}class _{}class v{constructor($){this.normalizedNames=new Map,this.lazyUpdate=null,$?this.lazyInit="string"==typeof $?()=>{this.headers=new Map,$.split("\n").forEach(ne=>{const ce=ne.indexOf(":");if(ce>0){const Te=ne.slice(0,ce),He=Te.toLowerCase(),dt=ne.slice(ce+1).trim();this.maybeSetNormalizedName(Te,He),this.headers.has(He)?this.headers.get(He).push(dt):this.headers.set(He,[dt])}})}:()=>{this.headers=new Map,Object.keys($).forEach(ne=>{let ce=$[ne];const Te=ne.toLowerCase();"string"==typeof ce&&(ce=[ce]),ce.length>0&&(this.headers.set(Te,ce),this.maybeSetNormalizedName(ne,Te))})}:this.headers=new Map}has($){return this.init(),this.headers.has($.toLowerCase())}get($){this.init();const ne=this.headers.get($.toLowerCase());return ne&&ne.length>0?ne[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll($){return this.init(),this.headers.get($.toLowerCase())||null}append($,ne){return this.clone({name:$,value:ne,op:"a"})}set($,ne){return this.clone({name:$,value:ne,op:"s"})}delete($,ne){return this.clone({name:$,value:ne,op:"d"})}maybeSetNormalizedName($,ne){this.normalizedNames.has(ne)||this.normalizedNames.set(ne,$)}init(){this.lazyInit&&(this.lazyInit instanceof v?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach($=>this.applyUpdate($)),this.lazyUpdate=null))}copyFrom($){$.init(),Array.from($.headers.keys()).forEach(ne=>{this.headers.set(ne,$.headers.get(ne)),this.normalizedNames.set(ne,$.normalizedNames.get(ne))})}clone($){const ne=new v;return ne.lazyInit=this.lazyInit&&this.lazyInit instanceof v?this.lazyInit:this,ne.lazyUpdate=(this.lazyUpdate||[]).concat([$]),ne}applyUpdate($){const ne=$.name.toLowerCase();switch($.op){case"a":case"s":let ce=$.value;if("string"==typeof ce&&(ce=[ce]),0===ce.length)return;this.maybeSetNormalizedName($.name,ne);const Te=("a"===$.op?this.headers.get(ne):void 0)||[];Te.push(...ce),this.headers.set(ne,Te);break;case"d":const He=$.value;if(He){let dt=this.headers.get(ne);if(!dt)return;dt=dt.filter(xt=>-1===He.indexOf(xt)),0===dt.length?(this.headers.delete(ne),this.normalizedNames.delete(ne)):this.headers.set(ne,dt)}else this.headers.delete(ne),this.normalizedNames.delete(ne)}}forEach($){this.init(),Array.from(this.normalizedNames.keys()).forEach(ne=>$(this.normalizedNames.get(ne),this.headers.get(ne)))}}class E{encodeKey($){return j($)}encodeValue($){return j($)}decodeKey($){return decodeURIComponent($)}decodeValue($){return decodeURIComponent($)}}const A=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function j(Me){return encodeURIComponent(Me).replace(A,($,ne)=>{var ce;return null!==(ce=k[ne])&&void 0!==ce?ce:$})}function Y(Me){return`${Me}`}class U{constructor($={}){if(this.updates=null,this.cloneFrom=null,this.encoder=$.encoder||new E,$.fromString){if($.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function M(Me,$){const ne=new Map;return Me.length>0&&Me.replace(/^\?/,"").split("&").forEach(Te=>{const He=Te.indexOf("="),[dt,xt]=-1==He?[$.decodeKey(Te),""]:[$.decodeKey(Te.slice(0,He)),$.decodeValue(Te.slice(He+1))],kt=ne.get(dt)||[];kt.push(xt),ne.set(dt,kt)}),ne}($.fromString,this.encoder)}else $.fromObject?(this.map=new Map,Object.keys($.fromObject).forEach(ne=>{const ce=$.fromObject[ne],Te=Array.isArray(ce)?ce.map(Y):[Y(ce)];this.map.set(ne,Te)})):this.map=null}has($){return this.init(),this.map.has($)}get($){this.init();const ne=this.map.get($);return ne?ne[0]:null}getAll($){return this.init(),this.map.get($)||null}keys(){return this.init(),Array.from(this.map.keys())}append($,ne){return this.clone({param:$,value:ne,op:"a"})}appendAll($){const ne=[];return Object.keys($).forEach(ce=>{const Te=$[ce];Array.isArray(Te)?Te.forEach(He=>{ne.push({param:ce,value:He,op:"a"})}):ne.push({param:ce,value:Te,op:"a"})}),this.clone(ne)}set($,ne){return this.clone({param:$,value:ne,op:"s"})}delete($,ne){return this.clone({param:$,value:ne,op:"d"})}toString(){return this.init(),this.keys().map($=>{const ne=this.encoder.encodeKey($);return this.map.get($).map(ce=>ne+"="+this.encoder.encodeValue(ce)).join("&")}).filter($=>""!==$).join("&")}clone($){const ne=new U({encoder:this.encoder});return ne.cloneFrom=this.cloneFrom||this,ne.updates=(this.updates||[]).concat($),ne}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach($=>this.map.set($,this.cloneFrom.map.get($))),this.updates.forEach($=>{switch($.op){case"a":case"s":const ne=("a"===$.op?this.map.get($.param):void 0)||[];ne.push(Y($.value)),this.map.set($.param,ne);break;case"d":if(void 0===$.value){this.map.delete($.param);break}{let ce=this.map.get($.param)||[];const Te=ce.indexOf(Y($.value));-1!==Te&&ce.splice(Te,1),ce.length>0?this.map.set($.param,ce):this.map.delete($.param)}}}),this.cloneFrom=this.updates=null)}}class Q{constructor($){this.defaultValue=$}}class V{constructor(){this.map=new Map}set($,ne){return this.map.set($,ne),this}get($){return this.map.has($)||this.map.set($,$.defaultValue()),this.map.get($)}delete($){return this.map.delete($),this}has($){return this.map.has($)}keys(){return this.map.keys()}}function re(Me){return"undefined"!=typeof ArrayBuffer&&Me instanceof ArrayBuffer}function me(Me){return"undefined"!=typeof Blob&&Me instanceof Blob}function we(Me){return"undefined"!=typeof FormData&&Me instanceof FormData}class G{constructor($,ne,ce,Te){let He;if(this.url=ne,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=$.toUpperCase(),function X(Me){switch(Me){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Te?(this.body=void 0!==ce?ce:null,He=Te):He=ce,He&&(this.reportProgress=!!He.reportProgress,this.withCredentials=!!He.withCredentials,He.responseType&&(this.responseType=He.responseType),He.headers&&(this.headers=He.headers),He.context&&(this.context=He.context),He.params&&(this.params=He.params)),this.headers||(this.headers=new v),this.context||(this.context=new V),this.params){const dt=this.params.toString();if(0===dt.length)this.urlWithParams=ne;else{const xt=ne.indexOf("?");this.urlWithParams=ne+(-1===xt?"?":xt<ne.length-1?"&":"")+dt}}else this.params=new U,this.urlWithParams=ne}serializeBody(){return null===this.body?null:re(this.body)||me(this.body)||we(this.body)||function tt(Me){return"undefined"!=typeof URLSearchParams&&Me instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof U?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||we(this.body)?null:me(this.body)?this.body.type||null:re(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof U?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone($={}){var ne;const ce=$.method||this.method,Te=$.url||this.url,He=$.responseType||this.responseType,dt=void 0!==$.body?$.body:this.body,xt=void 0!==$.withCredentials?$.withCredentials:this.withCredentials,kt=void 0!==$.reportProgress?$.reportProgress:this.reportProgress;let Bt=$.headers||this.headers,Zt=$.params||this.params;const Ne=null!==(ne=$.context)&&void 0!==ne?ne:this.context;return void 0!==$.setHeaders&&(Bt=Object.keys($.setHeaders).reduce(($e,ve)=>$e.set(ve,$.setHeaders[ve]),Bt)),$.setParams&&(Zt=Object.keys($.setParams).reduce(($e,ve)=>$e.set(ve,$.setParams[ve]),Zt)),new G(ce,Te,dt,{params:Zt,headers:Bt,context:Ne,reportProgress:kt,responseType:He,withCredentials:xt})}}var q=(()=>((q=q||{})[q.Sent=0]="Sent",q[q.UploadProgress=1]="UploadProgress",q[q.ResponseHeader=2]="ResponseHeader",q[q.DownloadProgress=3]="DownloadProgress",q[q.Response=4]="Response",q[q.User=5]="User",q))();class B{constructor($,ne=200,ce="OK"){this.headers=$.headers||new v,this.status=void 0!==$.status?$.status:ne,this.statusText=$.statusText||ce,this.url=$.url||null,this.ok=this.status>=200&&this.status<300}}class ae extends B{constructor($={}){super($),this.type=q.ResponseHeader}clone($={}){return new ae({headers:$.headers||this.headers,status:void 0!==$.status?$.status:this.status,statusText:$.statusText||this.statusText,url:$.url||this.url||void 0})}}class de extends B{constructor($={}){super($),this.type=q.Response,this.body=void 0!==$.body?$.body:null}clone($={}){return new de({body:void 0!==$.body?$.body:this.body,headers:$.headers||this.headers,status:void 0!==$.status?$.status:this.status,statusText:$.statusText||this.statusText,url:$.url||this.url||void 0})}}class _e extends B{constructor($){super($,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${$.url||"(unknown url)"}`:`Http failure response for ${$.url||"(unknown url)"}: ${$.status} ${$.statusText}`,this.error=$.error||null}}function it(Me,$){return{body:$,headers:Me.headers,context:Me.context,observe:Me.observe,params:Me.params,reportProgress:Me.reportProgress,responseType:Me.responseType,withCredentials:Me.withCredentials}}let rt=(()=>{class Me{constructor(ne){this.handler=ne}request(ne,ce,Te={}){let He;if(ne instanceof G)He=ne;else{let kt,Bt;kt=Te.headers instanceof v?Te.headers:new v(Te.headers),Te.params&&(Bt=Te.params instanceof U?Te.params:new U({fromObject:Te.params})),He=new G(ne,ce,void 0!==Te.body?Te.body:null,{headers:kt,context:Te.context,params:Bt,reportProgress:Te.reportProgress,responseType:Te.responseType||"json",withCredentials:Te.withCredentials})}const dt=(0,b.of)(He).pipe(function f(Me,$){return(0,c.m)($)?(0,r.z)(Me,$,1):(0,r.z)(Me,1)}(kt=>this.handler.handle(kt)));if(ne instanceof G||"events"===Te.observe)return dt;const xt=dt.pipe((0,h.h)(kt=>kt instanceof de));switch(Te.observe||"body"){case"body":switch(He.responseType){case"arraybuffer":return xt.pipe((0,m.U)(kt=>{if(null!==kt.body&&!(kt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return kt.body}));case"blob":return xt.pipe((0,m.U)(kt=>{if(null!==kt.body&&!(kt.body instanceof Blob))throw new Error("Response is not a Blob.");return kt.body}));case"text":return xt.pipe((0,m.U)(kt=>{if(null!==kt.body&&"string"!=typeof kt.body)throw new Error("Response is not a string.");return kt.body}));default:return xt.pipe((0,m.U)(kt=>kt.body))}case"response":return xt;default:throw new Error(`Unreachable: unhandled observe type ${Te.observe}}`)}}delete(ne,ce={}){return this.request("DELETE",ne,ce)}get(ne,ce={}){return this.request("GET",ne,ce)}head(ne,ce={}){return this.request("HEAD",ne,ce)}jsonp(ne,ce){return this.request("JSONP",ne,{params:(new U).append(ce,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ne,ce={}){return this.request("OPTIONS",ne,ce)}patch(ne,ce,Te={}){return this.request("PATCH",ne,it(Te,ce))}post(ne,ce,Te={}){return this.request("POST",ne,it(Te,ce))}put(ne,ce,Te={}){return this.request("PUT",ne,it(Te,ce))}}return Me.\u0275fac=function(ne){return new(ne||Me)(p.\u0275\u0275inject(d))},Me.\u0275prov=p.\u0275\u0275defineInjectable({token:Me,factory:Me.\u0275fac}),Me})();class yt{constructor($,ne){this.next=$,this.interceptor=ne}handle($){return this.interceptor.intercept($,this.next)}}const Oe=new p.InjectionToken("HTTP_INTERCEPTORS");let et,ft=(()=>{class Me{intercept(ne,ce){return ce.handle(ne)}}return Me.\u0275fac=function(ne){return new(ne||Me)},Me.\u0275prov=p.\u0275\u0275defineInjectable({token:Me,factory:Me.\u0275fac}),Me})(),wt=0;class Ct{}let st=(()=>{class Me{constructor(ne,ce){this.callbackMap=ne,this.document=ce,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+wt++}handle(ne){if("JSONP"!==ne.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==ne.responseType)throw new Error("JSONP requests must use Json response type.");if(ne.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new u.y(ce=>{const Te=this.nextCallback(),He=ne.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${Te}$1`),dt=this.document.createElement("script");dt.src=He;let xt=null,kt=!1;this.callbackMap[Te]=$e=>{delete this.callbackMap[Te],xt=$e,kt=!0};const Bt=()=>{dt.parentNode&&dt.parentNode.removeChild(dt),delete this.callbackMap[Te]};return dt.addEventListener("load",$e=>{this.resolvedPromise.then(()=>{Bt(),kt?(ce.next(new de({body:xt,status:200,statusText:"OK",url:He})),ce.complete()):ce.error(new _e({url:He,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),dt.addEventListener("error",$e=>{Bt(),ce.error(new _e({error:$e,status:0,statusText:"JSONP Error",url:He}))}),this.document.body.appendChild(dt),ce.next({type:q.Sent}),()=>{kt||this.removeListeners(dt),Bt()}})}removeListeners(ne){et||(et=this.document.implementation.createHTMLDocument()),et.adoptNode(ne)}}return Me.\u0275fac=function(ne){return new(ne||Me)(p.\u0275\u0275inject(Ct),p.\u0275\u0275inject(n.DOCUMENT))},Me.\u0275prov=p.\u0275\u0275defineInjectable({token:Me,factory:Me.\u0275fac}),Me})(),It=(()=>{class Me{constructor(ne){this.jsonp=ne}intercept(ne,ce){return"JSONP"===ne.method?this.jsonp.handle(ne):ce.handle(ne)}}return Me.\u0275fac=function(ne){return new(ne||Me)(p.\u0275\u0275inject(st))},Me.\u0275prov=p.\u0275\u0275defineInjectable({token:Me,factory:Me.\u0275fac}),Me})();const ze=/^\)\]\}',?\n/;let je=(()=>{class Me{constructor(ne){this.xhrFactory=ne}handle(ne){if("JSONP"===ne.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new u.y(ce=>{const Te=this.xhrFactory.build();if(Te.open(ne.method,ne.urlWithParams),ne.withCredentials&&(Te.withCredentials=!0),ne.headers.forEach((ve,fe)=>Te.setRequestHeader(ve,fe.join(","))),ne.headers.has("Accept")||Te.setRequestHeader("Accept","application/json, text/plain, */*"),!ne.headers.has("Content-Type")){const ve=ne.detectContentTypeHeader();null!==ve&&Te.setRequestHeader("Content-Type",ve)}if(ne.responseType){const ve=ne.responseType.toLowerCase();Te.responseType="json"!==ve?ve:"text"}const He=ne.serializeBody();let dt=null;const xt=()=>{if(null!==dt)return dt;const ve=Te.statusText||"OK",fe=new v(Te.getAllResponseHeaders()),ee=function Ae(Me){return"responseURL"in Me&&Me.responseURL?Me.responseURL:/^X-Request-URL:/m.test(Me.getAllResponseHeaders())?Me.getResponseHeader("X-Request-URL"):null}(Te)||ne.url;return dt=new ae({headers:fe,status:Te.status,statusText:ve,url:ee}),dt},kt=()=>{let{headers:ve,status:fe,statusText:ee,url:oe}=xt(),L=null;204!==fe&&(L=void 0===Te.response?Te.responseText:Te.response),0===fe&&(fe=L?200:0);let be=fe>=200&&fe<300;if("json"===ne.responseType&&"string"==typeof L){const ct=L;L=L.replace(ze,"");try{L=""!==L?JSON.parse(L):null}catch(ke){L=ct,be&&(be=!1,L={error:ke,text:L})}}be?(ce.next(new de({body:L,headers:ve,status:fe,statusText:ee,url:oe||void 0})),ce.complete()):ce.error(new _e({error:L,headers:ve,status:fe,statusText:ee,url:oe||void 0}))},Bt=ve=>{const{url:fe}=xt(),ee=new _e({error:ve,status:Te.status||0,statusText:Te.statusText||"Unknown Error",url:fe||void 0});ce.error(ee)};let Zt=!1;const Ne=ve=>{Zt||(ce.next(xt()),Zt=!0);let fe={type:q.DownloadProgress,loaded:ve.loaded};ve.lengthComputable&&(fe.total=ve.total),"text"===ne.responseType&&!!Te.responseText&&(fe.partialText=Te.responseText),ce.next(fe)},$e=ve=>{let fe={type:q.UploadProgress,loaded:ve.loaded};ve.lengthComputable&&(fe.total=ve.total),ce.next(fe)};return Te.addEventListener("load",kt),Te.addEventListener("error",Bt),Te.addEventListener("timeout",Bt),Te.addEventListener("abort",Bt),ne.reportProgress&&(Te.addEventListener("progress",Ne),null!==He&&Te.upload&&Te.upload.addEventListener("progress",$e)),Te.send(He),ce.next({type:q.Sent}),()=>{Te.removeEventListener("error",Bt),Te.removeEventListener("abort",Bt),Te.removeEventListener("load",kt),Te.removeEventListener("timeout",Bt),ne.reportProgress&&(Te.removeEventListener("progress",Ne),null!==He&&Te.upload&&Te.upload.removeEventListener("progress",$e)),Te.readyState!==Te.DONE&&Te.abort()}})}}return Me.\u0275fac=function(ne){return new(ne||Me)(p.\u0275\u0275inject(n.XhrFactory))},Me.\u0275prov=p.\u0275\u0275defineInjectable({token:Me,factory:Me.\u0275fac}),Me})();const pe=new p.InjectionToken("XSRF_COOKIE_NAME"),We=new p.InjectionToken("XSRF_HEADER_NAME");class Ie{}let Ye=(()=>{class Me{constructor(ne,ce,Te){this.doc=ne,this.platform=ce,this.cookieName=Te,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ne=this.doc.cookie||"";return ne!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.\u0275parseCookieValue)(ne,this.cookieName),this.lastCookieString=ne),this.lastToken}}return Me.\u0275fac=function(ne){return new(ne||Me)(p.\u0275\u0275inject(n.DOCUMENT),p.\u0275\u0275inject(p.PLATFORM_ID),p.\u0275\u0275inject(pe))},Me.\u0275prov=p.\u0275\u0275defineInjectable({token:Me,factory:Me.\u0275fac}),Me})(),z=(()=>{class Me{constructor(ne,ce){this.tokenService=ne,this.headerName=ce}intercept(ne,ce){const Te=ne.url.toLowerCase();if("GET"===ne.method||"HEAD"===ne.method||Te.startsWith("http://")||Te.startsWith("https://"))return ce.handle(ne);const He=this.tokenService.getToken();return null!==He&&!ne.headers.has(this.headerName)&&(ne=ne.clone({headers:ne.headers.set(this.headerName,He)})),ce.handle(ne)}}return Me.\u0275fac=function(ne){return new(ne||Me)(p.\u0275\u0275inject(Ie),p.\u0275\u0275inject(We))},Me.\u0275prov=p.\u0275\u0275defineInjectable({token:Me,factory:Me.\u0275fac}),Me})(),De=(()=>{class Me{constructor(ne,ce){this.backend=ne,this.injector=ce,this.chain=null}handle(ne){if(null===this.chain){const ce=this.injector.get(Oe,[]);this.chain=ce.reduceRight((Te,He)=>new yt(Te,He),this.backend)}return this.chain.handle(ne)}}return Me.\u0275fac=function(ne){return new(ne||Me)(p.\u0275\u0275inject(_),p.\u0275\u0275inject(p.Injector))},Me.\u0275prov=p.\u0275\u0275defineInjectable({token:Me,factory:Me.\u0275fac}),Me})();function Se(){return"object"==typeof window?window:{}}let Fe=(()=>{class Me{static disable(){return{ngModule:Me,providers:[{provide:z,useClass:ft}]}}static withOptions(ne={}){return{ngModule:Me,providers:[ne.cookieName?{provide:pe,useValue:ne.cookieName}:[],ne.headerName?{provide:We,useValue:ne.headerName}:[]]}}}return Me.\u0275fac=function(ne){return new(ne||Me)},Me.\u0275mod=p.\u0275\u0275defineNgModule({type:Me}),Me.\u0275inj=p.\u0275\u0275defineInjector({providers:[z,{provide:Oe,useExisting:z,multi:!0},{provide:Ie,useClass:Ye},{provide:pe,useValue:"XSRF-TOKEN"},{provide:We,useValue:"X-XSRF-TOKEN"}]}),Me})(),ge=(()=>{class Me{}return Me.\u0275fac=function(ne){return new(ne||Me)},Me.\u0275mod=p.\u0275\u0275defineNgModule({type:Me}),Me.\u0275inj=p.\u0275\u0275defineInjector({providers:[rt,{provide:d,useClass:De},je,{provide:_,useExisting:je}],imports:[Fe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Me})(),xe=(()=>{class Me{}return Me.\u0275fac=function(ne){return new(ne||Me)},Me.\u0275mod=p.\u0275\u0275defineNgModule({type:Me}),Me.\u0275inj=p.\u0275\u0275defineInjector({providers:[st,{provide:Ct,useFactory:Se},{provide:Oe,useClass:It,multi:!0}]}),Me})();const ht=n.XhrFactory},5e3:(H,o,a)=>{"use strict";a.r(o),a.d(o,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Mv,ANIMATION_MODULE_TYPE:()=>MD,APP_BOOTSTRAP_LISTENER:()=>kg,APP_ID:()=>Rg,APP_INITIALIZER:()=>Pg,ApplicationInitStatus:()=>ja,ApplicationModule:()=>gE,ApplicationRef:()=>$a,Attribute:()=>gd,COMPILER_OPTIONS:()=>Lg,CUSTOM_ELEMENTS_SCHEMA:()=>mf,ChangeDetectionStrategy:()=>ge,ChangeDetectorRef:()=>av,Compiler:()=>RD,CompilerFactory:()=>xD,Component:()=>gD,ComponentFactory:()=>oa,ComponentFactoryResolver:()=>gs,ComponentRef:()=>cf,ContentChild:()=>Iv,ContentChildren:()=>Sv,DEFAULT_CURRENCY_CODE:()=>OD,DebugElement:()=>Ns,DebugEventListener:()=>eE,DebugNode:()=>Gu,DefaultIterableDiffer:()=>hv,Directive:()=>Ag,ENVIRONMENT_INITIALIZER:()=>dl,ElementRef:()=>vs,EmbeddedViewRef:()=>qD,EnvironmentInjector:()=>so,ErrorHandler:()=>ys,EventEmitter:()=>Or,Host:()=>wd,HostBinding:()=>bD,HostListener:()=>CD,INJECTOR:()=>fl,Inject:()=>Zs,InjectFlags:()=>Ie,Injectable:()=>z_,InjectionToken:()=>Pn,Injector:()=>Zr,Input:()=>yD,IterableDiffers:()=>Ju,KeyValueDiffers:()=>Xu,LOCALE_ID:()=>Ba,MissingTranslationStrategy:()=>Ar,ModuleWithComponentFactories:()=>Ng,NO_ERRORS_SCHEMA:()=>gf,NgModule:()=>DD,NgModuleFactory:()=>ym,NgModuleRef:()=>Zo,NgProbeToken:()=>HD,NgZone:()=>Bi,Optional:()=>us,Output:()=>_D,PACKAGE_ROOT_URL:()=>wD,PLATFORM_ID:()=>TD,PLATFORM_INITIALIZER:()=>Fg,Pipe:()=>vD,PlatformRef:()=>Wu,Query:()=>os,QueryList:()=>xa,ReflectiveInjector:()=>Ro,ReflectiveKey:()=>Br,Renderer2:()=>Ny,RendererFactory2:()=>df,RendererStyleFlags2:()=>wr,ResolvedReflectiveFactory:()=>ch,Sanitizer:()=>ff,SecurityContext:()=>Qn,Self:()=>Js,SimpleChange:()=>Xi,SkipSelf:()=>To,TRANSLATIONS:()=>AD,TRANSLATIONS_FORMAT:()=>PD,TemplateRef:()=>xs,Testability:()=>$D,TestabilityRegistry:()=>Wg,Type:()=>Gs,VERSION:()=>pf,Version:()=>hf,ViewChild:()=>Av,ViewChildren:()=>Ov,ViewContainerRef:()=>ka,ViewEncapsulation:()=>Me,ViewRef:()=>cv,asNativeElements:()=>tE,assertPlatform:()=>Xg,createComponent:()=>IE,createEnvironmentInjector:()=>Eu,createNgModule:()=>_m,createNgModuleRef:()=>IC,createPlatform:()=>Qg,createPlatformFactory:()=>Jg,defineInjectable:()=>Ke,destroyPlatform:()=>WD,enableProdMode:()=>QD,forwardRef:()=>_,getDebugNode:()=>qo,getModuleFactory:()=>ZD,getNgModuleById:()=>JD,getPlatform:()=>Va,importProvidersFrom:()=>ef,inject:()=>Td,isDevMode:()=>YD,platformCore:()=>mE,reflectComponentType:()=>OE,resolveForwardRef:()=>v,setTestabilityGetter:()=>Gg,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Uu,\u0275APP_ID_RANDOM_PROVIDER:()=>ED,\u0275ChangeDetectorStatus:()=>xe,\u0275ComponentFactory:()=>oa,\u0275Console:()=>SD,\u0275DEFAULT_LOCALE_ID:()=>fo,\u0275INJECTOR_SCOPE:()=>ml,\u0275LContext:()=>Df,\u0275LifecycleHooksFeature:()=>Gh,\u0275LocaleDataIndex:()=>Xt,\u0275NG_COMP_DEF:()=>dt,\u0275NG_DIR_DEF:()=>xt,\u0275NG_ELEMENT_ID:()=>Ne,\u0275NG_INJ_DEF:()=>je,\u0275NG_MOD_DEF:()=>Bt,\u0275NG_PIPE_DEF:()=>kt,\u0275NG_PROV_DEF:()=>Ae,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>sa,\u0275NO_CHANGE:()=>an,\u0275NgModuleFactory:()=>Ra,\u0275NoopNgZone:()=>Hg,\u0275ReflectionCapabilities:()=>Dd,\u0275Render3ComponentFactory:()=>Lo,\u0275Render3ComponentRef:()=>Wh,\u0275Render3NgModuleRef:()=>Du,\u0275RuntimeError:()=>M,\u0275TESTABILITY:()=>Ug,\u0275TESTABILITY_GETTER:()=>zg,\u0275ViewRef:()=>No,\u0275_sanitizeHtml:()=>Wd,\u0275_sanitizeUrl:()=>hs,\u0275allowSanitizationBypassAndThrow:()=>So,\u0275bypassSanitizationTrustHtml:()=>ay,\u0275bypassSanitizationTrustResourceUrl:()=>dy,\u0275bypassSanitizationTrustScript:()=>cy,\u0275bypassSanitizationTrustStyle:()=>ly,\u0275bypassSanitizationTrustUrl:()=>uy,\u0275clearResolutionOfComponentResourcesQueue:()=>Ad,\u0275coerceToBoolean:()=>vE,\u0275compileComponent:()=>yg,\u0275compileDirective:()=>ju,\u0275compileNgModule:()=>fg,\u0275compileNgModuleDefs:()=>hg,\u0275compileNgModuleFactory:()=>Kg,\u0275compilePipe:()=>Ig,\u0275createInjector:()=>Vl,\u0275defaultIterableDiffers:()=>hE,\u0275defaultKeyValueDiffers:()=>pE,\u0275detectChanges:()=>Zh,\u0275devModeEqual:()=>Qh,\u0275findLocaleData:()=>du,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>ug,\u0275getDebugNode:()=>qo,\u0275getDebugNodeR2:()=>oE,\u0275getDirectives:()=>wm,\u0275getHostElement:()=>wu,\u0275getInjectableDef:()=>Tt,\u0275getLContext:()=>fi,\u0275getLocaleCurrencyCode:()=>R0,\u0275getLocalePluralCase:()=>Up,\u0275getSanitizationBypassType:()=>Ld,\u0275getUnknownElementStrictMode:()=>By,\u0275getUnknownPropertyStrictMode:()=>$y,\u0275global:()=>$,\u0275injectChangeDetectorRef:()=>lv,\u0275internalBootstrapApplication:()=>zD,\u0275isBoundToModule:()=>Yg,\u0275isDefaultChangeDetectionStrategy:()=>ht,\u0275isListLikeIterable:()=>Ts,\u0275isObservable:()=>ip,\u0275isPromise:()=>Ac,\u0275isStandalone:()=>Xo,\u0275isSubscribable:()=>np,\u0275ivyEnabled:()=>yE,\u0275makeDecorator:()=>Co,\u0275markDirty:()=>Jh,\u0275noSideEffects:()=>Fe,\u0275patchComponentDefWithScope:()=>Nu,\u0275publishDefaultGlobalUtils:()=>kD,\u0275publishGlobalUtil:()=>Yi,\u0275registerLocaleData:()=>P0,\u0275resetCompiledComponents:()=>rD,\u0275resetJitOptions:()=>tD,\u0275resolveComponentResources:()=>Id,\u0275setAllowDuplicateNgModuleIdsForTest:()=>Xv,\u0275setClassMetadata:()=>Sm,\u0275setCurrentInjector:()=>io,\u0275setDocument:()=>qv,\u0275setLocaleId:()=>fu,\u0275setUnknownElementStrictMode:()=>jy,\u0275setUnknownPropertyStrictMode:()=>Vy,\u0275store:()=>qh,\u0275stringify:()=>h,\u0275transitiveScopesFor:()=>ho,\u0275unregisterLocaleData:()=>x0,\u0275unwrapSafeValue:()=>Lr,\u0275whenRendered:()=>Jb,\u0275\u0275CopyDefinitionFeature:()=>Yh,\u0275\u0275FactoryTarget:()=>ii,\u0275\u0275InheritDefinitionFeature:()=>hc,\u0275\u0275NgOnChangesFeature:()=>Ei,\u0275\u0275ProvidersFeature:()=>vm,\u0275\u0275StandaloneFeature:()=>bm,\u0275\u0275advance:()=>eh,\u0275\u0275attribute:()=>gc,\u0275\u0275attributeInterpolate1:()=>vc,\u0275\u0275attributeInterpolate2:()=>yc,\u0275\u0275attributeInterpolate3:()=>_c,\u0275\u0275attributeInterpolate4:()=>bc,\u0275\u0275attributeInterpolate5:()=>Cc,\u0275\u0275attributeInterpolate6:()=>Dc,\u0275\u0275attributeInterpolate7:()=>Ec,\u0275\u0275attributeInterpolate8:()=>Tc,\u0275\u0275attributeInterpolateV:()=>wc,\u0275\u0275classMap:()=>vp,\u0275\u0275classMapInterpolate1:()=>wp,\u0275\u0275classMapInterpolate2:()=>Mp,\u0275\u0275classMapInterpolate3:()=>Sp,\u0275\u0275classMapInterpolate4:()=>Ip,\u0275\u0275classMapInterpolate5:()=>Op,\u0275\u0275classMapInterpolate6:()=>Ap,\u0275\u0275classMapInterpolate7:()=>Pp,\u0275\u0275classMapInterpolate8:()=>Rp,\u0275\u0275classMapInterpolateV:()=>xp,\u0275\u0275classProp:()=>Uc,\u0275\u0275contentQuery:()=>ng,\u0275\u0275defineComponent:()=>ve,\u0275\u0275defineDirective:()=>pt,\u0275\u0275defineInjectable:()=>at,\u0275\u0275defineInjector:()=>nt,\u0275\u0275defineNgModule:()=>be,\u0275\u0275definePipe:()=>se,\u0275\u0275directiveInject:()=>xo,\u0275\u0275disableBindings:()=>kn,\u0275\u0275element:()=>Ic,\u0275\u0275elementContainer:()=>Oc,\u0275\u0275elementContainerEnd:()=>Ta,\u0275\u0275elementContainerStart:()=>Ea,\u0275\u0275elementEnd:()=>Da,\u0275\u0275elementStart:()=>Ca,\u0275\u0275enableBindings:()=>yn,\u0275\u0275getCurrentView:()=>tp,\u0275\u0275getInheritedFactory:()=>pd,\u0275\u0275hostProperty:()=>cu,\u0275\u0275i18n:()=>fm,\u0275\u0275i18nApply:()=>pm,\u0275\u0275i18nAttributes:()=>hm,\u0275\u0275i18nEnd:()=>gu,\u0275\u0275i18nExp:()=>vu,\u0275\u0275i18nPostprocess:()=>mm,\u0275\u0275i18nStart:()=>mu,\u0275\u0275inject:()=>ti,\u0275\u0275injectAttribute:()=>Ya,\u0275\u0275invalidFactory:()=>hh,\u0275\u0275invalidFactoryDep:()=>qa,\u0275\u0275listener:()=>Pc,\u0275\u0275loadQuery:()=>ig,\u0275\u0275namespaceHTML:()=>en,\u0275\u0275namespaceMathML:()=>un,\u0275\u0275namespaceSVG:()=>cn,\u0275\u0275nextContext:()=>ap,\u0275\u0275ngDeclareClassMetadata:()=>bE,\u0275\u0275ngDeclareComponent:()=>CE,\u0275\u0275ngDeclareDirective:()=>_E,\u0275\u0275ngDeclareFactory:()=>DE,\u0275\u0275ngDeclareInjectable:()=>TE,\u0275\u0275ngDeclareInjector:()=>wE,\u0275\u0275ngDeclareNgModule:()=>ME,\u0275\u0275ngDeclarePipe:()=>SE,\u0275\u0275pipe:()=>Um,\u0275\u0275pipeBind1:()=>zm,\u0275\u0275pipeBind2:()=>Wm,\u0275\u0275pipeBind3:()=>Gm,\u0275\u0275pipeBind4:()=>Km,\u0275\u0275pipeBindV:()=>Ym,\u0275\u0275projection:()=>cp,\u0275\u0275projectionDef:()=>lp,\u0275\u0275property:()=>Mc,\u0275\u0275propertyInterpolate:()=>xc,\u0275\u0275propertyInterpolate1:()=>wa,\u0275\u0275propertyInterpolate2:()=>Fc,\u0275\u0275propertyInterpolate3:()=>kc,\u0275\u0275propertyInterpolate4:()=>Nc,\u0275\u0275propertyInterpolate5:()=>Lc,\u0275\u0275propertyInterpolate6:()=>jc,\u0275\u0275propertyInterpolate7:()=>Bc,\u0275\u0275propertyInterpolate8:()=>Vc,\u0275\u0275propertyInterpolateV:()=>$c,\u0275\u0275pureFunction0:()=>Im,\u0275\u0275pureFunction1:()=>Om,\u0275\u0275pureFunction2:()=>Am,\u0275\u0275pureFunction3:()=>Pm,\u0275\u0275pureFunction4:()=>Rm,\u0275\u0275pureFunction5:()=>xm,\u0275\u0275pureFunction6:()=>Fm,\u0275\u0275pureFunction7:()=>km,\u0275\u0275pureFunction8:()=>Nm,\u0275\u0275pureFunctionV:()=>Lm,\u0275\u0275queryRefresh:()=>eg,\u0275\u0275reference:()=>ep,\u0275\u0275registerNgModuleType:()=>tl,\u0275\u0275resetView:()=>xi,\u0275\u0275resolveBody:()=>Of,\u0275\u0275resolveDocument:()=>If,\u0275\u0275resolveWindow:()=>Sf,\u0275\u0275restoreView:()=>vi,\u0275\u0275sanitizeHtml:()=>Gd,\u0275\u0275sanitizeResourceUrl:()=>ul,\u0275\u0275sanitizeScript:()=>Yd,\u0275\u0275sanitizeStyle:()=>Kd,\u0275\u0275sanitizeUrl:()=>cl,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Jd,\u0275\u0275setComponentScope:()=>fe,\u0275\u0275setNgModuleScope:()=>ct,\u0275\u0275styleMap:()=>cr,\u0275\u0275styleMapInterpolate1:()=>Fp,\u0275\u0275styleMapInterpolate2:()=>kp,\u0275\u0275styleMapInterpolate3:()=>Np,\u0275\u0275styleMapInterpolate4:()=>Lp,\u0275\u0275styleMapInterpolate5:()=>jp,\u0275\u0275styleMapInterpolate6:()=>Bp,\u0275\u0275styleMapInterpolate7:()=>Vp,\u0275\u0275styleMapInterpolate8:()=>$p,\u0275\u0275styleMapInterpolateV:()=>Hp,\u0275\u0275styleProp:()=>Hc,\u0275\u0275stylePropInterpolate1:()=>eu,\u0275\u0275stylePropInterpolate2:()=>tu,\u0275\u0275stylePropInterpolate3:()=>nu,\u0275\u0275stylePropInterpolate4:()=>iu,\u0275\u0275stylePropInterpolate5:()=>ru,\u0275\u0275stylePropInterpolate6:()=>ou,\u0275\u0275stylePropInterpolate7:()=>su,\u0275\u0275stylePropInterpolate8:()=>au,\u0275\u0275stylePropInterpolateV:()=>lu,\u0275\u0275syntheticHostListener:()=>Rc,\u0275\u0275syntheticHostProperty:()=>uu,\u0275\u0275template:()=>Xh,\u0275\u0275templateRefExtractor:()=>ag,\u0275\u0275text:()=>Tp,\u0275\u0275textInterpolate:()=>Wc,\u0275\u0275textInterpolate1:()=>Sa,\u0275\u0275textInterpolate2:()=>Gc,\u0275\u0275textInterpolate3:()=>Kc,\u0275\u0275textInterpolate4:()=>Yc,\u0275\u0275textInterpolate5:()=>Qc,\u0275\u0275textInterpolate6:()=>Zc,\u0275\u0275textInterpolate7:()=>Jc,\u0275\u0275textInterpolate8:()=>Xc,\u0275\u0275textInterpolateV:()=>qc,\u0275\u0275trustConstantHtml:()=>Qd,\u0275\u0275trustConstantResourceUrl:()=>Zd,\u0275\u0275viewQuery:()=>tg});var n=a(7579),p=a(727),b=a(8306),u=a(6451),r=a(3099);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 f(e,t){for(const i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i])}function h(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(h).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 i=t.indexOf("\n");return-1===i?t:t.substring(0,i)}function m(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const d=c({__forward_ref__:c});function _(e){return e.__forward_ref__=_,e.toString=function(){return h(this())},e}function v(e){return y(e)?e():e}function y(e){return"function"==typeof e&&e.hasOwnProperty(d)&&e.__forward_ref__===_}class M extends Error{constructor(t,i){super(function A(e,t){return`NG0${Math.abs(e)}${t?": "+t.trim():""}`}(t,i)),this.code=t}}function k(e){return"string"==typeof e?e:null==e?"":String(e)}function j(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():k(e)}function V(e,t){throw new M(-201,!1)}function Oe(e,t,i,s){throw new Error(`ASSERTION ERROR: ${e}`+(null==s?"":` [Expected=> ${i} ${s} ${t} <=Actual]`))}function at(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Ke=at;function nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Tt(e){return Ct(e,Ae)||Ct(e,pe)}function Ct(e,t){return e.hasOwnProperty(t)?e[t]:null}function ze(e){return e&&(e.hasOwnProperty(je)||e.hasOwnProperty(We))?e[je]:null}const Ae=c({\u0275prov:c}),je=c({\u0275inj:c}),pe=c({ngInjectableDef:c}),We=c({ngInjectorDef:c});var Ie=(()=>((Ie=Ie||{})[Ie.Default=0]="Default",Ie[Ie.Host=1]="Host",Ie[Ie.Self=2]="Self",Ie[Ie.SkipSelf=4]="SkipSelf",Ie[Ie.Optional=8]="Optional",Ie))();let Ye;function De(e){const t=Ye;return Ye=e,t}function Le(e,t,i){const s=Tt(e);return s&&"root"==s.providedIn?void 0===s.value?s.value=s.factory():s.value:i&Ie.Optional?null:void 0!==t?t:void V(h(e))}function Fe(e){return{toString:e}.toString()}var ge=(()=>((ge=ge||{})[ge.OnPush=0]="OnPush",ge[ge.Default=1]="Default",ge))(),xe=(()=>((xe=xe||{})[xe.CheckOnce=0]="CheckOnce",xe[xe.Checked=1]="Checked",xe[xe.CheckAlways=2]="CheckAlways",xe[xe.Detached=3]="Detached",xe[xe.Errored=4]="Errored",xe[xe.Destroyed=5]="Destroyed",xe))();function ht(e){return null==e||e===ge.Default}var Me=(()=>{return(e=Me||(Me={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Me;var e})();const $=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),Te={},He=[],dt=c({\u0275cmp:c}),xt=c({\u0275dir:c}),kt=c({\u0275pipe:c}),Bt=c({\u0275mod:c}),Zt=c({\u0275fac:c}),Ne=c({__NG_ELEMENT_ID__:c});let $e=0;function ve(e){return Fe(()=>{const i=!0===e.standalone,s={},l={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:s,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ge.OnPush,directiveDefs:null,pipeDefs:null,standalone:i,dependencies:i&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||He,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Me.Emulated,id:"c"+$e++,styles:e.styles||He,_:null,setInput:null,schemas:e.schemas||null,tView:null},g=e.dependencies,C=e.features;return l.inputs=ke(e.inputs,s),l.outputs=ke(e.outputs),C&&C.forEach(w=>w(l)),l.directiveDefs=g?()=>("function"==typeof g?g():g).map(ee).filter(oe):null,l.pipeDefs=g?()=>("function"==typeof g?g():g).map(gt).filter(oe):null,l})}function fe(e,t,i){const s=e.\u0275cmp;s.directiveDefs=()=>("function"==typeof t?t():t).map(ee),s.pipeDefs=()=>("function"==typeof i?i():i).map(gt)}function ee(e){return ye(e)||qe(e)}function oe(e){return null!==e}const L={};function be(e){return Fe(()=>{const t={type:e.type,bootstrap:e.bootstrap||He,declarations:e.declarations||He,imports:e.imports||He,exports:e.exports||He,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(L[e.id]=e.type),t})}function ct(e,t){return Fe(()=>{const i=$t(e,!0);i.declarations=t.declarations||He,i.imports=t.imports||He,i.exports=t.exports||He})}function ke(e,t){if(null==e)return Te;const i={};for(const s in e)if(e.hasOwnProperty(s)){let l=e[s],g=l;Array.isArray(l)&&(g=l[1],l=l[0]),i[l]=s,t&&(t[l]=g)}return i}const pt=ve;function se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ye(e){return e[dt]||null}function qe(e){return e[xt]||null}function gt(e){return e[kt]||null}function $t(e,t){const i=e[Bt]||null;if(!i&&!0===t)throw new Error(`Type ${h(e)} does not have '\u0275mod' property.`);return i}function In(e){return Array.isArray(e)&&"object"==typeof e[1]}function Wn(e){return Array.isArray(e)&&!0===e[1]}function Qi(e){return 0!=(8&e.flags)}function Si(e){return 2==(2&e.flags)}function Zn(e){return 1==(1&e.flags)}function Hn(e){return null!==e.template}function Ci(e){return 0!=(256&e[2])}function mi(e,t){return e.hasOwnProperty(Zt)?e[Zt]:null}class Xi{constructor(t,i,s){this.previousValue=t,this.currentValue=i,this.firstChange=s}isFirstChange(){return this.firstChange}}function Ei(){return qi}function qi(e){return e.type.prototype.ngOnChanges&&(e.setInput=gr),er}function er(){const e=Ti(this),t=null==e?void 0:e.current;if(t){const i=e.previous;if(i===Te)e.previous=t;else for(let s in t)i[s]=t[s];e.current=null,this.ngOnChanges(t)}}function gr(e,t,i,s){const l=Ti(e)||function vr(e,t){return e[gi]=t}(e,{previous:Te,current:null}),g=l.current||(l.current={}),C=l.previous,w=this.declaredInputs[i],I=C[w];g[w]=new Xi(I&&I.currentValue,t,C===Te),e[s]=t}Ei.ngInherit=!0;const gi="__ngSimpleChanges__";function Ti(e){return e[gi]||null}let tr=null;const yr=e=>{tr=e},Xn=function(e,t,i){null!=tr&&tr(e,t,i)};function wn(e){for(;Array.isArray(e);)e=e[0];return e}function Bn(e,t){return wn(t[e])}function Dn(e,t){return wn(t[e.index])}function zi(e,t){return e.data[t]}function Mi(e,t){return e[t]}function Gn(e,t){const i=t[e];return In(i)?i:i[0]}function R(e){return 4==(4&e[2])}function ie(e){return 64==(64&e[2])}function le(e,t){return null==t?null:e[t]}function Be(e){e[18]=0}function bt(e,t){e[5]+=t;let i=e,s=e[3];for(;null!==s&&(1===t&&1===i[5]||-1===t&&0===i[5]);)s[5]+=t,i=s,s=s[3]}const ut={lFrame:P(null),bindingsEnabled:!0};function Fn(){return ut.bindingsEnabled}function yn(){ut.bindingsEnabled=!0}function kn(){ut.bindingsEnabled=!1}function St(){return ut.lFrame.lView}function sn(){return ut.lFrame.tView}function vi(e){return ut.lFrame.contextLView=e,e[8]}function xi(e){return ut.lFrame.contextLView=null,e}function An(){let e=Cr();for(;null!==e&&64===e.type;)e=e.parent;return e}function Cr(){return ut.lFrame.currentTNode}function F(){const e=ut.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function O(e,t){const i=ut.lFrame;i.currentTNode=e,i.isParent=t}function S(){return ut.lFrame.isParent}function te(){ut.lFrame.isParent=!1}function Vn(){const e=ut.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ci(){return ut.lFrame.bindingIndex}function Ls(e){return ut.lFrame.bindingIndex=e}function Wr(){return ut.lFrame.bindingIndex++}function Wi(e){const t=ut.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function js(e){ut.lFrame.inI18n=e}function Bs(e,t){const i=ut.lFrame;i.bindingIndex=i.bindingRootIndex=e,eo(t)}function eo(e){ut.lFrame.currentDirectiveIndex=e}function ts(e){const t=ut.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Vs(){return ut.lFrame.currentQueryIndex}function ns(e){ut.lFrame.currentQueryIndex=e}function za(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function W(e,t,i){if(i&Ie.SkipSelf){let l=t,g=e;for(;!(l=l.parent,null!==l||i&Ie.Host||(l=za(g),null===l||(g=g[15],10&l.type))););if(null===l)return!1;t=l,e=g}const s=ut.lFrame=T();return s.currentTNode=t,s.lView=e,!0}function D(e){const t=T(),i=e[1];ut.lFrame=t,t.currentTNode=i.firstChild,t.lView=e,t.tView=i,t.contextLView=e,t.bindingIndex=i.bindingStartIndex,t.inI18n=!1}function T(){const e=ut.lFrame,t=null===e?null:e.child;return null===t?P(e):t}function P(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 K(){const e=ut.lFrame;return ut.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Ce=K;function Ge(){const e=K();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 Et(){return ut.lFrame.selectedIndex}function Nt(e){ut.lFrame.selectedIndex=e}function Ft(){const e=ut.lFrame;return zi(e.tView,e.selectedIndex)}function cn(){ut.lFrame.currentNamespace="svg"}function un(){ut.lFrame.currentNamespace="math"}function en(){!function rn(){ut.lFrame.currentNamespace=null}()}function Un(e,t){for(let i=t.directiveStart,s=t.directiveEnd;i<s;i++){const g=e.data[i].type.prototype,{ngAfterContentInit:C,ngAfterContentChecked:w,ngAfterViewInit:I,ngAfterViewChecked:N,ngOnDestroy:J}=g;C&&(e.contentHooks||(e.contentHooks=[])).push(-i,C),w&&((e.contentHooks||(e.contentHooks=[])).push(i,w),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(i,w)),I&&(e.viewHooks||(e.viewHooks=[])).push(-i,I),N&&((e.viewHooks||(e.viewHooks=[])).push(i,N),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(i,N)),null!=J&&(e.destroyHooks||(e.destroyHooks=[])).push(i,J)}}function qn(e,t,i){rr(e,t,3,i)}function $n(e,t,i,s){(3&e[2])===i&&rr(e,t,i,s)}function ir(e,t){let i=e[2];(3&i)===t&&(i&=2047,i+=1,e[2]=i)}function rr(e,t,i,s){const g=null!=s?s:-1,C=t.length-1;let w=0;for(let I=void 0!==s?65535&e[18]:0;I<C;I++)if("number"==typeof t[I+1]){if(w=t[I],null!=s&&w>=s)break}else t[I]<0&&(e[18]+=65536),(w<g||-1==g)&&(ui(e,i,t,I),e[18]=(4294901760&e[18])+I+2),I++}function ui(e,t,i,s){const l=i[s]<0,g=i[s+1],w=e[l?-i[s]:i[s]];if(l){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,Xn(4,w,g);try{g.call(w)}finally{Xn(5,w,g)}}}else{Xn(4,w,g);try{g.call(w)}finally{Xn(5,w,g)}}}class Dr{constructor(t,i,s){this.factory=t,this.resolving=!1,this.canSeeViewProviders=i,this.injectImpl=s}}function Gt(e,t,i){let s=0;for(;s<i.length;){const l=i[s];if("number"==typeof l){if(0!==l)break;s++;const g=i[s++],C=i[s++],w=i[s++];e.setAttribute(t,C,w,g)}else{const g=l,C=i[++s];Nn(g)?e.setProperty(t,g,C):e.setAttribute(t,g,C),s++}}return s}function fn(e){return 3===e||4===e||6===e}function Nn(e){return 64===e.charCodeAt(0)}function _i(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let i=-1;for(let s=0;s<t.length;s++){const l=t[s];"number"==typeof l?i=l:0===i||di(e,i,l,null,-1===i||2===i?t[++s]:null)}}return e}function di(e,t,i,s,l){let g=0,C=e.length;if(-1===t)C=-1;else for(;g<e.length;){const w=e[g++];if("number"==typeof w){if(w===t){C=-1;break}if(w>t){C=g-1;break}}}for(;g<e.length;){const w=e[g];if("number"==typeof w)break;if(w===i){if(null===s)return void(null!==l&&(e[g+1]=l));if(s===e[g+1])return void(e[g+2]=l)}g++,null!==s&&g++,null!==l&&g++}-1!==C&&(e.splice(C,0,t),g=C+1),e.splice(g++,0,i),null!==s&&e.splice(g++,0,s),null!==l&&e.splice(g++,0,l)}function sr(e){return-1!==e}function Tn(e){return 32767&e}function Kr(e,t){let i=function Hs(e){return e>>16}(e),s=t;for(;i>0;)s=s[15],i--;return s}let ei=!0;function Gi(e){const t=ei;return ei=e,t}let _v=0;const Er={};function is(e,t){const i=Ga(e,t);if(-1!==i)return i;const s=t[1];s.firstCreatePass&&(e.injectorIndex=t.length,Wa(s.data,e),Wa(t,null),Wa(s.blueprint,null));const l=Us(e,t),g=e.injectorIndex;if(sr(l)){const C=Tn(l),w=Kr(l,t),I=w[1].data;for(let N=0;N<8;N++)t[g+N]=w[C+N]|I[C+N]}return t[g+8]=l,g}function Wa(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ga(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Us(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let i=0,s=null,l=t;for(;null!==l;){if(s=md(l),null===s)return-1;if(i++,l=l[15],-1!==s.injectorIndex)return s.injectorIndex|i<<16}return-1}function zs(e,t,i){!function bv(e,t,i){let s;"string"==typeof i?s=i.charCodeAt(0)||0:i.hasOwnProperty(Ne)&&(s=i[Ne]),null==s&&(s=i[Ne]=_v++);const l=255&s;t.data[e+(l>>5)]|=1<<l}(e,t,i)}function ld(e,t,i){if(i&Ie.Optional)return e;V()}function cd(e,t,i,s){if(i&Ie.Optional&&void 0===s&&(s=null),0==(i&(Ie.Self|Ie.Host))){const l=e[9],g=De(void 0);try{return l?l.get(t,s,i&Ie.Optional):Le(t,s,i&Ie.Optional)}finally{De(g)}}return ld(s,0,i)}function ud(e,t,i,s=Ie.Default,l){if(null!==e){if(1024&t[2]){const C=function wv(e,t,i,s,l){let g=e,C=t;for(;null!==g&&null!==C&&1024&C[2]&&!(256&C[2]);){const w=dd(g,C,i,s|Ie.Self,Er);if(w!==Er)return w;let I=g.parent;if(!I){const N=C[21];if(N){const J=N.get(i,Er,s);if(J!==Er)return J}I=md(C),C=C[15]}g=I}return l}(e,t,i,s,Er);if(C!==Er)return C}const g=dd(e,t,i,s,Er);if(g!==Er)return g}return cd(t,i,s,l)}function dd(e,t,i,s,l){const g=function Ev(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ne)?e[Ne]:void 0;return"number"==typeof t?t>=0?255&t:Tv:t}(i);if("function"==typeof g){if(!W(t,e,s))return s&Ie.Host?ld(l,0,s):cd(t,i,s,l);try{const C=g(s);if(null!=C||s&Ie.Optional)return C;V()}finally{Ce()}}else if("number"==typeof g){let C=null,w=Ga(e,t),I=-1,N=s&Ie.Host?t[16][6]:null;for((-1===w||s&Ie.SkipSelf)&&(I=-1===w?Us(e,t):t[w+8],-1!==I&&hd(s,!1)?(C=t[1],w=Tn(I),t=Kr(I,t)):w=-1);-1!==w;){const J=t[1];if(fd(g,w,J.data)){const Ee=Dv(w,t,i,C,s,N);if(Ee!==Er)return Ee}I=t[w+8],-1!==I&&hd(s,t[1].data[w+8]===N)&&fd(g,w,t)?(C=J,w=Tn(I),t=Kr(I,t)):w=-1}}return l}function Dv(e,t,i,s,l,g){const C=t[1],w=C.data[e+8],J=Ws(w,C,i,null==s?Si(w)&&ei:s!=C&&0!=(3&w.type),l&Ie.Host&&g===w);return null!==J?rs(t,C,J,w):Er}function Ws(e,t,i,s,l){const g=e.providerIndexes,C=t.data,w=1048575&g,I=e.directiveStart,J=g>>20,Je=l?w+J:e.directiveEnd;for(let ot=s?w:w+J;ot<Je;ot++){const Mt=C[ot];if(ot<I&&i===Mt||ot>=I&&Mt.type===i)return ot}if(l){const ot=C[I];if(ot&&Hn(ot)&&ot.type===i)return I}return null}function rs(e,t,i,s){let l=e[i];const g=t.data;if(function Fi(e){return e instanceof Dr}(l)){const C=l;C.resolving&&function Y(e,t){const i=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,`Circular dependency in DI detected for ${e}${i}`)}(j(g[i]));const w=Gi(C.canSeeViewProviders);C.resolving=!0;const I=C.injectImpl?De(C.injectImpl):null;W(e,s,Ie.Default);try{l=e[i]=C.factory(void 0,g,e,s),t.firstCreatePass&&i>=s.directiveStart&&function Sn(e,t,i){const{ngOnChanges:s,ngOnInit:l,ngDoCheck:g}=t.type.prototype;if(s){const C=qi(t);(i.preOrderHooks||(i.preOrderHooks=[])).push(e,C),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,C)}l&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-e,l),g&&((i.preOrderHooks||(i.preOrderHooks=[])).push(e,g),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(e,g))}(i,g[i],t)}finally{null!==I&&De(I),Gi(w),C.resolving=!1,Ce()}}return l}function fd(e,t,i){return!!(i[t+(e>>5)]&1<<e)}function hd(e,t){return!(e&Ie.Self||e&Ie.Host&&t)}class vo{constructor(t,i){this._tNode=t,this._lView=i}get(t,i,s){return ud(this._tNode,this._lView,t,s,i)}}function Tv(){return new vo(An(),St())}function pd(e){return Fe(()=>{const t=e.prototype.constructor,i=t[Zt]||Ka(t),s=Object.prototype;let l=Object.getPrototypeOf(e.prototype).constructor;for(;l&&l!==s;){const g=l[Zt]||Ka(l);if(g&&g!==i)return g;l=Object.getPrototypeOf(l)}return g=>new g})}function Ka(e){return y(e)?()=>{const t=Ka(v(e));return t&&t()}:mi(e)}function md(e){const t=e[1],i=t.type;return 2===i?t.declTNode:1===i?e[6]:null}function Ya(e){return function Cv(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const i=e.attrs;if(i){const s=i.length;let l=0;for(;l<s;){const g=i[l];if(fn(g))break;if(0===g)l+=2;else if("number"==typeof g)for(l++;l<s&&"string"==typeof i[l];)l++;else{if(g===t)return i[l+1];l+=2}}}return null}(An(),e)}const yo="__annotations__",_o="__parameters__",bo="__prop__metadata__";function Co(e,t,i,s,l){return Fe(()=>{const g=Qa(t);function C(...w){if(this instanceof C)return g.call(this,...w),this;const I=new C(...w);return function(J){return l&&l(J,...w),(J.hasOwnProperty(yo)?J[yo]:Object.defineProperty(J,yo,{value:[]})[yo]).push(I),s&&s(J),J}}return i&&(C.prototype=Object.create(i.prototype)),C.prototype.ngMetadataName=e,C.annotationCls=C,C})}function Qa(e){return function(...i){if(e){const s=e(...i);for(const l in s)this[l]=s[l]}}}function Do(e,t,i){return Fe(()=>{const s=Qa(t);function l(...g){if(this instanceof l)return s.apply(this,g),this;const C=new l(...g);return w.annotation=C,w;function w(I,N,J){const Ee=I.hasOwnProperty(_o)?I[_o]:Object.defineProperty(I,_o,{value:[]})[_o];for(;Ee.length<=J;)Ee.push(null);return(Ee[J]=Ee[J]||[]).push(C),I}}return i&&(l.prototype=Object.create(i.prototype)),l.prototype.ngMetadataName=e,l.annotationCls=l,l})}function Yr(e,t,i,s){return Fe(()=>{const l=Qa(t);function g(...C){if(this instanceof g)return l.apply(this,C),this;const w=new g(...C);return function I(N,J){const Ee=N.constructor,Je=Ee.hasOwnProperty(bo)?Ee[bo]:Object.defineProperty(Ee,bo,{value:{}})[bo];Je[J]=Je.hasOwnProperty(J)&&Je[J]||[],Je[J].unshift(w),s&&s(N,J,...C)}}return i&&(g.prototype=Object.create(i.prototype)),g.prototype.ngMetadataName=e,g.annotationCls=g,g})}const gd=Do("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Ya(e)}));class Pn{constructor(t,i){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof i?this.__NG_ELEMENT_ID__=i:void 0!==i&&(this.\u0275prov=at({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Mv=new Pn("AnalyzeForEntryComponents");class os{}const Sv=Yr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),os),Iv=Yr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),os),Ov=Yr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),os),Av=Yr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),os);var ii=(()=>((ii=ii||{})[ii.Directive=0]="Directive",ii[ii.Component=1]="Component",ii[ii.Injectable=2]="Injectable",ii[ii.Pipe=3]="Pipe",ii[ii.NgModule=4]="NgModule",ii))();function ri(e){const t=$.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Gs=Function;function ss(e){return"function"==typeof e}function Ni(e,t){void 0===t&&(t=e);for(let i=0;i<e.length;i++){let s=e[i];Array.isArray(s)?(t===e&&(t=e.slice(0,i)),Ni(s,t)):t!==e&&t.push(s)}return t}function Nr(e,t){e.forEach(i=>Array.isArray(i)?Nr(i,t):t(i))}function yd(e,t,i){t>=e.length?e.push(i):e.splice(t,0,i)}function Ks(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function as(e,t){const i=[];for(let s=0;s<e;s++)i.push(t);return i}function Li(e,t,i){let s=Eo(e,t);return s>=0?e[1|s]=i:(s=~s,function xv(e,t,i,s){let l=e.length;if(l==t)e.push(i,s);else if(1===l)e.push(s,e[0]),e[0]=i;else{for(l--,e.push(e[l-1],e[l]);l>t;)e[l]=e[l-2],l--;e[t]=i,e[t+1]=s}}(e,s,t,i)),s}function Za(e,t){const i=Eo(e,t);if(i>=0)return e[1|i]}function Eo(e,t){return function Cd(e,t,i){let s=0,l=e.length>>i;for(;l!==s;){const g=s+(l-s>>1),C=e[g<<i];if(t===C)return g<<i;C>t?l=g:s=g+1}return~(l<<i)}(e,t,1)}const Fv=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,kv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Nv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,Lv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Dd{constructor(t){this._reflect=t||$.Reflect}factory(t){return(...i)=>new t(...i)}_zipTypesAndAnnotations(t,i){let s;s=as(void 0===t?i.length:t.length);for(let l=0;l<s.length;l++)s[l]=void 0===t?[]:t[l]&&t[l]!=Object?[t[l]]:[],i&&null!=i[l]&&(s[l]=s[l].concat(i[l]));return s}_ownParameters(t,i){if(function jv(e){return Fv.test(e)||Lv.test(e)||kv.test(e)&&!Nv.test(e)}(t.toString()))return null;if(t.parameters&&t.parameters!==i.parameters)return t.parameters;const l=t.ctorParameters;if(l&&l!==i.ctorParameters){const w="function"==typeof l?l():l,I=w.map(J=>J&&J.type),N=w.map(J=>J&&Ja(J.decorators));return this._zipTypesAndAnnotations(I,N)}const g=t.hasOwnProperty(_o)&&t[_o],C=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return C||g?this._zipTypesAndAnnotations(C,g):as(t.length)}parameters(t){if(!ss(t))return[];const i=Ys(t);let s=this._ownParameters(t,i);return!s&&i!==Object&&(s=this.parameters(i)),s||[]}_ownAnnotations(t,i){if(t.annotations&&t.annotations!==i.annotations){let s=t.annotations;return"function"==typeof s&&s.annotations&&(s=s.annotations),s}return t.decorators&&t.decorators!==i.decorators?Ja(t.decorators):t.hasOwnProperty(yo)?t[yo]:null}annotations(t){if(!ss(t))return[];const i=Ys(t),s=this._ownAnnotations(t,i)||[];return(i!==Object?this.annotations(i):[]).concat(s)}_ownPropMetadata(t,i){if(t.propMetadata&&t.propMetadata!==i.propMetadata){let s=t.propMetadata;return"function"==typeof s&&s.propMetadata&&(s=s.propMetadata),s}if(t.propDecorators&&t.propDecorators!==i.propDecorators){const s=t.propDecorators,l={};return Object.keys(s).forEach(g=>{l[g]=Ja(s[g])}),l}return t.hasOwnProperty(bo)?t[bo]:null}propMetadata(t){if(!ss(t))return{};const i=Ys(t),s={};if(i!==Object){const g=this.propMetadata(i);Object.keys(g).forEach(C=>{s[C]=g[C]})}const l=this._ownPropMetadata(t,i);return l&&Object.keys(l).forEach(g=>{const C=[];s.hasOwnProperty(g)&&C.push(...s[g]),C.push(...l[g]),s[g]=C}),s}ownPropMetadata(t){return ss(t)&&this._ownPropMetadata(t,Ys(t))||{}}hasLifecycleHook(t,i){return t instanceof Gs&&i in t.prototype}}function Ja(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Ys(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const Qr={},Xa="__NG_DI_FLAG__",Qs="ngTempTokenPath",Vv=/\n/gm,Ed="__source";let ls;function io(e){const t=ls;return ls=e,t}function Hv(e,t=Ie.Default){if(void 0===ls)throw new M(-203,!1);return null===ls?Le(e,void 0,t):ls.get(e,t&Ie.Optional?null:void 0,t)}function ti(e,t=Ie.Default){return(function z(){return Ye}()||Hv)(v(e),t)}function qa(e){throw new M(202,!1)}function Td(e,t=Ie.Default){return"number"!=typeof t&&(t=0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)),ti(e,t)}function el(e){const t=[];for(let i=0;i<e.length;i++){const s=v(e[i]);if(Array.isArray(s)){if(0===s.length)throw new M(900,!1);let l,g=Ie.Default;for(let C=0;C<s.length;C++){const w=s[C],I=Uv(w);"number"==typeof I?-1===I?l=w.token:g|=I:l=w}t.push(ti(l,g))}else t.push(ti(s))}return t}function cs(e,t){return e[Xa]=t,e.prototype[Xa]=t,e}function Uv(e){return e[Xa]}const Zs=cs(Do("Inject",e=>({token:e})),-1),us=cs(Do("Optional"),8),Js=cs(Do("Self"),2),To=cs(Do("SkipSelf"),4),wd=cs(Do("Host"),1);let Md=null;function ds(){return Md=Md||new Dd}function Xs(e){return Sd(ds().parameters(e))}function Sd(e){return e.map(t=>function Gv(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let i=0;i<e.length;i++){const s=e[i];if(void 0===s)continue;const l=Object.getPrototypeOf(s);if(s instanceof us||"Optional"===l.ngMetadataName)t.optional=!0;else if(s instanceof To||"SkipSelf"===l.ngMetadataName)t.skipSelf=!0;else if(s instanceof Js||"Self"===l.ngMetadataName)t.self=!0;else if(s instanceof wd||"Host"===l.ngMetadataName)t.host=!0;else if(s instanceof Zs)t.token=s.token;else if(s instanceof gd){if(void 0===s.attributeName)throw new M(204,!1);t.attribute=s.attributeName}else t.token=s}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(t))}function Id(e){const t=[],i=new Map;function s(l){let g=i.get(l);if(!g){const C=e(l);i.set(l,g=C.then(Qv))}return g}return wo.forEach((l,g)=>{const C=[];l.templateUrl&&C.push(s(l.templateUrl).then(Ee=>{l.template=Ee}));const w=l.styleUrls,I=l.styles||(l.styles=[]),N=l.styles.length;w&&w.forEach((Ee,Je)=>{I.push(""),C.push(s(Ee).then(ot=>{I[N+Je]=ot,w.splice(w.indexOf(Ee),1),0==w.length&&(l.styleUrls=void 0)}))});const J=Promise.all(C).then(()=>function Zv(e){fs.delete(e)}(g));t.push(J)}),Ad(),Promise.all(t).then(()=>{})}let wo=new Map;const fs=new Set;function Od(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function Ad(){const e=wo;return wo=new Map,e}function Qv(e){return"string"==typeof e?e:e.text()}const qs=new Map;let nl,ea,ta,Pd=!0;function tl(e,t){(function Jv(e,t,i){if(t&&t!==i&&Pd)throw new Error(`Duplicate module registered for ${e} - ${h(t)} vs ${h(t.name)}`)})(t,qs.get(t)||null,e),qs.set(t,e)}function Rd(e){return qs.get(e)}function Xv(e){Pd=!e}function qv(e){nl=e}function xd(){return void 0!==nl?nl:"undefined"!=typeof document?document:void 0}function il(){if(void 0===ea&&(ea=null,$.trustedTypes))try{ea=$.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ea}function Mo(e){var t;return(null===(t=il())||void 0===t?void 0:t.createHTML(e))||e}function rl(){if(void 0===ta&&(ta=null,$.trustedTypes))try{ta=$.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return ta}function Fd(e){var t;return(null===(t=rl())||void 0===t?void 0:t.createHTML(e))||e}function kd(e){var t;return(null===(t=rl())||void 0===t?void 0:t.createScript(e))||e}function Nd(e){var t;return(null===(t=rl())||void 0===t?void 0:t.createScriptURL(e))||e}class ro{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class ny extends ro{getTypeName(){return"HTML"}}class iy extends ro{getTypeName(){return"Style"}}class ry extends ro{getTypeName(){return"Script"}}class oy extends ro{getTypeName(){return"URL"}}class sy extends ro{getTypeName(){return"ResourceURL"}}function Lr(e){return e instanceof ro?e.changingThisBreaksApplicationSecurity:e}function So(e,t){const i=Ld(e);if(null!=i&&i!==t){if("ResourceURL"===i&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${i} (see https://g.co/ng/security#xss)`)}return i===t}function Ld(e){return e instanceof ro&&e.getTypeName()||null}function ay(e){return new ny(e)}function ly(e){return new iy(e)}function cy(e){return new ry(e)}function uy(e){return new oy(e)}function dy(e){return new sy(e)}function jd(e){const t=new hy(e);return function py(){try{return!!(new window.DOMParser).parseFromString(Mo(""),"text/html")}catch(e){return!1}}()?new fy(t):t}class fy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const i=(new window.DOMParser).parseFromString(Mo(t),"text/html").body;return null===i?this.inertDocumentHelper.getInertBodyElement(t):(i.removeChild(i.firstChild),i)}catch(i){return null}}}class hy{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const i=this.inertDocument.createElement("html");this.inertDocument.appendChild(i);const s=this.inertDocument.createElement("body");i.appendChild(s)}}getInertBodyElement(t){const i=this.inertDocument.createElement("template");if("content"in i)return i.innerHTML=Mo(t),i;const s=this.inertDocument.createElement("body");return s.innerHTML=Mo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(s),s}stripCustomNsAttrs(t){const i=t.attributes;for(let l=i.length-1;0<l;l--){const C=i.item(l).name;("xmlns:ns1"===C||0===C.indexOf("ns1:"))&&t.removeAttribute(C)}let s=t.firstChild;for(;s;)s.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(s),s=s.nextSibling}}const my=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,gy=/^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 hs(e){return(e=String(e)).match(my)||e.match(gy)?e:"unsafe:"+e}function Bd(e){return(e=String(e)).split(",").map(t=>hs(t.trim())).join(", ")}function Tr(e){const t={};for(const i of e.split(","))t[i]=!0;return t}function ps(...e){const t={};for(const i of e)for(const s in i)i.hasOwnProperty(s)&&(t[s]=!0);return t}const Vd=Tr("area,br,col,hr,img,wbr"),$d=Tr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Hd=Tr("rp,rt"),ol=ps(Vd,ps($d,Tr("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")),ps(Hd,Tr("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")),ps(Hd,$d)),sl=Tr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),al=Tr("srcset"),Ud=ps(sl,al,Tr("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"),Tr("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")),vy=Tr("script,style,template");class yy{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let i=t.firstChild,s=!0;for(;i;)if(i.nodeType===Node.ELEMENT_NODE?s=this.startElement(i):i.nodeType===Node.TEXT_NODE?this.chars(i.nodeValue):this.sanitizedSomething=!0,s&&i.firstChild)i=i.firstChild;else for(;i;){i.nodeType===Node.ELEMENT_NODE&&this.endElement(i);let l=this.checkClobberedElement(i,i.nextSibling);if(l){i=l;break}i=this.checkClobberedElement(i,i.parentNode)}return this.buf.join("")}startElement(t){const i=t.nodeName.toLowerCase();if(!ol.hasOwnProperty(i))return this.sanitizedSomething=!0,!vy.hasOwnProperty(i);this.buf.push("<"),this.buf.push(i);const s=t.attributes;for(let l=0;l<s.length;l++){const g=s.item(l),C=g.name,w=C.toLowerCase();if(!Ud.hasOwnProperty(w)){this.sanitizedSomething=!0;continue}let I=g.value;sl[w]&&(I=hs(I)),al[w]&&(I=Bd(I)),this.buf.push(" ",C,'="',zd(I),'"')}return this.buf.push(">"),!0}endElement(t){const i=t.nodeName.toLowerCase();ol.hasOwnProperty(i)&&!Vd.hasOwnProperty(i)&&(this.buf.push("</"),this.buf.push(i),this.buf.push(">"))}chars(t){this.buf.push(zd(t))}checkClobberedElement(t,i){if(i&&(t.compareDocumentPosition(i)&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 i}}const _y=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,by=/([^\#-~ |!])/g;function zd(e){return e.replace(/&/g,"&amp;").replace(_y,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(by,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let na;function Wd(e,t){let i=null;try{na=na||jd(e);let s=t?String(t):"";i=na.getInertBodyElement(s);let l=5,g=s;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,s=g,g=i.innerHTML,i=na.getInertBodyElement(s)}while(s!==g);return Mo((new yy).sanitizeChildren(ll(i)||i))}finally{if(i){const s=ll(i)||i;for(;s.firstChild;)s.removeChild(s.firstChild)}}}function ll(e){return"content"in e&&function Cy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Qn=(()=>((Qn=Qn||{})[Qn.NONE=0]="NONE",Qn[Qn.HTML=1]="HTML",Qn[Qn.STYLE=2]="STYLE",Qn[Qn.SCRIPT=3]="SCRIPT",Qn[Qn.URL=4]="URL",Qn[Qn.RESOURCE_URL=5]="RESOURCE_URL",Qn))();function Gd(e){const t=ms();return t?Fd(t.sanitize(Qn.HTML,e)||""):So(e,"HTML")?Fd(Lr(e)):Wd(xd(),k(e))}function Kd(e){const t=ms();return t?t.sanitize(Qn.STYLE,e)||"":So(e,"Style")?Lr(e):k(e)}function cl(e){const t=ms();return t?t.sanitize(Qn.URL,e)||"":So(e,"URL")?Lr(e):hs(k(e))}function ul(e){const t=ms();if(t)return Nd(t.sanitize(Qn.RESOURCE_URL,e)||"");if(So(e,"ResourceURL"))return Nd(Lr(e));throw new M(904,!1)}function Yd(e){const t=ms();if(t)return kd(t.sanitize(Qn.SCRIPT,e)||"");if(So(e,"Script"))return kd(Lr(e));throw new M(905,!1)}function Qd(e){return Mo(e[0])}function Zd(e){return function ty(e){var t;return(null===(t=il())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Jd(e,t,i){return function Dy(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?ul:cl}(t,i)(e)}function ms(){const e=St();return e&&e[12]}const dl=new Pn("ENVIRONMENT_INITIALIZER"),fl=new Pn("INJECTOR",-1),Xd=new Pn("INJECTOR_DEF_TYPES");class qd{get(t,i=Qr){if(i===Qr){const s=new Error(`NullInjectorError: No provider for ${h(t)}!`);throw s.name="NullInjectorError",s}return i}}function ef(...e){return{\u0275providers:tf(0,e)}}function tf(e,...t){const i=[],s=new Set;let l;return Nr(t,g=>{const C=g;hl(C,i,[],s)&&(l||(l=[]),l.push(C))}),void 0!==l&&nf(l,i),i}function nf(e,t){for(let i=0;i<e.length;i++){const{providers:l}=e[i];Nr(l,g=>{t.push(g)})}}function hl(e,t,i,s){if(!(e=v(e)))return!1;let l=null,g=ze(e);const C=!g&&ye(e);if(g||C){if(C&&!C.standalone)return!1;l=e}else{const I=e.ngModule;if(g=ze(I),!g)return!1;l=I}const w=s.has(l);if(C){if(w)return!1;if(s.add(l),C.dependencies){const I="function"==typeof C.dependencies?C.dependencies():C.dependencies;for(const N of I)hl(N,t,i,s)}}else{if(!g)return!1;{if(null!=g.imports&&!w){let N;s.add(l);try{Nr(g.imports,J=>{hl(J,t,i,s)&&(N||(N=[]),N.push(J))})}finally{}void 0!==N&&nf(N,t)}if(!w){const N=mi(l)||(()=>new l);t.push({provide:l,useFactory:N,deps:He},{provide:Xd,useValue:l,multi:!0},{provide:dl,useValue:()=>ti(l),multi:!0})}const I=g.providers;null==I||w||Nr(I,J=>{t.push(J)})}}return l!==e&&void 0!==e.providers}const Ey=c({provide:String,useValue:c});function pl(e){return null!==e&&"object"==typeof e&&Ey in e}function oo(e){return"function"==typeof e}const ml=new Pn("Set Injector scope."),ia={},wy={};let gl;function ra(){return void 0===gl&&(gl=new qd),gl}class so{}class af extends so{constructor(t,i,s,l){super(),this.parent=i,this.source=s,this.scopes=l,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yl(t,C=>this.processProvider(C)),this.records.set(fl,Io(void 0,this)),l.has("environment")&&this.records.set(so,Io(void 0,this));const g=this.records.get(ml);null!=g&&"string"==typeof g.value&&this.scopes.add(g.value),this.injectorDefTypes=new Set(this.get(Xd.multi,He,Ie.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const i=io(this),s=De(void 0);try{return t()}finally{io(i),De(s)}}get(t,i=Qr,s=Ie.Default){this.assertNotDestroyed();const l=io(this),g=De(void 0);try{if(!(s&Ie.SkipSelf)){let w=this.records.get(t);if(void 0===w){const I=function Ay(e){return"function"==typeof e||"object"==typeof e&&e instanceof Pn}(t)&&Tt(t);w=I&&this.injectableDefInScope(I)?Io(vl(t),ia):null,this.records.set(t,w)}if(null!=w)return this.hydrate(t,w)}return(s&Ie.Self?ra():this.parent).get(t,i=s&Ie.Optional&&i===Qr?null:i)}catch(C){if("NullInjectorError"===C.name){if((C[Qs]=C[Qs]||[]).unshift(h(t)),l)throw C;return function zv(e,t,i,s){const l=e[Qs];throw t[Ed]&&l.unshift(t[Ed]),e.message=function Wv(e,t,i,s=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let l=h(t);if(Array.isArray(t))l=t.map(h).join(" -> ");else if("object"==typeof t){let g=[];for(let C in t)if(t.hasOwnProperty(C)){let w=t[C];g.push(C+":"+("string"==typeof w?JSON.stringify(w):h(w)))}l=`{${g.join(", ")}}`}return`${i}${s?"("+s+")":""}[${l}]: ${e.replace(Vv,"\n ")}`}("\n"+e.message,l,i,s),e.ngTokenPath=l,e[Qs]=null,e}(C,t,"R3InjectorError",this.source)}throw C}finally{De(g),io(l)}}resolveInjectorInitializers(){const t=io(this),i=De(void 0);try{const s=this.get(dl.multi,He,Ie.Self);for(const l of s)l()}finally{io(t),De(i)}}toString(){const t=[],i=this.records;for(const s of i.keys())t.push(h(s));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){let i=oo(t=v(t))?t:v(t&&t.provide);const s=function Sy(e){return pl(e)?Io(void 0,e.useValue):Io(lf(e),ia)}(t);if(oo(t)||!0!==t.multi)this.records.get(i);else{let l=this.records.get(i);l||(l=Io(void 0,ia,!0),l.factory=()=>el(l.multi),this.records.set(i,l)),i=t,l.multi.push(t)}this.records.set(i,s)}hydrate(t,i){return i.value===ia&&(i.value=wy,i.value=i.factory()),"object"==typeof i.value&&i.value&&function Oy(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(i.value)&&this._ngOnDestroyHooks.add(i.value),i.value}injectableDefInScope(t){if(!t.providedIn)return!1;const i=v(t.providedIn);return"string"==typeof i?"any"===i||this.scopes.has(i):this.injectorDefTypes.has(i)}}function vl(e){const t=Tt(e),i=null!==t?t.factory:mi(e);if(null!==i)return i;if(e instanceof Pn)throw new M(204,!1);if(e instanceof Function)return function My(e){const t=e.length;if(t>0)throw as(t,"?"),new M(204,!1);const i=function st(e){const t=e&&(e[Ae]||e[pe]);if(t){const i=function It(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 "${i}" 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 "${i}" class.`),t}return null}(e);return null!==i?()=>i.factory(e):()=>new e}(e);throw new M(204,!1)}function lf(e,t,i){let s;if(oo(e)){const l=v(e);return mi(l)||vl(l)}if(pl(e))s=()=>v(e.useValue);else if(function sf(e){return!(!e||!e.useFactory)}(e))s=()=>e.useFactory(...el(e.deps||[]));else if(function rf(e){return!(!e||!e.useExisting)}(e))s=()=>ti(v(e.useExisting));else{const l=v(e&&(e.useClass||e.provide));if(!function Iy(e){return!!e.deps}(e))return mi(l)||vl(l);s=()=>new l(...el(e.deps))}return s}function Io(e,t,i=!1){return{factory:e,value:t,multi:i?[]:void 0}}function Py(e){return!!e.\u0275providers}function yl(e,t){for(const i of e)Array.isArray(i)?yl(i,t):Py(i)?yl(i.\u0275providers,t):t(i)}class cf{}class oa{}class xy{resolveComponentFactory(t){throw function Ry(e){const t=Error(`No component factory found for ${h(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let gs=(()=>{class e{}return e.NULL=new xy,e})();function Fy(){return Oo(An(),St())}function Oo(e,t){return new vs(Dn(e,t))}let vs=(()=>{class e{constructor(i){this.nativeElement=i}}return e.__NG_ELEMENT_ID__=Fy,e})();function ky(e){return e instanceof vs?e.nativeElement:e}class df{}let Ny=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function Ly(){const e=St(),i=Gn(An().index,e);return(In(i)?i:e)[11]}(),e})(),ff=(()=>{class e{}return e.\u0275prov=at({token:e,providedIn:"root",factory:()=>null}),e})();class hf{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const pf=new hf("14.1.0"),sa={},mf={name:"custom-elements"},gf={name:"no-errors-schema"};let _l=!1;function jy(e){_l=e}function By(){return _l}let bl=!1;function Vy(e){bl=e}function $y(){return bl}const Dl="ngOriginalError";function El(e){return e[Dl]}class ys{constructor(){this._console=console}handleError(t){const i=this._findOriginalError(t);this._console.error("ERROR",t),i&&this._console.error("ORIGINAL ERROR",i)}_findOriginalError(t){let i=t&&El(t);for(;i&&El(i);)i=El(i);return i||null}}const Wy=/^>|^->|<!--|-->|--!>|<!-$/g,Gy=/(<|>)/;const Tl=new Map;let Xy=0;function Cf(e){return Tl.get(e)||null}class Df{constructor(t,i,s){this.lViewId=t,this.nodeIndex=i,this.native=s}get lView(){return Cf(this.lViewId)}}function fi(e){let t=_s(e);if(t){if(In(t)){const i=t;let s,l,g;if(function n_(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(s=wf(i,e),-1==s)throw new Error("The provided component was not found in the application");l=e}else if(function i_(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(s=function o_(e,t){let i=e[1].firstChild;for(;i;){const l=i.directiveEnd;for(let g=i.directiveStart;g<l;g++)if(e[g]===t)return i.index;i=r_(i)}return-1}(i,e),-1==s)throw new Error("The provided directive was not found in the application");g=Mf(s,i,!1)}else if(s=Tf(i,e),-1==s)return null;const C=wn(i[s]),w=_s(C),I=w&&!Array.isArray(w)?w:wl(i,s,C);if(l&&void 0===I.component&&(I.component=l,hi(I.component,I)),g&&void 0===I.directives){I.directives=g;for(let N=0;N<g.length;N++)hi(g[N],I)}hi(I.native,I),t=I}}else{const i=e;let s=i;for(;s=s.parentNode;){const l=_s(s);if(l){const g=Array.isArray(l)?l:l.lView;if(!g)return null;const C=Tf(g,i);if(C>=0){const w=wn(g[C]),I=wl(g,C,w);hi(w,I),t=I;break}}}}return t||null}function wl(e,t,i){return new Df(e[20],t,i)}function Ef(e){let i,t=_s(e);if(In(t)){const s=t,l=wf(s,e);i=Gn(l,s);const g=wl(s,l,i[0]);g.component=e,hi(e,g),hi(g.native,g)}else i=Gn(t.nodeIndex,t.lView);return i}const Ml="__ngContext__";function hi(e,t){In(t)?(e[Ml]=t[20],function e_(e){Tl.set(e[20],e)}(t)):e[Ml]=t}function _s(e){const t=e[Ml];return"number"==typeof t?Cf(t):t||null}function Sl(e){const t=_s(e);return t?In(t)?t:t.lView:null}function Tf(e,t){const i=e[1];for(let s=22;s<i.bindingStartIndex;s++)if(wn(e[s])===t)return s;return-1}function r_(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 wf(e,t){const i=e[1].components;if(i)for(let s=0;s<i.length;s++){const l=i[s];if(Gn(l,e)[8]===t)return l}else if(Gn(22,e)[8]===t)return 22;return-1}function Mf(e,t,i){const s=t[1].data[e];let l=s.directiveStart;return 0==l?He:(!i&&2&s.flags&&l++,t.slice(l,s.directiveEnd))}const l_=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind($))();function Sf(e){return e.ownerDocument.defaultView}function If(e){return e.ownerDocument}function Of(e){return e.ownerDocument.body}function jr(e){return e instanceof Function?e():e}var wr=(()=>((wr=wr||{})[wr.Important=1]="Important",wr[wr.DashCase=2]="DashCase",wr))();let Il;function Ol(e,t){return Il(e,t)}function bs(e){const t=e[3];return Wn(t)?t[3]:t}function Rf(e){return function h_(e){let t=In(e)?e:Sl(e);for(;t&&!(256&t[2]);)t=bs(t);return t}(e)[8]}function Al(e){return xf(e[13])}function Pl(e){return xf(e[4])}function xf(e){for(;null!==e&&!Wn(e);)e=e[4];return e}function Po(e,t,i,s,l){if(null!=s){let g,C=!1;Wn(s)?g=s:In(s)&&(C=!0,s=s[0]);const w=wn(s);0===e&&null!==i?null==l?Bf(t,i,w):ao(t,i,w,l||null,!0):1===e&&null!==i?ao(t,i,w,l||null,!0):2===e?Gf(t,w,C):3===e&&t.destroyNode(w),null!=g&&function M_(e,t,i,s,l){const g=i[7];g!==wn(i)&&Po(t,e,s,g,l);for(let w=10;w<i.length;w++){const I=i[w];Cs(I[1],I,e,t,s,g)}}(t,e,g,i,l)}}function Rl(e,t){return e.createText(t)}function Ff(e,t,i){e.setValue(t,i)}function p_(e,t){return e.createComment(function bf(e){return e.replace(Wy,t=>t.replace(Gy,"\u200b$1\u200b"))}(t))}function xl(e,t,i){return e.createElement(t,i)}function kf(e,t){const i=e[9],s=i.indexOf(t),l=t[3];512&t[2]&&(t[2]&=-513,bt(l,-1)),i.splice(s,1)}function Fl(e,t){if(e.length<=10)return;const i=10+t,s=e[i];if(s){const l=s[17];null!==l&&l!==e&&kf(l,s),t>0&&(e[i-1][4]=s[4]);const g=Ks(e,10+t);!function m_(e,t){Cs(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(s[1],s);const C=g[19];null!==C&&C.detachView(g[1]),s[3]=null,s[4]=null,s[2]&=-65}return s}function Nf(e,t){if(!(128&t[2])){const i=t[11];i.destroyNode&&Cs(e,t,i,3,null,null),function y_(e){let t=e[13];if(!t)return kl(e[1],e);for(;t;){let i=null;if(In(t))i=t[13];else{const s=t[10];s&&(i=s)}if(!i){for(;t&&!t[4]&&t!==e;)In(t)&&kl(t[1],t),t=t[3];null===t&&(t=e),In(t)&&kl(t[1],t),i=t&&t[4]}t=i}}(t)}}function kl(e,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function D_(e,t){let i;if(null!=e&&null!=(i=e.destroyHooks))for(let s=0;s<i.length;s+=2){const l=t[i[s]];if(!(l instanceof Dr)){const g=i[s+1];if(Array.isArray(g))for(let C=0;C<g.length;C+=2){const w=l[g[C]],I=g[C+1];Xn(4,w,I);try{I.call(w)}finally{Xn(5,w,I)}}else{Xn(4,l,g);try{g.call(l)}finally{Xn(5,l,g)}}}}}(e,t),function C_(e,t){const i=e.cleanup,s=t[7];let l=-1;if(null!==i)for(let g=0;g<i.length-1;g+=2)if("string"==typeof i[g]){const C=i[g+1],w="function"==typeof C?C(t):wn(t[C]),I=s[l=i[g+2]],N=i[g+3];"boolean"==typeof N?w.removeEventListener(i[g],I,N):N>=0?s[l=N]():s[l=-N].unsubscribe(),g+=2}else{const C=s[l=i[g+1]];i[g].call(C)}if(null!==s){for(let g=l+1;g<s.length;g++)(0,s[g])();t[7]=null}}(e,t),1===t[1].type&&t[11].destroy();const i=t[17];if(null!==i&&Wn(t[3])){i!==t[3]&&kf(i,t);const s=t[19];null!==s&&s.detachView(e)}!function t_(e){Tl.delete(e[20])}(t)}}function Lf(e,t,i){return jf(e,t.parent,i)}function jf(e,t,i){let s=t;for(;null!==s&&40&s.type;)s=(t=s).parent;if(null===s)return i[0];if(2&s.flags){const l=e.data[s.directiveStart].encapsulation;if(l===Me.None||l===Me.Emulated)return null}return Dn(s,i)}function ao(e,t,i,s,l){e.insertBefore(t,i,s,l)}function Bf(e,t,i){e.appendChild(t,i)}function Vf(e,t,i,s,l){null!==s?ao(e,t,i,s,l):Bf(e,t,i)}function aa(e,t){return e.parentNode(t)}function $f(e,t,i){return Uf(e,t,i)}function Hf(e,t,i){return 40&e.type?Dn(e,i):null}let Nl,Uf=Hf;function zf(e,t){Uf=e,Nl=t}function la(e,t,i,s){const l=Lf(e,s,t),g=t[11],w=$f(s.parent||t[6],s,t);if(null!=l)if(Array.isArray(i))for(let I=0;I<i.length;I++)Vf(g,l,i[I],w,!1);else Vf(g,l,i,w,!1);void 0!==Nl&&Nl(g,s,t,i,l)}function ca(e,t){if(null!==t){const i=t.type;if(3&i)return Dn(t,e);if(4&i)return Ll(-1,e[t.index]);if(8&i){const s=t.child;if(null!==s)return ca(e,s);{const l=e[t.index];return Wn(l)?Ll(-1,l):wn(l)}}if(32&i)return Ol(t,e)()||wn(e[t.index]);{const s=Wf(e,t);return null!==s?Array.isArray(s)?s[0]:ca(bs(e[16]),s):ca(e,t.next)}}return null}function Wf(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Ll(e,t){const i=10+e+1;if(i<t.length){const s=t[i],l=s[1].firstChild;if(null!==l)return ca(s,l)}return t[7]}function Gf(e,t,i){const s=aa(e,t);s&&function E_(e,t,i,s){e.removeChild(t,i,s)}(e,s,t,i)}function jl(e,t,i,s,l,g,C){for(;null!=i;){const w=s[i.index],I=i.type;if(C&&0===t&&(w&&hi(wn(w),s),i.flags|=4),64!=(64&i.flags))if(8&I)jl(e,t,i.child,s,l,g,!1),Po(t,e,l,w,g);else if(32&I){const N=Ol(i,s);let J;for(;J=N();)Po(t,e,l,J,g);Po(t,e,l,w,g)}else 16&I?Kf(e,t,s,i,l,g):Po(t,e,l,w,g);i=C?i.projectionNext:i.next}}function Cs(e,t,i,s,l,g){jl(i,s,e.firstChild,t,l,g,!1)}function Kf(e,t,i,s,l,g){const C=i[16],I=C[6].projection[s.projection];if(Array.isArray(I))for(let N=0;N<I.length;N++)Po(t,e,l,I[N],g);else jl(e,t,I,C[3],l,g,!0)}function Yf(e,t,i){e.setAttribute(t,"style",i)}function Bl(e,t,i){""===i?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i)}function Qf(e,t,i){let s=e.length;for(;;){const l=e.indexOf(t,i);if(-1===l)return l;if(0===l||e.charCodeAt(l-1)<=32){const g=t.length;if(l+g===s||e.charCodeAt(l+g)<=32)return l}i=l+1}}const Zf="ng-template";function I_(e,t,i){let s=0;for(;s<e.length;){let l=e[s++];if(i&&"class"===l){if(l=e[s],-1!==Qf(l.toLowerCase(),t,0))return!0}else if(1===l){for(;s<e.length&&"string"==typeof(l=e[s++]);)if(l.toLowerCase()===t)return!0;return!1}}return!1}function Jf(e){return 4===e.type&&e.value!==Zf}function O_(e,t,i){return t===(4!==e.type||i?e.value:Zf)}function A_(e,t,i){let s=4;const l=e.attrs||[],g=function x_(e){for(let t=0;t<e.length;t++)if(fn(e[t]))return t;return e.length}(l);let C=!1;for(let w=0;w<t.length;w++){const I=t[w];if("number"!=typeof I){if(!C)if(4&s){if(s=2|1&s,""!==I&&!O_(e,I,i)||""===I&&1===t.length){if(ar(s))return!1;C=!0}}else{const N=8&s?I:t[++w];if(8&s&&null!==e.attrs){if(!I_(e.attrs,N,i)){if(ar(s))return!1;C=!0}continue}const Ee=P_(8&s?"class":I,l,Jf(e),i);if(-1===Ee){if(ar(s))return!1;C=!0;continue}if(""!==N){let Je;Je=Ee>g?"":l[Ee+1].toLowerCase();const ot=8&s?Je:null;if(ot&&-1!==Qf(ot,N,0)||2&s&&N!==Je){if(ar(s))return!1;C=!0}}}}else{if(!C&&!ar(s)&&!ar(I))return!1;if(C&&ar(I))continue;C=!1,s=I|1&s}}return ar(s)||C}function ar(e){return 0==(1&e)}function P_(e,t,i,s){if(null===t)return-1;let l=0;if(s||!i){let g=!1;for(;l<t.length;){const C=t[l];if(C===e)return l;if(3===C||6===C)g=!0;else{if(1===C||2===C){let w=t[++l];for(;"string"==typeof w;)w=t[++l];continue}if(4===C)break;if(0===C){l+=4;continue}}l+=g?1:2}return-1}return function F_(e,t){let i=e.indexOf(4);if(i>-1)for(i++;i<e.length;){const s=e[i];if("number"==typeof s)return-1;if(s===t)return i;i++}return-1}(t,e)}function Xf(e,t,i=!1){for(let s=0;s<t.length;s++)if(A_(e,t[s],i))return!0;return!1}function k_(e,t){e:for(let i=0;i<t.length;i++){const s=t[i];if(e.length===s.length){for(let l=0;l<e.length;l++)if(e[l]!==s[l])continue e;return!0}}return!1}function qf(e,t){return e?":not("+t.trim()+")":t}function N_(e){let t=e[0],i=1,s=2,l="",g=!1;for(;i<e.length;){let C=e[i];if("string"==typeof C)if(2&s){const w=e[++i];l+="["+C+(w.length>0?'="'+w+'"':"")+"]"}else 8&s?l+="."+C:4&s&&(l+=" "+C);else""!==l&&!ar(C)&&(t+=qf(g,l),l=""),s=C,g=g||!ar(s);i++}return""!==l&&(t+=qf(g,l)),t}const an={};function eh(e){th(sn(),St(),Et()+e,!1)}function th(e,t,i,s){if(!s)if(3==(3&t[2])){const g=e.preOrderCheckHooks;null!==g&&qn(t,g,i)}else{const g=e.preOrderHooks;null!==g&&$n(t,g,0,i)}Nt(i)}const nh={\u0275\u0275defineInjectable:at,\u0275\u0275defineInjector:nt,\u0275\u0275inject:ti,\u0275\u0275invalidFactoryDep:qa,resolveForwardRef:v};const V_=c({provide:String,useValue:c});function ih(e){return void 0!==e.useClass}function rh(e){return void 0!==e.useFactory}const z_=Co("Injectable",void 0,void 0,void 0,(e,t)=>function B_(e,t){let i=null,s=null;e.hasOwnProperty(Ae)||Object.defineProperty(e,Ae,{get:()=>(null===i&&(i=ri().compileInjectable(nh,`ng:///${e.name}/\u0275prov.js`,function U_(e,t){const i=t||{providedIn:null},s={name:e.name,type:e,typeArgumentCount:0,providedIn:i.providedIn};return(ih(i)||rh(i))&&void 0!==i.deps&&(s.deps=Sd(i.deps)),ih(i)?s.useClass=i.useClass:function $_(e){return V_ in e}(i)?s.useValue=i.useValue:rh(i)?s.useFactory=i.useFactory:function H_(e){return void 0!==e.useExisting}(i)&&(s.useExisting=i.useExisting),s}(e,t))),i)}),e.hasOwnProperty(Zt)||Object.defineProperty(e,Zt,{get:()=>{if(null===s){const l=ri();s=l.compileFactory(nh,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Xs(e),target:l.FactoryTarget.Injectable})}return s},configurable:!0})}(e,t));function Vl(e,t=null,i=null,s){const l=oh(e,t,i,s);return l.resolveInjectorInitializers(),l}function oh(e,t=null,i=null,s,l=new Set){const g=[i||He,ef(e)];return s=s||("object"==typeof e?void 0:h(e)),new af(g,t||ra(),s||null,l)}let Zr=(()=>{class e{static create(i,s){var l;if(Array.isArray(i))return Vl({name:""},s,i,"");{const g=null!==(l=i.name)&&void 0!==l?l:"";return Vl({name:g},i.parent,i.providers,g)}}}return e.THROW_IF_NOT_FOUND=Qr,e.NULL=new qd,e.\u0275prov=at({token:e,providedIn:"any",factory:()=>ti(fl)}),e.__NG_ELEMENT_ID__=-1,e})();function $l(e){return e.length>1?" ("+function W_(e){const t=[];for(let i=0;i<e.length;++i){if(t.indexOf(e[i])>-1)return t.push(e[i]),t;t.push(e[i])}return t}(e.slice().reverse()).map(s=>h(s.token)).join(" -> ")+")":""}function Hl(e,t,i,s){const l=[t],g=i(l),C=s?function zy(e,t){const i=`${e} caused by: ${t instanceof Error?t.message:t}`,s=Error(i);return s[Dl]=t,s}(g,s):Error(g);return C.addKey=G_,C.keys=l,C.injectors=[e],C.constructResolvingMessage=i,C[Dl]=s,C}function G_(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function sh(e,t){const i=[];for(let s=0,l=t.length;s<l;s++){const g=t[s];i.push(g&&0!=g.length?g.map(h).join(" "):"?")}return Error("Cannot resolve all parameters for '"+h(e)+"'("+i.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+h(e)+"' is decorated with Injectable.")}function X_(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class Br{constructor(t,i){if(this.token=t,this.id=i,!t)throw new M(208,!1);this.displayName=h(this.token)}static get(t){return ah.get(v(t))}static get numberOfKeys(){return ah.numberOfKeys}}class q_{constructor(){this._allKeys=new Map}get(t){if(t instanceof Br)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const i=new Br(t,Br.numberOfKeys);return this._allKeys.set(t,i),i}get numberOfKeys(){return this._allKeys.size}}const ah=new q_;class ua{constructor(t,i,s){this.key=t,this.optional=i,this.visibility=s}static fromKey(t){return new ua(t,!1,null)}}const eb=[];class lh{constructor(t,i,s){this.key=t,this.resolvedFactories=i,this.multiProvider=s,this.resolvedFactory=this.resolvedFactories[0]}}class ch{constructor(t,i){this.factory=t,this.dependencies=i}}function tb(e){let t,i;if(e.useClass){const s=v(e.useClass);t=ds().factory(s),i=dh(s)}else e.useExisting?(t=s=>s,i=[ua.fromKey(Br.get(e.useExisting))]):e.useFactory?(t=e.useFactory,i=function ob(e,t){if(t){const i=t.map(s=>[s]);return t.map(s=>fh(e,s,i))}return dh(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,i=eb);return new ch(t,i)}function nb(e){return new lh(Br.get(e.provide),[tb(e)],e.multi||!1)}function ib(e){const s=function rb(e,t){for(let i=0;i<e.length;i++){const s=e[i],l=t.get(s.key.id);if(l){if(s.multiProvider!==l.multiProvider)throw X_(l,s);if(s.multiProvider)for(let g=0;g<s.resolvedFactories.length;g++)l.resolvedFactories.push(s.resolvedFactories[g]);else t.set(s.key.id,s)}else{let g;g=s.multiProvider?new lh(s.key,s.resolvedFactories.slice(),s.multiProvider):s,t.set(s.key.id,g)}}return t}(uh(e,[]).map(nb),new Map);return Array.from(s.values())}function uh(e,t){return e.forEach(i=>{if(i instanceof Gs)t.push({provide:i,useClass:i});else if(i&&"object"==typeof i&&void 0!==i.provide)t.push(i);else{if(!Array.isArray(i))throw function Z_(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(i);uh(i,t)}}),t}function dh(e){const t=ds().parameters(e);if(!t)return[];if(t.some(i=>null==i))throw sh(e,t);return t.map(i=>fh(e,i,t))}function fh(e,t,i){let s=null,l=!1;if(!Array.isArray(t))return Ul(t instanceof Zs?t.token:t,l,null);let g=null;for(let C=0;C<t.length;++C){const w=t[C];w instanceof Gs?s=w:w instanceof Zs?s=w.token:w instanceof us?l=!0:w instanceof Js||w instanceof To?g=w:w instanceof Pn&&(s=w)}if(s=v(s),null!=s)return Ul(s,l,g);throw sh(e,i)}function Ul(e,t,i){return new ua(Br.get(e),t,i)}const Ds={};class Ro{static resolve(t){return ib(t)}static resolveAndCreate(t,i){const s=Ro.resolve(t);return Ro.fromResolvedProviders(s,i)}static fromResolvedProviders(t,i){return new sb(t,i)}}let sb=(()=>{class e{constructor(i,s){this._constructionCounter=0,this._providers=i,this.parent=s||null;const l=i.length;this.keyIds=[],this.objs=[];for(let g=0;g<l;g++)this.keyIds[g]=i[g].key.id,this.objs[g]=Ds}get(i,s=Qr){return this._getByKey(Br.get(i),null,s)}resolveAndCreateChild(i){const s=Ro.resolve(i);return this.createChildFromResolved(s)}createChildFromResolved(i){const s=new e(i);return s.parent=this,s}resolveAndInstantiate(i){return this.instantiateResolved(Ro.resolve([i])[0])}instantiateResolved(i){return this._instantiateProvider(i)}getProviderAtIndex(i){if(i<0||i>=this._providers.length)throw function J_(e){return Error(`Index ${e} is out-of-bounds.`)}(i);return this._providers[i]}_new(i){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function Y_(e,t){return Hl(e,t,function(i){return`Cannot instantiate cyclic dependency!${$l(i)}`})}(this,i.key);return this._instantiateProvider(i)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(i){if(i.multiProvider){const s=[];for(let l=0;l<i.resolvedFactories.length;++l)s[l]=this._instantiate(i,i.resolvedFactories[l]);return s}return this._instantiate(i,i.resolvedFactories[0])}_instantiate(i,s){const l=s.factory;let g,C;try{g=s.dependencies.map(w=>this._getByReflectiveDependency(w))}catch(w){throw w.addKey&&w.addKey(this,i.key),w}try{C=l(...g)}catch(w){throw function Q_(e,t,i,s){return Hl(e,s,function(l){const g=h(l[0].token);return`${t.message}: Error during instantiation of ${g}!${$l(l)}.`},t)}(this,w,0,i.key)}return C}_getByReflectiveDependency(i){return this._getByKey(i.key,i.visibility,i.optional?null:Qr)}_getByKey(i,s,l){return i===e.INJECTOR_KEY?this:s instanceof Js?this._getByKeySelf(i,l):this._getByKeyDefault(i,l,s)}_getObjByKeyId(i){for(let s=0;s<this.keyIds.length;s++)if(this.keyIds[s]===i)return this.objs[s]===Ds&&(this.objs[s]=this._new(this._providers[s])),this.objs[s];return Ds}_throwOrNull(i,s){if(s!==Qr)return s;throw function K_(e,t){return Hl(e,t,function(i){return`No provider for ${h(i[0].token)}!${$l(i)}`})}(this,i)}_getByKeySelf(i,s){const l=this._getObjByKeyId(i.id);return l!==Ds?l:this._throwOrNull(i,s)}_getByKeyDefault(i,s,l){let g;for(g=l instanceof To?this.parent:this;g instanceof e;){const C=g,w=C._getObjByKeyId(i.id);if(w!==Ds)return w;g=C.parent}return null!==g?g.get(i.token,s):this._throwOrNull(i,s)}get displayName(){return`ReflectiveInjector(providers: [${function ab(e,t){const i=[];for(let s=0;s<e._providers.length;++s)i[s]=t(e.getProviderAtIndex(s));return i}(this,s=>' "'+s.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=Br.get(Zr),e})();function xo(e,t=Ie.Default){const i=St();return null===i?ti(e,t):ud(An(),i,v(e),t)}function hh(){throw new Error("invalid")}function da(e,t){return e<<17|t<<2}function lr(e){return e>>17&32767}function zl(e){return 2|e}function Vr(e){return(131068&e)>>2}function Wl(e,t){return-131069&e|t<<2}function Gl(e){return 1|e}const ec=(()=>Promise.resolve(null))();function Th(e,t){const i=e.contentQueries;if(null!==i)for(let s=0;s<i.length;s+=2){const l=i[s],g=i[s+1];if(-1!==g){const C=e.data[g];ns(l),C.contentQueries(2,t[g],g)}}}function pa(e,t,i,s,l,g,C,w,I,N,J){const Ee=t.blueprint.slice();return Ee[0]=l,Ee[2]=76|s,(null!==J||e&&1024&e[2])&&(Ee[2]|=1024),Be(Ee),Ee[3]=Ee[15]=e,Ee[8]=i,Ee[10]=C||e&&e[10],Ee[11]=w||e&&e[11],Ee[12]=I||e&&e[12]||null,Ee[9]=N||e&&e[9]||null,Ee[6]=g,Ee[20]=function qy(){return Xy++}(),Ee[21]=J,Ee[16]=2==t.type?e[16]:Ee,Ee}function Fo(e,t,i,s,l){let g=e.data[t];if(null===g)g=tc(e,t,i,s,l),function Ua(){return ut.lFrame.inI18n}()&&(g.flags|=64);else if(64&g.type){g.type=i,g.value=s,g.attrs=l;const C=F();g.injectorIndex=null===C?-1:C.injectorIndex}return O(g,!0),g}function tc(e,t,i,s,l){const g=Cr(),C=S(),I=e.data[t]=function Tb(e,t,i,s,l,g){return{type:i,index:s,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:l,attrs:g,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?g:g&&g.parent,i,t,s,l);return null===e.firstChild&&(e.firstChild=I),null!==g&&(C?null==g.child&&null!==I.parent&&(g.child=I):null===g.next&&(g.next=I)),I}function ko(e,t,i,s){if(0===i)return-1;const l=t.length;for(let g=0;g<i;g++)t.push(s),e.blueprint.push(s),e.data.push(null);return l}function ma(e,t,i){D(t);try{const s=e.viewQuery;null!==s&&uc(1,s,i);const l=e.template;null!==l&&wh(e,t,l,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Th(e,t),e.staticViewQueries&&uc(2,e.viewQuery,i);const g=e.components;null!==g&&function bb(e,t){for(let i=0;i<t.length;i++)Vb(e,t[i])}(t,g)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),s}finally{t[2]&=-5,Ge()}}function Es(e,t,i,s){const l=t[2];if(128!=(128&l)){D(t);try{Be(t),Ls(e.bindingStartIndex),null!==i&&wh(e,t,i,2,s);const C=3==(3&l);if(C){const N=e.preOrderCheckHooks;null!==N&&qn(t,N,null)}else{const N=e.preOrderHooks;null!==N&&$n(t,N,0,null),ir(t,0)}if(function jb(e){for(let t=Al(e);null!==t;t=Pl(t)){if(!t[2])continue;const i=t[9];for(let s=0;s<i.length;s++){const l=i[s],g=l[3];0==(512&l[2])&&bt(g,1),l[2]|=512}}}(t),function Lb(e){for(let t=Al(e);null!==t;t=Pl(t))for(let i=10;i<t.length;i++){const s=t[i],l=s[1];ie(s)&&Es(l,s,l.template,s[8])}}(t),null!==e.contentQueries&&Th(e,t),C){const N=e.contentCheckHooks;null!==N&&qn(t,N)}else{const N=e.contentHooks;null!==N&&$n(t,N,1),ir(t,1)}!function yb(e,t){const i=e.hostBindingOpCodes;if(null!==i)try{for(let s=0;s<i.length;s++){const l=i[s];if(l<0)Nt(~l);else{const g=l,C=i[++s],w=i[++s];Bs(C,g),w(2,t[g])}}}finally{Nt(-1)}}(e,t);const w=e.components;null!==w&&function _b(e,t){for(let i=0;i<t.length;i++)Bb(e,t[i])}(t,w);const I=e.viewQuery;if(null!==I&&uc(2,I,s),C){const N=e.viewCheckHooks;null!==N&&qn(t,N)}else{const N=e.viewHooks;null!==N&&$n(t,N,2),ir(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,bt(t[3],-1))}finally{Ge()}}}function Cb(e,t,i,s){const l=t[10],C=R(t);try{!C&&l.begin&&l.begin(),C&&ma(e,t,s),Es(e,t,i,s)}finally{!C&&l.end&&l.end()}}function wh(e,t,i,s,l){const g=Et(),C=2&s;try{Nt(-1),C&&t.length>22&&th(e,t,22,!1),Xn(C?2:0,l),i(s,l)}finally{Nt(g),Xn(C?3:1,l)}}function Mh(e,t,i){if(Qi(t)){const l=t.directiveEnd;for(let g=t.directiveStart;g<l;g++){const C=e.data[g];C.contentQueries&&C.contentQueries(1,i[g],g)}}}function nc(e,t,i){!Fn()||(function Ob(e,t,i,s){const l=i.directiveStart,g=i.directiveEnd;e.firstCreatePass||is(i,t),hi(s,t);const C=i.initialInputs;for(let w=l;w<g;w++){const I=e.data[w],N=Hn(I);N&&Fb(t,i,I);const J=rs(t,e,w,i);hi(J,t),null!==C&&kb(0,w-l,J,I,0,C),N&&(Gn(i.index,t)[8]=J)}}(e,t,i,Dn(i,t)),128==(128&i.flags)&&function Ab(e,t,i){const s=i.directiveStart,l=i.directiveEnd,g=i.index,C=function es(){return ut.lFrame.currentDirectiveIndex}();try{Nt(g);for(let w=s;w<l;w++){const I=e.data[w],N=t[w];eo(w),(null!==I.hostBindings||0!==I.hostVars||null!==I.hostAttrs)&&xh(I,N)}}finally{Nt(-1),eo(C)}}(e,t,i))}function ic(e,t,i=Dn){const s=t.localNames;if(null!==s){let l=t.index+1;for(let g=0;g<s.length;g+=2){const C=s[g+1],w=-1===C?i(t,e):e[C];e[l++]=w}}}function Sh(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=rc(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function rc(e,t,i,s,l,g,C,w,I,N){const J=22+s,Ee=J+l,Je=function Db(e,t){const i=[];for(let s=0;s<t;s++)i.push(s<e?null:an);return i}(J,Ee),ot="function"==typeof N?N():N;return Je[1]={type:e,blueprint:Je,template:i,queries:null,viewQuery:w,declTNode:t,data:Je.slice().fill(null,J),bindingStartIndex:J,expandoStartIndex:Ee,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof g?g():g,pipeRegistry:"function"==typeof C?C():C,firstChild:null,schemas:I,consts:ot,incompleteFirstPass:!1}}function Ih(e,t,i,s){const l=Vh(t);null===i?l.push(s):(l.push(i),e.firstCreatePass&&$h(e).push(s,l.length-1))}function Oh(e,t,i){for(let s in e)if(e.hasOwnProperty(s)){const l=e[s];(i=null===i?{}:i).hasOwnProperty(s)?i[s].push(t,l):i[s]=[t,l]}return i}function Ah(e,t){const s=t.directiveEnd,l=e.data,g=t.attrs,C=[];let w=null,I=null;for(let N=t.directiveStart;N<s;N++){const J=l[N],Ee=J.inputs,Je=null===g||Jf(t)?null:Nb(Ee,g);C.push(Je),w=Oh(Ee,N,w),I=Oh(J.outputs,N,I)}null!==w&&(w.hasOwnProperty("class")&&(t.flags|=16),w.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=C,t.inputs=w,t.outputs=I}function ji(e,t,i,s,l,g,C,w){const I=Dn(t,i);let J,N=t.inputs;!w&&null!=N&&(J=N[s])?(dc(e,i,J,s,l),Si(t)&&Ph(i,t.index)):3&t.type&&(s=function wb(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(s),l=null!=C?C(l,t.value||"",s):l,g.setProperty(I,s,l))}function Ph(e,t){const i=Gn(t,e);16&i[2]||(i[2]|=32)}function oc(e,t,i,s){let l=!1;if(Fn()){const g=function Pb(e,t,i){const s=e.directiveRegistry;let l=null;if(s)for(let g=0;g<s.length;g++){const C=s[g];Xf(i,C.selectors,!1)&&(l||(l=[]),zs(is(i,t),e,C.type),Hn(C)?(Fh(e,i),l.unshift(C)):l.push(C))}return l}(e,t,i),C=null===s?null:{"":-1};if(null!==g){l=!0,kh(i,e.data.length,g.length);for(let J=0;J<g.length;J++){const Ee=g[J];Ee.providersResolver&&Ee.providersResolver(Ee)}let w=!1,I=!1,N=ko(e,t,g.length,null);for(let J=0;J<g.length;J++){const Ee=g[J];i.mergedAttrs=_i(i.mergedAttrs,Ee.hostAttrs),Nh(e,i,t,N,Ee),xb(N,Ee,C),null!==Ee.contentQueries&&(i.flags|=8),(null!==Ee.hostBindings||null!==Ee.hostAttrs||0!==Ee.hostVars)&&(i.flags|=128);const Je=Ee.type.prototype;!w&&(Je.ngOnChanges||Je.ngOnInit||Je.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(i.index),w=!0),!I&&(Je.ngOnChanges||Je.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(i.index),I=!0),N++}Ah(e,i)}C&&function Rb(e,t,i){if(t){const s=e.localNames=[];for(let l=0;l<t.length;l+=2){const g=i[t[l+1]];if(null==g)throw new M(-301,!1);s.push(t[l],g)}}}(i,s,C)}return i.mergedAttrs=_i(i.mergedAttrs,i.attrs),l}function Rh(e,t,i,s,l,g){const C=g.hostBindings;if(C){let w=e.hostBindingOpCodes;null===w&&(w=e.hostBindingOpCodes=[]);const I=~t.index;(function Ib(e){let t=e.length;for(;t>0;){const i=e[--t];if("number"==typeof i&&i<0)return i}return 0})(w)!=I&&w.push(I),w.push(s,l,C)}}function xh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Fh(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function xb(e,t,i){if(i){if(t.exportAs)for(let s=0;s<t.exportAs.length;s++)i[t.exportAs[s]]=e;Hn(t)&&(i[""]=e)}}function kh(e,t,i){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+i,e.providerIndexes=t}function Nh(e,t,i,s,l){e.data[s]=l;const g=l.factory||(l.factory=mi(l.type)),C=new Dr(g,Hn(l),xo);e.blueprint[s]=C,i[s]=C,Rh(e,t,0,s,ko(e,i,l.hostVars,an),l)}function Fb(e,t,i){const s=Dn(t,e),l=Sh(i),g=e[10],C=ga(e,pa(e,l,null,i.onPush?32:16,s,t,g,g.createRenderer(s,i),null,null,null));e[t.index]=C}function Mr(e,t,i,s,l,g){const C=Dn(e,t);sc(t[11],C,g,e.value,i,s,l)}function sc(e,t,i,s,l,g,C){if(null==g)e.removeAttribute(t,l,i);else{const w=null==C?k(g):C(g,s||"",l);e.setAttribute(t,l,w,i)}}function kb(e,t,i,s,l,g){const C=g[t];if(null!==C){const w=s.setInput;for(let I=0;I<C.length;){const N=C[I++],J=C[I++],Ee=C[I++];null!==w?s.setInput(i,Ee,N,J):i[J]=Ee}}}function Nb(e,t){let i=null,s=0;for(;s<t.length;){const l=t[s];if(0!==l)if(5!==l){if("number"==typeof l)break;e.hasOwnProperty(l)&&(null===i&&(i=[]),i.push(l,e[l],t[s+1])),s+=2}else s+=2;else s+=4}return i}function Lh(e,t,i,s){return new Array(e,!0,!1,t,null,0,s,i,null,null)}function Bb(e,t){const i=Gn(t,e);if(ie(i)){const s=i[1];48&i[2]?Es(s,i,s.template,i[8]):i[5]>0&&ac(i)}}function ac(e){for(let s=Al(e);null!==s;s=Pl(s))for(let l=10;l<s.length;l++){const g=s[l];if(512&g[2]){const C=g[1];Es(C,g,C.template,g[8])}else g[5]>0&&ac(g)}const i=e[1].components;if(null!==i)for(let s=0;s<i.length;s++){const l=Gn(i[s],e);ie(l)&&l[5]>0&&ac(l)}}function Vb(e,t){const i=Gn(t,e),s=i[1];(function $b(e,t){for(let i=t.length;i<e.blueprint.length;i++)t.push(e.blueprint[i])})(s,i),ma(s,i,i[8])}function ga(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function lc(e){for(;e;){e[2]|=32;const t=bs(e);if(Ci(e)&&!t)return e;e=t}return null}function jh(e){for(let t=0;t<e.components.length;t++){const i=e.components[t],s=Sl(i);if(null!==s){const l=s[1];Cb(l,s,l.template,i)}}}function cc(e,t,i){const s=t[10];s.begin&&s.begin();try{Es(e,t,e.template,i)}catch(l){throw Uh(t,l),l}finally{s.end&&s.end()}}function uc(e,t,i){ns(0),t(e,i)}const Ub=ec;function Vh(e){return e[7]||(e[7]=[])}function $h(e){return e.cleanup||(e.cleanup=[])}function Hh(e,t,i){return(null===e||Hn(e))&&(i=function li(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(i[t.index])),i[11]}function Uh(e,t){const i=e[9],s=i?i.get(ys,null):null;s&&s.handleError(t)}function dc(e,t,i,s,l){for(let g=0;g<i.length;){const C=i[g++],w=i[g++],I=t[C],N=e.data[C];null!==N.setInput?N.setInput(I,l,s,w):I[w]=l}}function $r(e,t,i){const s=Bn(t,e);Ff(e[11],s,i)}function va(e,t,i){let s=i?e.styles:null,l=i?e.classes:null,g=0;if(null!==t)for(let C=0;C<t.length;C++){const w=t[C];"number"==typeof w?g=w:1==g?l=m(l,w):2==g&&(s=m(s,w+": "+t[++C]+";"))}i?e.styles=s:e.stylesWithoutHost=s,i?e.classes=l:e.classesWithoutHost=l}function ya(e,t,i,s,l=!1){for(;null!==i;){const g=t[i.index];if(null!==g&&s.push(wn(g)),Wn(g))for(let w=10;w<g.length;w++){const I=g[w],N=I[1].firstChild;null!==N&&ya(I[1],I,N,s)}const C=i.type;if(8&C)ya(e,t,i.child,s);else if(32&C){const w=Ol(i,t);let I;for(;I=w();)s.push(I)}else if(16&C){const w=Wf(t,i);if(Array.isArray(w))s.push(...w);else{const I=bs(t[16]);ya(I[1],I,w,s,!0)}}i=l?i.projectionNext:i.next}return s}class No{constructor(t,i){this._lView=t,this._cdRefInjectingView=i,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,i=t[1];return ya(i,t,i.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Wn(t)){const i=t[8],s=i?i.indexOf(this):-1;s>-1&&(Fl(t,s),Ks(i,s))}this._attachedToViewContainer=!1}Nf(this._lView[1],this._lView)}onDestroy(t){Ih(this._lView[1],this._lView,null,t)}markForCheck(){lc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){cc(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function v_(e,t){Cs(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t}}class zb extends No{constructor(t){super(t),this._view=t}detectChanges(){!function Bh(e){jh(e[8])}(this._view)}checkNoChanges(){}get context(){return null}}class fc extends gs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=ye(t);return new Lo(i,this.ngModule)}}function zh(e){const t=[];for(let i in e)e.hasOwnProperty(i)&&t.push({propName:e[i],templateName:i});return t}class Gb{constructor(t,i){this.injector=t,this.parentInjector=i}get(t,i,s){const l=this.injector.get(t,sa,s);return l!==sa||i===sa?l:this.parentInjector.get(t,i,s)}}class Lo extends oa{constructor(t,i){super(),this.componentDef=t,this.ngModule=i,this.componentType=t.type,this.selector=function L_(e){return e.map(N_).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!i}get inputs(){return zh(this.componentDef.inputs)}get outputs(){return zh(this.componentDef.outputs)}create(t,i,s,l){let g=(l=l||this.ngModule)instanceof so?l:null==l?void 0:l.injector;g&&null!==this.componentDef.getStandaloneInjector&&(g=this.componentDef.getStandaloneInjector(g)||g);const C=g?new Gb(t,g):t,w=C.get(df,null);if(null===w)throw new M(407,!1);const I=C.get(ff,null),N=w.createRenderer(null,this.componentDef),J=this.componentDef.selectors[0][0]||"div",Ee=s?function Eb(e,t,i){return e.selectRootElement(t,i===Me.ShadowDom)}(N,s,this.componentDef.encapsulation):xl(w.createRenderer(null,this.componentDef),J,function Wb(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(J)),Je=this.componentDef.onPush?288:272,ot=function Zb(e,t){return{components:[],scheduler:e||l_,clean:Ub,playerHandler:t||null,flags:0}}(),Mt=rc(0,null,null,1,0,null,null,null,null,null),At=pa(null,Mt,ot,Je,null,null,w,N,I,C,null);let Lt,Ut;D(At);try{const tn=function Yb(e,t,i,s,l,g){const C=i[1];i[22]=e;const I=Fo(C,22,2,"#host",null),N=I.mergedAttrs=t.hostAttrs;null!==N&&(va(I,N,!0),null!==e&&(Gt(l,e,N),null!==I.classes&&Bl(l,e,I.classes),null!==I.styles&&Yf(l,e,I.styles)));const J=s.createRenderer(e,t),Ee=pa(i,Sh(t),null,t.onPush?32:16,i[22],I,s,J,g||null,null,null);return C.firstCreatePass&&(zs(is(I,i),C,t.type),Fh(C,I),kh(I,i.length,1)),ga(i,Ee),i[22]=Ee}(Ee,this.componentDef,At,w,N);if(Ee)if(s)Gt(N,Ee,["ng-version",pf.full]);else{const{attrs:Ot,classes:Kt}=function j_(e){const t=[],i=[];let s=1,l=2;for(;s<e.length;){let g=e[s];if("string"==typeof g)2===l?""!==g&&t.push(g,e[++s]):8===l&&i.push(g);else{if(!ar(l))break;l=g}s++}return{attrs:t,classes:i}}(this.componentDef.selectors[0]);Ot&&Gt(N,Ee,Ot),Kt&&Kt.length>0&&Bl(N,Ee,Kt.join(" "))}if(Ut=zi(Mt,22),void 0!==i){const Ot=Ut.projection=[];for(let Kt=0;Kt<this.ngContentSelectors.length;Kt++){const mn=i[Kt];Ot.push(null!=mn?Array.from(mn):null)}}Lt=function Qb(e,t,i,s,l){const g=i[1],C=function Sb(e,t,i){const s=An();e.firstCreatePass&&(i.providersResolver&&i.providersResolver(i),Nh(e,s,t,ko(e,t,1,null),i),Ah(e,s));const l=rs(t,e,s.directiveStart,s);hi(l,t);const g=Dn(s,t);return g&&hi(g,t),l}(g,i,t);if(s.components.push(C),e[8]=C,null!==l)for(const I of l)I(C,t);if(t.contentQueries){const I=An();t.contentQueries(1,C,I.directiveStart)}const w=An();return!g.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Nt(w.index),Rh(i[1],w,0,w.directiveStart,w.directiveEnd,t),xh(t,C)),C}(tn,this.componentDef,At,ot,[Gh]),ma(Mt,At,null)}finally{Ge()}return new Wh(this.componentType,Lt,Oo(Ut,At),At,Ut)}}class Wh extends cf{constructor(t,i,s,l,g){super(),this.location=s,this._rootLView=l,this._tNode=g,this.instance=i,this.hostView=this.changeDetectorRef=new zb(l),this.componentType=t}setInput(t,i){const s=this._tNode.inputs;let l;if(null!==s&&(l=s[t])){const g=this._rootLView;dc(g[1],g,l,t,i),Ph(g,this._tNode.index)}}get injector(){return new vo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function Gh(){const e=An();Un(St()[1],e)}function Jb(e){return Rf(e).clean}function Kh(e){return Object.getPrototypeOf(e.prototype).constructor}function hc(e){let t=Kh(e.type),i=!0;const s=[e];for(;t;){let l;if(Hn(e))l=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new M(903,!1);l=t.\u0275dir}if(l){if(i){s.push(l);const C=e;C.inputs=pc(e.inputs),C.declaredInputs=pc(e.declaredInputs),C.outputs=pc(e.outputs);const w=l.hostBindings;w&&t0(e,w);const I=l.viewQuery,N=l.contentQueries;if(I&&qb(e,I),N&&e0(e,N),f(e.inputs,l.inputs),f(e.declaredInputs,l.declaredInputs),f(e.outputs,l.outputs),Hn(l)&&l.data.animation){const J=e.data;J.animation=(J.animation||[]).concat(l.data.animation)}}const g=l.features;if(g)for(let C=0;C<g.length;C++){const w=g[C];w&&w.ngInherit&&w(e),w===hc&&(i=!1)}}t=Object.getPrototypeOf(t)}!function Xb(e){let t=0,i=null;for(let s=e.length-1;s>=0;s--){const l=e[s];l.hostVars=t+=l.hostVars,l.hostAttrs=_i(l.hostAttrs,i=_i(i,l.hostAttrs))}}(s)}function pc(e){return e===Te?{}:e===He?[]:e}function qb(e,t){const i=e.viewQuery;e.viewQuery=i?(s,l)=>{t(s,l),i(s,l)}:t}function e0(e,t){const i=e.contentQueries;e.contentQueries=i?(s,l,g)=>{t(s,l,g),i(s,l,g)}:t}function t0(e,t){const i=e.hostBindings;e.hostBindings=i?(s,l)=>{t(s,l),i(s,l)}:t}const n0=["providersResolver"],r0=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function Yh(e){let i,t=Kh(e.type);i=Hn(e)?t.\u0275cmp:t.\u0275dir;const s=e;for(const l of n0)s[l]=i[l];if(Hn(i))for(const l of r0)s[l]=i[l]}let _a=null;function lo(){if(!_a){const e=$.Symbol;if(e&&e.iterator)_a=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let i=0;i<t.length;++i){const s=t[i];"entries"!==s&&"size"!==s&&Map.prototype[s]===Map.prototype.entries&&(_a=s)}}}return _a}function Ts(e){return!!mc(e)&&(Array.isArray(e)||!(e instanceof Map)&&lo()in e)}function mc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Qh(e,t){const i=Ts(e),s=Ts(t);return i&&s?function o0(e,t,i){const s=e[lo()](),l=t[lo()]();for(;;){const g=s.next(),C=l.next();if(g.done&&C.done)return!0;if(g.done||C.done||!i(g.value,C.value))return!1}}(e,t,Qh):!(i||!e||"object"!=typeof e&&"function"!=typeof e||s||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function Sr(e,t,i){return e[t]=i}function ws(e,t){return e[t]}function pi(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function co(e,t,i,s){const l=pi(e,t,i);return pi(e,t+1,s)||l}function ba(e,t,i,s,l){const g=co(e,t,i,s);return pi(e,t+2,l)||g}function Ki(e,t,i,s,l,g){const C=co(e,t,i,s);return co(e,t+2,l,g)||C}function gc(e,t,i,s){const l=St();return pi(l,Wr(),t)&&(sn(),Mr(Ft(),l,e,t,i,s)),gc}function jo(e,t){let i=!1,s=ci();for(let g=1;g<t.length;g+=2)i=pi(e,s++,t[g])||i;if(Ls(s),!i)return an;let l=t[0];for(let g=1;g<t.length;g+=2)l+=k(t[g])+t[g+1];return l}function Bo(e,t,i,s){return pi(e,Wr(),i)?t+k(i)+s:an}function Vo(e,t,i,s,l,g){const w=co(e,ci(),i,l);return Wi(2),w?t+k(i)+s+k(l)+g:an}function $o(e,t,i,s,l,g,C,w){const N=ba(e,ci(),i,l,C);return Wi(3),N?t+k(i)+s+k(l)+g+k(C)+w:an}function Ho(e,t,i,s,l,g,C,w,I,N){const Ee=Ki(e,ci(),i,l,C,I);return Wi(4),Ee?t+k(i)+s+k(l)+g+k(C)+w+k(I)+N:an}function Uo(e,t,i,s,l,g,C,w,I,N,J,Ee){const Je=ci();let ot=Ki(e,Je,i,l,C,I);return ot=pi(e,Je+4,J)||ot,Wi(5),ot?t+k(i)+s+k(l)+g+k(C)+w+k(I)+N+k(J)+Ee:an}function zo(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot){const Mt=ci();let At=Ki(e,Mt,i,l,C,I);return At=co(e,Mt+4,J,Je)||At,Wi(6),At?t+k(i)+s+k(l)+g+k(C)+w+k(I)+N+k(J)+Ee+k(Je)+ot:an}function Wo(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At){const Lt=ci();let Ut=Ki(e,Lt,i,l,C,I);return Ut=ba(e,Lt+4,J,Je,Mt)||Ut,Wi(7),Ut?t+k(i)+s+k(l)+g+k(C)+w+k(I)+N+k(J)+Ee+k(Je)+ot+k(Mt)+At:an}function Go(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt,Ut){const tn=ci();let Ot=Ki(e,tn,i,l,C,I);return Ot=Ki(e,tn+4,J,Je,Mt,Lt)||Ot,Wi(8),Ot?t+k(i)+s+k(l)+g+k(C)+w+k(I)+N+k(J)+Ee+k(Je)+ot+k(Mt)+At+k(Lt)+Ut:an}function vc(e,t,i,s,l,g){const C=St(),w=Bo(C,t,i,s);return w!==an&&Mr(Ft(),C,e,w,l,g),vc}function yc(e,t,i,s,l,g,C,w){const I=St(),N=Vo(I,t,i,s,l,g);return N!==an&&Mr(Ft(),I,e,N,C,w),yc}function _c(e,t,i,s,l,g,C,w,I,N){const J=St(),Ee=$o(J,t,i,s,l,g,C,w);return Ee!==an&&Mr(Ft(),J,e,Ee,I,N),_c}function bc(e,t,i,s,l,g,C,w,I,N,J,Ee){const Je=St(),ot=Ho(Je,t,i,s,l,g,C,w,I,N);return ot!==an&&Mr(Ft(),Je,e,ot,J,Ee),bc}function Cc(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot){const Mt=St(),At=Uo(Mt,t,i,s,l,g,C,w,I,N,J,Ee);return At!==an&&Mr(Ft(),Mt,e,At,Je,ot),Cc}function Dc(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At){const Lt=St(),Ut=zo(Lt,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot);return Ut!==an&&Mr(Ft(),Lt,e,Ut,Mt,At),Dc}function Ec(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt,Ut){const tn=St(),Ot=Wo(tn,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At);return Ot!==an&&Mr(Ft(),tn,e,Ot,Lt,Ut),Ec}function Tc(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt,Ut,tn,Ot){const Kt=St(),mn=Go(Kt,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt,Ut);return mn!==an&&Mr(Ft(),Kt,e,mn,tn,Ot),Tc}function wc(e,t,i,s){const l=St(),g=jo(l,t);return g!==an&&Mr(Ft(),l,e,g,i,s),wc}function Zh(e){const t=Ef(e);cc(t[1],t,e)}function Jh(e){!function Hb(e,t){if(0===e.flags&&e.clean==ec){let s;e.flags|=t,e.clean=new Promise(l=>s=l),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,jh(e)),2&e.flags){e.flags&=-3;const l=e.playerHandler;l&&l.flushPlayers()}e.clean=ec,s(null)})}}(lc(Ef(e))[8],1)}function Xh(e,t,i,s,l,g,C,w){const I=St(),N=sn(),J=e+22,Ee=N.firstCreatePass?function a0(e,t,i,s,l,g,C,w,I){const N=t.consts,J=Fo(t,e,4,C||null,le(N,w));oc(t,i,J,le(N,I)),Un(t,J);const Ee=J.tViews=rc(2,J,s,l,g,t.directiveRegistry,t.pipeRegistry,null,t.schemas,N);return null!==t.queries&&(t.queries.template(t,J),Ee.queries=t.queries.embeddedTView(J)),J}(J,N,I,t,i,s,l,g,C):N.data[J];O(Ee,!1);const Je=I[11].createComment("");la(N,I,Je,Ee),hi(Je,I),ga(I,I[J]=Lh(Je,I,Je,Ee)),Zn(Ee)&&nc(N,I,Ee),null!=C&&ic(I,Ee,w)}function qh(e,t,i,s){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=s}function ep(e){return Mi(function Vt(){return ut.lFrame.contextLView}(),22+e)}function Mc(e,t,i){const s=St();return pi(s,Wr(),t)&&ji(sn(),Ft(),s,e,t,s[11],i,!1),Mc}function Sc(e,t,i,s,l){const C=l?"class":"style";dc(e,i,t.inputs[C],C,s)}function Ca(e,t,i,s){const l=St(),g=sn(),C=22+e,w=l[11],I=l[C]=xl(w,t,function En(){return ut.lFrame.currentNamespace}()),N=g.firstCreatePass?function l0(e,t,i,s,l,g,C){const w=t.consts,N=Fo(t,e,2,l,le(w,g));return oc(t,i,N,le(w,C)),null!==N.attrs&&va(N,N.attrs,!1),null!==N.mergedAttrs&&va(N,N.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,N),N}(C,g,l,0,t,i,s):g.data[C];O(N,!0);const J=N.mergedAttrs;null!==J&&Gt(w,I,J);const Ee=N.classes;null!==Ee&&Bl(w,I,Ee);const Je=N.styles;return null!==Je&&Yf(w,I,Je),64!=(64&N.flags)&&la(g,l,I,N),0===function Mn(){return ut.lFrame.elementDepthCount}()&&hi(I,l),function Cn(){ut.lFrame.elementDepthCount++}(),Zn(N)&&(nc(g,l,N),Mh(g,N,l)),null!==s&&ic(l,N),Ca}function Da(){let e=An();S()?te():(e=e.parent,O(e,!1));const t=e;!function pn(){ut.lFrame.elementDepthCount--}();const i=sn();return i.firstCreatePass&&(Un(i,e),Qi(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Gr(e){return 0!=(16&e.flags)}(t)&&Sc(i,t,St(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function $s(e){return 0!=(32&e.flags)}(t)&&Sc(i,t,St(),t.stylesWithoutHost,!1),Da}function Ic(e,t,i,s){return Ca(e,t,i,s),Da(),Ic}function Ea(e,t,i){const s=St(),l=sn(),g=e+22,C=l.firstCreatePass?function c0(e,t,i,s,l){const g=t.consts,C=le(g,s),w=Fo(t,e,8,"ng-container",C);return null!==C&&va(w,C,!0),oc(t,i,w,le(g,l)),null!==t.queries&&t.queries.elementStart(t,w),w}(g,l,s,t,i):l.data[g];O(C,!0);const w=s[g]=s[11].createComment("");return la(l,s,w,C),hi(w,s),Zn(C)&&(nc(l,s,C),Mh(l,C,s)),null!=i&&ic(s,C),Ea}function Ta(){let e=An();const t=sn();return S()?te():(e=e.parent,O(e,!1)),t.firstCreatePass&&(Un(t,e),Qi(e)&&t.queries.elementEnd(e)),Ta}function Oc(e,t,i){return Ea(e,t,i),Ta(),Oc}function tp(){return St()}function Ac(e){return!!e&&"function"==typeof e.then}function np(e){return!!e&&"function"==typeof e.subscribe}const ip=np;function Pc(e,t,i,s){const l=St(),g=sn(),C=An();return rp(g,l,l[11],C,e,t,0,s),Pc}function Rc(e,t){const i=An(),s=St(),l=sn();return rp(l,s,Hh(ts(l.data),i,s),i,e,t),Rc}function rp(e,t,i,s,l,g,C,w){const I=Zn(s),J=e.firstCreatePass&&$h(e),Ee=t[8],Je=Vh(t);let ot=!0;if(3&s.type||w){const Lt=Dn(s,t),Ut=w?w(Lt):Lt,tn=Je.length,Ot=w?mn=>w(wn(mn[s.index])):s.index;let Kt=null;if(!w&&I&&(Kt=function u0(e,t,i,s){const l=e.cleanup;if(null!=l)for(let g=0;g<l.length-1;g+=2){const C=l[g];if(C===i&&l[g+1]===s){const w=t[7],I=l[g+2];return w.length>I?w[I]:null}"string"==typeof C&&(g+=2)}return null}(e,t,l,s.index)),null!==Kt)(Kt.__ngLastListenerFn__||Kt).__ngNextListenerFn__=g,Kt.__ngLastListenerFn__=g,ot=!1;else{g=sp(s,t,Ee,g,!1);const mn=i.listen(Ut,l,g);Je.push(g,mn),J&&J.push(l,Ot,tn,tn+1)}}else g=sp(s,t,Ee,g,!1);const Mt=s.outputs;let At;if(ot&&null!==Mt&&(At=Mt[l])){const Lt=At.length;if(Lt)for(let Ut=0;Ut<Lt;Ut+=2){const Ln=t[At[Ut]][At[Ut+1]].subscribe(g),mo=Je.length;Je.push(g,Ln),J&&J.push(l,s.index,mo,-(mo+1))}}}function op(e,t,i,s){try{return Xn(6,t,i),!1!==i(s)}catch(l){return Uh(e,l),!1}finally{Xn(7,t,i)}}function sp(e,t,i,s,l){return function g(C){if(C===Function)return s;lc(2&e.flags?Gn(e.index,t):t);let I=op(t,i,s,C),N=g.__ngNextListenerFn__;for(;N;)I=op(t,i,N,C)&&I,N=N.__ngNextListenerFn__;return l&&!1===I&&(C.preventDefault(),C.returnValue=!1),I}}function ap(e=1){return function Qe(e){return(ut.lFrame.contextLView=function lt(e,t){for(;e>0;)t=t[15],e--;return t}(e,ut.lFrame.contextLView))[8]}(e)}function d0(e,t){let i=null;const s=function R_(e){const t=e.attrs;if(null!=t){const i=t.indexOf(5);if(0==(1&i))return t[i+1]}return null}(e);for(let l=0;l<t.length;l++){const g=t[l];if("*"!==g){if(null===s?Xf(e,g,!0):k_(s,g))return l}else i=l}return i}function lp(e){const t=St()[16][6];if(!t.projection){const s=t.projection=as(e?e.length:1,null),l=s.slice();let g=t.child;for(;null!==g;){const C=e?d0(g,e):0;null!==C&&(l[C]?l[C].projectionNext=g:s[C]=g,l[C]=g),g=g.next}}}function cp(e,t=0,i){const s=St(),l=sn(),g=Fo(l,22+e,16,null,i||null);null===g.projection&&(g.projection=t),te(),64!=(64&g.flags)&&function w_(e,t,i){Kf(t[11],0,t,i,Lf(e,i,t),$f(i.parent||t[6],i,t))}(l,s,g)}function xc(e,t,i){return wa(e,"",t,"",i),xc}function wa(e,t,i,s,l){const g=St(),C=Bo(g,t,i,s);return C!==an&&ji(sn(),Ft(),g,e,C,g[11],l,!1),wa}function Fc(e,t,i,s,l,g,C){const w=St(),I=Vo(w,t,i,s,l,g);return I!==an&&ji(sn(),Ft(),w,e,I,w[11],C,!1),Fc}function kc(e,t,i,s,l,g,C,w,I){const N=St(),J=$o(N,t,i,s,l,g,C,w);return J!==an&&ji(sn(),Ft(),N,e,J,N[11],I,!1),kc}function Nc(e,t,i,s,l,g,C,w,I,N,J){const Ee=St(),Je=Ho(Ee,t,i,s,l,g,C,w,I,N);return Je!==an&&ji(sn(),Ft(),Ee,e,Je,Ee[11],J,!1),Nc}function Lc(e,t,i,s,l,g,C,w,I,N,J,Ee,Je){const ot=St(),Mt=Uo(ot,t,i,s,l,g,C,w,I,N,J,Ee);return Mt!==an&&ji(sn(),Ft(),ot,e,Mt,ot[11],Je,!1),Lc}function jc(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt){const At=St(),Lt=zo(At,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot);return Lt!==an&&ji(sn(),Ft(),At,e,Lt,At[11],Mt,!1),jc}function Bc(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt){const Ut=St(),tn=Wo(Ut,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At);return tn!==an&&ji(sn(),Ft(),Ut,e,tn,Ut[11],Lt,!1),Bc}function Vc(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt,Ut,tn){const Ot=St(),Kt=Go(Ot,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt,Ut);return Kt!==an&&ji(sn(),Ft(),Ot,e,Kt,Ot[11],tn,!1),Vc}function $c(e,t,i){const s=St(),l=jo(s,t);return l!==an&&ji(sn(),Ft(),s,e,l,s[11],i,!1),$c}function up(e,t,i,s,l){const g=e[i+1],C=null===t;let w=s?lr(g):Vr(g),I=!1;for(;0!==w&&(!1===I||C);){const J=e[w+1];p0(e[w],t)&&(I=!0,e[w+1]=s?Gl(J):zl(J)),w=s?lr(J):Vr(J)}I&&(e[i+1]=s?zl(g):Gl(g))}function p0(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Eo(e,t)>=0}const oi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function dp(e){return e.substring(oi.key,oi.keyEnd)}function m0(e){return e.substring(oi.value,oi.valueEnd)}function fp(e,t){const i=oi.textEnd;return i===t?-1:(t=oi.keyEnd=function y0(e,t,i){for(;t<i&&e.charCodeAt(t)>32;)t++;return t}(e,oi.key=t,i),Ko(e,t,i))}function hp(e,t){const i=oi.textEnd;let s=oi.key=Ko(e,t,i);return i===s?-1:(s=oi.keyEnd=function _0(e,t,i){let s;for(;t<i&&(45===(s=e.charCodeAt(t))||95===s||(-33&s)>=65&&(-33&s)<=90||s>=48&&s<=57);)t++;return t}(e,s,i),s=mp(e,s,i),s=oi.value=Ko(e,s,i),s=oi.valueEnd=function b0(e,t,i){let s=-1,l=-1,g=-1,C=t,w=C;for(;C<i;){const I=e.charCodeAt(C++);if(59===I)return w;34===I||39===I?w=C=gp(e,I,C,i):t===C-4&&85===g&&82===l&&76===s&&40===I?w=C=gp(e,41,C,i):I>32&&(w=C),g=l,l=s,s=-33&I}return w}(e,s,i),mp(e,s,i))}function pp(e){oi.key=0,oi.keyEnd=0,oi.value=0,oi.valueEnd=0,oi.textEnd=e.length}function Ko(e,t,i){for(;t<i&&e.charCodeAt(t)<=32;)t++;return t}function mp(e,t,i,s){return(t=Ko(e,t,i))<i&&t++,t}function gp(e,t,i,s){let l=-1,g=i;for(;g<s;){const C=e.charCodeAt(g++);if(C==t&&92!==l)return g;l=92==C&&92===l?0:C}throw new Error}function Hc(e,t,i){return ur(e,t,i,!1),Hc}function Uc(e,t){return ur(e,t,null,!0),Uc}function cr(e){dr(bp,C0,e,!1)}function C0(e,t){for(let i=function v0(e){return pp(e),hp(e,Ko(e,0,oi.textEnd))}(t);i>=0;i=hp(t,i))bp(e,dp(t),m0(t))}function vp(e){dr(Li,Ir,e,!0)}function Ir(e,t){for(let i=function g0(e){return pp(e),fp(e,Ko(e,0,oi.textEnd))}(t);i>=0;i=fp(t,i))Li(e,dp(t),!0)}function ur(e,t,i,s){const l=St(),g=sn(),C=Wi(2);g.firstUpdatePass&&_p(g,e,C,s),t!==an&&pi(l,C,t)&&Cp(g,g.data[Et()],l,l[11],e,l[C+1]=function I0(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=h(Lr(e)))),e}(t,i),s,C)}function dr(e,t,i,s){const l=sn(),g=Wi(2);l.firstUpdatePass&&_p(l,null,g,s);const C=St();if(i!==an&&pi(C,g,i)){const w=l.data[Et()];if(Ep(w,s)&&!yp(l,g)){let I=s?w.classesWithoutHost:w.stylesWithoutHost;null!==I&&(i=m(I,i||"")),Sc(l,w,C,i,s)}else!function S0(e,t,i,s,l,g,C,w){l===an&&(l=He);let I=0,N=0,J=0<l.length?l[0]:null,Ee=0<g.length?g[0]:null;for(;null!==J||null!==Ee;){const Je=I<l.length?l[I+1]:void 0,ot=N<g.length?g[N+1]:void 0;let At,Mt=null;J===Ee?(I+=2,N+=2,Je!==ot&&(Mt=Ee,At=ot)):null===Ee||null!==J&&J<Ee?(I+=2,Mt=J):(N+=2,Mt=Ee,At=ot),null!==Mt&&Cp(e,t,i,s,Mt,At,C,w),J=I<l.length?l[I]:null,Ee=N<g.length?g[N]:null}}(l,w,C,C[11],C[g+1],C[g+1]=function M0(e,t,i){if(null==i||""===i)return He;const s=[],l=Lr(i);if(Array.isArray(l))for(let g=0;g<l.length;g++)e(s,l[g],!0);else if("object"==typeof l)for(const g in l)l.hasOwnProperty(g)&&e(s,g,l[g]);else"string"==typeof l&&t(s,l);return s}(e,t,i),s,g)}}function yp(e,t){return t>=e.expandoStartIndex}function _p(e,t,i,s){const l=e.data;if(null===l[i+1]){const g=l[Et()],C=yp(e,i);Ep(g,s)&&null===t&&!C&&(t=!1),t=function D0(e,t,i,s){const l=ts(e);let g=s?t.residualClasses:t.residualStyles;if(null===l)0===(s?t.classBindings:t.styleBindings)&&(i=Ms(i=zc(null,e,t,i,s),t.attrs,s),g=null);else{const C=t.directiveStylingLast;if(-1===C||e[C]!==l)if(i=zc(l,e,t,i,s),null===g){let I=function E0(e,t,i){const s=i?t.classBindings:t.styleBindings;if(0!==Vr(s))return e[lr(s)]}(e,t,s);void 0!==I&&Array.isArray(I)&&(I=zc(null,e,t,I[1],s),I=Ms(I,t.attrs,s),function T0(e,t,i,s){e[lr(i?t.classBindings:t.styleBindings)]=s}(e,t,s,I))}else g=function w0(e,t,i){let s;const l=t.directiveEnd;for(let g=1+t.directiveStylingLast;g<l;g++)s=Ms(s,e[g].hostAttrs,i);return Ms(s,t.attrs,i)}(e,t,s)}return void 0!==g&&(s?t.residualClasses=g:t.residualStyles=g),i}(l,g,t,s),function f0(e,t,i,s,l,g){let C=g?t.classBindings:t.styleBindings,w=lr(C),I=Vr(C);e[s]=i;let J,N=!1;if(Array.isArray(i)){const Ee=i;J=Ee[1],(null===J||Eo(Ee,J)>0)&&(N=!0)}else J=i;if(l)if(0!==I){const Je=lr(e[w+1]);e[s+1]=da(Je,w),0!==Je&&(e[Je+1]=Wl(e[Je+1],s)),e[w+1]=function lb(e,t){return 131071&e|t<<17}(e[w+1],s)}else e[s+1]=da(w,0),0!==w&&(e[w+1]=Wl(e[w+1],s)),w=s;else e[s+1]=da(I,0),0===w?w=s:e[I+1]=Wl(e[I+1],s),I=s;N&&(e[s+1]=zl(e[s+1])),up(e,J,s,!0),up(e,J,s,!1),function h0(e,t,i,s,l){const g=l?e.residualClasses:e.residualStyles;null!=g&&"string"==typeof t&&Eo(g,t)>=0&&(i[s+1]=Gl(i[s+1]))}(t,J,e,s,g),C=da(w,I),g?t.classBindings=C:t.styleBindings=C}(l,g,t,i,C,s)}}function zc(e,t,i,s,l){let g=null;const C=i.directiveEnd;let w=i.directiveStylingLast;for(-1===w?w=i.directiveStart:w++;w<C&&(g=t[w],s=Ms(s,g.hostAttrs,l),g!==e);)w++;return null!==e&&(i.directiveStylingLast=w),s}function Ms(e,t,i){const s=i?1:2;let l=-1;if(null!==t)for(let g=0;g<t.length;g++){const C=t[g];"number"==typeof C?l=C:l===s&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Li(e,C,!!i||t[++g]))}return void 0===e?null:e}function bp(e,t,i){Li(e,t,Lr(i))}function Cp(e,t,i,s,l,g,C,w){if(!(3&t.type))return;const I=e.data,N=I[w+1];Ma(function gh(e){return 1==(1&e)}(N)?Dp(I,t,i,l,Vr(N),C):void 0)||(Ma(g)||function mh(e){return 2==(2&e)}(N)&&(g=Dp(I,null,i,l,w,C)),function S_(e,t,i,s,l){if(t)l?e.addClass(i,s):e.removeClass(i,s);else{let g=-1===s.indexOf("-")?void 0:wr.DashCase;null==l?e.removeStyle(i,s,g):("string"==typeof l&&l.endsWith("!important")&&(l=l.slice(0,-10),g|=wr.Important),e.setStyle(i,s,l,g))}}(s,C,Bn(Et(),i),l,g))}function Dp(e,t,i,s,l,g){const C=null===t;let w;for(;l>0;){const I=e[l],N=Array.isArray(I),J=N?I[1]:I,Ee=null===J;let Je=i[l+1];Je===an&&(Je=Ee?He:void 0);let ot=Ee?Za(Je,s):J===s?Je:void 0;if(N&&!Ma(ot)&&(ot=Za(I,s)),Ma(ot)&&(w=ot,C))return w;const Mt=e[l+1];l=C?lr(Mt):Vr(Mt)}if(null!==t){let I=g?t.residualClasses:t.residualStyles;null!=I&&(w=Za(I,s))}return w}function Ma(e){return void 0!==e}function Ep(e,t){return 0!=(e.flags&(t?16:32))}function Tp(e,t=""){const i=St(),s=sn(),l=e+22,g=s.firstCreatePass?Fo(s,l,1,t,null):s.data[l],C=i[l]=Rl(i[11],t);la(s,i,C,g),O(g,!1)}function Wc(e){return Sa("",e,""),Wc}function Sa(e,t,i){const s=St(),l=Bo(s,e,t,i);return l!==an&&$r(s,Et(),l),Sa}function Gc(e,t,i,s,l){const g=St(),C=Vo(g,e,t,i,s,l);return C!==an&&$r(g,Et(),C),Gc}function Kc(e,t,i,s,l,g,C){const w=St(),I=$o(w,e,t,i,s,l,g,C);return I!==an&&$r(w,Et(),I),Kc}function Yc(e,t,i,s,l,g,C,w,I){const N=St(),J=Ho(N,e,t,i,s,l,g,C,w,I);return J!==an&&$r(N,Et(),J),Yc}function Qc(e,t,i,s,l,g,C,w,I,N,J){const Ee=St(),Je=Uo(Ee,e,t,i,s,l,g,C,w,I,N,J);return Je!==an&&$r(Ee,Et(),Je),Qc}function Zc(e,t,i,s,l,g,C,w,I,N,J,Ee,Je){const ot=St(),Mt=zo(ot,e,t,i,s,l,g,C,w,I,N,J,Ee,Je);return Mt!==an&&$r(ot,Et(),Mt),Zc}function Jc(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt){const At=St(),Lt=Wo(At,e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt);return Lt!==an&&$r(At,Et(),Lt),Jc}function Xc(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt){const Ut=St(),tn=Go(Ut,e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt);return tn!==an&&$r(Ut,Et(),tn),Xc}function qc(e){const t=St(),i=jo(t,e);return i!==an&&$r(t,Et(),i),qc}function wp(e,t,i){dr(Li,Ir,Bo(St(),e,t,i),!0)}function Mp(e,t,i,s,l){dr(Li,Ir,Vo(St(),e,t,i,s,l),!0)}function Sp(e,t,i,s,l,g,C){dr(Li,Ir,$o(St(),e,t,i,s,l,g,C),!0)}function Ip(e,t,i,s,l,g,C,w,I){dr(Li,Ir,Ho(St(),e,t,i,s,l,g,C,w,I),!0)}function Op(e,t,i,s,l,g,C,w,I,N,J){dr(Li,Ir,Uo(St(),e,t,i,s,l,g,C,w,I,N,J),!0)}function Ap(e,t,i,s,l,g,C,w,I,N,J,Ee,Je){dr(Li,Ir,zo(St(),e,t,i,s,l,g,C,w,I,N,J,Ee,Je),!0)}function Pp(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt){dr(Li,Ir,Wo(St(),e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt),!0)}function Rp(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt){dr(Li,Ir,Go(St(),e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt),!0)}function xp(e){dr(Li,Ir,jo(St(),e),!0)}function Fp(e,t,i){cr(Bo(St(),e,t,i))}function kp(e,t,i,s,l){cr(Vo(St(),e,t,i,s,l))}function Np(e,t,i,s,l,g,C){cr($o(St(),e,t,i,s,l,g,C))}function Lp(e,t,i,s,l,g,C,w,I){cr(Ho(St(),e,t,i,s,l,g,C,w,I))}function jp(e,t,i,s,l,g,C,w,I,N,J){cr(Uo(St(),e,t,i,s,l,g,C,w,I,N,J))}function Bp(e,t,i,s,l,g,C,w,I,N,J,Ee,Je){cr(zo(St(),e,t,i,s,l,g,C,w,I,N,J,Ee,Je))}function Vp(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt){cr(Wo(St(),e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt))}function $p(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt){cr(Go(St(),e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt))}function Hp(e){cr(jo(St(),e))}function eu(e,t,i,s,l){return ur(e,Bo(St(),t,i,s),l,!1),eu}function tu(e,t,i,s,l,g,C){return ur(e,Vo(St(),t,i,s,l,g),C,!1),tu}function nu(e,t,i,s,l,g,C,w,I){return ur(e,$o(St(),t,i,s,l,g,C,w),I,!1),nu}function iu(e,t,i,s,l,g,C,w,I,N,J){return ur(e,Ho(St(),t,i,s,l,g,C,w,I,N),J,!1),iu}function ru(e,t,i,s,l,g,C,w,I,N,J,Ee,Je){return ur(e,Uo(St(),t,i,s,l,g,C,w,I,N,J,Ee),Je,!1),ru}function ou(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt){return ur(e,zo(St(),t,i,s,l,g,C,w,I,N,J,Ee,Je,ot),Mt,!1),ou}function su(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt){return ur(e,Wo(St(),t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At),Lt,!1),su}function au(e,t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt,Ut,tn){return ur(e,Go(St(),t,i,s,l,g,C,w,I,N,J,Ee,Je,ot,Mt,At,Lt,Ut),tn,!1),au}function lu(e,t,i){return ur(e,jo(St(),t),i,!1),lu}function cu(e,t,i){const s=St();return pi(s,Wr(),t)&&ji(sn(),Ft(),s,e,t,s[11],i,!0),cu}function uu(e,t,i){const s=St();if(pi(s,Wr(),t)){const g=sn(),C=Ft();ji(g,C,s,e,t,Hh(ts(g.data),C,s),i,!0)}return uu}const uo=void 0;var A0=["en",[["a","p"],["AM","PM"],uo],[["AM","PM"],uo,uo],[["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"]],uo,[["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"]],uo,[["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}",uo,"{1} 'at' {0}",uo],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function O0(e){const i=Math.floor(Math.abs(e)),s=e.toString().replace(/^[^.]*\.?/,"").length;return 1===i&&0===s?1:5}];let Yo={};function P0(e,t,i){"string"!=typeof t&&(i=t,t=e[Xt.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Yo[t]=e,i&&(Yo[t][Xt.ExtraData]=i)}function du(e){const t=function F0(e){return e.toLowerCase().replace(/_/g,"-")}(e);let i=zp(t);if(i)return i;const s=t.split("-")[0];if(i=zp(s),i)return i;if("en"===s)return A0;throw new M(701,!1)}function R0(e){return du(e)[Xt.CurrencyCode]||null}function Up(e){return du(e)[Xt.PluralCase]}function zp(e){return e in Yo||(Yo[e]=$.ng&&$.ng.common&&$.ng.common.locales&&$.ng.common.locales[e]),Yo[e]}function x0(){Yo={}}var Xt=(()=>((Xt=Xt||{})[Xt.LocaleId=0]="LocaleId",Xt[Xt.DayPeriodsFormat=1]="DayPeriodsFormat",Xt[Xt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Xt[Xt.DaysFormat=3]="DaysFormat",Xt[Xt.DaysStandalone=4]="DaysStandalone",Xt[Xt.MonthsFormat=5]="MonthsFormat",Xt[Xt.MonthsStandalone=6]="MonthsStandalone",Xt[Xt.Eras=7]="Eras",Xt[Xt.FirstDayOfWeek=8]="FirstDayOfWeek",Xt[Xt.WeekendRange=9]="WeekendRange",Xt[Xt.DateFormat=10]="DateFormat",Xt[Xt.TimeFormat=11]="TimeFormat",Xt[Xt.DateTimeFormat=12]="DateTimeFormat",Xt[Xt.NumberSymbols=13]="NumberSymbols",Xt[Xt.NumberFormats=14]="NumberFormats",Xt[Xt.CurrencyCode=15]="CurrencyCode",Xt[Xt.CurrencySymbol=16]="CurrencySymbol",Xt[Xt.CurrencyName=17]="CurrencyName",Xt[Xt.Currencies=18]="Currencies",Xt[Xt.Directionality=19]="Directionality",Xt[Xt.PluralCase=20]="PluralCase",Xt[Xt.ExtraData=21]="ExtraData",Xt))();const k0=["zero","one","two","few","many"],fo="en-US",Ia={marker:"element"},Oa={marker:"ICU"};var zn=(()=>((zn=zn||{})[zn.SHIFT=2]="SHIFT",zn[zn.APPEND_EAGERLY=1]="APPEND_EAGERLY",zn[zn.COMMENT=2]="COMMENT",zn))();let Wp=fo;function fu(e){(function yt(e,t){null==e&&Oe(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Wp=e.toLowerCase().replace(/_/g,"-"))}function Gp(e,t,i){const s=t.insertBeforeIndex,l=Array.isArray(s)?s[0]:s;return null===l?Hf(e,0,i):wn(i[l])}function Kp(e,t,i,s,l){const g=t.insertBeforeIndex;if(Array.isArray(g)){let C=s,w=null;if(3&t.type||(w=C,C=l),null!==C&&0==(2&t.flags))for(let I=1;I<g.length;I++)ao(e,C,i[g[I]],w,!1)}}function Yp(e,t){if(e.push(t),e.length>1)for(let i=e.length-2;i>=0;i--){const s=e[i];Qp(s)||B0(s,t)&&null===V0(s)&&$0(s,t.index)}}function Qp(e){return!(64&e.type)}function B0(e,t){return Qp(t)||e.index>t.index}function V0(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function $0(e,t){const i=e.insertBeforeIndex;Array.isArray(i)?i[0]=t:(zf(Gp,Kp),e.insertBeforeIndex=t)}function Ss(e,t){const i=e.data[t];return null===i||"string"==typeof i?null:i.hasOwnProperty("currentCaseLViewIndex")?i:i.value}function z0(e,t,i){const s=tc(e,i,64,null,null);return Yp(t,s),s}function Aa(e,t){const i=t[e.currentCaseLViewIndex];return null===i?i:i<0?~i:i}function Zp(e){return e>>>17}function Jp(e){return(131070&e)>>>1}let Is=0,Os=0;function qp(e,t,i,s){const l=i[11];let C,g=null;for(let w=0;w<t.length;w++){const I=t[w];if("string"==typeof I){const N=t[++w];null===i[N]&&(i[N]=Rl(l,I))}else if("number"==typeof I)switch(1&I){case 0:const N=Zp(I);let J,Ee;if(null===g&&(g=N,C=aa(l,s)),N===g?(J=s,Ee=C):(J=null,Ee=wn(i[N])),null!==Ee){const At=Jp(I);ao(l,Ee,i[At],J,!1);const Ut=Ss(e,At);if(null!==Ut&&"object"==typeof Ut){const tn=Aa(Ut,i);null!==tn&&qp(e,Ut.create[tn],i,i[Ut.anchorIdx])}}break;case 1:const ot=t[++w],Mt=t[++w];sc(l,Bn(I>>>1,i),null,null,ot,Mt,null)}else switch(I){case Oa:const N=t[++w],J=t[++w];null===i[J]&&hi(i[J]=p_(l,N),i);break;case Ia:const Ee=t[++w],Je=t[++w];null===i[Je]&&hi(i[Je]=xl(l,Ee,null),i)}}}function em(e,t,i,s,l){for(let g=0;g<i.length;g++){const C=i[g],w=i[++g];if(C&l){let I="";for(let N=g+1;N<=g+w;N++){const J=i[N];if("string"==typeof J)I+=J;else if("number"==typeof J)if(J<0)I+=k(t[s-J]);else{const Ee=J>>>2;switch(3&J){case 1:const Je=i[++N],ot=i[++N],Mt=e.data[Ee];"string"==typeof Mt?sc(t[11],t[Ee],null,Mt,Je,I,ot):ji(e,Mt,t,Je,I,t[11],ot,!1);break;case 0:const At=t[Ee];null!==At&&Ff(t[11],At,I);break;case 2:Q0(e,Ss(e,Ee),t,I);break;case 3:tm(e,Ss(e,Ee),s,t)}}}}else{const I=i[g+1];if(I>0&&3==(3&I)){const J=Ss(e,I>>>2);t[J.currentCaseLViewIndex]<0&&tm(e,J,s,t)}}g+=w}}function tm(e,t,i,s){let l=s[t.currentCaseLViewIndex];if(null!==l){let g=Is;l<0&&(l=s[t.currentCaseLViewIndex]=~l,g=-1),em(e,s,t.update[l],i,g)}}function Q0(e,t,i,s){const l=function Z0(e,t){let i=e.cases.indexOf(t);if(-1===i)switch(e.type){case 1:{const s=function N0(e,t){const i=Up(t)(parseInt(e,10)),s=k0[i];return void 0!==s?s:"other"}(t,function j0(){return Wp}());i=e.cases.indexOf(s),-1===i&&"other"!==s&&(i=e.cases.indexOf("other"));break}case 0:i=e.cases.indexOf("other")}return-1===i?null:i}(t,s);if(Aa(t,i)!==l&&(nm(e,t,i),i[t.currentCaseLViewIndex]=null===l?null:~l,null!==l)){const C=i[t.anchorIdx];C&&qp(e,t.create[l],i,C)}}function nm(e,t,i){let s=Aa(t,i);if(null!==s){const l=t.remove[s];for(let g=0;g<l.length;g++){const C=l[g];if(C>0){const w=Bn(C,i);null!==w&&Gf(i[11],w)}else nm(e,Ss(e,~C),i)}}}function J0(){const e=[];let i,s,t=-1;function g(w,I){t=0;const N=Aa(w,I);s=null!==N?w.remove[N]:He}function C(){if(t<s.length){const w=s[t++];return w>0?i[w]:(e.push(t,s),g(i[1].data[~w],i),C())}return 0===e.length?null:(s=e.pop(),t=e.pop(),C())}return function l(w,I){for(i=I;e.length;)e.pop();return g(w.value,I),C}}const Pa=/\ufffd(\d+):?\d*\ufffd/gi,X0=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,q0=/\ufffd(\d+)\ufffd/,rm=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,eC=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,tC=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,nC=/\uE500/g;function om(e,t,i,s,l,g,C){const w=ko(e,s,1,null);let I=w<<zn.SHIFT,N=F();t===N&&(N=null),null===N&&(I|=zn.APPEND_EAGERLY),C&&(I|=zn.COMMENT,function d_(e){void 0===Il&&(Il=e())}(J0)),l.push(I,null===g?"":g);const J=tc(e,w,C?32:1,null===g?"":g,null);Yp(i,J);const Ee=J.index;return O(J,!1),null!==N&&t!==N&&function U0(e,t){let i=e.insertBeforeIndex;null===i?(zf(Gp,Kp),i=e.insertBeforeIndex=[null,t]):(function tt(e,t,i){e!=t&&Oe(i,e,t,"==")}(Array.isArray(i),!0,"Expecting array here"),i.push(t))}(N,Ee),J}function oC(e,t,i,s,l,g,C){const w=C.match(Pa),I=om(e,t,i,g,s,w?null:C,!1);w&&Qo(l,C,I.index,null,0,null)}function Qo(e,t,i,s,l,g){const C=e.length,w=C+1;e.push(null,null);const I=C+2,N=t.split(Pa);let J=0;for(let Ee=0;Ee<N.length;Ee++){const Je=N[Ee];if(1&Ee){const ot=l+parseInt(Je,10);e.push(-1-ot),J|=sm(ot)}else""!==Je&&e.push(Je)}return e.push(i<<2|(s?1:0)),s&&e.push(s,g),e[C]=J,e[w]=e.length-I,J}function aC(e){let t=0;for(let i=0;i<e.length;i++){const s=e[i];"number"==typeof s&&s<0&&t++}return t}function sm(e){return 1<<Math.min(e,31)}function am(e){let t,g,i="",s=0,l=!1;for(;null!==(t=eC.exec(e));)l?t[0]===`\ufffd/*${g}\ufffd`&&(s=t.index,l=!1):(i+=e.substring(s,t.index+t[0].length),g=t[1],l=!0);return i+=e.slice(s),i}function lm(e,t,i,s,l,g){let C=0;const w={type:l.type,currentCaseLViewIndex:ko(e,t,1,null),anchorIdx:g,cases:[],create:[],remove:[],update:[]};(function hC(e,t,i){e.push(sm(t.mainBinding),2,-1-t.mainBinding,i<<2|2)})(i,l,g),function H0(e,t,i){const s=e.data[t];null===s?e.data[t]=i:s.value=i}(e,g,w);const I=l.values;for(let N=0;N<I.length;N++){const J=I[N],Ee=[];for(let Je=0;Je<J.length;Je++){const ot=J[Je];if("string"!=typeof ot){const Mt=Ee.push(ot)-1;J[Je]=`\x3c!--\ufffd${Mt}\ufffd--\x3e`}}C=dC(e,w,t,i,s,l.cases[N],J.join(""),Ee)|C}C&&function pC(e,t,i){e.push(t,1,i<<2|3)}(i,C,g)}function uC(e){const t=[],i=[];let s=1,l=0;const g=hu(e=e.replace(rm,function(C,w,I){return s="select"===I?0:1,l=parseInt(w.slice(1),10),""}));for(let C=0;C<g.length;){let w=g[C++].trim();1===s&&(w=w.replace(/\s*(?:=)?(\w+)\s*/,"$1")),w.length&&t.push(w);const I=hu(g[C++]);t.length>i.length&&i.push(I)}return{type:s,mainBinding:l,cases:t,values:i}}function hu(e){if(!e)return[];let t=0;const i=[],s=[],l=/[{}]/g;let g;for(l.lastIndex=0;g=l.exec(e);){const w=g.index;if("}"==g[0]){if(i.pop(),0==i.length){const I=e.substring(t,w);rm.test(I)?s.push(uC(I)):s.push(I),t=w+1}}else{if(0==i.length){const I=e.substring(t,w);s.push(I),t=w+1}i.push("{")}}const C=e.substring(t);return s.push(C),s}function dC(e,t,i,s,l,g,C,w){const I=[],N=[],J=[];t.cases.push(g),t.create.push(I),t.remove.push(N),t.update.push(J);const Je=jd(xd()).getInertBodyElement(C),ot=ll(Je)||Je;return ot?cm(e,t,i,s,I,N,J,ot,l,w,0):0}function cm(e,t,i,s,l,g,C,w,I,N,J){let Ee=0,Je=w.firstChild;for(;Je;){const ot=ko(e,i,1,null);switch(Je.nodeType){case Node.ELEMENT_NODE:const Mt=Je,At=Mt.tagName.toLowerCase();if(ol.hasOwnProperty(At)){pu(l,Ia,At,I,ot),e.data[ot]=At;const Ot=Mt.attributes;for(let Kt=0;Kt<Ot.length;Kt++){const mn=Ot.item(Kt),Ln=mn.name.toLowerCase();mn.value.match(Pa)?Ud.hasOwnProperty(Ln)&&Qo(C,mn.value,ot,mn.name,0,sl[Ln]?hs:al[Ln]?Bd:null):mC(l,ot,mn)}Ee=cm(e,t,i,s,l,g,C,Je,ot,N,J+1)|Ee,um(g,ot,J)}break;case Node.TEXT_NODE:const Lt=Je.textContent||"",Ut=Lt.match(Pa);pu(l,null,Ut?"":Lt,I,ot),um(g,ot,J),Ut&&(Ee=Qo(C,Lt,ot,null,0,null)|Ee);break;case Node.COMMENT_NODE:const tn=q0.exec(Je.textContent||"");if(tn){const Kt=N[parseInt(tn[1],10)];pu(l,Oa,"",I,ot),lm(e,i,s,I,Kt,ot),fC(g,ot,J)}}Je=Je.nextSibling}return Ee}function um(e,t,i){0===i&&e.push(t)}function fC(e,t,i){0===i&&(e.push(~t),e.push(t))}function pu(e,t,i,s,l){null!==t&&e.push(t),e.push(i,l,function W0(e,t,i){return e|t<<17|i<<1}(0,s,l))}function mC(e,t,i){e.push(t<<1|1,i.name,i.value)}const gC=/\[(\ufffd.+?\ufffd?)\]/,vC=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,yC=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,_C=/{([A-Z0-9_]+)}/g,bC=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,CC=/\/\*/,DC=/\d+\:(\d+)/;function mu(e,t,i=-1){const s=sn(),l=St(),g=22+e,C=le(s.consts,t),w=F();s.firstCreatePass&&function rC(e,t,i,s,l,g){const C=F(),w=[],I=[],N=[[]];l=function cC(e,t){if(function lC(e){return-1===e}(t))return am(e);{const i=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,s=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return am(e.substring(i,s))}}(l,g);const J=function iC(e){return e.replace(nC," ")}(l).split(tC);for(let Ee=0;Ee<J.length;Ee++){let Je=J[Ee];if(0==(1&Ee)){const ot=hu(Je);for(let Mt=0;Mt<ot.length;Mt++){let At=ot[Mt];if(0==(1&Mt)){const Lt=At;""!==Lt&&oC(e,C,N[0],w,I,i,Lt)}else{const Lt=At;if("object"!=typeof Lt)throw new Error(`Unable to parse ICU expression in "${l}" message.`);lm(e,i,I,t,Lt,om(e,C,N[0],i,w,"",!0).index)}}}else{const ot=47===Je.charCodeAt(0),At=(Je.charCodeAt(ot?1:0),22+Number.parseInt(Je.substring(ot?2:1)));if(ot)N.shift(),O(F(),!1);else{const Lt=z0(e,N[0],At);N.unshift([]),O(Lt,!0)}}}e.data[s]={create:w,update:I}}(s,null===w?0:w.index,l,g,C,i);const I=s.data[g],J=jf(s,w===l[6]?null:w,l);(function Y0(e,t,i,s){const l=e[11];for(let g=0;g<t.length;g++){const C=t[g++],w=t[g],I=(C&zn.COMMENT)===zn.COMMENT,N=(C&zn.APPEND_EAGERLY)===zn.APPEND_EAGERLY,J=C>>>zn.SHIFT;let Ee=e[J];null===Ee&&(Ee=e[J]=I?l.createComment(w):Rl(l,w)),N&&null!==i&&ao(l,i,Ee,s,!1)}})(l,I.create,J,w&&8&w.type?l[w.index]:null),js(!0)}function gu(){js(!1)}function fm(e,t,i){mu(e,t,i),gu()}function hm(e,t){const i=sn();!function sC(e,t,i){const l=An().index,g=[];if(e.firstCreatePass&&null===e.data[t]){for(let C=0;C<i.length;C+=2){const w=i[C],I=i[C+1];if(""!==I){if(X0.test(I))throw new Error(`ICU expressions are not supported in attributes. Message: "${I}".`);Qo(g,I,l,w,aC(g),null)}}e.data[t]=g}}(i,e+22,le(i.consts,t))}function vu(e){return function G0(e){e&&(Is|=1<<Math.min(Os,31)),Os++}(pi(St(),Wr(),e)),vu}function pm(e){!function K0(e,t,i){if(Os>0){const s=e.data[i];em(e,t,Array.isArray(s)?s:s.update,ci()-Os-1,Is)}Is=0,Os=0}(sn(),St(),e+22)}function mm(e,t={}){return function EC(e,t={}){let i=e;if(gC.test(e)){const s={},l=[0];i=i.replace(vC,(g,C,w)=>{const I=C||w,N=s[I]||[];if(N.length||(I.split("|").forEach(At=>{const Lt=At.match(DC),Ut=Lt?parseInt(Lt[1],10):0,tn=CC.test(At);N.push([Ut,tn,At])}),s[I]=N),!N.length)throw new Error(`i18n postprocess: unmatched placeholder - ${I}`);const J=l[l.length-1];let Ee=0;for(let At=0;At<N.length;At++)if(N[At][0]===J){Ee=At;break}const[Je,ot,Mt]=N[Ee];return ot?l.pop():J!==Je&&l.push(Je),N.splice(Ee,1),Mt})}return Object.keys(t).length&&(i=i.replace(yC,(s,l,g,C,w,I)=>t.hasOwnProperty(g)?`${l}${t[g]}${I}`:s),i=i.replace(_C,(s,l)=>t.hasOwnProperty(l)?t[l]:s),i=i.replace(bC,(s,l)=>{if(t.hasOwnProperty(l)){const g=t[l];if(!g.length)throw new Error(`i18n postprocess: unmatched ICU - ${s} with key: ${l}`);return g.shift()}return s})),i}(e,t)}function yu(e,t,i,s,l){if(e=v(e),Array.isArray(e))for(let g=0;g<e.length;g++)yu(e[g],t,i,s,l);else{const g=sn(),C=St();let w=oo(e)?e:v(e.provide),I=lf(e);const N=An(),J=1048575&N.providerIndexes,Ee=N.directiveStart,Je=N.providerIndexes>>20;if(oo(e)||!e.multi){const ot=new Dr(I,l,xo),Mt=bu(w,t,l?J:J+Je,Ee);-1===Mt?(zs(is(N,C),g,w),_u(g,e,t.length),t.push(w),N.directiveStart++,N.directiveEnd++,l&&(N.providerIndexes+=1048576),i.push(ot),C.push(ot)):(i[Mt]=ot,C[Mt]=ot)}else{const ot=bu(w,t,J+Je,Ee),Mt=bu(w,t,J,J+Je),At=ot>=0&&i[ot],Lt=Mt>=0&&i[Mt];if(l&&!Lt||!l&&!At){zs(is(N,C),g,w);const Ut=function SC(e,t,i,s,l){const g=new Dr(e,i,xo);return g.multi=[],g.index=t,g.componentProviders=0,gm(g,l,s&&!i),g}(l?MC:wC,i.length,l,s,I);!l&&Lt&&(i[Mt].providerFactory=Ut),_u(g,e,t.length,0),t.push(w),N.directiveStart++,N.directiveEnd++,l&&(N.providerIndexes+=1048576),i.push(Ut),C.push(Ut)}else _u(g,e,ot>-1?ot:Mt,gm(i[l?Mt:ot],I,!l&&s));!l&&s&&Lt&&i[Mt].componentProviders++}}}function _u(e,t,i,s){const l=oo(t),g=function Ty(e){return!!e.useClass}(t);if(l||g){const I=(g?v(t.useClass):t).prototype.ngOnDestroy;if(I){const N=e.destroyHooks||(e.destroyHooks=[]);if(!l&&t.multi){const J=N.indexOf(i);-1===J?N.push(i,[s,I]):N[J+1].push(s,I)}else N.push(i,I)}}}function gm(e,t,i){return i&&e.componentProviders++,e.multi.push(t)-1}function bu(e,t,i,s){for(let l=i;l<s;l++)if(t[l]===e)return l;return-1}function wC(e,t,i,s){return Cu(this.multi,[])}function MC(e,t,i,s){const l=this.multi;let g;if(this.providerFactory){const C=this.providerFactory.componentProviders,w=rs(i,i[1],this.providerFactory.index,s);g=w.slice(0,C),Cu(l,g);for(let I=C;I<w.length;I++)g.push(w[I])}else g=[],Cu(l,g);return g}function Cu(e,t){for(let i=0;i<e.length;i++)t.push((0,e[i])());return t}function vm(e,t=[]){return i=>{i.providersResolver=(s,l)=>function TC(e,t,i){const s=sn();if(s.firstCreatePass){const l=Hn(e);yu(i,s.data,s.blueprint,l,!0),yu(t,s.data,s.blueprint,l,!1)}}(s,l?l(e):e,t)}}class Zo{}class ym{}function _m(e,t){return new Du(e,null!=t?t:null)}const IC=_m;class Du extends Zo{constructor(t,i){super(),this._parent=i,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new fc(this);const s=$t(t);this._bootstrapComponents=jr(s.bootstrap),this._r3Injector=oh(t,i,[{provide:Zo,useValue:this},{provide:gs,useValue:this.componentFactoryResolver}],h(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(i=>i()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ra extends ym{constructor(t){super(),this.moduleType=t}create(t){return new Du(this.moduleType,t)}}class OC extends Zo{constructor(t,i,s){super(),this.componentFactoryResolver=new fc(this),this.instance=null;const l=new af([...t,{provide:Zo,useValue:this},{provide:gs,useValue:this.componentFactoryResolver}],i||ra(),s,new Set(["environment"]));this.injector=l,l.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Eu(e,t,i=null){return new OC(e,t,i).injector}let AC=(()=>{class e{constructor(i){this._injector=i,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(i){if(!i.standalone)return null;if(!this.cachedInjectors.has(i.id)){const s=tf(0,i.type),l=s.length>0?Eu([s],this._injector,`Standalone[${i.type.name}]`):null;this.cachedInjectors.set(i.id,l)}return this.cachedInjectors.get(i.id)}ngOnDestroy(){try{for(const i of this.cachedInjectors.values())null!==i&&i.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=at({token:e,providedIn:"environment",factory:()=>new e(ti(so))}),e})();function bm(e){e.getStandaloneInjector=t=>t.get(AC).getOrCreateStandaloneInjector(e)}function Tu(e){const t=fi(e);if(null===t)return null;if(void 0===t.component){const i=t.lView;if(null===i)return null;t.component=function s_(e,t){const i=t[1].data[e];return 2&i.flags?t[i.directiveStart]:null}(t.nodeIndex,i)}return t.component}function Cm(e){!function NC(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}(e);const t=fi(e),i=t?t.lView:null;return null===i?null:i[8]}function Dm(e){const t=fi(e);let s,i=t?t.lView:null;if(null===i)return null;for(;2===i[1].type&&(s=bs(i));)i=s;return 256&i[2]?null:i[8]}function Em(e){const t=Sl(e);return null!==t?[...Rf(t).components]:[]}function Tm(e){const t=fi(e),i=t?t.lView:null;return null===i?Zr.NULL:new vo(i[1].data[t.nodeIndex],i)}function wm(e){if(e instanceof Text)return[];const t=fi(e),i=t?t.lView:null;if(null===i)return[];const s=i[1],l=t.nodeIndex;return null!=s&&s.data[l]?(void 0===t.directives&&(t.directives=Mf(l,i,!1)),null===t.directives?[]:[...t.directives]):[]}function RC(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const i=ye(t);if(i)return{inputs:i.inputs,outputs:i.outputs,encapsulation:i.encapsulation,changeDetection:i.onPush?ge.OnPush:ge.Default};const s=qe(t);return s?{inputs:s.inputs,outputs:s.outputs}:null}function wu(e){return fi(e).native}function Mm(e){const t=fi(e),i=null===t?null:t.lView;if(null===i)return[];const l=i[7],g=i[1].cleanup,C=[];if(g&&l)for(let w=0;w<g.length;){const I=g[w++],N=g[w++];if("string"==typeof I){const J=I,Ee=wn(i[N]),Je=l[g[w++]],ot=g[w++],Mt="boolean"==typeof ot||ot>=0?"dom":"output",At="boolean"==typeof ot&&ot;e==Ee&&C.push({element:e,name:J,callback:Je,useCapture:At,type:Mt})}}return C.sort(FC),C}function FC(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function kC(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function Sm(e,t,i,s){return Fe(()=>{const l=e;null!==t&&(l.hasOwnProperty("decorators")&&void 0!==l.decorators?l.decorators.push(...t):l.decorators=t),null!==i&&(l.ctorParameters=i),null!==s&&(l.propDecorators=l.hasOwnProperty("propDecorators")&&void 0!==l.propDecorators?Object.assign(Object.assign({},l.propDecorators),s):s)})}function Im(e,t,i){const s=Vn()+e,l=St();return l[s]===an?Sr(l,s,i?t.call(i):t()):ws(l,s)}function Om(e,t,i,s){return jm(St(),Vn(),e,t,i,s)}function Am(e,t,i,s,l){return Bm(St(),Vn(),e,t,i,s,l)}function Pm(e,t,i,s,l,g){return Vm(St(),Vn(),e,t,i,s,l,g)}function Rm(e,t,i,s,l,g,C){return $m(St(),Vn(),e,t,i,s,l,g,C)}function xm(e,t,i,s,l,g,C,w){const I=Vn()+e,N=St(),J=Ki(N,I,i,s,l,g);return pi(N,I+4,C)||J?Sr(N,I+5,w?t.call(w,i,s,l,g,C):t(i,s,l,g,C)):ws(N,I+5)}function Fm(e,t,i,s,l,g,C,w,I){const N=Vn()+e,J=St(),Ee=Ki(J,N,i,s,l,g);return co(J,N+4,C,w)||Ee?Sr(J,N+6,I?t.call(I,i,s,l,g,C,w):t(i,s,l,g,C,w)):ws(J,N+6)}function km(e,t,i,s,l,g,C,w,I,N){const J=Vn()+e,Ee=St();let Je=Ki(Ee,J,i,s,l,g);return ba(Ee,J+4,C,w,I)||Je?Sr(Ee,J+7,N?t.call(N,i,s,l,g,C,w,I):t(i,s,l,g,C,w,I)):ws(Ee,J+7)}function Nm(e,t,i,s,l,g,C,w,I,N,J){const Ee=Vn()+e,Je=St(),ot=Ki(Je,Ee,i,s,l,g);return Ki(Je,Ee+4,C,w,I,N)||ot?Sr(Je,Ee+8,J?t.call(J,i,s,l,g,C,w,I,N):t(i,s,l,g,C,w,I,N)):ws(Je,Ee+8)}function Lm(e,t,i,s){return Hm(St(),Vn(),e,t,i,s)}function Ps(e,t){const i=e[t];return i===an?void 0:i}function jm(e,t,i,s,l,g){const C=t+i;return pi(e,C,l)?Sr(e,C+1,g?s.call(g,l):s(l)):Ps(e,C+1)}function Bm(e,t,i,s,l,g,C){const w=t+i;return co(e,w,l,g)?Sr(e,w+2,C?s.call(C,l,g):s(l,g)):Ps(e,w+2)}function Vm(e,t,i,s,l,g,C,w){const I=t+i;return ba(e,I,l,g,C)?Sr(e,I+3,w?s.call(w,l,g,C):s(l,g,C)):Ps(e,I+3)}function $m(e,t,i,s,l,g,C,w,I){const N=t+i;return Ki(e,N,l,g,C,w)?Sr(e,N+4,I?s.call(I,l,g,C,w):s(l,g,C,w)):Ps(e,N+4)}function Hm(e,t,i,s,l,g){let C=t+i,w=!1;for(let I=0;I<l.length;I++)pi(e,C++,l[I])&&(w=!0);return w?Sr(e,C,s.apply(g,l)):Ps(e,C)}function Um(e,t){const i=sn();let s;const l=e+22;i.firstCreatePass?(s=function LC(e,t){if(t)for(let i=t.length-1;i>=0;i--){const s=t[i];if(e===s.name)return s}}(t,i.pipeRegistry),i.data[l]=s,s.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(l,s.onDestroy)):s=i.data[l];const g=s.factory||(s.factory=mi(s.type)),C=De(xo);try{const w=Gi(!1),I=g();return Gi(w),qh(i,St(),l,I),I}finally{De(C)}}function zm(e,t,i){const s=e+22,l=St(),g=Mi(l,s);return Rs(l,s)?jm(l,Vn(),t,g.transform,i,g):g.transform(i)}function Wm(e,t,i,s){const l=e+22,g=St(),C=Mi(g,l);return Rs(g,l)?Bm(g,Vn(),t,C.transform,i,s,C):C.transform(i,s)}function Gm(e,t,i,s,l){const g=e+22,C=St(),w=Mi(C,g);return Rs(C,g)?Vm(C,Vn(),t,w.transform,i,s,l,w):w.transform(i,s,l)}function Km(e,t,i,s,l,g){const C=e+22,w=St(),I=Mi(w,C);return Rs(w,C)?$m(w,Vn(),t,I.transform,i,s,l,g,I):I.transform(i,s,l,g)}function Ym(e,t,i){const s=e+22,l=St(),g=Mi(l,s);return Rs(l,s)?Hm(l,Vn(),t,g.transform,i,g):g.transform.apply(g,i)}function Rs(e,t){return e[1].data[t].pure}function Mu(e){return t=>{setTimeout(e,void 0,t)}}const Or=class jC extends n.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,i,s){var l,g,C;let w=t,I=i||(()=>null),N=s;if(t&&"object"==typeof t){const Ee=t;w=null===(l=Ee.next)||void 0===l?void 0:l.bind(Ee),I=null===(g=Ee.error)||void 0===g?void 0:g.bind(Ee),N=null===(C=Ee.complete)||void 0===C?void 0:C.bind(Ee)}this.__isAsync&&(I=Mu(I),w&&(w=Mu(w)),N&&(N=Mu(N)));const J=super.subscribe({next:w,error:I,complete:N});return t instanceof p.w0&&t.add(J),J}};function BC(){return this._results[lo()]()}class xa{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 i=lo(),s=xa.prototype;s[i]||(s[i]=BC)}get changes(){return this._changes||(this._changes=new Or)}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,i){return this._results.reduce(t,i)}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,i){const s=this;s.dirty=!1;const l=Ni(t);(this._changesDetected=!function Pv(e,t,i){if(e.length!==t.length)return!1;for(let s=0;s<e.length;s++){let l=e[s],g=t[s];if(i&&(l=i(l),g=i(g)),g!==l)return!1}return!0}(s._results,l,i))&&(s._results=l,s.length=l.length,s.last=l[this.length-1],s.first=l[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let xs=(()=>{class e{}return e.__NG_ELEMENT_ID__=HC,e})();const VC=xs,$C=class extends VC{constructor(t,i,s){super(),this._declarationLView=t,this._declarationTContainer=i,this.elementRef=s}createEmbeddedView(t,i){const s=this._declarationTContainer.tViews,l=pa(this._declarationLView,s,t,16,null,s.declTNode,null,null,null,null,i||null);l[17]=this._declarationLView[this._declarationTContainer.index];const C=this._declarationLView[19];return null!==C&&(l[19]=C.createEmbeddedView(s)),ma(s,l,t),new No(l)}};function HC(){return Fa(An(),St())}function Fa(e,t){return 4&e.type?new $C(t,e,Oo(e,t)):null}let ka=(()=>{class e{}return e.__NG_ELEMENT_ID__=UC,e})();function UC(){return Jm(An(),St())}const zC=ka,Qm=class extends zC{constructor(t,i,s){super(),this._lContainer=t,this._hostTNode=i,this._hostLView=s}get element(){return Oo(this._hostTNode,this._hostLView)}get injector(){return new vo(this._hostTNode,this._hostLView)}get parentInjector(){const t=Us(this._hostTNode,this._hostLView);if(sr(t)){const i=Kr(t,this._hostLView),s=Tn(t);return new vo(i[1].data[s+8],i)}return new vo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const i=Zm(this._lContainer);return null!==i&&i[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,i,s){let l,g;"number"==typeof s?l=s:null!=s&&(l=s.index,g=s.injector);const C=t.createEmbeddedView(i||{},g);return this.insert(C,l),C}createComponent(t,i,s,l,g){const C=t&&!ss(t);let w;if(C)w=i;else{const Ee=i||{};w=Ee.index,s=Ee.injector,l=Ee.projectableNodes,g=Ee.environmentInjector||Ee.ngModuleRef}const I=C?t:new Lo(ye(t)),N=s||this.parentInjector;if(!g&&null==I.ngModule){const Je=(C?N:this.parentInjector).get(so,null);Je&&(g=Je)}const J=I.create(N,l,void 0,g);return this.insert(J.hostView,w),J}insert(t,i){const s=t._lView,l=s[1];if(function x(e){return Wn(e[3])}(s)){const J=this.indexOf(t);if(-1!==J)this.detach(J);else{const Ee=s[3],Je=new Qm(Ee,Ee[6],Ee[3]);Je.detach(Je.indexOf(t))}}const g=this._adjustIndex(i),C=this._lContainer;!function __(e,t,i,s){const l=10+s,g=i.length;s>0&&(i[l-1][4]=t),s<g-10?(t[4]=i[l],yd(i,10+s,t)):(i.push(t),t[4]=null),t[3]=i;const C=t[17];null!==C&&i!==C&&function b_(e,t){const i=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===i?e[9]=[t]:i.push(t)}(C,t);const w=t[19];null!==w&&w.insertView(e),t[2]|=64}(l,s,C,g);const w=Ll(g,C),I=s[11],N=aa(I,C[7]);return null!==N&&function g_(e,t,i,s,l,g){s[0]=l,s[6]=t,Cs(e,s,i,1,l,g)}(l,C[6],I,s,N,w),t.attachToViewContainerRef(),yd(Su(C),g,t),t}move(t,i){return this.insert(t,i)}indexOf(t){const i=Zm(this._lContainer);return null!==i?i.indexOf(t):-1}remove(t){const i=this._adjustIndex(t,-1),s=Fl(this._lContainer,i);s&&(Ks(Su(this._lContainer),i),Nf(s[1],s))}detach(t){const i=this._adjustIndex(t,-1),s=Fl(this._lContainer,i);return s&&null!=Ks(Su(this._lContainer),i)?new No(s):null}_adjustIndex(t,i=0){return null==t?this.length+i:t}};function Zm(e){return e[8]}function Su(e){return e[8]||(e[8]=[])}function Jm(e,t){let i;const s=t[e.index];if(Wn(s))i=s;else{let l;if(8&e.type)l=wn(s);else{const g=t[11];l=g.createComment("");const C=Dn(e,t);ao(g,aa(g,C),l,function T_(e,t){return e.nextSibling(t)}(g,C),!1)}t[e.index]=i=Lh(s,t,l,e),ga(t,i)}return new Qm(i,e,t)}class Iu{constructor(t){this.queryList=t,this.matches=null}clone(){return new Iu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ou{constructor(t=[]){this.queries=t}createEmbeddedView(t){const i=t.queries;if(null!==i){const s=null!==t.contentQueries?t.contentQueries[0]:i.length,l=[];for(let g=0;g<s;g++){const C=i.getByIndex(g);l.push(this.queries[C.indexInDeclarationView].clone())}return new Ou(l)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let i=0;i<this.queries.length;i++)null!==sg(t,i).matches&&this.queries[i].setDirty()}}class Xm{constructor(t,i,s=null){this.predicate=t,this.flags=i,this.read=s}}class Au{constructor(t=[]){this.queries=t}elementStart(t,i){for(let s=0;s<this.queries.length;s++)this.queries[s].elementStart(t,i)}elementEnd(t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementEnd(t)}embeddedTView(t){let i=null;for(let s=0;s<this.length;s++){const l=null!==i?i.length:0,g=this.getByIndex(s).embeddedTView(t,l);g&&(g.indexInDeclarationView=s,null!==i?i.push(g):i=[g])}return null!==i?new Au(i):null}template(t,i){for(let s=0;s<this.queries.length;s++)this.queries[s].template(t,i)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Pu{constructor(t,i=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=i}elementStart(t,i){this.isApplyingToNode(i)&&this.matchTNode(t,i)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,i){this.elementStart(t,i)}embeddedTView(t,i){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,i),new Pu(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const i=this._declarationNodeIndex;let s=t.parent;for(;null!==s&&8&s.type&&s.index!==i;)s=s.parent;return i===(null!==s?s.index:-1)}return this._appliesToNextNode}matchTNode(t,i){const s=this.metadata.predicate;if(Array.isArray(s))for(let l=0;l<s.length;l++){const g=s[l];this.matchTNodeWithReadOption(t,i,KC(i,g)),this.matchTNodeWithReadOption(t,i,Ws(i,t,g,!1,!1))}else s===xs?4&i.type&&this.matchTNodeWithReadOption(t,i,-1):this.matchTNodeWithReadOption(t,i,Ws(i,t,s,!1,!1))}matchTNodeWithReadOption(t,i,s){if(null!==s){const l=this.metadata.read;if(null!==l)if(l===vs||l===ka||l===xs&&4&i.type)this.addMatch(i.index,-2);else{const g=Ws(i,t,l,!1,!1);null!==g&&this.addMatch(i.index,g)}else this.addMatch(i.index,s)}}addMatch(t,i){null===this.matches?this.matches=[t,i]:this.matches.push(t,i)}}function KC(e,t){const i=e.localNames;if(null!==i)for(let s=0;s<i.length;s+=2)if(i[s]===t)return i[s+1];return null}function QC(e,t,i,s){return-1===i?function YC(e,t){return 11&e.type?Oo(e,t):4&e.type?Fa(e,t):null}(t,e):-2===i?function ZC(e,t,i){return i===vs?Oo(t,e):i===xs?Fa(t,e):i===ka?Jm(t,e):void 0}(e,t,s):rs(e,e[1],i,t)}function qm(e,t,i,s){const l=t[19].queries[s];if(null===l.matches){const g=e.data,C=i.matches,w=[];for(let I=0;I<C.length;I+=2){const N=C[I];w.push(N<0?null:QC(t,g[N],C[I+1],i.metadata.read))}l.matches=w}return l.matches}function Ru(e,t,i,s){const l=e.queries.getByIndex(i),g=l.matches;if(null!==g){const C=qm(e,t,l,i);for(let w=0;w<g.length;w+=2){const I=g[w];if(I>0)s.push(C[w/2]);else{const N=g[w+1],J=t[-I];for(let Ee=10;Ee<J.length;Ee++){const Je=J[Ee];Je[17]===Je[3]&&Ru(Je[1],Je,N,s)}if(null!==J[9]){const Ee=J[9];for(let Je=0;Je<Ee.length;Je++){const ot=Ee[Je];Ru(ot[1],ot,N,s)}}}}}return s}function eg(e){const t=St(),i=sn(),s=Vs();ns(s+1);const l=sg(i,s);if(e.dirty&&R(t)===(2==(2&l.metadata.flags))){if(null===l.matches)e.reset([]);else{const g=l.crossesNgTemplate?Ru(i,t,s,[]):qm(i,t,l,s);e.reset(g,ky),e.notifyOnChanges()}return!0}return!1}function tg(e,t,i){const s=sn();s.firstCreatePass&&(og(s,new Xm(e,t,i),-1),2==(2&t)&&(s.staticViewQueries=!0)),rg(s,St(),t)}function ng(e,t,i,s){const l=sn();if(l.firstCreatePass){const g=An();og(l,new Xm(t,i,s),g.index),function XC(e,t){const i=e.contentQueries||(e.contentQueries=[]);t!==(i.length?i[i.length-1]:-1)&&i.push(e.queries.length-1,t)}(l,e),2==(2&i)&&(l.staticContentQueries=!0)}rg(l,St(),i)}function ig(){return function JC(e,t){return e[19].queries[t].queryList}(St(),Vs())}function rg(e,t,i){const s=new xa(4==(4&i));Ih(e,t,s,s.destroy),null===t[19]&&(t[19]=new Ou),t[19].queries.push(new Iu(s))}function og(e,t,i){null===e.queries&&(e.queries=new Au),e.queries.track(new Pu(t,i))}function sg(e,t){return e.queries.getByIndex(t)}function ag(e,t){return Fa(e,t)}const bi=(()=>({\u0275\u0275attribute:gc,\u0275\u0275attributeInterpolate1:vc,\u0275\u0275attributeInterpolate2:yc,\u0275\u0275attributeInterpolate3:_c,\u0275\u0275attributeInterpolate4:bc,\u0275\u0275attributeInterpolate5:Cc,\u0275\u0275attributeInterpolate6:Dc,\u0275\u0275attributeInterpolate7:Ec,\u0275\u0275attributeInterpolate8:Tc,\u0275\u0275attributeInterpolateV:wc,\u0275\u0275defineComponent:ve,\u0275\u0275defineDirective:pt,\u0275\u0275defineInjectable:at,\u0275\u0275defineInjector:nt,\u0275\u0275defineNgModule:be,\u0275\u0275definePipe:se,\u0275\u0275directiveInject:xo,\u0275\u0275getInheritedFactory:pd,\u0275\u0275inject:ti,\u0275\u0275injectAttribute:Ya,\u0275\u0275invalidFactory:hh,\u0275\u0275invalidFactoryDep:qa,\u0275\u0275templateRefExtractor:ag,\u0275\u0275resetView:xi,\u0275\u0275NgOnChangesFeature:Ei,\u0275\u0275ProvidersFeature:vm,\u0275\u0275CopyDefinitionFeature:Yh,\u0275\u0275InheritDefinitionFeature:hc,\u0275\u0275StandaloneFeature:bm,\u0275\u0275nextContext:ap,\u0275\u0275namespaceHTML:en,\u0275\u0275namespaceMathML:un,\u0275\u0275namespaceSVG:cn,\u0275\u0275enableBindings:yn,\u0275\u0275disableBindings:kn,\u0275\u0275elementStart:Ca,\u0275\u0275elementEnd:Da,\u0275\u0275element:Ic,\u0275\u0275elementContainerStart:Ea,\u0275\u0275elementContainerEnd:Ta,\u0275\u0275elementContainer:Oc,\u0275\u0275pureFunction0:Im,\u0275\u0275pureFunction1:Om,\u0275\u0275pureFunction2:Am,\u0275\u0275pureFunction3:Pm,\u0275\u0275pureFunction4:Rm,\u0275\u0275pureFunction5:xm,\u0275\u0275pureFunction6:Fm,\u0275\u0275pureFunction7:km,\u0275\u0275pureFunction8:Nm,\u0275\u0275pureFunctionV:Lm,\u0275\u0275getCurrentView:tp,\u0275\u0275restoreView:vi,\u0275\u0275listener:Pc,\u0275\u0275projection:cp,\u0275\u0275syntheticHostProperty:uu,\u0275\u0275syntheticHostListener:Rc,\u0275\u0275pipeBind1:zm,\u0275\u0275pipeBind2:Wm,\u0275\u0275pipeBind3:Gm,\u0275\u0275pipeBind4:Km,\u0275\u0275pipeBindV:Ym,\u0275\u0275projectionDef:lp,\u0275\u0275hostProperty:cu,\u0275\u0275property:Mc,\u0275\u0275propertyInterpolate:xc,\u0275\u0275propertyInterpolate1:wa,\u0275\u0275propertyInterpolate2:Fc,\u0275\u0275propertyInterpolate3:kc,\u0275\u0275propertyInterpolate4:Nc,\u0275\u0275propertyInterpolate5:Lc,\u0275\u0275propertyInterpolate6:jc,\u0275\u0275propertyInterpolate7:Bc,\u0275\u0275propertyInterpolate8:Vc,\u0275\u0275propertyInterpolateV:$c,\u0275\u0275pipe:Um,\u0275\u0275queryRefresh:eg,\u0275\u0275viewQuery:tg,\u0275\u0275loadQuery:ig,\u0275\u0275contentQuery:ng,\u0275\u0275reference:ep,\u0275\u0275classMap:vp,\u0275\u0275classMapInterpolate1:wp,\u0275\u0275classMapInterpolate2:Mp,\u0275\u0275classMapInterpolate3:Sp,\u0275\u0275classMapInterpolate4:Ip,\u0275\u0275classMapInterpolate5:Op,\u0275\u0275classMapInterpolate6:Ap,\u0275\u0275classMapInterpolate7:Pp,\u0275\u0275classMapInterpolate8:Rp,\u0275\u0275classMapInterpolateV:xp,\u0275\u0275styleMap:cr,\u0275\u0275styleMapInterpolate1:Fp,\u0275\u0275styleMapInterpolate2:kp,\u0275\u0275styleMapInterpolate3:Np,\u0275\u0275styleMapInterpolate4:Lp,\u0275\u0275styleMapInterpolate5:jp,\u0275\u0275styleMapInterpolate6:Bp,\u0275\u0275styleMapInterpolate7:Vp,\u0275\u0275styleMapInterpolate8:$p,\u0275\u0275styleMapInterpolateV:Hp,\u0275\u0275styleProp:Hc,\u0275\u0275stylePropInterpolate1:eu,\u0275\u0275stylePropInterpolate2:tu,\u0275\u0275stylePropInterpolate3:nu,\u0275\u0275stylePropInterpolate4:iu,\u0275\u0275stylePropInterpolate5:ru,\u0275\u0275stylePropInterpolate6:ou,\u0275\u0275stylePropInterpolate7:su,\u0275\u0275stylePropInterpolate8:au,\u0275\u0275stylePropInterpolateV:lu,\u0275\u0275classProp:Uc,\u0275\u0275advance:eh,\u0275\u0275template:Xh,\u0275\u0275text:Tp,\u0275\u0275textInterpolate:Wc,\u0275\u0275textInterpolate1:Sa,\u0275\u0275textInterpolate2:Gc,\u0275\u0275textInterpolate3:Kc,\u0275\u0275textInterpolate4:Yc,\u0275\u0275textInterpolate5:Qc,\u0275\u0275textInterpolate6:Zc,\u0275\u0275textInterpolate7:Jc,\u0275\u0275textInterpolate8:Xc,\u0275\u0275textInterpolateV:qc,\u0275\u0275i18n:fm,\u0275\u0275i18nAttributes:hm,\u0275\u0275i18nExp:vu,\u0275\u0275i18nStart:mu,\u0275\u0275i18nEnd:gu,\u0275\u0275i18nApply:pm,\u0275\u0275i18nPostprocess:mm,\u0275\u0275resolveWindow:Sf,\u0275\u0275resolveDocument:If,\u0275\u0275resolveBody:Of,\u0275\u0275setComponentScope:fe,\u0275\u0275setNgModuleScope:ct,\u0275\u0275registerNgModuleType:tl,\u0275\u0275sanitizeHtml:Gd,\u0275\u0275sanitizeStyle:Kd,\u0275\u0275sanitizeResourceUrl:ul,\u0275\u0275sanitizeScript:Yd,\u0275\u0275sanitizeUrl:cl,\u0275\u0275sanitizeUrlOrResourceUrl:Jd,\u0275\u0275trustConstantHtml:Qd,\u0275\u0275trustConstantResourceUrl:Zd,forwardRef:_,resolveForwardRef:v}))();let Jo=null;function tD(){Jo=null}function cg(e){return!!$t(e)}const Fs=[];let xu=!1;function ug(){if(!xu){xu=!0;try{for(let e=Fs.length-1;e>=0;e--){const{moduleType:t,ngModule:i}=Fs[e];i.declarations&&i.declarations.every(dg)&&(Fs.splice(e,1),oD(t,i))}}finally{xu=!1}}}function dg(e){return Array.isArray(e)?e.every(dg):!!v(e)}function fg(e,t={}){hg(e,t),void 0!==t.id&&tl(e,t.id),function nD(e,t){Fs.push({moduleType:e,ngModule:t})}(e,t)}function hg(e,t,i=!1){const s=Ni(t.declarations||He);let l=null;Object.defineProperty(e,Bt,{configurable:!0,get:()=>(null===l&&(l=ri().compileNgModule(bi,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:Ni(t.bootstrap||He).map(v),declarations:s.map(v),imports:Ni(t.imports||He).map(v).map(vg),exports:Ni(t.exports||He).map(v).map(vg),schemas:t.schemas?Ni(t.schemas):null,id:t.id||null}),l.schemas||(l.schemas=[])),l)});let g=null;Object.defineProperty(e,Zt,{get:()=>{if(null===g){const w=ri();g=w.compileFactory(bi,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Xs(e),target:w.FactoryTarget.NgModule,typeArgumentCount:0})}return g},configurable:!1});let C=null;Object.defineProperty(e,je,{get:()=>{if(null===C){const w={name:e.name,type:e,providers:t.providers||He,imports:[(t.imports||He).map(v),(t.exports||He).map(v)]};C=ri().compileInjector(bi,`ng:///${e.name}/\u0275inj.js`,w)}return C},configurable:!1})}function Xo(e){const t=ye(e)||qe(e)||gt(e);return null!==t&&t.standalone}let Na=new WeakMap,ku=new WeakMap;function rD(){Na=new WeakMap,ku=new WeakMap,Fs.length=0}function oD(e,t){const i=Ni(t.declarations||He),s=ho(e);i.forEach(l=>{(l=v(l)).hasOwnProperty(dt)?Nu(ye(l),s):!l.hasOwnProperty(xt)&&!l.hasOwnProperty(kt)&&(l.ngSelectorScope=e)})}function Nu(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(i=>i.hasOwnProperty(dt)?ye(i):qe(i)).filter(i=>!!i),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(i=>gt(i)),e.schemas=t.schemas,e.tView=null}function ho(e){if(cg(e))return function sD(e){const t=$t(e,!0);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const i={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return jr(t.imports).forEach(s=>{const l=ho(s);l.exported.directives.forEach(g=>i.compilation.directives.add(g)),l.exported.pipes.forEach(g=>i.compilation.pipes.add(g))}),jr(t.declarations).forEach(s=>{gt(s)?i.compilation.pipes.add(s):i.compilation.directives.add(s)}),jr(t.exports).forEach(s=>{const l=s;if(cg(l)){const g=ho(l);g.exported.directives.forEach(C=>{i.compilation.directives.add(C),i.exported.directives.add(C)}),g.exported.pipes.forEach(C=>{i.compilation.pipes.add(C),i.exported.pipes.add(C)})}else gt(l)?i.exported.pipes.add(l):i.exported.directives.add(l)}),t.transitiveCompileScopes=i,i}(e);if(Xo(e)){if(null!==(ye(e)||qe(e)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([e]),pipes:new Set}};if(null!==gt(e))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set([e])}}}throw new Error(`${e.name} does not have a module def (\u0275mod property)`)}function vg(e){return function lg(e){return void 0!==e.ngModule}(e)?e.ngModule:e}let Lu=0;function yg(e,t){let i=null;(function Kv(e,t){Od(t)&&(wo.set(e,t),fs.add(e))})(e,t),bg(e,t),Object.defineProperty(e,dt,{get:()=>{if(null===i){const s=ri();if(Od(t)){const N=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&N.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&N.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),N.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(N.join("\n"))}const l=function eD(){return Jo}();let g=t.preserveWhitespaces;void 0===g&&(g=null!==l&&void 0!==l.preserveWhitespaces&&l.preserveWhitespaces);let C=t.encapsulation;void 0===C&&(C=null!==l&&void 0!==l.defaultEncapsulation?l.defaultEncapsulation:Me.Emulated);const w=t.templateUrl||`ng:///${e.name}/template.html`,I=Object.assign(Object.assign({},Cg(e,t)),{typeSourceSpan:s.createParseSourceSpan("Component",e.name,w),template:t.template||"",preserveWhitespaces:g,styles:t.styles||He,animations:t.animations,declarations:[],changeDetection:t.changeDetection,encapsulation:C,interpolation:t.interpolation,viewProviders:t.viewProviders||null,isStandalone:!!t.standalone});Lu++;try{if(I.usesInheritance&&Dg(e),i=s.compileComponent(bi,w,I),t.standalone){const N=Ni(t.imports||He),{directiveDefs:J,pipeDefs:Ee}=function lD(e,t){let i=null,s=null;return{directiveDefs:()=>{if(null===i){i=[ye(e)];const C=new Set;for(const w of t){const I=v(w);if(!C.has(I))if(C.add(I),$t(I)){const N=ho(I);for(const J of N.exported.directives){const Ee=ye(J)||qe(J);Ee&&!C.has(J)&&(C.add(J),i.push(Ee))}}else{const N=ye(I)||qe(I);N&&i.push(N)}}}return i},pipeDefs:()=>{if(null===s){s=[];const C=new Set;for(const w of t){const I=v(w);if(!C.has(I))if(C.add(I),$t(I)){const N=ho(I);for(const J of N.exported.pipes){const Ee=gt(J);Ee&&!C.has(J)&&(C.add(J),s.push(Ee))}}else{const N=gt(I);N&&s.push(N)}}}return s}}}(e,N);i.directiveDefs=J,i.pipeDefs=Ee,i.dependencies=()=>N.map(v)}}finally{Lu--}if(0===Lu&&ug(),function cD(e){return void 0!==e.ngSelectorScope}(e)){const N=ho(e.ngSelectorScope);Nu(i,N)}if(t.schemas){if(!t.standalone)throw new Error(`The 'schemas' was specified for the ${j(e)} but is only valid on a component that is standalone.`);i.schemas=t.schemas}else t.standalone&&(i.schemas=[])}return i},configurable:!1})}function ju(e,t){let i=null;bg(e,t||{}),Object.defineProperty(e,xt,{get:()=>{if(null===i){const s=_g(e,t||{});i=ri().compileDirective(bi,s.sourceMapUrl,s.metadata)}return i},configurable:!1})}function _g(e,t){const i=e&&e.name,s=`ng:///${i}/\u0275dir.js`,l=ri(),g=Cg(e,t);return g.typeSourceSpan=l.createParseSourceSpan("Directive",i,s),g.usesInheritance&&Dg(e),{metadata:g,sourceMapUrl:s}}function bg(e,t){let i=null;Object.defineProperty(e,Zt,{get:()=>{if(null===i){const s=_g(e,t),l=ri();i=l.compileFactory(bi,`ng:///${e.name}/\u0275fac.js`,{name:s.metadata.name,type:s.metadata.type,typeArgumentCount:0,deps:Xs(e),target:l.FactoryTarget.Directive})}return i},configurable:!1})}function uD(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Cg(e,t){const i=ds(),s=i.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||Te,propMetadata:s,inputs:t.inputs||He,outputs:t.outputs||He,queries:Eg(e,s,Tg),lifecycle:{usesOnChanges:i.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!uD(e),exportAs:hD(t.exportAs),providers:t.providers||null,viewQueries:Eg(e,s,wg),isStandalone:!!t.standalone}}function Dg(e){const t=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==t;)!qe(i)&&!ye(i)&&mD(i)&&ju(i,null),i=Object.getPrototypeOf(i)}function dD(e){return"string"==typeof e?Sg(e):v(e)}function fD(e,t){return{propertyName:e,predicate:dD(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function Eg(e,t,i){const s=[];for(const l in t)if(t.hasOwnProperty(l)){const g=t[l];g.forEach(C=>{if(i(C)){if(!C.selector)throw new Error(`Can't construct a query for the property "${l}" of "${j(e)}" since the query selector wasn't defined.`);if(g.some(Mg))throw new Error("Cannot combine @Input decorators with query decorators");s.push(fD(l,C))}})}return s}function hD(e){return void 0===e?null:Sg(e)}function Tg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function wg(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function Mg(e){return"Input"===e.ngMetadataName}function Sg(e){return e.split(",").map(t=>t.trim())}const pD=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function mD(e){const t=ds();if(pD.some(s=>t.hasLifecycleHook(e,s)))return!0;const i=t.propMetadata(e);for(const s in i){const l=i[s];for(let g=0;g<l.length;g++){const C=l[g],w=C.ngMetadataName;if(Mg(C)||Tg(C)||wg(C)||"Output"===w||"HostBinding"===w||"HostListener"===w)return!0}}return!1}function Ig(e,t){let i=null,s=null;Object.defineProperty(e,Zt,{get:()=>{if(null===s){const l=Og(e,t),g=ri();s=g.compileFactory(bi,`ng:///${l.name}/\u0275fac.js`,{name:l.name,type:l.type,typeArgumentCount:0,deps:Xs(e),target:g.FactoryTarget.Pipe})}return s},configurable:!1}),Object.defineProperty(e,kt,{get:()=>{if(null===i){const l=Og(e,t);i=ri().compilePipe(bi,`ng:///${l.name}/\u0275pipe.js`,l)}return i},configurable:!1})}function Og(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure,isStandalone:!!t.standalone}}const Ag=Co("Directive",(e={})=>e,void 0,void 0,(e,t)=>ju(e,t)),gD=Co("Component",(e={})=>Object.assign({changeDetection:ge.Default},e),Ag,void 0,(e,t)=>yg(e,t)),vD=Co("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>Ig(e,t)),yD=Yr("Input",e=>({bindingPropertyName:e})),_D=Yr("Output",e=>({bindingPropertyName:e})),bD=Yr("HostBinding",e=>({hostPropertyName:e})),CD=Yr("HostListener",(e,t)=>({eventName:e,args:t})),DD=Co("NgModule",e=>e,void 0,void 0,(e,t)=>fg(e,t));function La(...e){}const Pg=new Pn("Application Initializer");let ja=(()=>{class e{constructor(i){this.appInits=i,this.resolve=La,this.reject=La,this.initialized=!1,this.done=!1,this.donePromise=new Promise((s,l)=>{this.resolve=s,this.reject=l})}runInitializers(){if(this.initialized)return;const i=[],s=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let l=0;l<this.appInits.length;l++){const g=this.appInits[l]();if(Ac(g))i.push(g);else if(ip(g)){const C=new Promise((w,I)=>{g.subscribe({complete:w,error:I})});i.push(C)}}Promise.all(i).then(()=>{s()}).catch(l=>{this.reject(l)}),0===i.length&&s(),this.initialized=!0}}return e.\u0275fac=function(i){return new(i||e)(ti(Pg,8))},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Rg=new Pn("AppId",{providedIn:"root",factory:xg});function xg(){return`${Bu()}${Bu()}${Bu()}`}const ED={provide:Rg,useFactory:xg,deps:[]};function Bu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Fg=new Pn("Platform Initializer"),TD=new Pn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),kg=new Pn("appBootstrapListener"),wD=new Pn("Application Packages Root URL"),MD=new Pn("AnimationModuleType");let SD=(()=>{class e{log(i){console.log(i)}warn(i){console.warn(i)}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const Ba=new Pn("LocaleId",{providedIn:"root",factory:()=>Td(Ba,Ie.Optional|Ie.SkipSelf)||function ID(){return"undefined"!=typeof $localize&&$localize.locale||fo}()}),OD=new Pn("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),AD=new Pn("Translations"),PD=new Pn("TranslationsFormat");var Ar=(()=>((Ar=Ar||{})[Ar.Error=0]="Error",Ar[Ar.Warning=1]="Warning",Ar[Ar.Ignore=2]="Ignore",Ar))();class Ng{constructor(t,i){this.ngModuleFactory=t,this.componentFactories=i}}let RD=(()=>{class e{compileModuleSync(i){return new Ra(i)}compileModuleAsync(i){return Promise.resolve(this.compileModuleSync(i))}compileModuleAndAllComponentsSync(i){const s=this.compileModuleSync(i),g=jr($t(i).declarations).reduce((C,w)=>{const I=ye(w);return I&&C.push(new Lo(I)),C},[]);return new Ng(s,g)}compileModuleAndAllComponentsAsync(i){return Promise.resolve(this.compileModuleAndAllComponentsSync(i))}clearCache(){}clearCacheFor(i){}getModuleId(i){}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Lg=new Pn("compilerOptions");class xD{}function FD(e){Jh(e),Em(e).forEach(t=>Zh(t))}let Bg=!1;function kD(){Bg||(Bg=!0,Yi("\u0275setProfiler",yr),Yi("getDirectiveMetadata",RC),Yi("getComponent",Tu),Yi("getContext",Cm),Yi("getListeners",Mm),Yi("getOwningComponent",Dm),Yi("getHostElement",wu),Yi("getInjector",Tm),Yi("getRootComponents",Em),Yi("getDirectives",wm),Yi("applyChanges",FD))}function Yi(e,t){if("undefined"==typeof COMPILED||!COMPILED){const i=$;if(i){let s=i.ng;s||(s=i.ng={}),s[e]=t}}}const ND=(()=>Promise.resolve(0))();function Vu(e){"undefined"==typeof Zone?ND.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Bi{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:s=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Or(!1),this.onMicrotaskEmpty=new Or(!1),this.onStable=new Or(!1),this.onError=new Or(!1),"undefined"==typeof Zone)throw new M(908,!1);Zone.assertZonePatched();const l=this;if(l._nesting=0,l._outer=l._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const g=Zone.AsyncStackTaggingZoneSpec;l._inner=l._inner.fork(new g("Angular"))}Zone.TaskTrackingZoneSpec&&(l._inner=l._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(l._inner=l._inner.fork(Zone.longStackTraceZoneSpec)),l.shouldCoalesceEventChangeDetection=!s&&i,l.shouldCoalesceRunChangeDetection=s,l.lastRequestAnimationFrameId=-1,l.nativeRequestAnimationFrame=function LD(){let e=$.requestAnimationFrame,t=$.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i);const s=t[Zone.__symbol__("OriginalDelegate")];s&&(t=s)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function VD(e){const t=()=>{!function BD(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call($,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Hu(e),e.isCheckStableRunning=!0,$u(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Hu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(i,s,l,g,C,w)=>{try{return Vg(e),i.invokeTask(l,g,C,w)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===g.type||e.shouldCoalesceRunChangeDetection)&&t(),$g(e)}},onInvoke:(i,s,l,g,C,w,I)=>{try{return Vg(e),i.invoke(l,g,C,w,I)}finally{e.shouldCoalesceRunChangeDetection&&t(),$g(e)}},onHasTask:(i,s,l,g)=>{i.hasTask(l,g),s===l&&("microTask"==g.change?(e._hasPendingMicrotasks=g.microTask,Hu(e),$u(e)):"macroTask"==g.change&&(e.hasPendingMacrotasks=g.macroTask))},onHandleError:(i,s,l,g)=>(i.handleError(l,g),e.runOutsideAngular(()=>e.onError.emit(g)),!1)})}(l)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Bi.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(Bi.isInAngularZone())throw new M(909,!1)}run(t,i,s){return this._inner.run(t,i,s)}runTask(t,i,s,l){const g=this._inner,C=g.scheduleEventTask("NgZoneEvent: "+l,t,jD,La,La);try{return g.runTask(C,i,s)}finally{g.cancelTask(C)}}runGuarded(t,i,s){return this._inner.runGuarded(t,i,s)}runOutsideAngular(t){return this._outer.run(t)}}const jD={};function $u(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Hu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Vg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function $g(e){e._nesting--,$u(e)}class Hg{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Or,this.onMicrotaskEmpty=new Or,this.onStable=new Or,this.onError=new Or}run(t,i,s){return t.apply(i,s)}runGuarded(t,i,s){return t.apply(i,s)}runOutsideAngular(t){return t()}runTask(t,i,s,l){return t.apply(i,s)}}const Ug=new Pn(""),zg=new Pn("");let ks,$D=(()=>{class e{constructor(i,s,l){this._ngZone=i,this.registry=s,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,ks||(Gg(l),l.addToWindow(s)),this._watchAngularEvents(),i.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Bi.assertNotInAngularZone(),Vu(()=>{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())Vu(()=>{for(;0!==this._callbacks.length;){let i=this._callbacks.pop();clearTimeout(i.timeoutId),i.doneCb(this._didWork)}this._didWork=!1});else{let i=this.getPendingTasks();this._callbacks=this._callbacks.filter(s=>!s.updateCb||!s.updateCb(i)||(clearTimeout(s.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(i=>({source:i.source,creationLocation:i.creationLocation,data:i.data})):[]}addCallback(i,s,l){let g=-1;s&&s>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(C=>C.timeoutId!==g),i(this._didWork,this.getPendingTasks())},s)),this._callbacks.push({doneCb:i,timeoutId:g,updateCb:l})}whenStable(i,s,l){if(l&&!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(i,s,l),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(i){this.registry.registerApplication(i,this)}unregisterApplication(i){this.registry.unregisterApplication(i)}findProviders(i,s,l){return[]}}return e.\u0275fac=function(i){return new(i||e)(ti(Bi),ti(Wg),ti(zg))},e.\u0275prov=at({token:e,factory:e.\u0275fac}),e})(),Wg=(()=>{class e{constructor(){this._applications=new Map}registerApplication(i,s){this._applications.set(i,s)}unregisterApplication(i){this._applications.delete(i)}unregisterAllApplications(){this._applications.clear()}getTestability(i){return this._applications.get(i)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(i,s=!0){var l;return null!==(l=null==ks?void 0:ks.findTestabilityInTree(this,i,s))&&void 0!==l?l:null}}return e.\u0275fac=function(i){return new(i||e)},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Gg(e){ks=e}let Pr=null;const Uu=new Pn("AllowMultipleToken"),zu=new Pn("PlatformDestroyListeners");function Kg(e,t,i){const s=new Ra(i);return Promise.resolve(s)}function Yg(e){return e.isBoundToModule}class HD{constructor(t,i){this.name=t,this.token=i}}function Qg(e){if(Pr&&!Pr.get(Uu,!1))throw new M(400,!1);Pr=e;const t=e.get(Wu);return Zg(e),t}function Zg(e){const t=e.get(Fg,null);t&&t.forEach(i=>i())}function zD(e){const{rootComponent:t,appProviders:i,platformProviders:s}=e,l=function UD(e=[]){if(Pr)return Pr;const t=qg(e);return Pr=t,Zg(t),t}(s),g=new Bi(ev());return g.run(()=>{const w=Eu([{provide:Bi,useValue:g},...i||[]],l,"Environment Injector"),I=w.get(ys,null);let N;return g.runOutsideAngular(()=>{N=g.onError.subscribe({next:J=>{I.handleError(J)}})}),tv(I,g,()=>{const J=w.get(ja);return J.runInitializers(),J.donePromise.then(()=>{fu(w.get(Ba,fo)||fo);const Je=w.get($a),ot=()=>Je.destroy(),Mt=l.get(zu,null);return null==Mt||Mt.add(ot),Je.onDestroy(()=>{null==Mt||Mt.delete(ot),N.unsubscribe()}),Je.bootstrap(t),Je})})})}function Jg(e,t,i=[]){const s=`Platform: ${t}`,l=new Pn(s);return(g=[])=>{let C=Va();if(!C||C.injector.get(Uu,!1)){const w=[...i,...g,{provide:l,useValue:!0}];e?e(w):Qg(qg(w,s))}return Xg()}}function Xg(e){const t=Va();if(!t)throw new M(401,!1);return t}function qg(e=[],t){return Zr.create({name:t,providers:[{provide:ml,useValue:"platform"},{provide:zu,useValue:new Set([()=>Pr=null])},...e]})}function WD(){var e;null===(e=Va())||void 0===e||e.destroy()}function Va(){var e;return null!==(e=null==Pr?void 0:Pr.get(Wu))&&void 0!==e?e:null}let Wu=(()=>{class e{constructor(i){this._injector=i,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(i,s){const l=function GD(e,t){let i;return i="noop"===e?new Hg:("zone.js"===e?void 0:e)||new Bi(t),i}(null==s?void 0:s.ngZone,ev(s)),g=[{provide:Bi,useValue:l}];return l.run(()=>{const C=Zr.create({providers:g,parent:this.injector,name:i.moduleType.name}),w=i.create(C),I=w.injector.get(ys,null);if(!I)throw new M(402,!1);return l.runOutsideAngular(()=>{const N=l.onError.subscribe({next:J=>{I.handleError(J)}});w.onDestroy(()=>{Ha(this._modules,w),N.unsubscribe()})}),tv(I,l,()=>{const N=w.injector.get(ja);return N.runInitializers(),N.donePromise.then(()=>(fu(w.injector.get(Ba,fo)||fo),this._moduleDoBootstrap(w),w))})})}bootstrapModule(i,s=[]){const l=nv({},s);return Kg(0,0,i).then(g=>this.bootstrapModuleFactory(g,l))}_moduleDoBootstrap(i){const s=i.injector.get($a);if(i._bootstrapComponents.length>0)i._bootstrapComponents.forEach(l=>s.bootstrap(l));else{if(!i.instance.ngDoBootstrap)throw new M(403,!1);i.instance.ngDoBootstrap(s)}this._modules.push(i)}onDestroy(i){this._destroyListeners.push(i)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new M(404,!1);this._modules.slice().forEach(s=>s.destroy()),this._destroyListeners.forEach(s=>s());const i=this._injector.get(zu,null);i&&(i.forEach(s=>s()),i.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(i){return new(i||e)(ti(Zr))},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function ev(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}function tv(e,t,i){try{const s=i();return Ac(s)?s.catch(l=>{throw t.runOutsideAngular(()=>e.handleError(l)),l}):s}catch(s){throw t.runOutsideAngular(()=>e.handleError(s)),s}}function nv(e,t){return Array.isArray(t)?t.reduce(nv,e):Object.assign(Object.assign({},e),t)}let $a=(()=>{class e{constructor(i,s,l){this._zone=i,this._injector=s,this._exceptionHandler=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const g=new b.y(w=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{w.next(this._stable),w.complete()})}),C=new b.y(w=>{let I;this._zone.runOutsideAngular(()=>{I=this._zone.onStable.subscribe(()=>{Bi.assertNotInAngularZone(),Vu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,w.next(!0))})})});const N=this._zone.onUnstable.subscribe(()=>{Bi.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{w.next(!1)}))});return()=>{I.unsubscribe(),N.unsubscribe()}});this.isStable=(0,u.T)(g,C.pipe((0,r.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(i,s){const l=i instanceof oa;if(!this._injector.get(ja).done)throw!l&&Xo(i),new M(405,false);let C;C=l?i:this._injector.get(gs).resolveComponentFactory(i),this.componentTypes.push(C.componentType);const w=Yg(C)?void 0:this._injector.get(Zo),N=C.create(Zr.NULL,[],s||C.selector,w),J=N.location.nativeElement,Ee=N.injector.get(Ug,null);return null==Ee||Ee.registerApplication(J),N.onDestroy(()=>{this.detachView(N.hostView),Ha(this.components,N),null==Ee||Ee.unregisterApplication(J)}),this._loadComponent(N),N}tick(){if(this._runningTick)throw new M(101,!1);try{this._runningTick=!0;for(let i of this._views)i.detectChanges()}catch(i){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(i))}finally{this._runningTick=!1}}attachView(i){const s=i;this._views.push(s),s.attachToAppRef(this)}detachView(i){const s=i;Ha(this._views,s),s.detachFromAppRef()}_loadComponent(i){this.attachView(i.hostView),this.tick(),this.components.push(i),this._injector.get(kg,[]).concat(this._bootstrapListeners).forEach(l=>l(i))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(i=>i()),this._views.slice().forEach(i=>i.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(i){return this._destroyListeners.push(i),()=>Ha(this._destroyListeners,i)}destroy(){if(this._destroyed)throw new M(406,!1);const i=this._injector;i.destroy&&!i.destroyed&&i.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(i){return new(i||e)(ti(Bi),ti(so),ti(ys))},e.\u0275prov=at({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ha(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}let rv=!0,ov=!1;function YD(){return ov=!0,rv}function QD(){if(ov)throw new Error("Cannot enable prod mode after platform setup.");rv=!1}function ZD(e){const t=Rd(e);if(!t)throw sv(e);return new Ra(t)}function JD(e){const t=Rd(e);if(!t)throw sv(e);return t}function sv(e){return new Error(`No module with ID ${e} loaded`)}let av=(()=>{class e{}return e.__NG_ELEMENT_ID__=lv,e})();function lv(e){return function XD(e,t,i){if(Si(e)&&!i){const s=Gn(e.index,t);return new No(s,s)}return 47&e.type?new No(t[16],t):null}(An(),St(),16==(16&e))}class cv extends av{}class qD extends cv{}class eE{constructor(t,i){this.name=t,this.callback=i}}function tE(e){return e.map(t=>t.nativeElement)}class Gu{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new Ns(t):null}get injector(){return Tm(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(Tu(t)||Dm(t))}get context(){return Tu(this.nativeNode)||Cm(this.nativeNode)}get listeners(){return Mm(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function xC(e){const t=fi(e);if(null===t)return{};if(void 0===t.localRefs){const i=t.lView;if(null===i)return{};t.localRefs=function a_(e,t){const i=e[1].data[t];if(i&&i.localNames){const s={};let l=i.index+1;for(let g=0;g<i.localNames.length;g+=2)s[i.localNames[g]]=e[l],l++;return s}return null}(i,t.nodeIndex)}return t.localRefs||{}}(this.nativeNode)}get providerTokens(){return function PC(e){const t=fi(e),i=t?t.lView:null;if(null===i)return[];const s=i[1],l=s.data[t.nodeIndex],g=[],w=l.directiveEnd;for(let I=1048575&l.providerIndexes;I<w;I++){let N=s.data[I];kC(N)&&(N=N.type),g.push(N)}return g}(this.nativeNode)}}class Ns extends Gu{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=fi(this.nativeNode),i=t?t.lView:null;return null!==i?i[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=fi(this.nativeNode),i=t?t.lView:null;if(null===i)return{};const s=i[1].data,l=s[t.nodeIndex],g={};return function nE(e,t){if(e){let i=Object.getPrototypeOf(e);const s=Node.prototype;for(;null!==i&&i!==s;){const l=Object.getOwnPropertyDescriptors(i);for(let g in l)if(!g.startsWith("__")&&!g.startsWith("on")){const C=e[g];iE(C)&&(t[g]=C)}i=Object.getPrototypeOf(i)}}}(this.nativeElement,g),function rE(e,t,i,s){let l=t.propertyBindings;if(null!==l)for(let g=0;g<l.length;g++){const C=l[g],I=s[C].split("\ufffd"),N=I[0];if(I.length>1){let J=I[1];for(let Ee=1;Ee<I.length-1;Ee++)J+=k(i[C+Ee-1])+I[Ee+1];e[N]=J}else e[N]=i[C]}}(g,l,i,s),g}get attributes(){const t={},i=this.nativeElement;if(!i)return t;const s=fi(i),l=s?s.lView:null;if(null===l)return{};const g=l[1].data[s.nodeIndex].attrs,C=[];if(g){let I=0;for(;I<g.length;){const N=g[I];if("string"!=typeof N)break;t[N]=g[I+1],C.push(N.toLowerCase()),I+=2}}const w=i.attributes;for(let I=0;I<w.length;I++){const N=w[I],J=N.name.toLowerCase();-1===C.indexOf(J)&&(t[J]=N.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},s=this.nativeElement.className;return("string"!=typeof s?s.baseVal.split(" "):s.split(" ")).forEach(g=>t[g]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,i=[];for(let s=0;s<t.length;s++)i.push(qo(t[s]));return i}get children(){const t=this.nativeElement;if(!t)return[];const i=t.children,s=[];for(let l=0;l<i.length;l++)s.push(qo(i[l]));return s}query(t){return this.queryAll(t)[0]||null}queryAll(t){const i=[];return uv(this,t,i,!0),i}queryAllNodes(t){const i=[];return uv(this,t,i,!1),i}triggerEventHandler(t,i){const s=this.nativeNode,l=[];this.listeners.forEach(g=>{if(g.name===t){const C=g.callback;C.call(s,i),l.push(C)}}),"function"==typeof s.eventListeners&&s.eventListeners(t).forEach(g=>{if(-1!==g.toString().indexOf("__ngUnwrap__")){const C=g("__ngUnwrap__");return-1===l.indexOf(C)&&C.call(s,i)}})}}function iE(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function uv(e,t,i,s){const l=fi(e.nativeNode),g=l?l.lView:null;null!==g?po(g[1].data[l.nodeIndex],g,t,i,s,e.nativeNode):Yu(e.nativeNode,t,i,s)}function po(e,t,i,s,l,g){const C=function br(e,t){const i=null===e?-1:e.index;return-1!==i?wn(t[i]):null}(e,t);if(11&e.type){if(Ku(C,i,s,l,g),Si(e)){const I=Gn(e.index,t);I&&I[1].firstChild&&po(I[1].firstChild,I,i,s,l,g)}else e.child&&po(e.child,t,i,s,l,g),C&&Yu(C,i,s,l);const w=t[e.index];Wn(w)&&dv(w,i,s,l,g)}else if(4&e.type){const w=t[e.index];Ku(w[7],i,s,l,g),dv(w,i,s,l,g)}else if(16&e.type){const w=t[16],N=w[6].projection[e.projection];if(Array.isArray(N))for(let J of N)Ku(J,i,s,l,g);else if(N){const J=w[3];po(J[1].data[N.index],J,i,s,l,g)}}else e.child&&po(e.child,t,i,s,l,g);if(g!==C){const w=4&e.flags?e.projectionNext:e.next;w&&po(w,t,i,s,l,g)}}function dv(e,t,i,s,l){for(let g=10;g<e.length;g++){const C=e[g],w=C[1].firstChild;w&&po(w,C,t,i,s,l)}}function Ku(e,t,i,s,l){if(l!==e){const g=qo(e);if(!g)return;(s&&g instanceof Ns&&t(g)&&-1===i.indexOf(g)||!s&&t(g)&&-1===i.indexOf(g))&&i.push(g)}}function Yu(e,t,i,s){const l=e.childNodes,g=l.length;for(let C=0;C<g;C++){const w=l[C],I=qo(w);I&&((s&&I instanceof Ns&&t(I)&&-1===i.indexOf(I)||!s&&t(I)&&-1===i.indexOf(I))&&i.push(I),Yu(w,t,i,s))}}const Zu="__ng_debug__";function qo(e){return e instanceof Node?(e.hasOwnProperty(Zu)||(e[Zu]=e.nodeType==Node.ELEMENT_NODE?new Ns(e):new Gu(e)),e[Zu]):null}function oE(e){return null}class fv{constructor(){}supports(t){return Ts(t)}create(t){return new hv(t)}}const sE=(e,t)=>t;class hv{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||sE}forEachItem(t){let i;for(i=this._itHead;null!==i;i=i._next)t(i)}forEachOperation(t){let i=this._itHead,s=this._removalsHead,l=0,g=null;for(;i||s;){const C=!s||i&&i.currentIndex<mv(s,l,g)?i:s,w=mv(C,l,g),I=C.currentIndex;if(C===s)l--,s=s._nextRemoved;else if(i=i._next,null==C.previousIndex)l++;else{g||(g=[]);const N=w-l,J=I-l;if(N!=J){for(let Je=0;Je<N;Je++){const ot=Je<g.length?g[Je]:g[Je]=0,Mt=ot+Je;J<=Mt&&Mt<N&&(g[Je]=ot+1)}g[C.previousIndex]=J-N}}w!==I&&t(C,w,I)}}forEachPreviousItem(t){let i;for(i=this._previousItHead;null!==i;i=i._nextPrevious)t(i)}forEachAddedItem(t){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)t(i)}forEachMovedItem(t){let i;for(i=this._movesHead;null!==i;i=i._nextMoved)t(i)}forEachRemovedItem(t){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)t(i)}forEachIdentityChange(t){let i;for(i=this._identityChangesHead;null!==i;i=i._nextIdentityChange)t(i)}diff(t){if(null==t&&(t=[]),!Ts(t))throw new M(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let l,g,C,i=this._itHead,s=!1;if(Array.isArray(t)){this.length=t.length;for(let w=0;w<this.length;w++)g=t[w],C=this._trackByFn(w,g),null!==i&&Object.is(i.trackById,C)?(s&&(i=this._verifyReinsertion(i,g,C,w)),Object.is(i.item,g)||this._addIdentityChange(i,g)):(i=this._mismatch(i,g,C,w),s=!0),i=i._next}else l=0,function s0(e,t){if(Array.isArray(e))for(let i=0;i<e.length;i++)t(e[i]);else{const i=e[lo()]();let s;for(;!(s=i.next()).done;)t(s.value)}}(t,w=>{C=this._trackByFn(l,w),null!==i&&Object.is(i.trackById,C)?(s&&(i=this._verifyReinsertion(i,w,C,l)),Object.is(i.item,w)||this._addIdentityChange(i,w)):(i=this._mismatch(i,w,C,l),s=!0),i=i._next,l++}),this.length=l;return this._truncate(i),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,i,s,l){let g;return null===t?g=this._itTail:(g=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._reinsertAfter(t,g,l)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(s,l))?(Object.is(t.item,i)||this._addIdentityChange(t,i),this._moveAfter(t,g,l)):t=this._addAfter(new aE(i,s),g,l),t}_verifyReinsertion(t,i,s,l){let g=null===this._unlinkedRecords?null:this._unlinkedRecords.get(s,null);return null!==g?t=this._reinsertAfter(g,t._prev,l):t.currentIndex!=l&&(t.currentIndex=l,this._addToMoves(t,l)),t}_truncate(t){for(;null!==t;){const i=t._next;this._addToRemovals(this._unlink(t)),t=i}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,i,s){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const l=t._prevRemoved,g=t._nextRemoved;return null===l?this._removalsHead=g:l._nextRemoved=g,null===g?this._removalsTail=l:g._prevRemoved=l,this._insertAfter(t,i,s),this._addToMoves(t,s),t}_moveAfter(t,i,s){return this._unlink(t),this._insertAfter(t,i,s),this._addToMoves(t,s),t}_addAfter(t,i,s){return this._insertAfter(t,i,s),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,i,s){const l=null===i?this._itHead:i._next;return t._next=l,t._prev=i,null===l?this._itTail=t:l._prev=t,null===i?this._itHead=t:i._next=t,null===this._linkedRecords&&(this._linkedRecords=new pv),this._linkedRecords.put(t),t.currentIndex=s,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const i=t._prev,s=t._next;return null===i?this._itHead=s:i._next=s,null===s?this._itTail=i:s._prev=i,t}_addToMoves(t,i){return t.previousIndex===i||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pv),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,i){return t.item=i,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class aE{constructor(t,i){this.item=t,this.trackById=i,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 lE{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,i){let s;for(s=this._head;null!==s;s=s._nextDup)if((null===i||i<=s.currentIndex)&&Object.is(s.trackById,t))return s;return null}remove(t){const i=t._prevDup,s=t._nextDup;return null===i?this._head=s:i._nextDup=s,null===s?this._tail=i:s._prevDup=i,null===this._head}}class pv{constructor(){this.map=new Map}put(t){const i=t.trackById;let s=this.map.get(i);s||(s=new lE,this.map.set(i,s)),s.add(t)}get(t,i){const l=this.map.get(t);return l?l.get(t,i):null}remove(t){const i=t.trackById;return this.map.get(i).remove(t)&&this.map.delete(i),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function mv(e,t,i){const s=e.previousIndex;if(null===s)return s;let l=0;return i&&s<i.length&&(l=i[s]),s+t+l}class gv{constructor(){}supports(t){return t instanceof Map||mc(t)}create(){return new cE}}class cE{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 i;for(i=this._mapHead;null!==i;i=i._next)t(i)}forEachPreviousItem(t){let i;for(i=this._previousMapHead;null!==i;i=i._nextPrevious)t(i)}forEachChangedItem(t){let i;for(i=this._changesHead;null!==i;i=i._nextChanged)t(i)}forEachAddedItem(t){let i;for(i=this._additionsHead;null!==i;i=i._nextAdded)t(i)}forEachRemovedItem(t){let i;for(i=this._removalsHead;null!==i;i=i._nextRemoved)t(i)}diff(t){if(t){if(!(t instanceof Map||mc(t)))throw new M(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i=this._mapHead;if(this._appendAfter=null,this._forEach(t,(s,l)=>{if(i&&i.key===l)this._maybeAddToChanges(i,s),this._appendAfter=i,i=i._next;else{const g=this._getOrCreateRecordForKey(l,s);i=this._insertBeforeOrAppend(i,g)}}),i){i._prev&&(i._prev._next=null),this._removalsHead=i;for(let s=i;null!==s;s=s._nextRemoved)s===this._mapHead&&(this._mapHead=null),this._records.delete(s.key),s._nextRemoved=s._next,s.previousValue=s.currentValue,s.currentValue=null,s._prev=null,s._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,i){if(t){const s=t._prev;return i._next=t,i._prev=s,t._prev=i,s&&(s._next=i),t===this._mapHead&&(this._mapHead=i),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=i,i._prev=this._appendAfter):this._mapHead=i,this._appendAfter=i,null}_getOrCreateRecordForKey(t,i){if(this._records.has(t)){const l=this._records.get(t);this._maybeAddToChanges(l,i);const g=l._prev,C=l._next;return g&&(g._next=C),C&&(C._prev=g),l._next=null,l._prev=null,l}const s=new uE(t);return this._records.set(t,s),s.currentValue=i,this._addToAdditions(s),s}_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,i){Object.is(i,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=i,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,i){t instanceof Map?t.forEach(i):Object.keys(t).forEach(s=>i(t[s],s))}}class uE{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 vv(){return new Ju([new fv])}let Ju=(()=>{class e{constructor(i){this.factories=i}static create(i,s){if(null!=s){const l=s.factories.slice();i=i.concat(l)}return new e(i)}static extend(i){return{provide:e,useFactory:s=>e.create(i,s||vv()),deps:[[e,new To,new us]]}}find(i){const s=this.factories.find(l=>l.supports(i));if(null!=s)return s;throw new M(901,!1)}}return e.\u0275prov=at({token:e,providedIn:"root",factory:vv}),e})();function yv(){return new Xu([new gv])}let Xu=(()=>{class e{constructor(i){this.factories=i}static create(i,s){if(s){const l=s.factories.slice();i=i.concat(l)}return new e(i)}static extend(i){return{provide:e,useFactory:s=>e.create(i,s||yv()),deps:[[e,new To,new us]]}}find(i){const s=this.factories.find(l=>l.supports(i));if(s)return s;throw new M(901,!1)}}return e.\u0275prov=at({token:e,providedIn:"root",factory:yv}),e})();const dE=[new gv],hE=new Ju([new fv]),pE=new Xu(dE),mE=Jg(null,"core",[]);let gE=(()=>{class e{constructor(i){}}return e.\u0275fac=function(i){return new(i||e)(ti($a))},e.\u0275mod=be({type:e}),e.\u0275inj=nt({}),e})();function vE(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}const yE=!0;function _E(e){return ri().compileDirectiveDeclaration(bi,`ng:///${e.type.name}/\u0275fac.js`,e)}function bE(e){var t,i;Sm(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(i=e.propDecorators)&&void 0!==i?i:null)}function CE(e){return ri().compileComponentDeclaration(bi,`ng:///${e.type.name}/\u0275cmp.js`,e)}function DE(e){return ri(function EE(e){switch(e){case ii.Directive:return"directive";case ii.Component:return"component";case ii.Injectable:return"injectable";case ii.Pipe:return"pipe";case ii.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(bi,`ng:///${e.type.name}/\u0275fac.js`,e)}function TE(e){return ri().compileInjectableDeclaration(bi,`ng:///${e.type.name}/\u0275prov.js`,e)}function wE(e){return ri().compileInjectorDeclaration(bi,`ng:///${e.type.name}/\u0275inj.js`,e)}function ME(e){return ri().compileNgModuleDeclaration(bi,`ng:///${e.type.name}/\u0275mod.js`,e)}function SE(e){return ri().compilePipeDeclaration(bi,`ng:///${e.type.name}/\u0275pipe.js`,e)}function IE(e,t){const i=ye(e),s=t.elementInjector||ra();return new Lo(i).create(s,t.projectableNodes,t.hostElement,t.environmentInjector)}function OE(e){const t=ye(e);if(!t)return null;const i=new Lo(t);return{get selector(){return i.selector},get type(){return i.componentType},get inputs(){return i.inputs},get outputs(){return i.outputs},get ngContentSelectors(){return i.ngContentSelectors},get isStandalone(){return t.standalone}}}},3075:(H,o,a)=>{"use strict";a.r(o),a.d(o,{AbstractControl:()=>se,AbstractControlDirective:()=>ze,AbstractFormGroupDirective:()=>In,COMPOSITION_BUFFER_MODE:()=>y,CheckboxControlValueAccessor:()=>d,CheckboxRequiredValidator:()=>Mi,ControlContainer:()=>je,DefaultValueAccessor:()=>E,EmailValidator:()=>R,FormArray:()=>yn,FormArrayName:()=>Pi,FormBuilder:()=>vi,FormControl:()=>Jt,FormControlDirective:()=>Oi,FormControlName:()=>Ei,FormGroup:()=>ye,FormGroupDirective:()=>Di,FormGroupName:()=>Ai,FormRecord:()=>$t,FormsModule:()=>pn,MaxLengthValidator:()=>Be,MaxValidator:()=>li,MinLengthValidator:()=>x,MinValidator:()=>Bn,NG_ASYNC_VALIDATORS:()=>Y,NG_VALIDATORS:()=>j,NG_VALUE_ACCESSOR:()=>h,NgControl:()=>Ae,NgControlStatus:()=>Ye,NgControlStatusGroup:()=>z,NgForm:()=>qt,NgModel:()=>$i,NgModelGroup:()=>Ci,NgSelectOption:()=>Ti,NonNullableFormBuilder:()=>xi,NumberValueAccessor:()=>xr,PatternValidator:()=>ut,RadioControlValueAccessor:()=>Ii,RangeValueAccessor:()=>Ui,ReactiveFormsModule:()=>Fn,RequiredValidator:()=>zi,SelectControlValueAccessor:()=>gi,SelectMultipleControlValueAccessor:()=>ai,UntypedFormArray:()=>kn,UntypedFormBuilder:()=>An,UntypedFormControl:()=>xn,UntypedFormGroup:()=>qe,VERSION:()=>Cr,Validators:()=>Q,\u0275InternalFormsSharedModule:()=>Cn,\u0275NgNoValidate:()=>hr,\u0275NgSelectMultipleOption:()=>nr});var n=a(5e3),p=a(9808),b=a(2076),u=a(4128),r=a(4004);let c=(()=>{class F{constructor(S,te){this._renderer=S,this._elementRef=te,this.onChange=vt=>{},this.onTouched=()=>{}}setProperty(S,te){this._renderer.setProperty(this._elementRef.nativeElement,S,te)}registerOnTouched(S){this.onTouched=S}registerOnChange(S){this.onChange=S}setDisabledState(S){this.setProperty("disabled",S)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F}),F})(),f=(()=>{class F extends c{}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,features:[n.\u0275\u0275InheritDefinitionFeature]}),F})();const h=new n.InjectionToken("NgValueAccessor"),m={provide:h,useExisting:(0,n.forwardRef)(()=>d),multi:!0};let d=(()=>{class F extends f{writeValue(S){this.setProperty("checked",S)}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(S,te){1&S&&n.\u0275\u0275listener("change",function(Vt){return te.onChange(Vt.target.checked)})("blur",function(){return te.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([m]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const _={provide:h,useExisting:(0,n.forwardRef)(()=>E),multi:!0},y=new n.InjectionToken("CompositionEventMode");let E=(()=>{class F extends c{constructor(S,te,vt){super(S,te),this._compositionMode=vt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function v(){const F=(0,p.\u0275getDOM)()?(0,p.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(F.toLowerCase())}())}writeValue(S){this.setProperty("value",null==S?"":S)}_handleInput(S){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(S)}_compositionStart(){this._composing=!0}_compositionEnd(S){this._composing=!1,this._compositionMode&&this.onChange(S)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(y,8))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(S,te){1&S&&n.\u0275\u0275listener("input",function(Vt){return te._handleInput(Vt.target.value)})("blur",function(){return te.onTouched()})("compositionstart",function(){return te._compositionStart()})("compositionend",function(Vt){return te._compositionEnd(Vt.target.value)})},features:[n.\u0275\u0275ProvidersFeature([_]),n.\u0275\u0275InheritDefinitionFeature]}),F})();function A(F){return null==F||("string"==typeof F||Array.isArray(F))&&0===F.length}function k(F){return null!=F&&"number"==typeof F.length}const j=new n.InjectionToken("NgValidators"),Y=new n.InjectionToken("NgAsyncValidators"),U=/^(?=.{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 Q{static min(O){return V(O)}static max(O){return X(O)}static required(O){return re(O)}static requiredTrue(O){return me(O)}static email(O){return we(O)}static minLength(O){return tt(O)}static maxLength(O){return G(O)}static pattern(O){return q(O)}static nullValidator(O){return null}static compose(O){return Oe(O)}static composeAsync(O){return wt(O)}}function V(F){return O=>{if(A(O.value)||A(F))return null;const S=parseFloat(O.value);return!isNaN(S)&&S<F?{min:{min:F,actual:O.value}}:null}}function X(F){return O=>{if(A(O.value)||A(F))return null;const S=parseFloat(O.value);return!isNaN(S)&&S>F?{max:{max:F,actual:O.value}}:null}}function re(F){return A(F.value)?{required:!0}:null}function me(F){return!0===F.value?null:{required:!0}}function we(F){return A(F.value)||U.test(F.value)?null:{email:!0}}function tt(F){return O=>A(O.value)||!k(O.value)?null:O.value.length<F?{minlength:{requiredLength:F,actualLength:O.value.length}}:null}function G(F){return O=>k(O.value)&&O.value.length>F?{maxlength:{requiredLength:F,actualLength:O.value.length}}:null}function q(F){if(!F)return B;let O,S;return"string"==typeof F?(S="","^"!==F.charAt(0)&&(S+="^"),S+=F,"$"!==F.charAt(F.length-1)&&(S+="$"),O=new RegExp(S)):(S=F.toString(),O=F),te=>{if(A(te.value))return null;const vt=te.value;return O.test(vt)?null:{pattern:{requiredPattern:S,actualValue:vt}}}}function B(F){return null}function ae(F){return null!=F}function de(F){return(0,n.\u0275isPromise)(F)?(0,b.D)(F):F}function _e(F){let O={};return F.forEach(S=>{O=null!=S?Object.assign(Object.assign({},O),S):O}),0===Object.keys(O).length?null:O}function it(F,O){return O.map(S=>S(F))}function yt(F){return F.map(O=>function rt(F){return!F.validate}(O)?O:S=>O.validate(S))}function Oe(F){if(!F)return null;const O=F.filter(ae);return 0==O.length?null:function(S){return _e(it(S,O))}}function ft(F){return null!=F?Oe(yt(F)):null}function wt(F){if(!F)return null;const O=F.filter(ae);return 0==O.length?null:function(S){const te=it(S,O).map(de);return(0,u.D)(te).pipe((0,r.U)(_e))}}function et(F){return null!=F?wt(yt(F)):null}function at(F,O){return null===F?[O]:Array.isArray(F)?[...F,O]:[F,O]}function Ke(F){return F._rawValidators}function nt(F){return F._rawAsyncValidators}function Tt(F){return F?Array.isArray(F)?F:[F]:[]}function Ct(F,O){return Array.isArray(F)?F.includes(O):F===O}function st(F,O){const S=Tt(O);return Tt(F).forEach(vt=>{Ct(S,vt)||S.push(vt)}),S}function It(F,O){return Tt(O).filter(S=>!Ct(F,S))}class ze{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(O){this._rawValidators=O||[],this._composedValidatorFn=ft(this._rawValidators)}_setAsyncValidators(O){this._rawAsyncValidators=O||[],this._composedAsyncValidatorFn=et(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(O){this._onDestroyCallbacks.push(O)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(O=>O()),this._onDestroyCallbacks=[]}reset(O){this.control&&this.control.reset(O)}hasError(O,S){return!!this.control&&this.control.hasError(O,S)}getError(O,S){return this.control?this.control.getError(O,S):null}}class Ae extends ze{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class je extends ze{get formDirective(){return null}get path(){return null}}class pe{constructor(O){this._cd=O}get isTouched(){var O,S;return!(null===(S=null===(O=this._cd)||void 0===O?void 0:O.control)||void 0===S||!S.touched)}get isUntouched(){var O,S;return!(null===(S=null===(O=this._cd)||void 0===O?void 0:O.control)||void 0===S||!S.untouched)}get isPristine(){var O,S;return!(null===(S=null===(O=this._cd)||void 0===O?void 0:O.control)||void 0===S||!S.pristine)}get isDirty(){var O,S;return!(null===(S=null===(O=this._cd)||void 0===O?void 0:O.control)||void 0===S||!S.dirty)}get isValid(){var O,S;return!(null===(S=null===(O=this._cd)||void 0===O?void 0:O.control)||void 0===S||!S.valid)}get isInvalid(){var O,S;return!(null===(S=null===(O=this._cd)||void 0===O?void 0:O.control)||void 0===S||!S.invalid)}get isPending(){var O,S;return!(null===(S=null===(O=this._cd)||void 0===O?void 0:O.control)||void 0===S||!S.pending)}get isSubmitted(){var O;return!(null===(O=this._cd)||void 0===O||!O.submitted)}}let Ye=(()=>{class F extends pe{constructor(S){super(S)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(Ae,2))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(S,te){2&S&&n.\u0275\u0275classProp("ng-untouched",te.isUntouched)("ng-touched",te.isTouched)("ng-pristine",te.isPristine)("ng-dirty",te.isDirty)("ng-valid",te.isValid)("ng-invalid",te.isInvalid)("ng-pending",te.isPending)},features:[n.\u0275\u0275InheritDefinitionFeature]}),F})(),z=(()=>{class F extends pe{constructor(S){super(S)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(S,te){2&S&&n.\u0275\u0275classProp("ng-untouched",te.isUntouched)("ng-touched",te.isTouched)("ng-pristine",te.isPristine)("ng-dirty",te.isDirty)("ng-valid",te.isValid)("ng-invalid",te.isInvalid)("ng-pending",te.isPending)("ng-submitted",te.isSubmitted)},features:[n.\u0275\u0275InheritDefinitionFeature]}),F})();const Ne="VALID",$e="INVALID",ve="PENDING",fe="DISABLED";function ee(F){return(ct(F)?F.validators:F)||null}function oe(F){return Array.isArray(F)?ft(F):F||null}function L(F,O){return(ct(O)?O.asyncValidators:F)||null}function be(F){return Array.isArray(F)?et(F):F||null}function ct(F){return null!=F&&!Array.isArray(F)&&"object"==typeof F}function ke(F,O,S){const te=F.controls;if(!(O?Object.keys(te):te).length)throw new n.\u0275RuntimeError(1e3,"");if(!te[S])throw new n.\u0275RuntimeError(1001,"")}function pt(F,O,S){F._forEachChild((te,vt)=>{if(void 0===S[vt])throw new n.\u0275RuntimeError(1002,"")})}class se{constructor(O,S){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=O,this._rawAsyncValidators=S,this._composedValidatorFn=oe(this._rawValidators),this._composedAsyncValidatorFn=be(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(O){this._rawValidators=this._composedValidatorFn=O}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(O){this._rawAsyncValidators=this._composedAsyncValidatorFn=O}get parent(){return this._parent}get valid(){return this.status===Ne}get invalid(){return this.status===$e}get pending(){return this.status==ve}get disabled(){return this.status===fe}get enabled(){return this.status!==fe}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(O){this._rawValidators=O,this._composedValidatorFn=oe(O)}setAsyncValidators(O){this._rawAsyncValidators=O,this._composedAsyncValidatorFn=be(O)}addValidators(O){this.setValidators(st(O,this._rawValidators))}addAsyncValidators(O){this.setAsyncValidators(st(O,this._rawAsyncValidators))}removeValidators(O){this.setValidators(It(O,this._rawValidators))}removeAsyncValidators(O){this.setAsyncValidators(It(O,this._rawAsyncValidators))}hasValidator(O){return Ct(this._rawValidators,O)}hasAsyncValidator(O){return Ct(this._rawAsyncValidators,O)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(O={}){this.touched=!0,this._parent&&!O.onlySelf&&this._parent.markAsTouched(O)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(O=>O.markAllAsTouched())}markAsUntouched(O={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(S=>{S.markAsUntouched({onlySelf:!0})}),this._parent&&!O.onlySelf&&this._parent._updateTouched(O)}markAsDirty(O={}){this.pristine=!1,this._parent&&!O.onlySelf&&this._parent.markAsDirty(O)}markAsPristine(O={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(S=>{S.markAsPristine({onlySelf:!0})}),this._parent&&!O.onlySelf&&this._parent._updatePristine(O)}markAsPending(O={}){this.status=ve,!1!==O.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!O.onlySelf&&this._parent.markAsPending(O)}disable(O={}){const S=this._parentMarkedDirty(O.onlySelf);this.status=fe,this.errors=null,this._forEachChild(te=>{te.disable(Object.assign(Object.assign({},O),{onlySelf:!0}))}),this._updateValue(),!1!==O.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},O),{skipPristineCheck:S})),this._onDisabledChange.forEach(te=>te(!0))}enable(O={}){const S=this._parentMarkedDirty(O.onlySelf);this.status=Ne,this._forEachChild(te=>{te.enable(Object.assign(Object.assign({},O),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:O.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},O),{skipPristineCheck:S})),this._onDisabledChange.forEach(te=>te(!1))}_updateAncestors(O){this._parent&&!O.onlySelf&&(this._parent.updateValueAndValidity(O),O.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(O){this._parent=O}getRawValue(){return this.value}updateValueAndValidity(O={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ne||this.status===ve)&&this._runAsyncValidator(O.emitEvent)),!1!==O.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!O.onlySelf&&this._parent.updateValueAndValidity(O)}_updateTreeValidity(O={emitEvent:!0}){this._forEachChild(S=>S._updateTreeValidity(O)),this.updateValueAndValidity({onlySelf:!0,emitEvent:O.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fe:Ne}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(O){if(this.asyncValidator){this.status=ve,this._hasOwnPendingAsyncValidator=!0;const S=de(this.asyncValidator(this));this._asyncValidationSubscription=S.subscribe(te=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(te,{emitEvent:O})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(O,S={}){this.errors=O,this._updateControlsErrors(!1!==S.emitEvent)}get(O){let S=O;return null==S||(Array.isArray(S)||(S=S.split(".")),0===S.length)?null:S.reduce((te,vt)=>te&&te._find(vt),this)}getError(O,S){const te=S?this.get(S):this;return te&&te.errors?te.errors[O]:null}hasError(O,S){return!!this.getError(O,S)}get root(){let O=this;for(;O._parent;)O=O._parent;return O}_updateControlsErrors(O){this.status=this._calculateStatus(),O&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(O)}_initObservables(){this.valueChanges=new n.EventEmitter,this.statusChanges=new n.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?fe:this.errors?$e:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ve)?ve:this._anyControlsHaveStatus($e)?$e:Ne}_anyControlsHaveStatus(O){return this._anyControls(S=>S.status===O)}_anyControlsDirty(){return this._anyControls(O=>O.dirty)}_anyControlsTouched(){return this._anyControls(O=>O.touched)}_updatePristine(O={}){this.pristine=!this._anyControlsDirty(),this._parent&&!O.onlySelf&&this._parent._updatePristine(O)}_updateTouched(O={}){this.touched=this._anyControlsTouched(),this._parent&&!O.onlySelf&&this._parent._updateTouched(O)}_registerOnCollectionChange(O){this._onCollectionChange=O}_setUpdateStrategy(O){ct(O)&&null!=O.updateOn&&(this._updateOn=O.updateOn)}_parentMarkedDirty(O){return!O&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(O){return null}}class ye extends se{constructor(O,S,te){super(ee(S),L(te,S)),this.controls=O,this._initObservables(),this._setUpdateStrategy(S),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(O,S){return this.controls[O]?this.controls[O]:(this.controls[O]=S,S.setParent(this),S._registerOnCollectionChange(this._onCollectionChange),S)}addControl(O,S,te={}){this.registerControl(O,S),this.updateValueAndValidity({emitEvent:te.emitEvent}),this._onCollectionChange()}removeControl(O,S={}){this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),delete this.controls[O],this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}setControl(O,S,te={}){this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),delete this.controls[O],S&&this.registerControl(O,S),this.updateValueAndValidity({emitEvent:te.emitEvent}),this._onCollectionChange()}contains(O){return this.controls.hasOwnProperty(O)&&this.controls[O].enabled}setValue(O,S={}){pt(this,0,O),Object.keys(O).forEach(te=>{ke(this,!0,te),this.controls[te].setValue(O[te],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(O,S={}){null!=O&&(Object.keys(O).forEach(te=>{const vt=this.controls[te];vt&&vt.patchValue(O[te],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(O={},S={}){this._forEachChild((te,vt)=>{te.reset(O[vt],{onlySelf:!0,emitEvent:S.emitEvent})}),this._updatePristine(S),this._updateTouched(S),this.updateValueAndValidity(S)}getRawValue(){return this._reduceChildren({},(O,S,te)=>(O[te]=S.getRawValue(),O))}_syncPendingControls(){let O=this._reduceChildren(!1,(S,te)=>!!te._syncPendingControls()||S);return O&&this.updateValueAndValidity({onlySelf:!0}),O}_forEachChild(O){Object.keys(this.controls).forEach(S=>{const te=this.controls[S];te&&O(te,S)})}_setUpControls(){this._forEachChild(O=>{O.setParent(this),O._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(O){for(const[S,te]of Object.entries(this.controls))if(this.contains(S)&&O(te))return!0;return!1}_reduceValue(){return this._reduceChildren({},(S,te,vt)=>((te.enabled||this.disabled)&&(S[vt]=te.value),S))}_reduceChildren(O,S){let te=O;return this._forEachChild((vt,Vt)=>{te=S(te,vt,Vt)}),te}_allControlsDisabled(){for(const O of Object.keys(this.controls))if(this.controls[O].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(O){return this.controls.hasOwnProperty(O)?this.controls[O]:null}}const qe=ye;class $t extends ye{}function nn(F,O){return[...O.path,F]}function vn(F,O){var S,te;Xe(F,O),O.valueAccessor.writeValue(F.value),F.disabled&&(null===(te=(S=O.valueAccessor).setDisabledState)||void 0===te||te.call(S,!0)),function _t(F,O){O.valueAccessor.registerOnChange(S=>{F._pendingValue=S,F._pendingChange=!0,F._pendingDirty=!0,"change"===F.updateOn&&Ht(F,O)})}(F,O),function dn(F,O){const S=(te,vt)=>{O.valueAccessor.writeValue(te),vt&&O.viewToModelUpdate(te)};F.registerOnChange(S),O._registerOnDestroy(()=>{F._unregisterOnChange(S)})}(F,O),function Pt(F,O){O.valueAccessor.registerOnTouched(()=>{F._pendingTouched=!0,"blur"===F.updateOn&&F._pendingChange&&Ht(F,O),"submit"!==F.updateOn&&F.markAsTouched()})}(F,O),function he(F,O){if(O.valueAccessor.setDisabledState){const S=te=>{O.valueAccessor.setDisabledState(te)};F.registerOnDisabledChange(S),O._registerOnDestroy(()=>{F._unregisterOnDisabledChange(S)})}}(F,O)}function Ue(F,O,S=!0){const te=()=>{};O.valueAccessor&&(O.valueAccessor.registerOnChange(te),O.valueAccessor.registerOnTouched(te)),mt(F,O),F&&(O._invokeOnDestroyCallbacks(),F._registerOnCollectionChange(()=>{}))}function Ve(F,O){F.forEach(S=>{S.registerOnValidatorChange&&S.registerOnValidatorChange(O)})}function Xe(F,O){const S=Ke(F);null!==O.validator?F.setValidators(at(S,O.validator)):"function"==typeof S&&F.setValidators([S]);const te=nt(F);null!==O.asyncValidator?F.setAsyncValidators(at(te,O.asyncValidator)):"function"==typeof te&&F.setAsyncValidators([te]);const vt=()=>F.updateValueAndValidity();Ve(O._rawValidators,vt),Ve(O._rawAsyncValidators,vt)}function mt(F,O){let S=!1;if(null!==F){if(null!==O.validator){const vt=Ke(F);if(Array.isArray(vt)&&vt.length>0){const Vt=vt.filter(Kn=>Kn!==O.validator);Vt.length!==vt.length&&(S=!0,F.setValidators(Vt))}}if(null!==O.asyncValidator){const vt=nt(F);if(Array.isArray(vt)&&vt.length>0){const Vt=vt.filter(Kn=>Kn!==O.asyncValidator);Vt.length!==vt.length&&(S=!0,F.setAsyncValidators(Vt))}}}const te=()=>{};return Ve(O._rawValidators,te),Ve(O._rawAsyncValidators,te),S}function Ht(F,O){F._pendingDirty&&F.markAsDirty(),F.setValue(F._pendingValue,{emitModelToViewChange:!1}),O.viewToModelUpdate(F._pendingValue),F._pendingChange=!1}function On(F,O){Xe(F,O)}function Ze(F,O){if(!F.hasOwnProperty("model"))return!1;const S=F.model;return!!S.isFirstChange()||!Object.is(O,S.currentValue)}function Rt(F,O){F._syncPendingControls(),O.forEach(S=>{const te=S.control;"submit"===te.updateOn&&te._pendingChange&&(S.viewToModelUpdate(te._pendingValue),te._pendingChange=!1)})}function Yt(F,O){if(!O)return null;let S,te,vt;return Array.isArray(O),O.forEach(Vt=>{Vt.constructor===E?S=Vt:function Dt(F){return Object.getPrototypeOf(F.constructor)===f}(Vt)?te=Vt:vt=Vt}),vt||te||S||null}const hn={provide:je,useExisting:(0,n.forwardRef)(()=>qt)},gn=(()=>Promise.resolve(null))();let qt=(()=>{class F extends je{constructor(S,te){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.EventEmitter,this.form=new ye({},ft(S),et(te))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(S){gn.then(()=>{const te=this._findContainer(S.path);S.control=te.registerControl(S.name,S.control),vn(S.control,S),S.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(S)})}getControl(S){return this.form.get(S.path)}removeControl(S){gn.then(()=>{const te=this._findContainer(S.path);te&&te.removeControl(S.name),this._directives.delete(S)})}addFormGroup(S){gn.then(()=>{const te=this._findContainer(S.path),vt=new ye({});On(vt,S),te.registerControl(S.name,vt),vt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(S){gn.then(()=>{const te=this._findContainer(S.path);te&&te.removeControl(S.name)})}getFormGroup(S){return this.form.get(S.path)}updateModel(S,te){gn.then(()=>{this.form.get(S.path).setValue(te)})}setValue(S){this.control.setValue(S)}onSubmit(S){return this.submitted=!0,Rt(this.form,this._directives),this.ngSubmit.emit(S),!1}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(S){return S.pop(),S.length?this.form.get(S):this.form}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Y,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(S,te){1&S&&n.\u0275\u0275listener("submit",function(Vt){return te.onSubmit(Vt)})("reset",function(){return te.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([hn]),n.\u0275\u0275InheritDefinitionFeature]}),F})();function Rn(F,O){const S=F.indexOf(O);S>-1&&F.splice(S,1)}function ni(F){return"object"==typeof F&&null!==F&&2===Object.keys(F).length&&"value"in F&&"disabled"in F}const Jt=class extends se{constructor(O=null,S,te){super(ee(S),L(te,S)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(O),this._setUpdateStrategy(S),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ct(S)&&(S.nonNullable||S.initialValueIsDefault)&&(this.defaultValue=ni(O)?O.value:O)}setValue(O,S={}){this.value=this._pendingValue=O,this._onChange.length&&!1!==S.emitModelToViewChange&&this._onChange.forEach(te=>te(this.value,!1!==S.emitViewToModelChange)),this.updateValueAndValidity(S)}patchValue(O,S={}){this.setValue(O,S)}reset(O=this.defaultValue,S={}){this._applyFormState(O),this.markAsPristine(S),this.markAsUntouched(S),this.setValue(this.value,S),this._pendingChange=!1}_updateValue(){}_anyControls(O){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(O){this._onChange.push(O)}_unregisterOnChange(O){Rn(this._onChange,O)}registerOnDisabledChange(O){this._onDisabledChange.push(O)}_unregisterOnDisabledChange(O){Rn(this._onDisabledChange,O)}_forEachChild(O){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(O){ni(O)?(this.value=this._pendingValue=O.value,O.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=O}},xn=Jt;let In=(()=>{class F extends je{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return nn(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,features:[n.\u0275\u0275InheritDefinitionFeature]}),F})();const Hn={provide:je,useExisting:(0,n.forwardRef)(()=>Ci)};let Ci=(()=>{class F extends In{constructor(S,te,vt){super(),this._parent=S,this._setValidators(te),this._setAsyncValidators(vt)}_checkParentType(){}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,5),n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Y,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[n.\u0275\u0275ProvidersFeature([Hn]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const fr={provide:Ae,useExisting:(0,n.forwardRef)(()=>$i)},Vi=(()=>Promise.resolve(null))();let $i=(()=>{class F extends Ae{constructor(S,te,vt,Vt,Kn){super(),this._changeDetectorRef=Kn,this.control=new Jt,this._registered=!1,this.update=new n.EventEmitter,this._parent=S,this._setValidators(te),this._setAsyncValidators(vt),this.valueAccessor=Yt(0,Vt)}ngOnChanges(S){if(this._checkForErrors(),!this._registered||"name"in S){if(this._registered&&(this._checkName(),this.formDirective)){const te=S.name.previousValue;this.formDirective.removeControl({name:te,path:this._getPath(te)})}this._setUpControl()}"isDisabled"in S&&this._updateDisabled(S),Ze(S,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){vn(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(S){Vi.then(()=>{var te;this.control.setValue(S,{emitViewToModelChange:!1}),null===(te=this._changeDetectorRef)||void 0===te||te.markForCheck()})}_updateDisabled(S){const te=S.isDisabled.currentValue,vt=0!==te&&(0,n.\u0275coerceToBoolean)(te);Vi.then(()=>{var Vt;vt&&!this.control.disabled?this.control.disable():!vt&&this.control.disabled&&this.control.enable(),null===(Vt=this._changeDetectorRef)||void 0===Vt||Vt.markForCheck()})}_getPath(S){return this._parent?nn(S,this._parent):[S]}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,9),n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Y,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(n.ChangeDetectorRef,8))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.\u0275\u0275ProvidersFeature([fr]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),F})(),hr=(()=>{class F{}return F.\u0275fac=function(S){return new(S||F)},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),F})();const Rr={provide:h,useExisting:(0,n.forwardRef)(()=>xr),multi:!0};let xr=(()=>{class F extends f{writeValue(S){this.setProperty("value",null==S?"":S)}registerOnChange(S){this.onChange=te=>{S(""==te?null:parseFloat(te))}}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(S,te){1&S&&n.\u0275\u0275listener("input",function(Vt){return te.onChange(Vt.target.value)})("blur",function(){return te.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Rr]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const Jn={provide:h,useExisting:(0,n.forwardRef)(()=>Ii),multi:!0};let Hi=(()=>{class F{}return F.\u0275fac=function(S){return new(S||F)},F.\u0275mod=n.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=n.\u0275\u0275defineInjector({}),F})(),pr=(()=>{class F{constructor(){this._accessors=[]}add(S,te){this._accessors.push([S,te])}remove(S){for(let te=this._accessors.length-1;te>=0;--te)if(this._accessors[te][1]===S)return void this._accessors.splice(te,1)}select(S){this._accessors.forEach(te=>{this._isSameGroup(te,S)&&te[1]!==S&&te[1].fireUncheck(S.value)})}_isSameGroup(S,te){return!!S[0].control&&S[0]._parent===te._control._parent&&S[1].name===te.name}}return F.\u0275fac=function(S){return new(S||F)},F.\u0275prov=n.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:Hi}),F})(),Ii=(()=>{class F extends f{constructor(S,te,vt,Vt){super(S,te),this._registry=vt,this._injector=Vt,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Ae),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(S){this._state=S===this.value,this.setProperty("checked",this._state)}registerOnChange(S){this._fn=S,this.onChange=()=>{S(this.value),this._registry.select(this)}}fireUncheck(S){this.writeValue(S)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(pr),n.\u0275\u0275directiveInject(n.Injector))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(S,te){1&S&&n.\u0275\u0275listener("change",function(){return te.onChange()})("blur",function(){return te.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.\u0275\u0275ProvidersFeature([Jn]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const Fr={provide:h,useExisting:(0,n.forwardRef)(()=>Ui),multi:!0};let Ui=(()=>{class F extends f{writeValue(S){this.setProperty("value",parseFloat(S))}registerOnChange(S){this.onChange=te=>{S(""==te?null:parseFloat(te))}}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(S,te){1&S&&n.\u0275\u0275listener("change",function(Vt){return te.onChange(Vt.target.value)})("input",function(Vt){return te.onChange(Vt.target.value)})("blur",function(){return te.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Fr]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const mr=new n.InjectionToken("NgModelWithFormControlWarning"),Ur={provide:Ae,useExisting:(0,n.forwardRef)(()=>Oi)};let Oi=(()=>{class F extends Ae{constructor(S,te,vt,Vt){super(),this._ngModelWarningConfig=Vt,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(S),this._setAsyncValidators(te),this.valueAccessor=Yt(0,vt)}set isDisabled(S){}ngOnChanges(S){if(this._isControlChanged(S)){const te=S.form.previousValue;te&&Ue(te,this,!1),vn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Ze(S,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ue(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}_isControlChanged(S){return S.hasOwnProperty("form")}}return F._ngModelWarningSentOnce=!1,F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Y,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(mr,8))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([Ur]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),F})();const zr={provide:je,useExisting:(0,n.forwardRef)(()=>Di)};let Di=(()=>{class F extends je{constructor(S,te){super(),this.validators=S,this.asyncValidators=te,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.EventEmitter,this._setValidators(S),this._setAsyncValidators(te)}ngOnChanges(S){this._checkFormPresent(),S.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(mt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(S){const te=this.form.get(S.path);return vn(te,S),te.updateValueAndValidity({emitEvent:!1}),this.directives.push(S),te}getControl(S){return this.form.get(S.path)}removeControl(S){Ue(S.control||null,S,!1),function Qt(F,O){const S=F.indexOf(O);S>-1&&F.splice(S,1)}(this.directives,S)}addFormGroup(S){this._setUpFormContainer(S)}removeFormGroup(S){this._cleanUpFormContainer(S)}getFormGroup(S){return this.form.get(S.path)}addFormArray(S){this._setUpFormContainer(S)}removeFormArray(S){this._cleanUpFormContainer(S)}getFormArray(S){return this.form.get(S.path)}updateModel(S,te){this.form.get(S.path).setValue(te)}onSubmit(S){return this.submitted=!0,Rt(this.form,this.directives),this.ngSubmit.emit(S),!1}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_updateDomValue(){this.directives.forEach(S=>{const te=S.control,vt=this.form.get(S.path);te!==vt&&(Ue(te||null,S),(F=>F instanceof Jt)(vt)&&(vn(vt,S),S.control=vt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(S){const te=this.form.get(S.path);On(te,S),te.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(S){if(this.form){const te=this.form.get(S.path);te&&function _n(F,O){return mt(F,O)}(te,S)&&te.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Xe(this.form,this),this._oldForm&&mt(this._oldForm,this)}_checkFormPresent(){}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Y,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formGroup",""]],hostBindings:function(S,te){1&S&&n.\u0275\u0275listener("submit",function(Vt){return te.onSubmit(Vt)})("reset",function(){return te.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([zr]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),F})();const Zi={provide:je,useExisting:(0,n.forwardRef)(()=>Ai)};let Ai=(()=>{class F extends In{constructor(S,te,vt){super(),this._parent=S,this._setValidators(te),this._setAsyncValidators(vt)}_checkParentType(){mi(this._parent)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,13),n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Y,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[n.\u0275\u0275ProvidersFeature([Zi]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const Ji={provide:je,useExisting:(0,n.forwardRef)(()=>Pi)};let Pi=(()=>{class F extends je{constructor(S,te,vt){super(),this._parent=S,this._setValidators(te),this._setAsyncValidators(vt)}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 nn(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){mi(this._parent)}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,13),n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Y,10))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[n.\u0275\u0275ProvidersFeature([Ji]),n.\u0275\u0275InheritDefinitionFeature]}),F})();function mi(F){return!(F instanceof Ai||F instanceof Di||F instanceof Pi)}const Xi={provide:Ae,useExisting:(0,n.forwardRef)(()=>Ei)};let Ei=(()=>{class F extends Ae{constructor(S,te,vt,Vt,Kn){super(),this._ngModelWarningConfig=Kn,this._added=!1,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._parent=S,this._setValidators(te),this._setAsyncValidators(vt),this.valueAccessor=Yt(0,Vt)}set isDisabled(S){}ngOnChanges(S){this._added||this._setUpControl(),Ze(S,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}get path(){return nn(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._added=!0}}return F._ngModelWarningSentOnce=!1,F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(je,13),n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Y,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(mr,8))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.\u0275\u0275ProvidersFeature([Xi]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),F})();const qi={provide:h,useExisting:(0,n.forwardRef)(()=>gi),multi:!0};function er(F,O){return null==F?`${O}`:(O&&"object"==typeof O&&(O="Object"),`${F}: ${O}`.slice(0,50))}let gi=(()=>{class F extends f{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(S){this._compareWith=S}writeValue(S){this.value=S;const vt=er(this._getOptionId(S),S);this.setProperty("value",vt)}registerOnChange(S){this.onChange=te=>{this.value=this._getOptionValue(te),S(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(S){for(const te of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(te),S))return te;return null}_getOptionValue(S){const te=function gr(F){return F.split(":")[0]}(S);return this._optionMap.has(te)?this._optionMap.get(te):S}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(S,te){1&S&&n.\u0275\u0275listener("change",function(Vt){return te.onChange(Vt.target.value)})("blur",function(){return te.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([qi]),n.\u0275\u0275InheritDefinitionFeature]}),F})(),Ti=(()=>{class F{constructor(S,te,vt){this._element=S,this._renderer=te,this._select=vt,this._select&&(this.id=this._select._registerOption())}set ngValue(S){null!=this._select&&(this._select._optionMap.set(this.id,S),this._setElementValue(er(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._setElementValue(S),this._select&&this._select.writeValue(this._select.value)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(gi,9))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();const vr={provide:h,useExisting:(0,n.forwardRef)(()=>ai),multi:!0};function tr(F,O){return null==F?`${O}`:("string"==typeof O&&(O=`'${O}'`),O&&"object"==typeof O&&(O="Object"),`${F}: ${O}`.slice(0,50))}let ai=(()=>{class F extends f{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(S){this._compareWith=S}writeValue(S){let te;if(this.value=S,Array.isArray(S)){const vt=S.map(Vt=>this._getOptionId(Vt));te=(Vt,Kn)=>{Vt._setSelected(vt.indexOf(Kn.toString())>-1)}}else te=(vt,Vt)=>{vt._setSelected(!1)};this._optionMap.forEach(te)}registerOnChange(S){this.onChange=te=>{const vt=[],Vt=te.selectedOptions;if(void 0!==Vt){const Kn=Vt;for(let yi=0;yi<Kn.length;yi++){const ci=this._getOptionValue(Kn[yi].value);vt.push(ci)}}else{const Kn=te.options;for(let yi=0;yi<Kn.length;yi++){const Vn=Kn[yi];if(Vn.selected){const ci=this._getOptionValue(Vn.value);vt.push(ci)}}}this.value=vt,S(vt)}}_registerOption(S){const te=(this._idCounter++).toString();return this._optionMap.set(te,S),te}_getOptionId(S){for(const te of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(te)._value,S))return te;return null}_getOptionValue(S){const te=function yr(F){return F.split(":")[0]}(S);return this._optionMap.has(te)?this._optionMap.get(te)._value:S}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(S,te){1&S&&n.\u0275\u0275listener("change",function(Vt){return te.onChange(Vt.target)})("blur",function(){return te.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([vr]),n.\u0275\u0275InheritDefinitionFeature]}),F})(),nr=(()=>{class F{constructor(S,te,vt){this._element=S,this._renderer=te,this._select=vt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(S){null!=this._select&&(this._value=S,this._setElementValue(tr(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._select?(this._value=S,this._setElementValue(tr(this.id,S)),this._select.writeValue(this._select.value)):this._setElementValue(S)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}_setSelected(S){this._renderer.setProperty(this._element.nativeElement,"selected",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return F.\u0275fac=function(S){return new(S||F)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(ai,9))},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),F})();function Ri(F){return"number"==typeof F?F:parseInt(F,10)}function _r(F){return"number"==typeof F?F:parseFloat(F)}let wi=(()=>{class F{constructor(){this._validator=B}ngOnChanges(S){if(this.inputName in S){const te=this.normalizeInput(S[this.inputName].currentValue);this._enabled=this.enabled(te),this._validator=this._enabled?this.createValidator(te):B,this._onChange&&this._onChange()}}validate(S){return this._validator(S)}registerOnValidatorChange(S){this._onChange=S}enabled(S){return null!=S}}return F.\u0275fac=function(S){return new(S||F)},F.\u0275dir=n.\u0275\u0275defineDirective({type:F,features:[n.\u0275\u0275NgOnChangesFeature]}),F})();const wn={provide:j,useExisting:(0,n.forwardRef)(()=>li),multi:!0};let li=(()=>{class F extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=S=>_r(S),this.createValidator=S=>X(S)}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(S,te){2&S&&n.\u0275\u0275attribute("max",te._enabled?te.max:null)},inputs:{max:"max"},features:[n.\u0275\u0275ProvidersFeature([wn]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const jn={provide:j,useExisting:(0,n.forwardRef)(()=>Bn),multi:!0};let Bn=(()=>{class F extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=S=>_r(S),this.createValidator=S=>V(S)}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(S,te){2&S&&n.\u0275\u0275attribute("min",te._enabled?te.min:null)},inputs:{min:"min"},features:[n.\u0275\u0275ProvidersFeature([jn]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const Dn={provide:j,useExisting:(0,n.forwardRef)(()=>zi),multi:!0},br={provide:j,useExisting:(0,n.forwardRef)(()=>Mi),multi:!0};let zi=(()=>{class F extends wi{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.\u0275coerceToBoolean,this.createValidator=S=>re}enabled(S){return S}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(S,te){2&S&&n.\u0275\u0275attribute("required",te._enabled?"":null)},inputs:{required:"required"},features:[n.\u0275\u0275ProvidersFeature([Dn]),n.\u0275\u0275InheritDefinitionFeature]}),F})(),Mi=(()=>{class F extends zi{constructor(){super(...arguments),this.createValidator=S=>me}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(S,te){2&S&&n.\u0275\u0275attribute("required",te._enabled?"":null)},features:[n.\u0275\u0275ProvidersFeature([br]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const Gn={provide:j,useExisting:(0,n.forwardRef)(()=>R),multi:!0};let R=(()=>{class F extends wi{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=n.\u0275coerceToBoolean,this.createValidator=S=>we}enabled(S){return S}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[n.\u0275\u0275ProvidersFeature([Gn]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const ie={provide:j,useExisting:(0,n.forwardRef)(()=>x),multi:!0};let x=(()=>{class F extends wi{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=S=>Ri(S),this.createValidator=S=>tt(S)}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(S,te){2&S&&n.\u0275\u0275attribute("minlength",te._enabled?te.minlength:null)},inputs:{minlength:"minlength"},features:[n.\u0275\u0275ProvidersFeature([ie]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const le={provide:j,useExisting:(0,n.forwardRef)(()=>Be),multi:!0};let Be=(()=>{class F extends wi{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=S=>Ri(S),this.createValidator=S=>G(S)}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(S,te){2&S&&n.\u0275\u0275attribute("maxlength",te._enabled?te.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.\u0275\u0275ProvidersFeature([le]),n.\u0275\u0275InheritDefinitionFeature]}),F})();const bt={provide:j,useExisting:(0,n.forwardRef)(()=>ut),multi:!0};let ut=(()=>{class F extends wi{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=S=>S,this.createValidator=S=>q(S)}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275dir=n.\u0275\u0275defineDirective({type:F,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(S,te){2&S&&n.\u0275\u0275attribute("pattern",te._enabled?te.pattern:null)},inputs:{pattern:"pattern"},features:[n.\u0275\u0275ProvidersFeature([bt]),n.\u0275\u0275InheritDefinitionFeature]}),F})(),Cn=(()=>{class F{}return F.\u0275fac=function(S){return new(S||F)},F.\u0275mod=n.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=n.\u0275\u0275defineInjector({imports:[Hi]}),F})(),pn=(()=>{class F{}return F.\u0275fac=function(S){return new(S||F)},F.\u0275mod=n.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=n.\u0275\u0275defineInjector({imports:[Cn]}),F})(),Fn=(()=>{class F{static withConfig(S){return{ngModule:F,providers:[{provide:mr,useValue:S.warnOnNgModelWithFormControl}]}}}return F.\u0275fac=function(S){return new(S||F)},F.\u0275mod=n.\u0275\u0275defineNgModule({type:F}),F.\u0275inj=n.\u0275\u0275defineInjector({imports:[Cn]}),F})();class yn extends se{constructor(O,S,te){super(ee(S),L(te,S)),this.controls=O,this._initObservables(),this._setUpdateStrategy(S),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(O){return this.controls[this._adjustIndex(O)]}push(O,S={}){this.controls.push(O),this._registerControl(O),this.updateValueAndValidity({emitEvent:S.emitEvent}),this._onCollectionChange()}insert(O,S,te={}){this.controls.splice(O,0,S),this._registerControl(S),this.updateValueAndValidity({emitEvent:te.emitEvent})}removeAt(O,S={}){let te=this._adjustIndex(O);te<0&&(te=0),this.controls[te]&&this.controls[te]._registerOnCollectionChange(()=>{}),this.controls.splice(te,1),this.updateValueAndValidity({emitEvent:S.emitEvent})}setControl(O,S,te={}){let vt=this._adjustIndex(O);vt<0&&(vt=0),this.controls[vt]&&this.controls[vt]._registerOnCollectionChange(()=>{}),this.controls.splice(vt,1),S&&(this.controls.splice(vt,0,S),this._registerControl(S)),this.updateValueAndValidity({emitEvent:te.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(O,S={}){pt(this,0,O),O.forEach((te,vt)=>{ke(this,!1,vt),this.at(vt).setValue(te,{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(O,S={}){null!=O&&(O.forEach((te,vt)=>{this.at(vt)&&this.at(vt).patchValue(te,{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(O=[],S={}){this._forEachChild((te,vt)=>{te.reset(O[vt],{onlySelf:!0,emitEvent:S.emitEvent})}),this._updatePristine(S),this._updateTouched(S),this.updateValueAndValidity(S)}getRawValue(){return this.controls.map(O=>O.getRawValue())}clear(O={}){this.controls.length<1||(this._forEachChild(S=>S._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:O.emitEvent}))}_adjustIndex(O){return O<0?O+this.length:O}_syncPendingControls(){let O=this.controls.reduce((S,te)=>!!te._syncPendingControls()||S,!1);return O&&this.updateValueAndValidity({onlySelf:!0}),O}_forEachChild(O){this.controls.forEach((S,te)=>{O(S,te)})}_updateValue(){this.value=this.controls.filter(O=>O.enabled||this.disabled).map(O=>O.value)}_anyControls(O){return this.controls.some(S=>S.enabled&&O(S))}_setUpControls(){this._forEachChild(O=>this._registerControl(O))}_allControlsDisabled(){for(const O of this.controls)if(O.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(O){O.setParent(this),O._registerOnCollectionChange(this._onCollectionChange)}_find(O){var S;return null!==(S=this.at(O))&&void 0!==S?S:null}}const kn=yn;function sn(F){return!!F&&(void 0!==F.asyncValidators||void 0!==F.validators||void 0!==F.updateOn)}let vi=(()=>{class F{constructor(){this.useNonNullable=!1}get nonNullable(){const S=new F;return S.useNonNullable=!0,S}group(S,te=null){const vt=this._reduceControls(S);let Vt={};return sn(te)?Vt=te:null!==te&&(Vt.validators=te.validator,Vt.asyncValidators=te.asyncValidator),new ye(vt,Vt)}control(S,te,vt){let Vt={};return this.useNonNullable?(sn(te)?Vt=te:(Vt.validators=te,Vt.asyncValidators=vt),new Jt(S,Object.assign(Object.assign({},Vt),{nonNullable:!0}))):new Jt(S,te,vt)}array(S,te,vt){const Vt=S.map(Kn=>this._createControl(Kn));return new yn(Vt,te,vt)}_reduceControls(S){const te={};return Object.keys(S).forEach(vt=>{te[vt]=this._createControl(S[vt])}),te}_createControl(S){return S instanceof Jt||S instanceof se?S:Array.isArray(S)?this.control(S[0],S.length>1?S[1]:null,S.length>2?S[2]:null):this.control(S)}}return F.\u0275fac=function(S){return new(S||F)},F.\u0275prov=n.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:Fn}),F})(),xi=(()=>{class F{}return F.\u0275fac=function(S){return new(S||F)},F.\u0275prov=n.\u0275\u0275defineInjectable({token:F,factory:function(){return(0,n.inject)(vi).nonNullable},providedIn:Fn}),F})(),An=(()=>{class F extends vi{group(S,te=null){return super.group(S,te)}control(S,te,vt){return super.control(S,te,vt)}array(S,te,vt){return super.array(S,te,vt)}}return F.\u0275fac=function(){let O;return function(te){return(O||(O=n.\u0275\u0275getInheritedFactory(F)))(te||F)}}(),F.\u0275prov=n.\u0275\u0275defineInjectable({token:F,factory:F.\u0275fac,providedIn:Fn}),F})();const Cr=new n.Version("14.1.0")},7423:(H,o,a)=>{"use strict";a.r(o),a.d(o,{MatAnchor:()=>_,MatButton:()=>d,MatButtonModule:()=>v});var n=a(5e3),p=a(508),b=a(5664);const u=["mat-button",""],r=["*"],h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],m=(0,p.mixinColor)((0,p.mixinDisabled)((0,p.mixinDisableRipple)(class{constructor(y){this._elementRef=y}})));let d=(()=>{class y extends m{constructor(M,A,k){super(M),this._focusMonitor=A,this._animationMode=k,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const j of h)this._hasHostAttributes(j)&&this._getHostElement().classList.add(j);M.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(M,A){M?this._focusMonitor.focusVia(this._getHostElement(),M,A):this._getHostElement().focus(A)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...M){return M.some(A=>this._getHostElement().hasAttribute(A))}}return y.\u0275fac=function(M){return new(M||y)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(b.tE),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},y.\u0275cmp=n.\u0275\u0275defineComponent({type:y,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(M,A){if(1&M&&n.\u0275\u0275viewQuery(p.MatRipple,5),2&M){let k;n.\u0275\u0275queryRefresh(k=n.\u0275\u0275loadQuery())&&(A.ripple=k.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(M,A){2&M&&(n.\u0275\u0275attribute("disabled",A.disabled||null),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===A._animationMode)("mat-button-disabled",A.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:u,ngContentSelectors:r,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(M,A){1&M&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(2,"span",1)(3,"span",2)),2&M&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-button-ripple-round",A.isRoundButton||A.isIconButton),n.\u0275\u0275property("matRippleDisabled",A._isRippleDisabled())("matRippleCentered",A.isIconButton)("matRippleTrigger",A._getHostElement()))},dependencies:[p.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),y})(),_=(()=>{class y extends d{constructor(M,A,k,j){super(A,M,k),this._ngZone=j,this._haltDisabledEvents=Y=>{this.disabled&&(Y.preventDefault(),Y.stopImmediatePropagation())}}ngAfterViewInit(){super.ngAfterViewInit(),this._ngZone?this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}return y.\u0275fac=function(M){return new(M||y)(n.\u0275\u0275directiveInject(b.tE),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8),n.\u0275\u0275directiveInject(n.NgZone,8))},y.\u0275cmp=n.\u0275\u0275defineComponent({type:y,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(M,A){2&M&&(n.\u0275\u0275attribute("tabindex",A.disabled?-1:A.tabIndex)("disabled",A.disabled||null)("aria-disabled",A.disabled.toString()),n.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===A._animationMode)("mat-button-disabled",A.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[n.\u0275\u0275InheritDefinitionFeature],attrs:u,ngContentSelectors:r,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(M,A){1&M&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275projection(1),n.\u0275\u0275elementEnd(),n.\u0275\u0275element(2,"span",1)(3,"span",2)),2&M&&(n.\u0275\u0275advance(2),n.\u0275\u0275classProp("mat-button-ripple-round",A.isRoundButton||A.isIconButton),n.\u0275\u0275property("matRippleDisabled",A._isRippleDisabled())("matRippleCentered",A.isIconButton)("matRippleTrigger",A._getHostElement()))},dependencies:[p.MatRipple],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.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}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.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}"],encapsulation:2,changeDetection:0}),y})(),v=(()=>{class y{}return y.\u0275fac=function(M){return new(M||y)},y.\u0275mod=n.\u0275\u0275defineNgModule({type:y}),y.\u0275inj=n.\u0275\u0275defineInjector({imports:[p.MatRippleModule,p.MatCommonModule,p.MatCommonModule]}),y})()},9417:(H,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_CHIPS_DEFAULT_OPTIONS:()=>dt,MAT_CHIP_AVATAR:()=>xe,MAT_CHIP_REMOVE:()=>ge,MAT_CHIP_TRAILING_ICON:()=>ht,MatChip:()=>Te,MatChipAvatar:()=>ne,MatChipInput:()=>kt,MatChipList:()=>$e,MatChipListChange:()=>Ne,MatChipRemove:()=>He,MatChipSelectionChange:()=>Fe,MatChipTrailingIcon:()=>ce,MatChipsModule:()=>fe});var n=a(1159),p=a(5e3),b=a(508),u=a(3191),r=a(9808),c=a(7579),f=a(6451),h=a(5698),m=a(2722),d=a(8675),_=a(925),v=a(5664),y=a(449),E=a(3075);a(1777);let yt=(()=>{class ee{}return ee.\u0275fac=function(L){return new(L||ee)},ee.\u0275dir=p.\u0275\u0275defineDirective({type:ee}),ee})();var Le=a(226);const Se=["*"];class Fe{constructor(oe,L,be=!1){this.source=oe,this.selected=L,this.isUserInput=be}}const ge=new p.InjectionToken("MatChipRemove"),xe=new p.InjectionToken("MatChipAvatar"),ht=new p.InjectionToken("MatChipTrailingIcon");class Me{constructor(oe){this._elementRef=oe}}const $=(0,b.mixinTabIndex)((0,b.mixinColor)((0,b.mixinDisableRipple)(Me),"primary"),-1);let ne=(()=>{class ee{}return ee.\u0275fac=function(L){return new(L||ee)},ee.\u0275dir=p.\u0275\u0275defineDirective({type:ee,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[p.\u0275\u0275ProvidersFeature([{provide:xe,useExisting:ee}])]}),ee})(),ce=(()=>{class ee{}return ee.\u0275fac=function(L){return new(L||ee)},ee.\u0275dir=p.\u0275\u0275defineDirective({type:ee,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[p.\u0275\u0275ProvidersFeature([{provide:ht,useExisting:ee}])]}),ee})(),Te=(()=>{class ee extends ${constructor(L,be,ct,ke,pt,se,ye,qe){super(L),this._ngZone=be,this._changeDetectorRef=pt,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this.role="option",this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new c.x,this._onBlur=new c.x,this.selectionChange=new p.EventEmitter,this.destroyed=new p.EventEmitter,this.removed=new p.EventEmitter,this._addHostClassName(),this._chipRippleTarget=se.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new b.RippleRenderer(this,be,this._chipRippleTarget,ct),this._chipRipple.setupTriggerEvents(L),this.rippleConfig=ke||{},this._animationsDisabled="NoopAnimations"===ye,this.tabIndex=null!=qe&&parseInt(qe)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(L){const be=(0,u.Ig)(L);be!==this._selected&&(this._selected=be,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(L){this._value=L}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(L){this._selectable=(0,u.Ig)(L)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(L){this._disabled=(0,u.Ig)(L)}get removable(){return this._removable}set removable(L){this._removable=(0,u.Ig)(L)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const L="mat-basic-chip",be=this._elementRef.nativeElement;be.hasAttribute(L)||be.tagName.toLowerCase()===L?be.classList.add(L):be.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(L=!1){return this._selected=!this.selected,this._dispatchSelectionChange(L),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(L){this.disabled&&L.preventDefault()}_handleKeydown(L){if(!this.disabled)switch(L.keyCode){case n.yY:case n.ZH:this.remove(),L.preventDefault();break;case n.L_:this.selectable&&this.toggleSelected(!0),L.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(L=!1){this.selectionChange.emit({source:this,isUserInput:L,selected:this._selected})}}return ee.\u0275fac=function(L){return new(L||ee)(p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(p.NgZone),p.\u0275\u0275directiveInject(_.t4),p.\u0275\u0275directiveInject(b.MAT_RIPPLE_GLOBAL_OPTIONS,8),p.\u0275\u0275directiveInject(p.ChangeDetectorRef),p.\u0275\u0275directiveInject(r.DOCUMENT),p.\u0275\u0275directiveInject(p.ANIMATION_MODULE_TYPE,8),p.\u0275\u0275injectAttribute("tabindex"))},ee.\u0275dir=p.\u0275\u0275defineDirective({type:ee,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(L,be,ct){if(1&L&&(p.\u0275\u0275contentQuery(ct,xe,5),p.\u0275\u0275contentQuery(ct,ht,5),p.\u0275\u0275contentQuery(ct,ge,5)),2&L){let ke;p.\u0275\u0275queryRefresh(ke=p.\u0275\u0275loadQuery())&&(be.avatar=ke.first),p.\u0275\u0275queryRefresh(ke=p.\u0275\u0275loadQuery())&&(be.trailingIcon=ke.first),p.\u0275\u0275queryRefresh(ke=p.\u0275\u0275loadQuery())&&(be.removeIcon=ke.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(L,be){1&L&&p.\u0275\u0275listener("click",function(ke){return be._handleClick(ke)})("keydown",function(ke){return be._handleKeydown(ke)})("focus",function(){return be.focus()})("blur",function(){return be._blur()}),2&L&&(p.\u0275\u0275attribute("tabindex",be.disabled?null:be.tabIndex)("role",be.role)("disabled",be.disabled||null)("aria-disabled",be.disabled.toString())("aria-selected",be.ariaSelected),p.\u0275\u0275classProp("mat-chip-selected",be.selected)("mat-chip-with-avatar",be.avatar)("mat-chip-with-trailing-icon",be.trailingIcon||be.removeIcon)("mat-chip-disabled",be.disabled)("_mat-animation-noopable",be._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[p.\u0275\u0275InheritDefinitionFeature]}),ee})(),He=(()=>{class ee{constructor(L,be){this._parentChip=L,"BUTTON"===be.nativeElement.nodeName&&be.nativeElement.setAttribute("type","button")}_handleClick(L){const be=this._parentChip;be.removable&&!be.disabled&&be.remove(),L.stopPropagation(),L.preventDefault()}}return ee.\u0275fac=function(L){return new(L||ee)(p.\u0275\u0275directiveInject(Te),p.\u0275\u0275directiveInject(p.ElementRef))},ee.\u0275dir=p.\u0275\u0275defineDirective({type:ee,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(L,be){1&L&&p.\u0275\u0275listener("click",function(ke){return be._handleClick(ke)})},features:[p.\u0275\u0275ProvidersFeature([{provide:ge,useExisting:ee}])]}),ee})();const dt=new p.InjectionToken("mat-chips-default-options");let xt=0,kt=(()=>{class ee{constructor(L,be){this._elementRef=L,this._defaultOptions=be,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new p.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+xt++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(L){L&&(this._chipList=L,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(L){this._addOnBlur=(0,u.Ig)(L)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(L){this._disabled=(0,u.Ig)(L)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(L){if(L){if(L.keyCode===n.Mf&&!(0,n.Vb)(L,"shiftKey")&&this._chipList._allowFocusEscape(),L.keyCode===n.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void L.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(L)}_keyup(L){!this._focusLastChipOnBackspace&&L.keyCode===n.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,L.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(L){!this.inputElement.value&&!!L&&this._chipList._keydown(L),(!L||this._isSeparatorKey(L))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==L||L.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(L){this.inputElement.focus(L)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(L){return!(0,n.Vb)(L)&&new Set(this.separatorKeyCodes).has(L.keyCode)}}return ee.\u0275fac=function(L){return new(L||ee)(p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(dt))},ee.\u0275dir=p.\u0275\u0275defineDirective({type:ee,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(L,be){1&L&&p.\u0275\u0275listener("keydown",function(ke){return be._keydown(ke)})("keyup",function(ke){return be._keyup(ke)})("blur",function(){return be._blur()})("focus",function(){return be._focus()})("input",function(){return be._onInput()}),2&L&&(p.\u0275\u0275hostProperty("id",be.id),p.\u0275\u0275attribute("disabled",be.disabled||null)("placeholder",be.placeholder||null)("aria-invalid",be._chipList&&be._chipList.ngControl?be._chipList.ngControl.invalid:null)("aria-required",be._chipList&&be._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[p.\u0275\u0275NgOnChangesFeature]}),ee})();const Bt=(0,b.mixinErrorState)(class{constructor(ee,oe,L,be){this._defaultErrorStateMatcher=ee,this._parentForm=oe,this._parentFormGroup=L,this.ngControl=be,this.stateChanges=new c.x}});let Zt=0;class Ne{constructor(oe,L){this.source=oe,this.value=L}}let $e=(()=>{class ee extends Bt{constructor(L,be,ct,ke,pt,se,ye){super(se,ke,pt,ye),this._elementRef=L,this._changeDetectorRef=be,this._dir=ct,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new c.x,this._uid="mat-chip-list-"+Zt++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(qe,gt)=>qe===gt,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new p.EventEmitter,this.valueChange=new p.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var L,be;return this.multiple?(null===(L=this._selectionModel)||void 0===L?void 0:L.selected)||[]:null===(be=this._selectionModel)||void 0===be?void 0:be.selected[0]}get role(){return this._explicitRole?this._explicitRole:this.empty?null:"listbox"}set role(L){this._explicitRole=L}get multiple(){return this._multiple}set multiple(L){this._multiple=(0,u.Ig)(L),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(L){this._compareWith=L,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(L){this.writeValue(L),this._value=L}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var L,be,ct,ke;return null!==(ke=null!==(L=this._required)&&void 0!==L?L:null===(ct=null===(be=this.ngControl)||void 0===be?void 0:be.control)||void 0===ct?void 0:ct.hasValidator(E.Validators.required))&&void 0!==ke&&ke}set required(L){this._required=(0,u.Ig)(L),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(L){this._placeholder=L,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(L){this._disabled=(0,u.Ig)(L),this._syncChipsState()}get selectable(){return this._selectable}set selectable(L){this._selectable=(0,u.Ig)(L),this.chips&&this.chips.forEach(be=>be.chipListSelectable=this._selectable)}set tabIndex(L){this._userTabIndex=L,this._tabIndex=L}get chipSelectionChanges(){return(0,f.T)(...this.chips.map(L=>L.selectionChange))}get chipFocusChanges(){return(0,f.T)(...this.chips.map(L=>L._onFocus))}get chipBlurChanges(){return(0,f.T)(...this.chips.map(L=>L._onBlur))}get chipRemoveChanges(){return(0,f.T)(...this.chips.map(L=>L.destroyed))}ngAfterContentInit(){this._keyManager=new v.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,m.R)(this._destroyed)).subscribe(L=>this._keyManager.withHorizontalOrientation(L)),this._keyManager.tabOut.pipe((0,m.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,d.O)(null),(0,m.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 y.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(L){this._chipInput=L,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",L.id)}setDescribedByIds(L){L.length?this._elementRef.nativeElement.setAttribute("aria-describedby",L.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}writeValue(L){this.chips&&this._setSelectionByValue(L,!1)}registerOnChange(L){this._onChange=L}registerOnTouched(L){this._onTouched=L}setDisabledState(L){this.disabled=L,this.stateChanges.next()}onContainerClick(L){this._originatesFromChip(L)||this.focus()}focus(L){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(L),this.stateChanges.next()))}_focusInput(L){this._chipInput&&this._chipInput.focus(L)}_keydown(L){const be=L.target;be&&be.classList.contains("mat-chip")&&(this._keyManager.onKeydown(L),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const L=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(L)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(L){return L>=0&&L<this.chips.length}_setSelectionByValue(L,be=!0){if(this._clearSelection(),this.chips.forEach(ct=>ct.deselect()),Array.isArray(L))L.forEach(ct=>this._selectValue(ct,be)),this._sortValues();else{const ct=this._selectValue(L,be);ct&&be&&this._keyManager.setActiveItem(ct)}}_selectValue(L,be=!0){const ct=this.chips.find(ke=>null!=ke.value&&this._compareWith(ke.value,L));return ct&&(be?ct.selectViaInteraction():ct.select(),this._selectionModel.select(ct)),ct}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(L){this._selectionModel.clear(),this.chips.forEach(be=>{be!==L&&be.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(L=>{L.selected&&this._selectionModel.select(L)}),this.stateChanges.next())}_propagateChanges(L){let be=null;be=Array.isArray(this.selected)?this.selected.map(ct=>ct.value):this.selected?this.selected.value:L,this._value=be,this.change.emit(new Ne(this,be)),this.valueChange.emit(be),this._onChange(be),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(L=>{L.source.selected?this._selectionModel.select(L.source):this._selectionModel.deselect(L.source),this.multiple||this.chips.forEach(be=>{!this._selectionModel.isSelected(be)&&be.selected&&be.deselect()}),L.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(L=>{let be=this.chips.toArray().indexOf(L.chip);this._isValidIndex(be)&&this._keyManager.updateActiveItem(be),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(L=>{const be=L.chip,ct=this.chips.toArray().indexOf(L.chip);this._isValidIndex(ct)&&be._hasFocus&&(this._lastDestroyedChipIndex=ct)})}_originatesFromChip(L){let be=L.target;for(;be&&be!==this._elementRef.nativeElement;){if(be.classList.contains("mat-chip"))return!0;be=be.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(L=>L._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(L=>{L._chipListDisabled=this._disabled,L._chipListMultiple=this.multiple})}}return ee.\u0275fac=function(L){return new(L||ee)(p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(p.ChangeDetectorRef),p.\u0275\u0275directiveInject(Le.Is,8),p.\u0275\u0275directiveInject(E.NgForm,8),p.\u0275\u0275directiveInject(E.FormGroupDirective,8),p.\u0275\u0275directiveInject(b.ErrorStateMatcher),p.\u0275\u0275directiveInject(E.NgControl,10))},ee.\u0275cmp=p.\u0275\u0275defineComponent({type:ee,selectors:[["mat-chip-list"]],contentQueries:function(L,be,ct){if(1&L&&p.\u0275\u0275contentQuery(ct,Te,5),2&L){let ke;p.\u0275\u0275queryRefresh(ke=p.\u0275\u0275loadQuery())&&(be.chips=ke)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(L,be){1&L&&p.\u0275\u0275listener("focus",function(){return be.focus()})("blur",function(){return be._blur()})("keydown",function(ke){return be._keydown(ke)}),2&L&&(p.\u0275\u0275hostProperty("id",be._uid),p.\u0275\u0275attribute("tabindex",be.disabled?null:be._tabIndex)("aria-required",be.role?be.required:null)("aria-disabled",be.disabled.toString())("aria-invalid",be.errorState)("aria-multiselectable",be.multiple)("role",be.role)("aria-orientation",be.ariaOrientation),p.\u0275\u0275classProp("mat-chip-list-disabled",be.disabled)("mat-chip-list-invalid",be.errorState)("mat-chip-list-required",be.required))},inputs:{role:"role",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[p.\u0275\u0275ProvidersFeature([{provide:yt,useExisting:ee}]),p.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Se,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(L,be){1&L&&(p.\u0275\u0275projectionDef(),p.\u0275\u0275elementStart(0,"div",0),p.\u0275\u0275projection(1),p.\u0275\u0275elementEnd())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-chip::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.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-standard-chip._mat-animation-noopable{transition:none !important;animation:none !important}.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.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.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}'],encapsulation:2,changeDetection:0}),ee})(),fe=(()=>{class ee{}return ee.\u0275fac=function(L){return new(L||ee)},ee.\u0275mod=p.\u0275\u0275defineNgModule({type:ee}),ee.\u0275inj=p.\u0275\u0275defineInjector({providers:[b.ErrorStateMatcher,{provide:dt,useValue:{separatorKeyCodes:[n.K5]}}],imports:[b.MatCommonModule]}),ee})()},508:(H,o,a)=>{"use strict";a.r(o),a.d(o,{AnimationCurves:()=>j,AnimationDurations:()=>Y,DateAdapter:()=>it,ErrorStateMatcher:()=>nt,MATERIAL_SANITY_CHECKS:()=>Q,MAT_DATE_FORMATS:()=>rt,MAT_DATE_LOCALE:()=>de,MAT_DATE_LOCALE_FACTORY:()=>_e,MAT_NATIVE_DATE_FORMATS:()=>wt,MAT_OPTGROUP:()=>ne,MAT_OPTION_PARENT_COMPONENT:()=>xe,MAT_RIPPLE_GLOBAL_OPTIONS:()=>De,MatCommonModule:()=>V,MatLine:()=>Tt,MatLineModule:()=>It,MatNativeDateModule:()=>at,MatOptgroup:()=>ce,MatOption:()=>xt,MatOptionModule:()=>Zt,MatOptionSelectionChange:()=>He,MatPseudoCheckbox:()=>Fe,MatPseudoCheckboxModule:()=>ge,MatRipple:()=>Le,MatRippleModule:()=>Se,NativeDateAdapter:()=>ft,NativeDateModule:()=>et,RippleRef:()=>ze,RippleRenderer:()=>Ye,ShowOnDirtyErrorStateMatcher:()=>Ke,VERSION:()=>k,_MatOptgroupBase:()=>$,_MatOptionBase:()=>dt,_countGroupLabelsBeforeOption:()=>kt,_getOptionScrollPosition:()=>Bt,defaultRippleAnimationConfig:()=>Ae,mixinColor:()=>tt,mixinDisableRipple:()=>G,mixinDisabled:()=>we,mixinErrorState:()=>B,mixinInitialized:()=>ae,mixinTabIndex:()=>q,setLines:()=>Ct});var n=a(5e3),p=a(226),u=a(9808),r=a(925),c=a(5664),f=a(3191),h=a(8306),m=a(7579),d=a(8675),_=a(1159);const v=["*",[["mat-option"],["ng-container"]]],y=["*","mat-option, ng-container"];function E(Ne,$e){if(1&Ne&&n.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&Ne){const ve=n.\u0275\u0275nextContext();n.\u0275\u0275property("state",ve.selected?"checked":"unchecked")("disabled",ve.disabled)}}function M(Ne,$e){if(1&Ne&&(n.\u0275\u0275elementStart(0,"span",5),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Ne){const ve=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("(",ve.group.label,")")}}const A=["*"],k=new n.Version("14.1.0");let j=(()=>{class Ne{}return Ne.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ne.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ne.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ne.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ne})(),Y=(()=>{class Ne{}return Ne.COMPLEX="375ms",Ne.ENTERING="225ms",Ne.EXITING="195ms",Ne})();const Q=new n.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function U(){return!0}});let V=(()=>{class Ne{constructor(ve,fe,ee){this._sanityChecks=fe,this._document=ee,this._hasDoneGlobalChecks=!1,ve._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ve){return!(0,r.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ve])}}return Ne.\u0275fac=function(ve){return new(ve||Ne)(n.\u0275\u0275inject(c.qm),n.\u0275\u0275inject(Q,8),n.\u0275\u0275inject(u.DOCUMENT))},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[p.vT,p.vT]}),Ne})();function we(Ne){return class extends Ne{constructor(...$e){super(...$e),this._disabled=!1}get disabled(){return this._disabled}set disabled($e){this._disabled=(0,f.Ig)($e)}}}function tt(Ne,$e){return class extends Ne{constructor(...ve){super(...ve),this.defaultColor=$e,this.color=$e}get color(){return this._color}set color(ve){const fe=ve||this.defaultColor;fe!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),fe&&this._elementRef.nativeElement.classList.add(`mat-${fe}`),this._color=fe)}}}function G(Ne){return class extends Ne{constructor(...$e){super(...$e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple($e){this._disableRipple=(0,f.Ig)($e)}}}function q(Ne,$e=0){return class extends Ne{constructor(...ve){super(...ve),this._tabIndex=$e,this.defaultTabIndex=$e}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ve){this._tabIndex=null!=ve?(0,f.su)(ve):this.defaultTabIndex}}}function B(Ne){return class extends Ne{constructor(...$e){super(...$e),this.errorState=!1}updateErrorState(){const $e=this.errorState,oe=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);oe!==$e&&(this.errorState=oe,this.stateChanges.next())}}}function ae(Ne){return class extends Ne{constructor(...$e){super(...$e),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.y(ve=>{this._isInitialized?this._notifySubscriber(ve):this._pendingSubscribers.push(ve)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber($e){$e.next(),$e.complete()}}}const de=new n.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:_e});function _e(){return(0,n.inject)(n.LOCALE_ID)}class it{constructor(){this._localeChanges=new m.x,this.localeChanges=this._localeChanges}getValidDateOrNull($e){return this.isDateInstance($e)&&this.isValid($e)?$e:null}deserialize($e){return null==$e||this.isDateInstance($e)&&this.isValid($e)?$e:this.invalid()}setLocale($e){this.locale=$e,this._localeChanges.next()}compareDate($e,ve){return this.getYear($e)-this.getYear(ve)||this.getMonth($e)-this.getMonth(ve)||this.getDate($e)-this.getDate(ve)}sameDate($e,ve){if($e&&ve){let fe=this.isValid($e),ee=this.isValid(ve);return fe&&ee?!this.compareDate($e,ve):fe==ee}return $e==ve}clampDate($e,ve,fe){return ve&&this.compareDate($e,ve)<0?ve:fe&&this.compareDate($e,fe)>0?fe:$e}}const rt=new n.InjectionToken("mat-date-formats"),yt=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Oe(Ne,$e){const ve=Array(Ne);for(let fe=0;fe<Ne;fe++)ve[fe]=$e(fe);return ve}let ft=(()=>{class Ne extends it{constructor(ve,fe){super(),this.useUtcForDisplay=!1,super.setLocale(ve)}getYear(ve){return ve.getFullYear()}getMonth(ve){return ve.getMonth()}getDate(ve){return ve.getDate()}getDayOfWeek(ve){return ve.getDay()}getMonthNames(ve){const fe=new Intl.DateTimeFormat(this.locale,{month:ve,timeZone:"utc"});return Oe(12,ee=>this._format(fe,new Date(2017,ee,1)))}getDateNames(){const ve=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Oe(31,fe=>this._format(ve,new Date(2017,0,fe+1)))}getDayOfWeekNames(ve){const fe=new Intl.DateTimeFormat(this.locale,{weekday:ve,timeZone:"utc"});return Oe(7,ee=>this._format(fe,new Date(2017,0,ee+1)))}getYearName(ve){const fe=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(fe,ve)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ve){return this.getDate(this._createDateWithOverflow(this.getYear(ve),this.getMonth(ve)+1,0))}clone(ve){return new Date(ve.getTime())}createDate(ve,fe,ee){let oe=this._createDateWithOverflow(ve,fe,ee);return oe.getMonth(),oe}today(){return new Date}parse(ve,fe){return"number"==typeof ve?new Date(ve):ve?new Date(Date.parse(ve)):null}format(ve,fe){if(!this.isValid(ve))throw Error("NativeDateAdapter: Cannot format invalid date.");const ee=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},fe),{timeZone:"utc"}));return this._format(ee,ve)}addCalendarYears(ve,fe){return this.addCalendarMonths(ve,12*fe)}addCalendarMonths(ve,fe){let ee=this._createDateWithOverflow(this.getYear(ve),this.getMonth(ve)+fe,this.getDate(ve));return this.getMonth(ee)!=((this.getMonth(ve)+fe)%12+12)%12&&(ee=this._createDateWithOverflow(this.getYear(ee),this.getMonth(ee),0)),ee}addCalendarDays(ve,fe){return this._createDateWithOverflow(this.getYear(ve),this.getMonth(ve),this.getDate(ve)+fe)}toIso8601(ve){return[ve.getUTCFullYear(),this._2digit(ve.getUTCMonth()+1),this._2digit(ve.getUTCDate())].join("-")}deserialize(ve){if("string"==typeof ve){if(!ve)return null;if(yt.test(ve)){let fe=new Date(ve);if(this.isValid(fe))return fe}}return super.deserialize(ve)}isDateInstance(ve){return ve instanceof Date}isValid(ve){return!isNaN(ve.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ve,fe,ee){const oe=new Date;return oe.setFullYear(ve,fe,ee),oe.setHours(0,0,0,0),oe}_2digit(ve){return("00"+ve).slice(-2)}_format(ve,fe){const ee=new Date;return ee.setUTCFullYear(fe.getFullYear(),fe.getMonth(),fe.getDate()),ee.setUTCHours(fe.getHours(),fe.getMinutes(),fe.getSeconds(),fe.getMilliseconds()),ve.format(ee)}}return Ne.\u0275fac=function(ve){return new(ve||Ne)(n.\u0275\u0275inject(de,8),n.\u0275\u0275inject(r.t4))},Ne.\u0275prov=n.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac}),Ne})();const wt={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let et=(()=>{class Ne{}return Ne.\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:it,useClass:ft}]}),Ne})(),at=(()=>{class Ne{}return Ne.\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:rt,useValue:wt}],imports:[et]}),Ne})(),Ke=(()=>{class Ne{isErrorState(ve,fe){return!!(ve&&ve.invalid&&(ve.dirty||fe&&fe.submitted))}}return Ne.\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275prov=n.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac}),Ne})(),nt=(()=>{class Ne{isErrorState(ve,fe){return!!(ve&&ve.invalid&&(ve.touched||fe&&fe.submitted))}}return Ne.\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275prov=n.\u0275\u0275defineInjectable({token:Ne,factory:Ne.\u0275fac,providedIn:"root"}),Ne})(),Tt=(()=>{class Ne{}return Ne.\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ne})();function Ct(Ne,$e,ve="mat"){Ne.changes.pipe((0,d.O)(Ne)).subscribe(({length:fe})=>{st($e,`${ve}-2-line`,!1),st($e,`${ve}-3-line`,!1),st($e,`${ve}-multi-line`,!1),2===fe||3===fe?st($e,`${ve}-${fe}-line`,!0):fe>3&&st($e,`${ve}-multi-line`,!0)})}function st(Ne,$e,ve){Ne.nativeElement.classList.toggle($e,ve)}let It=(()=>{class Ne{}return Ne.\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[V,V]}),Ne})();class ze{constructor($e,ve,fe,ee=!1){this._renderer=$e,this.element=ve,this.config=fe,this._animationForciblyDisabledThroughCss=ee,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ae={enterDuration:225,exitDuration:150},pe=(0,r.i$)({passive:!0}),We=["mousedown","touchstart"],Ie=["mouseup","mouseleave","touchend","touchcancel"];class Ye{constructor($e,ve,fe,ee){this._target=$e,this._ngZone=ve,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,ee.isBrowser&&(this._containerElement=(0,f.fI)(fe))}fadeInRipple($e,ve,fe={}){const ee=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),oe=Object.assign(Object.assign({},Ae),fe.animation);fe.centered&&($e=ee.left+ee.width/2,ve=ee.top+ee.height/2);const L=fe.radius||function z(Ne,$e,ve){const fe=Math.max(Math.abs(Ne-ve.left),Math.abs(Ne-ve.right)),ee=Math.max(Math.abs($e-ve.top),Math.abs($e-ve.bottom));return Math.sqrt(fe*fe+ee*ee)}($e,ve,ee),be=$e-ee.left,ct=ve-ee.top,ke=oe.enterDuration,pt=document.createElement("div");pt.classList.add("mat-ripple-element"),pt.style.left=be-L+"px",pt.style.top=ct-L+"px",pt.style.height=2*L+"px",pt.style.width=2*L+"px",null!=fe.color&&(pt.style.backgroundColor=fe.color),pt.style.transitionDuration=`${ke}ms`,this._containerElement.appendChild(pt);const se=window.getComputedStyle(pt),qe=se.transitionDuration,gt="none"===se.transitionProperty||"0s"===qe||"0s, 0s"===qe,$t=new ze(this,pt,fe,gt);pt.style.transform="scale3d(1, 1, 1)",$t.state=0,fe.persistent||(this._mostRecentTransientRipple=$t);let on=null;return!gt&&(ke||oe.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const nn=()=>this._finishRippleTransition($t),vn=()=>this._destroyRipple($t);pt.addEventListener("transitionend",nn),pt.addEventListener("transitioncancel",vn),on={onTransitionEnd:nn,onTransitionCancel:vn}}),this._activeRipples.set($t,on),(gt||!ke)&&this._finishRippleTransition($t),$t}fadeOutRipple($e){if(2===$e.state||3===$e.state)return;const ve=$e.element,fe=Object.assign(Object.assign({},Ae),$e.config.animation);ve.style.transitionDuration=`${fe.exitDuration}ms`,ve.style.opacity="0",$e.state=2,($e._animationForciblyDisabledThroughCss||!fe.exitDuration)&&this._finishRippleTransition($e)}fadeOutAll(){this._getActiveRipples().forEach($e=>$e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach($e=>{$e.config.persistent||$e.fadeOut()})}setupTriggerEvents($e){const ve=(0,f.fI)($e);!ve||ve===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ve,this._registerEvents(We))}handleEvent($e){"mousedown"===$e.type?this._onMousedown($e):"touchstart"===$e.type?this._onTouchStart($e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ie),this._pointerUpEventsRegistered=!0)}_finishRippleTransition($e){0===$e.state?this._startFadeOutTransition($e):2===$e.state&&this._destroyRipple($e)}_startFadeOutTransition($e){const ve=$e===this._mostRecentTransientRipple,{persistent:fe}=$e.config;$e.state=1,!fe&&(!ve||!this._isPointerDown)&&$e.fadeOut()}_destroyRipple($e){var ve;const fe=null!==(ve=this._activeRipples.get($e))&&void 0!==ve?ve:null;this._activeRipples.delete($e),this._activeRipples.size||(this._containerRect=null),$e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),$e.state=3,null!==fe&&($e.element.removeEventListener("transitionend",fe.onTransitionEnd),$e.element.removeEventListener("transitioncancel",fe.onTransitionCancel)),$e.element.remove()}_onMousedown($e){const ve=(0,c.X6)($e),fe=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!ve&&!fe&&(this._isPointerDown=!0,this.fadeInRipple($e.clientX,$e.clientY,this._target.rippleConfig))}_onTouchStart($e){if(!this._target.rippleDisabled&&!(0,c.yG)($e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const ve=$e.changedTouches;for(let fe=0;fe<ve.length;fe++)this.fadeInRipple(ve[fe].clientX,ve[fe].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach($e=>{!$e.config.persistent&&(1===$e.state||$e.config.terminateOnPointerUp&&0===$e.state)&&$e.fadeOut()}))}_registerEvents($e){this._ngZone.runOutsideAngular(()=>{$e.forEach(ve=>{this._triggerElement.addEventListener(ve,this,pe)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(We.forEach($e=>{this._triggerElement.removeEventListener($e,this,pe)}),this._pointerUpEventsRegistered&&Ie.forEach($e=>{this._triggerElement.removeEventListener($e,this,pe)}))}}const De=new n.InjectionToken("mat-ripple-global-options");let Le=(()=>{class Ne{constructor(ve,fe,ee,oe,L){this._elementRef=ve,this._animationMode=L,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=oe||{},this._rippleRenderer=new Ye(this,fe,ve,ee)}get disabled(){return this._disabled}set disabled(ve){ve&&this.fadeOutAllNonPersistent(),this._disabled=ve,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ve){this._trigger=ve,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(ve,fe=0,ee){return"number"==typeof ve?this._rippleRenderer.fadeInRipple(ve,fe,Object.assign(Object.assign({},this.rippleConfig),ee)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),ve))}}return Ne.\u0275fac=function(ve){return new(ve||Ne)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(r.t4),n.\u0275\u0275directiveInject(De,8),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ve,fe){2&ve&&n.\u0275\u0275classProp("mat-ripple-unbounded",fe.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Ne})(),Se=(()=>{class Ne{}return Ne.\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[V,V]}),Ne})(),Fe=(()=>{class Ne{constructor(ve){this._animationMode=ve,this.state="unchecked",this.disabled=!1}}return Ne.\u0275fac=function(ve){return new(ve||Ne)(n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},Ne.\u0275cmp=n.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(ve,fe){2&ve&&n.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===fe.state)("mat-pseudo-checkbox-checked","checked"===fe.state)("mat-pseudo-checkbox-disabled",fe.disabled)("_mat-animation-noopable","NoopAnimations"===fe._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(ve,fe){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),Ne})(),ge=(()=>{class Ne{}return Ne.\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[V]}),Ne})();const xe=new n.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),ht=we(class{});let Me=0,$=(()=>{class Ne extends ht{constructor(ve){var fe;super(),this._labelId="mat-optgroup-label-"+Me++,this._inert=null!==(fe=null==ve?void 0:ve.inertGroups)&&void 0!==fe&&fe}}return Ne.\u0275fac=function(ve){return new(ve||Ne)(n.\u0275\u0275directiveInject(xe,8))},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,inputs:{label:"label"},features:[n.\u0275\u0275InheritDefinitionFeature]}),Ne})();const ne=new n.InjectionToken("MatOptgroup");let ce=(()=>{class Ne extends ${}return Ne.\u0275fac=function(){let $e;return function(fe){return($e||($e=n.\u0275\u0275getInheritedFactory(Ne)))(fe||Ne)}}(),Ne.\u0275cmp=n.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(ve,fe){2&ve&&(n.\u0275\u0275attribute("role",fe._inert?null:"group")("aria-disabled",fe._inert?null:fe.disabled.toString())("aria-labelledby",fe._inert?null:fe._labelId),n.\u0275\u0275classProp("mat-optgroup-disabled",fe.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[n.\u0275\u0275ProvidersFeature([{provide:ne,useExisting:Ne}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:y,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(ve,fe){1&ve&&(n.\u0275\u0275projectionDef(v),n.\u0275\u0275elementStart(0,"span",0),n.\u0275\u0275text(1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275projection(3,1)),2&ve&&(n.\u0275\u0275property("id",fe._labelId),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("",fe.label," "))},styles:[".mat-optgroup-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup-label[disabled]{cursor:default}[dir=rtl] .mat-optgroup-label{text-align:right}.mat-optgroup-label .mat-icon{margin-right:16px;vertical-align:middle}.mat-optgroup-label .mat-icon svg{vertical-align:top}[dir=rtl] .mat-optgroup-label .mat-icon{margin-left:16px;margin-right:0}"],encapsulation:2,changeDetection:0}),Ne})(),Te=0;class He{constructor($e,ve=!1){this.source=$e,this.isUserInput=ve}}let dt=(()=>{class Ne{constructor(ve,fe,ee,oe){this._element=ve,this._changeDetectorRef=fe,this._parent=ee,this.group=oe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Te++,this.onSelectionChange=new n.EventEmitter,this._stateChanges=new m.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(ve){this._disabled=(0,f.Ig)(ve)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(ve,fe){const ee=this._getHostElement();"function"==typeof ee.focus&&ee.focus(fe)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ve){(ve.keyCode===_.K5||ve.keyCode===_.L_)&&!(0,_.Vb)(ve)&&(this._selectViaInteraction(),ve.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const ve=this.viewValue;ve!==this._mostRecentViewValue&&(this._mostRecentViewValue=ve,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ve=!1){this.onSelectionChange.emit(new He(this,ve))}}return Ne.\u0275fac=function(ve){n.\u0275\u0275invalidFactory()},Ne.\u0275dir=n.\u0275\u0275defineDirective({type:Ne,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ne})(),xt=(()=>{class Ne extends dt{constructor(ve,fe,ee,oe){super(ve,fe,ee,oe)}}return Ne.\u0275fac=function(ve){return new(ve||Ne)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(xe,8),n.\u0275\u0275directiveInject(ne,8))},Ne.\u0275cmp=n.\u0275\u0275defineComponent({type:Ne,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(ve,fe){1&ve&&n.\u0275\u0275listener("click",function(){return fe._selectViaInteraction()})("keydown",function(oe){return fe._handleKeydown(oe)}),2&ve&&(n.\u0275\u0275hostProperty("id",fe.id),n.\u0275\u0275attribute("tabindex",fe._getTabIndex())("aria-selected",fe._getAriaSelected())("aria-disabled",fe.disabled.toString()),n.\u0275\u0275classProp("mat-selected",fe.selected)("mat-option-multiple",fe.multiple)("mat-active",fe.active)("mat-option-disabled",fe.disabled))},exportAs:["matOption"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:A,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(ve,fe){1&ve&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275template(0,E,1,2,"mat-pseudo-checkbox",0),n.\u0275\u0275elementStart(1,"span",1),n.\u0275\u0275projection(2),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(3,M,2,1,"span",2),n.\u0275\u0275element(4,"div",3)),2&ve&&(n.\u0275\u0275property("ngIf",fe.multiple),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",fe.group&&fe.group._inert),n.\u0275\u0275advance(1),n.\u0275\u0275property("matRippleTrigger",fe._getHostElement())("matRippleDisabled",fe.disabled||fe.disableRipple))},dependencies:[Le,u.NgIf,Fe],styles:['.mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.mat-option.mat-active::before{content:""}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .cdk-high-contrast-active .mat-option.mat-selected:not(.mat-option-multiple)::after{right:auto;left:16px}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}'],encapsulation:2,changeDetection:0}),Ne})();function kt(Ne,$e,ve){if(ve.length){let fe=$e.toArray(),ee=ve.toArray(),oe=0;for(let L=0;L<Ne+1;L++)fe[L].group&&fe[L].group===ee[oe]&&oe++;return oe}return 0}function Bt(Ne,$e,ve,fe){return Ne<ve?Ne:Ne+$e>ve+fe?Math.max(0,Ne-fe+$e):ve}let Zt=(()=>{class Ne{}return Ne.\u0275fac=function(ve){return new(ve||Ne)},Ne.\u0275mod=n.\u0275\u0275defineNgModule({type:Ne}),Ne.\u0275inj=n.\u0275\u0275defineInjector({imports:[Se,u.CommonModule,V,ge]}),Ne})()},9694:(H,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_DIALOG_DATA:()=>Ke,MAT_DIALOG_DEFAULT_OPTIONS:()=>nt,MAT_DIALOG_SCROLL_STRATEGY:()=>Tt,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>Ct,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>It,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>st,MatDialog:()=>je,MatDialogActions:()=>z,MatDialogClose:()=>We,MatDialogConfig:()=>Oe,MatDialogContainer:()=>wt,MatDialogContent:()=>Ye,MatDialogModule:()=>Le,MatDialogRef:()=>et,MatDialogTitle:()=>Ie,_MatDialogBase:()=>Ae,_MatDialogContainerBase:()=>ft,_closeDialogVia:()=>at,matDialogAnimations:()=>yt});var n=a(925),p=a(7429),b=a(9808),u=a(5e3),r=a(5664),c=a(1314),f=a(1159),h=a(7579),m=a(8306),d=a(8421);function _(Se){return new m.y(Fe=>{(0,d.Xf)(Se()).subscribe(Fe)})}var v=a(9646),y=a(226),E=a(8675);function M(Se,Fe){}class A{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let j=(()=>{class Se extends p.en{constructor(ge,xe,ht,Me,$,ne,ce,Te){super(),this._elementRef=ge,this._focusTrapFactory=xe,this._config=Me,this._interactivityChecker=$,this._ngZone=ne,this._overlayRef=ce,this._focusMonitor=Te,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=He=>{this._portalOutlet.hasAttached();const dt=this._portalOutlet.attachDomPortal(He);return this._contentAttached(),dt},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=ht}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(ge){this._portalOutlet.hasAttached();const xe=this._portalOutlet.attachComponentPortal(ge);return this._contentAttached(),xe}attachTemplatePortal(ge){this._portalOutlet.hasAttached();const xe=this._portalOutlet.attachTemplatePortal(ge);return this._contentAttached(),xe}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(ge,xe){this._interactivityChecker.isFocusable(ge)||(ge.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const ht=()=>{ge.removeEventListener("blur",ht),ge.removeEventListener("mousedown",ht),ge.removeAttribute("tabindex")};ge.addEventListener("blur",ht),ge.addEventListener("mousedown",ht)})),ge.focus(xe)}_focusByCssSelector(ge,xe){let ht=this._elementRef.nativeElement.querySelector(ge);ht&&this._forceFocus(ht,xe)}_trapFocus(){const ge=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||ge.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(xe=>{xe||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const ge=this._config.restoreFocus;let xe=null;if("string"==typeof ge?xe=this._document.querySelector(ge):"boolean"==typeof ge?xe=ge?this._elementFocusedBeforeDialogWasOpened:null:ge&&(xe=ge),this._config.restoreFocus&&xe&&"function"==typeof xe.focus){const ht=(0,n.ht)(),Me=this._elementRef.nativeElement;(!ht||ht===this._document.body||ht===Me||Me.contains(ht))&&(this._focusMonitor?(this._focusMonitor.focusVia(xe,this._closeInteractionType),this._closeInteractionType=null):xe.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const ge=this._elementRef.nativeElement,xe=(0,n.ht)();return ge===xe||ge.contains(xe)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,n.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return Se.\u0275fac=function(ge){return new(ge||Se)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(r.qV),u.\u0275\u0275directiveInject(b.DOCUMENT,8),u.\u0275\u0275directiveInject(A),u.\u0275\u0275directiveInject(r.ic),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(c.Iu),u.\u0275\u0275directiveInject(r.tE))},Se.\u0275cmp=u.\u0275\u0275defineComponent({type:Se,selectors:[["cdk-dialog-container"]],viewQuery:function(ge,xe){if(1&ge&&u.\u0275\u0275viewQuery(p.Pl,7),2&ge){let ht;u.\u0275\u0275queryRefresh(ht=u.\u0275\u0275loadQuery())&&(xe._portalOutlet=ht.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(ge,xe){2&ge&&u.\u0275\u0275attribute("id",xe._config.id||null)("role",xe._config.role)("aria-modal",xe._config.ariaModal)("aria-labelledby",xe._config.ariaLabel?null:xe._ariaLabelledBy)("aria-label",xe._config.ariaLabel)("aria-describedby",xe._config.ariaDescribedBy||null)},features:[u.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ge,xe){1&ge&&u.\u0275\u0275template(0,M,0,0,"ng-template",0)},dependencies:[p.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),Se})();class Y{constructor(Fe,ge){this.overlayRef=Fe,this.config=ge,this.closed=new h.x,this.disableClose=ge.disableClose,this.backdropClick=Fe.backdropClick(),this.keydownEvents=Fe.keydownEvents(),this.outsidePointerEvents=Fe.outsidePointerEvents(),this.id=ge.id,this.keydownEvents.subscribe(xe=>{xe.keyCode===f.hY&&!this.disableClose&&!(0,f.Vb)(xe)&&(xe.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(Fe,ge){if(this.containerInstance){const xe=this.closed;this.containerInstance._closeInteractionType=(null==ge?void 0:ge.focusOrigin)||"program",this.overlayRef.dispose(),xe.next(Fe),xe.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(Fe="",ge=""){return this.overlayRef.updateSize({width:Fe,height:ge}),this}addPanelClass(Fe){return this.overlayRef.addPanelClass(Fe),this}removePanelClass(Fe){return this.overlayRef.removePanelClass(Fe),this}}const U=new u.InjectionToken("DialogScrollStrategy"),Q=new u.InjectionToken("DialogData"),V=new u.InjectionToken("DefaultDialogConfig"),re={provide:U,deps:[c.aV],useFactory:function X(Se){return()=>Se.scrollStrategies.block()}};let me=0,we=(()=>{class Se{constructor(ge,xe,ht,Me,$,ne){this._overlay=ge,this._injector=xe,this._defaultOptions=ht,this._parentDialog=Me,this._overlayContainer=$,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new h.x,this._afterOpenedAtThisLevel=new h.x,this._ariaHiddenElements=new Map,this.afterAllClosed=_(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,E.O)(void 0))),this._scrollStrategy=ne}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(ge,xe){const ht=this._defaultOptions||new A;(xe=Object.assign(Object.assign({},ht),xe)).id=xe.id||"cdk-dialog-"+me++,xe.id&&this.getDialogById(xe.id);const Me=this._getOverlayConfig(xe),$=this._overlay.create(Me),ne=new Y($,xe),ce=this._attachContainer($,ne,xe);return ne.containerInstance=ce,this._attachDialogContent(ge,ne,ce,xe),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(ne),ne.closed.subscribe(()=>this._removeOpenDialog(ne,!0)),this.afterOpened.next(ne),ne}closeAll(){tt(this.openDialogs,ge=>ge.close())}getDialogById(ge){return this.openDialogs.find(xe=>xe.id===ge)}ngOnDestroy(){tt(this._openDialogsAtThisLevel,ge=>{!1===ge.config.closeOnDestroy&&this._removeOpenDialog(ge,!1)}),tt(this._openDialogsAtThisLevel,ge=>ge.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(ge){const xe=new c.X_({positionStrategy:ge.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:ge.scrollStrategy||this._scrollStrategy(),panelClass:ge.panelClass,hasBackdrop:ge.hasBackdrop,direction:ge.direction,minWidth:ge.minWidth,minHeight:ge.minHeight,maxWidth:ge.maxWidth,maxHeight:ge.maxHeight,width:ge.width,height:ge.height,disposeOnNavigation:ge.closeOnNavigation});return ge.backdropClass&&(xe.backdropClass=ge.backdropClass),xe}_attachContainer(ge,xe,ht){var Me,$;const ne=null!==(Me=ht.injector)&&void 0!==Me?Me:null===($=ht.viewContainerRef)||void 0===$?void 0:$.injector,ce=[{provide:A,useValue:ht},{provide:Y,useValue:xe},{provide:c.Iu,useValue:ge}];let Te;ht.container?"function"==typeof ht.container?Te=ht.container:(Te=ht.container.type,ce.push(...ht.container.providers(ht))):Te=j;const He=new p.C5(Te,ht.viewContainerRef,u.Injector.create({parent:ne||this._injector,providers:ce}),ht.componentFactoryResolver);return ge.attach(He).instance}_attachDialogContent(ge,xe,ht,Me){const $=this._createInjector(Me,xe,ht);if(ge instanceof u.TemplateRef){let ne={$implicit:Me.data,dialogRef:xe};Me.templateContext&&(ne=Object.assign(Object.assign({},ne),"function"==typeof Me.templateContext?Me.templateContext():Me.templateContext)),ht.attachTemplatePortal(new p.UE(ge,null,ne,$))}else{const ne=ht.attachComponentPortal(new p.C5(ge,Me.viewContainerRef,$,Me.componentFactoryResolver));xe.componentInstance=ne.instance}}_createInjector(ge,xe,ht){const Me=ge&&ge.viewContainerRef&&ge.viewContainerRef.injector,$=[{provide:Q,useValue:ge.data},{provide:Y,useValue:xe}];return ge.providers&&("function"==typeof ge.providers?$.push(...ge.providers(xe,ge,ht)):$.push(...ge.providers)),ge.direction&&(!Me||!Me.get(y.Is,null,u.InjectFlags.Optional))&&$.push({provide:y.Is,useValue:{value:ge.direction,change:(0,v.of)()}}),u.Injector.create({parent:Me||this._injector,providers:$})}_removeOpenDialog(ge,xe){const ht=this.openDialogs.indexOf(ge);ht>-1&&(this.openDialogs.splice(ht,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Me,$)=>{Me?$.setAttribute("aria-hidden",Me):$.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),xe&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const ge=this._overlayContainer.getContainerElement();if(ge.parentElement){const xe=ge.parentElement.children;for(let ht=xe.length-1;ht>-1;ht--){const Me=xe[ht];Me!==ge&&"SCRIPT"!==Me.nodeName&&"STYLE"!==Me.nodeName&&!Me.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Me,Me.getAttribute("aria-hidden")),Me.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const ge=this._parentDialog;return ge?ge._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return Se.\u0275fac=function(ge){return new(ge||Se)(u.\u0275\u0275inject(c.aV),u.\u0275\u0275inject(u.Injector),u.\u0275\u0275inject(V,8),u.\u0275\u0275inject(Se,12),u.\u0275\u0275inject(c.Xj),u.\u0275\u0275inject(U))},Se.\u0275prov=u.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac}),Se})();function tt(Se,Fe){let ge=Se.length;for(;ge--;)Fe(Se[ge])}let G=(()=>{class Se{}return Se.\u0275fac=function(ge){return new(ge||Se)},Se.\u0275mod=u.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=u.\u0275\u0275defineInjector({providers:[we,re],imports:[c.U8,p.eL,r.rt,p.eL]}),Se})();var q=a(508),B=a(6451),ae=a(9300),de=a(5698),_e=a(1777);function it(Se,Fe){}const rt={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},yt={dialogContainer:(0,_e.X$)("dialogContainer",[(0,_e.SB)("void, exit",(0,_e.oB)({opacity:0,transform:"scale(0.7)"})),(0,_e.SB)("enter",(0,_e.oB)({transform:"none"})),(0,_e.eR)("* => enter",(0,_e.ru)([(0,_e.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,_e.oB)({transform:"none",opacity:1})),(0,_e.IO)("@*",(0,_e.pV)(),{optional:!0})]),rt),(0,_e.eR)("* => void, * => exit",(0,_e.ru)([(0,_e.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,_e.oB)({opacity:0})),(0,_e.IO)("@*",(0,_e.pV)(),{optional:!0})]),rt)])};class Oe{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=rt.params.enterAnimationDuration,this.exitAnimationDuration=rt.params.exitAnimationDuration}}let ft=(()=>{class Se extends j{constructor(ge,xe,ht,Me,$,ne,ce,Te){super(ge,xe,ht,Me,$,ne,ce,Te),this._animationStateChanged=new u.EventEmitter}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(ge){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:ge})}}return Se.\u0275fac=function(ge){return new(ge||Se)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(r.qV),u.\u0275\u0275directiveInject(b.DOCUMENT,8),u.\u0275\u0275directiveInject(Oe),u.\u0275\u0275directiveInject(r.ic),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(c.Iu),u.\u0275\u0275directiveInject(r.tE))},Se.\u0275cmp=u.\u0275\u0275defineComponent({type:Se,selectors:[["ng-component"]],features:[u.\u0275\u0275InheritDefinitionFeature],decls:0,vars:0,template:function(ge,xe){},encapsulation:2}),Se})(),wt=(()=>{class Se extends ft{constructor(ge,xe,ht,Me,$,ne,ce,Te,He){super(ge,xe,ht,Me,$,ne,ce,He),this._changeDetectorRef=Te,this._state="enter"}_onAnimationDone({toState:ge,totalTime:xe}){"enter"===ge?this._openAnimationDone(xe):"exit"===ge&&this._animationStateChanged.next({state:"closed",totalTime:xe})}_onAnimationStart({toState:ge,totalTime:xe}){"enter"===ge?this._animationStateChanged.next({state:"opening",totalTime:xe}):("exit"===ge||"void"===ge)&&this._animationStateChanged.next({state:"closing",totalTime:xe})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||rt.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||rt.params.exitAnimationDuration}}}}return Se.\u0275fac=function(ge){return new(ge||Se)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(r.qV),u.\u0275\u0275directiveInject(b.DOCUMENT,8),u.\u0275\u0275directiveInject(Oe),u.\u0275\u0275directiveInject(r.ic),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(c.Iu),u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(r.tE))},Se.\u0275cmp=u.\u0275\u0275defineComponent({type:Se,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(ge,xe){1&ge&&u.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(Me){return xe._onAnimationStart(Me)})("@dialogContainer.done",function(Me){return xe._onAnimationDone(Me)}),2&ge&&(u.\u0275\u0275hostProperty("id",xe._config.id),u.\u0275\u0275attribute("aria-modal",xe._config.ariaModal)("role",xe._config.role)("aria-labelledby",xe._config.ariaLabel?null:xe._ariaLabelledBy)("aria-label",xe._config.ariaLabel)("aria-describedby",xe._config.ariaDescribedBy||null),u.\u0275\u0275syntheticHostProperty("@dialogContainer",xe._getAnimationState()))},features:[u.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(ge,xe){1&ge&&u.\u0275\u0275template(0,it,0,0,"ng-template",0)},dependencies:[p.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.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.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}"],encapsulation:2,data:{animation:[yt.dialogContainer]}}),Se})();class et{constructor(Fe,ge,xe){this._ref=Fe,this._containerInstance=xe,this._afterOpened=new h.x,this._beforeClosed=new h.x,this._state=0,this.disableClose=ge.disableClose,this.id=Fe.id,xe._animationStateChanged.pipe((0,ae.h)(ht=>"opened"===ht.state),(0,de.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),xe._animationStateChanged.pipe((0,ae.h)(ht=>"closed"===ht.state),(0,de.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Fe.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,B.T)(this.backdropClick(),this.keydownEvents().pipe((0,ae.h)(ht=>ht.keyCode===f.hY&&!this.disableClose&&!(0,f.Vb)(ht)))).subscribe(ht=>{this.disableClose||(ht.preventDefault(),at(this,"keydown"===ht.type?"keyboard":"mouse"))})}close(Fe){this._result=Fe,this._containerInstance._animationStateChanged.pipe((0,ae.h)(ge=>"closing"===ge.state),(0,de.q)(1)).subscribe(ge=>{this._beforeClosed.next(Fe),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),ge.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(Fe){let ge=this._ref.config.positionStrategy;return Fe&&(Fe.left||Fe.right)?Fe.left?ge.left(Fe.left):ge.right(Fe.right):ge.centerHorizontally(),Fe&&(Fe.top||Fe.bottom)?Fe.top?ge.top(Fe.top):ge.bottom(Fe.bottom):ge.centerVertically(),this._ref.updatePosition(),this}updateSize(Fe="",ge=""){return this._ref.updateSize(Fe,ge),this}addPanelClass(Fe){return this._ref.addPanelClass(Fe),this}removePanelClass(Fe){return this._ref.removePanelClass(Fe),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function at(Se,Fe,ge){return Se._closeInteractionType=Fe,Se.close(ge)}const Ke=new u.InjectionToken("MatDialogData"),nt=new u.InjectionToken("mat-dialog-default-options"),Tt=new u.InjectionToken("mat-dialog-scroll-strategy");function Ct(Se){return()=>Se.scrollStrategies.block()}function st(Se){return()=>Se.scrollStrategies.block()}const It={provide:Tt,deps:[c.aV],useFactory:st};let ze=0,Ae=(()=>{class Se{constructor(ge,xe,ht,Me,$,ne,ce,Te,He,dt){this._overlay=ge,this._defaultOptions=ht,this._parentDialog=Me,this._dialogRefConstructor=ce,this._dialogContainerType=Te,this._dialogDataToken=He,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new h.x,this._afterOpenedAtThisLevel=new h.x,this._idPrefix="mat-dialog-",this.afterAllClosed=_(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,E.O)(void 0))),this._scrollStrategy=ne,this._dialog=xe.get(we)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const ge=this._parentDialog;return ge?ge._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(ge,xe){let ht;(xe=Object.assign(Object.assign({},this._defaultOptions||new Oe),xe)).id=xe.id||`${this._idPrefix}${ze++}`,xe.scrollStrategy=xe.scrollStrategy||this._scrollStrategy();const Me=this._dialog.open(ge,Object.assign(Object.assign({},xe),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Oe,useValue:xe},{provide:A,useValue:xe}]},templateContext:()=>({dialogRef:ht}),providers:($,ne,ce)=>(ht=new this._dialogRefConstructor($,xe,ce),ht.updatePosition(null==xe?void 0:xe.position),[{provide:this._dialogContainerType,useValue:ce},{provide:this._dialogDataToken,useValue:ne.data},{provide:this._dialogRefConstructor,useValue:ht}])}));return ht.componentInstance=Me.componentInstance,this.openDialogs.push(ht),this.afterOpened.next(ht),ht.afterClosed().subscribe(()=>{const $=this.openDialogs.indexOf(ht);$>-1&&(this.openDialogs.splice($,1),this.openDialogs.length||this._getAfterAllClosed().next())}),ht}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(ge){return this.openDialogs.find(xe=>xe.id===ge)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(ge){let xe=ge.length;for(;xe--;)ge[xe].close()}}return Se.\u0275fac=function(ge){u.\u0275\u0275invalidFactory()},Se.\u0275prov=u.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac}),Se})(),je=(()=>{class Se extends Ae{constructor(ge,xe,ht,Me,$,ne,ce,Te){super(ge,xe,Me,ne,ce,$,et,wt,Ke,Te)}}return Se.\u0275fac=function(ge){return new(ge||Se)(u.\u0275\u0275inject(c.aV),u.\u0275\u0275inject(u.Injector),u.\u0275\u0275inject(b.Location,8),u.\u0275\u0275inject(nt,8),u.\u0275\u0275inject(Tt),u.\u0275\u0275inject(Se,12),u.\u0275\u0275inject(c.Xj),u.\u0275\u0275inject(u.ANIMATION_MODULE_TYPE,8))},Se.\u0275prov=u.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac}),Se})(),pe=0,We=(()=>{class Se{constructor(ge,xe,ht){this.dialogRef=ge,this._elementRef=xe,this._dialog=ht,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=De(this._elementRef,this._dialog.openDialogs))}ngOnChanges(ge){const xe=ge._matDialogClose||ge._matDialogCloseResult;xe&&(this.dialogResult=xe.currentValue)}_onButtonClick(ge){at(this.dialogRef,0===ge.screenX&&0===ge.screenY?"keyboard":"mouse",this.dialogResult)}}return Se.\u0275fac=function(ge){return new(ge||Se)(u.\u0275\u0275directiveInject(et,8),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(je))},Se.\u0275dir=u.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(ge,xe){1&ge&&u.\u0275\u0275listener("click",function(Me){return xe._onButtonClick(Me)}),2&ge&&u.\u0275\u0275attribute("aria-label",xe.ariaLabel||null)("type",xe.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[u.\u0275\u0275NgOnChangesFeature]}),Se})(),Ie=(()=>{class Se{constructor(ge,xe,ht){this._dialogRef=ge,this._elementRef=xe,this._dialog=ht,this.id="mat-dialog-title-"+pe++}ngOnInit(){this._dialogRef||(this._dialogRef=De(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const ge=this._dialogRef._containerInstance;ge&&!ge._ariaLabelledBy&&(ge._ariaLabelledBy=this.id)})}}return Se.\u0275fac=function(ge){return new(ge||Se)(u.\u0275\u0275directiveInject(et,8),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(je))},Se.\u0275dir=u.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(ge,xe){2&ge&&u.\u0275\u0275hostProperty("id",xe.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Se})(),Ye=(()=>{class Se{}return Se.\u0275fac=function(ge){return new(ge||Se)},Se.\u0275dir=u.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),Se})(),z=(()=>{class Se{constructor(){this.align="start"}}return Se.\u0275fac=function(ge){return new(ge||Se)},Se.\u0275dir=u.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"],hostVars:4,hostBindings:function(ge,xe){2&ge&&u.\u0275\u0275classProp("mat-dialog-actions-align-center","center"===xe.align)("mat-dialog-actions-align-end","end"===xe.align)},inputs:{align:"align"}}),Se})();function De(Se,Fe){let ge=Se.nativeElement.parentElement;for(;ge&&!ge.classList.contains("mat-dialog-container");)ge=ge.parentElement;return ge?Fe.find(xe=>xe.id===ge.id):null}let Le=(()=>{class Se{}return Se.\u0275fac=function(ge){return new(ge||Se)},Se.\u0275mod=u.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=u.\u0275\u0275defineInjector({providers:[je,It],imports:[G,c.U8,p.eL,q.MatCommonModule,q.MatCommonModule]}),Se})()},3293:(H,o,a)=>{"use strict";a.r(o),a.d(o,{ICON_REGISTRY_PROVIDER:()=>_e,ICON_REGISTRY_PROVIDER_FACTORY:()=>de,MAT_ICON_DEFAULT_OPTIONS:()=>ft,MAT_ICON_LOCATION:()=>wt,MAT_ICON_LOCATION_FACTORY:()=>et,MatIcon:()=>Tt,MatIconModule:()=>Ct,MatIconRegistry:()=>ae,getMatIconFailedToSanitizeLiteralError:()=>q,getMatIconFailedToSanitizeUrlError:()=>G,getMatIconNameNotFoundError:()=>we,getMatIconNoHttpProviderError:()=>tt});var n=a(5e3),p=a(508),b=a(3191),u=a(9808),r=a(8306),c=a(576),h=a(9646),m=a(4128),d=a(727),_=a(8421),v=a(5403),y=a(4482);function E(st){return(0,y.e)((It,ze)=>{let pe,Ae=null,je=!1;Ae=It.subscribe((0,v.x)(ze,void 0,void 0,We=>{pe=(0,_.Xf)(st(We,E(st)(It))),Ae?(Ae.unsubscribe(),Ae=null,pe.subscribe(ze)):je=!0})),je&&(Ae.unsubscribe(),Ae=null,pe.subscribe(ze))})}var A=a(8505),k=a(4004),j=a(3099),Y=a(5698),U=a(6529),Q=a(2313);const V=["*"];let X;function me(st){var It;return(null===(It=function re(){if(void 0===X&&(X=null,"undefined"!=typeof window)){const st=window;void 0!==st.trustedTypes&&(X=st.trustedTypes.createPolicy("angular#components",{createHTML:It=>It}))}return X}())||void 0===It?void 0:It.createHTML(st))||st}function we(st){return Error(`Unable to find icon with the name "${st}"`)}function tt(){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 G(st){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${st}".`)}function q(st){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${st}".`)}class B{constructor(It,ze,Ae){this.url=It,this.svgText=ze,this.options=Ae}}let ae=(()=>{class st{constructor(ze,Ae,je,pe){this._httpClient=ze,this._sanitizer=Ae,this._errorHandler=pe,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","mat-ligature-font"],this._document=je}addSvgIcon(ze,Ae,je){return this.addSvgIconInNamespace("",ze,Ae,je)}addSvgIconLiteral(ze,Ae,je){return this.addSvgIconLiteralInNamespace("",ze,Ae,je)}addSvgIconInNamespace(ze,Ae,je,pe){return this._addSvgIconConfig(ze,Ae,new B(je,null,pe))}addSvgIconResolver(ze){return this._resolvers.push(ze),this}addSvgIconLiteralInNamespace(ze,Ae,je,pe){const We=this._sanitizer.sanitize(n.SecurityContext.HTML,je);if(!We)throw q(je);const Ie=me(We);return this._addSvgIconConfig(ze,Ae,new B("",Ie,pe))}addSvgIconSet(ze,Ae){return this.addSvgIconSetInNamespace("",ze,Ae)}addSvgIconSetLiteral(ze,Ae){return this.addSvgIconSetLiteralInNamespace("",ze,Ae)}addSvgIconSetInNamespace(ze,Ae,je){return this._addSvgIconSetConfig(ze,new B(Ae,null,je))}addSvgIconSetLiteralInNamespace(ze,Ae,je){const pe=this._sanitizer.sanitize(n.SecurityContext.HTML,Ae);if(!pe)throw q(Ae);const We=me(pe);return this._addSvgIconSetConfig(ze,new B("",We,je))}registerFontClassAlias(ze,Ae=ze){return this._fontCssClassesByAlias.set(ze,Ae),this}classNameForFontAlias(ze){return this._fontCssClassesByAlias.get(ze)||ze}setDefaultFontSetClass(...ze){return this._defaultFontSetClass=ze,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ze){const Ae=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,ze);if(!Ae)throw G(ze);const je=this._cachedIconsByUrl.get(Ae);return je?(0,h.of)(it(je)):this._loadSvgIconFromConfig(new B(ze,null)).pipe((0,A.b)(pe=>this._cachedIconsByUrl.set(Ae,pe)),(0,k.U)(pe=>it(pe)))}getNamedSvgIcon(ze,Ae=""){const je=rt(Ae,ze);let pe=this._svgIconConfigs.get(je);if(pe)return this._getSvgFromConfig(pe);if(pe=this._getIconConfigFromResolvers(Ae,ze),pe)return this._svgIconConfigs.set(je,pe),this._getSvgFromConfig(pe);const We=this._iconSetConfigs.get(Ae);return We?this._getSvgFromIconSetConfigs(ze,We):function f(st,It){const ze=(0,c.m)(st)?st:()=>st,Ae=je=>je.error(ze());return new r.y(It?je=>It.schedule(Ae,0,je):Ae)}(we(je))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ze){return ze.svgText?(0,h.of)(it(this._svgElementFromConfig(ze))):this._loadSvgIconFromConfig(ze).pipe((0,k.U)(Ae=>it(Ae)))}_getSvgFromIconSetConfigs(ze,Ae){const je=this._extractIconWithNameFromAnySet(ze,Ae);if(je)return(0,h.of)(je);const pe=Ae.filter(We=>!We.svgText).map(We=>this._loadSvgIconSetFromConfig(We).pipe(E(Ie=>{const z=`Loading icon set URL: ${this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,We.url)} failed: ${Ie.message}`;return this._errorHandler.handleError(new Error(z)),(0,h.of)(null)})));return(0,m.D)(pe).pipe((0,k.U)(()=>{const We=this._extractIconWithNameFromAnySet(ze,Ae);if(!We)throw we(ze);return We}))}_extractIconWithNameFromAnySet(ze,Ae){for(let je=Ae.length-1;je>=0;je--){const pe=Ae[je];if(pe.svgText&&pe.svgText.toString().indexOf(ze)>-1){const We=this._svgElementFromConfig(pe),Ie=this._extractSvgIconFromSet(We,ze,pe.options);if(Ie)return Ie}}return null}_loadSvgIconFromConfig(ze){return this._fetchIcon(ze).pipe((0,A.b)(Ae=>ze.svgText=Ae),(0,k.U)(()=>this._svgElementFromConfig(ze)))}_loadSvgIconSetFromConfig(ze){return ze.svgText?(0,h.of)(null):this._fetchIcon(ze).pipe((0,A.b)(Ae=>ze.svgText=Ae))}_extractSvgIconFromSet(ze,Ae,je){const pe=ze.querySelector(`[id="${Ae}"]`);if(!pe)return null;const We=pe.cloneNode(!0);if(We.removeAttribute("id"),"svg"===We.nodeName.toLowerCase())return this._setSvgAttributes(We,je);if("symbol"===We.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(We),je);const Ie=this._svgElementFromString(me("<svg></svg>"));return Ie.appendChild(We),this._setSvgAttributes(Ie,je)}_svgElementFromString(ze){const Ae=this._document.createElement("DIV");Ae.innerHTML=ze;const je=Ae.querySelector("svg");if(!je)throw Error("<svg> tag not found");return je}_toSvgElement(ze){const Ae=this._svgElementFromString(me("<svg></svg>")),je=ze.attributes;for(let pe=0;pe<je.length;pe++){const{name:We,value:Ie}=je[pe];"id"!==We&&Ae.setAttribute(We,Ie)}for(let pe=0;pe<ze.childNodes.length;pe++)ze.childNodes[pe].nodeType===this._document.ELEMENT_NODE&&Ae.appendChild(ze.childNodes[pe].cloneNode(!0));return Ae}_setSvgAttributes(ze,Ae){return ze.setAttribute("fit",""),ze.setAttribute("height","100%"),ze.setAttribute("width","100%"),ze.setAttribute("preserveAspectRatio","xMidYMid meet"),ze.setAttribute("focusable","false"),Ae&&Ae.viewBox&&ze.setAttribute("viewBox",Ae.viewBox),ze}_fetchIcon(ze){var Ae;const{url:je,options:pe}=ze,We=null!==(Ae=null==pe?void 0:pe.withCredentials)&&void 0!==Ae&&Ae;if(!this._httpClient)throw tt();if(null==je)throw Error(`Cannot fetch icon from URL "${je}".`);const Ie=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,je);if(!Ie)throw G(je);const Ye=this._inProgressUrlFetches.get(Ie);if(Ye)return Ye;const z=this._httpClient.get(Ie,{responseType:"text",withCredentials:We}).pipe((0,k.U)(De=>me(De)),function M(st){return(0,y.e)((It,ze)=>{try{It.subscribe(ze)}finally{ze.add(st)}})}(()=>this._inProgressUrlFetches.delete(Ie)),(0,j.B)());return this._inProgressUrlFetches.set(Ie,z),z}_addSvgIconConfig(ze,Ae,je){return this._svgIconConfigs.set(rt(ze,Ae),je),this}_addSvgIconSetConfig(ze,Ae){const je=this._iconSetConfigs.get(ze);return je?je.push(Ae):this._iconSetConfigs.set(ze,[Ae]),this}_svgElementFromConfig(ze){if(!ze.svgElement){const Ae=this._svgElementFromString(ze.svgText);this._setSvgAttributes(Ae,ze.options),ze.svgElement=Ae}return ze.svgElement}_getIconConfigFromResolvers(ze,Ae){for(let je=0;je<this._resolvers.length;je++){const pe=this._resolvers[je](Ae,ze);if(pe)return yt(pe)?new B(pe.url,null,pe.options):new B(pe,null)}}}return st.\u0275fac=function(ze){return new(ze||st)(n.\u0275\u0275inject(U.HttpClient,8),n.\u0275\u0275inject(Q.DomSanitizer),n.\u0275\u0275inject(u.DOCUMENT,8),n.\u0275\u0275inject(n.ErrorHandler))},st.\u0275prov=n.\u0275\u0275defineInjectable({token:st,factory:st.\u0275fac,providedIn:"root"}),st})();function de(st,It,ze,Ae,je){return st||new ae(It,ze,je,Ae)}const _e={provide:ae,deps:[[new n.Optional,new n.SkipSelf,ae],[new n.Optional,U.HttpClient],Q.DomSanitizer,n.ErrorHandler,[new n.Optional,u.DOCUMENT]],useFactory:de};function it(st){return st.cloneNode(!0)}function rt(st,It){return st+":"+It}function yt(st){return!(!st.url||!st.options)}const Oe=(0,p.mixinColor)(class{constructor(st){this._elementRef=st}}),ft=new n.InjectionToken("MAT_ICON_DEFAULT_OPTIONS"),wt=new n.InjectionToken("mat-icon-location",{providedIn:"root",factory:et});function et(){const st=(0,n.inject)(u.DOCUMENT),It=st?st.location:null;return{getPathname:()=>It?It.pathname+It.search:""}}const at=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ke=at.map(st=>`[${st}]`).join(", "),nt=/^url\(['"]?#(.*?)['"]?\)$/;let Tt=(()=>{class st extends Oe{constructor(ze,Ae,je,pe,We,Ie){super(ze),this._iconRegistry=Ae,this._location=pe,this._errorHandler=We,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=d.w0.EMPTY,Ie&&(Ie.color&&(this.color=this.defaultColor=Ie.color),Ie.fontSet&&(this.fontSet=Ie.fontSet)),je||ze.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ze){this._inline=(0,b.Ig)(ze)}get svgIcon(){return this._svgIcon}set svgIcon(ze){ze!==this._svgIcon&&(ze?this._updateSvgIcon(ze):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ze)}get fontSet(){return this._fontSet}set fontSet(ze){const Ae=this._cleanupFontValue(ze);Ae!==this._fontSet&&(this._fontSet=Ae,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ze){const Ae=this._cleanupFontValue(ze);Ae!==this._fontIcon&&(this._fontIcon=Ae,this._updateFontIconClasses())}_splitIconName(ze){if(!ze)return["",""];const Ae=ze.split(":");switch(Ae.length){case 1:return["",Ae[0]];case 2:return Ae;default:throw Error(`Invalid icon name: "${ze}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ze=this._elementsWithExternalReferences;if(ze&&ze.size){const Ae=this._location.getPathname();Ae!==this._previousPath&&(this._previousPath=Ae,this._prependPathToReferences(Ae))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ze){this._clearSvgElement();const Ae=this._location.getPathname();this._previousPath=Ae,this._cacheChildrenWithExternalReferences(ze),this._prependPathToReferences(Ae),this._elementRef.nativeElement.appendChild(ze)}_clearSvgElement(){const ze=this._elementRef.nativeElement;let Ae=ze.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ae--;){const je=ze.childNodes[Ae];(1!==je.nodeType||"svg"===je.nodeName.toLowerCase())&&je.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ze=this._elementRef.nativeElement,Ae=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(je=>je.length>0);this._previousFontSetClass.forEach(je=>ze.classList.remove(je)),Ae.forEach(je=>ze.classList.add(je)),this._previousFontSetClass=Ae,this.fontIcon!==this._previousFontIconClass&&!Ae.includes("mat-ligature-font")&&(this._previousFontIconClass&&ze.classList.remove(this._previousFontIconClass),this.fontIcon&&ze.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ze){return"string"==typeof ze?ze.trim().split(" ")[0]:ze}_prependPathToReferences(ze){const Ae=this._elementsWithExternalReferences;Ae&&Ae.forEach((je,pe)=>{je.forEach(We=>{pe.setAttribute(We.name,`url('${ze}#${We.value}')`)})})}_cacheChildrenWithExternalReferences(ze){const Ae=ze.querySelectorAll(Ke),je=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let pe=0;pe<Ae.length;pe++)at.forEach(We=>{const Ie=Ae[pe],Ye=Ie.getAttribute(We),z=Ye?Ye.match(nt):null;if(z){let De=je.get(Ie);De||(De=[],je.set(Ie,De)),De.push({name:We,value:z[1]})}})}_updateSvgIcon(ze){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ze){const[Ae,je]=this._splitIconName(ze);Ae&&(this._svgNamespace=Ae),je&&(this._svgName=je),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(je,Ae).pipe((0,Y.q)(1)).subscribe(pe=>this._setSvgElement(pe),pe=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ae}:${je}! ${pe.message}`))})}}}return st.\u0275fac=function(ze){return new(ze||st)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(ae),n.\u0275\u0275injectAttribute("aria-hidden"),n.\u0275\u0275directiveInject(wt),n.\u0275\u0275directiveInject(n.ErrorHandler),n.\u0275\u0275directiveInject(ft,8))},st.\u0275cmp=n.\u0275\u0275defineComponent({type:st,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(ze,Ae){2&ze&&(n.\u0275\u0275attribute("data-mat-icon-type",Ae._usingFontIcon()?"font":"svg")("data-mat-icon-name",Ae._svgName||Ae.fontIcon)("data-mat-icon-namespace",Ae._svgNamespace||Ae.fontSet),n.\u0275\u0275classProp("mat-icon-inline",Ae.inline)("mat-icon-no-color","primary"!==Ae.color&&"accent"!==Ae.color&&"warn"!==Ae.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:V,decls:1,vars:0,template:function(ze,Ae){1&ze&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[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}"],encapsulation:2,changeDetection:0}),st})(),Ct=(()=>{class st{}return st.\u0275fac=function(ze){return new(ze||st)},st.\u0275mod=n.\u0275\u0275defineNgModule({type:st}),st.\u0275inj=n.\u0275\u0275defineInjector({imports:[p.MatCommonModule,p.MatCommonModule]}),st})()},1451:(H,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_MENU_CONTENT:()=>Ke,MAT_MENU_DEFAULT_OPTIONS:()=>pe,MAT_MENU_PANEL:()=>ze,MAT_MENU_SCROLL_STRATEGY:()=>De,MatMenu:()=>z,MatMenuContent:()=>Tt,MatMenuItem:()=>je,MatMenuModule:()=>Me,MatMenuTrigger:()=>ht,_MatMenuBase:()=>Ye,_MatMenuContentBase:()=>nt,_MatMenuTriggerBase:()=>xe,fadeInItems:()=>et,matMenuAnimations:()=>wt,transformMenu:()=>at});var n=a(5664),p=a(3191),b=a(1159),u=a(5e3),r=a(7579),c=a(727),f=a(6451),h=a(9646),m=a(3101),d=a(4986),_=a(7272),v=a(5698),y=a(4482),E=a(5403),M=a(5032),k=a(4004),Y=a(5577);function U($,ne){return ne?ce=>(0,_.z)(ne.pipe((0,v.q)(1),function A(){return(0,y.e)(($,ne)=>{$.subscribe((0,E.x)(ne,M.Z))})}()),ce.pipe(U($))):(0,Y.z)((ce,Te)=>$(ce,Te).pipe((0,v.q)(1),function j($){return(0,k.U)(()=>$)}(ce)))}var Q=a(5963);function V($,ne=d.z){const ce=(0,Q.H)($,ne);return U(()=>ce)}var X=a(8675),re=a(3900),me=a(2722),we=a(9300),tt=a(1777),G=a(7429),q=a(9808),B=a(508),ae=a(1314),de=a(925),_e=a(226),it=a(495);const rt=["mat-menu-item",""];function yt($,ne){1&$&&(u.\u0275\u0275namespaceSVG(),u.\u0275\u0275elementStart(0,"svg",2),u.\u0275\u0275element(1,"polygon",3),u.\u0275\u0275elementEnd())}const Oe=["*"];function ft($,ne){if(1&$){const ce=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("keydown",function(He){u.\u0275\u0275restoreView(ce);const dt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(dt._handleKeydown(He))})("click",function(){u.\u0275\u0275restoreView(ce);const He=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(He.closed.emit("click"))})("@transformMenu.start",function(He){u.\u0275\u0275restoreView(ce);const dt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(dt._onAnimationStart(He))})("@transformMenu.done",function(He){u.\u0275\u0275restoreView(ce);const dt=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(dt._onAnimationDone(He))}),u.\u0275\u0275elementStart(1,"div",1),u.\u0275\u0275projection(2),u.\u0275\u0275elementEnd()()}if(2&$){const ce=u.\u0275\u0275nextContext();u.\u0275\u0275property("id",ce.panelId)("ngClass",ce._classList)("@transformMenu",ce._panelAnimationState),u.\u0275\u0275attribute("aria-label",ce.ariaLabel||null)("aria-labelledby",ce.ariaLabelledby||null)("aria-describedby",ce.ariaDescribedby||null)}}const wt={transformMenu:(0,tt.X$)("transformMenu",[(0,tt.SB)("void",(0,tt.oB)({opacity:0,transform:"scale(0.8)"})),(0,tt.eR)("void => enter",(0,tt.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,tt.oB)({opacity:1,transform:"scale(1)"}))),(0,tt.eR)("* => void",(0,tt.jt)("100ms 25ms linear",(0,tt.oB)({opacity:0})))]),fadeInItems:(0,tt.X$)("fadeInItems",[(0,tt.SB)("showing",(0,tt.oB)({opacity:1})),(0,tt.eR)("void => *",[(0,tt.oB)({opacity:0}),(0,tt.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},et=wt.fadeInItems,at=wt.transformMenu,Ke=new u.InjectionToken("MatMenuContent");let nt=(()=>{class ${constructor(ce,Te,He,dt,xt,kt,Bt){this._template=ce,this._componentFactoryResolver=Te,this._appRef=He,this._injector=dt,this._viewContainerRef=xt,this._document=kt,this._changeDetectorRef=Bt,this._attached=new r.x}attach(ce={}){var Te;this._portal||(this._portal=new G.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new G.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const He=this._template.elementRef.nativeElement;He.parentNode.insertBefore(this._outlet.outletElement,He),null===(Te=this._changeDetectorRef)||void 0===Te||Te.markForCheck(),this._portal.attach(this._outlet,ce),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return $.\u0275fac=function(ce){return new(ce||$)(u.\u0275\u0275directiveInject(u.TemplateRef),u.\u0275\u0275directiveInject(u.ComponentFactoryResolver),u.\u0275\u0275directiveInject(u.ApplicationRef),u.\u0275\u0275directiveInject(u.Injector),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(q.DOCUMENT),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},$.\u0275dir=u.\u0275\u0275defineDirective({type:$}),$})(),Tt=(()=>{class $ extends nt{}return $.\u0275fac=function(){let ne;return function(Te){return(ne||(ne=u.\u0275\u0275getInheritedFactory($)))(Te||$)}}(),$.\u0275dir=u.\u0275\u0275defineDirective({type:$,selectors:[["ng-template","matMenuContent",""]],features:[u.\u0275\u0275ProvidersFeature([{provide:Ke,useExisting:$}]),u.\u0275\u0275InheritDefinitionFeature]}),$})();const ze=new u.InjectionToken("MAT_MENU_PANEL"),Ae=(0,B.mixinDisableRipple)((0,B.mixinDisabled)(class{}));let je=(()=>{class $ extends Ae{constructor(ce,Te,He,dt,xt){var kt;super(),this._elementRef=ce,this._document=Te,this._focusMonitor=He,this._parentMenu=dt,this._changeDetectorRef=xt,this.role="menuitem",this._hovered=new r.x,this._focused=new r.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(kt=null==dt?void 0:dt.addItem)||void 0===kt||kt.call(dt,this)}focus(ce,Te){this._focusMonitor&&ce?this._focusMonitor.focusVia(this._getHostElement(),ce,Te):this._getHostElement().focus(Te),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(ce){this.disabled&&(ce.preventDefault(),ce.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ce;const Te=this._elementRef.nativeElement.cloneNode(!0),He=Te.querySelectorAll("mat-icon, .material-icons");for(let dt=0;dt<He.length;dt++)He[dt].remove();return(null===(ce=Te.textContent)||void 0===ce?void 0:ce.trim())||""}_setHighlighted(ce){var Te;this._highlighted=ce,null===(Te=this._changeDetectorRef)||void 0===Te||Te.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return $.\u0275fac=function(ce){return new(ce||$)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(q.DOCUMENT),u.\u0275\u0275directiveInject(n.tE),u.\u0275\u0275directiveInject(ze,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},$.\u0275cmp=u.\u0275\u0275defineComponent({type:$,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ce,Te){1&ce&&u.\u0275\u0275listener("click",function(dt){return Te._checkDisabled(dt)})("mouseenter",function(){return Te._handleMouseEnter()}),2&ce&&(u.\u0275\u0275attribute("role",Te.role)("tabindex",Te._getTabIndex())("aria-disabled",Te.disabled.toString())("disabled",Te.disabled||null),u.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",Te._highlighted)("mat-menu-item-submenu-trigger",Te._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[u.\u0275\u0275InheritDefinitionFeature],attrs:rt,ngContentSelectors:Oe,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(ce,Te){1&ce&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275projection(0),u.\u0275\u0275element(1,"div",0),u.\u0275\u0275template(2,yt,2,0,"svg",1)),2&ce&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("matRippleDisabled",Te.disableRipple||Te.disabled)("matRippleTrigger",Te._getHostElement()),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",Te._triggersSubmenu))},dependencies:[q.NgIf,B.MatRipple],encapsulation:2,changeDetection:0}),$})();const pe=new u.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function We(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Ie=0,Ye=(()=>{class ${constructor(ce,Te,He,dt){this._elementRef=ce,this._ngZone=Te,this._defaultOptions=He,this._changeDetectorRef=dt,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new u.QueryList,this._tabSubscription=c.w0.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new r.x,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new u.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+Ie++}get xPosition(){return this._xPosition}set xPosition(ce){this._xPosition=ce,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ce){this._yPosition=ce,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ce){this._overlapTrigger=(0,p.Ig)(ce)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ce){this._hasBackdrop=(0,p.Ig)(ce)}set panelClass(ce){const Te=this._previousPanelClass;Te&&Te.length&&Te.split(" ").forEach(He=>{this._classList[He]=!1}),this._previousPanelClass=ce,ce&&ce.length&&(ce.split(" ").forEach(He=>{this._classList[He]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ce){this.panelClass=ce}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new n.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,X.O)(this._directDescendantItems),(0,re.w)(ce=>(0,f.T)(...ce.map(Te=>Te._focused)))).subscribe(ce=>this._keyManager.updateActiveItem(ce)),this._directDescendantItems.changes.subscribe(ce=>{var Te;const He=this._keyManager;if("enter"===this._panelAnimationState&&(null===(Te=He.activeItem)||void 0===Te?void 0:Te._hasFocus())){const dt=ce.toArray(),xt=Math.max(0,Math.min(dt.length-1,He.activeItemIndex||0));dt[xt]&&!dt[xt].disabled?He.setActiveItem(xt):He.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,X.O)(this._directDescendantItems),(0,re.w)(Te=>(0,f.T)(...Te.map(He=>He._hovered))))}addItem(ce){}removeItem(ce){}_handleKeydown(ce){const Te=ce.keyCode,He=this._keyManager;switch(Te){case b.hY:(0,b.Vb)(ce)||(ce.preventDefault(),this.closed.emit("keydown"));break;case b.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case b.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(Te===b.LH||Te===b.JH)&&He.setFocusOrigin("keyboard"),void He.onKeydown(ce)}ce.stopPropagation()}focusFirstItem(ce="program"){this._ngZone.onStable.pipe((0,v.q)(1)).subscribe(()=>{let Te=null;if(this._directDescendantItems.length&&(Te=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!Te||!Te.contains(document.activeElement)){const He=this._keyManager;He.setFocusOrigin(ce).setFirstItemActive(),!He.activeItem&&Te&&Te.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ce){const Te=Math.min(this._baseElevation+ce,24),He=`${this._elevationPrefix}${Te}`,dt=Object.keys(this._classList).find(xt=>xt.startsWith(this._elevationPrefix));(!dt||dt===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[He]=!0,this._previousElevation=He)}setPositionClasses(ce=this.xPosition,Te=this.yPosition){var He;const dt=this._classList;dt["mat-menu-before"]="before"===ce,dt["mat-menu-after"]="after"===ce,dt["mat-menu-above"]="above"===Te,dt["mat-menu-below"]="below"===Te,null===(He=this._changeDetectorRef)||void 0===He||He.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ce){this._animationDone.next(ce),this._isAnimating=!1}_onAnimationStart(ce){this._isAnimating=!0,"enter"===ce.toState&&0===this._keyManager.activeItemIndex&&(ce.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,X.O)(this._allItems)).subscribe(ce=>{this._directDescendantItems.reset(ce.filter(Te=>Te._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return $.\u0275fac=function(ce){return new(ce||$)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(pe),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},$.\u0275dir=u.\u0275\u0275defineDirective({type:$,contentQueries:function(ce,Te,He){if(1&ce&&(u.\u0275\u0275contentQuery(He,Ke,5),u.\u0275\u0275contentQuery(He,je,5),u.\u0275\u0275contentQuery(He,je,4)),2&ce){let dt;u.\u0275\u0275queryRefresh(dt=u.\u0275\u0275loadQuery())&&(Te.lazyContent=dt.first),u.\u0275\u0275queryRefresh(dt=u.\u0275\u0275loadQuery())&&(Te._allItems=dt),u.\u0275\u0275queryRefresh(dt=u.\u0275\u0275loadQuery())&&(Te.items=dt)}},viewQuery:function(ce,Te){if(1&ce&&u.\u0275\u0275viewQuery(u.TemplateRef,5),2&ce){let He;u.\u0275\u0275queryRefresh(He=u.\u0275\u0275loadQuery())&&(Te.templateRef=He.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),$})(),z=(()=>{class $ extends Ye{constructor(ce,Te,He,dt){super(ce,Te,He,dt),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return $.\u0275fac=function(ce){return new(ce||$)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(pe),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},$.\u0275cmp=u.\u0275\u0275defineComponent({type:$,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ce,Te){2&ce&&u.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[u.\u0275\u0275ProvidersFeature([{provide:ze,useExisting:$}]),u.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Oe,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(ce,Te){1&ce&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275template(0,ft,3,6,"ng-template"))},dependencies:[q.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;position:relative}.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;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);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]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.cdk-high-contrast-active .mat-menu-item{margin-top: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}'],encapsulation:2,data:{animation:[wt.transformMenu,wt.fadeInItems]},changeDetection:0}),$})();const De=new u.InjectionToken("mat-menu-scroll-strategy"),Se={provide:De,deps:[ae.aV],useFactory:function Le($){return()=>$.scrollStrategies.reposition()}},ge=(0,de.i$)({passive:!0});let xe=(()=>{class ${constructor(ce,Te,He,dt,xt,kt,Bt,Zt,Ne){this._overlay=ce,this._element=Te,this._viewContainerRef=He,this._menuItemInstance=kt,this._dir=Bt,this._focusMonitor=Zt,this._ngZone=Ne,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.w0.EMPTY,this._hoverSubscription=c.w0.EMPTY,this._menuCloseSubscription=c.w0.EMPTY,this._handleTouchStart=$e=>{(0,n.yG)($e)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new u.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new u.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=dt,this._parentMaterialMenu=xt instanceof Ye?xt:void 0,Te.nativeElement.addEventListener("touchstart",this._handleTouchStart,ge),kt&&(kt._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ce){this.menu=ce}get menu(){return this._menu}set menu(ce){ce!==this._menu&&(this._menu=ce,this._menuCloseSubscription.unsubscribe(),ce&&(this._menuCloseSubscription=ce.close.subscribe(Te=>{this._destroyMenu(Te),("click"===Te||"tab"===Te)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(Te)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,ge),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(){const ce=this.menu;if(this._menuOpen||!ce)return;const Te=this._createOverlay(ce),He=Te.getConfig(),dt=He.positionStrategy;this._setPosition(ce,dt),He.hasBackdrop=null==ce.hasBackdrop?!this.triggersSubmenu():ce.hasBackdrop,Te.attach(this._getPortal(ce)),ce.lazyContent&&ce.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(ce),ce instanceof Ye&&(ce._startAnimation(),ce._directDescendantItems.changes.pipe((0,me.R)(ce.close)).subscribe(()=>{dt.withLockedPosition(!1).reapplyLastPosition(),dt.withLockedPosition(!0)}))}closeMenu(){var ce;null===(ce=this.menu)||void 0===ce||ce.close.emit()}focus(ce,Te){this._focusMonitor&&ce?this._focusMonitor.focusVia(this._element,ce,Te):this._element.nativeElement.focus(Te)}updatePosition(){var ce;null===(ce=this._overlayRef)||void 0===ce||ce.updatePosition()}_destroyMenu(ce){var Te;if(!this._overlayRef||!this.menuOpen)return;const He=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ce||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,He instanceof Ye?(He._resetAnimation(),He.lazyContent?He._animationDone.pipe((0,we.h)(dt=>"void"===dt.toState),(0,v.q)(1),(0,me.R)(He.lazyContent._attached)).subscribe({next:()=>He.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(Te=null==He?void 0:He.lazyContent)||void 0===Te||Te.detach())}_initMenu(ce){ce.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,ce.direction=this.dir,this._setMenuElevation(ce),ce.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(ce){if(ce.setElevation){let Te=0,He=ce.parentMenu;for(;He;)Te++,He=He.parentMenu;ce.setElevation(Te)}}_setIsMenuOpen(ce){this._menuOpen=ce,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ce)}_createOverlay(ce){if(!this._overlayRef){const Te=this._getOverlayConfig(ce);this._subscribeToPositions(ce,Te.positionStrategy),this._overlayRef=this._overlay.create(Te),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(ce){return new ae.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:ce.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:ce.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ce,Te){ce.setPositionClasses&&Te.positionChanges.subscribe(He=>{const dt="start"===He.connectionPair.overlayX?"after":"before",xt="top"===He.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>ce.setPositionClasses(dt,xt)):ce.setPositionClasses(dt,xt)})}_setPosition(ce,Te){let[He,dt]="before"===ce.xPosition?["end","start"]:["start","end"],[xt,kt]="above"===ce.yPosition?["bottom","top"]:["top","bottom"],[Bt,Zt]=[xt,kt],[Ne,$e]=[He,dt],ve=0;if(this.triggersSubmenu()){if($e=He="before"===ce.xPosition?"start":"end",dt=Ne="end"===He?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const fe=this._parentMaterialMenu.items.first;this._parentInnerPadding=fe?fe._getHostElement().offsetTop:0}ve="bottom"===xt?this._parentInnerPadding:-this._parentInnerPadding}}else ce.overlapTrigger||(Bt="top"===xt?"bottom":"top",Zt="top"===kt?"bottom":"top");Te.withPositions([{originX:He,originY:Bt,overlayX:Ne,overlayY:xt,offsetY:ve},{originX:dt,originY:Bt,overlayX:$e,overlayY:xt,offsetY:ve},{originX:He,originY:Zt,overlayX:Ne,overlayY:kt,offsetY:-ve},{originX:dt,originY:Zt,overlayX:$e,overlayY:kt,offsetY:-ve}])}_menuClosingActions(){const ce=this._overlayRef.backdropClick(),Te=this._overlayRef.detachments(),He=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,h.of)(),dt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,we.h)(xt=>xt!==this._menuItemInstance),(0,we.h)(()=>this._menuOpen)):(0,h.of)();return(0,f.T)(ce,He,dt,Te)}_handleMousedown(ce){(0,n.X6)(ce)||(this._openedBy=0===ce.button?"mouse":void 0,this.triggersSubmenu()&&ce.preventDefault())}_handleKeydown(ce){const Te=ce.keyCode;(Te===b.K5||Te===b.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(Te===b.SV&&"ltr"===this.dir||Te===b.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ce){this.triggersSubmenu()?(ce.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,we.h)(ce=>ce===this._menuItemInstance&&!ce.disabled),V(0,m.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ye&&this.menu._isAnimating?this.menu._animationDone.pipe((0,v.q)(1),V(0,m.E),(0,me.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(ce){return(!this._portal||this._portal.templateRef!==ce.templateRef)&&(this._portal=new G.UE(ce.templateRef,this._viewContainerRef)),this._portal}}return $.\u0275fac=function(ce){return new(ce||$)(u.\u0275\u0275directiveInject(ae.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(De),u.\u0275\u0275directiveInject(ze,8),u.\u0275\u0275directiveInject(je,10),u.\u0275\u0275directiveInject(_e.Is,8),u.\u0275\u0275directiveInject(n.tE),u.\u0275\u0275directiveInject(u.NgZone))},$.\u0275dir=u.\u0275\u0275defineDirective({type:$,hostVars:3,hostBindings:function(ce,Te){1&ce&&u.\u0275\u0275listener("click",function(dt){return Te._handleClick(dt)})("mousedown",function(dt){return Te._handleMousedown(dt)})("keydown",function(dt){return Te._handleKeydown(dt)}),2&ce&&u.\u0275\u0275attribute("aria-haspopup",Te.menu?"menu":null)("aria-expanded",Te.menuOpen||null)("aria-controls",Te.menuOpen?Te.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),$})(),ht=(()=>{class $ extends xe{}return $.\u0275fac=function(){let ne;return function(Te){return(ne||(ne=u.\u0275\u0275getInheritedFactory($)))(Te||$)}}(),$.\u0275dir=u.\u0275\u0275defineDirective({type:$,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[u.\u0275\u0275InheritDefinitionFeature]}),$})(),Me=(()=>{class ${}return $.\u0275fac=function(ce){return new(ce||$)},$.\u0275mod=u.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=u.\u0275\u0275defineInjector({providers:[Se],imports:[q.CommonModule,B.MatCommonModule,B.MatRippleModule,ae.U8,it.ZD,B.MatCommonModule]}),$})()},4999:(H,o,a)=>{"use strict";a.r(o),a.d(o,{MatCell:()=>on,MatCellDef:()=>pt,MatColumnDef:()=>qe,MatFooterCell:()=>$t,MatFooterCellDef:()=>ye,MatFooterRow:()=>he,MatFooterRowDef:()=>vn,MatHeaderCell:()=>gt,MatHeaderCellDef:()=>se,MatHeaderRow:()=>Ve,MatHeaderRowDef:()=>nn,MatNoDataRow:()=>mt,MatRecycleRows:()=>ct,MatRow:()=>Xe,MatRowDef:()=>Ue,MatTable:()=>ke,MatTableDataSource:()=>_n,MatTableModule:()=>Ht,MatTextColumn:()=>_t,_MatTableDataSource:()=>On});var n=a(5e3),p=a(3191),b=a(449),u=a(9808),r=a(7579),c=a(2076),f=a(1135),h=a(8306),m=a(576),_=a(9646),v=a(2722),y=a(5698),E=a(226),M=a(925),A=a(495);const k=[[["caption"]],[["colgroup"],["col"]]],j=["caption","colgroup, col"];function Y(ue,Pe){if(1&ue&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ue){const Z=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Z.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Z.headerText," ")}}function U(ue,Pe){if(1&ue&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ue){const Z=Pe.$implicit,Re=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Re.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Re.dataAccessor(Z,Re.name)," ")}}function Q(ue){return class extends ue{constructor(...Pe){super(...Pe),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Pe){const Z=this._sticky;this._sticky=(0,p.Ig)(Pe),this._hasStickyChanged=Z!==this._sticky}hasStickyChanged(){const Pe=this._hasStickyChanged;return this._hasStickyChanged=!1,Pe}resetStickyChanged(){this._hasStickyChanged=!1}}}const V=new n.InjectionToken("CDK_TABLE"),X=new n.InjectionToken("text-column-options");let re=(()=>{class ue{constructor(Z){this.template=Z}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.TemplateRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","cdkCellDef",""]]}),ue})(),me=(()=>{class ue{constructor(Z){this.template=Z}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.TemplateRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","cdkHeaderCellDef",""]]}),ue})(),we=(()=>{class ue{constructor(Z){this.template=Z}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.TemplateRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","cdkFooterCellDef",""]]}),ue})();class tt{}const G=Q(tt);let q=(()=>{class ue extends G{constructor(Z){super(),this._table=Z,this._stickyEnd=!1}get name(){return this._name}set name(Z){this._setNameInput(Z)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Z){const Re=this._stickyEnd;this._stickyEnd=(0,p.Ig)(Z),this._hasStickyChanged=Re!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Z){Z&&(this._name=Z,this.cssClassFriendlyName=Z.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(V,8))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","cdkColumnDef",""]],contentQueries:function(Z,Re,Ze){if(1&Z&&(n.\u0275\u0275contentQuery(Ze,re,5),n.\u0275\u0275contentQuery(Ze,me,5),n.\u0275\u0275contentQuery(Ze,we,5)),2&Z){let Dt;n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Re.cell=Dt.first),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Re.headerCell=Dt.first),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Re.footerCell=Dt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature]}),ue})();class B{constructor(Pe,Z){Z.nativeElement.classList.add(...Pe._columnCssClassName)}}let ae=(()=>{class ue extends B{constructor(Z,Re){super(Z,Re)}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(q),n.\u0275\u0275directiveInject(n.ElementRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ue})(),de=(()=>{class ue extends B{constructor(Z,Re){var Ze;if(super(Z,Re),1===(null===(Ze=Z._table)||void 0===Ze?void 0:Ze._elementRef.nativeElement.nodeType)){const Dt=Z._table._elementRef.nativeElement.getAttribute("role");Re.nativeElement.setAttribute("role","grid"===Dt||"treegrid"===Dt?"gridcell":"cell")}}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(q),n.\u0275\u0275directiveInject(n.ElementRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ue})(),_e=(()=>{class ue extends B{constructor(Z,Re){var Ze;if(super(Z,Re),1===(null===(Ze=Z._table)||void 0===Ze?void 0:Ze._elementRef.nativeElement.nodeType)){const Dt=Z._table._elementRef.nativeElement.getAttribute("role");Re.nativeElement.setAttribute("role","grid"===Dt||"treegrid"===Dt?"gridcell":"cell")}}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(q),n.\u0275\u0275directiveInject(n.ElementRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ue})();class it{constructor(){this.tasks=[],this.endTasks=[]}}const rt=new n.InjectionToken("_COALESCED_STYLE_SCHEDULER");let yt=(()=>{class ue{constructor(Z){this._ngZone=Z,this._currentSchedule=null,this._destroyed=new r.x}schedule(Z){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Z)}scheduleEnd(Z){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Z)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new it,this._getScheduleObservable().pipe((0,v.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Z=this._currentSchedule;this._currentSchedule=new it;for(const Re of Z.tasks)Re();for(const Re of Z.endTasks)Re()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,c.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,y.q)(1))}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275inject(n.NgZone))},ue.\u0275prov=n.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac}),ue})(),ft=(()=>{class ue{constructor(Z,Re){this.template=Z,this._differs=Re}ngOnChanges(Z){if(!this._columnsDiffer){const Re=Z.columns&&Z.columns.currentValue||[];this._columnsDiffer=this._differs.find(Re).create(),this._columnsDiffer.diff(Re)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Z){return this instanceof at?Z.headerCell.template:this instanceof Tt?Z.footerCell.template:Z.cell.template}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,features:[n.\u0275\u0275NgOnChangesFeature]}),ue})();class wt extends ft{}const et=Q(wt);let at=(()=>{class ue extends et{constructor(Z,Re,Ze){super(Z,Re),this._table=Ze}ngOnChanges(Z){super.ngOnChanges(Z)}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(V,8))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),ue})();class Ke extends ft{}const nt=Q(Ke);let Tt=(()=>{class ue extends nt{constructor(Z,Re,Ze){super(Z,Re),this._table=Ze}ngOnChanges(Z){super.ngOnChanges(Z)}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(V,8))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),ue})(),Ct=(()=>{class ue extends ft{constructor(Z,Re,Ze){super(Z,Re),this._table=Ze}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(V,8))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.\u0275\u0275InheritDefinitionFeature]}),ue})(),st=(()=>{class ue{constructor(Z){this._viewContainer=Z,ue.mostRecentCellOutlet=this}ngOnDestroy(){ue.mostRecentCellOutlet===this&&(ue.mostRecentCellOutlet=null)}}return ue.mostRecentCellOutlet=null,ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","cdkCellOutlet",""]]}),ue})(),It=(()=>{class ue{}return ue.\u0275fac=function(Z){return new(Z||ue)},ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Z,Re){1&Z&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ue})(),ze=(()=>{class ue{}return ue.\u0275fac=function(Z){return new(Z||ue)},ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Z,Re){1&Z&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ue})(),Ae=(()=>{class ue{}return ue.\u0275fac=function(Z){return new(Z||ue)},ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Z,Re){1&Z&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ue})(),je=(()=>{class ue{constructor(Z){this.templateRef=Z,this._contentClassName="cdk-no-data-row"}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.TemplateRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["ng-template","cdkNoDataRow",""]]}),ue})();const pe=["top","bottom","left","right"];class We{constructor(Pe,Z,Re,Ze,Dt=!0,Rt=!0,Yt){this._isNativeHtmlTable=Pe,this._stickCellCss=Z,this.direction=Re,this._coalescedStyleScheduler=Ze,this._isBrowser=Dt,this._needsPositionStickyOnElement=Rt,this._positionListener=Yt,this._cachedCellWidths=[],this._borderCellCss={top:`${Z}-border-elem-top`,bottom:`${Z}-border-elem-bottom`,left:`${Z}-border-elem-left`,right:`${Z}-border-elem-right`}}clearStickyPositioning(Pe,Z){const Re=[];for(const Ze of Pe)if(Ze.nodeType===Ze.ELEMENT_NODE){Re.push(Ze);for(let Dt=0;Dt<Ze.children.length;Dt++)Re.push(Ze.children[Dt])}this._coalescedStyleScheduler.schedule(()=>{for(const Ze of Re)this._removeStickyStyle(Ze,Z)})}updateStickyColumns(Pe,Z,Re,Ze=!0){if(!Pe.length||!this._isBrowser||!Z.some(qt=>qt)&&!Re.some(qt=>qt))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Dt=Pe[0],Rt=Dt.children.length,Yt=this._getCellWidths(Dt,Ze),Qt=this._getStickyStartColumnPositions(Yt,Z),ln=this._getStickyEndColumnPositions(Yt,Re),hn=Z.lastIndexOf(!0),gn=Re.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const qt="rtl"===this.direction,Rn=qt?"right":"left",ni=qt?"left":"right";for(const Jt of Pe)for(let xn=0;xn<Rt;xn++){const si=Jt.children[xn];Z[xn]&&this._addStickyStyle(si,Rn,Qt[xn],xn===hn),Re[xn]&&this._addStickyStyle(si,ni,ln[xn],xn===gn)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===hn?[]:Yt.slice(0,hn+1).map((Jt,xn)=>Z[xn]?Jt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===gn?[]:Yt.slice(gn).map((Jt,xn)=>Re[xn+gn]?Jt:null).reverse()}))})}stickRows(Pe,Z,Re){if(!this._isBrowser)return;const Ze="bottom"===Re?Pe.slice().reverse():Pe,Dt="bottom"===Re?Z.slice().reverse():Z,Rt=[],Yt=[],Qt=[];for(let hn=0,gn=0;hn<Ze.length;hn++){if(!Dt[hn])continue;Rt[hn]=gn;const qt=Ze[hn];Qt[hn]=this._isNativeHtmlTable?Array.from(qt.children):[qt];const Rn=qt.getBoundingClientRect().height;gn+=Rn,Yt[hn]=Rn}const ln=Dt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var hn,gn;for(let qt=0;qt<Ze.length;qt++){if(!Dt[qt])continue;const Rn=Rt[qt],ni=qt===ln;for(const Jt of Qt[qt])this._addStickyStyle(Jt,Re,Rn,ni)}"top"===Re?null===(hn=this._positionListener)||void 0===hn||hn.stickyHeaderRowsUpdated({sizes:Yt,offsets:Rt,elements:Qt}):null===(gn=this._positionListener)||void 0===gn||gn.stickyFooterRowsUpdated({sizes:Yt,offsets:Rt,elements:Qt})})}updateStickyFooterContainer(Pe,Z){if(!this._isNativeHtmlTable)return;const Re=Pe.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{Z.some(Ze=>!Ze)?this._removeStickyStyle(Re,["bottom"]):this._addStickyStyle(Re,"bottom",0,!1)})}_removeStickyStyle(Pe,Z){for(const Ze of Z)Pe.style[Ze]="",Pe.classList.remove(this._borderCellCss[Ze]);pe.some(Ze=>-1===Z.indexOf(Ze)&&Pe.style[Ze])?Pe.style.zIndex=this._getCalculatedZIndex(Pe):(Pe.style.zIndex="",this._needsPositionStickyOnElement&&(Pe.style.position=""),Pe.classList.remove(this._stickCellCss))}_addStickyStyle(Pe,Z,Re,Ze){Pe.classList.add(this._stickCellCss),Ze&&Pe.classList.add(this._borderCellCss[Z]),Pe.style[Z]=`${Re}px`,Pe.style.zIndex=this._getCalculatedZIndex(Pe),this._needsPositionStickyOnElement&&(Pe.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Pe){const Z={top:100,bottom:10,left:1,right:1};let Re=0;for(const Ze of pe)Pe.style[Ze]&&(Re+=Z[Ze]);return Re?`${Re}`:""}_getCellWidths(Pe,Z=!0){if(!Z&&this._cachedCellWidths.length)return this._cachedCellWidths;const Re=[],Ze=Pe.children;for(let Dt=0;Dt<Ze.length;Dt++)Re.push(Ze[Dt].getBoundingClientRect().width);return this._cachedCellWidths=Re,Re}_getStickyStartColumnPositions(Pe,Z){const Re=[];let Ze=0;for(let Dt=0;Dt<Pe.length;Dt++)Z[Dt]&&(Re[Dt]=Ze,Ze+=Pe[Dt]);return Re}_getStickyEndColumnPositions(Pe,Z){const Re=[];let Ze=0;for(let Dt=Pe.length;Dt>0;Dt--)Z[Dt]&&(Re[Dt]=Ze,Ze+=Pe[Dt]);return Re}}const xe=new n.InjectionToken("CDK_SPL");let Me=(()=>{class ue{constructor(Z,Re){this.viewContainer=Z,this.elementRef=Re}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","rowOutlet",""]]}),ue})(),$=(()=>{class ue{constructor(Z,Re){this.viewContainer=Z,this.elementRef=Re}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","headerRowOutlet",""]]}),ue})(),ne=(()=>{class ue{constructor(Z,Re){this.viewContainer=Z,this.elementRef=Re}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","footerRowOutlet",""]]}),ue})(),ce=(()=>{class ue{constructor(Z,Re){this.viewContainer=Z,this.elementRef=Re}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","noDataRowOutlet",""]]}),ue})(),dt=(()=>{class ue{constructor(Z,Re,Ze,Dt,Rt,Yt,Qt,ln,hn,gn,qt,Rn){this._differs=Z,this._changeDetectorRef=Re,this._elementRef=Ze,this._dir=Rt,this._platform=Qt,this._viewRepeater=ln,this._coalescedStyleScheduler=hn,this._viewportRuler=gn,this._stickyPositioningListener=qt,this._ngZone=Rn,this._onDestroy=new r.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new n.EventEmitter,this.viewChange=new f.X({start:0,end:Number.MAX_VALUE}),Dt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=Yt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(Z){this._trackByFn=Z}get dataSource(){return this._dataSource}set dataSource(Z){this._dataSource!==Z&&this._switchDataSource(Z)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Z){this._multiTemplateDataRows=(0,p.Ig)(Z),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Z){this._fixedLayout=(0,p.Ig)(Z),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Z,Re)=>this.trackBy?this.trackBy(Re.dataIndex,Re.data):Re),this._viewportRuler.change().pipe((0,v.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Re=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Re,this._forceRecalculateCellWidths=Re,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(Z=>{Z.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,b.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Z=this._dataDiffer.diff(this._renderRows);if(!Z)return this._updateNoDataRow(),void this.contentChanged.next();const Re=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Z,Re,(Ze,Dt,Rt)=>this._getEmbeddedViewArgs(Ze.item,Rt),Ze=>Ze.item.data,Ze=>{1===Ze.operation&&Ze.context&&this._renderCellTemplateForItem(Ze.record.item.rowDef,Ze.context)}),this._updateRowIndexContext(),Z.forEachIdentityChange(Ze=>{Re.get(Ze.currentIndex).context.$implicit=Ze.item.data}),this._updateNoDataRow(),this._ngZone&&n.NgZone.isInAngularZone()?this._ngZone.onStable.pipe((0,y.q)(1),(0,v.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Z){this._customColumnDefs.add(Z)}removeColumnDef(Z){this._customColumnDefs.delete(Z)}addRowDef(Z){this._customRowDefs.add(Z)}removeRowDef(Z){this._customRowDefs.delete(Z)}addHeaderRowDef(Z){this._customHeaderRowDefs.add(Z),this._headerRowDefChanged=!0}removeHeaderRowDef(Z){this._customHeaderRowDefs.delete(Z),this._headerRowDefChanged=!0}addFooterRowDef(Z){this._customFooterRowDefs.add(Z),this._footerRowDefChanged=!0}removeFooterRowDef(Z){this._customFooterRowDefs.delete(Z),this._footerRowDefChanged=!0}setNoDataRow(Z){this._customNoDataRow=Z}updateStickyHeaderRowStyles(){const Z=this._getRenderedRows(this._headerRowOutlet),Ze=this._elementRef.nativeElement.querySelector("thead");Ze&&(Ze.style.display=Z.length?"":"none");const Dt=this._headerRowDefs.map(Rt=>Rt.sticky);this._stickyStyler.clearStickyPositioning(Z,["top"]),this._stickyStyler.stickRows(Z,Dt,"top"),this._headerRowDefs.forEach(Rt=>Rt.resetStickyChanged())}updateStickyFooterRowStyles(){const Z=this._getRenderedRows(this._footerRowOutlet),Ze=this._elementRef.nativeElement.querySelector("tfoot");Ze&&(Ze.style.display=Z.length?"":"none");const Dt=this._footerRowDefs.map(Rt=>Rt.sticky);this._stickyStyler.clearStickyPositioning(Z,["bottom"]),this._stickyStyler.stickRows(Z,Dt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Dt),this._footerRowDefs.forEach(Rt=>Rt.resetStickyChanged())}updateStickyColumnStyles(){const Z=this._getRenderedRows(this._headerRowOutlet),Re=this._getRenderedRows(this._rowOutlet),Ze=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Z,...Re,...Ze],["left","right"]),this._stickyColumnStylesNeedReset=!1),Z.forEach((Dt,Rt)=>{this._addStickyColumnStyles([Dt],this._headerRowDefs[Rt])}),this._rowDefs.forEach(Dt=>{const Rt=[];for(let Yt=0;Yt<Re.length;Yt++)this._renderRows[Yt].rowDef===Dt&&Rt.push(Re[Yt]);this._addStickyColumnStyles(Rt,Dt)}),Ze.forEach((Dt,Rt)=>{this._addStickyColumnStyles([Dt],this._footerRowDefs[Rt])}),Array.from(this._columnDefsByName.values()).forEach(Dt=>Dt.resetStickyChanged())}_getAllRenderRows(){const Z=[],Re=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Ze=0;Ze<this._data.length;Ze++){let Dt=this._data[Ze];const Rt=this._getRenderRowsForData(Dt,Ze,Re.get(Dt));this._cachedRenderRowsMap.has(Dt)||this._cachedRenderRowsMap.set(Dt,new WeakMap);for(let Yt=0;Yt<Rt.length;Yt++){let Qt=Rt[Yt];const ln=this._cachedRenderRowsMap.get(Qt.data);ln.has(Qt.rowDef)?ln.get(Qt.rowDef).push(Qt):ln.set(Qt.rowDef,[Qt]),Z.push(Qt)}}return Z}_getRenderRowsForData(Z,Re,Ze){return this._getRowDefs(Z,Re).map(Rt=>{const Yt=Ze&&Ze.has(Rt)?Ze.get(Rt):[];if(Yt.length){const Qt=Yt.shift();return Qt.dataIndex=Re,Qt}return{data:Z,rowDef:Rt,dataIndex:Re}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Re=>{this._columnDefsByName.has(Re.name),this._columnDefsByName.set(Re.name,Re)})}_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 Z=this._rowDefs.filter(Re=>!Re.when);this._defaultRowDef=Z[0]}_renderUpdatedColumns(){const Z=(Rt,Yt)=>Rt||!!Yt.getColumnsDiff(),Re=this._rowDefs.reduce(Z,!1);Re&&this._forceRenderDataRows();const Ze=this._headerRowDefs.reduce(Z,!1);Ze&&this._forceRenderHeaderRows();const Dt=this._footerRowDefs.reduce(Z,!1);return Dt&&this._forceRenderFooterRows(),Re||Ze||Dt}_switchDataSource(Z){this._data=[],(0,b.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Z||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Z}_observeRenderChanges(){if(!this.dataSource)return;let Z;(0,b.Z9)(this.dataSource)?Z=this.dataSource.connect(this):function d(ue){return!!ue&&(ue instanceof h.y||(0,m.m)(ue.lift)&&(0,m.m)(ue.subscribe))}(this.dataSource)?Z=this.dataSource:Array.isArray(this.dataSource)&&(Z=(0,_.of)(this.dataSource)),this._renderChangeSubscription=Z.pipe((0,v.R)(this._onDestroy)).subscribe(Re=>{this._data=Re||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Z,Re)=>this._renderRow(this._headerRowOutlet,Z,Re)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Z,Re)=>this._renderRow(this._footerRowOutlet,Z,Re)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Z,Re){const Ze=Array.from(Re.columns||[]).map(Yt=>this._columnDefsByName.get(Yt)),Dt=Ze.map(Yt=>Yt.sticky),Rt=Ze.map(Yt=>Yt.stickyEnd);this._stickyStyler.updateStickyColumns(Z,Dt,Rt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Z){const Re=[];for(let Ze=0;Ze<Z.viewContainer.length;Ze++){const Dt=Z.viewContainer.get(Ze);Re.push(Dt.rootNodes[0])}return Re}_getRowDefs(Z,Re){if(1==this._rowDefs.length)return[this._rowDefs[0]];let Ze=[];if(this.multiTemplateDataRows)Ze=this._rowDefs.filter(Dt=>!Dt.when||Dt.when(Re,Z));else{let Dt=this._rowDefs.find(Rt=>Rt.when&&Rt.when(Re,Z))||this._defaultRowDef;Dt&&Ze.push(Dt)}return Ze}_getEmbeddedViewArgs(Z,Re){return{templateRef:Z.rowDef.template,context:{$implicit:Z.data},index:Re}}_renderRow(Z,Re,Ze,Dt={}){const Rt=Z.viewContainer.createEmbeddedView(Re.template,Dt,Ze);return this._renderCellTemplateForItem(Re,Dt),Rt}_renderCellTemplateForItem(Z,Re){for(let Ze of this._getCellTemplates(Z))st.mostRecentCellOutlet&&st.mostRecentCellOutlet._viewContainer.createEmbeddedView(Ze,Re);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Z=this._rowOutlet.viewContainer;for(let Re=0,Ze=Z.length;Re<Ze;Re++){const Rt=Z.get(Re).context;Rt.count=Ze,Rt.first=0===Re,Rt.last=Re===Ze-1,Rt.even=Re%2==0,Rt.odd=!Rt.even,this.multiTemplateDataRows?(Rt.dataIndex=this._renderRows[Re].dataIndex,Rt.renderIndex=Re):Rt.index=this._renderRows[Re].dataIndex}}_getCellTemplates(Z){return Z&&Z.columns?Array.from(Z.columns,Re=>{const Ze=this._columnDefsByName.get(Re);return Z.extractCellTemplate(Ze)}):[]}_applyNativeTableSections(){const Z=this._document.createDocumentFragment(),Re=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Ze of Re){const Dt=this._document.createElement(Ze.tag);Dt.setAttribute("role","rowgroup");for(const Rt of Ze.outlets)Dt.appendChild(Rt.elementRef.nativeElement);Z.appendChild(Dt)}this._elementRef.nativeElement.appendChild(Z)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Z=(Re,Ze)=>Re||Ze.hasStickyChanged();this._headerRowDefs.reduce(Z,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Z,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Z,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new We(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,_.of)()).pipe((0,v.R)(this._onDestroy)).subscribe(Re=>{this._stickyStyler.direction=Re,this.updateStickyColumnStyles()})}_getOwnDefs(Z){return Z.filter(Re=>!Re._table||Re._table===this)}_updateNoDataRow(){const Z=this._customNoDataRow||this._noDataRow;if(!Z)return;const Re=0===this._rowOutlet.viewContainer.length;if(Re===this._isShowingNoDataRow)return;const Ze=this._noDataRowOutlet.viewContainer;if(Re){const Dt=Ze.createEmbeddedView(Z.templateRef),Rt=Dt.rootNodes[0];1===Dt.rootNodes.length&&(null==Rt?void 0:Rt.nodeType)===this._document.ELEMENT_NODE&&(Rt.setAttribute("role","row"),Rt.classList.add(Z._contentClassName))}else Ze.clear();this._isShowingNoDataRow=Re}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275injectAttribute("role"),n.\u0275\u0275directiveInject(E.Is,8),n.\u0275\u0275directiveInject(u.DOCUMENT),n.\u0275\u0275directiveInject(M.t4),n.\u0275\u0275directiveInject(b.k),n.\u0275\u0275directiveInject(rt),n.\u0275\u0275directiveInject(A.rL),n.\u0275\u0275directiveInject(xe,12),n.\u0275\u0275directiveInject(n.NgZone,8))},ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Z,Re,Ze){if(1&Z&&(n.\u0275\u0275contentQuery(Ze,je,5),n.\u0275\u0275contentQuery(Ze,q,5),n.\u0275\u0275contentQuery(Ze,Ct,5),n.\u0275\u0275contentQuery(Ze,at,5),n.\u0275\u0275contentQuery(Ze,Tt,5)),2&Z){let Dt;n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Re._noDataRow=Dt.first),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Re._contentColumnDefs=Dt),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Re._contentRowDefs=Dt),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Re._contentHeaderRowDefs=Dt),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Re._contentFooterRowDefs=Dt)}},viewQuery:function(Z,Re){if(1&Z&&(n.\u0275\u0275viewQuery(Me,7),n.\u0275\u0275viewQuery($,7),n.\u0275\u0275viewQuery(ne,7),n.\u0275\u0275viewQuery(ce,7)),2&Z){let Ze;n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Re._rowOutlet=Ze.first),n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Re._headerRowOutlet=Ze.first),n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Re._footerRowOutlet=Ze.first),n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Re._noDataRowOutlet=Ze.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Z,Re){2&Z&&n.\u0275\u0275classProp("cdk-table-fixed-layout",Re.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:V,useExisting:ue},{provide:b.k,useClass:b.yy},{provide:rt,useClass:yt},{provide:xe,useValue:null}])],ngContentSelectors:j,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Z,Re){1&Z&&(n.\u0275\u0275projectionDef(k),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0)(3,1)(4,2)(5,3))},dependencies:[Me,$,ne,ce],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),ue})();function xt(ue,Pe){return ue.concat(Array.from(Pe))}let kt=(()=>{class ue{constructor(Z,Re){this._table=Z,this._options=Re,this.justify="start",this._options=Re||{}}get name(){return this._name}set name(Z){this._name=Z,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((Z,Re)=>Z[Re])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const Z=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(Z):Z[0].toUpperCase()+Z.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return ue.\u0275fac=function(Z){return new(Z||ue)(n.\u0275\u0275directiveInject(dt,8),n.\u0275\u0275directiveInject(X,8))},ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["cdk-text-column"]],viewQuery:function(Z,Re){if(1&Z&&(n.\u0275\u0275viewQuery(q,7),n.\u0275\u0275viewQuery(re,7),n.\u0275\u0275viewQuery(me,7)),2&Z){let Ze;n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Re.columnDef=Ze.first),n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Re.cell=Ze.first),n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Re.headerCell=Ze.first)}},inputs:{name:"name",headerText:"headerText",dataAccessor:"dataAccessor",justify:"justify"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(Z,Re){1&Z&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,Y,2,3,"th",1),n.\u0275\u0275template(2,U,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},dependencies:[re,me,q,_e,ae],encapsulation:2}),ue})(),Zt=(()=>{class ue{}return ue.\u0275fac=function(Z){return new(Z||ue)},ue.\u0275mod=n.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=n.\u0275\u0275defineInjector({imports:[A.Cl]}),ue})();var Ne=a(508),$e=a(6451),ve=a(9841),fe=a(4004);const ee=[[["caption"]],[["colgroup"],["col"]]],oe=["caption","colgroup, col"];function L(ue,Pe){if(1&ue&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ue){const Z=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Z.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Z.headerText," ")}}function be(ue,Pe){if(1&ue&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ue){const Z=Pe.$implicit,Re=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Re.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Re.dataAccessor(Z,Re.name)," ")}}let ct=(()=>{class ue{}return ue.\u0275fac=function(Z){return new(Z||ue)},ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:b.k,useClass:b.eX}])]}),ue})(),ke=(()=>{class ue extends dt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(Z,Re){2&Z&&n.\u0275\u0275classProp("mat-table-fixed-layout",Re.fixedLayout)},exportAs:["matTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:b.k,useClass:b.yy},{provide:dt,useExisting:ue},{provide:V,useExisting:ue},{provide:rt,useClass:yt},{provide:xe,useValue:null}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:oe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Z,Re){1&Z&&(n.\u0275\u0275projectionDef(ee),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0)(3,1)(4,2)(5,3))},dependencies:[Me,$,ne,ce],styles:["mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),ue})(),pt=(()=>{class ue extends re{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","matCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:re,useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature]}),ue})(),se=(()=>{class ue extends me{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","matHeaderCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:me,useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature]}),ue})(),ye=(()=>{class ue extends we{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","matFooterCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:we,useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature]}),ue})(),qe=(()=>{class ue extends q{get name(){return this._name}set name(Z){this._setNameInput(Z)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n.\u0275\u0275ProvidersFeature([{provide:q,useExisting:ue},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature]}),ue})(),gt=(()=>{class ue extends ae{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ue})(),$t=(()=>{class ue extends de{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ue})(),on=(()=>{class ue extends _e{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ue})(),nn=(()=>{class ue extends at{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:at,useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature]}),ue})(),vn=(()=>{class ue extends Tt{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:Tt,useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature]}),ue})(),Ue=(()=>{class ue extends Ct{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n.\u0275\u0275ProvidersFeature([{provide:Ct,useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature]}),ue})(),Ve=(()=>{class ue extends It{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:It,useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Z,Re){1&Z&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ue})(),he=(()=>{class ue extends ze{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:ze,useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Z,Re){1&Z&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ue})(),Xe=(()=>{class ue extends Ae{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:Ae,useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Z,Re){1&Z&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ue})(),mt=(()=>{class ue extends je{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275dir=n.\u0275\u0275defineDirective({type:ue,selectors:[["ng-template","matNoDataRow",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:je,useExisting:ue}]),n.\u0275\u0275InheritDefinitionFeature]}),ue})(),_t=(()=>{class ue extends kt{}return ue.\u0275fac=function(){let Pe;return function(Re){return(Pe||(Pe=n.\u0275\u0275getInheritedFactory(ue)))(Re||ue)}}(),ue.\u0275cmp=n.\u0275\u0275defineComponent({type:ue,selectors:[["mat-text-column"]],features:[n.\u0275\u0275InheritDefinitionFeature],decls:3,vars:0,consts:[["matColumnDef",""],["mat-header-cell","",3,"text-align",4,"matHeaderCellDef"],["mat-cell","",3,"text-align",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""]],template:function(Z,Re){1&Z&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,L,2,3,"th",1),n.\u0275\u0275template(2,be,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},dependencies:[se,qe,pt,gt,on],encapsulation:2}),ue})(),Ht=(()=>{class ue{}return ue.\u0275fac=function(Z){return new(Z||ue)},ue.\u0275mod=n.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=n.\u0275\u0275defineInjector({imports:[Zt,Ne.MatCommonModule,Ne.MatCommonModule]}),ue})();class On extends b.o2{constructor(Pe=[]){super(),this._renderData=new f.X([]),this._filter=new f.X(""),this._internalPageChanges=new r.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(Z,Re)=>{const Ze=Z[Re];if((0,p.t6)(Ze)){const Dt=Number(Ze);return Dt<9007199254740991?Dt:Ze}return Ze},this.sortData=(Z,Re)=>{const Ze=Re.active,Dt=Re.direction;return Ze&&""!=Dt?Z.sort((Rt,Yt)=>{let Qt=this.sortingDataAccessor(Rt,Ze),ln=this.sortingDataAccessor(Yt,Ze);const hn=typeof Qt,gn=typeof ln;hn!==gn&&("number"===hn&&(Qt+=""),"number"===gn&&(ln+=""));let qt=0;return null!=Qt&&null!=ln?Qt>ln?qt=1:Qt<ln&&(qt=-1):null!=Qt?qt=1:null!=ln&&(qt=-1),qt*("asc"==Dt?1:-1)}):Z},this.filterPredicate=(Z,Re)=>{const Ze=Object.keys(Z).reduce((Rt,Yt)=>Rt+Z[Yt]+"\u25ec","").toLowerCase(),Dt=Re.trim().toLowerCase();return-1!=Ze.indexOf(Dt)},this._data=new f.X(Pe),this._updateChangeSubscription()}get data(){return this._data.value}set data(Pe){Pe=Array.isArray(Pe)?Pe:[],this._data.next(Pe),this._renderChangesSubscription||this._filterData(Pe)}get filter(){return this._filter.value}set filter(Pe){this._filter.next(Pe),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Pe){this._sort=Pe,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Pe){this._paginator=Pe,this._updateChangeSubscription()}_updateChangeSubscription(){var Pe;const Z=this._sort?(0,$e.T)(this._sort.sortChange,this._sort.initialized):(0,_.of)(null),Re=this._paginator?(0,$e.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,_.of)(null),Dt=(0,ve.a)([this._data,this._filter]).pipe((0,fe.U)(([Qt])=>this._filterData(Qt))),Rt=(0,ve.a)([Dt,Z]).pipe((0,fe.U)(([Qt])=>this._orderData(Qt))),Yt=(0,ve.a)([Rt,Re]).pipe((0,fe.U)(([Qt])=>this._pageData(Qt)));null===(Pe=this._renderChangesSubscription)||void 0===Pe||Pe.unsubscribe(),this._renderChangesSubscription=Yt.subscribe(Qt=>this._renderData.next(Qt))}_filterData(Pe){return this.filteredData=null==this.filter||""===this.filter?Pe:Pe.filter(Z=>this.filterPredicate(Z,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Pe){return this.sort?this.sortData(Pe.slice(),this.sort):Pe}_pageData(Pe){if(!this.paginator)return Pe;const Z=this.paginator.pageIndex*this.paginator.pageSize;return Pe.slice(Z,Z+this.paginator.pageSize)}_updatePaginator(Pe){Promise.resolve().then(()=>{const Z=this.paginator;if(Z&&(Z.length=Pe,Z.pageIndex>0)){const Re=Math.ceil(Z.length/Z.pageSize)-1||0,Ze=Math.min(Z.pageIndex,Re);Ze!==Z.pageIndex&&(Z.pageIndex=Ze,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Pe;null===(Pe=this._renderChangesSubscription)||void 0===Pe||Pe.unsubscribe(),this._renderChangesSubscription=null}}class _n extends On{}},3251:(H,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_TAB:()=>pe,MAT_TABS_CONFIG:()=>ge,MAT_TAB_GROUP:()=>Ye,MatInkBar:()=>It,MatTab:()=>z,MatTabBody:()=>Fe,MatTabBodyPortal:()=>Le,MatTabChangeEvent:()=>kt,MatTabContent:()=>Ae,MatTabGroup:()=>Ne,MatTabHeader:()=>dt,MatTabLabel:()=>We,MatTabLabelWrapper:()=>ht,MatTabLink:()=>L,MatTabNav:()=>fe,MatTabNavPanel:()=>be,MatTabsModule:()=>ct,_MAT_INK_BAR_POSITIONER:()=>Ct,_MatTabBodyBase:()=>Se,_MatTabGroupBase:()=>Zt,_MatTabHeaderBase:()=>He,_MatTabLinkBase:()=>oe,_MatTabNavBase:()=>ve,matTabsAnimations:()=>De});var n=a(5664),p=a(7144),b=a(7429),u=a(9808),r=a(5e3),c=a(508),f=a(5698),h=a(8675),m=a(1884),d=a(2722),_=a(3900),v=a(5684),y=a(7579),E=a(727),M=a(4968),A=a(9646),k=a(6451),j=a(515),Y=a(8306),U=a(5963),Q=a(1777),V=a(226),X=a(3191),re=a(1159),me=a(925),we=a(495);function tt(ke,pt){1&ke&&r.\u0275\u0275projection(0)}const G=["*"];function q(ke,pt){}const B=function(ke){return{animationDuration:ke}},ae=function(ke,pt){return{value:ke,params:pt}},de=["tabListContainer"],_e=["tabList"],it=["tabListInner"],rt=["nextPaginator"],yt=["previousPaginator"],Oe=["tabBodyWrapper"],ft=["tabHeader"];function wt(ke,pt){}function et(ke,pt){if(1&ke&&r.\u0275\u0275template(0,wt,0,0,"ng-template",10),2&ke){const se=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275property("cdkPortalOutlet",se.templateLabel)}}function at(ke,pt){if(1&ke&&r.\u0275\u0275text(0),2&ke){const se=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275textInterpolate(se.textLabel)}}function Ke(ke,pt){if(1&ke){const se=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",6),r.\u0275\u0275listener("click",function(){const qe=r.\u0275\u0275restoreView(se),gt=qe.$implicit,$t=qe.index,on=r.\u0275\u0275nextContext(),nn=r.\u0275\u0275reference(1);return r.\u0275\u0275resetView(on._handleClick(gt,nn,$t))})("cdkFocusChange",function(qe){const $t=r.\u0275\u0275restoreView(se).index,on=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(on._tabFocusChanged(qe,$t))}),r.\u0275\u0275elementStart(1,"div",7),r.\u0275\u0275template(2,et,1,1,"ng-template",8),r.\u0275\u0275template(3,at,1,1,"ng-template",null,9,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementEnd()()}if(2&ke){const se=pt.$implicit,ye=pt.index,qe=r.\u0275\u0275reference(4),gt=r.\u0275\u0275nextContext();r.\u0275\u0275classProp("mat-tab-label-active",gt.selectedIndex===ye),r.\u0275\u0275property("id",gt._getTabLabelId(ye))("ngClass",se.labelClass)("disabled",se.disabled)("matRippleDisabled",se.disabled||gt.disableRipple),r.\u0275\u0275attribute("tabIndex",gt._getTabIndex(se,ye))("aria-posinset",ye+1)("aria-setsize",gt._tabs.length)("aria-controls",gt._getTabContentId(ye))("aria-selected",gt.selectedIndex===ye)("aria-label",se.ariaLabel||null)("aria-labelledby",!se.ariaLabel&&se.ariaLabelledby?se.ariaLabelledby:null),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngIf",se.templateLabel)("ngIfElse",qe)}}function nt(ke,pt){if(1&ke){const se=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"mat-tab-body",11),r.\u0275\u0275listener("_onCentered",function(){r.\u0275\u0275restoreView(se);const qe=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(qe._removeTabBodyWrapperHeight())})("_onCentering",function(qe){r.\u0275\u0275restoreView(se);const gt=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(gt._setTabBodyWrapperHeight(qe))}),r.\u0275\u0275elementEnd()}if(2&ke){const se=pt.$implicit,ye=pt.index,qe=r.\u0275\u0275nextContext();r.\u0275\u0275classProp("mat-tab-body-active",qe.selectedIndex===ye),r.\u0275\u0275property("id",qe._getTabContentId(ye))("ngClass",se.bodyClass)("content",se.content)("position",se.position)("origin",se.origin)("animationDuration",qe.animationDuration)("preserveContent",qe.preserveContent),r.\u0275\u0275attribute("tabindex",null!=qe.contentTabIndex&&qe.selectedIndex===ye?qe.contentTabIndex:null)("aria-labelledby",qe._getTabLabelId(ye))}}const Tt=["mat-tab-nav-bar",""],Ct=new r.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function st(){return pt=>({left:pt?(pt.offsetLeft||0)+"px":"0",width:pt?(pt.offsetWidth||0)+"px":"0"})}});let It=(()=>{class ke{constructor(se,ye,qe,gt){this._elementRef=se,this._ngZone=ye,this._inkBarPositioner=qe,this._animationMode=gt}alignToElement(se){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(()=>{const ye=this._inkBarPositioner(se),qe=this._elementRef.nativeElement;qe.style.left=ye.left,qe.style.width=ye.width})})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(Ct),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(se,ye){2&se&&r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ye._animationMode)}}),ke})();const ze=new r.InjectionToken("MatTabContent");let Ae=(()=>{class ke{constructor(se){this.template=se}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.TemplateRef))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,selectors:[["","matTabContent",""]],features:[r.\u0275\u0275ProvidersFeature([{provide:ze,useExisting:ke}])]}),ke})();const je=new r.InjectionToken("MatTabLabel"),pe=new r.InjectionToken("MAT_TAB");let We=(()=>{class ke extends b.ig{constructor(se,ye,qe){super(se,ye),this._closestTab=qe}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.TemplateRef),r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(pe,8))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[r.\u0275\u0275ProvidersFeature([{provide:je,useExisting:ke}]),r.\u0275\u0275InheritDefinitionFeature]}),ke})();const Ie=(0,c.mixinDisabled)(class{}),Ye=new r.InjectionToken("MAT_TAB_GROUP");let z=(()=>{class ke extends Ie{constructor(se,ye){super(),this._viewContainerRef=se,this._closestTabGroup=ye,this.textLabel="",this._contentPortal=null,this._stateChanges=new y.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(se){this._setTemplateLabelInput(se)}get content(){return this._contentPortal}ngOnChanges(se){(se.hasOwnProperty("textLabel")||se.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new b.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(se){se&&se._closestTab===this&&(this._templateLabel=se)}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(Ye,8))},ke.\u0275cmp=r.\u0275\u0275defineComponent({type:ke,selectors:[["mat-tab"]],contentQueries:function(se,ye,qe){if(1&se&&(r.\u0275\u0275contentQuery(qe,je,5),r.\u0275\u0275contentQuery(qe,ze,7,r.TemplateRef)),2&se){let gt;r.\u0275\u0275queryRefresh(gt=r.\u0275\u0275loadQuery())&&(ye.templateLabel=gt.first),r.\u0275\u0275queryRefresh(gt=r.\u0275\u0275loadQuery())&&(ye._explicitContent=gt.first)}},viewQuery:function(se,ye){if(1&se&&r.\u0275\u0275viewQuery(r.TemplateRef,7),2&se){let qe;r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._implicitContent=qe.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[r.\u0275\u0275ProvidersFeature([{provide:pe,useExisting:ke}]),r.\u0275\u0275InheritDefinitionFeature,r.\u0275\u0275NgOnChangesFeature],ngContentSelectors:G,decls:1,vars:0,template:function(se,ye){1&se&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275template(0,tt,1,0,"ng-template"))},encapsulation:2}),ke})();const De={translateTab:(0,Q.X$)("translateTab",[(0,Q.SB)("center, void, left-origin-center, right-origin-center",(0,Q.oB)({transform:"none"})),(0,Q.SB)("left",(0,Q.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Q.SB)("right",(0,Q.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Q.eR)("* => left, * => right, left => center, right => center",(0,Q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,Q.eR)("void => left-origin-center",[(0,Q.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,Q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,Q.eR)("void => right-origin-center",[(0,Q.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,Q.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Le=(()=>{class ke extends b.Pl{constructor(se,ye,qe,gt){super(se,ye,gt),this._host=qe,this._centeringSub=E.w0.EMPTY,this._leavingSub=E.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,h.O)(this._host._isCenterPosition(this._host._position))).subscribe(se=>{se&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ComponentFactoryResolver),r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject((0,r.forwardRef)(()=>Fe)),r.\u0275\u0275directiveInject(u.DOCUMENT))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,selectors:[["","matTabBodyHost",""]],features:[r.\u0275\u0275InheritDefinitionFeature]}),ke})(),Se=(()=>{class ke{constructor(se,ye,qe){this._elementRef=se,this._dir=ye,this._dirChangeSubscription=E.w0.EMPTY,this._translateTabComplete=new y.x,this._onCentering=new r.EventEmitter,this._beforeCentering=new r.EventEmitter,this._afterLeavingCenter=new r.EventEmitter,this._onCentered=new r.EventEmitter(!0),this.animationDuration="500ms",this.preserveContent=!1,ye&&(this._dirChangeSubscription=ye.change.subscribe(gt=>{this._computePositionAnimationState(gt),qe.markForCheck()})),this._translateTabComplete.pipe((0,m.x)((gt,$t)=>gt.fromState===$t.fromState&&gt.toState===$t.toState)).subscribe(gt=>{this._isCenterPosition(gt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(gt.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(se){this._positionIndex=se,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(se){const ye=this._isCenterPosition(se.toState);this._beforeCentering.emit(ye),ye&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(se){return"center"==se||"left-origin-center"==se||"right-origin-center"==se}_computePositionAnimationState(se=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==se?"left":"right":this._positionIndex>0?"ltr"==se?"right":"left":"center"}_computePositionFromOrigin(se){const ye=this._getLayoutDirection();return"ltr"==ye&&se<=0||"rtl"==ye&&se>0?"left-origin-center":"right-origin-center"}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(V.Is,8),r.\u0275\u0275directiveInject(r.ChangeDetectorRef))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),ke})(),Fe=(()=>{class ke extends Se{constructor(se,ye,qe){super(se,ye,qe)}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(V.Is,8),r.\u0275\u0275directiveInject(r.ChangeDetectorRef))},ke.\u0275cmp=r.\u0275\u0275defineComponent({type:ke,selectors:[["mat-tab-body"]],viewQuery:function(se,ye){if(1&se&&r.\u0275\u0275viewQuery(b.Pl,5),2&se){let qe;r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._portalHost=qe.first)}},hostAttrs:[1,"mat-tab-body"],features:[r.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(se,ye){1&se&&(r.\u0275\u0275elementStart(0,"div",0,1),r.\u0275\u0275listener("@translateTab.start",function(gt){return ye._onTranslateTabStarted(gt)})("@translateTab.done",function(gt){return ye._translateTabComplete.next(gt)}),r.\u0275\u0275template(2,q,0,0,"ng-template",2),r.\u0275\u0275elementEnd()),2&se&&r.\u0275\u0275property("@translateTab",r.\u0275\u0275pureFunction2(3,ae,ye._position,r.\u0275\u0275pureFunction1(1,B,ye.animationDuration)))},dependencies:[Le],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[De.translateTab]}}),ke})();const ge=new r.InjectionToken("MAT_TABS_CONFIG"),xe=(0,c.mixinDisabled)(class{});let ht=(()=>{class ke extends xe{constructor(se){super(),this.elementRef=se}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(se,ye){2&se&&(r.\u0275\u0275attribute("aria-disabled",!!ye.disabled),r.\u0275\u0275classProp("mat-tab-disabled",ye.disabled))},inputs:{disabled:"disabled"},features:[r.\u0275\u0275InheritDefinitionFeature]}),ke})();const Me=(0,me.i$)({passive:!0});let Te=(()=>{class ke{constructor(se,ye,qe,gt,$t,on,nn){this._elementRef=se,this._changeDetectorRef=ye,this._viewportRuler=qe,this._dir=gt,this._ngZone=$t,this._platform=on,this._animationMode=nn,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new y.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new y.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new r.EventEmitter,this.indexFocused=new r.EventEmitter,$t.runOutsideAngular(()=>{(0,M.R)(se.nativeElement,"mouseleave").pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get disablePagination(){return this._disablePagination}set disablePagination(se){this._disablePagination=(0,X.Ig)(se)}get selectedIndex(){return this._selectedIndex}set selectedIndex(se){se=(0,X.su)(se),this._selectedIndex!=se&&(this._selectedIndexChanged=!0,this._selectedIndex=se,this._keyManager&&this._keyManager.updateActiveItem(se))}ngAfterViewInit(){(0,M.R)(this._previousPaginator.nativeElement,"touchstart",Me).pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,M.R)(this._nextPaginator.nativeElement,"touchstart",Me).pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const se=this._dir?this._dir.change:(0,A.of)("ltr"),ye=this._viewportRuler.change(150),qe=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new n.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(qe),(0,k.T)(se,ye,this._items.changes,this._itemsResized()).pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),qe()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,d.R)(this._destroyed)).subscribe(gt=>{this.indexFocused.emit(gt),this._setTabFocus(gt)})}_itemsResized(){return"function"!=typeof ResizeObserver?j.E:this._items.changes.pipe((0,h.O)(this._items),(0,_.w)(se=>new Y.y(ye=>this._ngZone.runOutsideAngular(()=>{const qe=new ResizeObserver(()=>{ye.next()});return se.forEach(gt=>{qe.observe(gt.elementRef.nativeElement)}),()=>{qe.disconnect()}}))),(0,v.T)(1))}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(se){if(!(0,re.Vb)(se))switch(se.keyCode){case re.K5:case re.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(se));break;default:this._keyManager.onKeydown(se)}}_onContentChanges(){const se=this._elementRef.nativeElement.textContent;se!==this._currentTextContent&&(this._currentTextContent=se||"",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(se){!this._isValidIndex(se)||this.focusIndex===se||!this._keyManager||this._keyManager.setActiveItem(se)}_isValidIndex(se){if(!this._items)return!0;const ye=this._items?this._items.toArray()[se]:null;return!!ye&&!ye.disabled}_setTabFocus(se){if(this._showPaginationControls&&this._scrollToLabel(se),this._items&&this._items.length){this._items.toArray()[se].focus();const ye=this._tabListContainer.nativeElement;ye.scrollLeft="ltr"==this._getLayoutDirection()?0:ye.scrollWidth-ye.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const se=this.scrollDistance,ye="ltr"===this._getLayoutDirection()?-se:se;this._tabList.nativeElement.style.transform=`translateX(${Math.round(ye)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(se){this._scrollTo(se)}_scrollHeader(se){return this._scrollTo(this._scrollDistance+("before"==se?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(se){this._stopInterval(),this._scrollHeader(se)}_scrollToLabel(se){if(this.disablePagination)return;const ye=this._items?this._items.toArray()[se]:null;if(!ye)return;const qe=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:gt,offsetWidth:$t}=ye.elementRef.nativeElement;let on,nn;"ltr"==this._getLayoutDirection()?(on=gt,nn=on+$t):(nn=this._tabListInner.nativeElement.offsetWidth-gt,on=nn-$t);const vn=this.scrollDistance,Ue=this.scrollDistance+qe;on<vn?this.scrollDistance-=vn-on+60:nn>Ue&&(this.scrollDistance+=nn-Ue+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const se=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;se||(this.scrollDistance=0),se!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=se}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const se=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,ye=se?se.elementRef.nativeElement:null;ye?this._inkBar.alignToElement(ye):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(se,ye){ye&&null!=ye.button&&0!==ye.button||(this._stopInterval(),(0,U.H)(650,100).pipe((0,d.R)((0,k.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:qe,distance:gt}=this._scrollHeader(se);(0===gt||gt>=qe)&&this._stopInterval()}))}_scrollTo(se){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const ye=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(ye,se)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:ye,distance:this._scrollDistance}}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(we.rL),r.\u0275\u0275directiveInject(V.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(me.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,inputs:{disablePagination:"disablePagination"}}),ke})(),He=(()=>{class ke extends Te{constructor(se,ye,qe,gt,$t,on,nn){super(se,ye,qe,gt,$t,on,nn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(se){this._disableRipple=(0,X.Ig)(se)}_itemSelected(se){se.preventDefault()}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(we.rL),r.\u0275\u0275directiveInject(V.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(me.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,inputs:{disableRipple:"disableRipple"},features:[r.\u0275\u0275InheritDefinitionFeature]}),ke})(),dt=(()=>{class ke extends He{constructor(se,ye,qe,gt,$t,on,nn){super(se,ye,qe,gt,$t,on,nn)}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(we.rL),r.\u0275\u0275directiveInject(V.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(me.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275cmp=r.\u0275\u0275defineComponent({type:ke,selectors:[["mat-tab-header"]],contentQueries:function(se,ye,qe){if(1&se&&r.\u0275\u0275contentQuery(qe,ht,4),2&se){let gt;r.\u0275\u0275queryRefresh(gt=r.\u0275\u0275loadQuery())&&(ye._items=gt)}},viewQuery:function(se,ye){if(1&se&&(r.\u0275\u0275viewQuery(It,7),r.\u0275\u0275viewQuery(de,7),r.\u0275\u0275viewQuery(_e,7),r.\u0275\u0275viewQuery(it,7),r.\u0275\u0275viewQuery(rt,5),r.\u0275\u0275viewQuery(yt,5)),2&se){let qe;r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._inkBar=qe.first),r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._tabListContainer=qe.first),r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._tabList=qe.first),r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._tabListInner=qe.first),r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._nextPaginator=qe.first),r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._previousPaginator=qe.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(se,ye){2&se&&r.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",ye._showPaginationControls)("mat-tab-header-rtl","rtl"==ye._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[r.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:G,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(se,ye){1&se&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275elementStart(0,"button",0,1),r.\u0275\u0275listener("click",function(){return ye._handlePaginatorClick("before")})("mousedown",function(gt){return ye._handlePaginatorPress("before",gt)})("touchend",function(){return ye._stopInterval()}),r.\u0275\u0275element(2,"div",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",3,4),r.\u0275\u0275listener("keydown",function(gt){return ye._handleKeydown(gt)}),r.\u0275\u0275elementStart(5,"div",5,6),r.\u0275\u0275listener("cdkObserveContent",function(){return ye._onContentChanges()}),r.\u0275\u0275elementStart(7,"div",7,8),r.\u0275\u0275projection(9),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(10,"mat-ink-bar"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(11,"button",9,10),r.\u0275\u0275listener("mousedown",function(gt){return ye._handlePaginatorPress("after",gt)})("click",function(){return ye._handlePaginatorClick("after")})("touchend",function(){return ye._stopInterval()}),r.\u0275\u0275element(13,"div",2),r.\u0275\u0275elementEnd()),2&se&&(r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",ye._disableScrollBefore),r.\u0275\u0275property("matRippleDisabled",ye._disableScrollBefore||ye.disableRipple)("disabled",ye._disableScrollBefore||null),r.\u0275\u0275advance(5),r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ye._animationMode),r.\u0275\u0275advance(6),r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",ye._disableScrollAfter),r.\u0275\u0275property("matRippleDisabled",ye._disableScrollAfter||ye.disableRipple)("disabled",ye._disableScrollAfter||null))},dependencies:[c.MatRipple,p.wD,It],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.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-tab-list._mat-animation-noopable{transition:none !important;animation:none !important}.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}.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}.mat-tab-label::before{margin:5px}@media(max-width: 599px){.mat-tab-label{min-width:72px}}"],encapsulation:2}),ke})(),xt=0;class kt{}const Bt=(0,c.mixinColor)((0,c.mixinDisableRipple)(class{constructor(ke){this._elementRef=ke}}),"primary");let Zt=(()=>{class ke extends Bt{constructor(se,ye,qe,gt){var $t;super(se),this._changeDetectorRef=ye,this._animationMode=gt,this._tabs=new r.QueryList,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=E.w0.EMPTY,this._tabLabelSubscription=E.w0.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new r.EventEmitter,this.focusChange=new r.EventEmitter,this.animationDone=new r.EventEmitter,this.selectedTabChange=new r.EventEmitter(!0),this._groupId=xt++,this.animationDuration=qe&&qe.animationDuration?qe.animationDuration:"500ms",this.disablePagination=!(!qe||null==qe.disablePagination)&&qe.disablePagination,this.dynamicHeight=!(!qe||null==qe.dynamicHeight)&&qe.dynamicHeight,this.contentTabIndex=null!==($t=null==qe?void 0:qe.contentTabIndex)&&void 0!==$t?$t:null,this.preserveContent=!(null==qe||!qe.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(se){this._dynamicHeight=(0,X.Ig)(se)}get selectedIndex(){return this._selectedIndex}set selectedIndex(se){this._indexToSelect=(0,X.su)(se,null)}get animationDuration(){return this._animationDuration}set animationDuration(se){this._animationDuration=/^\d+$/.test(se+"")?se+"ms":se}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(se){this._contentTabIndex=(0,X.su)(se,null)}get disablePagination(){return this._disablePagination}set disablePagination(se){this._disablePagination=(0,X.Ig)(se)}get preserveContent(){return this._preserveContent}set preserveContent(se){this._preserveContent=(0,X.Ig)(se)}get backgroundColor(){return this._backgroundColor}set backgroundColor(se){const ye=this._elementRef.nativeElement;ye.classList.remove(`mat-background-${this.backgroundColor}`),se&&ye.classList.add(`mat-background-${se}`),this._backgroundColor=se}ngAfterContentChecked(){const se=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=se){const ye=null==this._selectedIndex;if(!ye){this.selectedTabChange.emit(this._createChangeEvent(se));const qe=this._tabBodyWrapper.nativeElement;qe.style.minHeight=qe.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((qe,gt)=>qe.isActive=gt===se),ye||(this.selectedIndexChange.emit(se),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((ye,qe)=>{ye.position=qe-se,null!=this._selectedIndex&&0==ye.position&&!ye.origin&&(ye.origin=se-this._selectedIndex)}),this._selectedIndex!==se&&(this._selectedIndex=se,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const se=this._clampTabIndex(this._indexToSelect);if(se===this._selectedIndex){const ye=this._tabs.toArray();let qe;for(let gt=0;gt<ye.length;gt++)if(ye[gt].isActive){this._indexToSelect=this._selectedIndex=gt,this._lastFocusedTabIndex=null,qe=ye[gt];break}!qe&&ye[se]&&Promise.resolve().then(()=>{ye[se].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(se))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,h.O)(this._allTabs)).subscribe(se=>{this._tabs.reset(se.filter(ye=>ye._closestTabGroup===this||!ye._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(se){const ye=this._tabHeader;ye&&(ye.focusIndex=se)}_focusChanged(se){this._lastFocusedTabIndex=se,this.focusChange.emit(this._createChangeEvent(se))}_createChangeEvent(se){const ye=new kt;return ye.index=se,this._tabs&&this._tabs.length&&(ye.tab=this._tabs.toArray()[se]),ye}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,k.T)(...this._tabs.map(se=>se._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(se){return Math.min(this._tabs.length-1,Math.max(se||0,0))}_getTabLabelId(se){return`mat-tab-label-${this._groupId}-${se}`}_getTabContentId(se){return`mat-tab-content-${this._groupId}-${se}`}_setTabBodyWrapperHeight(se){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const ye=this._tabBodyWrapper.nativeElement;ye.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(ye.style.height=se+"px")}_removeTabBodyWrapperHeight(){const se=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=se.clientHeight,se.style.height="",this.animationDone.emit()}_handleClick(se,ye,qe){se.disabled||(this.selectedIndex=ye.focusIndex=qe)}_getTabIndex(se,ye){var qe;return se.disabled?null:ye===(null!==(qe=this._lastFocusedTabIndex)&&void 0!==qe?qe:this.selectedIndex)?0:-1}_tabFocusChanged(se,ye){se&&"mouse"!==se&&"touch"!==se&&(this._tabHeader.focusIndex=ye)}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(ge,8),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[r.\u0275\u0275InheritDefinitionFeature]}),ke})(),Ne=(()=>{class ke extends Zt{constructor(se,ye,qe,gt){super(se,ye,qe,gt)}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(ge,8),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275cmp=r.\u0275\u0275defineComponent({type:ke,selectors:[["mat-tab-group"]],contentQueries:function(se,ye,qe){if(1&se&&r.\u0275\u0275contentQuery(qe,z,5),2&se){let gt;r.\u0275\u0275queryRefresh(gt=r.\u0275\u0275loadQuery())&&(ye._allTabs=gt)}},viewQuery:function(se,ye){if(1&se&&(r.\u0275\u0275viewQuery(Oe,5),r.\u0275\u0275viewQuery(ft,5)),2&se){let qe;r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._tabBodyWrapper=qe.first),r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._tabHeader=qe.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(se,ye){2&se&&r.\u0275\u0275classProp("mat-tab-group-dynamic-height",ye.dynamicHeight)("mat-tab-group-inverted-header","below"===ye.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[r.\u0275\u0275ProvidersFeature([{provide:Ye,useExisting:ke}]),r.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"]],template:function(se,ye){1&se&&(r.\u0275\u0275elementStart(0,"mat-tab-header",0,1),r.\u0275\u0275listener("indexFocused",function(gt){return ye._focusChanged(gt)})("selectFocusedIndex",function(gt){return ye.selectedIndex=gt}),r.\u0275\u0275template(2,Ke,5,15,"div",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",3,4),r.\u0275\u0275template(5,nt,1,11,"mat-tab-body",5),r.\u0275\u0275elementEnd()),2&se&&(r.\u0275\u0275property("selectedIndex",ye.selectedIndex||0)("disableRipple",ye.disableRipple)("disablePagination",ye.disablePagination),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",ye._tabs),r.\u0275\u0275advance(1),r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ye._animationMode),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",ye._tabs))},dependencies:[u.NgClass,u.NgForOf,u.NgIf,b.Pl,c.MatRipple,n.kH,ht,Fe,dt],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}.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-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}.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}"],encapsulation:2}),ke})(),$e=0,ve=(()=>{class ke extends Te{constructor(se,ye,qe,gt,$t,on,nn){super(se,gt,$t,ye,qe,on,nn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(se){const ye=this._elementRef.nativeElement.classList;ye.remove(`mat-background-${this.backgroundColor}`),se&&ye.add(`mat-background-${se}`),this._backgroundColor=se}get disableRipple(){return this._disableRipple}set disableRipple(se){this._disableRipple=(0,X.Ig)(se)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,h.O)(null),(0,d.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const se=this._items.toArray();for(let ye=0;ye<se.length;ye++)if(se[ye].active)return this.selectedIndex=ye,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=se[ye].id));this.selectedIndex=-1,this._inkBar.hide()}_getRole(){return this.tabPanel?"tablist":this._elementRef.nativeElement.getAttribute("role")}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(V.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(we.rL),r.\u0275\u0275directiveInject(me.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,inputs:{backgroundColor:"backgroundColor",disableRipple:"disableRipple",color:"color",tabPanel:"tabPanel"},features:[r.\u0275\u0275InheritDefinitionFeature]}),ke})(),fe=(()=>{class ke extends ve{constructor(se,ye,qe,gt,$t,on,nn){super(se,ye,qe,gt,$t,on,nn)}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(V.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(we.rL),r.\u0275\u0275directiveInject(me.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275cmp=r.\u0275\u0275defineComponent({type:ke,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(se,ye,qe){if(1&se&&r.\u0275\u0275contentQuery(qe,L,5),2&se){let gt;r.\u0275\u0275queryRefresh(gt=r.\u0275\u0275loadQuery())&&(ye._items=gt)}},viewQuery:function(se,ye){if(1&se&&(r.\u0275\u0275viewQuery(It,7),r.\u0275\u0275viewQuery(de,7),r.\u0275\u0275viewQuery(_e,7),r.\u0275\u0275viewQuery(it,7),r.\u0275\u0275viewQuery(rt,5),r.\u0275\u0275viewQuery(yt,5)),2&se){let qe;r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._inkBar=qe.first),r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._tabListContainer=qe.first),r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._tabList=qe.first),r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._tabListInner=qe.first),r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._nextPaginator=qe.first),r.\u0275\u0275queryRefresh(qe=r.\u0275\u0275loadQuery())&&(ye._previousPaginator=qe.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(se,ye){2&se&&(r.\u0275\u0275attribute("role",ye._getRole()),r.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",ye._showPaginationControls)("mat-tab-header-rtl","rtl"==ye._getLayoutDirection())("mat-primary","warn"!==ye.color&&"accent"!==ye.color)("mat-accent","accent"===ye.color)("mat-warn","warn"===ye.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[r.\u0275\u0275InheritDefinitionFeature],attrs:Tt,ngContentSelectors:G,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(se,ye){1&se&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275elementStart(0,"button",0,1),r.\u0275\u0275listener("click",function(){return ye._handlePaginatorClick("before")})("mousedown",function(gt){return ye._handlePaginatorPress("before",gt)})("touchend",function(){return ye._stopInterval()}),r.\u0275\u0275element(2,"div",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",3,4),r.\u0275\u0275listener("keydown",function(gt){return ye._handleKeydown(gt)}),r.\u0275\u0275elementStart(5,"div",5,6),r.\u0275\u0275listener("cdkObserveContent",function(){return ye._onContentChanges()}),r.\u0275\u0275elementStart(7,"div",7,8),r.\u0275\u0275projection(9),r.\u0275\u0275elementEnd(),r.\u0275\u0275element(10,"mat-ink-bar"),r.\u0275\u0275elementEnd()(),r.\u0275\u0275elementStart(11,"button",9,10),r.\u0275\u0275listener("mousedown",function(gt){return ye._handlePaginatorPress("after",gt)})("click",function(){return ye._handlePaginatorClick("after")})("touchend",function(){return ye._stopInterval()}),r.\u0275\u0275element(13,"div",2),r.\u0275\u0275elementEnd()),2&se&&(r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",ye._disableScrollBefore),r.\u0275\u0275property("matRippleDisabled",ye._disableScrollBefore||ye.disableRipple)("disabled",ye._disableScrollBefore||null),r.\u0275\u0275advance(5),r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ye._animationMode),r.\u0275\u0275advance(6),r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",ye._disableScrollAfter),r.\u0275\u0275property("matRippleDisabled",ye._disableScrollAfter||ye.disableRipple)("disabled",ye._disableScrollAfter||null))},dependencies:[c.MatRipple,p.wD,It],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar._mat-animation-noopable{transition:none !important;animation:none !important}.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:rgba(0,0,0,0)}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.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}.mat-tab-link::before{margin:5px}@media(max-width: 599px){.mat-tab-link{min-width:72px}}"],encapsulation:2}),ke})();const ee=(0,c.mixinTabIndex)((0,c.mixinDisableRipple)((0,c.mixinDisabled)(class{})));let oe=(()=>{class ke extends ee{constructor(se,ye,qe,gt,$t,on){super(),this._tabNavBar=se,this.elementRef=ye,this._focusMonitor=$t,this._isActive=!1,this.id="mat-tab-link-"+$e++,this.rippleConfig=qe||{},this.tabIndex=parseInt(gt)||0,"NoopAnimations"===on&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(se){const ye=(0,X.Ig)(se);ye!==this._isActive&&(this._isActive=ye,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(se){this._tabNavBar.tabPanel&&se.keyCode===re.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var se;return this._tabNavBar.tabPanel?null===(se=this._tabNavBar.tabPanel)||void 0===se?void 0:se.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive&&!this.disabled?0:-1:this.tabIndex}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(ve),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(c.MAT_RIPPLE_GLOBAL_OPTIONS,8),r.\u0275\u0275injectAttribute("tabindex"),r.\u0275\u0275directiveInject(n.tE),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,inputs:{active:"active",id:"id"},features:[r.\u0275\u0275InheritDefinitionFeature]}),ke})(),L=(()=>{class ke extends oe{constructor(se,ye,qe,gt,$t,on,nn,vn){super(se,ye,$t,on,nn,vn),this._tabLinkRipple=new c.RippleRenderer(this,qe,ye,gt),this._tabLinkRipple.setupTriggerEvents(ye.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(fe),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(me.t4),r.\u0275\u0275directiveInject(c.MAT_RIPPLE_GLOBAL_OPTIONS,8),r.\u0275\u0275injectAttribute("tabindex"),r.\u0275\u0275directiveInject(n.tE),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(se,ye){1&se&&r.\u0275\u0275listener("focus",function(){return ye._handleFocus()})("keydown",function(gt){return ye._handleKeydown(gt)}),2&se&&(r.\u0275\u0275attribute("aria-controls",ye._getAriaControls())("aria-current",ye._getAriaCurrent())("aria-disabled",ye.disabled)("aria-selected",ye._getAriaSelected())("id",ye.id)("tabIndex",ye._getTabIndex())("role",ye._getRole()),r.\u0275\u0275classProp("mat-tab-disabled",ye.disabled)("mat-tab-label-active",ye.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[r.\u0275\u0275InheritDefinitionFeature]}),ke})(),be=(()=>{class ke{constructor(){this.id="mat-tab-nav-panel-"+$e++}}return ke.\u0275fac=function(se){return new(se||ke)},ke.\u0275cmp=r.\u0275\u0275defineComponent({type:ke,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-tab-nav-panel"],hostVars:2,hostBindings:function(se,ye){2&se&&r.\u0275\u0275attribute("aria-labelledby",ye._activeTabId)("id",ye.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:G,decls:1,vars:0,template:function(se,ye){1&se&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ke})(),ct=(()=>{class ke{}return ke.\u0275fac=function(se){return new(se||ke)},ke.\u0275mod=r.\u0275\u0275defineNgModule({type:ke}),ke.\u0275inj=r.\u0275\u0275defineInjector({imports:[u.CommonModule,c.MatCommonModule,b.eL,c.MatRippleModule,p.Q8,n.rt,c.MatCommonModule]}),ke})()},7238:(H,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>tt,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>G,MAT_TOOLTIP_SCROLL_STRATEGY:()=>re,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>me,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>we,MatTooltip:()=>B,MatTooltipModule:()=>_e,SCROLL_THROTTLE_MS:()=>j,TOOLTIP_PANEL_CLASS:()=>Y,TooltipComponent:()=>de,_MatTooltipBase:()=>q,_TooltipComponentBase:()=>ae,getMatTooltipInvalidPositionError:()=>X,matTooltipAnimations:()=>it});var n=a(1314),p=a(5664),b=a(9808),u=a(5e3),r=a(508),c=a(495),f=a(3191),h=a(1159),m=a(5113),d=a(925),_=a(7429),v=a(7579),y=a(2722),E=a(5698),M=a(226),A=a(1777);const k=["tooltip"],j=20,Y="mat-tooltip-panel",U="tooltip-panel",Q=(0,d.i$)({passive:!0});function X(rt){return Error(`Tooltip position "${rt}" is invalid.`)}const re=new u.InjectionToken("mat-tooltip-scroll-strategy");function me(rt){return()=>rt.scrollStrategies.reposition({scrollThrottle:j})}const we={provide:re,deps:[n.aV],useFactory:me},tt=new u.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:G});function G(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let q=(()=>{class rt{constructor(Oe,ft,wt,et,at,Ke,nt,Tt,Ct,st,It,ze){this._overlay=Oe,this._elementRef=ft,this._scrollDispatcher=wt,this._viewContainerRef=et,this._ngZone=at,this._platform=Ke,this._ariaDescriber=nt,this._focusMonitor=Tt,this._dir=st,this._defaultOptions=It,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 v.x,this._scrollStrategy=Ct,this._document=ze,It&&(It.position&&(this.position=It.position),It.touchGestures&&(this.touchGestures=It.touchGestures)),st.change.pipe((0,y.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(Oe){var ft;Oe!==this._position&&(this._position=Oe,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(ft=this._tooltipInstance)||void 0===ft||ft.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(Oe){this._disabled=(0,f.Ig)(Oe),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(Oe){this._showDelay=(0,f.su)(Oe)}get hideDelay(){return this._hideDelay}set hideDelay(Oe){this._hideDelay=(0,f.su)(Oe),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(Oe){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=Oe?String(Oe).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(Oe){this._tooltipClass=Oe,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,y.R)(this._destroyed)).subscribe(Oe=>{Oe?"keyboard"===Oe&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const Oe=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([ft,wt])=>{Oe.removeEventListener(ft,wt,Q)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(Oe,this.message,"tooltip"),this._focusMonitor.stopMonitoring(Oe)}show(Oe=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const ft=this._createOverlay();this._detach(),this._portal=this._portal||new _.C5(this._tooltipComponent,this._viewContainerRef);const wt=this._tooltipInstance=ft.attach(this._portal).instance;wt._triggerElement=this._elementRef.nativeElement,wt._mouseLeaveHideDelay=this._hideDelay,wt.afterHidden().pipe((0,y.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),wt.show(Oe)}hide(Oe=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(Oe)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var Oe;if(this._overlayRef)return this._overlayRef;const ft=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),wt=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ft);return wt.positionChanges.pipe((0,y.R)(this._destroyed)).subscribe(et=>{this._updateCurrentPositionClass(et.connectionPair),this._tooltipInstance&&et.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:wt,panelClass:`${this._cssClassPrefix}-${U}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,y.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,y.R)(this._destroyed)).subscribe(()=>{var et;return null===(et=this._tooltipInstance)||void 0===et?void 0:et._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,y.R)(this._destroyed)).subscribe(et=>{this._isTooltipVisible()&&et.keyCode===h.hY&&!(0,h.Vb)(et)&&(et.preventDefault(),et.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),!(null===(Oe=this._defaultOptions)||void 0===Oe)&&Oe.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(Oe){const ft=Oe.getConfig().positionStrategy,wt=this._getOrigin(),et=this._getOverlayPosition();ft.withPositions([this._addOffset(Object.assign(Object.assign({},wt.main),et.main)),this._addOffset(Object.assign(Object.assign({},wt.fallback),et.fallback))])}_addOffset(Oe){return Oe}_getOrigin(){const Oe=!this._dir||"ltr"==this._dir.value,ft=this.position;let wt;"above"==ft||"below"==ft?wt={originX:"center",originY:"above"==ft?"top":"bottom"}:"before"==ft||"left"==ft&&Oe||"right"==ft&&!Oe?wt={originX:"start",originY:"center"}:("after"==ft||"right"==ft&&Oe||"left"==ft&&!Oe)&&(wt={originX:"end",originY:"center"});const{x:et,y:at}=this._invertPosition(wt.originX,wt.originY);return{main:wt,fallback:{originX:et,originY:at}}}_getOverlayPosition(){const Oe=!this._dir||"ltr"==this._dir.value,ft=this.position;let wt;"above"==ft?wt={overlayX:"center",overlayY:"bottom"}:"below"==ft?wt={overlayX:"center",overlayY:"top"}:"before"==ft||"left"==ft&&Oe||"right"==ft&&!Oe?wt={overlayX:"end",overlayY:"center"}:("after"==ft||"right"==ft&&Oe||"left"==ft&&!Oe)&&(wt={overlayX:"start",overlayY:"center"});const{x:et,y:at}=this._invertPosition(wt.overlayX,wt.overlayY);return{main:wt,fallback:{overlayX:et,overlayY:at}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,E.q)(1),(0,y.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(Oe){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=Oe,this._tooltipInstance._markForCheck())}_invertPosition(Oe,ft){return"above"===this.position||"below"===this.position?"top"===ft?ft="bottom":"bottom"===ft&&(ft="top"):"end"===Oe?Oe="start":"start"===Oe&&(Oe="end"),{x:Oe,y:ft}}_updateCurrentPositionClass(Oe){const{overlayY:ft,originX:wt,originY:et}=Oe;let at;if(at="center"===ft?this._dir&&"rtl"===this._dir.value?"end"===wt?"left":"right":"start"===wt?"left":"right":"bottom"===ft&&"top"===et?"above":"below",at!==this._currentPosition){const Ke=this._overlayRef;if(Ke){const nt=`${this._cssClassPrefix}-${U}-`;Ke.removePanelClass(nt+this._currentPosition),Ke.addPanelClass(nt+at)}this._currentPosition=at}}_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 Oe=[];if(this._platformSupportsMouseEvents())Oe.push(["mouseleave",ft=>{var wt;const et=ft.relatedTarget;(!et||null===(wt=this._overlayRef)||void 0===wt||!wt.overlayElement.contains(et))&&this.hide()}],["wheel",ft=>this._wheelListener(ft)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const ft=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};Oe.push(["touchend",ft],["touchcancel",ft])}this._addListeners(Oe),this._passiveListeners.push(...Oe)}_addListeners(Oe){Oe.forEach(([ft,wt])=>{this._elementRef.nativeElement.addEventListener(ft,wt,Q)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Oe){if(this._isTooltipVisible()){const ft=this._document.elementFromPoint(Oe.clientX,Oe.clientY),wt=this._elementRef.nativeElement;ft!==wt&&!wt.contains(ft)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Oe=this.touchGestures;if("off"!==Oe){const ft=this._elementRef.nativeElement,wt=ft.style;("on"===Oe||"INPUT"!==ft.nodeName&&"TEXTAREA"!==ft.nodeName)&&(wt.userSelect=wt.msUserSelect=wt.webkitUserSelect=wt.MozUserSelect="none"),("on"===Oe||!ft.draggable)&&(wt.webkitUserDrag="none"),wt.touchAction="none",wt.webkitTapHighlightColor="transparent"}}}return rt.\u0275fac=function(Oe){u.\u0275\u0275invalidFactory()},rt.\u0275dir=u.\u0275\u0275defineDirective({type:rt,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),rt})(),B=(()=>{class rt extends q{constructor(Oe,ft,wt,et,at,Ke,nt,Tt,Ct,st,It,ze){super(Oe,ft,wt,et,at,Ke,nt,Tt,Ct,st,It,ze),this._tooltipComponent=de}}return rt.\u0275fac=function(Oe){return new(Oe||rt)(u.\u0275\u0275directiveInject(n.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(c.mF),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(d.t4),u.\u0275\u0275directiveInject(p.$s),u.\u0275\u0275directiveInject(p.tE),u.\u0275\u0275directiveInject(re),u.\u0275\u0275directiveInject(M.Is,8),u.\u0275\u0275directiveInject(tt,8),u.\u0275\u0275directiveInject(b.DOCUMENT))},rt.\u0275dir=u.\u0275\u0275defineDirective({type:rt,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[u.\u0275\u0275InheritDefinitionFeature]}),rt})(),ae=(()=>{class rt{constructor(Oe,ft){this._changeDetectorRef=Oe,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new v.x,this._animationsDisabled="NoopAnimations"===ft}show(Oe){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},Oe)}hide(Oe){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},Oe)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:Oe}){(!Oe||!this._triggerElement.contains(Oe))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:Oe}){(Oe===this._showAnimation||Oe===this._hideAnimation)&&this._finalizeAnimation(Oe===this._showAnimation)}_finalizeAnimation(Oe){Oe?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(Oe){const ft=this._tooltip.nativeElement,wt=this._showAnimation,et=this._hideAnimation;if(ft.classList.remove(Oe?et:wt),ft.classList.add(Oe?wt:et),this._isVisible=Oe,Oe&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const at=getComputedStyle(ft);("0s"===at.getPropertyValue("animation-duration")||"none"===at.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}Oe&&this._onShow(),this._animationsDisabled&&(ft.classList.add("_mat-animation-noopable"),this._finalizeAnimation(Oe))}}return rt.\u0275fac=function(Oe){return new(Oe||rt)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},rt.\u0275dir=u.\u0275\u0275defineDirective({type:rt}),rt})(),de=(()=>{class rt extends ae{constructor(Oe,ft,wt){super(Oe,wt),this._breakpointObserver=ft,this._isHandset=this._breakpointObserver.observe(m.Breakpoints.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return rt.\u0275fac=function(Oe){return new(Oe||rt)(u.\u0275\u0275directiveInject(u.ChangeDetectorRef),u.\u0275\u0275directiveInject(m.BreakpointObserver),u.\u0275\u0275directiveInject(u.ANIMATION_MODULE_TYPE,8))},rt.\u0275cmp=u.\u0275\u0275defineComponent({type:rt,selectors:[["mat-tooltip-component"]],viewQuery:function(Oe,ft){if(1&Oe&&u.\u0275\u0275viewQuery(k,7),2&Oe){let wt;u.\u0275\u0275queryRefresh(wt=u.\u0275\u0275loadQuery())&&(ft._tooltip=wt.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(Oe,ft){1&Oe&&u.\u0275\u0275listener("mouseleave",function(et){return ft._handleMouseLeave(et)}),2&Oe&&u.\u0275\u0275styleProp("zoom",ft.isVisible()?1:null)},features:[u.\u0275\u0275InheritDefinitionFeature],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(Oe,ft){if(1&Oe&&(u.\u0275\u0275elementStart(0,"div",0,1),u.\u0275\u0275listener("animationend",function(et){return ft._handleAnimationEnd(et)}),u.\u0275\u0275pipe(2,"async"),u.\u0275\u0275text(3),u.\u0275\u0275elementEnd()),2&Oe){let wt;u.\u0275\u0275classProp("mat-tooltip-handset",null==(wt=u.\u0275\u0275pipeBind1(2,4,ft._isHandset))?null:wt.matches),u.\u0275\u0275property("ngClass",ft.tooltipClass),u.\u0275\u0275advance(3),u.\u0275\u0275textInterpolate(ft.message)}},dependencies:[b.NgClass,b.AsyncPipe],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),rt})(),_e=(()=>{class rt{}return rt.\u0275fac=function(Oe){return new(Oe||rt)},rt.\u0275mod=u.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=u.\u0275\u0275defineInjector({providers:[we],imports:[p.rt,b.CommonModule,n.U8,r.MatCommonModule,r.MatCommonModule,c.ZD]}),rt})();const it={tooltipState:(0,A.X$)("state",[(0,A.SB)("initial, void, hidden",(0,A.oB)({opacity:0,transform:"scale(0)"})),(0,A.SB)("visible",(0,A.oB)({transform:"scale(1)"})),(0,A.eR)("* => visible",(0,A.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,A.F4)([(0,A.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,A.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,A.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,A.eR)("* => hidden",(0,A.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,A.oB)({opacity:0})))])}},6360:(H,o,a)=>{"use strict";a.r(o),a.d(o,{ANIMATION_MODULE_TYPE:()=>n.ANIMATION_MODULE_TYPE,BrowserAnimationsModule:()=>ts,NoopAnimationsModule:()=>ns,provideAnimations:()=>Vs,provideNoopAnimations:()=>za,\u0275AnimationRenderer:()=>ci,\u0275AnimationRendererFactory:()=>yi,\u0275BrowserAnimationBuilder:()=>O,\u0275BrowserAnimationFactory:()=>S,\u0275InjectableAnimationEngine:()=>Wi});var n=a(5e3),p=a(2313),b=a(1777);function r(W){return new n.\u0275RuntimeError(3e3,!1)}function Ke(){return"undefined"!=typeof window&&void 0!==window.document}function nt(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Tt(W){switch(W.length){case 0:return new b.ZN;case 1:return W[0];default:return new b.ZE(W)}}function Ct(W,D,T,P,K=new Map,Ce=new Map){const Ge=[],Qe=[];let lt=-1,Et=null;if(P.forEach(Nt=>{const Ft=Nt.get("offset"),cn=Ft==lt,un=cn&&Et||new Map;Nt.forEach((en,rn)=>{let En=rn,Sn=en;if("offset"!==rn)switch(En=D.normalizePropertyName(En,Ge),Sn){case b.k1:Sn=K.get(rn);break;case b.l3:Sn=Ce.get(rn);break;default:Sn=D.normalizeStyleValue(rn,En,Sn,Ge)}un.set(En,Sn)}),cn||Qe.push(un),Et=un,lt=Ft}),Ge.length)throw function q(W){return new n.\u0275RuntimeError(3502,!1)}();return Qe}function st(W,D,T,P){switch(D){case"start":W.onStart(()=>P(T&&It(T,"start",W)));break;case"done":W.onDone(()=>P(T&&It(T,"done",W)));break;case"destroy":W.onDestroy(()=>P(T&&It(T,"destroy",W)))}}function It(W,D,T){const P=T.totalTime,Ce=ze(W.element,W.triggerName,W.fromState,W.toState,D||W.phaseName,null==P?W.totalTime:P,!!T.disabled),Ge=W._data;return null!=Ge&&(Ce._data=Ge),Ce}function ze(W,D,T,P,K="",Ce=0,Ge){return{element:W,triggerName:D,fromState:T,toState:P,phaseName:K,totalTime:Ce,disabled:!!Ge}}function Ae(W,D,T){let P=W.get(D);return P||W.set(D,P=T),P}function je(W){const D=W.indexOf(":");return[W.substring(1,D),W.slice(D+1)]}let pe=(W,D)=>!1,We=(W,D,T)=>[],Ie=null;function Ye(W){const D=W.parentNode||W.host;return D===Ie?null:D}(nt()||"undefined"!=typeof Element)&&(Ke()?(Ie=(()=>document.documentElement)(),pe=(W,D)=>{for(;D;){if(D===W)return!0;D=Ye(D)}return!1}):pe=(W,D)=>W.contains(D),We=(W,D,T)=>{if(T)return Array.from(W.querySelectorAll(D));const P=W.querySelector(D);return P?[P]:[]});let Le=null,Se=!1;const ht=pe,Me=We;let ne=(()=>{class W{validateStyleProperty(T){return function Fe(W){Le||(Le=function xe(){return"undefined"!=typeof document?document.body:null}()||{},Se=!!Le.style&&"WebkitAppearance"in Le.style);let D=!0;return Le.style&&!function De(W){return"ebkit"==W.substring(1,6)}(W)&&(D=W in Le.style,!D&&Se&&(D="Webkit"+W.charAt(0).toUpperCase()+W.slice(1)in Le.style)),D}(T)}matchesElement(T,P){return!1}containsElement(T,P){return ht(T,P)}getParentElement(T){return Ye(T)}query(T,P,K){return Me(T,P,K)}computeStyle(T,P,K){return K||""}animate(T,P,K,Ce,Ge,Qe=[],lt){return new b.ZN(K,Ce)}}return W.\u0275fac=function(T){return new(T||W)},W.\u0275prov=n.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac}),W})(),ce=(()=>{class W{}return W.NOOP=new ne,W})();const xt="ng-enter",kt="ng-leave",Bt="ng-trigger",Zt=".ng-trigger",Ne="ng-animating",$e=".ng-animating";function ve(W){if("number"==typeof W)return W;const D=W.match(/^(-?[\.\d]+)(m?s)/);return!D||D.length<2?0:fe(parseFloat(D[1]),D[2])}function fe(W,D){return"s"===D?1e3*W:W}function ee(W,D,T){return W.hasOwnProperty("duration")?W:function oe(W,D,T){let K,Ce=0,Ge="";if("string"==typeof W){const Qe=W.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Qe)return D.push(r()),{duration:0,delay:0,easing:""};K=fe(parseFloat(Qe[1]),Qe[2]);const lt=Qe[3];null!=lt&&(Ce=fe(parseFloat(lt),Qe[4]));const Et=Qe[5];Et&&(Ge=Et)}else K=W;if(!T){let Qe=!1,lt=D.length;K<0&&(D.push(function c(){return new n.\u0275RuntimeError(3100,!1)}()),Qe=!0),Ce<0&&(D.push(function f(){return new n.\u0275RuntimeError(3101,!1)}()),Qe=!0),Qe&&D.splice(lt,0,r())}return{duration:K,delay:Ce,easing:Ge}}(W,D,T)}function L(W,D={}){return Object.keys(W).forEach(T=>{D[T]=W[T]}),D}function be(W){const D=new Map;return Object.keys(W).forEach(T=>{D.set(T,W[T])}),D}function pt(W,D=new Map,T){if(T)for(let[P,K]of T)D.set(P,K);for(let[P,K]of W)D.set(P,K);return D}function se(W,D,T){return T?D+":"+T+";":""}function ye(W){let D="";for(let T=0;T<W.style.length;T++){const P=W.style.item(T);D+=se(0,P,W.style.getPropertyValue(P))}for(const T in W.style)W.style.hasOwnProperty(T)&&!T.startsWith("_")&&(D+=se(0,mt(T),W.style[T]));W.setAttribute("style",D)}function qe(W,D,T){W.style&&(D.forEach((P,K)=>{const Ce=Xe(K);T&&!T.has(K)&&T.set(K,W.style[Ce]),W.style[Ce]=P}),nt()&&ye(W))}function gt(W,D){W.style&&(D.forEach((T,P)=>{const K=Xe(P);W.style[K]=""}),nt()&&ye(W))}function $t(W){return Array.isArray(W)?1==W.length?W[0]:(0,b.vP)(W):W}const nn=new RegExp("{{\\s*(.+?)\\s*}}","g");function vn(W){let D=[];if("string"==typeof W){let T;for(;T=nn.exec(W);)D.push(T[1]);nn.lastIndex=0}return D}function Ue(W,D,T){const P=W.toString(),K=P.replace(nn,(Ce,Ge)=>{let Qe=D[Ge];return null==Qe&&(T.push(function m(W){return new n.\u0275RuntimeError(3003,!1)}()),Qe=""),Qe.toString()});return K==P?W:K}function Ve(W){const D=[];let T=W.next();for(;!T.done;)D.push(T.value),T=W.next();return D}const he=/-+([a-z0-9])/g;function Xe(W){return W.replace(he,(...D)=>D[1].toUpperCase())}function mt(W){return W.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Ht(W,D,T){switch(D.type){case 7:return W.visitTrigger(D,T);case 0:return W.visitState(D,T);case 1:return W.visitTransition(D,T);case 2:return W.visitSequence(D,T);case 3:return W.visitGroup(D,T);case 4:return W.visitAnimate(D,T);case 5:return W.visitKeyframes(D,T);case 6:return W.visitStyle(D,T);case 8:return W.visitReference(D,T);case 9:return W.visitAnimateChild(D,T);case 10:return W.visitAnimateRef(D,T);case 11:return W.visitQuery(D,T);case 12:return W.visitStagger(D,T);default:throw function d(W){return new n.\u0275RuntimeError(3004,!1)}()}}function dn(W,D){return window.getComputedStyle(W)[D]}function Rt(W,D){const T=[];return"string"==typeof W?W.split(/\s*,\s*/).forEach(P=>function Yt(W,D,T){if(":"==W[0]){const lt=function Qt(W,D){switch(W){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(T,P)=>parseFloat(P)>parseFloat(T);case":decrement":return(T,P)=>parseFloat(P)<parseFloat(T);default:return D.push(function me(W){return new n.\u0275RuntimeError(3016,!1)}()),"* => *"}}(W,T);if("function"==typeof lt)return void D.push(lt);W=lt}const P=W.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==P||P.length<4)return T.push(function re(W){return new n.\u0275RuntimeError(3015,!1)}()),D;const K=P[1],Ce=P[2],Ge=P[3];D.push(gn(K,Ge));"<"==Ce[0]&&!("*"==K&&"*"==Ge)&&D.push(gn(Ge,K))}(P,T,D)):T.push(W),T}const ln=new Set(["true","1"]),hn=new Set(["false","0"]);function gn(W,D){const T=ln.has(W)||hn.has(W),P=ln.has(D)||hn.has(D);return(K,Ce)=>{let Ge="*"==W||W==K,Qe="*"==D||D==Ce;return!Ge&&T&&"boolean"==typeof K&&(Ge=K?ln.has(W):hn.has(W)),!Qe&&P&&"boolean"==typeof Ce&&(Qe=Ce?ln.has(D):hn.has(D)),Ge&&Qe}}const Rn=new RegExp("s*:selfs*,?","g");function ni(W,D,T,P){return new xn(W).build(D,T,P)}class xn{constructor(D){this._driver=D}build(D,T,P){const K=new Wn(T);return this._resetContextStyleTimingState(K),Ht(this,$t(D),K)}_resetContextStyleTimingState(D){D.currentQuerySelector="",D.collectedStyles=new Map,D.collectedStyles.set("",new Map),D.currentTime=0}visitTrigger(D,T){let P=T.queryCount=0,K=T.depCount=0;const Ce=[],Ge=[];return"@"==D.name.charAt(0)&&T.errors.push(function v(){return new n.\u0275RuntimeError(3006,!1)}()),D.definitions.forEach(Qe=>{if(this._resetContextStyleTimingState(T),0==Qe.type){const lt=Qe,Et=lt.name;Et.toString().split(/\s*,\s*/).forEach(Nt=>{lt.name=Nt,Ce.push(this.visitState(lt,T))}),lt.name=Et}else if(1==Qe.type){const lt=this.visitTransition(Qe,T);P+=lt.queryCount,K+=lt.depCount,Ge.push(lt)}else T.errors.push(function y(){return new n.\u0275RuntimeError(3007,!1)}())}),{type:7,name:D.name,states:Ce,transitions:Ge,queryCount:P,depCount:K,options:null}}visitState(D,T){const P=this.visitStyle(D.styles,T),K=D.options&&D.options.params||null;if(P.containsDynamicStyles){const Ce=new Set,Ge=K||{};P.styles.forEach(Qe=>{Qe instanceof Map&&Qe.forEach(lt=>{vn(lt).forEach(Et=>{Ge.hasOwnProperty(Et)||Ce.add(Et)})})}),Ce.size&&(Ve(Ce.values()),T.errors.push(function E(W,D){return new n.\u0275RuntimeError(3008,!1)}()))}return{type:0,name:D.name,style:P,options:K?{params:K}:null}}visitTransition(D,T){T.queryCount=0,T.depCount=0;const P=Ht(this,$t(D.animation),T);return{type:1,matchers:Rt(D.expr,T.errors),animation:P,queryCount:T.queryCount,depCount:T.depCount,options:Zn(D.options)}}visitSequence(D,T){return{type:2,steps:D.steps.map(P=>Ht(this,P,T)),options:Zn(D.options)}}visitGroup(D,T){const P=T.currentTime;let K=0;const Ce=D.steps.map(Ge=>{T.currentTime=P;const Qe=Ht(this,Ge,T);return K=Math.max(K,T.currentTime),Qe});return T.currentTime=K,{type:3,steps:Ce,options:Zn(D.options)}}visitAnimate(D,T){const P=function Si(W,D){if(W.hasOwnProperty("duration"))return W;if("number"==typeof W)return Hn(ee(W,D).duration,0,"");const T=W;if(T.split(/\s+/).some(Ce=>"{"==Ce.charAt(0)&&"{"==Ce.charAt(1))){const Ce=Hn(0,0,"");return Ce.dynamic=!0,Ce.strValue=T,Ce}const K=ee(T,D);return Hn(K.duration,K.delay,K.easing)}(D.timings,T.errors);T.currentAnimateTimings=P;let K,Ce=D.styles?D.styles:(0,b.oB)({});if(5==Ce.type)K=this.visitKeyframes(Ce,T);else{let Ge=D.styles,Qe=!1;if(!Ge){Qe=!0;const Et={};P.easing&&(Et.easing=P.easing),Ge=(0,b.oB)(Et)}T.currentTime+=P.duration+P.delay;const lt=this.visitStyle(Ge,T);lt.isEmptyStep=Qe,K=lt}return T.currentAnimateTimings=null,{type:4,timings:P,style:K,options:null}}visitStyle(D,T){const P=this._makeStyleAst(D,T);return this._validateStyleAst(P,T),P}_makeStyleAst(D,T){const P=[],K=Array.isArray(D.styles)?D.styles:[D.styles];for(let Qe of K)"string"==typeof Qe?Qe===b.l3?P.push(Qe):T.errors.push(new n.\u0275RuntimeError(3002,!1)):P.push(be(Qe));let Ce=!1,Ge=null;return P.forEach(Qe=>{if(Qe instanceof Map&&(Qe.has("easing")&&(Ge=Qe.get("easing"),Qe.delete("easing")),!Ce))for(let lt of Qe.values())if(lt.toString().indexOf("{{")>=0){Ce=!0;break}}),{type:6,styles:P,easing:Ge,offset:D.offset,containsDynamicStyles:Ce,options:null}}_validateStyleAst(D,T){const P=T.currentAnimateTimings;let K=T.currentTime,Ce=T.currentTime;P&&Ce>0&&(Ce-=P.duration+P.delay),D.styles.forEach(Ge=>{"string"!=typeof Ge&&Ge.forEach((Qe,lt)=>{const Et=T.collectedStyles.get(T.currentQuerySelector),Nt=Et.get(lt);let Ft=!0;Nt&&(Ce!=K&&Ce>=Nt.startTime&&K<=Nt.endTime&&(T.errors.push(function k(W,D,T,P,K){return new n.\u0275RuntimeError(3010,!1)}()),Ft=!1),Ce=Nt.startTime),Ft&&Et.set(lt,{startTime:Ce,endTime:K}),T.options&&function on(W,D,T){const P=D.params||{},K=vn(W);K.length&&K.forEach(Ce=>{P.hasOwnProperty(Ce)||T.push(function h(W){return new n.\u0275RuntimeError(3001,!1)}())})}(Qe,T.options,T.errors)})})}visitKeyframes(D,T){const P={type:5,styles:[],options:null};if(!T.currentAnimateTimings)return T.errors.push(function j(){return new n.\u0275RuntimeError(3011,!1)}()),P;let Ce=0;const Ge=[];let Qe=!1,lt=!1,Et=0;const Nt=D.steps.map(Sn=>{const Un=this._makeStyleAst(Sn,T);let qn=null!=Un.offset?Un.offset:function Qi(W){if("string"==typeof W)return null;let D=null;if(Array.isArray(W))W.forEach(T=>{if(T instanceof Map&&T.has("offset")){const P=T;D=parseFloat(P.get("offset")),P.delete("offset")}});else if(W instanceof Map&&W.has("offset")){const T=W;D=parseFloat(T.get("offset")),T.delete("offset")}return D}(Un.styles),$n=0;return null!=qn&&(Ce++,$n=Un.offset=qn),lt=lt||$n<0||$n>1,Qe=Qe||$n<Et,Et=$n,Ge.push($n),Un});lt&&T.errors.push(function Y(){return new n.\u0275RuntimeError(3012,!1)}()),Qe&&T.errors.push(function U(){return new n.\u0275RuntimeError(3200,!1)}());const Ft=D.steps.length;let cn=0;Ce>0&&Ce<Ft?T.errors.push(function Q(){return new n.\u0275RuntimeError(3202,!1)}()):0==Ce&&(cn=1/(Ft-1));const un=Ft-1,en=T.currentTime,rn=T.currentAnimateTimings,En=rn.duration;return Nt.forEach((Sn,Un)=>{const qn=cn>0?Un==un?1:cn*Un:Ge[Un],$n=qn*En;T.currentTime=en+rn.delay+$n,rn.duration=$n,this._validateStyleAst(Sn,T),Sn.offset=qn,P.styles.push(Sn)}),P}visitReference(D,T){return{type:8,animation:Ht(this,$t(D.animation),T),options:Zn(D.options)}}visitAnimateChild(D,T){return T.depCount++,{type:9,options:Zn(D.options)}}visitAnimateRef(D,T){return{type:10,animation:this.visitReference(D.animation,T),options:Zn(D.options)}}visitQuery(D,T){const P=T.currentQuerySelector,K=D.options||{};T.queryCount++,T.currentQuery=D;const[Ce,Ge]=function si(W){const D=!!W.split(/\s*,\s*/).find(T=>":self"==T);return D&&(W=W.replace(Rn,"")),W=W.replace(/@\*/g,Zt).replace(/@\w+/g,T=>Zt+"-"+T.slice(1)).replace(/:animating/g,$e),[W,D]}(D.selector);T.currentQuerySelector=P.length?P+" "+Ce:Ce,Ae(T.collectedStyles,T.currentQuerySelector,new Map);const Qe=Ht(this,$t(D.animation),T);return T.currentQuery=null,T.currentQuerySelector=P,{type:11,selector:Ce,limit:K.limit||0,optional:!!K.optional,includeSelf:Ge,animation:Qe,originalSelector:D.selector,options:Zn(D.options)}}visitStagger(D,T){T.currentQuery||T.errors.push(function V(){return new n.\u0275RuntimeError(3013,!1)}());const P="full"===D.timings?{duration:0,delay:0,easing:"full"}:ee(D.timings,T.errors,!0);return{type:12,animation:Ht(this,$t(D.animation),T),timings:P,options:null}}}class Wn{constructor(D){this.errors=D,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function Zn(W){return W?(W=L(W)).params&&(W.params=function In(W){return W?L(W):null}(W.params)):W={},W}function Hn(W,D,T){return{duration:W,delay:D,easing:T}}function Ci(W,D,T,P,K,Ce,Ge=null,Qe=!1){return{type:1,element:W,keyframes:D,preStyleProps:T,postStyleProps:P,duration:K,delay:Ce,totalTime:K+Ce,easing:Ge,subTimeline:Qe}}class fr{constructor(){this._map=new Map}get(D){return this._map.get(D)||[]}append(D,T){let P=this._map.get(D);P||this._map.set(D,P=[]),P.push(...T)}has(D){return this._map.has(D)}clear(){this._map.clear()}}const hr=new RegExp(":enter","g"),xr=new RegExp(":leave","g");function Jn(W,D,T,P,K,Ce=new Map,Ge=new Map,Qe,lt,Et=[]){return(new qr).buildKeyframes(W,D,T,P,K,Ce,Ge,Qe,lt,Et)}class qr{buildKeyframes(D,T,P,K,Ce,Ge,Qe,lt,Et,Nt=[]){Et=Et||new fr;const Ft=new pr(D,T,Et,K,Ce,Nt,[]);Ft.options=lt;const cn=lt.delay?ve(lt.delay):0;Ft.currentTimeline.delayNextStep(cn),Ft.currentTimeline.setStyles([Ge],null,Ft.errors,lt),Ht(this,P,Ft);const un=Ft.timelines.filter(en=>en.containsAnimation());if(un.length&&Qe.size){let en;for(let rn=un.length-1;rn>=0;rn--){const En=un[rn];if(En.element===T){en=En;break}}en&&!en.allowOnlyTimelineStyles()&&en.setStyles([Qe],null,Ft.errors,lt)}return un.length?un.map(en=>en.buildKeyframes()):[Ci(T,[],[],[],0,cn,"",!1)]}visitTrigger(D,T){}visitState(D,T){}visitTransition(D,T){}visitAnimateChild(D,T){const P=T.subInstructions.get(T.element);if(P){const K=T.createSubContext(D.options),Ce=T.currentTimeline.currentTime,Ge=this._visitSubInstructions(P,K,K.options);Ce!=Ge&&T.transformIntoNewTimeline(Ge)}T.previousNode=D}visitAnimateRef(D,T){const P=T.createSubContext(D.options);P.transformIntoNewTimeline(),this.visitReference(D.animation,P),T.transformIntoNewTimeline(P.currentTimeline.currentTime),T.previousNode=D}_visitSubInstructions(D,T,P){let Ce=T.currentTimeline.currentTime;const Ge=null!=P.duration?ve(P.duration):null,Qe=null!=P.delay?ve(P.delay):null;return 0!==Ge&&D.forEach(lt=>{const Et=T.appendInstructionToTimeline(lt,Ge,Qe);Ce=Math.max(Ce,Et.duration+Et.delay)}),Ce}visitReference(D,T){T.updateOptions(D.options,!0),Ht(this,D.animation,T),T.previousNode=D}visitSequence(D,T){const P=T.subContextCount;let K=T;const Ce=D.options;if(Ce&&(Ce.params||Ce.delay)&&(K=T.createSubContext(Ce),K.transformIntoNewTimeline(),null!=Ce.delay)){6==K.previousNode.type&&(K.currentTimeline.snapshotCurrentStyles(),K.previousNode=Hi);const Ge=ve(Ce.delay);K.delayNextStep(Ge)}D.steps.length&&(D.steps.forEach(Ge=>Ht(this,Ge,K)),K.currentTimeline.applyStylesToKeyframe(),K.subContextCount>P&&K.transformIntoNewTimeline()),T.previousNode=D}visitGroup(D,T){const P=[];let K=T.currentTimeline.currentTime;const Ce=D.options&&D.options.delay?ve(D.options.delay):0;D.steps.forEach(Ge=>{const Qe=T.createSubContext(D.options);Ce&&Qe.delayNextStep(Ce),Ht(this,Ge,Qe),K=Math.max(K,Qe.currentTimeline.currentTime),P.push(Qe.currentTimeline)}),P.forEach(Ge=>T.currentTimeline.mergeTimelineCollectedStyles(Ge)),T.transformIntoNewTimeline(K),T.previousNode=D}_visitTiming(D,T){if(D.dynamic){const P=D.strValue;return ee(T.params?Ue(P,T.params,T.errors):P,T.errors)}return{duration:D.duration,delay:D.delay,easing:D.easing}}visitAnimate(D,T){const P=T.currentAnimateTimings=this._visitTiming(D.timings,T),K=T.currentTimeline;P.delay&&(T.incrementTime(P.delay),K.snapshotCurrentStyles());const Ce=D.style;5==Ce.type?this.visitKeyframes(Ce,T):(T.incrementTime(P.duration),this.visitStyle(Ce,T),K.applyStylesToKeyframe()),T.currentAnimateTimings=null,T.previousNode=D}visitStyle(D,T){const P=T.currentTimeline,K=T.currentAnimateTimings;!K&&P.hasCurrentStyleProperties()&&P.forwardFrame();const Ce=K&&K.easing||D.easing;D.isEmptyStep?P.applyEmptyStep(Ce):P.setStyles(D.styles,Ce,T.errors,T.options),T.previousNode=D}visitKeyframes(D,T){const P=T.currentAnimateTimings,K=T.currentTimeline.duration,Ce=P.duration,Qe=T.createSubContext().currentTimeline;Qe.easing=P.easing,D.styles.forEach(lt=>{Qe.forwardTime((lt.offset||0)*Ce),Qe.setStyles(lt.styles,lt.easing,T.errors,T.options),Qe.applyStylesToKeyframe()}),T.currentTimeline.mergeTimelineCollectedStyles(Qe),T.transformIntoNewTimeline(K+Ce),T.previousNode=D}visitQuery(D,T){const P=T.currentTimeline.currentTime,K=D.options||{},Ce=K.delay?ve(K.delay):0;Ce&&(6===T.previousNode.type||0==P&&T.currentTimeline.hasCurrentStyleProperties())&&(T.currentTimeline.snapshotCurrentStyles(),T.previousNode=Hi);let Ge=P;const Qe=T.invokeQuery(D.selector,D.originalSelector,D.limit,D.includeSelf,!!K.optional,T.errors);T.currentQueryTotal=Qe.length;let lt=null;Qe.forEach((Et,Nt)=>{T.currentQueryIndex=Nt;const Ft=T.createSubContext(D.options,Et);Ce&&Ft.delayNextStep(Ce),Et===T.element&&(lt=Ft.currentTimeline),Ht(this,D.animation,Ft),Ft.currentTimeline.applyStylesToKeyframe(),Ge=Math.max(Ge,Ft.currentTimeline.currentTime)}),T.currentQueryIndex=0,T.currentQueryTotal=0,T.transformIntoNewTimeline(Ge),lt&&(T.currentTimeline.mergeTimelineCollectedStyles(lt),T.currentTimeline.snapshotCurrentStyles()),T.previousNode=D}visitStagger(D,T){const P=T.parentContext,K=T.currentTimeline,Ce=D.timings,Ge=Math.abs(Ce.duration),Qe=Ge*(T.currentQueryTotal-1);let lt=Ge*T.currentQueryIndex;switch(Ce.duration<0?"reverse":Ce.easing){case"reverse":lt=Qe-lt;break;case"full":lt=P.currentStaggerTime}const Nt=T.currentTimeline;lt&&Nt.delayNextStep(lt);const Ft=Nt.currentTime;Ht(this,D.animation,T),T.previousNode=D,P.currentStaggerTime=K.currentTime-Ft+(K.startTime-P.currentTimeline.startTime)}}const Hi={};class pr{constructor(D,T,P,K,Ce,Ge,Qe,lt){this._driver=D,this.element=T,this.subInstructions=P,this._enterClassName=K,this._leaveClassName=Ce,this.errors=Ge,this.timelines=Qe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Hi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=lt||new Ii(this._driver,T,0),Qe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(D,T){if(!D)return;const P=D;let K=this.options;null!=P.duration&&(K.duration=ve(P.duration)),null!=P.delay&&(K.delay=ve(P.delay));const Ce=P.params;if(Ce){let Ge=K.params;Ge||(Ge=this.options.params={}),Object.keys(Ce).forEach(Qe=>{(!T||!Ge.hasOwnProperty(Qe))&&(Ge[Qe]=Ue(Ce[Qe],Ge,this.errors))})}}_copyOptions(){const D={};if(this.options){const T=this.options.params;if(T){const P=D.params={};Object.keys(T).forEach(K=>{P[K]=T[K]})}}return D}createSubContext(D=null,T,P){const K=T||this.element,Ce=new pr(this._driver,K,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(K,P||0));return Ce.previousNode=this.previousNode,Ce.currentAnimateTimings=this.currentAnimateTimings,Ce.options=this._copyOptions(),Ce.updateOptions(D),Ce.currentQueryIndex=this.currentQueryIndex,Ce.currentQueryTotal=this.currentQueryTotal,Ce.parentContext=this,this.subContextCount++,Ce}transformIntoNewTimeline(D){return this.previousNode=Hi,this.currentTimeline=this.currentTimeline.fork(this.element,D),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(D,T,P){const K={duration:null!=T?T:D.duration,delay:this.currentTimeline.currentTime+(null!=P?P:0)+D.delay,easing:""},Ce=new Fr(this._driver,D.element,D.keyframes,D.preStyleProps,D.postStyleProps,K,D.stretchStartingKeyframe);return this.timelines.push(Ce),K}incrementTime(D){this.currentTimeline.forwardTime(this.currentTimeline.duration+D)}delayNextStep(D){D>0&&this.currentTimeline.delayNextStep(D)}invokeQuery(D,T,P,K,Ce,Ge){let Qe=[];if(K&&Qe.push(this.element),D.length>0){D=(D=D.replace(hr,"."+this._enterClassName)).replace(xr,"."+this._leaveClassName);let Et=this._driver.query(this.element,D,1!=P);0!==P&&(Et=P<0?Et.slice(Et.length+P,Et.length):Et.slice(0,P)),Qe.push(...Et)}return!Ce&&0==Qe.length&&Ge.push(function X(W){return new n.\u0275RuntimeError(3014,!1)}()),Qe}}class Ii{constructor(D,T,P,K){this._driver=D,this.element=T,this.startTime=P,this._elementTimelineStylesLookup=K,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(T),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(T,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(D){const T=1===this._keyframes.size&&this._pendingStyles.size;this.duration||T?(this.forwardTime(this.currentTime+D),T&&this.snapshotCurrentStyles()):this.startTime+=D}fork(D,T){return this.applyStylesToKeyframe(),new Ii(this._driver,D,T||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(D){this.applyStylesToKeyframe(),this.duration=D,this._loadKeyframe()}_updateStyle(D,T){this._localTimelineStyles.set(D,T),this._globalTimelineStyles.set(D,T),this._styleSummary.set(D,{time:this.currentTime,value:T})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(D){D&&this._previousKeyframe.set("easing",D);for(let[T,P]of this._globalTimelineStyles)this._backFill.set(T,P||b.l3),this._currentKeyframe.set(T,b.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(D,T,P,K){var Ce;T&&this._previousKeyframe.set("easing",T);const Ge=K&&K.params||{},Qe=function mr(W,D){const T=new Map;let P;return W.forEach(K=>{if("*"===K){P=P||D.keys();for(let Ce of P)T.set(Ce,b.l3)}else pt(K,T)}),T}(D,this._globalTimelineStyles);for(let[lt,Et]of Qe){const Nt=Ue(Et,Ge,P);this._pendingStyles.set(lt,Nt),this._localTimelineStyles.has(lt)||this._backFill.set(lt,null!==(Ce=this._globalTimelineStyles.get(lt))&&void 0!==Ce?Ce:b.l3),this._updateStyle(lt,Nt)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((D,T)=>{this._currentKeyframe.set(T,D)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((D,T)=>{this._currentKeyframe.has(T)||this._currentKeyframe.set(T,D)}))}snapshotCurrentStyles(){for(let[D,T]of this._localTimelineStyles)this._pendingStyles.set(D,T),this._updateStyle(D,T)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const D=[];for(let T in this._currentKeyframe)D.push(T);return D}mergeTimelineCollectedStyles(D){D._styleSummary.forEach((T,P)=>{const K=this._styleSummary.get(P);(!K||T.time>K.time)&&this._updateStyle(P,T.value)})}buildKeyframes(){this.applyStylesToKeyframe();const D=new Set,T=new Set,P=1===this._keyframes.size&&0===this.duration;let K=[];this._keyframes.forEach((Qe,lt)=>{const Et=pt(Qe,new Map,this._backFill);Et.forEach((Nt,Ft)=>{Nt===b.k1?D.add(Ft):Nt===b.l3&&T.add(Ft)}),P||Et.set("offset",lt/this.duration),K.push(Et)});const Ce=D.size?Ve(D.values()):[],Ge=T.size?Ve(T.values()):[];if(P){const Qe=K[0],lt=new Map(Qe);Qe.set("offset",0),lt.set("offset",1),K=[Qe,lt]}return Ci(this.element,K,Ce,Ge,this.duration,this.startTime,this.easing,!1)}}class Fr extends Ii{constructor(D,T,P,K,Ce,Ge,Qe=!1){super(D,T,Ge.delay),this.keyframes=P,this.preStyleProps=K,this.postStyleProps=Ce,this._stretchStartingKeyframe=Qe,this.timings={duration:Ge.duration,delay:Ge.delay,easing:Ge.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let D=this.keyframes,{delay:T,duration:P,easing:K}=this.timings;if(this._stretchStartingKeyframe&&T){const Ce=[],Ge=P+T,Qe=T/Ge,lt=pt(D[0]);lt.set("offset",0),Ce.push(lt);const Et=pt(D[0]);Et.set("offset",Ui(Qe)),Ce.push(Et);const Nt=D.length-1;for(let Ft=1;Ft<=Nt;Ft++){let cn=pt(D[Ft]);const un=cn.get("offset");cn.set("offset",Ui((T+un*P)/Ge)),Ce.push(cn)}P=Ge,T=0,K="",D=Ce}return Ci(this.element,D,this.preStyleProps,this.postStyleProps,P,T,K,!0)}}function Ui(W,D=3){const T=Math.pow(10,D-1);return Math.round(W*T)/T}class Oi{}const Di=new Set(["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"]);class Zi extends Oi{normalizePropertyName(D,T){return Xe(D)}normalizeStyleValue(D,T,P,K){let Ce="";const Ge=P.toString().trim();if(Di.has(T)&&0!==P&&"0"!==P)if("number"==typeof P)Ce="px";else{const Qe=P.match(/^[+-]?[\d\.]+([a-z]*)$/);Qe&&0==Qe[1].length&&K.push(function _(W,D){return new n.\u0275RuntimeError(3005,!1)}())}return Ge+Ce}}function Ai(W,D,T,P,K,Ce,Ge,Qe,lt,Et,Nt,Ft,cn){return{type:0,element:W,triggerName:D,isRemovalTransition:K,fromState:T,fromStyles:Ce,toState:P,toStyles:Ge,timelines:Qe,queriedElements:lt,preStyleProps:Et,postStyleProps:Nt,totalTime:Ft,errors:cn}}const Ji={};class Pi{constructor(D,T,P){this._triggerName=D,this.ast=T,this._stateStyles=P}match(D,T,P,K){return function Xi(W,D,T,P,K){return W.some(Ce=>Ce(D,T,P,K))}(this.ast.matchers,D,T,P,K)}buildStyles(D,T,P){let K=this._stateStyles.get("*");return void 0!==D&&(K=this._stateStyles.get(null==D?void 0:D.toString())||K),K?K.buildStyles(T,P):new Map}build(D,T,P,K,Ce,Ge,Qe,lt,Et,Nt){var Ft;const cn=[],un=this.ast.options&&this.ast.options.params||Ji,rn=this.buildStyles(P,Qe&&Qe.params||Ji,cn),En=lt&&lt.params||Ji,Sn=this.buildStyles(K,En,cn),Un=new Set,qn=new Map,$n=new Map,ir="void"===K,rr={params:Ei(En,un),delay:null===(Ft=this.ast.options)||void 0===Ft?void 0:Ft.delay},ui=Nt?[]:Jn(D,T,this.ast.animation,Ce,Ge,rn,Sn,rr,Et,cn);let Yn=0;if(ui.forEach(Fi=>{Yn=Math.max(Fi.duration+Fi.delay,Yn)}),cn.length)return Ai(T,this._triggerName,P,K,ir,rn,Sn,[],[],qn,$n,Yn,cn);ui.forEach(Fi=>{const to=Fi.element,or=Ae(qn,to,new Set);Fi.preStyleProps.forEach(Gr=>or.add(Gr));const kr=Ae($n,to,new Set);Fi.postStyleProps.forEach(Gr=>kr.add(Gr)),to!==T&&Un.add(to)});const Dr=Ve(Un.values());return Ai(T,this._triggerName,P,K,ir,rn,Sn,ui,Dr,qn,$n,Yn)}}function Ei(W,D){const T=L(D);for(const P in W)W.hasOwnProperty(P)&&null!=W[P]&&(T[P]=W[P]);return T}class qi{constructor(D,T,P){this.styles=D,this.defaultParams=T,this.normalizer=P}buildStyles(D,T){const P=new Map,K=L(this.defaultParams);return Object.keys(D).forEach(Ce=>{const Ge=D[Ce];null!==Ge&&(K[Ce]=Ge)}),this.styles.styles.forEach(Ce=>{"string"!=typeof Ce&&Ce.forEach((Ge,Qe)=>{Ge&&(Ge=Ue(Ge,K,T));const lt=this.normalizer.normalizePropertyName(Qe,T);Ge=this.normalizer.normalizeStyleValue(Qe,lt,Ge,T),P.set(lt,Ge)})}),P}}class gr{constructor(D,T,P){this.name=D,this.ast=T,this._normalizer=P,this.transitionFactories=[],this.states=new Map,T.states.forEach(K=>{this.states.set(K.name,new qi(K.style,K.options&&K.options.params||{},P))}),Ti(this.states,"true","1"),Ti(this.states,"false","0"),T.transitions.forEach(K=>{this.transitionFactories.push(new Pi(D,K,this.states))}),this.fallbackTransition=function gi(W,D,T){return new Pi(W,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Ge,Qe)=>!0],options:null,queryCount:0,depCount:0},D)}(D,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(D,T,P,K){return this.transitionFactories.find(Ge=>Ge.match(D,T,P,K))||null}matchStyles(D,T,P){return this.fallbackTransition.buildStyles(D,T,P)}}function Ti(W,D,T){W.has(D)?W.has(T)||W.set(T,W.get(D)):W.has(T)&&W.set(D,W.get(T))}const vr=new fr;class tr{constructor(D,T,P){this.bodyNode=D,this._driver=T,this._normalizer=P,this._animations=new Map,this._playersById=new Map,this.players=[]}register(D,T){const P=[],Ce=ni(this._driver,T,P,[]);if(P.length)throw function B(W){return new n.\u0275RuntimeError(3503,!1)}();this._animations.set(D,Ce)}_buildPlayer(D,T,P){const K=D.element,Ce=Ct(0,this._normalizer,0,D.keyframes,T,P);return this._driver.animate(K,Ce,D.duration,D.delay,D.easing,[],!0)}create(D,T,P={}){const K=[],Ce=this._animations.get(D);let Ge;const Qe=new Map;if(Ce?(Ge=Jn(this._driver,T,Ce,xt,kt,new Map,new Map,P,vr,K),Ge.forEach(Nt=>{const Ft=Ae(Qe,Nt.element,new Map);Nt.postStyleProps.forEach(cn=>Ft.set(cn,null))})):(K.push(function ae(){return new n.\u0275RuntimeError(3300,!1)}()),Ge=[]),K.length)throw function de(W){return new n.\u0275RuntimeError(3504,!1)}();Qe.forEach((Nt,Ft)=>{Nt.forEach((cn,un)=>{Nt.set(un,this._driver.computeStyle(Ft,un,b.l3))})});const Et=Tt(Ge.map(Nt=>{const Ft=Qe.get(Nt.element);return this._buildPlayer(Nt,new Map,Ft)}));return this._playersById.set(D,Et),Et.onDestroy(()=>this.destroy(D)),this.players.push(Et),Et}destroy(D){const T=this._getPlayer(D);T.destroy(),this._playersById.delete(D);const P=this.players.indexOf(T);P>=0&&this.players.splice(P,1)}_getPlayer(D){const T=this._playersById.get(D);if(!T)throw function _e(W){return new n.\u0275RuntimeError(3301,!1)}();return T}listen(D,T,P,K){const Ce=ze(T,"","","");return st(this._getPlayer(D),P,Ce,K),()=>{}}command(D,T,P,K){if("register"==P)return void this.register(D,K[0]);if("create"==P)return void this.create(D,T,K[0]||{});const Ce=this._getPlayer(D);switch(P){case"play":Ce.play();break;case"pause":Ce.pause();break;case"reset":Ce.reset();break;case"restart":Ce.restart();break;case"finish":Ce.finish();break;case"init":Ce.init();break;case"setPosition":Ce.setPosition(parseFloat(K[0]));break;case"destroy":this.destroy(D)}}}const yr="ng-animate-queued",ai="ng-animate-disabled",wi=[],wn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},li={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},jn="__ng_removed";class Bn{constructor(D,T=""){this.namespaceId=T;const P=D&&D.hasOwnProperty("value");if(this.value=function ie(W){return null!=W?W:null}(P?D.value:D),P){const Ce=L(D);delete Ce.value,this.options=Ce}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(D){const T=D.params;if(T){const P=this.options.params;Object.keys(T).forEach(K=>{null==P[K]&&(P[K]=T[K])})}}}const Dn="void",br=new Bn(Dn);class zi{constructor(D,T,P){this.id=D,this.hostElement=T,this._engine=P,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+D,jt(T,this._hostClassName)}listen(D,T,P,K){if(!this._triggers.has(T))throw function it(W,D){return new n.\u0275RuntimeError(3302,!1)}();if(null==P||0==P.length)throw function rt(W){return new n.\u0275RuntimeError(3303,!1)}();if(!function le(W){return"start"==W||"done"==W}(P))throw function yt(W,D){return new n.\u0275RuntimeError(3400,!1)}();const Ce=Ae(this._elementListeners,D,[]),Ge={name:T,phase:P,callback:K};Ce.push(Ge);const Qe=Ae(this._engine.statesByElement,D,new Map);return Qe.has(T)||(jt(D,Bt),jt(D,Bt+"-"+T),Qe.set(T,br)),()=>{this._engine.afterFlush(()=>{const lt=Ce.indexOf(Ge);lt>=0&&Ce.splice(lt,1),this._triggers.has(T)||Qe.delete(T)})}}register(D,T){return!this._triggers.has(D)&&(this._triggers.set(D,T),!0)}_getTrigger(D){const T=this._triggers.get(D);if(!T)throw function Oe(W){return new n.\u0275RuntimeError(3401,!1)}();return T}trigger(D,T,P,K=!0){const Ce=this._getTrigger(T),Ge=new Gn(this.id,T,D);let Qe=this._engine.statesByElement.get(D);Qe||(jt(D,Bt),jt(D,Bt+"-"+T),this._engine.statesByElement.set(D,Qe=new Map));let lt=Qe.get(T);const Et=new Bn(P,this.id);if(!(P&&P.hasOwnProperty("value"))&&lt&&Et.absorbOptions(lt.options),Qe.set(T,Et),lt||(lt=br),Et.value!==Dn&&lt.value===Et.value){if(!function Fn(W,D){const T=Object.keys(W),P=Object.keys(D);if(T.length!=P.length)return!1;for(let K=0;K<T.length;K++){const Ce=T[K];if(!D.hasOwnProperty(Ce)||W[Ce]!==D[Ce])return!1}return!0}(lt.params,Et.params)){const rn=[],En=Ce.matchStyles(lt.value,lt.params,rn),Sn=Ce.matchStyles(Et.value,Et.params,rn);rn.length?this._engine.reportError(rn):this._engine.afterFlush(()=>{gt(D,En),qe(D,Sn)})}return}const cn=Ae(this._engine.playersByElement,D,[]);cn.forEach(rn=>{rn.namespaceId==this.id&&rn.triggerName==T&&rn.queued&&rn.destroy()});let un=Ce.matchTransition(lt.value,Et.value,D,Et.params),en=!1;if(!un){if(!K)return;un=Ce.fallbackTransition,en=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:D,triggerName:T,transition:un,fromState:lt,toState:Et,player:Ge,isFallbackTransition:en}),en||(jt(D,yr),Ge.onStart(()=>{bn(D,yr)})),Ge.onDone(()=>{let rn=this.players.indexOf(Ge);rn>=0&&this.players.splice(rn,1);const En=this._engine.playersByElement.get(D);if(En){let Sn=En.indexOf(Ge);Sn>=0&&En.splice(Sn,1)}}),this.players.push(Ge),cn.push(Ge),Ge}deregister(D){this._triggers.delete(D),this._engine.statesByElement.forEach(T=>T.delete(D)),this._elementListeners.forEach((T,P)=>{this._elementListeners.set(P,T.filter(K=>K.name!=D))})}clearElementCache(D){this._engine.statesByElement.delete(D),this._elementListeners.delete(D);const T=this._engine.playersByElement.get(D);T&&(T.forEach(P=>P.destroy()),this._engine.playersByElement.delete(D))}_signalRemovalForInnerTriggers(D,T){const P=this._engine.driver.query(D,Zt,!0);P.forEach(K=>{if(K[jn])return;const Ce=this._engine.fetchNamespacesByElement(K);Ce.size?Ce.forEach(Ge=>Ge.triggerLeaveAnimation(K,T,!1,!0)):this.clearElementCache(K)}),this._engine.afterFlushAnimationsDone(()=>P.forEach(K=>this.clearElementCache(K)))}triggerLeaveAnimation(D,T,P,K){const Ce=this._engine.statesByElement.get(D),Ge=new Map;if(Ce){const Qe=[];if(Ce.forEach((lt,Et)=>{if(Ge.set(Et,lt.value),this._triggers.has(Et)){const Nt=this.trigger(D,Et,Dn,K);Nt&&Qe.push(Nt)}}),Qe.length)return this._engine.markElementAsRemoved(this.id,D,!0,T,Ge),P&&Tt(Qe).onDone(()=>this._engine.processLeaveNode(D)),!0}return!1}prepareLeaveAnimationListeners(D){const T=this._elementListeners.get(D),P=this._engine.statesByElement.get(D);if(T&&P){const K=new Set;T.forEach(Ce=>{const Ge=Ce.name;if(K.has(Ge))return;K.add(Ge);const lt=this._triggers.get(Ge).fallbackTransition,Et=P.get(Ge)||br,Nt=new Bn(Dn),Ft=new Gn(this.id,Ge,D);this._engine.totalQueuedPlayers++,this._queue.push({element:D,triggerName:Ge,transition:lt,fromState:Et,toState:Nt,player:Ft,isFallbackTransition:!0})})}}removeNode(D,T){const P=this._engine;if(D.childElementCount&&this._signalRemovalForInnerTriggers(D,T),this.triggerLeaveAnimation(D,T,!0))return;let K=!1;if(P.totalAnimations){const Ce=P.players.length?P.playersByQueriedElement.get(D):[];if(Ce&&Ce.length)K=!0;else{let Ge=D;for(;Ge=Ge.parentNode;)if(P.statesByElement.get(Ge)){K=!0;break}}}if(this.prepareLeaveAnimationListeners(D),K)P.markElementAsRemoved(this.id,D,!1,T);else{const Ce=D[jn];(!Ce||Ce===wn)&&(P.afterFlush(()=>this.clearElementCache(D)),P.destroyInnerAnimations(D),P._onRemovalComplete(D,T))}}insertNode(D,T){jt(D,this._hostClassName)}drainQueuedTransitions(D){const T=[];return this._queue.forEach(P=>{const K=P.player;if(K.destroyed)return;const Ce=P.element,Ge=this._elementListeners.get(Ce);Ge&&Ge.forEach(Qe=>{if(Qe.name==P.triggerName){const lt=ze(Ce,P.triggerName,P.fromState.value,P.toState.value);lt._data=D,st(P.player,Qe.phase,lt,Qe.callback)}}),K.markedForDestroy?this._engine.afterFlush(()=>{K.destroy()}):T.push(P)}),this._queue=[],T.sort((P,K)=>{const Ce=P.transition.ast.depCount,Ge=K.transition.ast.depCount;return 0==Ce||0==Ge?Ce-Ge:this._engine.driver.containsElement(P.element,K.element)?1:-1})}destroy(D){this.players.forEach(T=>T.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,D)}elementContainsData(D){let T=!1;return this._elementListeners.has(D)&&(T=!0),T=!!this._queue.find(P=>P.element===D)||T,T}}class Mi{constructor(D,T,P){this.bodyNode=D,this.driver=T,this._normalizer=P,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(K,Ce)=>{}}_onRemovalComplete(D,T){this.onRemovalComplete(D,T)}get queuedPlayers(){const D=[];return this._namespaceList.forEach(T=>{T.players.forEach(P=>{P.queued&&D.push(P)})}),D}createNamespace(D,T){const P=new zi(D,T,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,T)?this._balanceNamespaceList(P,T):(this.newHostElements.set(T,P),this.collectEnterElement(T)),this._namespaceLookup[D]=P}_balanceNamespaceList(D,T){const P=this._namespaceList,K=this.namespacesByHostElement;if(P.length-1>=0){let Ge=!1,Qe=this.driver.getParentElement(T);for(;Qe;){const lt=K.get(Qe);if(lt){const Et=P.indexOf(lt);P.splice(Et+1,0,D),Ge=!0;break}Qe=this.driver.getParentElement(Qe)}Ge||P.unshift(D)}else P.push(D);return K.set(T,D),D}register(D,T){let P=this._namespaceLookup[D];return P||(P=this.createNamespace(D,T)),P}registerTrigger(D,T,P){let K=this._namespaceLookup[D];K&&K.register(T,P)&&this.totalAnimations++}destroy(D,T){if(!D)return;const P=this._fetchNamespace(D);this.afterFlush(()=>{this.namespacesByHostElement.delete(P.hostElement),delete this._namespaceLookup[D];const K=this._namespaceList.indexOf(P);K>=0&&this._namespaceList.splice(K,1)}),this.afterFlushAnimationsDone(()=>P.destroy(T))}_fetchNamespace(D){return this._namespaceLookup[D]}fetchNamespacesByElement(D){const T=new Set,P=this.statesByElement.get(D);if(P)for(let K of P.values())if(K.namespaceId){const Ce=this._fetchNamespace(K.namespaceId);Ce&&T.add(Ce)}return T}trigger(D,T,P,K){if(x(T)){const Ce=this._fetchNamespace(D);if(Ce)return Ce.trigger(T,P,K),!0}return!1}insertNode(D,T,P,K){if(!x(T))return;const Ce=T[jn];if(Ce&&Ce.setForRemoval){Ce.setForRemoval=!1,Ce.setForMove=!0;const Ge=this.collectedLeaveElements.indexOf(T);Ge>=0&&this.collectedLeaveElements.splice(Ge,1)}if(D){const Ge=this._fetchNamespace(D);Ge&&Ge.insertNode(T,P)}K&&this.collectEnterElement(T)}collectEnterElement(D){this.collectedEnterElements.push(D)}markElementAsDisabled(D,T){T?this.disabledNodes.has(D)||(this.disabledNodes.add(D),jt(D,ai)):this.disabledNodes.has(D)&&(this.disabledNodes.delete(D),bn(D,ai))}removeNode(D,T,P,K){if(x(T)){const Ce=D?this._fetchNamespace(D):null;if(Ce?Ce.removeNode(T,K):this.markElementAsRemoved(D,T,!1,K),P){const Ge=this.namespacesByHostElement.get(T);Ge&&Ge.id!==D&&Ge.removeNode(T,K)}}else this._onRemovalComplete(T,K)}markElementAsRemoved(D,T,P,K,Ce){this.collectedLeaveElements.push(T),T[jn]={namespaceId:D,setForRemoval:K,hasAnimation:P,removedBeforeQueried:!1,previousTriggersValues:Ce}}listen(D,T,P,K,Ce){return x(T)?this._fetchNamespace(D).listen(T,P,K,Ce):()=>{}}_buildInstruction(D,T,P,K,Ce){return D.transition.build(this.driver,D.element,D.fromState.value,D.toState.value,P,K,D.fromState.options,D.toState.options,T,Ce)}destroyInnerAnimations(D){let T=this.driver.query(D,Zt,!0);T.forEach(P=>this.destroyActiveAnimationsForElement(P)),0!=this.playersByQueriedElement.size&&(T=this.driver.query(D,$e,!0),T.forEach(P=>this.finishActiveQueriedAnimationOnElement(P)))}destroyActiveAnimationsForElement(D){const T=this.playersByElement.get(D);T&&T.forEach(P=>{P.queued?P.markedForDestroy=!0:P.destroy()})}finishActiveQueriedAnimationOnElement(D){const T=this.playersByQueriedElement.get(D);T&&T.forEach(P=>P.finish())}whenRenderingDone(){return new Promise(D=>{if(this.players.length)return Tt(this.players).onDone(()=>D());D()})}processLeaveNode(D){var T;const P=D[jn];if(P&&P.setForRemoval){if(D[jn]=wn,P.namespaceId){this.destroyInnerAnimations(D);const K=this._fetchNamespace(P.namespaceId);K&&K.clearElementCache(D)}this._onRemovalComplete(D,P.setForRemoval)}!(null===(T=D.classList)||void 0===T)&&T.contains(ai)&&this.markElementAsDisabled(D,!1),this.driver.query(D,".ng-animate-disabled",!0).forEach(K=>{this.markElementAsDisabled(K,!1)})}flush(D=-1){let T=[];if(this.newHostElements.size&&(this.newHostElements.forEach((P,K)=>this._balanceNamespaceList(P,K)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let P=0;P<this.collectedEnterElements.length;P++)jt(this.collectedEnterElements[P],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const P=[];try{T=this._flushAnimations(P,D)}finally{for(let K=0;K<P.length;K++)P[K]()}}else for(let P=0;P<this.collectedLeaveElements.length;P++)this.processLeaveNode(this.collectedLeaveElements[P]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(P=>P()),this._flushFns=[],this._whenQuietFns.length){const P=this._whenQuietFns;this._whenQuietFns=[],T.length?Tt(T).onDone(()=>{P.forEach(K=>K())}):P.forEach(K=>K())}}reportError(D){throw function ft(W){return new n.\u0275RuntimeError(3402,!1)}()}_flushAnimations(D,T){const P=new fr,K=[],Ce=new Map,Ge=[],Qe=new Map,lt=new Map,Et=new Map,Nt=new Set;this.disabledNodes.forEach(zt=>{Nt.add(zt);const Wt=this.driver.query(zt,".ng-animate-queued",!0);for(let Gt=0;Gt<Wt.length;Gt++)Nt.add(Wt[Gt])});const Ft=this.bodyNode,cn=Array.from(this.statesByElement.keys()),un=ut(cn,this.collectedEnterElements),en=new Map;let rn=0;un.forEach((zt,Wt)=>{const Gt=xt+rn++;en.set(Wt,Gt),zt.forEach(fn=>jt(fn,Gt))});const En=[],Sn=new Set,Un=new Set;for(let zt=0;zt<this.collectedLeaveElements.length;zt++){const Wt=this.collectedLeaveElements[zt],Gt=Wt[jn];Gt&&Gt.setForRemoval&&(En.push(Wt),Sn.add(Wt),Gt.hasAnimation?this.driver.query(Wt,".ng-star-inserted",!0).forEach(fn=>Sn.add(fn)):Un.add(Wt))}const qn=new Map,$n=ut(cn,Array.from(Sn));$n.forEach((zt,Wt)=>{const Gt=kt+rn++;qn.set(Wt,Gt),zt.forEach(fn=>jt(fn,Gt))}),D.push(()=>{un.forEach((zt,Wt)=>{const Gt=en.get(Wt);zt.forEach(fn=>bn(fn,Gt))}),$n.forEach((zt,Wt)=>{const Gt=qn.get(Wt);zt.forEach(fn=>bn(fn,Gt))}),En.forEach(zt=>{this.processLeaveNode(zt)})});const ir=[],rr=[];for(let zt=this._namespaceList.length-1;zt>=0;zt--)this._namespaceList[zt].drainQueuedTransitions(T).forEach(Gt=>{const fn=Gt.player,Nn=Gt.element;if(ir.push(fn),this.collectedEnterElements.length){const ei=Nn[jn];if(ei&&ei.setForMove){if(ei.previousTriggersValues&&ei.previousTriggersValues.has(Gt.triggerName)){const Gi=ei.previousTriggersValues.get(Gt.triggerName),ki=this.statesByElement.get(Gt.element);if(ki&&ki.has(Gt.triggerName)){const no=ki.get(Gt.triggerName);no.value=Gi,ki.set(Gt.triggerName,no)}}return void fn.destroy()}}const _i=!Ft||!this.driver.containsElement(Ft,Nn),di=qn.get(Nn),sr=en.get(Nn),Tn=this._buildInstruction(Gt,P,sr,di,_i);if(Tn.errors&&Tn.errors.length)return void rr.push(Tn);if(_i)return fn.onStart(()=>gt(Nn,Tn.fromStyles)),fn.onDestroy(()=>qe(Nn,Tn.toStyles)),void K.push(fn);if(Gt.isFallbackTransition)return fn.onStart(()=>gt(Nn,Tn.fromStyles)),fn.onDestroy(()=>qe(Nn,Tn.toStyles)),void K.push(fn);const Hs=[];Tn.timelines.forEach(ei=>{ei.stretchStartingKeyframe=!0,this.disabledNodes.has(ei.element)||Hs.push(ei)}),Tn.timelines=Hs,P.append(Nn,Tn.timelines),Ge.push({instruction:Tn,player:fn,element:Nn}),Tn.queriedElements.forEach(ei=>Ae(Qe,ei,[]).push(fn)),Tn.preStyleProps.forEach((ei,Gi)=>{if(ei.size){let ki=lt.get(Gi);ki||lt.set(Gi,ki=new Set),ei.forEach((no,go)=>ki.add(go))}}),Tn.postStyleProps.forEach((ei,Gi)=>{let ki=Et.get(Gi);ki||Et.set(Gi,ki=new Set),ei.forEach((no,go)=>ki.add(go))})});if(rr.length){const zt=[];rr.forEach(Wt=>{zt.push(function et(W,D){return new n.\u0275RuntimeError(3505,!1)}())}),ir.forEach(Wt=>Wt.destroy()),this.reportError(zt)}const ui=new Map,Yn=new Map;Ge.forEach(zt=>{const Wt=zt.element;P.has(Wt)&&(Yn.set(Wt,Wt),this._beforeAnimationBuild(zt.player.namespaceId,zt.instruction,ui))}),K.forEach(zt=>{const Wt=zt.element;this._getPreviousPlayers(Wt,!1,zt.namespaceId,zt.triggerName,null).forEach(fn=>{Ae(ui,Wt,[]).push(fn),fn.destroy()})});const Dr=En.filter(zt=>yn(zt,lt,Et)),Fi=new Map;bt(Fi,this.driver,Un,Et,b.l3).forEach(zt=>{yn(zt,lt,Et)&&Dr.push(zt)});const or=new Map;un.forEach((zt,Wt)=>{bt(or,this.driver,new Set(zt),lt,b.k1)}),Dr.forEach(zt=>{var Wt,Gt;const fn=Fi.get(zt),Nn=or.get(zt);Fi.set(zt,new Map([...Array.from(null!==(Wt=null==fn?void 0:fn.entries())&&void 0!==Wt?Wt:[]),...Array.from(null!==(Gt=null==Nn?void 0:Nn.entries())&&void 0!==Gt?Gt:[])]))});const kr=[],Gr=[],$s={};Ge.forEach(zt=>{const{element:Wt,player:Gt,instruction:fn}=zt;if(P.has(Wt)){if(Nt.has(Wt))return Gt.onDestroy(()=>qe(Wt,fn.toStyles)),Gt.disabled=!0,Gt.overrideTotalTime(fn.totalTime),void K.push(Gt);let Nn=$s;if(Yn.size>1){let di=Wt;const sr=[];for(;di=di.parentNode;){const Tn=Yn.get(di);if(Tn){Nn=Tn;break}sr.push(di)}sr.forEach(Tn=>Yn.set(Tn,Nn))}const _i=this._buildAnimation(Gt.namespaceId,fn,ui,Ce,or,Fi);if(Gt.setRealPlayer(_i),Nn===$s)kr.push(Gt);else{const di=this.playersByElement.get(Nn);di&&di.length&&(Gt.parentPlayer=Tt(di)),K.push(Gt)}}else gt(Wt,fn.fromStyles),Gt.onDestroy(()=>qe(Wt,fn.toStyles)),Gr.push(Gt),Nt.has(Wt)&&K.push(Gt)}),Gr.forEach(zt=>{const Wt=Ce.get(zt.element);if(Wt&&Wt.length){const Gt=Tt(Wt);zt.setRealPlayer(Gt)}}),K.forEach(zt=>{zt.parentPlayer?zt.syncPlayerEvents(zt.parentPlayer):zt.destroy()});for(let zt=0;zt<En.length;zt++){const Wt=En[zt],Gt=Wt[jn];if(bn(Wt,kt),Gt&&Gt.hasAnimation)continue;let fn=[];if(Qe.size){let _i=Qe.get(Wt);_i&&_i.length&&fn.push(..._i);let di=this.driver.query(Wt,$e,!0);for(let sr=0;sr<di.length;sr++){let Tn=Qe.get(di[sr]);Tn&&Tn.length&&fn.push(...Tn)}}const Nn=fn.filter(_i=>!_i.destroyed);Nn.length?Mn(this,Wt,Nn):this.processLeaveNode(Wt)}return En.length=0,kr.forEach(zt=>{this.players.push(zt),zt.onDone(()=>{zt.destroy();const Wt=this.players.indexOf(zt);this.players.splice(Wt,1)}),zt.play()}),kr}elementContainsData(D,T){let P=!1;const K=T[jn];return K&&K.setForRemoval&&(P=!0),this.playersByElement.has(T)&&(P=!0),this.playersByQueriedElement.has(T)&&(P=!0),this.statesByElement.has(T)&&(P=!0),this._fetchNamespace(D).elementContainsData(T)||P}afterFlush(D){this._flushFns.push(D)}afterFlushAnimationsDone(D){this._whenQuietFns.push(D)}_getPreviousPlayers(D,T,P,K,Ce){let Ge=[];if(T){const Qe=this.playersByQueriedElement.get(D);Qe&&(Ge=Qe)}else{const Qe=this.playersByElement.get(D);if(Qe){const lt=!Ce||Ce==Dn;Qe.forEach(Et=>{Et.queued||!lt&&Et.triggerName!=K||Ge.push(Et)})}}return(P||K)&&(Ge=Ge.filter(Qe=>!(P&&P!=Qe.namespaceId||K&&K!=Qe.triggerName))),Ge}_beforeAnimationBuild(D,T,P){const Ce=T.element,Ge=T.isRemovalTransition?void 0:D,Qe=T.isRemovalTransition?void 0:T.triggerName;for(const lt of T.timelines){const Et=lt.element,Nt=Et!==Ce,Ft=Ae(P,Et,[]);this._getPreviousPlayers(Et,Nt,Ge,Qe,T.toState).forEach(un=>{const en=un.getRealPlayer();en.beforeDestroy&&en.beforeDestroy(),un.destroy(),Ft.push(un)})}gt(Ce,T.fromStyles)}_buildAnimation(D,T,P,K,Ce,Ge){const Qe=T.triggerName,lt=T.element,Et=[],Nt=new Set,Ft=new Set,cn=T.timelines.map(en=>{const rn=en.element;Nt.add(rn);const En=rn[jn];if(En&&En.removedBeforeQueried)return new b.ZN(en.duration,en.delay);const Sn=rn!==lt,Un=function Cn(W){const D=[];return pn(W,D),D}((P.get(rn)||wi).map(ui=>ui.getRealPlayer())).filter(ui=>!!ui.element&&ui.element===rn),qn=Ce.get(rn),$n=Ge.get(rn),ir=Ct(0,this._normalizer,0,en.keyframes,qn,$n),rr=this._buildPlayer(en,ir,Un);if(en.subTimeline&&K&&Ft.add(rn),Sn){const ui=new Gn(D,Qe,rn);ui.setRealPlayer(rr),Et.push(ui)}return rr});Et.forEach(en=>{Ae(this.playersByQueriedElement,en.element,[]).push(en),en.onDone(()=>function R(W,D,T){let P=W.get(D);if(P){if(P.length){const K=P.indexOf(T);P.splice(K,1)}0==P.length&&W.delete(D)}return P}(this.playersByQueriedElement,en.element,en))}),Nt.forEach(en=>jt(en,Ne));const un=Tt(cn);return un.onDestroy(()=>{Nt.forEach(en=>bn(en,Ne)),qe(lt,T.toStyles)}),Ft.forEach(en=>{Ae(K,en,[]).push(un)}),un}_buildPlayer(D,T,P){return T.length>0?this.driver.animate(D.element,T,D.duration,D.delay,D.easing,P):new b.ZN(D.duration,D.delay)}}class Gn{constructor(D,T,P){this.namespaceId=D,this.triggerName=T,this.element=P,this._player=new b.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(D){this._containsRealPlayer||(this._player=D,this._queuedCallbacks.forEach((T,P)=>{T.forEach(K=>st(D,P,void 0,K))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(D.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(D){this.totalTime=D}syncPlayerEvents(D){const T=this._player;T.triggerCallback&&D.onStart(()=>T.triggerCallback("start")),D.onDone(()=>this.finish()),D.onDestroy(()=>this.destroy())}_queueEvent(D,T){Ae(this._queuedCallbacks,D,[]).push(T)}onDone(D){this.queued&&this._queueEvent("done",D),this._player.onDone(D)}onStart(D){this.queued&&this._queueEvent("start",D),this._player.onStart(D)}onDestroy(D){this.queued&&this._queueEvent("destroy",D),this._player.onDestroy(D)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(D){this.queued||this._player.setPosition(D)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(D){const T=this._player;T.triggerCallback&&T.triggerCallback(D)}}function x(W){return W&&1===W.nodeType}function Be(W,D){const T=W.style.display;return W.style.display=null!=D?D:"none",T}function bt(W,D,T,P,K){const Ce=[];T.forEach(lt=>Ce.push(Be(lt)));const Ge=[];P.forEach((lt,Et)=>{const Nt=new Map;lt.forEach(Ft=>{const cn=D.computeStyle(Et,Ft,K);Nt.set(Ft,cn),(!cn||0==cn.length)&&(Et[jn]=li,Ge.push(Et))}),W.set(Et,Nt)});let Qe=0;return T.forEach(lt=>Be(lt,Ce[Qe++])),Ge}function ut(W,D){const T=new Map;if(W.forEach(Qe=>T.set(Qe,[])),0==D.length)return T;const K=new Set(D),Ce=new Map;function Ge(Qe){if(!Qe)return 1;let lt=Ce.get(Qe);if(lt)return lt;const Et=Qe.parentNode;return lt=T.has(Et)?Et:K.has(Et)?1:Ge(Et),Ce.set(Qe,lt),lt}return D.forEach(Qe=>{const lt=Ge(Qe);1!==lt&&T.get(lt).push(Qe)}),T}function jt(W,D){var T;null===(T=W.classList)||void 0===T||T.add(D)}function bn(W,D){var T;null===(T=W.classList)||void 0===T||T.remove(D)}function Mn(W,D,T){Tt(T).onDone(()=>W.processLeaveNode(D))}function pn(W,D){for(let T=0;T<W.length;T++){const P=W[T];P instanceof b.ZE?pn(P.players,D):D.push(P)}}function yn(W,D,T){const P=T.get(W);if(!P)return!1;let K=D.get(W);return K?P.forEach(Ce=>K.add(Ce)):D.set(W,P),T.delete(W),!0}class kn{constructor(D,T,P){this.bodyNode=D,this._driver=T,this._normalizer=P,this._triggerCache={},this.onRemovalComplete=(K,Ce)=>{},this._transitionEngine=new Mi(D,T,P),this._timelineEngine=new tr(D,T,P),this._transitionEngine.onRemovalComplete=(K,Ce)=>this.onRemovalComplete(K,Ce)}registerTrigger(D,T,P,K,Ce){const Ge=D+"-"+K;let Qe=this._triggerCache[Ge];if(!Qe){const lt=[],Nt=ni(this._driver,Ce,lt,[]);if(lt.length)throw function G(W,D){return new n.\u0275RuntimeError(3404,!1)}();Qe=function er(W,D,T){return new gr(W,D,T)}(K,Nt,this._normalizer),this._triggerCache[Ge]=Qe}this._transitionEngine.registerTrigger(T,K,Qe)}register(D,T){this._transitionEngine.register(D,T)}destroy(D,T){this._transitionEngine.destroy(D,T)}onInsert(D,T,P,K){this._transitionEngine.insertNode(D,T,P,K)}onRemove(D,T,P,K){this._transitionEngine.removeNode(D,T,K||!1,P)}disableAnimations(D,T){this._transitionEngine.markElementAsDisabled(D,T)}process(D,T,P,K){if("@"==P.charAt(0)){const[Ce,Ge]=je(P);this._timelineEngine.command(Ce,T,Ge,K)}else this._transitionEngine.trigger(D,T,P,K)}listen(D,T,P,K,Ce){if("@"==P.charAt(0)){const[Ge,Qe]=je(P);return this._timelineEngine.listen(Ge,T,Qe,Ce)}return this._transitionEngine.listen(D,T,P,K,Ce)}flush(D=-1){this._transitionEngine.flush(D)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let sn=(()=>{class W{constructor(T,P,K){this._element=T,this._startStyles=P,this._endStyles=K,this._state=0;let Ce=W.initialStylesByElement.get(T);Ce||W.initialStylesByElement.set(T,Ce=new Map),this._initialStyles=Ce}start(){this._state<1&&(this._startStyles&&qe(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(qe(this._element,this._initialStyles),this._endStyles&&(qe(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(W.initialStylesByElement.delete(this._element),this._startStyles&&(gt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(gt(this._element,this._endStyles),this._endStyles=null),qe(this._element,this._initialStyles),this._state=3)}}return W.initialStylesByElement=new WeakMap,W})();function vi(W){let D=null;return W.forEach((T,P)=>{(function xi(W){return"display"===W||"position"===W})(P)&&(D=D||new Map,D.set(P,T))}),D}class An{constructor(D,T,P,K){this.element=D,this.keyframes=T,this.options=P,this._specialStyles=K,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=P.duration,this._delay=P.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(D=>D()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const D=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,D,this.options),this._finalKeyframe=D.length?D[D.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(D){const T=[];return D.forEach(P=>{T.push(Object.fromEntries(P))}),T}_triggerWebAnimation(D,T,P){return D.animate(this._convertKeyframesToObject(T),P)}onStart(D){this._originalOnStartFns.push(D),this._onStartFns.push(D)}onDone(D){this._originalOnDoneFns.push(D),this._onDoneFns.push(D)}onDestroy(D){this._onDestroyFns.push(D)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(D=>D()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(D=>D()),this._onDestroyFns=[])}setPosition(D){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=D*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const D=new Map;this.hasStarted()&&this._finalKeyframe.forEach((P,K)=>{"offset"!==K&&D.set(K,this._finished?P:dn(this.element,K))}),this.currentSnapshot=D}triggerCallback(D){const T="start"===D?this._onStartFns:this._onDoneFns;T.forEach(P=>P()),T.length=0}}class Cr{validateStyleProperty(D){return!0}validateAnimatableStyleProperty(D){return!0}matchesElement(D,T){return!1}containsElement(D,T){return ht(D,T)}getParentElement(D){return Ye(D)}query(D,T,P){return Me(D,T,P)}computeStyle(D,T,P){return window.getComputedStyle(D)[T]}animate(D,T,P,K,Ce,Ge=[]){const lt={duration:P,delay:K,fill:0==K?"both":"forwards"};Ce&&(lt.easing=Ce);const Et=new Map,Nt=Ge.filter(un=>un instanceof An);(function _t(W,D){return 0===W||0===D})(P,K)&&Nt.forEach(un=>{un.currentSnapshot.forEach((en,rn)=>Et.set(rn,en))});let Ft=function ct(W){return W.length?W[0]instanceof Map?W:W.map(D=>be(D)):[]}(T).map(un=>pt(un));Ft=function Pt(W,D,T){if(T.size&&D.length){let P=D[0],K=[];if(T.forEach((Ce,Ge)=>{P.has(Ge)||K.push(Ge),P.set(Ge,Ce)}),K.length)for(let Ce=1;Ce<D.length;Ce++){let Ge=D[Ce];K.forEach(Qe=>Ge.set(Qe,dn(W,Qe)))}}return D}(D,Ft,Et);const cn=function St(W,D){let T=null,P=null;return Array.isArray(D)&&D.length?(T=vi(D[0]),D.length>1&&(P=vi(D[D.length-1]))):D instanceof Map&&(T=vi(D)),T||P?new sn(W,T,P):null}(D,Ft);return new An(D,Ft,lt,cn)}}var F=a(9808);let O=(()=>{class W extends b._j{constructor(T,P){super(),this._nextAnimationId=0,this._renderer=T.createRenderer(P.body,{id:"0",encapsulation:n.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(T){const P=this._nextAnimationId.toString();this._nextAnimationId++;const K=Array.isArray(T)?(0,b.vP)(T):T;return vt(this._renderer,null,P,"register",[K]),new S(P,this._renderer)}}return W.\u0275fac=function(T){return new(T||W)(n.\u0275\u0275inject(n.RendererFactory2),n.\u0275\u0275inject(F.DOCUMENT))},W.\u0275prov=n.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac}),W})();class S extends b.LC{constructor(D,T){super(),this._id=D,this._renderer=T}create(D,T){return new te(this._id,D,T||{},this._renderer)}}class te{constructor(D,T,P,K){this.id=D,this.element=T,this._renderer=K,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",P)}_listen(D,T){return this._renderer.listen(this.element,`@@${this.id}:${D}`,T)}_command(D,...T){return vt(this._renderer,this.element,this.id,D,T)}onDone(D){this._listen("done",D)}onStart(D){this._listen("start",D)}onDestroy(D){this._listen("destroy",D)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(D){this._command("setPosition",D)}getPosition(){var D,T;return null!==(T=null===(D=this._renderer.engine.players[+this.id])||void 0===D?void 0:D.getPosition())&&void 0!==T?T:0}}function vt(W,D,T,P,K){return W.setProperty(D,`@@${T}:${P}`,K)}const Kn="@.disabled";let yi=(()=>{class W{constructor(T,P,K){this.delegate=T,this.engine=P,this._zone=K,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),P.onRemovalComplete=(Ce,Ge)=>{const Qe=null==Ge?void 0:Ge.parentNode(Ce);Qe&&Ge.removeChild(Qe,Ce)}}createRenderer(T,P){const Ce=this.delegate.createRenderer(T,P);if(!(T&&P&&P.data&&P.data.animation)){let Nt=this._rendererCache.get(Ce);return Nt||(Nt=new Vn("",Ce,this.engine),this._rendererCache.set(Ce,Nt)),Nt}const Ge=P.id,Qe=P.id+"-"+this._currentId;this._currentId++,this.engine.register(Qe,T);const lt=Nt=>{Array.isArray(Nt)?Nt.forEach(lt):this.engine.registerTrigger(Ge,Qe,T,Nt.name,Nt)};return P.data.animation.forEach(lt),new ci(this,Qe,Ce,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(T,P,K){T>=0&&T<this._microtaskId?this._zone.run(()=>P(K)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Ce=>{const[Ge,Qe]=Ce;Ge(Qe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([P,K]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return W.\u0275fac=function(T){return new(T||W)(n.\u0275\u0275inject(n.RendererFactory2),n.\u0275\u0275inject(kn),n.\u0275\u0275inject(n.NgZone))},W.\u0275prov=n.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac}),W})();class Vn{constructor(D,T,P){this.namespaceId=D,this.delegate=T,this.engine=P,this.destroyNode=this.delegate.destroyNode?K=>T.destroyNode(K):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(D,T){return this.delegate.createElement(D,T)}createComment(D){return this.delegate.createComment(D)}createText(D){return this.delegate.createText(D)}appendChild(D,T){this.delegate.appendChild(D,T),this.engine.onInsert(this.namespaceId,T,D,!1)}insertBefore(D,T,P,K=!0){this.delegate.insertBefore(D,T,P),this.engine.onInsert(this.namespaceId,T,D,K)}removeChild(D,T,P){this.engine.onRemove(this.namespaceId,T,this.delegate,P)}selectRootElement(D,T){return this.delegate.selectRootElement(D,T)}parentNode(D){return this.delegate.parentNode(D)}nextSibling(D){return this.delegate.nextSibling(D)}setAttribute(D,T,P,K){this.delegate.setAttribute(D,T,P,K)}removeAttribute(D,T,P){this.delegate.removeAttribute(D,T,P)}addClass(D,T){this.delegate.addClass(D,T)}removeClass(D,T){this.delegate.removeClass(D,T)}setStyle(D,T,P,K){this.delegate.setStyle(D,T,P,K)}removeStyle(D,T,P){this.delegate.removeStyle(D,T,P)}setProperty(D,T,P){"@"==T.charAt(0)&&T==Kn?this.disableAnimations(D,!!P):this.delegate.setProperty(D,T,P)}setValue(D,T){this.delegate.setValue(D,T)}listen(D,T,P){return this.delegate.listen(D,T,P)}disableAnimations(D,T){this.engine.disableAnimations(D,T)}}class ci extends Vn{constructor(D,T,P,K){super(T,P,K),this.factory=D,this.namespaceId=T}setProperty(D,T,P){"@"==T.charAt(0)?"."==T.charAt(1)&&T==Kn?this.disableAnimations(D,P=void 0===P||!!P):this.engine.process(this.namespaceId,D,T.slice(1),P):this.delegate.setProperty(D,T,P)}listen(D,T,P){if("@"==T.charAt(0)){const K=function Ls(W){switch(W){case"body":return document.body;case"document":return document;case"window":return window;default:return W}}(D);let Ce=T.slice(1),Ge="";return"@"!=Ce.charAt(0)&&([Ce,Ge]=function Wr(W){const D=W.indexOf(".");return[W.substring(0,D),W.slice(D+1)]}(Ce)),this.engine.listen(this.namespaceId,K,Ce,Ge,Qe=>{this.factory.scheduleListenerCallback(Qe._data||-1,P,Qe)})}return this.delegate.listen(D,T,P)}}let Wi=(()=>{class W extends kn{constructor(T,P,K,Ce){super(T.body,P,K)}ngOnDestroy(){this.flush()}}return W.\u0275fac=function(T){return new(T||W)(n.\u0275\u0275inject(F.DOCUMENT),n.\u0275\u0275inject(ce),n.\u0275\u0275inject(Oi),n.\u0275\u0275inject(n.ApplicationRef))},W.\u0275prov=n.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac}),W})();const Bs=[{provide:b._j,useClass:O},{provide:Oi,useFactory:function Ua(){return new Zi}},{provide:kn,useClass:Wi},{provide:n.RendererFactory2,useFactory:function js(W,D,T){return new yi(W,D,T)},deps:[p.\u0275DomRendererFactory2,kn,n.NgZone]}],es=[{provide:ce,useFactory:()=>new Cr},{provide:n.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...Bs],eo=[{provide:ce,useClass:ne},{provide:n.ANIMATION_MODULE_TYPE,useValue:"NoopAnimations"},...Bs];let ts=(()=>{class W{static withConfig(T){return{ngModule:W,providers:T.disableAnimations?eo:es}}}return W.\u0275fac=function(T){return new(T||W)},W.\u0275mod=n.\u0275\u0275defineNgModule({type:W}),W.\u0275inj=n.\u0275\u0275defineInjector({providers:es,imports:[p.BrowserModule]}),W})();function Vs(){return[...es]}let ns=(()=>{class W{}return W.\u0275fac=function(T){return new(T||W)},W.\u0275mod=n.\u0275\u0275defineNgModule({type:W}),W.\u0275inj=n.\u0275\u0275defineInjector({providers:eo,imports:[p.BrowserModule]}),W})();function za(){return[...eo]}},2313:(H,o,a)=>{"use strict";a.r(o),a.d(o,{BrowserModule:()=>Le,BrowserTransferStateModule:()=>L,By:()=>be,DomSanitizer:()=>$t,EVENT_MANAGER_PLUGINS:()=>E,EventManager:()=>M,HAMMER_GESTURE_CONFIG:()=>pt,HAMMER_LOADER:()=>se,HammerGestureConfig:()=>ye,HammerModule:()=>gt,Meta:()=>Fe,Title:()=>ht,TransferState:()=>ee,VERSION:()=>vn,bootstrapApplication:()=>It,disableDebugTools:()=>Ne,enableDebugTools:()=>Zt,makeStateKey:()=>fe,platformBrowser:()=>Ie,provideProtractorTestingSupport:()=>ze,\u0275BrowserDomAdapter:()=>u,\u0275BrowserGetTestability:()=>v,\u0275DomEventsPlugin:()=>ft,\u0275DomRendererFactory2:()=>ae,\u0275DomSanitizerImpl:()=>nn,\u0275DomSharedStylesHost:()=>j,\u0275HammerGesturesPlugin:()=>qe,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>We,\u0275KeyEventsPlugin:()=>Tt,\u0275NAMESPACE_URIS:()=>U,\u0275SharedStylesHost:()=>k,\u0275TRANSITION_ID:()=>m,\u0275escapeHtml:()=>$e,\u0275flattenStyles:()=>G,\u0275getDOM:()=>n.\u0275getDOM,\u0275initDomAdapter:()=>Ae,\u0275shimContentAttribute:()=>we,\u0275shimHostAttribute:()=>tt});var n=a(9808),p=a(5e3);class b extends n.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class u extends b{static makeCurrent(){(0,n.\u0275setRootDomAdapter)(new u)}onAndCancel(Ve,he,Xe){return Ve.addEventListener(he,Xe,!1),()=>{Ve.removeEventListener(he,Xe,!1)}}dispatchEvent(Ve,he){Ve.dispatchEvent(he)}remove(Ve){Ve.parentNode&&Ve.parentNode.removeChild(Ve)}createElement(Ve,he){return(he=he||this.getDefaultDocument()).createElement(Ve)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ve){return Ve.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ve){return Ve instanceof DocumentFragment}getGlobalEventTarget(Ve,he){return"window"===he?window:"document"===he?Ve:"body"===he?Ve.body:null}getBaseHref(Ve){const he=function c(){return r=r||document.querySelector("base"),r?r.getAttribute("href"):null}();return null==he?null:function h(Ue){f=f||document.createElement("a"),f.setAttribute("href",Ue);const Ve=f.pathname;return"/"===Ve.charAt(0)?Ve:`/${Ve}`}(he)}resetBaseElement(){r=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ve){return(0,n.\u0275parseCookieValue)(document.cookie,Ve)}}let f,r=null;const m=new p.InjectionToken("TRANSITION_ID"),_=[{provide:p.APP_INITIALIZER,useFactory:function d(Ue,Ve,he){return()=>{he.get(p.ApplicationInitStatus).donePromise.then(()=>{const Xe=(0,n.\u0275getDOM)(),mt=Ve.querySelectorAll(`style[ng-transition="${Ue}"]`);for(let _t=0;_t<mt.length;_t++)Xe.remove(mt[_t])})}},deps:[m,n.DOCUMENT,p.Injector],multi:!0}];class v{addToWindow(Ve){p.\u0275global.getAngularTestability=(Xe,mt=!0)=>{const _t=Ve.findTestabilityInTree(Xe,mt);if(null==_t)throw new Error("Could not find testability for element.");return _t},p.\u0275global.getAllAngularTestabilities=()=>Ve.getAllTestabilities(),p.\u0275global.getAllAngularRootElements=()=>Ve.getAllRootElements(),p.\u0275global.frameworkStabilizers||(p.\u0275global.frameworkStabilizers=[]),p.\u0275global.frameworkStabilizers.push(Xe=>{const mt=p.\u0275global.getAllAngularTestabilities();let _t=mt.length,Pt=!1;const Ht=function(dn){Pt=Pt||dn,_t--,0==_t&&Xe(Pt)};mt.forEach(function(dn){dn.whenStable(Ht)})})}findTestabilityInTree(Ve,he,Xe){if(null==he)return null;const mt=Ve.getTestability(he);return null!=mt?mt:Xe?(0,n.\u0275getDOM)().isShadowRoot(he)?this.findTestabilityInTree(Ve,he.host,!0):this.findTestabilityInTree(Ve,he.parentElement,!0):null}}let y=(()=>{class Ue{build(){return new XMLHttpRequest}}return Ue.\u0275fac=function(he){return new(he||Ue)},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})();const E=new p.InjectionToken("EventManagerPlugins");let M=(()=>{class Ue{constructor(he,Xe){this._zone=Xe,this._eventNameToPlugin=new Map,he.forEach(mt=>mt.manager=this),this._plugins=he.slice().reverse()}addEventListener(he,Xe,mt){return this._findPluginFor(Xe).addEventListener(he,Xe,mt)}addGlobalEventListener(he,Xe,mt){return this._findPluginFor(Xe).addGlobalEventListener(he,Xe,mt)}getZone(){return this._zone}_findPluginFor(he){const Xe=this._eventNameToPlugin.get(he);if(Xe)return Xe;const mt=this._plugins;for(let _t=0;_t<mt.length;_t++){const Pt=mt[_t];if(Pt.supports(he))return this._eventNameToPlugin.set(he,Pt),Pt}throw new Error(`No event manager plugin found for event ${he}`)}}return Ue.\u0275fac=function(he){return new(he||Ue)(p.\u0275\u0275inject(E),p.\u0275\u0275inject(p.NgZone))},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})();class A{constructor(Ve){this._doc=Ve}addGlobalEventListener(Ve,he,Xe){const mt=(0,n.\u0275getDOM)().getGlobalEventTarget(this._doc,Ve);if(!mt)throw new Error(`Unsupported event target ${mt} for event ${he}`);return this.addEventListener(mt,he,Xe)}}let k=(()=>{class Ue{constructor(){this._stylesSet=new Set}addStyles(he){const Xe=new Set;he.forEach(mt=>{this._stylesSet.has(mt)||(this._stylesSet.add(mt),Xe.add(mt))}),this.onStylesAdded(Xe)}onStylesAdded(he){}getAllStyles(){return Array.from(this._stylesSet)}}return Ue.\u0275fac=function(he){return new(he||Ue)},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})(),j=(()=>{class Ue extends k{constructor(he){super(),this._doc=he,this._hostNodes=new Map,this._hostNodes.set(he.head,[])}_addStylesToHost(he,Xe,mt){he.forEach(_t=>{const Pt=this._doc.createElement("style");Pt.textContent=_t,mt.push(Xe.appendChild(Pt))})}addHost(he){const Xe=[];this._addStylesToHost(this._stylesSet,he,Xe),this._hostNodes.set(he,Xe)}removeHost(he){const Xe=this._hostNodes.get(he);Xe&&Xe.forEach(Y),this._hostNodes.delete(he)}onStylesAdded(he){this._hostNodes.forEach((Xe,mt)=>{this._addStylesToHost(he,mt,Xe)})}ngOnDestroy(){this._hostNodes.forEach(he=>he.forEach(Y))}}return Ue.\u0275fac=function(he){return new(he||Ue)(p.\u0275\u0275inject(n.DOCUMENT))},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})();function Y(Ue){(0,n.\u0275getDOM)().remove(Ue)}const U={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Q=/%COMP%/g,X="%COMP%",re=`_nghost-${X}`,me=`_ngcontent-${X}`;function we(Ue){return me.replace(Q,Ue)}function tt(Ue){return re.replace(Q,Ue)}function G(Ue,Ve,he){for(let Xe=0;Xe<Ve.length;Xe++){let mt=Ve[Xe];Array.isArray(mt)?G(Ue,mt,he):(mt=mt.replace(Q,Ue),he.push(mt))}return he}function q(Ue){return Ve=>{if("__ngUnwrap__"===Ve)return Ue;!1===Ue(Ve)&&(Ve.preventDefault(),Ve.returnValue=!1)}}let ae=(()=>{class Ue{constructor(he,Xe,mt){this.eventManager=he,this.sharedStylesHost=Xe,this.appId=mt,this.rendererByCompId=new Map,this.defaultRenderer=new de(he)}createRenderer(he,Xe){if(!he||!Xe)return this.defaultRenderer;switch(Xe.encapsulation){case p.ViewEncapsulation.Emulated:{let mt=this.rendererByCompId.get(Xe.id);return mt||(mt=new yt(this.eventManager,this.sharedStylesHost,Xe,this.appId),this.rendererByCompId.set(Xe.id,mt)),mt.applyToHost(he),mt}case 1:case p.ViewEncapsulation.ShadowDom:return new Oe(this.eventManager,this.sharedStylesHost,he,Xe);default:if(!this.rendererByCompId.has(Xe.id)){const mt=G(Xe.id,Xe.styles,[]);this.sharedStylesHost.addStyles(mt),this.rendererByCompId.set(Xe.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ue.\u0275fac=function(he){return new(he||Ue)(p.\u0275\u0275inject(M),p.\u0275\u0275inject(j),p.\u0275\u0275inject(p.APP_ID))},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})();class de{constructor(Ve){this.eventManager=Ve,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ve,he){return he?document.createElementNS(U[he]||he,Ve):document.createElement(Ve)}createComment(Ve){return document.createComment(Ve)}createText(Ve){return document.createTextNode(Ve)}appendChild(Ve,he){(rt(Ve)?Ve.content:Ve).appendChild(he)}insertBefore(Ve,he,Xe){Ve&&(rt(Ve)?Ve.content:Ve).insertBefore(he,Xe)}removeChild(Ve,he){Ve&&Ve.removeChild(he)}selectRootElement(Ve,he){let Xe="string"==typeof Ve?document.querySelector(Ve):Ve;if(!Xe)throw new Error(`The selector "${Ve}" did not match any elements`);return he||(Xe.textContent=""),Xe}parentNode(Ve){return Ve.parentNode}nextSibling(Ve){return Ve.nextSibling}setAttribute(Ve,he,Xe,mt){if(mt){he=mt+":"+he;const _t=U[mt];_t?Ve.setAttributeNS(_t,he,Xe):Ve.setAttribute(he,Xe)}else Ve.setAttribute(he,Xe)}removeAttribute(Ve,he,Xe){if(Xe){const mt=U[Xe];mt?Ve.removeAttributeNS(mt,he):Ve.removeAttribute(`${Xe}:${he}`)}else Ve.removeAttribute(he)}addClass(Ve,he){Ve.classList.add(he)}removeClass(Ve,he){Ve.classList.remove(he)}setStyle(Ve,he,Xe,mt){mt&(p.RendererStyleFlags2.DashCase|p.RendererStyleFlags2.Important)?Ve.style.setProperty(he,Xe,mt&p.RendererStyleFlags2.Important?"important":""):Ve.style[he]=Xe}removeStyle(Ve,he,Xe){Xe&p.RendererStyleFlags2.DashCase?Ve.style.removeProperty(he):Ve.style[he]=""}setProperty(Ve,he,Xe){Ve[he]=Xe}setValue(Ve,he){Ve.nodeValue=he}listen(Ve,he,Xe){return"string"==typeof Ve?this.eventManager.addGlobalEventListener(Ve,he,q(Xe)):this.eventManager.addEventListener(Ve,he,q(Xe))}}function rt(Ue){return"TEMPLATE"===Ue.tagName&&void 0!==Ue.content}class yt extends de{constructor(Ve,he,Xe,mt){super(Ve),this.component=Xe;const _t=G(mt+"-"+Xe.id,Xe.styles,[]);he.addStyles(_t),this.contentAttr=we(mt+"-"+Xe.id),this.hostAttr=tt(mt+"-"+Xe.id)}applyToHost(Ve){super.setAttribute(Ve,this.hostAttr,"")}createElement(Ve,he){const Xe=super.createElement(Ve,he);return super.setAttribute(Xe,this.contentAttr,""),Xe}}class Oe extends de{constructor(Ve,he,Xe,mt){super(Ve),this.sharedStylesHost=he,this.hostEl=Xe,this.shadowRoot=Xe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const _t=G(mt.id,mt.styles,[]);for(let Pt=0;Pt<_t.length;Pt++){const Ht=document.createElement("style");Ht.textContent=_t[Pt],this.shadowRoot.appendChild(Ht)}}nodeOrShadowRoot(Ve){return Ve===this.hostEl?this.shadowRoot:Ve}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ve,he){return super.appendChild(this.nodeOrShadowRoot(Ve),he)}insertBefore(Ve,he,Xe){return super.insertBefore(this.nodeOrShadowRoot(Ve),he,Xe)}removeChild(Ve,he){return super.removeChild(this.nodeOrShadowRoot(Ve),he)}parentNode(Ve){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ve)))}}let ft=(()=>{class Ue extends A{constructor(he){super(he)}supports(he){return!0}addEventListener(he,Xe,mt){return he.addEventListener(Xe,mt,!1),()=>this.removeEventListener(he,Xe,mt)}removeEventListener(he,Xe,mt){return he.removeEventListener(Xe,mt)}}return Ue.\u0275fac=function(he){return new(he||Ue)(p.\u0275\u0275inject(n.DOCUMENT))},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})();const wt=["alt","control","meta","shift"],at={"\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"},Ke={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"},nt={alt:Ue=>Ue.altKey,control:Ue=>Ue.ctrlKey,meta:Ue=>Ue.metaKey,shift:Ue=>Ue.shiftKey};let Tt=(()=>{class Ue extends A{constructor(he){super(he)}supports(he){return null!=Ue.parseEventName(he)}addEventListener(he,Xe,mt){const _t=Ue.parseEventName(Xe),Pt=Ue.eventCallback(_t.fullKey,mt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.\u0275getDOM)().onAndCancel(he,_t.domEventName,Pt))}static parseEventName(he){const Xe=he.toLowerCase().split("."),mt=Xe.shift();if(0===Xe.length||"keydown"!==mt&&"keyup"!==mt)return null;const _t=Ue._normalizeKey(Xe.pop());let Pt="";if(wt.forEach(dn=>{const On=Xe.indexOf(dn);On>-1&&(Xe.splice(On,1),Pt+=dn+".")}),Pt+=_t,0!=Xe.length||0===_t.length)return null;const Ht={};return Ht.domEventName=mt,Ht.fullKey=Pt,Ht}static getEventFullKey(he){let Xe="",mt=function Ct(Ue){let Ve=Ue.key;if(null==Ve){if(Ve=Ue.keyIdentifier,null==Ve)return"Unidentified";Ve.startsWith("U+")&&(Ve=String.fromCharCode(parseInt(Ve.substring(2),16)),3===Ue.location&&Ke.hasOwnProperty(Ve)&&(Ve=Ke[Ve]))}return at[Ve]||Ve}(he);return mt=mt.toLowerCase()," "===mt?mt="space":"."===mt&&(mt="dot"),wt.forEach(_t=>{_t!=mt&&(0,nt[_t])(he)&&(Xe+=_t+".")}),Xe+=mt,Xe}static eventCallback(he,Xe,mt){return _t=>{Ue.getEventFullKey(_t)===he&&mt.runGuarded(()=>Xe(_t))}}static _normalizeKey(he){return"esc"===he?"escape":he}}return Ue.\u0275fac=function(he){return new(he||Ue)(p.\u0275\u0275inject(n.DOCUMENT))},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})();function It(Ue,Ve){var he;return(0,p.\u0275internalBootstrapApplication)({rootComponent:Ue,appProviders:[...De,...null!==(he=null==Ve?void 0:Ve.providers)&&void 0!==he?he:[]],platformProviders:We})}function ze(){return[...z]}function Ae(){u.makeCurrent()}const We=[{provide:p.PLATFORM_ID,useValue:n.\u0275PLATFORM_BROWSER_ID},{provide:p.PLATFORM_INITIALIZER,useValue:Ae,multi:!0},{provide:n.DOCUMENT,useFactory:function pe(){return(0,p.\u0275setDocument)(document),document},deps:[]}],Ie=(0,p.createPlatformFactory)(p.platformCore,"browser",We),Ye=new p.InjectionToken(""),z=[{provide:p.\u0275TESTABILITY_GETTER,useClass:v,deps:[]},{provide:p.\u0275TESTABILITY,useClass:p.Testability,deps:[p.NgZone,p.TestabilityRegistry,p.\u0275TESTABILITY_GETTER]},{provide:p.Testability,useClass:p.Testability,deps:[p.NgZone,p.TestabilityRegistry,p.\u0275TESTABILITY_GETTER]}],De=[{provide:p.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:p.ErrorHandler,useFactory:function je(){return new p.ErrorHandler},deps:[]},{provide:E,useClass:ft,multi:!0,deps:[n.DOCUMENT,p.NgZone,p.PLATFORM_ID]},{provide:E,useClass:Tt,multi:!0,deps:[n.DOCUMENT]},{provide:ae,useClass:ae,deps:[M,j,p.APP_ID]},{provide:p.RendererFactory2,useExisting:ae},{provide:k,useExisting:j},{provide:j,useClass:j,deps:[n.DOCUMENT]},{provide:M,useClass:M,deps:[E,p.NgZone]},{provide:n.XhrFactory,useClass:y,deps:[]},[]];let Le=(()=>{class Ue{constructor(he){}static withServerTransition(he){return{ngModule:Ue,providers:[{provide:p.APP_ID,useValue:he.appId},{provide:m,useExisting:p.APP_ID},_]}}}return Ue.\u0275fac=function(he){return new(he||Ue)(p.\u0275\u0275inject(Ye,12))},Ue.\u0275mod=p.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=p.\u0275\u0275defineInjector({providers:[...De,...z],imports:[n.CommonModule,p.ApplicationModule]}),Ue})(),Fe=(()=>{class Ue{constructor(he){this._doc=he,this._dom=(0,n.\u0275getDOM)()}addTag(he,Xe=!1){return he?this._getOrCreateElement(he,Xe):null}addTags(he,Xe=!1){return he?he.reduce((mt,_t)=>(_t&&mt.push(this._getOrCreateElement(_t,Xe)),mt),[]):[]}getTag(he){return he&&this._doc.querySelector(`meta[${he}]`)||null}getTags(he){if(!he)return[];const Xe=this._doc.querySelectorAll(`meta[${he}]`);return Xe?[].slice.call(Xe):[]}updateTag(he,Xe){if(!he)return null;Xe=Xe||this._parseSelector(he);const mt=this.getTag(Xe);return mt?this._setMetaElementAttributes(he,mt):this._getOrCreateElement(he,!0)}removeTag(he){this.removeTagElement(this.getTag(he))}removeTagElement(he){he&&this._dom.remove(he)}_getOrCreateElement(he,Xe=!1){if(!Xe){const Pt=this._parseSelector(he),Ht=this.getTags(Pt).filter(dn=>this._containsAttributes(he,dn))[0];if(void 0!==Ht)return Ht}const mt=this._dom.createElement("meta");return this._setMetaElementAttributes(he,mt),this._doc.getElementsByTagName("head")[0].appendChild(mt),mt}_setMetaElementAttributes(he,Xe){return Object.keys(he).forEach(mt=>Xe.setAttribute(this._getMetaKeyMap(mt),he[mt])),Xe}_parseSelector(he){const Xe=he.name?"name":"property";return`${Xe}="${he[Xe]}"`}_containsAttributes(he,Xe){return Object.keys(he).every(mt=>Xe.getAttribute(this._getMetaKeyMap(mt))===he[mt])}_getMetaKeyMap(he){return ge[he]||he}}return Ue.\u0275fac=function(he){return new(he||Ue)(p.\u0275\u0275inject(n.DOCUMENT))},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:function(he){let Xe=null;return Xe=he?new he:function Se(){return new Fe((0,p.\u0275\u0275inject)(n.DOCUMENT))}(),Xe},providedIn:"root"}),Ue})();const ge={httpEquiv:"http-equiv"};let ht=(()=>{class Ue{constructor(he){this._doc=he}getTitle(){return this._doc.title}setTitle(he){this._doc.title=he||""}}return Ue.\u0275fac=function(he){return new(he||Ue)(p.\u0275\u0275inject(n.DOCUMENT))},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:function(he){let Xe=null;return Xe=he?new he:function xe(){return new ht((0,p.\u0275\u0275inject)(n.DOCUMENT))}(),Xe},providedIn:"root"}),Ue})();function Te(Ue,Ve){"undefined"!=typeof COMPILED&&COMPILED||((p.\u0275global.ng=p.\u0275global.ng||{})[Ue]=Ve)}const He="undefined"!=typeof window&&window||{};class dt{constructor(Ve,he){this.msPerTick=Ve,this.numTicks=he}}class xt{constructor(Ve){this.appRef=Ve.injector.get(p.ApplicationRef)}timeChangeDetection(Ve){const he=Ve&&Ve.record,Xe="Change Detection",mt=null!=He.console.profile;he&&mt&&He.console.profile(Xe);const _t=kt();let Pt=0;for(;Pt<5||kt()-_t<500;)this.appRef.tick(),Pt++;const Ht=kt();he&&mt&&He.console.profileEnd(Xe);const dn=(Ht-_t)/Pt;return He.console.log(`ran ${Pt} change detection cycles`),He.console.log(`${dn.toFixed(2)} ms per check`),new dt(dn,Pt)}}function kt(){return He.performance&&He.performance.now?He.performance.now():(new Date).getTime()}const Bt="profiler";function Zt(Ue){return Te(Bt,new xt(Ue)),Ue}function Ne(){Te(Bt,null)}function $e(Ue){const Ve={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return Ue.replace(/[&"'<>]/g,he=>Ve[he])}function fe(Ue){return Ue}let ee=(()=>{class Ue{constructor(){this.store={},this.onSerializeCallbacks={}}static init(he){const Xe=new Ue;return Xe.store=he,Xe}get(he,Xe){return void 0!==this.store[he]?this.store[he]:Xe}set(he,Xe){this.store[he]=Xe}remove(he){delete this.store[he]}hasKey(he){return this.store.hasOwnProperty(he)}onSerialize(he,Xe){this.onSerializeCallbacks[he]=Xe}toJson(){for(const he in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(he))try{this.store[he]=this.onSerializeCallbacks[he]()}catch(Xe){console.warn("Exception in onSerialize callback: ",Xe)}return JSON.stringify(this.store)}}return Ue.\u0275fac=function(he){return new(he||Ue)},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})();function oe(Ue,Ve){const he=Ue.getElementById(Ve+"-state");let Xe={};if(he&&he.textContent)try{Xe=JSON.parse(function ve(Ue){const Ve={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return Ue.replace(/&[^;]+;/g,he=>Ve[he])}(he.textContent))}catch(mt){console.warn("Exception while restoring TransferState for app "+Ve,mt)}return ee.init(Xe)}let L=(()=>{class Ue{}return Ue.\u0275fac=function(he){return new(he||Ue)},Ue.\u0275mod=p.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=p.\u0275\u0275defineInjector({providers:[{provide:ee,useFactory:oe,deps:[n.DOCUMENT,p.APP_ID]}]}),Ue})();class be{static all(){return()=>!0}static css(Ve){return he=>null!=he.nativeElement&&function ct(Ue,Ve){return!!(0,n.\u0275getDOM)().isElementNode(Ue)&&(Ue.matches&&Ue.matches(Ve)||Ue.msMatchesSelector&&Ue.msMatchesSelector(Ve)||Ue.webkitMatchesSelector&&Ue.webkitMatchesSelector(Ve))}(he.nativeElement,Ve)}static directive(Ve){return he=>-1!==he.providerTokens.indexOf(Ve)}}const ke={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},pt=new p.InjectionToken("HammerGestureConfig"),se=new p.InjectionToken("HammerLoader");let ye=(()=>{class Ue{constructor(){this.events=[],this.overrides={}}buildHammer(he){const Xe=new Hammer(he,this.options);Xe.get("pinch").set({enable:!0}),Xe.get("rotate").set({enable:!0});for(const mt in this.overrides)Xe.get(mt).set(this.overrides[mt]);return Xe}}return Ue.\u0275fac=function(he){return new(he||Ue)},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})(),qe=(()=>{class Ue extends A{constructor(he,Xe,mt,_t){super(he),this._config=Xe,this.console=mt,this.loader=_t,this._loaderPromise=null}supports(he){return!(!ke.hasOwnProperty(he.toLowerCase())&&!this.isCustomEvent(he)||!window.Hammer&&!this.loader)}addEventListener(he,Xe,mt){const _t=this.manager.getZone();if(Xe=Xe.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||_t.runOutsideAngular(()=>this.loader());let Pt=!1,Ht=()=>{Pt=!0};return _t.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Pt||(Ht=this.addEventListener(he,Xe,mt)):Ht=()=>{}}).catch(()=>{Ht=()=>{}})),()=>{Ht()}}return _t.runOutsideAngular(()=>{const Pt=this._config.buildHammer(he),Ht=function(dn){_t.runGuarded(function(){mt(dn)})};return Pt.on(Xe,Ht),()=>{Pt.off(Xe,Ht),"function"==typeof Pt.destroy&&Pt.destroy()}})}isCustomEvent(he){return this._config.events.indexOf(he)>-1}}return Ue.\u0275fac=function(he){return new(he||Ue)(p.\u0275\u0275inject(n.DOCUMENT),p.\u0275\u0275inject(pt),p.\u0275\u0275inject(p.\u0275Console),p.\u0275\u0275inject(se,8))},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:Ue.\u0275fac}),Ue})(),gt=(()=>{class Ue{}return Ue.\u0275fac=function(he){return new(he||Ue)},Ue.\u0275mod=p.\u0275\u0275defineNgModule({type:Ue}),Ue.\u0275inj=p.\u0275\u0275defineInjector({providers:[{provide:E,useClass:qe,multi:!0,deps:[n.DOCUMENT,pt,p.\u0275Console,[new p.Optional,se]]},{provide:pt,useClass:ye,deps:[]}]}),Ue})(),$t=(()=>{class Ue{}return Ue.\u0275fac=function(he){return new(he||Ue)},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:function(he){let Xe=null;return Xe=he?new(he||Ue):p.\u0275\u0275inject(nn),Xe},providedIn:"root"}),Ue})(),nn=(()=>{class Ue extends $t{constructor(he){super(),this._doc=he}sanitize(he,Xe){if(null==Xe)return null;switch(he){case p.SecurityContext.NONE:return Xe;case p.SecurityContext.HTML:return(0,p.\u0275allowSanitizationBypassAndThrow)(Xe,"HTML")?(0,p.\u0275unwrapSafeValue)(Xe):(0,p.\u0275_sanitizeHtml)(this._doc,String(Xe)).toString();case p.SecurityContext.STYLE:return(0,p.\u0275allowSanitizationBypassAndThrow)(Xe,"Style")?(0,p.\u0275unwrapSafeValue)(Xe):Xe;case p.SecurityContext.SCRIPT:if((0,p.\u0275allowSanitizationBypassAndThrow)(Xe,"Script"))return(0,p.\u0275unwrapSafeValue)(Xe);throw new Error("unsafe value used in a script context");case p.SecurityContext.URL:return(0,p.\u0275allowSanitizationBypassAndThrow)(Xe,"URL")?(0,p.\u0275unwrapSafeValue)(Xe):(0,p.\u0275_sanitizeUrl)(String(Xe));case p.SecurityContext.RESOURCE_URL:if((0,p.\u0275allowSanitizationBypassAndThrow)(Xe,"ResourceURL"))return(0,p.\u0275unwrapSafeValue)(Xe);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${he} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(he){return(0,p.\u0275bypassSanitizationTrustHtml)(he)}bypassSecurityTrustStyle(he){return(0,p.\u0275bypassSanitizationTrustStyle)(he)}bypassSecurityTrustScript(he){return(0,p.\u0275bypassSanitizationTrustScript)(he)}bypassSecurityTrustUrl(he){return(0,p.\u0275bypassSanitizationTrustUrl)(he)}bypassSecurityTrustResourceUrl(he){return(0,p.\u0275bypassSanitizationTrustResourceUrl)(he)}}return Ue.\u0275fac=function(he){return new(he||Ue)(p.\u0275\u0275inject(n.DOCUMENT))},Ue.\u0275prov=p.\u0275\u0275defineInjectable({token:Ue,factory:function(he){let Xe=null;return Xe=he?new he:function on(Ue){return new nn(Ue.get(n.DOCUMENT))}(p.\u0275\u0275inject(p.Injector)),Xe},providedIn:"root"}),Ue})();const vn=new p.Version("14.1.0")},107:(H,o,a)=>{"use strict";a.r(o),a.d(o,{MONACO_PATH:()=>v,MonacoDiffEditorComponent:()=>A,MonacoEditorComponent:()=>M,MonacoEditorLoaderDirective:()=>E,MonacoEditorLoaderService:()=>y,MonacoEditorModule:()=>k});var n=a(5e3),p=a(2722),b=a(9300),u=a(5698),r=a(1135),c=a(7579),f=a(655),h=a(3075);const m=["editor"],d=["diffEditor"],v="MONACO_PATH";let y=(()=>{class j{constructor(U,Q){this.ngZone=U,this.monacoPathConfig=Q,this.isMonacoLoaded$=new r.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?U.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(U){U&&(this._monacoPath=U)}loadMonaco(){const U=()=>{let re=this._monacoPath;window.amdRequire=window.require;const me=!!this.nodeRequire,we=re.includes("http");me&&(window.require=this.nodeRequire,we||(re=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:re}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},tt=>console.error("Error loading monaco-editor: ",tt))};if(window.amdRequire)return U();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const X=document.createElement("script");X.type="text/javascript",X.src=`${this._monacoPath}/loader.js`,X.addEventListener("load",U),document.body.appendChild(X)}addElectronFixScripts(){const U=document.createElement("script"),Q=document.createTextNode("self.module = undefined;"),V=document.createTextNode("self.process.browser = true;");U.appendChild(Q),U.appendChild(V),document.body.appendChild(U)}}return j.\u0275fac=function(U){return new(U||j)(n.\u0275\u0275inject(n.NgZone),n.\u0275\u0275inject(v,8))},j.\u0275prov=n.\u0275\u0275defineInjectable({token:j,factory:j.\u0275fac,providedIn:"root"}),j})(),E=(()=>{class j{constructor(U,Q,V){this.templateRef=U,this.viewContainer=Q,this.monacoEditorLoaderService=V,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new c.x}ngOnInit(){this.isMonacoLoaded$.pipe((0,p.R)(this.destroyed$)).subscribe(U=>{if(!U)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}}return j.\u0275fac=function(U){return new(U||j)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(y))},j.\u0275dir=n.\u0275\u0275defineDirective({type:j,selectors:[["","ngxLoadMonacoEditor",""]]}),j})(),M=(()=>{class j{constructor(U){this.monacoLoader=U,this.init=new n.EventEmitter,this.onTouched=()=>{},this.onErrorStatusChange=()=>{},this.propagateChange=()=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe((0,b.h)(U=>U),(0,u.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(U){if(this.editor&&U.options&&!U.options.firstChange){const Q=U.options.currentValue,{language:V,theme:X}=Q,re=(0,f.__rest)(Q,["language","theme"]),{language:me,theme:we}=U.options.previousValue;me!==V&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),we!==X&&monaco.editor.setTheme(X),this.editor.updateOptions(re)}if(this.editor&&U.uri){const Q=U.uri.currentValue,V=U.uri.previousValue;if(V&&!Q||!V&&Q||Q&&V&&Q.path!==V.path){const X=this.editor.getValue();let re;this.modelUriInstance&&this.modelUriInstance.dispose(),Q&&(re=monaco.editor.getModels().find(me=>me.uri.path===Q.path)),this.modelUriInstance=re||monaco.editor.createModel(X,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(U){this.value=U,this.editor&&U?this.editor.setValue(U):this.editor&&this.editor.setValue("")}registerOnChange(U){this.propagateChange=U}registerOnTouched(U){this.onTouched=U}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(U){this.onErrorStatusChange=U}initEditor(){const U={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({},U),this.options):U),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const U=this.modelMarkers.map(({message:V})=>V).join("|");this.parsedError!==U&&(this.parsedError=U,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return j.\u0275fac=function(U){return new(U||j)(n.\u0275\u0275directiveInject(y))},j.\u0275cmp=n.\u0275\u0275defineComponent({type:j,selectors:[["ngx-monaco-editor"]],viewQuery:function(U,Q){if(1&U&&n.\u0275\u0275viewQuery(m,7),2&U){let V;n.\u0275\u0275queryRefresh(V=n.\u0275\u0275loadQuery())&&(Q.editorContent=V.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[n.\u0275\u0275ProvidersFeature([{provide:h.NG_VALUE_ACCESSOR,useExisting:(0,n.forwardRef)(()=>j),multi:!0},{provide:h.NG_VALIDATORS,useExisting:(0,n.forwardRef)(()=>j),multi:!0}]),n.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(U,Q){1&U&&(n.\u0275\u0275elementStart(0,"div",0,1),n.\u0275\u0275element(2,"div",2,3),n.\u0275\u0275elementEnd())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),j})(),A=(()=>{class j{constructor(U){this.monacoLoader=U,this.init=new n.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,b.h)(U=>U),(0,u.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(U){if(this.editor&&(U.code&&!U.code.firstChange||U.modified&&!U.modified.firstChange)){const Q=monaco.editor.createModel(this.modified),V=monaco.editor.createModel(this.original);this.editor.setModel({original:V,modified:Q})}this.editor&&U.options&&!U.options.firstChange&&(U.options.previousValue.theme!==U.options.currentValue.theme&&monaco.editor.setTheme(U.options.currentValue.theme),this.editor.updateOptions(U.options.currentValue))}initMonaco(){let U={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(U=Object.assign({},U,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,U);const Q=monaco.editor.createModel(this.original),V=monaco.editor.createModel(this.modified);this.editor.setModel({original:Q,modified:V}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}}return j.\u0275fac=function(U){return new(U||j)(n.\u0275\u0275directiveInject(y))},j.\u0275cmp=n.\u0275\u0275defineComponent({type:j,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(U,Q){if(1&U&&n.\u0275\u0275viewQuery(d,7),2&U){let V;n.\u0275\u0275queryRefresh(V=n.\u0275\u0275loadQuery())&&(Q.editorContent=V.first)}},inputs:{original:"original",modified:"modified",options:"options"},outputs:{init:"init"},features:[n.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["diffEditor",""]],template:function(U,Q){1&U&&(n.\u0275\u0275elementStart(0,"div",0,1),n.\u0275\u0275element(2,"div",2,3),n.\u0275\u0275elementEnd())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),j})(),k=(()=>{class j{}return j.\u0275fac=function(U){return new(U||j)},j.\u0275mod=n.\u0275\u0275defineNgModule({type:j}),j.\u0275inj=n.\u0275\u0275defineInjector({imports:[[]]}),j})()},1430:(H,o,a)=>{"use strict";a.r(o),a.d(o,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>re,AngularSplitModule:()=>tt,SplitAreaDirective:()=>we,SplitComponent:()=>me});var n=a(5e3),p=a(9808),b=a(7579),u=a(8306),r=a(8372);const c=["gutterEls"];function f(G,q){if(1&G){const B=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",2,3),n.\u0275\u0275listener("keydown",function(de){n.\u0275\u0275restoreView(B);const _e=n.\u0275\u0275nextContext().index,it=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(it.startKeyboardDrag(de,2*_e+1,_e+1))})("mousedown",function(de){n.\u0275\u0275restoreView(B);const _e=n.\u0275\u0275nextContext().index,it=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(it.startMouseDrag(de,2*_e+1,_e+1))})("touchstart",function(de){n.\u0275\u0275restoreView(B);const _e=n.\u0275\u0275nextContext().index,it=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(it.startMouseDrag(de,2*_e+1,_e+1))})("mouseup",function(de){n.\u0275\u0275restoreView(B);const _e=n.\u0275\u0275nextContext().index,it=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(it.clickGutter(de,_e+1))})("touchend",function(de){n.\u0275\u0275restoreView(B);const _e=n.\u0275\u0275nextContext().index,it=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(it.clickGutter(de,_e+1))}),n.\u0275\u0275element(2,"div",4),n.\u0275\u0275elementEnd()}if(2&G){const B=n.\u0275\u0275nextContext(),ae=B.index,de=B.$implicit,_e=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("flex-basis",_e.gutterSize,"px")("order",2*ae+1),n.\u0275\u0275attribute("aria-label",_e.gutterAriaLabel)("aria-orientation",_e.direction)("aria-valuemin",de.minSize)("aria-valuemax",de.maxSize)("aria-valuenow",de.size)("aria-valuetext",_e.getAriaAreaSizeText(de.size))}}function h(G,q){1&G&&n.\u0275\u0275template(0,f,3,10,"div",1),2&G&&n.\u0275\u0275property("ngIf",!1===q.last)}const m=["*"];function d(G){if(void 0!==G.changedTouches&&G.changedTouches.length>0)return{x:G.changedTouches[0].clientX,y:G.changedTouches[0].clientY};if(void 0!==G.clientX&&void 0!==G.clientY)return{x:G.clientX,y:G.clientY};if(void 0!==G.currentTarget){const q=G.currentTarget;return{x:q.offsetLeft,y:q.offsetTop}}return null}function _(G,q,B){return Math.abs(G.x-q.x)<=B&&Math.abs(G.y-q.y)<=B}function y(G,q){const B=G.nativeElement.getBoundingClientRect();return"horizontal"===q?B.width:B.height}function E(G){return"boolean"==typeof G?G:"false"!==G}function M(G,q){return null==G?q:(G=Number(G),!isNaN(G)&&G>=0?G:q)}function A(G,q){if("percent"===G){const B=q.reduce((ae,de)=>null!==de?ae+de:ae,0);return q.every(ae=>null!==ae)&&B>99.9&&B<100.1}if("pixel"===G)return 1===q.filter(B=>null===B).length}function k(G){return null===G.size?null:!0===G.component.lockSize?G.size:null===G.component.minSize?null:G.component.minSize>G.size?G.size:G.component.minSize}function j(G){return null===G.size?null:!0===G.component.lockSize?G.size:null===G.component.maxSize?null:G.component.maxSize<G.size?G.size:G.component.maxSize}function Y(G,q,B,ae){return q.reduce((de,_e)=>{const it=function U(G,q,B,ae){return 0===B?{areaSnapshot:q,pixelAbsorb:0,percentAfterAbsorption:q.sizePercentAtStart,pixelRemain:0}:0===q.sizePixelAtStart&&B<0?{areaSnapshot:q,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:B}:"percent"===G?function Q(G,q,B){const de=(G.sizePixelAtStart+q)/B*100;if(q>0){if(null!==G.area.maxSize&&de>G.area.maxSize){const _e=G.area.maxSize/100*B;return{areaSnapshot:G,pixelAbsorb:_e,percentAfterAbsorption:G.area.maxSize,pixelRemain:G.sizePixelAtStart+q-_e}}return{areaSnapshot:G,pixelAbsorb:q,percentAfterAbsorption:de>100?100:de,pixelRemain:0}}if(q<0){if(null!==G.area.minSize&&de<G.area.minSize){const _e=G.area.minSize/100*B;return{areaSnapshot:G,pixelAbsorb:_e,percentAfterAbsorption:G.area.minSize,pixelRemain:G.sizePixelAtStart+q-_e}}return de<0?{areaSnapshot:G,pixelAbsorb:-G.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:q+G.sizePixelAtStart}:{areaSnapshot:G,pixelAbsorb:q,percentAfterAbsorption:de,pixelRemain:0}}}(q,B,ae):"pixel"===G?function V(G,q,B){const ae=G.sizePixelAtStart+q;return q>0?null!==G.area.maxSize&&ae>G.area.maxSize?{areaSnapshot:G,pixelAbsorb:G.area.maxSize-G.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:ae-G.area.maxSize}:{areaSnapshot:G,pixelAbsorb:q,percentAfterAbsorption:-1,pixelRemain:0}:q<0?null!==G.area.minSize&&ae<G.area.minSize?{areaSnapshot:G,pixelAbsorb:G.area.minSize+q-ae,percentAfterAbsorption:-1,pixelRemain:ae-G.area.minSize}:ae<0?{areaSnapshot:G,pixelAbsorb:-G.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:q+G.sizePixelAtStart}:{areaSnapshot:G,pixelAbsorb:q,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(q,B):void 0}(G,_e,de.remain,ae);return de.list.push(it),de.remain=it.pixelRemain,de},{remain:B,list:[]})}function X(G,q){"percent"===G?q.areaSnapshot.area.size=q.percentAfterAbsorption:"pixel"===G&&null!==q.areaSnapshot.area.size&&(q.areaSnapshot.area.size=q.areaSnapshot.sizePixelAtStart+q.pixelAbsorb)}const re=new n.InjectionToken("angular-split-global-config");let me=(()=>{class G{constructor(B,ae,de,_e,it){this.ngZone=B,this.elRef=ae,this.cdRef=de,this.renderer=_e,this.gutterClickDeltaPx=2,this._config={direction:"horizontal",unit:"percent",gutterSize:11,gutterStep:1,restrictMove:!1,useTransition:!1,disabled:!1,dir:"ltr",gutterDblClickDuration:0},this.dragStart=new n.EventEmitter(!1),this.dragEnd=new n.EventEmitter(!1),this.gutterClick=new n.EventEmitter(!1),this.gutterDblClick=new n.EventEmitter(!1),this.dragProgressSubject=new b.x,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=it?Object.assign(this._config,it):this._config,Object.keys(this._config).forEach(rt=>{this[rt]=this._config[rt]})}set direction(B){this._direction="vertical"===B?"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(B){this._unit="pixel"===B?"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(B){this._gutterSize=M(B,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(B){this._gutterStep=M(B,1)}get gutterStep(){return this._gutterStep}set restrictMove(B){this._restrictMove=E(B)}get restrictMove(){return this._restrictMove}set useTransition(B){this._useTransition=E(B),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(B){this._disabled=E(B),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(B){this._dir="rtl"===B?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(B){this._gutterDblClickDuration=M(B,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new u.y(B=>this.transitionEndSubscriber=B).pipe((0,r.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(B){const ae={component:B,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===B.visible?(this.displayedAreas.push(ae),this.build(!0,!0)):this.hiddenAreas.push(ae)}removeArea(B){if(this.displayedAreas.some(ae=>ae.component===B)){const ae=this.displayedAreas.find(de=>de.component===B);this.displayedAreas.splice(this.displayedAreas.indexOf(ae),1),this.build(!0,!0)}else if(this.hiddenAreas.some(ae=>ae.component===B)){const ae=this.hiddenAreas.find(de=>de.component===B);this.hiddenAreas.splice(this.hiddenAreas.indexOf(ae),1)}}updateArea(B,ae,de){!0===B.visible&&this.build(ae,de)}showArea(B){const ae=this.hiddenAreas.find(_e=>_e.component===B);if(void 0===ae)return;const de=this.hiddenAreas.splice(this.hiddenAreas.indexOf(ae),1);this.displayedAreas.push(...de),this.build(!0,!0)}hideArea(B){const ae=this.displayedAreas.find(_e=>_e.component===B);if(void 0===ae)return;const de=this.displayedAreas.splice(this.displayedAreas.indexOf(ae),1);de.forEach(_e=>{_e.order=0,_e.size=0}),this.hiddenAreas.push(...de),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(B=>null===B.size?"*":B.size)}setVisibleAreaSizes(B){if(B.length!==this.displayedAreas.length)return!1;const ae=B.map(_e=>M(_e,null));return!1!==A(this.unit,ae)&&(this.displayedAreas.forEach((_e,it)=>_e.component._size=ae[it]),this.build(!1,!0),!0)}build(B,ae){if(this.stopDragging(),!0===B&&(this.displayedAreas.every(de=>null!==de.component.order)&&this.displayedAreas.sort((de,_e)=>de.component.order-_e.component.order),this.displayedAreas.forEach((de,_e)=>{de.order=2*_e,de.component.setStyleOrder(de.order)})),!0===ae){const de=A(this.unit,this.displayedAreas.map(_e=>_e.component.size));switch(this.unit){case"percent":{const _e=100/this.displayedAreas.length;this.displayedAreas.forEach(it=>{it.size=de?it.component.size:_e,it.minSize=k(it),it.maxSize=j(it)});break}case"pixel":if(de)this.displayedAreas.forEach(_e=>{_e.size=_e.component.size,_e.minSize=k(_e),_e.maxSize=j(_e)});else{const _e=this.displayedAreas.filter(it=>null===it.component.size);if(0===_e.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((it,rt)=>{it.size=0===rt?null:it.component.size,it.minSize=0===rt?null:k(it),it.maxSize=0===rt?null:j(it)});else if(_e.length>1){let it=!1;this.displayedAreas.forEach(rt=>{null===rt.component.size?!1===it?(rt.size=null,rt.minSize=null,rt.maxSize=null,it=!0):(rt.size=100,rt.minSize=null,rt.maxSize=null):(rt.size=rt.component.size,rt.minSize=k(rt),rt.maxSize=j(rt))})}}}}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 B=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(ae=>{ae.component.setStyleFlex(0,0,`calc( ${ae.size}% - ${ae.size/100*B}px )`,null!==ae.minSize&&ae.minSize===ae.size,null!==ae.maxSize&&ae.maxSize===ae.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(B=>{null===B.size?B.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?B.component.setStyleFlex(0,0,"100%",!1,!1):B.component.setStyleFlex(0,0,`${B.size}px`,null!==B.minSize&&B.minSize===B.size,null!==B.maxSize&&B.maxSize===B.size)})}clickGutter(B,ae){const de=d(B);this.startPoint&&_(this.startPoint,de,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",ae),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",ae),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(B,ae,de){if(!0===this.disabled||!0===this.isWaitingClear)return;const _e=function v(G,q){if("horizontal"===q)switch(G.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===q)switch(G.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const B=G.currentTarget,ae="PageUp"===G.key||"PageDown"===G.key?500:50;let de=B.offsetLeft,_e=B.offsetTop;switch(G.key){case"ArrowLeft":de-=ae;break;case"ArrowRight":de+=ae;break;case"ArrowUp":_e-=ae;break;case"ArrowDown":_e+=ae;break;case"PageUp":"vertical"===q?_e-=ae:de+=ae;break;case"PageDown":"vertical"===q?_e+=ae:de-=ae;break;default:return null}return{x:de,y:_e}}(B,this.direction);null!==_e&&(this.endPoint=_e,this.startPoint=d(B),B.preventDefault(),B.stopPropagation(),this.setupForDragEvent(ae,de),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(B,ae,de){B.preventDefault(),B.stopPropagation(),this.startPoint=d(B),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(ae,de),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging())}setupForDragEvent(B,ae){this.snapshot={gutterNum:ae,lastSteppedOffset:0,allAreasSizePixel:y(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(de=>{const _e={area:de,sizePixelAtStart:y(de.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?de.size:-1};de.order<B?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[_e]:this.snapshot.areasBeforeGutter.unshift(_e):de.order>B&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[_e]):this.snapshot.areasAfterGutter.push(_e))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((de,_e)=>de+_e.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(B=>B.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(B){B.preventDefault(),B.stopPropagation();const ae=d(B);null!==this._clickTimeout&&!_(this.startPoint,ae,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=d(B),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let B="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(B=-B);const ae=Math.round(B/this.gutterStep)*this.gutterStep;if(ae===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=ae;let de=Y(this.unit,this.snapshot.areasBeforeGutter,-ae,this.snapshot.allAreasSizePixel),_e=Y(this.unit,this.snapshot.areasAfterGutter,ae,this.snapshot.allAreasSizePixel);if(0!==de.remain&&0!==_e.remain?Math.abs(de.remain)===Math.abs(_e.remain)||(Math.abs(de.remain)>Math.abs(_e.remain)?_e=Y(this.unit,this.snapshot.areasAfterGutter,ae+de.remain,this.snapshot.allAreasSizePixel):de=Y(this.unit,this.snapshot.areasBeforeGutter,-(ae-_e.remain),this.snapshot.allAreasSizePixel)):0!==de.remain?_e=Y(this.unit,this.snapshot.areasAfterGutter,ae+de.remain,this.snapshot.allAreasSizePixel):0!==_e.remain&&(de=Y(this.unit,this.snapshot.areasBeforeGutter,-(ae-_e.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const it=[...de.list,..._e.list],rt=it.find(yt=>0!==yt.percentAfterAbsorption&&yt.percentAfterAbsorption!==yt.areaSnapshot.area.minSize&&yt.percentAfterAbsorption!==yt.areaSnapshot.area.maxSize);rt&&(rt.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-it.filter(yt=>yt!==rt).reduce((yt,Oe)=>yt+Oe.percentAfterAbsorption,0))}de.list.forEach(it=>X(this.unit,it)),_e.list.forEach(it=>X(this.unit,it)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(B){if(B&&(B.preventDefault(),B.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(ae=>ae.component.unlockEvents());this.dragListeners.length>0;){const ae=this.dragListeners.pop();ae&&ae()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(B,ae){const de=this.getVisibleAreaSizes();"start"===B?this.dragStart.emit({gutterNum:ae,sizes:de}):"end"===B?this.dragEnd.emit({gutterNum:ae,sizes:de}):"click"===B?this.gutterClick.emit({gutterNum:ae,sizes:de}):"dblclick"===B?this.gutterDblClick.emit({gutterNum:ae,sizes:de}):"transitionEnd"===B?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(de)):"progress"===B&&this.dragProgressSubject.next({gutterNum:ae,sizes:de})}ngOnDestroy(){this.stopDragging()}collapseArea(B,ae,de){const _e=this.displayedAreas.find(yt=>yt.component===B);if(void 0===_e)return;const it="right"===de?1:-1;_e.sizeBeforeCollapse||(_e.sizeBeforeCollapse=_e.size,_e.gutterBeforeCollapse=it),_e.size=ae;const rt=this.gutterEls.find(yt=>yt.nativeElement.style.order===`${_e.order+it}`);rt&&this.renderer.addClass(rt.nativeElement,"as-split-gutter-collapsed"),this.updateArea(B,!1,!1)}expandArea(B){const ae=this.displayedAreas.find(_e=>_e.component===B);if(void 0===ae||!ae.sizeBeforeCollapse)return;ae.size=ae.sizeBeforeCollapse,ae.sizeBeforeCollapse=null;const de=this.gutterEls.find(_e=>_e.nativeElement.style.order===`${ae.order+ae.gutterBeforeCollapse}`);de&&this.renderer.removeClass(de.nativeElement,"as-split-gutter-collapsed"),this.updateArea(B,!1,!1)}getAriaAreaSizeText(B){return null===B?null:B.toFixed(0)+" "+this.unit}}return G.\u0275fac=function(B){return new(B||G)(n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(re,8))},G.\u0275cmp=n.\u0275\u0275defineComponent({type:G,selectors:[["as-split"]],viewQuery:function(B,ae){if(1&B&&n.\u0275\u0275viewQuery(c,5),2&B){let de;n.\u0275\u0275queryRefresh(de=n.\u0275\u0275loadQuery())&&(ae.gutterEls=de)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:m,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","slider","tabindex","0","class","as-split-gutter",3,"flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","slider","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(B,ae){1&B&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0),n.\u0275\u0275template(1,h,1,1,"ng-template",0)),2&B&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",ae.displayedAreas))},dependencies:[p.NgForOf,p.NgIf],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url()}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0}),G})(),we=(()=>{class G{constructor(B,ae,de,_e){this.ngZone=B,this.elRef=ae,this.renderer=de,this.split=_e,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(B){this._order=M(B,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(B){this._size=M(B,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(B){this._minSize=M(B,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(B){this._maxSize=M(B,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(B){this._lockSize=E(B),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(B){this._visible=E(B),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",B=>{"flex-basis"===B.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(B){this.renderer.setStyle(this.elRef.nativeElement,"order",B)}setStyleFlex(B,ae,de,_e,it){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",B),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",ae),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",de),!0===_e?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===it?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 B=this.lockListeners.pop();B&&B()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(B=0,ae="right"){this.split.collapseArea(this,B,ae)}expand(){this.split.expandArea(this)}}return G.\u0275fac=function(B){return new(B||G)(n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(me))},G.\u0275dir=n.\u0275\u0275defineDirective({type:G,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),G})(),tt=(()=>{class G{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:G,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:G,providers:[]}}}return G.\u0275fac=function(B){return new(B||G)},G.\u0275mod=n.\u0275\u0275defineNgModule({type:G}),G.\u0275inj=n.\u0275\u0275defineInjector({imports:[[p.CommonModule]]}),G})()},1017:(H,o,a)=>{"use strict";a.r(o),a.d(o,{NgxJsonViewerComponent:()=>m,NgxJsonViewerModule:()=>d});var n=a(5e3),p=a(9808);function b(_,v){1&_&&n.\u0275\u0275element(0,"div",9)}function u(_,v){if(1&_&&(n.\u0275\u0275elementStart(0,"span",10),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&_){const y=n.\u0275\u0275nextContext().$implicit;n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate(y.description)}}function r(_,v){if(1&_&&(n.\u0275\u0275elementStart(0,"section",11),n.\u0275\u0275element(1,"ngx-json-viewer",12),n.\u0275\u0275elementEnd()),2&_){const y=n.\u0275\u0275nextContext().$implicit,E=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275property("json",y.value)("expanded",E.expanded)("depth",E.depth)("_currentDepth",E._currentDepth)}}const c=function(_){return["segment",_]},f=function(_,v){return{"segment-main":!0,expandable:_,expanded:v}};function h(_,v){if(1&_){const y=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"section",2)(1,"section",3),n.\u0275\u0275listener("click",function(){const A=n.\u0275\u0275restoreView(y).$implicit,k=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(k.toggle(A))}),n.\u0275\u0275template(2,b,1,0,"div",4),n.\u0275\u0275elementStart(3,"span",5),n.\u0275\u0275text(4),n.\u0275\u0275elementEnd(),n.\u0275\u0275elementStart(5,"span",6),n.\u0275\u0275text(6,": "),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(7,u,2,1,"span",7),n.\u0275\u0275elementEnd(),n.\u0275\u0275template(8,r,2,4,"section",8),n.\u0275\u0275elementEnd()}if(2&_){const y=v.$implicit,E=n.\u0275\u0275nextContext();n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction1(6,c,"segment-type-"+y.type)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngClass",n.\u0275\u0275pureFunction2(8,f,E.isExpandable(y),y.expanded)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",E.isExpandable(y)),n.\u0275\u0275advance(2),n.\u0275\u0275textInterpolate(y.key),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",!y.expanded||!E.isExpandable(y)),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",y.expanded&&E.isExpandable(y))}}let m=(()=>{class _{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(y=>{this.segments.push(this.parseKeyValue(y,this.json[y]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(y){return"object"===y.type||"array"===y.type}toggle(y){this.isExpandable(y)&&(y.expanded=!y.expanded)}parseKeyValue(y,E){const M={key:y,value:E,type:void 0,description:""+E,expanded:this.isExpanded()};switch(typeof M.value){case"number":M.type="number";break;case"boolean":M.type="boolean";break;case"function":M.type="function";break;case"string":M.type="string",M.description='"'+M.value+'"';break;case"undefined":M.type="undefined",M.description="undefined";break;case"object":null===M.value?(M.type="null",M.description="null"):Array.isArray(M.value)?(M.type="array",M.description="Array["+M.value.length+"] "+JSON.stringify(M.value)):M.value instanceof Date?M.type="date":(M.type="object",M.description="Object "+JSON.stringify(M.value))}return M}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(y){const E=new WeakMap;return function M(A,k){let j,Y;return"object"!=typeof A||null===A||A instanceof Boolean||A instanceof Date||A instanceof Number||A instanceof RegExp||A instanceof String?A:(j=E.get(A),void 0!==j?{$ref:j}:(E.set(A,k),Array.isArray(A)?(Y=[],A.forEach(function(U,Q){Y[Q]=M(U,k+"["+Q+"]")})):(Y={},Object.keys(A).forEach(function(U){Y[U]=M(A[U],k+"["+JSON.stringify(U)+"]")})),Y))}(y,"$")}}return _.\u0275fac=function(y){return new(y||_)},_.\u0275cmp=n.\u0275\u0275defineComponent({type:_,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[n.\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(y,E){1&y&&(n.\u0275\u0275elementStart(0,"section",0),n.\u0275\u0275template(1,h,9,11,"section",1),n.\u0275\u0275elementEnd()),2&y&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",E.segments))},dependencies:[_,p.NgForOf,p.NgClass,p.NgIf],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:monospace;font-size:1em;width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.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%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:#787878}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";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%]{color:#999}.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-function[_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%]{color:#fff}.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-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_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}']}),_})(),d=(()=>{class _{}return _.\u0275fac=function(y){return new(y||_)},_.\u0275mod=n.\u0275\u0275defineNgModule({type:_}),_.\u0275inj=n.\u0275\u0275defineInjector({imports:[[p.CommonModule]]}),_})()},2290:(H,o,a)=>{"use strict";a.r(o),a.d(o,{BasePortalHost:()=>V,ComponentPortal:()=>Q,DefaultGlobalConfig:()=>it,DefaultNoAnimationsGlobalConfig:()=>ft,DefaultNoComponentGlobalConfig:()=>re,Overlay:()=>ae,OverlayContainer:()=>B,OverlayRef:()=>q,TOAST_CONFIG:()=>me,Toast:()=>_e,ToastContainerDirective:()=>Y,ToastContainerModule:()=>U,ToastInjector:()=>tt,ToastNoAnimation:()=>Oe,ToastNoAnimationModule:()=>wt,ToastPackage:()=>X,ToastRef:()=>we,ToastrComponentlessModule:()=>yt,ToastrModule:()=>rt,ToastrService:()=>de});var n=a(5e3),p=a(1777),b=a(7579),u=a(9808),r=a(2313);const c=["toast-component",""];function f(et,at){if(1&et){const Ke=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",5),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Ke);const Tt=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Tt.remove())}),n.\u0275\u0275elementStart(1,"span",6),n.\u0275\u0275text(2,"\xd7"),n.\u0275\u0275elementEnd()()}}function h(et,at){if(1&et&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275text(1),n.\u0275\u0275elementContainerEnd()),2&et){const Ke=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("[",Ke.duplicatesCount+1,"]")}}function m(et,at){if(1&et&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275text(1),n.\u0275\u0275template(2,h,2,1,"ng-container",4),n.\u0275\u0275elementEnd()),2&et){const Ke=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ke.options.titleClass),n.\u0275\u0275attribute("aria-label",Ke.title),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ke.title," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ke.duplicatesCount)}}function d(et,at){if(1&et&&n.\u0275\u0275element(0,"div",7),2&et){const Ke=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ke.options.messageClass),n.\u0275\u0275property("innerHTML",Ke.message,n.\u0275\u0275sanitizeHtml)}}function _(et,at){if(1&et&&(n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&et){const Ke=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ke.options.messageClass),n.\u0275\u0275attribute("aria-label",Ke.message),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ke.message," ")}}function v(et,at){if(1&et&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275element(1,"div",9),n.\u0275\u0275elementEnd()),2&et){const Ke=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",Ke.width+"%")}}function y(et,at){if(1&et){const Ke=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",5),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Ke);const Tt=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(Tt.remove())}),n.\u0275\u0275elementStart(1,"span",6),n.\u0275\u0275text(2,"\xd7"),n.\u0275\u0275elementEnd()()}}function E(et,at){if(1&et&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275text(1),n.\u0275\u0275elementContainerEnd()),2&et){const Ke=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("[",Ke.duplicatesCount+1,"]")}}function M(et,at){if(1&et&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275text(1),n.\u0275\u0275template(2,E,2,1,"ng-container",4),n.\u0275\u0275elementEnd()),2&et){const Ke=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ke.options.titleClass),n.\u0275\u0275attribute("aria-label",Ke.title),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ke.title," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ke.duplicatesCount)}}function A(et,at){if(1&et&&n.\u0275\u0275element(0,"div",7),2&et){const Ke=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ke.options.messageClass),n.\u0275\u0275property("innerHTML",Ke.message,n.\u0275\u0275sanitizeHtml)}}function k(et,at){if(1&et&&(n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&et){const Ke=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ke.options.messageClass),n.\u0275\u0275attribute("aria-label",Ke.message),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ke.message," ")}}function j(et,at){if(1&et&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275element(1,"div",9),n.\u0275\u0275elementEnd()),2&et){const Ke=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",Ke.width+"%")}}let Y=(()=>{class et{constructor(Ke){this.el=Ke}getContainerElement(){return this.el.nativeElement}}return et.\u0275fac=function(Ke){return new(Ke||et)(n.\u0275\u0275directiveInject(n.ElementRef))},et.\u0275dir=n.\u0275\u0275defineDirective({type:et,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),et})(),U=(()=>{class et{}return et.\u0275fac=function(Ke){return new(Ke||et)},et.\u0275mod=n.\u0275\u0275defineNgModule({type:et}),et.\u0275inj=n.\u0275\u0275defineInjector({}),et})();class Q{constructor(at,Ke){this.component=at,this.injector=Ke}attach(at,Ke){return this._attachedHost=at,at.attach(this,Ke)}detach(){const at=this._attachedHost;if(at)return this._attachedHost=void 0,at.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(at){this._attachedHost=at}}class V{attach(at,Ke){return this._attachedPortal=at,this.attachComponentPortal(at,Ke)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(at){this._disposeFn=at}}class X{constructor(at,Ke,nt,Tt,Ct,st){this.toastId=at,this.config=Ke,this.message=nt,this.title=Tt,this.toastType=Ct,this.toastRef=st,this._onTap=new b.x,this._onAction=new b.x,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(at){this._onAction.next(at)}onAction(){return this._onAction.asObservable()}}const re={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},me=new n.InjectionToken("ToastConfig");class we{constructor(at){this._overlayRef=at,this.duplicatesCount=0,this._afterClosed=new b.x,this._activate=new b.x,this._manualClose=new b.x,this._resetTimeout=new b.x,this._countDuplicate=new b.x}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(at,Ke){at&&this._resetTimeout.next(),Ke&&this._countDuplicate.next(++this.duplicatesCount)}}class tt{constructor(at,Ke){this._toastPackage=at,this._parentInjector=Ke}get(at,Ke,nt){return at===X?this._toastPackage:this._parentInjector.get(at,Ke,nt)}}class G extends V{constructor(at,Ke,nt){super(),this._hostDomElement=at,this._componentFactoryResolver=Ke,this._appRef=nt}attachComponentPortal(at,Ke){const nt=this._componentFactoryResolver.resolveComponentFactory(at.component);let Tt;return Tt=nt.create(at.injector),this._appRef.attachView(Tt.hostView),this.setDisposeFn(()=>{this._appRef.detachView(Tt.hostView),Tt.destroy()}),Ke?this._hostDomElement.insertBefore(this._getComponentRootNode(Tt),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(Tt)),Tt}_getComponentRootNode(at){return at.hostView.rootNodes[0]}}class q{constructor(at){this._portalHost=at}attach(at,Ke=!0){return this._portalHost.attach(at,Ke)}detach(){return this._portalHost.detach()}}let B=(()=>{class et{constructor(Ke){this._document=Ke}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Ke=this._document.createElement("div");Ke.classList.add("overlay-container"),Ke.setAttribute("aria-live","polite"),this._document.body.appendChild(Ke),this._containerElement=Ke}}return et.\u0275fac=function(Ke){return new(Ke||et)(n.\u0275\u0275inject(u.DOCUMENT))},et.\u0275prov=n.\u0275\u0275defineInjectable({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),ae=(()=>{class et{constructor(Ke,nt,Tt,Ct){this._overlayContainer=Ke,this._componentFactoryResolver=nt,this._appRef=Tt,this._document=Ct,this._paneElements=new Map}create(Ke,nt){return this._createOverlayRef(this.getPaneElement(Ke,nt))}getPaneElement(Ke="",nt){return this._paneElements.get(nt)||this._paneElements.set(nt,{}),this._paneElements.get(nt)[Ke]||(this._paneElements.get(nt)[Ke]=this._createPaneElement(Ke,nt)),this._paneElements.get(nt)[Ke]}_createPaneElement(Ke,nt){const Tt=this._document.createElement("div");return Tt.id="toast-container",Tt.classList.add(Ke),Tt.classList.add("toast-container"),nt?nt.getContainerElement().appendChild(Tt):this._overlayContainer.getContainerElement().appendChild(Tt),Tt}_createPortalHost(Ke){return new G(Ke,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Ke){return new q(this._createPortalHost(Ke))}}return et.\u0275fac=function(Ke){return new(Ke||et)(n.\u0275\u0275inject(B),n.\u0275\u0275inject(n.ComponentFactoryResolver),n.\u0275\u0275inject(n.ApplicationRef),n.\u0275\u0275inject(u.DOCUMENT))},et.\u0275prov=n.\u0275\u0275defineInjectable({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),de=(()=>{class et{constructor(Ke,nt,Tt,Ct,st){this.overlay=nt,this._injector=Tt,this.sanitizer=Ct,this.ngZone=st,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},Ke.default),Ke.config),Ke.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},Ke.default.iconClasses),Ke.config.iconClasses))}show(Ke,nt,Tt={},Ct=""){return this._preBuildNotification(Ct,Ke,nt,this.applyConfig(Tt))}success(Ke,nt,Tt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Ke,nt,this.applyConfig(Tt))}error(Ke,nt,Tt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Ke,nt,this.applyConfig(Tt))}info(Ke,nt,Tt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Ke,nt,this.applyConfig(Tt))}warning(Ke,nt,Tt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Ke,nt,this.applyConfig(Tt))}clear(Ke){for(const nt of this.toasts)if(void 0!==Ke){if(nt.toastId===Ke)return void nt.toastRef.manualClose()}else nt.toastRef.manualClose()}remove(Ke){const nt=this._findToast(Ke);if(!nt||(nt.activeToast.toastRef.close(),this.toasts.splice(nt.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 Tt=this.toasts[this.currentlyActive].toastRef;Tt.isInactive()||(this.currentlyActive=this.currentlyActive+1,Tt.activate())}return!0}findDuplicate(Ke="",nt="",Tt,Ct){const{includeTitleDuplicates:st}=this.toastrConfig;for(const It of this.toasts){const ze=st&&It.title===Ke;if((!st||ze)&&It.message===nt)return It.toastRef.onDuplicate(Tt,Ct),It}return null}applyConfig(Ke={}){return Object.assign(Object.assign({},this.toastrConfig),Ke)}_findToast(Ke){for(let nt=0;nt<this.toasts.length;nt++)if(this.toasts[nt].toastId===Ke)return{index:nt,activeToast:this.toasts[nt]};return null}_preBuildNotification(Ke,nt,Tt,Ct){return Ct.onActivateTick?this.ngZone.run(()=>this._buildNotification(Ke,nt,Tt,Ct)):this._buildNotification(Ke,nt,Tt,Ct)}_buildNotification(Ke,nt,Tt,Ct){if(!Ct.toastComponent)throw new Error("toastComponent required");const st=this.findDuplicate(Tt,nt,this.toastrConfig.resetTimeoutOnDuplicate&&Ct.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&Tt||nt)&&this.toastrConfig.preventDuplicates&&null!==st)return st;this.previousToastMessage=nt;let It=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(It=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const ze=this.overlay.create(Ct.positionClass,this.overlayContainer);this.index=this.index+1;let Ae=nt;nt&&Ct.enableHtml&&(Ae=this.sanitizer.sanitize(n.SecurityContext.HTML,nt));const je=new we(ze),pe=new X(this.index,Ct,Ae,Tt,Ke,je),We=new tt(pe,this._injector),Ie=new Q(Ct.toastComponent,We),Ye=ze.attach(Ie,this.toastrConfig.newestOnTop);je.componentInstance=Ye.instance;const z={toastId:this.index,title:Tt||"",message:nt||"",toastRef:je,onShown:je.afterActivate(),onHidden:je.afterClosed(),onTap:pe.onTap(),onAction:pe.onAction(),portal:Ye};return It||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{z.toastRef.activate()})),this.toasts.push(z),z}}return et.\u0275fac=function(Ke){return new(Ke||et)(n.\u0275\u0275inject(me),n.\u0275\u0275inject(ae),n.\u0275\u0275inject(n.Injector),n.\u0275\u0275inject(r.DomSanitizer),n.\u0275\u0275inject(n.NgZone))},et.\u0275prov=n.\u0275\u0275defineInjectable({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),_e=(()=>{class et{constructor(Ke,nt,Tt){this.toastrService=Ke,this.toastPackage=nt,this.ngZone=Tt,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=nt.message,this.title=nt.title,this.options=nt.config,this.originalTimeout=nt.config.timeOut,this.toastClasses=`${nt.toastType} ${nt.config.toastClass}`,this.sub=nt.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=nt.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=nt.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=nt.toastRef.countDuplicate().subscribe(Ct=>{this.duplicatesCount=Ct})}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 Ke=(new Date).getTime();this.width=(this.hideTime-Ke)/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(Ke,nt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Ke),nt)):this.timeout=setTimeout(()=>Ke(),nt)}outsideInterval(Ke,nt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Ke),nt)):this.intervalId=setInterval(()=>Ke(),nt)}runInsideAngular(Ke){this.ngZone?this.ngZone.run(()=>Ke()):Ke()}}return et.\u0275fac=function(Ke){return new(Ke||et)(n.\u0275\u0275directiveInject(de),n.\u0275\u0275directiveInject(X),n.\u0275\u0275directiveInject(n.NgZone))},et.\u0275cmp=n.\u0275\u0275defineComponent({type:et,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Ke,nt){1&Ke&&n.\u0275\u0275listener("click",function(){return nt.tapToast()})("mouseenter",function(){return nt.stickAround()})("mouseleave",function(){return nt.delayedHideToast()}),2&Ke&&(n.\u0275\u0275syntheticHostProperty("@flyInOut",nt.state),n.\u0275\u0275classMap(nt.toastClasses),n.\u0275\u0275styleProp("display",nt.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",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(Ke,nt){1&Ke&&(n.\u0275\u0275template(0,f,3,0,"button",0),n.\u0275\u0275template(1,m,3,5,"div",1),n.\u0275\u0275template(2,d,1,3,"div",2),n.\u0275\u0275template(3,_,2,4,"div",3),n.\u0275\u0275template(4,v,2,2,"div",4)),2&Ke&&(n.\u0275\u0275property("ngIf",nt.options.closeButton),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",nt.title),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",nt.message&&nt.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",nt.message&&!nt.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",nt.options.progressBar))},dependencies:[u.NgIf],encapsulation:2,data:{animation:[(0,p.X$)("flyInOut",[(0,p.SB)("inactive",(0,p.oB)({opacity:0})),(0,p.SB)("active",(0,p.oB)({opacity:1})),(0,p.SB)("removed",(0,p.oB)({opacity:0})),(0,p.eR)("inactive => active",(0,p.jt)("{{ easeTime }}ms {{ easing }}")),(0,p.eR)("active => removed",(0,p.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),et})();const it=Object.assign(Object.assign({},re),{toastComponent:_e});let rt=(()=>{class et{static forRoot(Ke={}){return{ngModule:et,providers:[{provide:me,useValue:{default:it,config:Ke}}]}}}return et.\u0275fac=function(Ke){return new(Ke||et)},et.\u0275mod=n.\u0275\u0275defineNgModule({type:et}),et.\u0275inj=n.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),et})(),yt=(()=>{class et{static forRoot(Ke={}){return{ngModule:rt,providers:[{provide:me,useValue:{default:re,config:Ke}}]}}}return et.\u0275fac=function(Ke){return new(Ke||et)},et.\u0275mod=n.\u0275\u0275defineNgModule({type:et}),et.\u0275inj=n.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),et})(),Oe=(()=>{class et{constructor(Ke,nt,Tt){this.toastrService=Ke,this.toastPackage=nt,this.appRef=Tt,this.width=-1,this.toastClasses="",this.state="inactive",this.message=nt.message,this.title=nt.title,this.options=nt.config,this.originalTimeout=nt.config.timeOut,this.toastClasses=`${nt.toastType} ${nt.config.toastClass}`,this.sub=nt.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=nt.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=nt.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=nt.toastRef.countDuplicate().subscribe(Ct=>{this.duplicatesCount=Ct})}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 Ke=(new Date).getTime();this.width=(this.hideTime-Ke)/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 et.\u0275fac=function(Ke){return new(Ke||et)(n.\u0275\u0275directiveInject(de),n.\u0275\u0275directiveInject(X),n.\u0275\u0275directiveInject(n.ApplicationRef))},et.\u0275cmp=n.\u0275\u0275defineComponent({type:et,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Ke,nt){1&Ke&&n.\u0275\u0275listener("click",function(){return nt.tapToast()})("mouseenter",function(){return nt.stickAround()})("mouseleave",function(){return nt.delayedHideToast()}),2&Ke&&(n.\u0275\u0275classMap(nt.toastClasses),n.\u0275\u0275styleProp("display",nt.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",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(Ke,nt){1&Ke&&(n.\u0275\u0275template(0,y,3,0,"button",0),n.\u0275\u0275template(1,M,3,5,"div",1),n.\u0275\u0275template(2,A,1,3,"div",2),n.\u0275\u0275template(3,k,2,4,"div",3),n.\u0275\u0275template(4,j,2,2,"div",4)),2&Ke&&(n.\u0275\u0275property("ngIf",nt.options.closeButton),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",nt.title),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",nt.message&&nt.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",nt.message&&!nt.options.enableHtml),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",nt.options.progressBar))},dependencies:[u.NgIf],encapsulation:2}),et})();const ft=Object.assign(Object.assign({},re),{toastComponent:Oe});let wt=(()=>{class et{static forRoot(Ke={}){return{ngModule:et,providers:[{provide:me,useValue:{default:ft,config:Ke}}]}}}return et.\u0275fac=function(Ke){return new(Ke||et)},et.\u0275mod=n.\u0275\u0275defineNgModule({type:et}),et.\u0275inj=n.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),et})()},4147:H=>{"use strict";H.exports=JSON.parse('{"name":"@sdkgen/playground","version":"0.0.0-dev.20220801204706","description":"","main":"index.js","types":"index.d.ts","repository":{"type":"git","url":"git+https://github.com/sdkgen/sdkgen.git"},"publishConfig":{"access":"public"},"scripts":{"eslint:fix":"eslint --fix \'src/**/*.{t,j}s\'","eslint:check":"eslint \'src/**/*.{t,j}s\'","ng":"ng","start":"ng serve","build":"ng build","build:stats":"ng build --stats-json","analyze":"webpack-bundle-analyzer dist/stats.json","watch":"ng build --watch --configuration development"},"dependencies":{},"devDependencies":{"@angular-devkit/build-angular":"~14.1.0","@angular/animations":"~14.1.0","@angular/cdk":"~14.1.0","@angular/cli":"~14.1.0","@angular/common":"~14.1.0","@angular/compiler":"~14.1.0","@angular/compiler-cli":"~14.1.0","@angular/core":"~14.1.0","@angular/forms":"~14.1.0","@angular/material":"~14.1.0","@angular/platform-browser":"~14.1.0","@angular/platform-browser-dynamic":"~14.1.0","@angular/router":"~14.1.0","@cubos/eslint-config":"^2.0.0","@materia-ui/ngx-monaco-editor":"^6.0.0","@sdkgen/browser-runtime":"file:../browser-runtime","@sdkgen/csharp-generator":"file:../csharp-generator","@sdkgen/dart-generator":"file:../dart-generator","@sdkgen/fsharp-generator":"file:../fsharp-generator","@sdkgen/kotlin-generator":"file:../kotlin-generator","@sdkgen/parser":"file:../parser","@sdkgen/swift-generator":"file:../swift-generator","@sdkgen/typescript-generator":"file:../typescript-generator","@types/file-saver":"^2.0.5","@types/node":"^16.0.0","angular-split":"^13.2.0","file-saver":"^2.0.5","json":"^11.0.0","monaco-editor":"^0.33.0","ngx-json-viewer":"^3.0.2","ngx-toastr":"^14.3.0","rxjs":"~7.5.5","tslib":"^2.2.0","typescript":"~4.6.4","webpack-bundle-analyzer":"^4.5.0","zone.js":"~0.11.5"}}')}},H=>{H(H.s=4431)}]);