@sdkgen/playground 0.0.0-dev.20220727201737 → 0.0.0-dev.20220808134551

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ (self.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{4602:function($,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,F=Object.keys(d);A<F.length;A++){var j=F[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,Y){return c(h,"".concat(m,"[").concat(Y,"]"),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 Q=h[d];if(Q)return c(h,m,Q,_);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,F=Object.keys(d);A<F.length;A++){var j=F[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(ie,he){return f(h,"".concat(m,"[").concat(he,"]"),d.slice(0,d.length-2),ie)})}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 Q=parseInt(_.split("-")[2],10),U=parseInt(_.split("-")[1],10)-1,Y=parseInt(_.split("-")[0],10),B=new Date(Y,U,Q);if(B.getFullYear()!==Y||B.getMonth()!==U||B.getDate()!==Q)throw new u(m,d,_);return B}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 ee=h[d];if(ee)return f(h,m,ee,_);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(ie){return ie.charCodeAt(0)})}catch(ie){throw new u(m,"".concat(d," (base 64)"),_)}}},2837:function($,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($,o,a){"use strict";var n=this&&this.__awaiter||function(m,d,_,v){return new(_||(_=Promise))(function(E,M){function A(Q){try{j(v.next(Q))}catch(U){M(U)}}function F(Q){try{j(v.throw(Q))}catch(U){M(U)}}function j(Q){Q.done?E(Q.value):function y(E){return E instanceof _?E:new _(function(M){M(E)})}(Q.value).then(A,F)}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(Q){return function F(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(Q){j=[6,Q],y=0}finally{v=E=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([j,Q])}}};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,F,j,Q=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(Y,B){M[B]=Y}),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(Y,B){var ee=new XMLHttpRequest;ee.open("POST","".concat(Q.baseUrl,"/").concat(d)),ee.setRequestHeader("Content-Type","application/sdkgen"),ee.onreadystatechange=function(){if(4===ee.readyState)try{var ie=JSON.parse(ee.responseText);try{f(ie,"error")&&ie.error?B(ie.error):Y(f(ie,"result")?ie.result:null)}catch(Me){var he={message:"".concat(Me),type:"Fatal"};B(he)}}catch(Me){B(he={message:"Falha de conex\xe3o com o servidor",type:"Fatal"})}},ee.send(JSON.stringify(A))}).catch(function(Y){var B;if(Q.errorHook(Y,d,_),f(Y,"type")&&f(Y,"message")&&"string"==typeof Y.type&&"string"==typeof Y.message){var ee=null!==(B=Q.errClasses[Y.type])&&void 0!==B?B:Q.errClasses.Fatal,ie=ee.name,he=Q.astJson.errors.find(function(qe){return Array.isArray(qe)?qe[0]===ie:qe===ie}),Me=void 0;throw(Me=he&&Array.isArray(he)&&f(Y,"data")?new ee(Y.message,(0,b.decode)(Q.astJson.typeTable,"".concat(ee.name,".data"),he[1],Y.data)):new ee(Y.message,void 0)).type||(Me.type=ie),Me}throw Y})];case 1:return F=U.sent(),j=(0,b.decode)(this.astJson.typeTable,"".concat(d,".ret"),E.ret,F),this.successHook(j,d,_),[2,j]}})})},m}();o.SdkgenHttpClient=h},4539:function($,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:($,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:($,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,F=!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 F?`\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($,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:($,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:($,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($,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:($,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:($,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,F=!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 F?`\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 F=v.base;for(;F instanceof n.TypeReference;)F=F.type;return`\n if (${y}.IsNone) then\n resultWriter_.WriteNullValue()\n else\n ${m(F,`${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($,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:($,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:($,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($,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($,o,a){"use strict";var n=this&&this.__rest||function(Ct,st){var It={};for(var Ue in Ct)Object.prototype.hasOwnProperty.call(Ct,Ue)&&st.indexOf(Ue)<0&&(It[Ue]=Ct[Ue]);if(null!=Ct&&"function"==typeof Object.getOwnPropertySymbols){var Ae=0;for(Ue=Object.getOwnPropertySymbols(Ct);Ae<Ue.length;Ae++)st.indexOf(Ue[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Ct,Ue[Ae])&&(It[Ue[Ae]]=Ct[Ue[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,Ue,Ae,Ne,fe){super(),this.method=st,this.path=It,this.pathVariables=Ue,this.queryVariables=Ae,this.headers=Ne,this.bodyVariable=fe}},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 F extends v{constructor(){super(...arguments),this.name="bigint"}},o.DatePrimitiveType=class j extends v{constructor(){super(...arguments),this.name="date"}},o.DateTimePrimitiveType=class Q extends v{constructor(){super(...arguments),this.name="datetime"}},o.BoolPrimitiveType=class U extends v{constructor(){super(...arguments),this.name="bool"}},o.BytesPrimitiveType=class Y extends v{constructor(){super(...arguments),this.name="bytes"}},o.VoidPrimitiveType=class B extends v{constructor(){super(...arguments),this.name="void"}},o.MoneyPrimitiveType=class ee extends v{constructor(){super(...arguments),this.name="money"}},o.CpfPrimitiveType=class ie extends v{constructor(){super(...arguments),this.name="cpf"}},o.CnpjPrimitiveType=class he extends v{constructor(){super(...arguments),this.name="cnpj"}},o.EmailPrimitiveType=class Me extends v{constructor(){super(...arguments),this.name="email"}},o.UrlPrimitiveType=class qe extends v{constructor(){super(...arguments),this.name="url"}},o.UuidPrimitiveType=class G extends v{constructor(){super(...arguments),this.name="uuid"}},o.HexPrimitiveType=class Z extends v{constructor(){super(...arguments),this.name="hex"}},o.HtmlPrimitiveType=class V extends v{constructor(){super(...arguments),this.name="html"}},o.Base64PrimitiveType=class J extends v{constructor(){super(...arguments),this.name="base64"}},o.XmlPrimitiveType=class _e extends v{constructor(){super(...arguments),this.name="xml"}},o.JsonPrimitiveType=class De 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,Ue=!1){super(),this.name=st,this.type=It,this.secret=Ue,this.annotations=[]}},o.Spread=class Et extends b{constructor(st){super(),this.typeReference=st}},o.TypeReference=class et extends u{constructor(st){super(),this.name=st}},o.StructType=class lt extends u{constructor(st){super(),this.fieldsAndSpreads=st,this.fields=[]}},o.TypeDefinition=class Ge extends b{constructor(st,It){super(),this.name=st,this.type=It,this.annotations=[]}},o.FunctionOperation=class nt extends b{constructor(st,It,Ue){super(),this.name=st,this.fieldsAndSpreads=It,this.returnType=Ue,this.annotations=[],this.args=[]}},o.AstRoot=class wt{constructor(st=[],It=[],Ue=[]){this.typeDefinitions=st,this.operations=It,this.errors=Ue,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},9747:($,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($,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:($,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(F){return F instanceof n.ArrayType?`${E(F.base)}[]`:F instanceof n.OptionalType?`${E(F.base)}?`:F.name}for(const{name:F,fields:j}of h.structTypes){if(F in y)throw new Error(`Duplicate struct type ${F}`);y[F]={};const Q=y[F];for(const U of j){Q[U.name]=E(U.type);for(const Y of U.annotations)if(Y instanceof n.DescriptionAnnotation){const B=`type.${F}.${U.name}`;null!==(m=v[B])&&void 0!==m||(v[B]=[]),v[B].push(u(Y))}}}for(const{name:F,values:j}of h.enumTypes){if(F in y)throw new Error(`Duplicate enum type ${F}`);y[F]=j.map(Q=>Q.struct?[Q.value,Q.struct.name]:Q.value)}for(const{name:F,type:j}of h.typeDefinitions)j instanceof n.StructType||j instanceof n.EnumType||(y[F]=E(j));const M={};for(const F of h.operations){const j={};for(const Q of F.args){j[Q.name]=E(Q.type);for(const U of Q.annotations)if(U instanceof n.DescriptionAnnotation){const Y=`fn.${F.name}.${Q.name}`;null!==(d=v[Y])&&void 0!==d||(v[Y]=[]),v[Y].push(u(U))}}M[F.name]={args:j,ret:E(F.returnType)};for(const Q of F.annotations){const U=`fn.${F.name}`;null!==(_=v[U])&&void 0!==_||(v[U]=[]),v[U].push(u(Q))}}return{annotations:v,errors:h.errors.map(F=>F.dataType instanceof n.VoidPrimitiveType?F.name:[F.name,F.dataType.name]),functionTable:M,typeTable:y}},o.jsonToAst=function f(h){var m,d;const _=[],v=[],y=[];function E(F,j){var Q;if("string"==typeof F){const Y=b.primitiveToAstClass.get(F);return Y?new Y:F.endsWith("?")?new n.OptionalType(E(F.slice(0,F.length-1))):F.endsWith("[]")?new n.ArrayType(E(F.slice(0,F.length-2))):new n.TypeReference(F)}if(Array.isArray(F))return new n.EnumType(F.map(Y=>{if(Array.isArray(Y)){const[B,ee]=Y,ie=new n.EnumValue(B);return y.push([ie,ee]),ie}return new n.EnumValue(Y)}));const U=[];for(const Y of Object.keys(F)){const B=new n.Field(Y,E(F[Y]));if(j){const ee=`type.${j}.${Y}`;for(const ie of null!==(Q=h.annotations[ee])&&void 0!==Q?Q:[])B.annotations.push(r(ie))}U.push(B)}return new n.StructType(U)}for(const[F,j]of Object.entries(h.typeTable)){const Q=E(j,F);v.push(new n.TypeDefinition(F,Q))}for(const[F,j]of Object.entries(h.functionTable)){const Q=Object.keys(j.args).map(B=>{var ee;const ie=new n.Field(B,E(j.args[B])),he=`fn.${F}.${B}`;for(const Me of null!==(ee=h.annotations[he])&&void 0!==ee?ee:[])ie.annotations.push(r(Me));return ie}),U=new n.FunctionOperation(F,Q,E(j.ret)),Y=`fn.${F}`;for(const B of null!==(m=h.annotations[Y])&&void 0!==m?m:[])U.annotations.push(r(B));_.push(U)}for(const[F,j]of y){const Q=null===(d=v.find(U=>U.name===j))||void 0===d?void 0:d.type;Q instanceof n.StructType&&(F.struct=Q)}const M=h.errors.map(F=>{if(Array.isArray(F)){const[j,Q]=F;return new n.ErrorNode(j,E(Q))}return new n.ErrorNode(F,new n.VoidPrimitiveType)}),A=new n.AstRoot(v,_,M);return(0,p.analyse)(A),A}},8053:($,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:($,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:Q=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),E=!0,M=Q},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:Q=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),E=!0,M=Q},CommaSymbolToken:()=>this.nextToken()})}});for(const j of d)if(j instanceof n.ArgDescriptionAnnotation){const Q=y.find(U=>U instanceof n.Field&&U.name===j.argName);if(!Q)throw new f(`Argument '${j.argName}' not found, at ${j.location}`);Q.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 F=new n.FunctionOperation(_,y,A);return F.annotations=d,F}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 F=this.parseField();if("tag"===F.name&&(F.name="_tag"),M.has(F.name))throw new f(`Cannot redeclare argument '${F.name}'`);if(M.add(F.name),A.push(F),!(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:($,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 F=A.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(F))throw new Error("Invalid querystring on path");d=u(F)}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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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(he=""){this.value=he,this.location=new a,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const he=this.constructor.name.replace("Token","");return""===this.value?he:`${he}(${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 F extends n{maybeAsIdentifier(){return new p("type")}},o.EnumKeywordToken=class j extends n{maybeAsIdentifier(){return new p("enum")}},o.FnKeywordToken=class Q extends n{maybeAsIdentifier(){return new p("fn")}},o.ErrorKeywordToken=class U extends n{maybeAsIdentifier(){return new p("error")}},o.TrueKeywordToken=class Y extends n{maybeAsIdentifier(){return new p("true")}},o.FalseKeywordToken=class B extends n{maybeAsIdentifier(){return new p("false")}},o.PrimitiveTypeToken=class ee extends n{maybeAsIdentifier(){return new p(this.value)}}},6569:($,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:($,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)),F=n.__importStar(a(1451)),j=n.__importStar(a(3251)),Q=n.__importStar(a(7238)),U=n.__importStar(a(7822)),Y=n.__importStar(a(2253)),B=n.__importStar(a(4264)),ee=n.__importStar(a(5585));function ie(it,rt){1&it&&(d.\u0275\u0275elementContainerStart(0),d.\u0275\u0275text(1,"Editor Avan\xe7ado"),d.\u0275\u0275elementContainerEnd())}function he(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 Me(it,rt){if(1&it){const yt=d.\u0275\u0275getCurrentView();d.\u0275\u0275elementStart(0,"span",17),d.\u0275\u0275template(1,ie,2,0,"ng-container",18),d.\u0275\u0275template(2,he,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,Et=d.\u0275\u0275nextContext(2);return d.\u0275\u0275resetView(Et.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 qe(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 Z(it,rt){if(1&it&&(d.\u0275\u0275elementStart(0,"mat-tab"),d.\u0275\u0275template(1,Me,6,3,"ng-template",16),d.\u0275\u0275elementContainerStart(2,17),d.\u0275\u0275template(3,qe,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 V(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 J(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 _e(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 Et=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(Et.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 Et=d.\u0275\u0275nextContext();return d.\u0275\u0275resetView(Et.addSimpleTab(ft))}),d.\u0275\u0275elementEnd()(),d.\u0275\u0275template(3,Z,5,3,"mat-tab",14),d.\u0275\u0275elementStart(4,"mat-tab",15),d.\u0275\u0275template(5,V,3,0,"ng-template",16),d.\u0275\u0275elementEnd(),d.\u0275\u0275elementStart(6,"mat-tab",15),d.\u0275\u0275template(7,J,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 De{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=De,De.\u0275fac=function(rt){return new(rt||De)(d.\u0275\u0275directiveInject(_.SdkgenService),d.\u0275\u0275directiveInject(v.DomSanitizer),d.\u0275\u0275directiveInject(y.MatIconRegistry))},De.\u0275cmp=d.\u0275\u0275defineComponent({type:De,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,_e,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,F.MatMenu,F.MatMenuItem,F.MatMenuTrigger,j.MatTabGroup,j.MatTabLabel,j.MatTab,Q.MatTooltip,U.SimpleCallComponent,Y.TabNavComponent,B.TabEditorComponent,ee.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:($,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),F=a(1017),j=a(2290),Q=a(5041),U=n.__importStar(a(5e3));n.__importStar(a(2290));class B{}o.AppModule=B,B.\u0275fac=function(ie){return new(ie||B)},B.\u0275mod=U.\u0275\u0275defineNgModule({type:B,bootstrap:[Q.AppComponent]}),B.\u0275inj=U.\u0275\u0275defineInjector({providers:[{provide:M.MONACO_PATH,useValue:"assets/vs"}],imports:[y.BrowserModule,b.FormsModule,b.ReactiveFormsModule,M.MonacoEditorModule,E.BrowserAnimationsModule,F.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:($,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,F=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",F.itemTypes.INFO),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngSwitchCase",F.itemTypes.ERROR),b.\u0275\u0275advance(1),b.\u0275\u0275property("ngSwitchCase",F.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:($,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:($,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:($,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:($,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:($,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($,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 $.reduce((n,p)=>(n[p.name]=a(p.type),n),{})}getTypeScriptCode($,o){return`await client.${$}(${JSON.stringify(o,null,2)});\n`}buildKotlinString($,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 $.map(n=>`${" ".repeat(o+1)}${a(n.type)}`).join(",\n")}getKotlinCode($,o){return 0===o.length?`client.${$}().await();`:`client.${$}(\n${this.buildKotlinString(o)}\n).await();`}getDartCode($,o){return'print("todo");'}getSwiftCode($,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:($,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 $(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($){this.sdkgen=$,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($=>{!$||(this.generateFunctionCode($.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient($.url,$.astJson))})}ngOnDestroy(){var $;null===($=this.state$)||void 0===$||$.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($){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:$.toString()}),delete $.toString,_this.response={error:{type:$.type,message:$.message,data:$.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode($,o){var a;const n=null===(a=$.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 $(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 $(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($){this.sdkgen=$,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($=>{if(!$)return;const o=`${this.patchBrowserClientSource((0,typescript_generator_1.generateBrowserClientSource)($.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient($.url,$.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]=$.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(n.name,this.sdkgen.buildJsonObject(n.args))})}ngOnDestroy(){var $;null===($=this.state$)||void 0===$||$.unsubscribe()}patchBrowserClientSource($){return`declare namespace sdkgen {\n${$.substring(95,$.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($){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:$.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function $(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 $(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:($,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)),F=n.__importStar(a(3251)),j=n.__importStar(a(7238)),Q=n.__importStar(a(4211));function U(fe,ze){if(1&fe&&(r.\u0275\u0275elementStart(0,"span",8),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&fe){const Ie=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.description)}}const Y=function(fe){return{active:fe}};function B(fe,ze){if(1&fe){const Ie=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"li",5),r.\u0275\u0275listener("click",function(){const Ce=r.\u0275\u0275restoreView(Ie).$implicit,Le=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(Le.selectedFunction=Ce)}),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&fe){const Ie=ze.$implicit,Ve=r.\u0275\u0275nextContext();r.\u0275\u0275property("ngClass",r.\u0275\u0275pureFunction1(3,Y,(null==Ve.selectedFunction?null:Ve.selectedFunction.name)===Ie.name)),r.\u0275\u0275advance(2),r.\u0275\u0275textInterpolate(Ie.name),r.\u0275\u0275advance(1),r.\u0275\u0275property("ngIf",Ie.description)}}function ee(fe,ze){1&fe&&r.\u0275\u0275element(0,"span")}function ie(fe,ze){if(1&fe){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 Ce=r.\u0275\u0275restoreView(Ie).$implicit,Le=r.\u0275\u0275nextContext(2);return r.\u0275\u0275resetView(Le.showDocumentation(Ce.rawType))}),r.\u0275\u0275text(9),r.\u0275\u0275elementEnd(),r.\u0275\u0275template(10,ee,1,0,"span",38),r.\u0275\u0275elementEnd()}if(2&fe){const Ie=ze.$implicit,Ve=ze.index;r.\u0275\u0275nextContext();const z=r.\u0275\u0275reference(18),Ce=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",Ve!=Le.selectedFunction.args.length-1)("ngIfThen",z)("ngIfElse",Ce)}}function he(fe,ze){1&fe&&r.\u0275\u0275text(0,",")}function Me(fe,ze){1&fe&&r.\u0275\u0275element(0,"br")}function qe(fe,ze){if(1&fe){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,Ce=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(Ce.showDocumentation(z.dataType))}),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()}if(2&fe){const Ie=r.\u0275\u0275nextContext().$implicit,Ve=r.\u0275\u0275nextContext(3);r.\u0275\u0275property("matTooltip",Ve.getTooltip(Ie.dataType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate1("(",Ie.dataType.name,")")}}function G(fe,ze){if(1&fe&&(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,qe,2,2,"u",43),r.\u0275\u0275elementEnd()()),2&fe){const Ie=ze.$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 Z(fe,ze){if(1&fe&&(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&fe){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 V(fe,ze){if(1&fe&&(r.\u0275\u0275elementStart(0,"p"),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&fe){const Ie=r.\u0275\u0275nextContext(2);r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.selectedFunction.description)}}function J(fe,ze){1&fe&&(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 _e(fe,ze){1&fe&&(r.\u0275\u0275elementStart(0,"p",44),r.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),r.\u0275\u0275elementEnd())}function De(fe,ze){1&fe&&(r.\u0275\u0275elementStart(0,"th",54),r.\u0275\u0275text(1,"Nome"),r.\u0275\u0275elementEnd())}function it(fe,ze){if(1&fe&&(r.\u0275\u0275elementStart(0,"td",55),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&fe){const Ie=ze.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.name)}}function rt(fe,ze){1&fe&&(r.\u0275\u0275elementStart(0,"th",54),r.\u0275\u0275text(1,"Tipo"),r.\u0275\u0275elementEnd())}function yt(fe,ze){if(1&fe){const Ie=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"td",55)(1,"u",29),r.\u0275\u0275listener("click",function(){const Ce=r.\u0275\u0275restoreView(Ie).$implicit,Le=r.\u0275\u0275nextContext(3);return r.\u0275\u0275resetView(Le.showDocumentation(Ce.rawType))}),r.\u0275\u0275text(2),r.\u0275\u0275elementEnd()()}if(2&fe){const Ie=ze.$implicit,Ve=r.\u0275\u0275nextContext(3);r.\u0275\u0275advance(1),r.\u0275\u0275property("matTooltip",Ve.getTooltip(Ie.rawType)),r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.type)}}function Oe(fe,ze){1&fe&&(r.\u0275\u0275elementStart(0,"th",54),r.\u0275\u0275text(1,"Descri\xe7\xe3o"),r.\u0275\u0275elementEnd())}function ft(fe,ze){if(1&fe&&(r.\u0275\u0275elementStart(0,"td",56),r.\u0275\u0275text(1),r.\u0275\u0275elementEnd()),2&fe){const Ie=ze.$implicit;r.\u0275\u0275advance(1),r.\u0275\u0275textInterpolate(Ie.description||"-")}}function Et(fe,ze){1&fe&&r.\u0275\u0275element(0,"tr",57)}function et(fe,ze){1&fe&&r.\u0275\u0275element(0,"tr",58)}function lt(fe,ze){if(1&fe&&(r.\u0275\u0275elementStart(0,"table",45),r.\u0275\u0275elementContainerStart(1,46),r.\u0275\u0275template(2,De,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,Et,1,0,"tr",52),r.\u0275\u0275template(11,et,1,0,"tr",53),r.\u0275\u0275elementEnd()),2&fe){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 Ge(fe,ze){1&fe&&(r.\u0275\u0275elementStart(0,"span",59),r.\u0275\u0275text(1,"Dart"),r.\u0275\u0275elementEnd())}function nt(fe,ze){1&fe&&(r.\u0275\u0275elementStart(0,"span",59),r.\u0275\u0275text(1,"Swift"),r.\u0275\u0275elementEnd())}const wt=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 Ue(fe,ze){if(1&fe){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,ie,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,he,1,0,"ng-template",null,16,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275template(19,Me,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,Z,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,V,2,1,"p",22),r.\u0275\u0275template(32,J,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,_e,2,0,"p",23),r.\u0275\u0275elementStart(37,"div",25),r.\u0275\u0275template(38,lt,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,Ge,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&fe){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,wt))("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 Ne{constructor(ze,Ie,Ve){this.sdkgen=ze,this.dialog=Ie,this.responsive=Ve,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(ze=>{!ze||(this.selectedFunction=void 0,this.fnTable=ze.astRoot.operations.sort((Ie,Ve)=>Ie.name.localeCompare(Ve.name)).map(Ie=>{var Ve,z,Ce;const Le=ze.astJson.annotations[`fn.${Ie.name}`],Se=this.sdkgen.buildJsonObject(Ie.args);return null!=Le&&Le.find(xe=>"hidden"===xe.type)?null:{name:Ie.name,description:null===(Ve=null==Le?void 0:Le.find(xe=>"description"===xe.type))||void 0===Ve?void 0:Ve.value,args:Ie.args.map(({name:xe,type:pe})=>{var Fe,at,Te;return{name:xe,description:null===(Te=[...null!==(Fe=ze.astJson.annotations[`type.${pe}.${xe}`])&&void 0!==Fe?Fe:[],...null!==(at=ze.astJson.annotations[`fn.${Ie.name}.${xe}`])&&void 0!==at?at:[]].find(me=>"description"===me.type))||void 0===Te?void 0:Te.value,type:pe.name,rawType:pe}}),argsStr:Ie.args.map(xe=>`${xe.name}: ${xe.type.name}`).join(", "),argsFields:Ie.args,returns:{type:Ie.returnType.name,rawType:Ie.returnType},labels:null!==(z=null==Le?void 0:Le.filter(xe=>["rest","throws"].includes(xe.type)).map(xe=>{var pe;return"rest"===xe.type?{name:"REST",type:`${xe.value.method} ${xe.value.path}`}:"throws"===xe.type?{name:"THROWS",type:xe.value,dataType:null===(pe=ze.astRoot.errors.find(Fe=>Fe.name===xe.value))||void 0===pe?void 0:pe.dataType}:{name:"?",type:"?"}}))&&void 0!==z?z:[],throws:null===(Ce=null==Le?void 0:Le.find(xe=>"throws"===xe.type))||void 0===Ce?void 0:Ce.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 ze,Ie;null===(ze=this.state$)||void 0===ze||ze.unsubscribe(),null===(Ie=this.responsive$)||void 0===Ie||Ie.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(ze=>{this.isBelowMd=ze.matches})}addSimpleCallTab(){var ze;this.runFunction.emit(null===(ze=this.selectedFunction)||void 0===ze?void 0:ze.name)}getTooltip(ze){return(0,b.getTypeDoc)(ze).shortDescription}showDocumentation(ze){this.dialog.open(u.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:ze},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}o.TabHomeComponent=Ne,Ne.\u0275fac=function(ze){return new(ze||Ne)(r.\u0275\u0275directiveInject(c.SdkgenService),r.\u0275\u0275directiveInject(f.MatDialog),r.\u0275\u0275directiveInject(h.ResponsiveService))},Ne.\u0275cmp=r.\u0275\u0275defineComponent({type:Ne,selectors:[["app-tab-home"]],outputs:{runFunction:"runFunction"},decls:11,vars:10,consts:[["unit","pixel",3,"direction"],[3,"size"],["type","search","placeholder","Buscar\u2026",3,"ngModel","ngModelOptions","ngModelChange"],[3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","click"],[1,"fn-call"],["class","fn-description",4,"ngIf"],[1,"fn-description"],[1,"container"],[1,"mono","hide-overflow"],[1,"k-fn"],[1,"k-name"],[4,"ngFor","ngForOf"],[1,"k-sym"],[1,"k-type",3,"matTooltip","click"],["comma",""],["lineBreak",""],["mat-raised-button","","color","primary",3,"click"],["class","container","id","labels",4,"ngIf"],["id","description"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","no-content",4,"ngSwitchCase"],["id","parameters"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource",4,"ngSwitchDefault"],["id","returns"],[1,"mono"],[3,"matTooltip","click"],["id","sample-calls"],["animationDuration","0ms"],["label","TypeScript"],[3,"options","ngModel"],["label","Kotlin"],["disabled",""],["mat-tab-label",""],[1,"k-arg-name"],[4,"ngIf","ngIfThen","ngIfElse"],["id","labels",1,"container"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["color","primary",3,"disableRipple"],[3,"matTooltip","click",4,"ngIf"],[1,"no-content"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matTooltip","Em breve!"]],template:function(ze,Ie){1&ze&&(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,B,4,5,"li",3),r.\u0275\u0275pipe(8,"appFilter"),r.\u0275\u0275elementEnd()()()(),r.\u0275\u0275elementStart(9,"as-split-area"),r.\u0275\u0275template(10,Ue,58,24,"article",4),r.\u0275\u0275elementEnd()()),2&ze&&(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,F.MatTabGroup,F.MatTabLabel,F.MatTab,j.MatTooltip,Q.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:($,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,Q){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,Q){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 F{constructor(Q,U,Y){this.sdkgen=Q,this.toastr=U,this.dialog=Y,this.loading=!1,this.url=new b.FormControl("")}ngOnInit(){fetch("/ast.json").then(Q=>{Q.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(Q){var U=this;return n(function*(){null==Q||Q.preventDefault();try{U.loading=!0,/^https?:\/\//.test(U.url.value)||U.url.setValue(`https://${U.url.value}`);const Y=new URL(U.url.value);Y.pathname+=(/\/$/u.test(Y.pathname)?"":"/")+"ast.json";const B=Y.toString();console.debug("astUrl",B);const ee=yield fetch(B).then(ie=>ie.ok?ie.json():ie);if(ee instanceof Response)throw ee instanceof Error?ee:new Error(ee.statusText);if(!ee.errors||!ee.functionTable||!ee.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(ie=>setTimeout(ie,250));console.debug("astJson",ee),U.sdkgen.state$.next({astJson:ee,astRoot:(0,u.jsonToAst)(ee),url:U.url.value})}catch(Y){U.toastr.error(Y instanceof Error?Y.message:JSON.stringify(Y),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{U.loading=!1}})()}openAbout(){this.dialog.open(r.DialogAboutComponent)}}o.TabNavComponent=F,F.\u0275fac=function(Q){return new(Q||F)(c.\u0275\u0275directiveInject(f.SdkgenService),c.\u0275\u0275directiveInject(h.ToastrService),c.\u0275\u0275directiveInject(m.MatDialog))},F.\u0275cmp=c.\u0275\u0275defineComponent({type:F,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(Q,U){1&Q&&(c.\u0275\u0275element(0,"img",0),c.\u0275\u0275elementStart(1,"form",1),c.\u0275\u0275listener("submit",function(B){return U.loadUrl(B)}),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&Q&&(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:($,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(V,J){1&V&&(u.\u0275\u0275elementStart(0,"button",6)(1,"mat-icon"),u.\u0275\u0275text(2,"arrow_back"),u.\u0275\u0275elementEnd()())}function y(V,J){if(1&V&&(u.\u0275\u0275elementStart(0,"mat-chip",7),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&V){const _e=J.$implicit;u.\u0275\u0275property("disableRipple",!0),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(_e)}}function E(V,J){1&V&&(u.\u0275\u0275elementStart(0,"button",8)(1,"mat-icon"),u.\u0275\u0275text(2,"close"),u.\u0275\u0275elementEnd()())}function M(V,J){1&V&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Nome"),u.\u0275\u0275elementEnd())}function A(V,J){if(1&V&&(u.\u0275\u0275elementStart(0,"td",21),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&V){const _e=J.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(_e.name)}}function F(V,J){1&V&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Tipo"),u.\u0275\u0275elementEnd())}function j(V,J){1&V&&(u.\u0275\u0275elementStart(0,"span"),u.\u0275\u0275text(1,"-"),u.\u0275\u0275elementEnd())}function Q(V,J){if(1&V){const _e=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"u",25),u.\u0275\u0275listener("click",function(){u.\u0275\u0275restoreView(_e);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&V){const _e=u.\u0275\u0275nextContext().$implicit,De=u.\u0275\u0275nextContext(2);u.\u0275\u0275property("matTooltip",De.getTooltip(_e.type)),u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(_e.type.name)}}function U(V,J){1&V&&(u.\u0275\u0275elementStart(0,"td",22),u.\u0275\u0275template(1,j,2,0,"span",23),u.\u0275\u0275template(2,Q,2,2,"u",24),u.\u0275\u0275elementEnd()),2&V&&(u.\u0275\u0275property("ngSwitch",J.$implicit.type),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngSwitchCase",null))}function Y(V,J){1&V&&(u.\u0275\u0275elementStart(0,"th",20),u.\u0275\u0275text(1,"Descri\xe7\xe3o"),u.\u0275\u0275elementEnd())}function B(V,J){if(1&V&&(u.\u0275\u0275elementStart(0,"td",26),u.\u0275\u0275text(1),u.\u0275\u0275elementEnd()),2&V){const _e=J.$implicit;u.\u0275\u0275advance(1),u.\u0275\u0275textInterpolate(_e.description||"-")}}function ee(V,J){1&V&&u.\u0275\u0275element(0,"tr",27)}function ie(V,J){1&V&&u.\u0275\u0275element(0,"tr",28)}const he=function(){return[]};function Me(V,J){if(1&V&&(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,F,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,Y,2,0,"th",12),u.\u0275\u0275template(11,B,2,1,"td",17),u.\u0275\u0275elementContainerEnd(),u.\u0275\u0275template(12,ee,1,0,"tr",18),u.\u0275\u0275template(13,ie,1,0,"tr",19),u.\u0275\u0275elementEnd()()()),2&V){const _e=u.\u0275\u0275nextContext();let De;u.\u0275\u0275advance(2),u.\u0275\u0275property("dataSource",null!==(De=null==_e.typeDoc?null:_e.typeDoc.structFields)&&void 0!==De?De:u.\u0275\u0275pureFunction0(3,he)),u.\u0275\u0275advance(10),u.\u0275\u0275property("matHeaderRowDef",_e.argumentsTableColumns),u.\u0275\u0275advance(1),u.\u0275\u0275property("matRowDefColumns",_e.argumentsTableColumns)}}function qe(V,J){if(1&V&&(u.\u0275\u0275elementStart(0,"li")(1,"code",1),u.\u0275\u0275text(2),u.\u0275\u0275elementEnd()()),2&V){const _e=J.$implicit;u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(_e)}}function G(V,J){if(1&V&&(u.\u0275\u0275elementStart(0,"section")(1,"h3"),u.\u0275\u0275text(2,"Exemplos"),u.\u0275\u0275elementEnd(),u.\u0275\u0275elementStart(3,"ul"),u.\u0275\u0275template(4,qe,3,1,"li",29),u.\u0275\u0275elementEnd()()),2&V){const _e=u.\u0275\u0275nextContext();u.\u0275\u0275advance(4),u.\u0275\u0275property("ngForOf",null==_e.typeDoc?null:_e.typeDoc.examples)}}class Z{constructor(J,_e,De){this.dialogRef=J,this.data=_e,this.dialog=De,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(J){return(0,b.getTypeDoc)(J).shortDescription}showDocumentation(J){this.dialog.open(Z,{position:{right:"0"},data:{type:J,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}o.TypeDetailsComponent=Z,Z.\u0275fac=function(J){return new(J||Z)(u.\u0275\u0275directiveInject(r.MatDialogRef),u.\u0275\u0275directiveInject(p.MAT_DIALOG_DATA),u.\u0275\u0275directiveInject(r.MatDialog))},Z.\u0275cmp=u.\u0275\u0275defineComponent({type:Z,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(J,_e){1&J&&(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,Me,14,4,"section",5),u.\u0275\u0275template(10,G,5,1,"section",5)),2&J&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",_e.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(_e.data.type.name),u.\u0275\u0275advance(1),u.\u0275\u0275property("selectable",!1),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngForOf",_e.labels),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",!_e.data.subdialog),u.\u0275\u0275advance(2),u.\u0275\u0275textInterpolate(null==_e.typeDoc?null:_e.typeDoc.longDescription),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",(null==_e.typeDoc?null:_e.typeDoc.isStruct)&&(null==_e.typeDoc?null:_e.typeDoc.structFields)),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",null==_e.typeDoc||null==_e.typeDoc.examples?null:_e.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:($,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:($,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.environment=void 0,o.environment={production:!0}},4431:($,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($,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 F=new FileReader;F.onloadend=function(){var U=F.result;U=A?U:U.replace(/^data:[^;]*;/,"data:attachment/file;"),y?y.location.href=U:location=U,y=null},F.readAsDataURL(d)}else{var j=f.URL||f.webkitURL,Q=j.createObjectURL(d);y?y.location=Q:location.href=Q,y=null,setTimeout(function(){j.revokeObjectURL(Q)},4e4)}});f.saveAs=m.saveAs=m,$.exports=m}.apply(o,[]))&&($.exports=p)},6477:function($,o,a){"use strict";var n=this&&this.__createBinding||(Object.create?function(ci,Ln,jn,Dn){void 0===Dn&&(Dn=jn),Object.defineProperty(ci,Dn,{enumerable:!0,get:function(){return Ln[jn]}})}:function(ci,Ln,jn,Dn){void 0===Dn&&(Dn=jn),ci[Dn]=Ln[jn]}),p=this&&this.__exportStar||function(ci,Ln){for(var jn in ci)"default"!==jn&&!Object.prototype.hasOwnProperty.call(Ln,jn)&&n(Ln,ci,jn)};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 F=a(6448);Object.defineProperty(o,"Subscription",{enumerable:!0,get:function(){return F.Subscription}});var j=a(7052);Object.defineProperty(o,"Subscriber",{enumerable:!0,get:function(){return j.Subscriber}});var Q=a(7262);Object.defineProperty(o,"Notification",{enumerable:!0,get:function(){return Q.Notification}}),Object.defineProperty(o,"NotificationKind",{enumerable:!0,get:function(){return Q.NotificationKind}});var U=a(1471);Object.defineProperty(o,"pipe",{enumerable:!0,get:function(){return U.pipe}});var Y=a(31);Object.defineProperty(o,"noop",{enumerable:!0,get:function(){return Y.noop}});var B=a(7884);Object.defineProperty(o,"identity",{enumerable:!0,get:function(){return B.identity}});var ee=a(4341);Object.defineProperty(o,"isObservable",{enumerable:!0,get:function(){return ee.isObservable}});var ie=a(5257);Object.defineProperty(o,"lastValueFrom",{enumerable:!0,get:function(){return ie.lastValueFrom}});var he=a(5754);Object.defineProperty(o,"firstValueFrom",{enumerable:!0,get:function(){return he.firstValueFrom}});var Me=a(4769);Object.defineProperty(o,"ArgumentOutOfRangeError",{enumerable:!0,get:function(){return Me.ArgumentOutOfRangeError}});var qe=a(8915);Object.defineProperty(o,"EmptyError",{enumerable:!0,get:function(){return qe.EmptyError}});var G=a(5477);Object.defineProperty(o,"NotFoundError",{enumerable:!0,get:function(){return G.NotFoundError}});var Z=a(3965);Object.defineProperty(o,"ObjectUnsubscribedError",{enumerable:!0,get:function(){return Z.ObjectUnsubscribedError}});var V=a(1551);Object.defineProperty(o,"SequenceError",{enumerable:!0,get:function(){return V.SequenceError}});var J=a(5001);Object.defineProperty(o,"TimeoutError",{enumerable:!0,get:function(){return J.TimeoutError}});var _e=a(4970);Object.defineProperty(o,"UnsubscriptionError",{enumerable:!0,get:function(){return _e.UnsubscriptionError}});var De=a(7532);Object.defineProperty(o,"bindCallback",{enumerable:!0,get:function(){return De.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 Et=a(7406);Object.defineProperty(o,"empty",{enumerable:!0,get:function(){return Et.empty}});var et=a(7928);Object.defineProperty(o,"forkJoin",{enumerable:!0,get:function(){return et.forkJoin}});var lt=a(4996);Object.defineProperty(o,"from",{enumerable:!0,get:function(){return lt.from}});var Ge=a(2579);Object.defineProperty(o,"fromEvent",{enumerable:!0,get:function(){return Ge.fromEvent}});var nt=a(3975);Object.defineProperty(o,"fromEventPattern",{enumerable:!0,get:function(){return nt.fromEventPattern}});var wt=a(4318);Object.defineProperty(o,"generate",{enumerable:!0,get:function(){return wt.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 Ue=a(2818);Object.defineProperty(o,"never",{enumerable:!0,get:function(){return Ue.never}});var Ae=a(9677);Object.defineProperty(o,"of",{enumerable:!0,get:function(){return Ae.of}});var Ne=a(9978);Object.defineProperty(o,"onErrorResumeNext",{enumerable:!0,get:function(){return Ne.onErrorResumeNext}});var fe=a(5519);Object.defineProperty(o,"pairs",{enumerable:!0,get:function(){return fe.pairs}});var ze=a(8221);Object.defineProperty(o,"partition",{enumerable:!0,get:function(){return ze.partition}});var Ie=a(8181);Object.defineProperty(o,"race",{enumerable:!0,get:function(){return Ie.race}});var Ve=a(4622);Object.defineProperty(o,"range",{enumerable:!0,get:function(){return Ve.range}});var z=a(338);Object.defineProperty(o,"throwError",{enumerable:!0,get:function(){return z.throwError}});var Ce=a(3271);Object.defineProperty(o,"timer",{enumerable:!0,get:function(){return Ce.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 xe=a(9341);Object.defineProperty(o,"scheduled",{enumerable:!0,get:function(){return xe.scheduled}});var pe=a(7406);Object.defineProperty(o,"EMPTY",{enumerable:!0,get:function(){return pe.EMPTY}});var Fe=a(2818);Object.defineProperty(o,"NEVER",{enumerable:!0,get:function(){return Fe.NEVER}}),p(a(5256),o);var at=a(3570);Object.defineProperty(o,"config",{enumerable:!0,get:function(){return at.config}});var Te=a(4815);Object.defineProperty(o,"audit",{enumerable:!0,get:function(){return Te.audit}});var H=a(9034);Object.defineProperty(o,"auditTime",{enumerable:!0,get:function(){return H.auditTime}});var me=a(8544);Object.defineProperty(o,"buffer",{enumerable:!0,get:function(){return me.buffer}});var ae=a(3999);Object.defineProperty(o,"bufferCount",{enumerable:!0,get:function(){return ae.bufferCount}});var we=a(1392);Object.defineProperty(o,"bufferTime",{enumerable:!0,get:function(){return we.bufferTime}});var Ke=a(555);Object.defineProperty(o,"bufferToggle",{enumerable:!0,get:function(){return Ke.bufferToggle}});var ct=a(7274);Object.defineProperty(o,"bufferWhen",{enumerable:!0,get:function(){return ct.bufferWhen}});var Lt=a(6e3);Object.defineProperty(o,"catchError",{enumerable:!0,get:function(){return Lt.catchError}});var Pt=a(8996);Object.defineProperty(o,"combineAll",{enumerable:!0,get:function(){return Pt.combineAll}});var Kt=a(8931);Object.defineProperty(o,"combineLatestAll",{enumerable:!0,get:function(){return Kt.combineLatestAll}});var Bt=a(8947);Object.defineProperty(o,"combineLatestWith",{enumerable:!0,get:function(){return Bt.combineLatestWith}});var Ye=a(739);Object.defineProperty(o,"concatAll",{enumerable:!0,get:function(){return Ye.concatAll}});var Be=a(4659);Object.defineProperty(o,"concatMap",{enumerable:!0,get:function(){return Be.concatMap}});var ge=a(2993);Object.defineProperty(o,"concatMapTo",{enumerable:!0,get:function(){return ge.concatMapTo}});var ue=a(5898);Object.defineProperty(o,"concatWith",{enumerable:!0,get:function(){return ue.concatWith}});var re=a(9725);Object.defineProperty(o,"connect",{enumerable:!0,get:function(){return re.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 ye=a(7061);Object.defineProperty(o,"debounceTime",{enumerable:!0,get:function(){return ye.debounceTime}});var dt=a(926);Object.defineProperty(o,"defaultIfEmpty",{enumerable:!0,get:function(){return dt.defaultIfEmpty}});var ke=a(2096);Object.defineProperty(o,"delay",{enumerable:!0,get:function(){return ke.delay}});var ht=a(3264);Object.defineProperty(o,"delayWhen",{enumerable:!0,get:function(){return ht.delayWhen}});var se=a(533);Object.defineProperty(o,"dematerialize",{enumerable:!0,get:function(){return se.dematerialize}});var ve=a(5045);Object.defineProperty(o,"distinct",{enumerable:!0,get:function(){return ve.distinct}});var tt=a(5794);Object.defineProperty(o,"distinctUntilChanged",{enumerable:!0,get:function(){return tt.distinctUntilChanged}});var pt=a(8589);Object.defineProperty(o,"distinctUntilKeyChanged",{enumerable:!0,get:function(){return pt.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 yn=a(5429);Object.defineProperty(o,"exhaust",{enumerable:!0,get:function(){return yn.exhaust}});var He=a(1399);Object.defineProperty(o,"exhaustAll",{enumerable:!0,get:function(){return He.exhaustAll}});var $e=a(5183);Object.defineProperty(o,"exhaustMap",{enumerable:!0,get:function(){return $e.exhaustMap}});var de=a(8678);Object.defineProperty(o,"expand",{enumerable:!0,get:function(){return de.expand}});var Qe=a(4270);Object.defineProperty(o,"filter",{enumerable:!0,get:function(){return Qe.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 xt=a(8195);Object.defineProperty(o,"findIndex",{enumerable:!0,get:function(){return xt.findIndex}});var Ht=a(8012);Object.defineProperty(o,"first",{enumerable:!0,get:function(){return Ht.first}});var fn=a(4075);Object.defineProperty(o,"groupBy",{enumerable:!0,get:function(){return fn.groupBy}});var An=a(4041);Object.defineProperty(o,"ignoreElements",{enumerable:!0,get:function(){return An.ignoreElements}});var _n=a(6478);Object.defineProperty(o,"isEmpty",{enumerable:!0,get:function(){return _n.isEmpty}});var ce=a(5126);Object.defineProperty(o,"last",{enumerable:!0,get:function(){return ce.last}});var Re=a(752);Object.defineProperty(o,"map",{enumerable:!0,get:function(){return Re.map}});var X=a(2182);Object.defineProperty(o,"mapTo",{enumerable:!0,get:function(){return X.mapTo}});var Pe=a(119);Object.defineProperty(o,"materialize",{enumerable:!0,get:function(){return Pe.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 Ft=a(1463);Object.defineProperty(o,"flatMap",{enumerable:!0,get:function(){return Ft.flatMap}});var Zt=a(3010);Object.defineProperty(o,"mergeMap",{enumerable:!0,get:function(){return Zt.mergeMap}});var Qt=a(929);Object.defineProperty(o,"mergeMapTo",{enumerable:!0,get:function(){return Qt.mergeMapTo}});var sn=a(2816);Object.defineProperty(o,"mergeScan",{enumerable:!0,get:function(){return sn.mergeScan}});var mn=a(9684);Object.defineProperty(o,"mergeWith",{enumerable:!0,get:function(){return mn.mergeWith}});var vn=a(6250);Object.defineProperty(o,"min",{enumerable:!0,get:function(){return vn.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 ei=a(9526);Object.defineProperty(o,"pairwise",{enumerable:!0,get:function(){return ei.pairwise}});var Jt=a(5199);Object.defineProperty(o,"pluck",{enumerable:!0,get:function(){return Jt.pluck}});var Fn=a(955);Object.defineProperty(o,"publish",{enumerable:!0,get:function(){return Fn.publish}});var ti=a(6750);Object.defineProperty(o,"publishBehavior",{enumerable:!0,get:function(){return ti.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 Li=a(2992);Object.defineProperty(o,"raceWith",{enumerable:!0,get:function(){return Li.raceWith}});var Ci=a(8587);Object.defineProperty(o,"reduce",{enumerable:!0,get:function(){return Ci.reduce}});var oi=a(8408);Object.defineProperty(o,"repeat",{enumerable:!0,get:function(){return oi.repeat}});var Hn=a(7032);Object.defineProperty(o,"repeatWhen",{enumerable:!0,get:function(){return Hn.repeatWhen}});var ji=a(6069);Object.defineProperty(o,"retry",{enumerable:!0,get:function(){return ji.retry}});var Mi=a(5131);Object.defineProperty(o,"retryWhen",{enumerable:!0,get:function(){return Mi.retryWhen}});var Zi=a(904);Object.defineProperty(o,"refCount",{enumerable:!0,get:function(){return Zi.refCount}});var Bi=a(2531);Object.defineProperty(o,"sample",{enumerable:!0,get:function(){return Bi.sample}});var mr=a(2098);Object.defineProperty(o,"sampleTime",{enumerable:!0,get:function(){return mr.sampleTime}});var Xr=a(251);Object.defineProperty(o,"scan",{enumerable:!0,get:function(){return Xr.scan}});var Qn=a(9788);Object.defineProperty(o,"sequenceEqual",{enumerable:!0,get:function(){return Qn.sequenceEqual}});var gr=a(3222);Object.defineProperty(o,"share",{enumerable:!0,get:function(){return gr.share}});var qr=a(2186);Object.defineProperty(o,"shareReplay",{enumerable:!0,get:function(){return qr.shareReplay}});var Vi=a(695);Object.defineProperty(o,"single",{enumerable:!0,get:function(){return Vi.single}});var vr=a(4975);Object.defineProperty(o,"skip",{enumerable:!0,get:function(){return vr.skip}});var Di=a(728);Object.defineProperty(o,"skipLast",{enumerable:!0,get:function(){return Di.skipLast}});var Or=a(7409);Object.defineProperty(o,"skipUntil",{enumerable:!0,get:function(){return Or.skipUntil}});var Ji=a(385);Object.defineProperty(o,"skipWhile",{enumerable:!0,get:function(){return Ji.skipWhile}});var Xi=a(4930);Object.defineProperty(o,"startWith",{enumerable:!0,get:function(){return Xi.startWith}});var $r=a(1698);Object.defineProperty(o,"subscribeOn",{enumerable:!0,get:function(){return $r.subscribeOn}});var Si=a(8044);Object.defineProperty(o,"switchAll",{enumerable:!0,get:function(){return Si.switchAll}});var Hr=a(986);Object.defineProperty(o,"switchMap",{enumerable:!0,get:function(){return Hr.switchMap}});var Ii=a(9309);Object.defineProperty(o,"switchMapTo",{enumerable:!0,get:function(){return Ii.switchMapTo}});var $i=a(9499);Object.defineProperty(o,"switchScan",{enumerable:!0,get:function(){return $i.switchScan}});var Oi=a(1333);Object.defineProperty(o,"take",{enumerable:!0,get:function(){return Oi.take}});var qi=a(3534);Object.defineProperty(o,"takeLast",{enumerable:!0,get:function(){return qi.takeLast}});var Hi=a(5716);Object.defineProperty(o,"takeUntil",{enumerable:!0,get:function(){return Hi.takeUntil}});var li=a(9928);Object.defineProperty(o,"takeWhile",{enumerable:!0,get:function(){return li.takeWhile}});var er=a(6821);Object.defineProperty(o,"tap",{enumerable:!0,get:function(){return er.tap}});var Ei=a(4330);Object.defineProperty(o,"throttle",{enumerable:!0,get:function(){return Ei.throttle}});var tr=a(4029);Object.defineProperty(o,"throttleTime",{enumerable:!0,get:function(){return tr.throttleTime}});var nr=a(9194);Object.defineProperty(o,"throwIfEmpty",{enumerable:!0,get:function(){return nr.throwIfEmpty}});var ir=a(5904);Object.defineProperty(o,"timeInterval",{enumerable:!0,get:function(){return ir.timeInterval}});var gi=a(5001);Object.defineProperty(o,"timeout",{enumerable:!0,get:function(){return gi.timeout}});var Ai=a(8308);Object.defineProperty(o,"timeoutWith",{enumerable:!0,get:function(){return Ai.timeoutWith}});var Ur=a(250);Object.defineProperty(o,"timestamp",{enumerable:!0,get:function(){return Ur.timestamp}});var Ui=a(2976);Object.defineProperty(o,"toArray",{enumerable:!0,get:function(){return Ui.toArray}});var rr=a(9374);Object.defineProperty(o,"window",{enumerable:!0,get:function(){return rr.window}});var Zn=a(8427);Object.defineProperty(o,"windowCount",{enumerable:!0,get:function(){return Zn.windowCount}});var si=a(2358);Object.defineProperty(o,"windowTime",{enumerable:!0,get:function(){return si.windowTime}});var or=a(6464);Object.defineProperty(o,"windowToggle",{enumerable:!0,get:function(){return or.windowToggle}});var zi=a(5424);Object.defineProperty(o,"windowWhen",{enumerable:!0,get:function(){return zi.windowWhen}});var yr=a(135);Object.defineProperty(o,"withLatestFrom",{enumerable:!0,get:function(){return yr.withLatestFrom}});var Ti=a(8101);Object.defineProperty(o,"zipAll",{enumerable:!0,get:function(){return Ti.zipAll}});var wn=a(9411);Object.defineProperty(o,"zipWith",{enumerable:!0,get:function(){return wn.zipWith}})},7606:function($,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($,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:($,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:($,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:($,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,F=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 Q=A.operator,U=A.source;F.add(Q?Q.call(F,U):U?A._subscribe(F):A._trySubscribe(F))}),F},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,F){var j=new n.SafeSubscriber({next:function(Q){try{y(Q)}catch(U){F(U),j.unsubscribe()}},error:F,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 F;E.subscribe(function(j){return F=j},function(j){return A(j)},function(){return M(F)})})},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($,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:($,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($,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),F=A.next();!F.done;F=A.next())F.value.next(v)}catch(Q){E={error:Q}}finally{try{F&&!F.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,F=E.observers;return E.hasError||E.isStopped?u.EMPTY_SUBSCRIPTION:(this.currentObservers=null,F.push(v),new u.Subscription(function(){y.currentObservers=null,c.arrRemove(F,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($,o,a){"use strict";var j,n=this&&this.__extends||(j=function(Q,U){return(j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,B){Y.__proto__=B}||function(Y,B){for(var ee in B)Object.prototype.hasOwnProperty.call(B,ee)&&(Y[ee]=B[ee])})(Q,U)},function(Q,U){if("function"!=typeof U&&null!==U)throw new TypeError("Class extends value "+String(U)+" is not a constructor or null");function Y(){this.constructor=Q}j(Q,U),Q.prototype=null===U?Object.create(U):(Y.prototype=U.prototype,new Y)});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 Q(U){var Y=j.call(this)||this;return Y.isStopped=!1,U?(Y.destination=U,b.isSubscription(U)&&U.add(Y)):Y.destination=o.EMPTY_OBSERVER,Y}return n(Q,j),Q.create=function(U,Y,B){return new E(U,Y,B)},Q.prototype.next=function(U){this.isStopped?F(f.nextNotification(U),this):this._next(U)},Q.prototype.error=function(U){this.isStopped?F(f.errorNotification(U),this):(this.isStopped=!0,this._error(U))},Q.prototype.complete=function(){this.isStopped?F(f.COMPLETE_NOTIFICATION,this):(this.isStopped=!0,this._complete())},Q.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,j.prototype.unsubscribe.call(this),this.destination=null)},Q.prototype._next=function(U){this.destination.next(U)},Q.prototype._error=function(U){try{this.destination.error(U)}finally{this.unsubscribe()}},Q.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Q}(b.Subscription);o.Subscriber=d;var _=Function.prototype.bind;function v(j,Q){return _.call(j,Q)}var y=function(){function j(Q){this.partialObserver=Q}return j.prototype.next=function(Q){var U=this.partialObserver;if(U.next)try{U.next(Q)}catch(Y){M(Y)}},j.prototype.error=function(Q){var U=this.partialObserver;if(U.error)try{U.error(Q)}catch(Y){M(Y)}else M(Q)},j.prototype.complete=function(){var Q=this.partialObserver;if(Q.complete)try{Q.complete()}catch(U){M(U)}},j}(),E=function(j){function Q(U,Y,B){var ie,he,ee=j.call(this)||this;return p.isFunction(U)||!U?ie={next:null!=U?U:void 0,error:null!=Y?Y:void 0,complete:null!=B?B:void 0}:ee&&u.config.useDeprecatedNextContext?((he=Object.create(U)).unsubscribe=function(){return ee.unsubscribe()},ie={next:U.next&&v(U.next,he),error:U.error&&v(U.error,he),complete:U.complete&&v(U.complete,he)}):ie=U,ee.destination=new y(ie),ee}return n(Q,j),Q}(d);function M(j){u.config.useDeprecatedSynchronousErrorHandling?m.captureError(j):r.reportUnhandledError(j)}function F(j,Q){var U=u.config.onStoppedNotification;U&&h.timeoutProvider.setTimeout(function(){return U(j,Q)})}o.SafeSubscriber=E,o.EMPTY_OBSERVER={closed:!0,next:c.noop,error:function A(j){throw j},complete:c.noop}},6448:function($,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(F){A={error:F}}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 F=n(A),j=F.next();!j.done;j=F.next())j.value.remove(this)}catch(he){_={error:he}}finally{try{j&&!j.done&&(v=F.return)&&v.call(F)}finally{if(_)throw _.error}}else A.remove(this);var U=this.initialTeardown;if(u.isFunction(U))try{U()}catch(he){M=he instanceof r.UnsubscriptionError?he.errors:[he]}var Y=this._finalizers;if(Y){this._finalizers=null;try{for(var B=n(Y),ee=B.next();!ee.done;ee=B.next()){var ie=ee.value;try{m(ie)}catch(he){M=null!=M?M:[],he instanceof r.UnsubscriptionError?M=b(b([],p(M)),p(he.errors)):M.push(he)}}}catch(he){y={error:he}}finally{try{ee&&!ee.done&&(E=B.return)&&E.call(B)}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:($,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:($,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:($,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($,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:($,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($,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(F){A={error:F}}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 F=new h.AsyncSubject,j=!0;return new u.Observable(function(Q){var U=F.subscribe(Q);if(j){j=!1;var Y=!1,B=!1;_.apply(E,p(p([],n(M)),[function(){for(var ee=[],ie=0;ie<arguments.length;ie++)ee[ie]=arguments[ie];if(d){var he=ee.shift();if(null!=he)return void F.error(he)}F.next(1<ee.length?ee:ee[0]),B=!0,Y&&F.complete()}])),B&&F.complete(),Y=!0}return U})}}},3488:($,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:($,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 F=y.length,j=new Array(F),Q=F,U=F,Y=function(ee){v(E,function(){var ie=b.from(y[ee],E),he=!1;ie.subscribe(h.createOperatorSubscriber(A,function(Me){j[ee]=Me,he||(he=!0,U--),U||A.next(M(j.slice()))},function(){--Q||A.complete()}))},A)},B=0;B<F;B++)Y(B)},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),F=p.argsArgArrayOrObject(y),j=F.args,Q=F.keys;if(0===j.length)return b.from([],M);var U=new n.Observable(_(j,M,Q?function(Y){return f.createObject(Q,Y)}:u.identity));return A?U.pipe(r.mapOneOrManyArgs(A)):U},o.combineLatestInit=_},509:($,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:($,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:($,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:($,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:($,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:($,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 F=y.length;if(F)for(var j=new Array(F),Q=F,U=F,Y=function(ee){var ie=!1;b.innerFrom(y[ee]).subscribe(r.createOperatorSubscriber(A,function(he){ie||(ie=!0,U--),j[ee]=he},function(){return Q--},void 0,function(){(!Q||!ie)&&(U||A.next(E?f.createObject(E,j):j),A.complete())}))},B=0;B<F;B++)Y(B);else A.complete()});return _?M.pipe(c.mapOneOrManyArgs(_)):M}},4996:($,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($,o,a){"use strict";var n=this&&this.__read||function(A,F){var j="function"==typeof Symbol&&A[Symbol.iterator];if(!j)return A;var U,B,Q=j.call(A),Y=[];try{for(;(void 0===F||F-- >0)&&!(U=Q.next()).done;)Y.push(U.value)}catch(ee){B={error:ee}}finally{try{U&&!U.done&&(j=Q.return)&&j.call(Q)}finally{if(B)throw B.error}}return Y};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,F){return function(j){return function(Q){return A[j](F,Q)}}}o.fromEvent=function _(A,F,j,Q){if(c.isFunction(j)&&(Q=j,j=void 0),Q)return _(A,F,j).pipe(f.mapOneOrManyArgs(Q));var U=n(function M(A){return c.isFunction(A.addEventListener)&&c.isFunction(A.removeEventListener)}(A)?m.map(function(ee){return function(ie){return A[ee](F,ie,j)}}):function y(A){return c.isFunction(A.addListener)&&c.isFunction(A.removeListener)}(A)?h.map(v(A,F)):function E(A){return c.isFunction(A.on)&&c.isFunction(A.off)}(A)?d.map(v(A,F)):[],2),Y=U[0],B=U[1];if(!Y&&r.isArrayLike(A))return u.mergeMap(function(ee){return _(ee,F,j)})(p.innerFrom(A));if(!Y)throw new TypeError("Invalid event target");return new b.Observable(function(ee){var ie=function(){for(var he=[],Me=0;Me<arguments.length;Me++)he[Me]=arguments[Me];return ee.next(1<he.length?he:he[0])};return Y(ie),function(){return B(ie)}})}},3975:($,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:($,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($,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(F){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(F){A=[6,F],_=0}finally{d=v=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}([A,F])}}};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 F;return n(this,function(j){switch(j.label){case 0:F=M,j.label=1;case 1:return!h||h(F)?[4,E(F)]:[3,4];case 2:j.sent(),j.label=3;case 3:return F=m(F),[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:($,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($,o,a){"use strict";var n=this&&this.__awaiter||function(ie,he,Me,qe){return new(Me||(Me=Promise))(function(Z,V){function J(it){try{De(qe.next(it))}catch(rt){V(rt)}}function _e(it){try{De(qe.throw(it))}catch(rt){V(rt)}}function De(it){it.done?Z(it.value):function G(Z){return Z instanceof Me?Z:new Me(function(V){V(Z)})}(it.value).then(J,_e)}De((qe=qe.apply(ie,he||[])).next())})},p=this&&this.__generator||function(ie,he){var qe,G,Z,V,Me={label:0,sent:function(){if(1&Z[0])throw Z[1];return Z[1]},trys:[],ops:[]};return V={next:J(0),throw:J(1),return:J(2)},"function"==typeof Symbol&&(V[Symbol.iterator]=function(){return this}),V;function J(De){return function(it){return function _e(De){if(qe)throw new TypeError("Generator is already executing.");for(;Me;)try{if(qe=1,G&&(Z=2&De[0]?G.return:De[0]?G.throw||((Z=G.return)&&Z.call(G),0):G.next)&&!(Z=Z.call(G,De[1])).done)return Z;switch(G=0,Z&&(De=[2&De[0],Z.value]),De[0]){case 0:case 1:Z=De;break;case 4:return Me.label++,{value:De[1],done:!1};case 5:Me.label++,G=De[1],De=[0];continue;case 7:De=Me.ops.pop(),Me.trys.pop();continue;default:if(!(Z=(Z=Me.trys).length>0&&Z[Z.length-1])&&(6===De[0]||2===De[0])){Me=0;continue}if(3===De[0]&&(!Z||De[1]>Z[0]&&De[1]<Z[3])){Me.label=De[1];break}if(6===De[0]&&Me.label<Z[1]){Me.label=Z[1],Z=De;break}if(Z&&Me.label<Z[2]){Me.label=Z[2],Me.ops.push(De);break}Z[2]&&Me.ops.pop(),Me.trys.pop();continue}De=he.call(ie,Me)}catch(it){De=[6,it],G=0}finally{qe=Z=0}if(5&De[0])throw De[1];return{value:De[0]?De[1]:void 0,done:!0}}([De,it])}}},b=this&&this.__asyncValues||function(ie){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Me,he=ie[Symbol.asyncIterator];return he?he.call(ie):(ie="function"==typeof u?u(ie):ie[Symbol.iterator](),Me={},qe("next"),qe("throw"),qe("return"),Me[Symbol.asyncIterator]=function(){return this},Me);function qe(Z){Me[Z]=ie[Z]&&function(V){return new Promise(function(J,_e){!function G(Z,V,J,_e){Promise.resolve(_e).then(function(De){Z({value:De,done:J})},V)}(J,_e,(V=ie[Z](V)).done,V.value)})}}},u=this&&this.__values||function(ie){var he="function"==typeof Symbol&&Symbol.iterator,Me=he&&ie[he],qe=0;if(Me)return Me.call(ie);if(ie&&"number"==typeof ie.length)return{next:function(){return ie&&qe>=ie.length&&(ie=void 0),{value:ie&&ie[qe++],done:!ie}}};throw new TypeError(he?"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 F(ie){return new f.Observable(function(he){var Me=ie[M.observable]();if(y.isFunction(Me.subscribe))return Me.subscribe(he);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function j(ie){return new f.Observable(function(he){for(var Me=0;Me<ie.length&&!he.closed;Me++)he.next(ie[Me]);he.complete()})}function Q(ie){return new f.Observable(function(he){ie.then(function(Me){he.closed||(he.next(Me),he.complete())},function(Me){return he.error(Me)}).then(null,E.reportUnhandledError)})}function U(ie){return new f.Observable(function(he){var Me,qe;try{for(var G=u(ie),Z=G.next();!Z.done;Z=G.next())if(he.next(Z.value),he.closed)return}catch(J){Me={error:J}}finally{try{Z&&!Z.done&&(qe=G.return)&&qe.call(G)}finally{if(Me)throw Me.error}}he.complete()})}function Y(ie){return new f.Observable(function(he){(function ee(ie,he){var Me,qe,G,Z;return n(this,void 0,void 0,function(){var J;return p(this,function(_e){switch(_e.label){case 0:_e.trys.push([0,5,6,11]),Me=b(ie),_e.label=1;case 1:return[4,Me.next()];case 2:if((qe=_e.sent()).done)return[3,4];if(he.next(qe.value),he.closed)return[2];_e.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return J=_e.sent(),G={error:J},[3,11];case 6:return _e.trys.push([6,,9,10]),qe&&!qe.done&&(Z=Me.return)?[4,Z.call(Me)]:[3,8];case 7:_e.sent(),_e.label=8;case 8:return[3,10];case 9:if(G)throw G.error;return[7];case 10:return[7];case 11:return he.complete(),[2]}})})})(ie,he).catch(function(Me){return he.error(Me)})})}function B(ie){return Y(v.readableStreamLikeToAsyncGenerator(ie))}o.innerFrom=function A(ie){if(ie instanceof f.Observable)return ie;if(null!=ie){if(h.isInteropObservable(ie))return F(ie);if(r.isArrayLike(ie))return j(ie);if(c.isPromise(ie))return Q(ie);if(m.isAsyncIterable(ie))return Y(ie);if(_.isIterable(ie))return U(ie);if(v.isReadableStreamLike(ie))return B(ie)}throw d.createInvalidObservableTypeError(ie)},o.fromInteropObservable=F,o.fromArrayLike=j,o.fromPromise=Q,o.fromIterable=U,o.fromAsyncIterable=Y,o.fromReadableStreamLike=B},1836:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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($,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(F){A={error:F}}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 F=function(Q){u.innerFrom(y[Q]).subscribe(f.createOperatorSubscriber(E,function(U){if(M[Q].push(U),M.every(function(B){return B.length})){var Y=M.map(function(B){return B.shift()});E.next(v?v.apply(void 0,p([],n(Y))):Y),M.some(function(B,ee){return!B.length&&A[ee]})&&E.complete()}},function(){A[Q]=!0,!M[Q].length&&E.complete()}))},j=0;!E.closed&&j<y.length;j++)F(j);return function(){M=A=null}}):c.EMPTY}},3173:function($,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:($,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:($,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:($,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($,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,F=null;_++%f==0&&d.push([]);try{for(var j=n(d),Q=j.next();!Q.done;Q=j.next())(U=Q.value).push(v),c<=U.length&&(F=null!=F?F:[]).push(U)}catch(ee){y={error:ee}}finally{try{Q&&!Q.done&&(E=j.return)&&E.call(j)}finally{if(y)throw y.error}}if(F)try{for(var Y=n(F),B=Y.next();!B.done;B=Y.next()){var U;u.arrRemove(d,U=B.value),m.next(U)}}catch(ee){M={error:ee}}finally{try{B&&!B.done&&(A=Y.return)&&A.call(Y)}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(F){v={error:F}}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($,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,F=y[1]||1/0;return b.operate(function(j,Q){var U=[],Y=!1,B=function(he){var Me=he.buffer;he.subs.unsubscribe(),r.arrRemove(U,he),Q.next(Me),Y&&ee()},ee=function(){if(U){var he=new p.Subscription;Q.add(he);var qe={buffer:[],subs:he};U.push(qe),h.executeSchedule(he,M,function(){return B(qe)},d)}};null!==A&&A>=0?h.executeSchedule(Q,M,ee,A,!0):Y=!0,ee();var ie=u.createOperatorSubscriber(Q,function(he){var Me,qe,G=U.slice();try{for(var Z=n(G),V=Z.next();!V.done;V=Z.next()){var J=V.value,_e=J.buffer;_e.push(he),F<=_e.length&&B(J)}}catch(De){Me={error:De}}finally{try{V&&!V.done&&(qe=Z.return)&&qe.call(Z)}finally{if(Me)throw Me.error}}},function(){for(;null!=U&&U.length;)Q.next(U.shift().buffer);null==ie||ie.unsubscribe(),Q.complete(),Q.unsubscribe()},void 0,function(){return U=null});j.subscribe(ie)})}},555:function($,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 F=n(y),j=F.next();!j.done;j=F.next())j.value.push(E)}catch(U){M={error:U}}finally{try{j&&!j.done&&(A=F.return)&&A.call(F)}finally{if(M)throw M.error}}},function(){for(;y.length>0;)v.next(y.shift());v.complete()}))})}},7274:($,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:($,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:($,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.combineAll=void 0;var n=a(8931);o.combineAll=n.combineLatestAll},5538:function($,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(F){A={error:F}}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:($,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($,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($,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:($,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:($,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:($,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($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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($,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:($,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:($,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.exhaust=void 0;var n=a(1399);o.exhaust=n.exhaustAll},1399:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,o,a)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.flatMap=void 0;var n=a(3010);o.flatMap=n.mergeMap},4075:($,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(Y){E.forEach(Y),Y(v)},A=function(Y){return M(function(B){return B.error(Y)})},F=0,j=!1,Q=new r.OperatorSubscriber(v,function(Y){try{var B=f(Y),ee=E.get(B);if(!ee){E.set(B,ee=d?d():new b.Subject);var ie=function U(Y,B){var ee=new n.Observable(function(ie){F++;var he=B.subscribe(ie);return function(){he.unsubscribe(),0==--F&&j&&Q.unsubscribe()}});return ee.key=Y,ee}(B,ee);if(v.next(ie),m){var he=r.createOperatorSubscriber(ee,function(){ee.complete(),null==he||he.unsubscribe()},void 0,void 0,function(){return E.delete(B)});Q.add(p.innerFrom(m(ie)).subscribe(he))}}ee.next(y?y(Y):Y)}catch(Me){A(Me)}},function(){return M(function(Y){return Y.complete()})},A,function(){return E.clear()},function(){return j=!0,0===F});_.subscribe(Q)})}},4041:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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($,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:($,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:($,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,F=function(){A&&!y.length&&!E&&c.complete()},j=function(U){return E<h?Q(U):y.push(U)},Q=function(U){d&&c.next(U),E++;var Y=!1;n.innerFrom(f(U,M++)).subscribe(b.createOperatorSubscriber(c,function(B){null==m||m(B),d?j(B):c.next(B)},function(){Y=!0},void 0,function(){if(Y)try{E--;for(var B=function(){var ee=y.shift();_?p.executeSchedule(c,_,function(){return Q(ee)}):Q(ee)};y.length&&E<h;)B();F()}catch(ee){c.error(ee)}}))};return r.subscribe(b.createOperatorSubscriber(c,j,function(){A=!0,F()})),function(){null==v||v()}}},3010:($,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:($,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:($,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($,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:($,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:($,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:($,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($,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 F=c.createOperatorSubscriber(y,void 0,f.noop,f.noop);A.subscribe(F),F.add(M)}else y.complete()};M()})}},9526:($,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:($,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:($,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:($,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:($,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:($,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($,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:($,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:($,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:($,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 F="number"==typeof d?r.timer(d):u.innerFrom(d(y)),j=b.createOperatorSubscriber(v,function(){j.unsubscribe(),A()});F.subscribe(j)}else A()},A=function(){var F=!1;E=_.subscribe(b.createOperatorSubscriber(v,void 0,function(){++y<m?E?M():F=!0:v.complete()})),F&&M()};A()})}},7032:($,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:($,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 F,A=0,j=function(){var Q=!1;F=E.subscribe(p.createOperatorSubscriber(M,function(U){y&&(A=0),M.next(U)},void 0,function(U){if(A++<d){var Y=function(){F?(F.unsubscribe(),F=null,j()):Q=!0};if(null!=_){var B="number"==typeof _?u.timer(_):r.innerFrom(_(U,A)),ee=p.createOperatorSubscriber(M,function(){ee.unsubscribe(),Y()},function(){M.complete()});B.subscribe(ee)}else Y()}else M.error(U)})),Q&&(F.unsubscribe(),F=null,j())};j()})}},5131:($,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:($,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:($,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:($,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:($,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:($,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 F=E.buffer;0===F.length?E.complete?_(!1):y.buffer.push(A):!c(A,F.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($,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,F=void 0===A||A;return function(j){var Q,U,Y,B=0,ee=!1,ie=!1,he=function(){null==U||U.unsubscribe(),U=void 0},Me=function(){he(),Q=Y=void 0,ee=ie=!1},qe=function(){var G=Q;Me(),null==G||G.unsubscribe()};return c.operate(function(G,Z){B++,!ie&&!ee&&he();var V=Y=null!=Y?Y:_();Z.add(function(){0==--B&&!ie&&!ee&&(U=h(qe,F))}),V.subscribe(Z),!Q&&B>0&&(Q=new r.SafeSubscriber({next:function(J){return V.next(J)},error:function(J){ie=!0,he(),U=h(Me,y,J),V.error(J)},complete:function(){ee=!0,he(),U=h(Me,M),V.complete()}}),b.innerFrom(G).subscribe(Q))})(j)}}},2186:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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($,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:($,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:($,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:($,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:($,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()},F=function(Q){return y=b.innerFrom(r(Q)).subscribe(p.createOperatorSubscriber(h,M,A))},j=function(){if(_){_=!1;var Q=v;v=null,h.next(Q),!E&&F(Q)}};f.subscribe(p.createOperatorSubscriber(h,function(Q){_=!0,v=Q,(!y||y.closed)&&(m?j():F(Q))},function(){E=!0,(!(d&&_&&y)||y.closed)&&h.complete()}))})}},4029:($,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:($,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:($,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:($,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,F=v.scheduler,j=void 0===F?null!=_?_:n.asyncScheduler:F,Q=v.meta,U=void 0===Q?null:Q;if(null==y&&null==E)throw new TypeError("No timeout provided.");return b.operate(function(Y,B){var ee,ie,he=null,Me=0,qe=function(G){ie=f.executeSchedule(B,j,function(){try{ee.unsubscribe(),u.innerFrom(A({meta:U,lastValue:he,seen:Me})).subscribe(B)}catch(Z){B.error(Z)}},G)};ee=Y.subscribe(c.createOperatorSubscriber(B,function(G){null==ie||ie.unsubscribe(),Me++,B.next(he=G),E>0&&qe(E)},void 0,void 0,function(){null!=ie&&ie.closed||null==ie||ie.unsubscribe(),he=null})),!Me&&qe(null!=y?"number"==typeof y?y:+y-j.now():E)})}},8308:($,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:($,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:($,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:($,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($,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 F=n(_),j=F.next();!j.done;j=F.next())j.value.next(E)}catch(B){M={error:B}}finally{try{j&&!j.done&&(A=F.return)&&A.call(F)}finally{if(M)throw M.error}}var U=y-c+1;if(U>=0&&U%h==0&&_.shift().complete(),++y%h==0){var Y=new p.Subject;_.push(Y),d.next(Y.asObservable())}},function(){for(;_.length>0;)_.shift().complete();d.complete()},function(E){for(;_.length>0;)_.shift().error(E);d.error(E)},function(){_=null}))})}},2358:($,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,F=y[1]||1/0;return u.operate(function(j,Q){var U=[],Y=!1,B=function(Me){var G=Me.subs;Me.window.complete(),G.unsubscribe(),c.arrRemove(U,Me),Y&&ee()},ee=function(){if(U){var Me=new b.Subscription;Q.add(Me);var qe=new n.Subject,G={window:qe,subs:Me,seen:0};U.push(G),Q.next(qe.asObservable()),h.executeSchedule(Me,M,function(){return B(G)},d)}};null!==A&&A>=0?h.executeSchedule(Q,M,ee,A,!0):Y=!0,ee();var ie=function(Me){return U.slice().forEach(Me)},he=function(Me){ie(function(qe){return Me(qe.window)}),Me(Q),Q.unsubscribe()};return j.subscribe(r.createOperatorSubscriber(Q,function(Me){ie(function(qe){qe.window.next(Me),F<=++qe.seen&&B(qe)})},function(){return he(function(Me){return Me.complete()})},function(Me){return he(function(qe){return qe.error(Me)})})),function(){U=null}})}},6464:function($,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 F=new p.Subject;E.push(F);var U,j=new b.Subscription;try{U=r.innerFrom(_(A))}catch(Y){return void M(Y)}y.next(F.asObservable()),j.add(U.subscribe(c.createOperatorSubscriber(y,function(){h.arrRemove(E,F),F.complete(),j.unsubscribe()},f.noop,M)))},f.noop)),v.subscribe(c.createOperatorSubscriber(y,function(A){var F,j,Q=E.slice();try{for(var U=n(Q),Y=U.next();!Y.done;Y=U.next())Y.value.next(A)}catch(ee){F={error:ee}}finally{try{Y&&!Y.done&&(j=U.return)&&j.call(U)}finally{if(F)throw F.error}}},function(){for(;0<E.length;)E.shift().complete();y.complete()},M,function(){for(;0<E.length;)E.shift().unsubscribe()}))})}},5424:($,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($,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(F){A={error:F}}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),F=d.map(function(){return!1}),j=!1,Q=function(Y){r.innerFrom(d[Y]).subscribe(u.createOperatorSubscriber(E,function(B){A[Y]=B,!j&&!F[Y]&&(F[Y]=!0,(j=F.every(c.identity))&&(F=null))},f.noop))},U=0;U<M;U++)Q(U);y.subscribe(u.createOperatorSubscriber(E,function(Y){if(j){var B=p([Y],n(A));E.next(v?v.apply(void 0,p([],n(B))):B)}}))})}},5573:function($,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:($,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($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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($,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($,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($,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($,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($,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($,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($,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($,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($,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($,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:($,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($,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:($,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:($,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:($,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($,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($,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:($,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:($,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($,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:($,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:($,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.observable=void 0,o.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"},5256:($,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0})},4769:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.identity=void 0,o.identity=function a(n){return n}},697:($,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:($,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:($,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:($,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.isFunction=void 0,o.isFunction=function a(n){return"function"==typeof n}},7454:($,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:($,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:($,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:($,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($,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(F){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(F){A=[6,F],_=0}finally{d=v=0}if(5&A[0])throw A[1];return{value:A[0]?A[1]:void 0,done:!0}}([A,F])}}},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(Q){d[Q]&&(_[Q]=function(U){return new Promise(function(Y,B){v.push([Q,U,Y,B])>1||E(Q,U)})})}function E(Q,U){try{!function M(Q){Q.value instanceof p?Promise.resolve(Q.value.v).then(A,F):j(v[0][2],Q)}(d[Q](U))}catch(Y){j(v[0][3],Y)}}function A(Q){E("next",Q)}function F(Q){E("throw",Q)}function j(Q,U){Q(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:($,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:($,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($,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:($,o)=>{"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.noop=void 0,o.noop=function a(){}},963:($,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:($,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:($,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:($,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:($,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:($,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 F=new E;return F.source=this,F.operator=A,F}subscribe(A,F,j){const Q=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,F,j);return(0,m.x)(()=>{const{operator:U,source:Y}=this;Q.add(U?U.call(Q,Y):Y?this._subscribe(Q):this._trySubscribe(Q))}),Q}_trySubscribe(A){try{return this._subscribe(A)}catch(F){A.error(F)}}forEach(A,F){return new(F=_(F))((j,Q)=>{const U=new n.Hp({next:Y=>{try{A(Y)}catch(B){Q(B),U.unsubscribe()}},error:Q,complete:j});this.subscribe(U)})}_subscribe(A){var F;return null===(F=this.source)||void 0===F?void 0:F.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((F,j)=>j(F),A)}}(A)(this)}toPromise(A){return new(A=_(A))((F,j)=>{let Q;this.subscribe(U=>Q=U,U=>j(U),()=>F(Q))})}}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:($,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:($,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(Y,B,ee){return{kind:Y,value:B,error:ee}}var d=a(3410),_=a(2806);class v extends p.w0{constructor(B){super(),this.isStopped=!1,B?(this.destination=B,(0,p.Nn)(B)&&B.add(this)):this.destination=U}static create(B,ee,ie){return new A(B,ee,ie)}next(B){this.isStopped?Q(function h(Y){return m("N",Y,void 0)}(B),this):this._next(B)}error(B){this.isStopped?Q(function f(Y){return m("E",void 0,Y)}(B),this):(this.isStopped=!0,this._error(B))}complete(){this.isStopped?Q(c,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(B){this.destination.next(B)}_error(B){try{this.destination.error(B)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const y=Function.prototype.bind;function E(Y,B){return y.call(Y,B)}class M{constructor(B){this.partialObserver=B}next(B){const{partialObserver:ee}=this;if(ee.next)try{ee.next(B)}catch(ie){F(ie)}}error(B){const{partialObserver:ee}=this;if(ee.error)try{ee.error(B)}catch(ie){F(ie)}else F(B)}complete(){const{partialObserver:B}=this;if(B.complete)try{B.complete()}catch(ee){F(ee)}}}class A extends v{constructor(B,ee,ie){let he;if(super(),(0,n.m)(B)||!B)he={next:null!=B?B:void 0,error:null!=ee?ee:void 0,complete:null!=ie?ie:void 0};else{let Me;this&&b.v.useDeprecatedNextContext?(Me=Object.create(B),Me.unsubscribe=()=>this.unsubscribe(),he={next:B.next&&E(B.next,Me),error:B.error&&E(B.error,Me),complete:B.complete&&E(B.complete,Me)}):he=B}this.destination=new M(he)}}function F(Y){b.v.useDeprecatedSynchronousErrorHandling?(0,_.O)(Y):(0,u.h)(Y)}function Q(Y,B){const{onStoppedNotification:ee}=b.v;ee&&d.z.setTimeout(()=>ee(Y,B))}const U={closed:!0,next:r.Z,error:function j(Y){throw Y},complete:r.Z}},727:($,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:($,o,a)=>{"use strict";a.d(o,{v:()=>n});const n={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:($,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:F}=(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:F}=y,j=new Array(F);let Q=F,U=F;for(let Y=0;Y<F;Y++)v(E,()=>{const B=(0,b.D)(y[Y],E);let ee=!1;B.subscribe((0,h.x)(A,ie=>{j[Y]=ie,ee||(ee=!0,U--),U||A.next(M(j.slice()))},()=>{--Q||A.complete()}))},A)},A)}}(A,E,F?Q=>(0,f.n)(F,Q):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:($,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:($,o,a)=>{"use strict";a.d(o,{E:()=>p});const p=new(a(8306).y)(r=>r.complete())},4128:($,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 F=M,j=M;for(let Q=0;Q<M;Q++){let U=!1;(0,b.Xf)(_[Q]).subscribe((0,r.x)(E,Y=>{U||(U=!0,j--),A[Q]=Y},()=>F--,void 0,()=>{(!F||!U)&&(j||E.next(v?(0,f.n)(v,A):A),E.complete())}))}});return d?y.pipe((0,c.Z)(d)):y}},2076:($,o,a)=>{"use strict";a.d(o,{D:()=>ie});var n=a(8421),p=a(9672),b=a(4482),u=a(5403);function r(he,Me=0){return(0,b.e)((qe,G)=>{qe.subscribe((0,u.x)(G,Z=>(0,p.f)(G,he,()=>G.next(Z),Me),()=>(0,p.f)(G,he,()=>G.complete(),Me),Z=>(0,p.f)(G,he,()=>G.error(Z),Me)))})}function c(he,Me=0){return(0,b.e)((qe,G)=>{G.add(he.schedule(()=>qe.subscribe(G),Me))})}var m=a(8306),_=a(2202),v=a(576);function E(he,Me){if(!he)throw new Error("Iterable cannot be null");return new m.y(qe=>{(0,p.f)(qe,Me,()=>{const G=he[Symbol.asyncIterator]();(0,p.f)(qe,Me,()=>{G.next().then(Z=>{Z.done?qe.complete():qe.next(Z.value)})},0,!0)})})}var M=a(3670),A=a(8239),F=a(1144),j=a(6495),Q=a(2206),U=a(4532),Y=a(3260);function ie(he,Me){return Me?function ee(he,Me){if(null!=he){if((0,M.c)(he))return function f(he,Me){return(0,n.Xf)(he).pipe(c(Me),r(Me))}(he,Me);if((0,F.z)(he))return function d(he,Me){return new m.y(qe=>{let G=0;return Me.schedule(function(){G===he.length?qe.complete():(qe.next(he[G++]),qe.closed||this.schedule())})})}(he,Me);if((0,A.t)(he))return function h(he,Me){return(0,n.Xf)(he).pipe(c(Me),r(Me))}(he,Me);if((0,Q.D)(he))return E(he,Me);if((0,j.T)(he))return function y(he,Me){return new m.y(qe=>{let G;return(0,p.f)(qe,Me,()=>{G=he[_.h](),(0,p.f)(qe,Me,()=>{let Z,V;try{({value:Z,done:V}=G.next())}catch(J){return void qe.error(J)}V?qe.complete():qe.next(Z)},0,!0)}),()=>(0,v.m)(null==G?void 0:G.return)&&G.return()})}(he,Me);if((0,Y.L)(he))return function B(he,Me){return E((0,Y.Q)(he),Me)}(he,Me)}throw(0,U.z)(he)}(he,Me):(0,n.Xf)(he)}},4968:($,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,F,j){if((0,r.m)(F)&&(j=F,F=void 0),j)return d(M,A,F).pipe((0,c.Z)(j));const[Q,U]=function E(M){return(0,r.m)(M.addEventListener)&&(0,r.m)(M.removeEventListener)}(M)?h.map(Y=>B=>M[Y](A,B,F)):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(!Q&&(0,u.z)(M))return(0,b.z)(Y=>d(Y,A,F))((0,n.Xf)(M));if(!Q)throw new TypeError("Invalid event target");return new p.y(Y=>{const B=(...ee)=>Y.next(1<ee.length?ee:ee[0]);return Q(B),()=>U(B)})}function _(M,A){return F=>j=>M[F](A,j)}},8421:($,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(Y){if(Y instanceof u.y)return Y;if(null!=Y){if((0,r.c)(Y))return function E(Y){return new u.y(B=>{const ee=Y[v.L]();if((0,d.m)(ee.subscribe))return ee.subscribe(B);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Y);if((0,p.z)(Y))return function M(Y){return new u.y(B=>{for(let ee=0;ee<Y.length&&!B.closed;ee++)B.next(Y[ee]);B.complete()})}(Y);if((0,b.t)(Y))return function A(Y){return new u.y(B=>{Y.then(ee=>{B.closed||(B.next(ee),B.complete())},ee=>B.error(ee)).then(null,_.h)})}(Y);if((0,c.D)(Y))return j(Y);if((0,h.T)(Y))return function F(Y){return new u.y(B=>{for(const ee of Y)if(B.next(ee),B.closed)return;B.complete()})}(Y);if((0,m.L)(Y))return function Q(Y){return j((0,m.Q)(Y))}(Y)}throw(0,f.z)(Y)}function j(Y){return new u.y(B=>{(function U(Y,B){var ee,ie,he,Me;return(0,n.__awaiter)(this,void 0,void 0,function*(){try{for(ee=(0,n.__asyncValues)(Y);!(ie=yield ee.next()).done;)if(B.next(ie.value),B.closed)return}catch(qe){he={error:qe}}finally{try{ie&&!ie.done&&(Me=ee.return)&&(yield Me.call(ee))}finally{if(he)throw he.error}}B.complete()})})(Y,B).catch(ee=>B.error(ee))})}},6451:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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 F=[];let j=0,Q=0,U=!1;const Y=()=>{U&&!F.length&&!j&&d.complete()},B=ie=>j<v?ee(ie):F.push(ie),ee=ie=>{E&&d.next(ie),j++;let he=!1;(0,p.Xf)(_(ie,Q++)).subscribe((0,r.x)(d,Me=>{null==y||y(Me),E?B(Me):d.next(Me)},()=>{he=!0},void 0,()=>{if(he)try{for(j--;F.length&&j<v;){const Me=F.shift();M?(0,u.f)(d,M,()=>ee(Me)):ee(Me)}Y()}catch(Me){d.error(Me)}}))};return m.subscribe((0,r.x)(d,B,()=>{U=!0,Y()})),()=>{null==A||A()}}(v,y,m,_)))}},3099:($,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,F=!1,j=!1;const Q=()=>{null==E||E.unsubscribe(),E=void 0},U=()=>{Q(),y=M=void 0,F=j=!1},Y=()=>{const B=y;U(),null==B||B.unsubscribe()};return(0,u.e)((B,ee)=>{A++,!j&&!F&&Q();const ie=M=null!=M?M:h();ee.add(()=>{A--,0===A&&!j&&!F&&(E=c(Y,_))}),ie.subscribe(ee),!y&&A>0&&(y=new b.Hp({next:he=>ie.next(he),error:he=>{j=!0,Q(),E=c(U,m,he),ie.error(he)},complete:()=>{F=!0,Q(),E=c(U,d),ie.complete()}}),(0,n.Xf)(B).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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,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 F=p++;return u[F]=!0,b||(b=Promise.resolve()),b.then(()=>r(F)&&A()),F},clearImmediate(A){r(A)}},{setImmediate:h,clearImmediate:m}=c,d={setImmediate(...A){const{delegate:F}=d;return((null==F?void 0:F.setImmediate)||h)(...A)},clearImmediate(A){const{delegate:F}=d;return((null==F?void 0:F.clearImmediate)||m)(A)},delegate:void 0};var v=a(640);const E=new class y extends v.v{flush(F){this._active=!0;const j=this._scheduled;this._scheduled=void 0;const{actions:Q}=this;let U;F=F||Q.shift();do{if(U=F.execute(F.state,F.delay))break}while((F=Q[0])&&F.id===j&&Q.shift());if(this._active=!1,U){for(;(F=Q[0])&&F.id===j&&Q.shift();)F.unsubscribe();throw U}}}(class _ extends n.o{constructor(F,j){super(F,j),this.scheduler=F,this.work=j}requestAsyncId(F,j,Q=0){return null!==Q&&Q>0?super.requestAsyncId(F,j,Q):(F.actions.push(this),F._scheduled||(F._scheduled=d.setImmediate(F.flush.bind(F,void 0))))}recycleAsyncId(F,j,Q=0){if(null!=Q&&Q>0||null==Q&&this.delay>0)return super.recycleAsyncId(F,j,Q);F.actions.some(U=>U.id===j)||(d.clearImmediate(j),F._scheduled=void 0)}})},4986:($,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:($,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:($,o,a)=>{"use strict";a.d(o,{h:()=>p});const p=function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:($,o,a)=>{"use strict";a.d(o,{L:()=>n});const n="function"==typeof Symbol&&Symbol.observable||"@@observable"},3269:($,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:($,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:($,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:($,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:($,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:($,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:($,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:($,o,a)=>{"use strict";function n(p){return p}a.d(o,{y:()=>n})},1144:($,o,a)=>{"use strict";a.d(o,{z:()=>n});const n=p=>p&&"number"==typeof p.length&&"function"!=typeof p},2206:($,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:($,o,a)=>{"use strict";function n(p){return"function"==typeof p}a.d(o,{m:()=>n})},3670:($,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:($,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:($,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:($,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:($,o,a)=>{"use strict";a.d(o,{K:()=>p});var n=a(576);function p(b){return b&&(0,n.m)(b.schedule)}},4482:($,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:($,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:($,o,a)=>{"use strict";function n(){}a.d(o,{Z:()=>n})},7849:($,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:($,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:($,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($,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:($,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:($,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:($,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($,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:($,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:($,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:($,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:($,o,a)=>{"use strict";a.r(o),a.d(o,{__assign:()=>b,__asyncDelegator:()=>Q,__asyncGenerator:()=>j,__asyncValues:()=>U,__await:()=>F,__awaiter:()=>h,__classPrivateFieldGet:()=>he,__classPrivateFieldIn:()=>qe,__classPrivateFieldSet:()=>Me,__createBinding:()=>d,__decorate:()=>r,__exportStar:()=>_,__extends:()=>p,__generator:()=>m,__importDefault:()=>ie,__importStar:()=>ee,__makeTemplateObject:()=>Y,__metadata:()=>f,__param:()=>c,__read:()=>y,__rest:()=>u,__spread:()=>E,__spreadArray:()=>A,__spreadArrays:()=>M,__values:()=>v});var n=function(G,Z){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(V,J){V.__proto__=J}||function(V,J){for(var _e in J)Object.prototype.hasOwnProperty.call(J,_e)&&(V[_e]=J[_e])})(G,Z)};function p(G,Z){if("function"!=typeof Z&&null!==Z)throw new TypeError("Class extends value "+String(Z)+" is not a constructor or null");function V(){this.constructor=G}n(G,Z),G.prototype=null===Z?Object.create(Z):(V.prototype=Z.prototype,new V)}var b=function(){return b=Object.assign||function(Z){for(var V,J=1,_e=arguments.length;J<_e;J++)for(var De in V=arguments[J])Object.prototype.hasOwnProperty.call(V,De)&&(Z[De]=V[De]);return Z},b.apply(this,arguments)};function u(G,Z){var V={};for(var J in G)Object.prototype.hasOwnProperty.call(G,J)&&Z.indexOf(J)<0&&(V[J]=G[J]);if(null!=G&&"function"==typeof Object.getOwnPropertySymbols){var _e=0;for(J=Object.getOwnPropertySymbols(G);_e<J.length;_e++)Z.indexOf(J[_e])<0&&Object.prototype.propertyIsEnumerable.call(G,J[_e])&&(V[J[_e]]=G[J[_e]])}return V}function r(G,Z,V,J){var it,_e=arguments.length,De=_e<3?Z:null===J?J=Object.getOwnPropertyDescriptor(Z,V):J;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)De=Reflect.decorate(G,Z,V,J);else for(var rt=G.length-1;rt>=0;rt--)(it=G[rt])&&(De=(_e<3?it(De):_e>3?it(Z,V,De):it(Z,V))||De);return _e>3&&De&&Object.defineProperty(Z,V,De),De}function c(G,Z){return function(V,J){Z(V,J,G)}}function f(G,Z){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(G,Z)}function h(G,Z,V,J){return new(V||(V=Promise))(function(De,it){function rt(ft){try{Oe(J.next(ft))}catch(Et){it(Et)}}function yt(ft){try{Oe(J.throw(ft))}catch(Et){it(Et)}}function Oe(ft){ft.done?De(ft.value):function _e(De){return De instanceof V?De:new V(function(it){it(De)})}(ft.value).then(rt,yt)}Oe((J=J.apply(G,Z||[])).next())})}function m(G,Z){var J,_e,De,it,V={label:0,sent:function(){if(1&De[0])throw De[1];return De[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(J)throw new TypeError("Generator is already executing.");for(;V;)try{if(J=1,_e&&(De=2&Oe[0]?_e.return:Oe[0]?_e.throw||((De=_e.return)&&De.call(_e),0):_e.next)&&!(De=De.call(_e,Oe[1])).done)return De;switch(_e=0,De&&(Oe=[2&Oe[0],De.value]),Oe[0]){case 0:case 1:De=Oe;break;case 4:return V.label++,{value:Oe[1],done:!1};case 5:V.label++,_e=Oe[1],Oe=[0];continue;case 7:Oe=V.ops.pop(),V.trys.pop();continue;default:if(!(De=(De=V.trys).length>0&&De[De.length-1])&&(6===Oe[0]||2===Oe[0])){V=0;continue}if(3===Oe[0]&&(!De||Oe[1]>De[0]&&Oe[1]<De[3])){V.label=Oe[1];break}if(6===Oe[0]&&V.label<De[1]){V.label=De[1],De=Oe;break}if(De&&V.label<De[2]){V.label=De[2],V.ops.push(Oe);break}De[2]&&V.ops.pop(),V.trys.pop();continue}Oe=Z.call(G,V)}catch(ft){Oe=[6,ft],_e=0}finally{J=De=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,Z,V,J){void 0===J&&(J=V);var _e=Object.getOwnPropertyDescriptor(Z,V);(!_e||("get"in _e?!Z.__esModule:_e.writable||_e.configurable))&&(_e={enumerable:!0,get:function(){return Z[V]}}),Object.defineProperty(G,J,_e)}:function(G,Z,V,J){void 0===J&&(J=V),G[J]=Z[V]};function _(G,Z){for(var V in G)"default"!==V&&!Object.prototype.hasOwnProperty.call(Z,V)&&d(Z,G,V)}function v(G){var Z="function"==typeof Symbol&&Symbol.iterator,V=Z&&G[Z],J=0;if(V)return V.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&J>=G.length&&(G=void 0),{value:G&&G[J++],done:!G}}};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(G,Z){var V="function"==typeof Symbol&&G[Symbol.iterator];if(!V)return G;var _e,it,J=V.call(G),De=[];try{for(;(void 0===Z||Z-- >0)&&!(_e=J.next()).done;)De.push(_e.value)}catch(rt){it={error:rt}}finally{try{_e&&!_e.done&&(V=J.return)&&V.call(J)}finally{if(it)throw it.error}}return De}function E(){for(var G=[],Z=0;Z<arguments.length;Z++)G=G.concat(y(arguments[Z]));return G}function M(){for(var G=0,Z=0,V=arguments.length;Z<V;Z++)G+=arguments[Z].length;var J=Array(G),_e=0;for(Z=0;Z<V;Z++)for(var De=arguments[Z],it=0,rt=De.length;it<rt;it++,_e++)J[_e]=De[it];return J}function A(G,Z,V){if(V||2===arguments.length)for(var De,J=0,_e=Z.length;J<_e;J++)(De||!(J in Z))&&(De||(De=Array.prototype.slice.call(Z,0,J)),De[J]=Z[J]);return G.concat(De||Array.prototype.slice.call(Z))}function F(G){return this instanceof F?(this.v=G,this):new F(G)}function j(G,Z,V){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _e,J=V.apply(G,Z||[]),De=[];return _e={},it("next"),it("throw"),it("return"),_e[Symbol.asyncIterator]=function(){return this},_e;function it(et){J[et]&&(_e[et]=function(lt){return new Promise(function(Ge,nt){De.push([et,lt,Ge,nt])>1||rt(et,lt)})})}function rt(et,lt){try{!function yt(et){et.value instanceof F?Promise.resolve(et.value.v).then(Oe,ft):Et(De[0][2],et)}(J[et](lt))}catch(Ge){Et(De[0][3],Ge)}}function Oe(et){rt("next",et)}function ft(et){rt("throw",et)}function Et(et,lt){et(lt),De.shift(),De.length&&rt(De[0][0],De[0][1])}}function Q(G){var Z,V;return Z={},J("next"),J("throw",function(_e){throw _e}),J("return"),Z[Symbol.iterator]=function(){return this},Z;function J(_e,De){Z[_e]=G[_e]?function(it){return(V=!V)?{value:F(G[_e](it)),done:"return"===_e}:De?De(it):it}:De}}function U(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var V,Z=G[Symbol.asyncIterator];return Z?Z.call(G):(G=v(G),V={},J("next"),J("throw"),J("return"),V[Symbol.asyncIterator]=function(){return this},V);function J(De){V[De]=G[De]&&function(it){return new Promise(function(rt,yt){!function _e(De,it,rt,yt){Promise.resolve(yt).then(function(Oe){De({value:Oe,done:rt})},it)}(rt,yt,(it=G[De](it)).done,it.value)})}}}function Y(G,Z){return Object.defineProperty?Object.defineProperty(G,"raw",{value:Z}):G.raw=Z,G}var B=Object.create?function(G,Z){Object.defineProperty(G,"default",{enumerable:!0,value:Z})}:function(G,Z){G.default=Z};function ee(G){if(G&&G.__esModule)return G;var Z={};if(null!=G)for(var V in G)"default"!==V&&Object.prototype.hasOwnProperty.call(G,V)&&d(Z,G,V);return B(Z,G),Z}function ie(G){return G&&G.__esModule?G:{default:G}}function he(G,Z,V,J){if("a"===V&&!J)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof Z?G!==Z||!J:!Z.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===V?J:"a"===V?J.call(G):J?J.value:Z.get(G)}function Me(G,Z,V,J,_e){if("m"===J)throw new TypeError("Private method is not writable");if("a"===J&&!_e)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof Z?G!==Z||!_e:!Z.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===J?_e.call(G,V):_e?_e.value=V:Z.set(G,V),V}function qe(G,Z){if(null===Z||"object"!=typeof Z&&"function"!=typeof Z)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof G?Z===G:G.has(Z)}},7156:$=>{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)}$.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)})}},$.exports.__esModule=!0,$.exports.default=$.exports},1777:($,o,a)=>{"use strict";a.d(o,{F4:()=>d,IO:()=>M,LC:()=>p,SB:()=>m,X$:()=>u,ZE:()=>Q,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(Y,B){return{type:7,name:Y,definitions:B,options:{}}}function r(Y,B=null){return{type:4,styles:B,timings:Y}}function c(Y,B=null){return{type:3,steps:Y,options:B}}function f(Y,B=null){return{type:2,steps:Y,options:B}}function h(Y){return{type:6,styles:Y,offset:null}}function m(Y,B,ee){return{type:0,name:Y,styles:B,options:ee}}function d(Y){return{type:5,steps:Y}}function _(Y,B,ee=null){return{type:1,expr:Y,animation:B,options:ee}}function y(Y=null){return{type:9,options:Y}}function M(Y,B,ee=null){return{type:11,selector:Y,animation:B,options:ee}}function F(Y){Promise.resolve(null).then(Y)}class j{constructor(B=0,ee=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=B+ee}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(B=>B()),this._onDoneFns=[])}onStart(B){this._originalOnStartFns.push(B),this._onStartFns.push(B)}onDone(B){this._originalOnDoneFns.push(B),this._onDoneFns.push(B)}onDestroy(B){this._onDestroyFns.push(B)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){F(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(B=>B()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(B=>B()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(B){this._position=this.totalTime?B*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(B){const ee="start"==B?this._onStartFns:this._onDoneFns;ee.forEach(ie=>ie()),ee.length=0}}class Q{constructor(B){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=B;let ee=0,ie=0,he=0;const Me=this.players.length;0==Me?F(()=>this._onFinish()):this.players.forEach(qe=>{qe.onDone(()=>{++ee==Me&&this._onFinish()}),qe.onDestroy(()=>{++ie==Me&&this._onDestroy()}),qe.onStart(()=>{++he==Me&&this._onStart()})}),this.totalTime=this.players.reduce((qe,G)=>Math.max(qe,G.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(B=>B()),this._onDoneFns=[])}init(){this.players.forEach(B=>B.init())}onStart(B){this._onStartFns.push(B)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(B=>B()),this._onStartFns=[])}onDone(B){this._onDoneFns.push(B)}onDestroy(B){this._onDestroyFns.push(B)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(B=>B.play())}pause(){this.players.forEach(B=>B.pause())}restart(){this.players.forEach(B=>B.restart())}finish(){this._onFinish(),this.players.forEach(B=>B.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(B=>B.destroy()),this._onDestroyFns.forEach(B=>B()),this._onDestroyFns=[])}reset(){this.players.forEach(B=>B.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(B){const ee=B*this.totalTime;this.players.forEach(ie=>{const he=ie.totalTime?Math.min(1,ee/ie.totalTime):1;ie.setPosition(he)})}getPosition(){const B=this.players.reduce((ee,ie)=>null===ee||ie.totalTime>ee.totalTime?ie:ee,null);return null!=B?B.getPosition():0}beforeDestroy(){this.players.forEach(B=>{B.beforeDestroy&&B.beforeDestroy()})}triggerCallback(B){const ee="start"==B?this._onStartFns:this._onDoneFns;ee.forEach(ie=>ie()),ee.length=0}}const U="!"},5664:($,o,a)=>{"use strict";a.d(o,{$s:()=>G,Em:()=>De,X6:()=>Ce,ic:()=>rt,kH:()=>Pt,qV:()=>Ae,qm:()=>Be,rt:()=>ge,tE:()=>Lt,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),F=a(3191),j=a(7144),Q=a(5113);function ee(ue,re){return(ue.getAttribute(re)||"").match(/\S+/g)||[]}const he="cdk-describedby-message",Me="cdk-describedby-host";let qe=0,G=(()=>{class ue{constructor(oe,L){this._platform=L,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+qe++,this._document=oe,this._id=(0,p.inject)(p.APP_ID)+"-"+qe++}describe(oe,L,ye){if(!this._canBeDescribed(oe,L))return;const dt=Z(L,ye);"string"!=typeof L?(V(L,this._id),this._messageRegistry.set(dt,{messageElement:L,referenceCount:0})):this._messageRegistry.has(dt)||this._createMessageElement(L,ye),this._isElementDescribedByMessage(oe,dt)||this._addMessageReference(oe,dt)}removeDescription(oe,L,ye){var dt;if(!L||!this._isElementNode(oe))return;const ke=Z(L,ye);if(this._isElementDescribedByMessage(oe,ke)&&this._removeMessageReference(oe,ke),"string"==typeof L){const ht=this._messageRegistry.get(ke);ht&&0===ht.referenceCount&&this._deleteMessageElement(ke)}0===(null===(dt=this._messagesContainer)||void 0===dt?void 0:dt.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var oe;const L=this._document.querySelectorAll(`[${Me}="${this._id}"]`);for(let ye=0;ye<L.length;ye++)this._removeCdkDescribedByReferenceIds(L[ye]),L[ye].removeAttribute(Me);null===(oe=this._messagesContainer)||void 0===oe||oe.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(oe,L){const ye=this._document.createElement("div");V(ye,this._id),ye.textContent=oe,L&&ye.setAttribute("role",L),this._createMessagesContainer(),this._messagesContainer.appendChild(ye),this._messageRegistry.set(Z(oe,L),{messageElement:ye,referenceCount:0})}_deleteMessageElement(oe){var L,ye;null===(ye=null===(L=this._messageRegistry.get(oe))||void 0===L?void 0:L.messageElement)||void 0===ye||ye.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 dt=0;dt<L.length;dt++)L[dt].remove();const ye=this._document.createElement("div");ye.style.visibility="hidden",ye.classList.add(oe),ye.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&ye.setAttribute("platform","server"),this._document.body.appendChild(ye),this._messagesContainer=ye}_removeCdkDescribedByReferenceIds(oe){const L=ee(oe,"aria-describedby").filter(ye=>0!=ye.indexOf(he));oe.setAttribute("aria-describedby",L.join(" "))}_addMessageReference(oe,L){const ye=this._messageRegistry.get(L);(function Y(ue,re,oe){const L=ee(ue,re);L.some(ye=>ye.trim()==oe.trim())||(L.push(oe.trim()),ue.setAttribute(re,L.join(" ")))})(oe,"aria-describedby",ye.messageElement.id),oe.setAttribute(Me,this._id),ye.referenceCount++}_removeMessageReference(oe,L){const ye=this._messageRegistry.get(L);ye.referenceCount--,function B(ue,re,oe){const ye=ee(ue,re).filter(dt=>dt!=oe.trim());ye.length?ue.setAttribute(re,ye.join(" ")):ue.removeAttribute(re)}(oe,"aria-describedby",ye.messageElement.id),oe.removeAttribute(Me)}_isElementDescribedByMessage(oe,L){const ye=ee(oe,"aria-describedby"),dt=this._messageRegistry.get(L),ke=dt&&dt.messageElement.id;return!!ke&&-1!=ye.indexOf(ke)}_canBeDescribed(oe,L){if(!this._isElementNode(oe))return!1;if(L&&"object"==typeof L)return!0;const ye=null==L?"":`${L}`.trim(),dt=oe.getAttribute("aria-label");return!(!ye||dt&&dt.trim()===ye)}_isElementNode(oe){return oe.nodeType===this._document.ELEMENT_NODE}}return ue.\u0275fac=function(oe){return new(oe||ue)(p.\u0275\u0275inject(n.DOCUMENT),p.\u0275\u0275inject(b.t4))},ue.\u0275prov=p.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();function Z(ue,re){return"string"==typeof ue?`${re||""}/${ue}`:ue}function V(ue,re){ue.id||(ue.id=`${he}-${re}-${qe++}`)}class De extends class J{constructor(re){this._items=re,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,re instanceof p.QueryList&&re.changes.subscribe(oe=>{if(this._activeItem){const ye=oe.toArray().indexOf(this._activeItem);ye>-1&&ye!==this._activeItemIndex&&(this._activeItemIndex=ye)}})}skipPredicate(re){return this._skipPredicateFn=re,this}withWrap(re=!0){return this._wrap=re,this}withVerticalOrientation(re=!0){return this._vertical=re,this}withHorizontalOrientation(re){return this._horizontal=re,this}withAllowedModifierKeys(re){return this._allowedModifierKeys=re,this}withTypeAhead(re=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,m.b)(oe=>this._pressedLetters.push(oe)),(0,d.b)(re),(0,_.h)(()=>this._pressedLetters.length>0),(0,v.U)(()=>this._pressedLetters.join(""))).subscribe(oe=>{const L=this._getItemsArray();for(let ye=1;ye<L.length+1;ye++){const dt=(this._activeItemIndex+ye)%L.length,ke=L[dt];if(!this._skipPredicateFn(ke)&&0===ke.getLabel().toUpperCase().trim().indexOf(oe)){this.setActiveItem(dt);break}}this._pressedLetters=[]}),this}withHomeAndEnd(re=!0){return this._homeAndEnd=re,this}setActiveItem(re){const oe=this._activeItem;this.updateActiveItem(re),this._activeItem!==oe&&this.change.next(this._activeItemIndex)}onKeydown(re){const oe=re.keyCode,ye=["altKey","ctrlKey","metaKey","shiftKey"].every(dt=>!re[dt]||this._allowedModifierKeys.indexOf(dt)>-1);switch(oe){case h.Mf:return void this.tabOut.next();case h.JH:if(this._vertical&&ye){this.setNextItemActive();break}return;case h.LH:if(this._vertical&&ye){this.setPreviousItemActive();break}return;case h.SV:if(this._horizontal&&ye){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case h.oh:if(this._horizontal&&ye){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case h.Sd:if(this._homeAndEnd&&ye){this.setFirstItemActive();break}return;case h.uR:if(this._homeAndEnd&&ye){this.setLastItemActive();break}return;default:return void((ye||(0,h.Vb)(re,"shiftKey"))&&(re.key&&1===re.key.length?this._letterKeyStream.next(re.key.toLocaleUpperCase()):(oe>=h.A&&oe<=h.Z||oe>=h.xE&&oe<=h.aO)&&this._letterKeyStream.next(String.fromCharCode(oe))))}this._pressedLetters=[],re.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(re){const oe=this._getItemsArray(),L="number"==typeof re?re:oe.indexOf(re),ye=oe[L];this._activeItem=null==ye?null:ye,this._activeItemIndex=L}_setActiveItemByDelta(re){this._wrap?this._setActiveInWrapMode(re):this._setActiveInDefaultMode(re)}_setActiveInWrapMode(re){const oe=this._getItemsArray();for(let L=1;L<=oe.length;L++){const ye=(this._activeItemIndex+re*L+oe.length)%oe.length;if(!this._skipPredicateFn(oe[ye]))return void this.setActiveItem(ye)}}_setActiveInDefaultMode(re){this._setActiveItemByIndex(this._activeItemIndex+re,re)}_setActiveItemByIndex(re,oe){const L=this._getItemsArray();if(L[re]){for(;this._skipPredicateFn(L[re]);)if(!L[re+=oe])return;this.setActiveItem(re)}}_getItemsArray(){return this._items instanceof p.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(re){return this._origin=re,this}setActiveItem(re){super.setActiveItem(re),this.activeItem&&this.activeItem.focus(this._origin)}}let rt=(()=>{class ue{constructor(oe){this._platform=oe}isDisabled(oe){return oe.hasAttribute("disabled")}isVisible(oe){return function Oe(ue){return!!(ue.offsetWidth||ue.offsetHeight||"function"==typeof ue.getClientRects&&ue.getClientRects().length)}(oe)&&"visible"===getComputedStyle(oe).visibility}isTabbable(oe){if(!this._platform.isBrowser)return!1;const L=function yt(ue){try{return ue.frameElement}catch(re){return null}}(function It(ue){return ue.ownerDocument&&ue.ownerDocument.defaultView||window}(oe));if(L&&(-1===wt(L)||!this.isVisible(L)))return!1;let ye=oe.nodeName.toLowerCase(),dt=wt(oe);return oe.hasAttribute("contenteditable")?-1!==dt:!("iframe"===ye||"object"===ye||this._platform.WEBKIT&&this._platform.IOS&&!function Ct(ue){let re=ue.nodeName.toLowerCase(),oe="input"===re&&ue.type;return"text"===oe||"password"===oe||"select"===re||"textarea"===re}(oe))&&("audio"===ye?!!oe.hasAttribute("controls")&&-1!==dt:"video"===ye?-1!==dt&&(null!==dt||this._platform.FIREFOX||oe.hasAttribute("controls")):oe.tabIndex>=0)}isFocusable(oe,L){return function st(ue){return!function Et(ue){return function lt(ue){return"input"==ue.nodeName.toLowerCase()}(ue)&&"hidden"==ue.type}(ue)&&(function ft(ue){let re=ue.nodeName.toLowerCase();return"input"===re||"select"===re||"button"===re||"textarea"===re}(ue)||function et(ue){return function Ge(ue){return"a"==ue.nodeName.toLowerCase()}(ue)&&ue.hasAttribute("href")}(ue)||ue.hasAttribute("contenteditable")||nt(ue))}(oe)&&!this.isDisabled(oe)&&((null==L?void 0:L.ignoreVisibility)||this.isVisible(oe))}}return ue.\u0275fac=function(oe){return new(oe||ue)(p.\u0275\u0275inject(b.t4))},ue.\u0275prov=p.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();function nt(ue){if(!ue.hasAttribute("tabindex")||void 0===ue.tabIndex)return!1;let re=ue.getAttribute("tabindex");return!(!re||isNaN(parseInt(re,10)))}function wt(ue){if(!nt(ue))return null;const re=parseInt(ue.getAttribute("tabindex")||"",10);return isNaN(re)?-1:re}class Ue{constructor(re,oe,L,ye,dt=!1){this._element=re,this._checker=oe,this._ngZone=L,this._document=ye,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,dt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(re){this._enabled=re,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(re,this._startAnchor),this._toggleAnchorTabIndex(re,this._endAnchor))}destroy(){const re=this._startAnchor,oe=this._endAnchor;re&&(re.removeEventListener("focus",this.startAnchorListener),re.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(re){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusInitialElement(re)))})}focusFirstTabbableElementWhenReady(re){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusFirstTabbableElement(re)))})}focusLastTabbableElementWhenReady(re){return new Promise(oe=>{this._executeOnStable(()=>oe(this.focusLastTabbableElement(re)))})}_getRegionBoundary(re){const oe=this._element.querySelectorAll(`[cdk-focus-region-${re}], [cdkFocusRegion${re}], [cdk-focus-${re}]`);return"start"==re?oe.length?oe[0]:this._getFirstTabbableElement(this._element):oe.length?oe[oe.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(re){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(re),!!L}return oe.focus(re),!0}return this.focusFirstTabbableElement(re)}focusFirstTabbableElement(re){const oe=this._getRegionBoundary("start");return oe&&oe.focus(re),!!oe}focusLastTabbableElement(re){const oe=this._getRegionBoundary("end");return oe&&oe.focus(re),!!oe}hasAttached(){return this._hasAttached}_getFirstTabbableElement(re){if(this._checker.isFocusable(re)&&this._checker.isTabbable(re))return re;const oe=re.children;for(let L=0;L<oe.length;L++){const ye=oe[L].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(oe[L]):null;if(ye)return ye}return null}_getLastTabbableElement(re){if(this._checker.isFocusable(re)&&this._checker.isTabbable(re))return re;const oe=re.children;for(let L=oe.length-1;L>=0;L--){const ye=oe[L].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(oe[L]):null;if(ye)return ye}return null}_createAnchor(){const re=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,re),re.classList.add("cdk-visually-hidden"),re.classList.add("cdk-focus-trap-anchor"),re.setAttribute("aria-hidden","true"),re}_toggleAnchorTabIndex(re,oe){re?oe.setAttribute("tabindex","0"):oe.removeAttribute("tabindex")}toggleAnchors(re){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(re,this._startAnchor),this._toggleAnchorTabIndex(re,this._endAnchor))}_executeOnStable(re){this._ngZone.isStable?re():this._ngZone.onStable.pipe((0,y.q)(1)).subscribe(re)}}let Ae=(()=>{class ue{constructor(oe,L,ye){this._checker=oe,this._ngZone=L,this._document=ye}create(oe,L=!1){return new Ue(oe,this._checker,this._ngZone,this._document,L)}}return ue.\u0275fac=function(oe){return new(oe||ue)(p.\u0275\u0275inject(rt),p.\u0275\u0275inject(p.NgZone),p.\u0275\u0275inject(n.DOCUMENT))},ue.\u0275prov=p.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();function Ce(ue){return 0===ue.buttons||0===ue.offsetX&&0===ue.offsetY}function Le(ue){const re=ue.touches&&ue.touches[0]||ue.changedTouches&&ue.changedTouches[0];return!(!re||-1!==re.identifier||null!=re.radiusX&&1!==re.radiusX||null!=re.radiusY&&1!==re.radiusY)}const Se=new p.InjectionToken("cdk-input-modality-detector-options"),xe={ignoreKeys:[h.zL,h.jx,h.b2,h.MW,h.JU]},Fe=(0,b.i$)({passive:!0,capture:!0});let at=(()=>{class ue{constructor(oe,L,ye,dt){this._platform=oe,this._mostRecentTarget=null,this._modality=new c.X(null),this._lastTouchMs=0,this._onKeydown=ke=>{var ht,se;null!==(se=null===(ht=this._options)||void 0===ht?void 0:ht.ignoreKeys)&&void 0!==se&&se.some(ve=>ve===ke.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,b.sA)(ke))},this._onMousedown=ke=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Ce(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({},xe),dt),this.modalityDetected=this._modality.pipe((0,E.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,M.x)()),oe.isBrowser&&L.runOutsideAngular(()=>{ye.addEventListener("keydown",this._onKeydown,Fe),ye.addEventListener("mousedown",this._onMousedown,Fe),ye.addEventListener("touchstart",this._onTouchstart,Fe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,Fe),document.removeEventListener("mousedown",this._onMousedown,Fe),document.removeEventListener("touchstart",this._onTouchstart,Fe))}}return ue.\u0275fac=function(oe){return new(oe||ue)(p.\u0275\u0275inject(b.t4),p.\u0275\u0275inject(p.NgZone),p.\u0275\u0275inject(n.DOCUMENT),p.\u0275\u0275inject(Se,8))},ue.\u0275prov=p.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})();const Ke=new p.InjectionToken("cdk-focus-monitor-default-options"),ct=(0,b.i$)({passive:!0,capture:!0});let Lt=(()=>{class ue{constructor(oe,L,ye,dt,ke){this._ngZone=oe,this._platform=L,this._inputModalityDetector=ye,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=ht=>{for(let ve=(0,b.sA)(ht);ve;ve=ve.parentElement)"focus"===ht.type?this._onFocus(ht,ve):this._onBlur(ht,ve)},this._document=dt,this._detectionMode=(null==ke?void 0:ke.detectionMode)||0}monitor(oe,L=!1){const ye=(0,F.fI)(oe);if(!this._platform.isBrowser||1!==ye.nodeType)return(0,f.of)(null);const dt=(0,b.kV)(ye)||this._getDocument(),ke=this._elementInfo.get(ye);if(ke)return L&&(ke.checkChildren=!0),ke.subject;const ht={checkChildren:L,subject:new u.x,rootNode:dt};return this._elementInfo.set(ye,ht),this._registerGlobalListeners(ht),ht.subject}stopMonitoring(oe){const L=(0,F.fI)(oe),ye=this._elementInfo.get(L);ye&&(ye.subject.complete(),this._setClasses(L),this._elementInfo.delete(L),this._removeGlobalListeners(ye))}focusVia(oe,L,ye){const dt=(0,F.fI)(oe);dt===this._getDocument().activeElement?this._getClosestElementsInfo(dt).forEach(([ht,se])=>this._originChanged(ht,L,se)):(this._setOrigin(L),"function"==typeof dt.focus&&dt.focus(ye))}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 ye=this._elementInfo.get(L),dt=(0,b.sA)(oe);!ye||!ye.checkChildren&&L!==dt||this._originChanged(L,this._getFocusOrigin(dt),ye)}_onBlur(oe,L){const ye=this._elementInfo.get(L);!ye||ye.checkChildren&&oe.relatedTarget instanceof Node&&L.contains(oe.relatedTarget)||(this._setClasses(L),this._emitOrigin(ye,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,ye=this._rootNodeFocusListenerCount.get(L)||0;ye||this._ngZone.runOutsideAngular(()=>{L.addEventListener("focus",this._rootNodeFocusAndBlurListener,ct),L.addEventListener("blur",this._rootNodeFocusAndBlurListener,ct)}),this._rootNodeFocusListenerCount.set(L,ye+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,A.R)(this._stopInputModalityDetector)).subscribe(dt=>{this._setOrigin(dt,!0)}))}_removeGlobalListeners(oe){const L=oe.rootNode;if(this._rootNodeFocusListenerCount.has(L)){const ye=this._rootNodeFocusListenerCount.get(L);ye>1?this._rootNodeFocusListenerCount.set(L,ye-1):(L.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ct),L.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ct),this._rootNodeFocusListenerCount.delete(L))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(oe,L,ye){this._setClasses(oe,L),this._emitOrigin(ye,L),this._lastFocusOrigin=L}_getClosestElementsInfo(oe){const L=[];return this._elementInfo.forEach((ye,dt)=>{(dt===oe||ye.checkChildren&&dt.contains(oe))&&L.push([dt,ye])}),L}_isLastInteractionFromInputLabel(oe){const{_mostRecentTarget:L,mostRecentModality:ye}=this._inputModalityDetector;if("mouse"!==ye||!L||L===oe||"INPUT"!==oe.nodeName&&"TEXTAREA"!==oe.nodeName||oe.disabled)return!1;const dt=oe.labels;if(dt)for(let ke=0;ke<dt.length;ke++)if(dt[ke].contains(L))return!0;return!1}}return ue.\u0275fac=function(oe){return new(oe||ue)(p.\u0275\u0275inject(p.NgZone),p.\u0275\u0275inject(b.t4),p.\u0275\u0275inject(at),p.\u0275\u0275inject(n.DOCUMENT,8),p.\u0275\u0275inject(Ke,8))},ue.\u0275prov=p.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),Pt=(()=>{class ue{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 ue.\u0275fac=function(oe){return new(oe||ue)(p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(Lt))},ue.\u0275dir=p.\u0275\u0275defineDirective({type:ue,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),ue})();const Kt="cdk-high-contrast-black-on-white",Bt="cdk-high-contrast-white-on-black",Ye="cdk-high-contrast-active";let Be=(()=>{class ue{constructor(oe,L){this._platform=oe,this._document=L,this._breakpointSubscription=(0,p.inject)(Q.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,ye=L&&L.getComputedStyle?L.getComputedStyle(oe):null,dt=(ye&&ye.backgroundColor||"").replace(/ /g,"");switch(oe.remove(),dt){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(Ye,Kt,Bt),this._hasCheckedHighContrastMode=!0;const L=this.getHighContrastMode();1===L?oe.add(Ye,Kt):2===L&&oe.add(Ye,Bt)}}}return ue.\u0275fac=function(oe){return new(oe||ue)(p.\u0275\u0275inject(b.t4),p.\u0275\u0275inject(n.DOCUMENT))},ue.\u0275prov=p.\u0275\u0275defineInjectable({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),ge=(()=>{class ue{constructor(oe){oe._applyBodyHighContrastModeCssClasses()}}return ue.\u0275fac=function(oe){return new(oe||ue)(p.\u0275\u0275inject(Be))},ue.\u0275mod=p.\u0275\u0275defineNgModule({type:ue}),ue.\u0275inj=p.\u0275\u0275defineInjector({imports:[j.Q8]}),ue})()},226:($,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:($,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:($,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,F){y.forEachOperation((j,Q,U)=>{let Y,B;if(null==j.previousIndex){const ee=M(j,Q,U);Y=E.createEmbeddedView(ee.templateRef,ee.context,ee.index),B=1}else null==U?(E.remove(Q),B=3):(Y=E.get(Q),E.move(Y,U),B=2);F&&F({context:null==Y?void 0:Y.context,operation:B,record:j})})}detach(){}}class f{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(y,E,M,A,F){y.forEachOperation((j,Q,U)=>{let Y,B;null==j.previousIndex?(Y=this._insertView(()=>M(j,Q,U),U,E,A(j)),B=Y?1:0):null==U?(this._detachAndCacheView(Q,E),B=3):(Y=this._moveView(Q,U,E,A(j)),B=2),F&&F({context:null==Y?void 0:Y.context,operation:B,record:j})})}detach(){for(const y of this._viewCache)y.destroy();this._viewCache=[]}_insertView(y,E,M,A){const F=this._insertViewFromCache(E,M);if(F)return void(F.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 F=M.get(y);return M.move(F,E),F.context.$implicit=A,F}_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(F=>this._markSelected(F)):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(F=>this._markSelected(F)),E.filter(F=>!M.has(F)).forEach(F=>this._unmarkSelected(F));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:($,o,a)=>{"use strict";a.d(o,{A:()=>Et,JH:()=>U,JU:()=>c,K5:()=>r,LH:()=>j,L_:()=>v,MW:()=>me,Mf:()=>b,SV:()=>Q,Sd:()=>A,Vb:()=>Fn,Z:()=>H,ZH:()=>p,aO:()=>it,b2:()=>Jt,hY:()=>_,jx:()=>f,oh:()=>F,uR:()=>M,xE:()=>he,yY:()=>ie,zL:()=>h});const p=8,b=9,r=13,c=16,f=17,h=18,_=27,v=32,M=35,A=36,F=37,j=38,Q=39,U=40,ie=46,he=48,it=57,Et=65,H=90,me=91,Jt=224;function Fn(ti,...In){return In.length?In.some(Wn=>ti[Wn]):ti.altKey||ti.shiftKey||ti.ctrlKey||ti.metaKey}},5113:($,o,a)=>{"use strict";a.r(o),a.d(o,{BreakpointObserver:()=>U,Breakpoints:()=>B,LayoutModule:()=>E,MediaMatcher:()=>F});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 ee{}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275mod=n.\u0275\u0275defineNgModule({type:ee}),ee.\u0275inj=n.\u0275\u0275defineInjector({}),ee})();const M=new Set;let A,F=(()=>{class ee{constructor(he){this._platform=he,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Q}matchMedia(he){return(this._platform.WEBKIT||this._platform.BLINK)&&function j(ee){if(!M.has(ee))try{A||(A=document.createElement("style"),A.setAttribute("type","text/css"),document.head.appendChild(A)),A.sheet&&(A.sheet.insertRule(`@media ${ee} {body{ }}`,0),M.add(ee))}catch(ie){console.error(ie)}}(he),this._matchMedia(he)}}return ee.\u0275fac=function(he){return new(he||ee)(n.\u0275\u0275inject(y.t4))},ee.\u0275prov=n.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();function Q(ee){return{matches:"all"===ee||""===ee,media:ee,addListener:()=>{},removeListener:()=>{}}}let U=(()=>{class ee{constructor(he,Me){this._mediaMatcher=he,this._zone=Me,this._queries=new Map,this._destroySubject=new b.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(he){return Y((0,p.Eq)(he)).some(qe=>this._registerQuery(qe).mql.matches)}observe(he){const qe=Y((0,p.Eq)(he)).map(Z=>this._registerQuery(Z).observable);let G=(0,u.a)(qe);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)(Z=>{const V={matches:!1,breakpoints:{}};return Z.forEach(({matches:J,query:_e})=>{V.matches=V.matches||J,V.breakpoints[_e]=J}),V}))}_registerQuery(he){if(this._queries.has(he))return this._queries.get(he);const Me=this._mediaMatcher.matchMedia(he),G={observable:new c.y(Z=>{const V=J=>this._zone.run(()=>Z.next(J));return Me.addListener(V),()=>{Me.removeListener(V)}}).pipe((0,_.O)(Me),(0,d.U)(({matches:Z})=>({query:he,matches:Z})),(0,v.R)(this._destroySubject)),mql:Me};return this._queries.set(he,G),G}}return ee.\u0275fac=function(he){return new(he||ee)(n.\u0275\u0275inject(F),n.\u0275\u0275inject(n.NgZone))},ee.\u0275prov=n.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac,providedIn:"root"}),ee})();function Y(ee){return ee.map(ie=>ie.split(",")).reduce((ie,he)=>ie.concat(he)).map(ie=>ie.trim())}const B={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:($,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:($,o,a)=>{"use strict";a.d(o,{Iu:()=>G,U8:()=>ze,X_:()=>B,Xj:()=>Z,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,Ce){this._viewportRuler=z,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=Ce}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,xe=Le.scrollBehavior||"",pe=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=xe,Se.scrollBehavior=pe)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const Ce=this._document.body,Le=this._viewportRuler.getViewportSize();return Ce.scrollHeight>Le.height||Ce.scrollWidth>Le.width}}class A{constructor(z,Ce,Le,Se){this._scrollDispatcher=z,this._ngZone=Ce,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 Ce=this._viewportRuler.getViewportScrollPosition().top;Math.abs(Ce-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 F{enable(){}disable(){}attach(){}}function j(Ve,z){return z.some(Ce=>Ve.bottom<Ce.top||Ve.top>Ce.bottom||Ve.right<Ce.left||Ve.left>Ce.right)}function Q(Ve,z){return z.some(Ce=>Ve.top<Ce.top||Ve.bottom>Ce.bottom||Ve.left<Ce.left||Ve.right>Ce.right)}class U{constructor(z,Ce,Le,Se){this._scrollDispatcher=z,this._viewportRuler=Ce,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 Ce=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Le,height:Se}=this._viewportRuler.getViewportSize();j(Ce,[{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 Y=(()=>{class Ve{constructor(Ce,Le,Se,xe){this._scrollDispatcher=Ce,this._viewportRuler=Le,this._ngZone=Se,this.noop=()=>new F,this.close=pe=>new A(this._scrollDispatcher,this._ngZone,this._viewportRuler,pe),this.block=()=>new E(this._viewportRuler,this._document),this.reposition=pe=>new U(this._scrollDispatcher,this._viewportRuler,this._ngZone,pe),this._document=xe}}return Ve.\u0275fac=function(Ce){return new(Ce||Ve)(b.\u0275\u0275inject(n.mF),b.\u0275\u0275inject(n.rL),b.\u0275\u0275inject(b.NgZone),b.\u0275\u0275inject(p.DOCUMENT))},Ve.\u0275prov=b.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();class B{constructor(z){if(this.scrollStrategy=new F,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,z){const Ce=Object.keys(z);for(const Le of Ce)void 0!==z[Le]&&(this[Le]=z[Le])}}}class he{constructor(z,Ce){this.connectionPair=z,this.scrollableViewProperties=Ce}}class G{constructor(z,Ce,Le,Se,xe,pe,Fe,at,Te,H=!1){this._portalOutlet=z,this._host=Ce,this._pane=Le,this._config=Se,this._ngZone=xe,this._keyboardDispatcher=pe,this._document=Fe,this._location=at,this._outsideClickDispatcher=Te,this._animationsDisabled=H,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=me=>this._backdropClick.next(me),this._backdropTransitionendHandler=me=>{this._disposeBackdrop(me.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 Ce=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),"function"==typeof(null==Ce?void 0:Ce.onDestroy)&&Ce.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),Ce}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 Ce=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,Ce&&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,Ce,Le){const Se=(0,u.Eq)(Ce||[]).filter(xe=>!!xe);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 Z=(()=>{class Ve{constructor(Ce,Le){this._platform=Le,this._document=Ce}ngOnDestroy(){var Ce;null===(Ce=this._containerElement)||void 0===Ce||Ce.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Ce="cdk-overlay-container";if(this._platform.isBrowser||(0,r.Oy)()){const Se=this._document.querySelectorAll(`.${Ce}[platform="server"], .${Ce}[platform="test"]`);for(let xe=0;xe<Se.length;xe++)Se[xe].remove()}const Le=this._document.createElement("div");Le.classList.add(Ce),(0,r.Oy)()?Le.setAttribute("platform","test"):this._platform.isBrowser||Le.setAttribute("platform","server"),this._document.body.appendChild(Le),this._containerElement=Le}}return Ve.\u0275fac=function(Ce){return new(Ce||Ve)(b.\u0275\u0275inject(p.DOCUMENT),b.\u0275\u0275inject(r.t4))},Ve.\u0275prov=b.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})();const V="cdk-overlay-connected-position-bounding-box",J=/([A-Za-z%]+)$/;class _e{constructor(z,Ce,Le,Se,xe){this._viewportRuler=Ce,this._document=Le,this._platform=Se,this._overlayContainer=xe,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(V),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,Ce=this._overlayRect,Le=this._viewportRect,Se=this._containerRect,xe=[];let pe;for(let Fe of this._preferredPositions){let at=this._getOriginPoint(z,Se,Fe),Te=this._getOverlayPoint(at,Ce,Fe),H=this._getOverlayFit(Te,Ce,Le,Fe);if(H.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(Fe,at);this._canFitWithFlexibleDimensions(H,Te,Le)?xe.push({position:Fe,origin:at,overlayRect:Ce,boundingBoxRect:this._calculateBoundingBoxRect(at,Fe)}):(!pe||pe.overlayFit.visibleArea<H.visibleArea)&&(pe={overlayFit:H,overlayPoint:Te,originPoint:at,position:Fe,overlayRect:Ce})}if(xe.length){let Fe=null,at=-1;for(const Te of xe){const H=Te.boundingBoxRect.width*Te.boundingBoxRect.height*(Te.position.weight||1);H>at&&(at=H,Fe=Te)}return this._isPushed=!1,void this._applyPosition(Fe.position,Fe.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(pe.position,pe.originPoint);this._applyPosition(pe.position,pe.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&De(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(V),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 Ce=this._getOriginPoint(this._originRect,this._containerRect,z);this._applyPosition(z,Ce)}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,Ce,Le){let Se,xe;if("center"==Le.originX)Se=z.left+z.width/2;else{const pe=this._isRtl()?z.right:z.left,Fe=this._isRtl()?z.left:z.right;Se="start"==Le.originX?pe:Fe}return Ce.left<0&&(Se-=Ce.left),xe="center"==Le.originY?z.top+z.height/2:"top"==Le.originY?z.top:z.bottom,Ce.top<0&&(xe-=Ce.top),{x:Se,y:xe}}_getOverlayPoint(z,Ce,Le){let Se,xe;return Se="center"==Le.overlayX?-Ce.width/2:"start"===Le.overlayX?this._isRtl()?-Ce.width:0:this._isRtl()?0:-Ce.width,xe="center"==Le.overlayY?-Ce.height/2:"top"==Le.overlayY?0:-Ce.height,{x:z.x+Se,y:z.y+xe}}_getOverlayFit(z,Ce,Le,Se){const xe=rt(Ce);let{x:pe,y:Fe}=z,at=this._getOffset(Se,"x"),Te=this._getOffset(Se,"y");at&&(pe+=at),Te&&(Fe+=Te);let ae=0-Fe,we=Fe+xe.height-Le.height,Ke=this._subtractOverflows(xe.width,0-pe,pe+xe.width-Le.width),ct=this._subtractOverflows(xe.height,ae,we),Lt=Ke*ct;return{visibleArea:Lt,isCompletelyWithinViewport:xe.width*xe.height===Lt,fitsInViewportVertically:ct===xe.height,fitsInViewportHorizontally:Ke==xe.width}}_canFitWithFlexibleDimensions(z,Ce,Le){if(this._hasFlexibleDimensions){const Se=Le.bottom-Ce.y,xe=Le.right-Ce.x,pe=it(this._overlayRef.getConfig().minHeight),Fe=it(this._overlayRef.getConfig().minWidth),Te=z.fitsInViewportHorizontally||null!=Fe&&Fe<=xe;return(z.fitsInViewportVertically||null!=pe&&pe<=Se)&&Te}return!1}_pushOverlayOnScreen(z,Ce,Le){if(this._previousPushAmount&&this._positionLocked)return{x:z.x+this._previousPushAmount.x,y:z.y+this._previousPushAmount.y};const Se=rt(Ce),xe=this._viewportRect,pe=Math.max(z.x+Se.width-xe.width,0),Fe=Math.max(z.y+Se.height-xe.height,0),at=Math.max(xe.top-Le.top-z.y,0),Te=Math.max(xe.left-Le.left-z.x,0);let H=0,me=0;return H=Se.width<=xe.width?Te||-pe:z.x<this._viewportMargin?xe.left-Le.left-z.x:0,me=Se.height<=xe.height?at||-Fe:z.y<this._viewportMargin?xe.top-Le.top-z.y:0,this._previousPushAmount={x:H,y:me},{x:z.x+H,y:z.y+me}}_applyPosition(z,Ce){if(this._setTransformOrigin(z),this._setOverlayElementStyles(Ce,z),this._setBoundingBoxStyles(Ce,z),z.panelClass&&this._addPanelClasses(z.panelClass),this._lastPosition=z,this._positionChanges.observers.length){const Le=this._getScrollVisibility(),Se=new he(z,Le);this._positionChanges.next(Se)}this._isInitialRender=!1}_setTransformOrigin(z){if(!this._transformOriginSelector)return;const Ce=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 xe=0;xe<Ce.length;xe++)Ce[xe].style.transformOrigin=`${Le} ${Se}`}_calculateBoundingBoxRect(z,Ce){const Le=this._viewportRect,Se=this._isRtl();let xe,pe,Fe,H,me,ae;if("top"===Ce.overlayY)pe=z.y,xe=Le.height-pe+this._viewportMargin;else if("bottom"===Ce.overlayY)Fe=Le.height-z.y+2*this._viewportMargin,xe=Le.height-Fe+this._viewportMargin;else{const we=Math.min(Le.bottom-z.y+Le.top,z.y),Ke=this._lastBoundingBoxSize.height;xe=2*we,pe=z.y-we,xe>Ke&&!this._isInitialRender&&!this._growAfterOpen&&(pe=z.y-Ke/2)}if("end"===Ce.overlayX&&!Se||"start"===Ce.overlayX&&Se)ae=Le.width-z.x+this._viewportMargin,H=z.x-this._viewportMargin;else if("start"===Ce.overlayX&&!Se||"end"===Ce.overlayX&&Se)me=z.x,H=Le.right-z.x;else{const we=Math.min(Le.right-z.x+Le.left,z.x),Ke=this._lastBoundingBoxSize.width;H=2*we,me=z.x-we,H>Ke&&!this._isInitialRender&&!this._growAfterOpen&&(me=z.x-Ke/2)}return{top:pe,left:me,bottom:Fe,right:ae,width:H,height:xe}}_setBoundingBoxStyles(z,Ce){const Le=this._calculateBoundingBoxRect(z,Ce);!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 xe=this._overlayRef.getConfig().maxHeight,pe=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"===Ce.overlayX?"center":"end"===Ce.overlayX?"flex-end":"flex-start",Se.justifyContent="center"===Ce.overlayY?"center":"bottom"===Ce.overlayY?"flex-end":"flex-start",xe&&(Se.maxHeight=(0,u.HM)(xe)),pe&&(Se.maxWidth=(0,u.HM)(pe))}this._lastBoundingBoxSize=Le,De(this._boundingBox.style,Se)}_resetBoundingBoxStyles(){De(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){De(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(z,Ce){const Le={},Se=this._hasExactPosition(),xe=this._hasFlexibleDimensions,pe=this._overlayRef.getConfig();if(Se){const H=this._viewportRuler.getViewportScrollPosition();De(Le,this._getExactOverlayY(Ce,z,H)),De(Le,this._getExactOverlayX(Ce,z,H))}else Le.position="static";let Fe="",at=this._getOffset(Ce,"x"),Te=this._getOffset(Ce,"y");at&&(Fe+=`translateX(${at}px) `),Te&&(Fe+=`translateY(${Te}px)`),Le.transform=Fe.trim(),pe.maxHeight&&(Se?Le.maxHeight=(0,u.HM)(pe.maxHeight):xe&&(Le.maxHeight="")),pe.maxWidth&&(Se?Le.maxWidth=(0,u.HM)(pe.maxWidth):xe&&(Le.maxWidth="")),De(this._pane.style,Le)}_getExactOverlayY(z,Ce,Le){let Se={top:"",bottom:""},xe=this._getOverlayPoint(Ce,this._overlayRect,z);return this._isPushed&&(xe=this._pushOverlayOnScreen(xe,this._overlayRect,Le)),"bottom"===z.overlayY?Se.bottom=this._document.documentElement.clientHeight-(xe.y+this._overlayRect.height)+"px":Se.top=(0,u.HM)(xe.y),Se}_getExactOverlayX(z,Ce,Le){let pe,Se={left:"",right:""},xe=this._getOverlayPoint(Ce,this._overlayRect,z);return this._isPushed&&(xe=this._pushOverlayOnScreen(xe,this._overlayRect,Le)),pe=this._isRtl()?"end"===z.overlayX?"left":"right":"end"===z.overlayX?"right":"left","right"===pe?Se.right=this._document.documentElement.clientWidth-(xe.x+this._overlayRect.width)+"px":Se.left=(0,u.HM)(xe.x),Se}_getScrollVisibility(){const z=this._getOriginRect(),Ce=this._pane.getBoundingClientRect(),Le=this._scrollables.map(Se=>Se.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Q(z,Le),isOriginOutsideView:j(z,Le),isOverlayClipped:Q(Ce,Le),isOverlayOutsideView:j(Ce,Le)}}_subtractOverflows(z,...Ce){return Ce.reduce((Le,Se)=>Le-Math.max(Se,0),z)}_getNarrowedViewportRect(){const z=this._document.documentElement.clientWidth,Ce=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+Ce-this._viewportMargin,width:z-2*this._viewportMargin,height:Ce-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(z,Ce){return"x"===Ce?null==z.offsetX?this._offsetX:z.offsetX:null==z.offsetY?this._offsetY:z.offsetY}_validatePositions(){}_addPanelClasses(z){this._pane&&(0,u.Eq)(z).forEach(Ce=>{""!==Ce&&-1===this._appliedPanelClasses.indexOf(Ce)&&(this._appliedPanelClasses.push(Ce),this._pane.classList.add(Ce))})}_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 Ce=z.width||0,Le=z.height||0;return{top:z.y,bottom:z.y+Le,left:z.x,right:z.x+Ce,height:Le,width:Ce}}}function De(Ve,z){for(let Ce in z)z.hasOwnProperty(Ce)&&(Ve[Ce]=z[Ce]);return Ve}function it(Ve){if("number"!=typeof Ve&&null!=Ve){const[z,Ce]=Ve.split(J);return Ce&&"px"!==Ce?null:parseFloat(z)}return Ve||null}function rt(Ve){return{top:Math.floor(Ve.top),right:Math.floor(Ve.right),bottom:Math.floor(Ve.bottom),left:Math.floor(Ve.left),width:Math.floor(Ve.width),height:Math.floor(Ve.height)}}const ft="cdk-global-overlay-wrapper";class Et{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(z){const Ce=z.getConfig();this._overlayRef=z,this._width&&!Ce.width&&z.updateSize({width:this._width}),this._height&&!Ce.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,Ce=this._overlayRef.hostElement.style,Le=this._overlayRef.getConfig(),{width:Se,height:xe,maxWidth:pe,maxHeight:Fe}=Le,at=!("100%"!==Se&&"100vw"!==Se||pe&&"100%"!==pe&&"100vw"!==pe),Te=!("100%"!==xe&&"100vh"!==xe||Fe&&"100%"!==Fe&&"100vh"!==Fe),H=this._xPosition,me=this._xOffset,ae="rtl"===this._overlayRef.getConfig().direction;let we="",Ke="",ct="";at?ct="flex-start":"center"===H?(ct="center",ae?Ke=me:we=me):ae?"left"===H||"end"===H?(ct="flex-end",we=me):("right"===H||"start"===H)&&(ct="flex-start",Ke=me):"left"===H||"start"===H?(ct="flex-start",we=me):("right"===H||"end"===H)&&(ct="flex-end",Ke=me),z.position=this._cssPosition,z.marginLeft=at?"0":we,z.marginTop=Te?"0":this._topOffset,z.marginBottom=this._bottomOffset,z.marginRight=at?"0":Ke,Ce.justifyContent=ct,Ce.alignItems=Te?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const z=this._overlayRef.overlayElement.style,Ce=this._overlayRef.hostElement,Le=Ce.style;Ce.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 Ve{constructor(Ce,Le,Se,xe){this._viewportRuler=Ce,this._document=Le,this._platform=Se,this._overlayContainer=xe}global(){return new Et}flexibleConnectedTo(Ce){return new _e(Ce,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ve.\u0275fac=function(Ce){return new(Ce||Ve)(b.\u0275\u0275inject(n.rL),b.\u0275\u0275inject(p.DOCUMENT),b.\u0275\u0275inject(r.t4),b.\u0275\u0275inject(Z))},Ve.\u0275prov=b.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),lt=(()=>{class Ve{constructor(Ce){this._attachedOverlays=[],this._document=Ce}ngOnDestroy(){this.detach()}add(Ce){this.remove(Ce),this._attachedOverlays.push(Ce)}remove(Ce){const Le=this._attachedOverlays.indexOf(Ce);Le>-1&&this._attachedOverlays.splice(Le,1),0===this._attachedOverlays.length&&this.detach()}}return Ve.\u0275fac=function(Ce){return new(Ce||Ve)(b.\u0275\u0275inject(p.DOCUMENT))},Ve.\u0275prov=b.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),Ge=(()=>{class Ve extends lt{constructor(Ce,Le){super(Ce),this._ngZone=Le,this._keydownListener=Se=>{const xe=this._attachedOverlays;for(let pe=xe.length-1;pe>-1;pe--)if(xe[pe]._keydownEvents.observers.length>0){const Fe=xe[pe]._keydownEvents;this._ngZone?this._ngZone.run(()=>Fe.next(Se)):Fe.next(Se);break}}}add(Ce){super.add(Ce),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 Ve.\u0275fac=function(Ce){return new(Ce||Ve)(b.\u0275\u0275inject(p.DOCUMENT),b.\u0275\u0275inject(b.NgZone,8))},Ve.\u0275prov=b.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),nt=(()=>{class Ve extends lt{constructor(Ce,Le,Se){super(Ce),this._platform=Le,this._ngZone=Se,this._cursorStyleIsSet=!1,this._pointerDownListener=xe=>{this._pointerDownEventTarget=(0,r.sA)(xe)},this._clickListener=xe=>{const pe=(0,r.sA)(xe),Fe="click"===xe.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:pe;this._pointerDownEventTarget=null;const at=this._attachedOverlays.slice();for(let Te=at.length-1;Te>-1;Te--){const H=at[Te];if(H._outsidePointerEvents.observers.length<1||!H.hasAttached())continue;if(H.overlayElement.contains(pe)||H.overlayElement.contains(Fe))break;const me=H._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>me.next(xe)):me.next(xe)}}}add(Ce){if(super.add(Ce),!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 Ce=this._document.body;Ce.removeEventListener("pointerdown",this._pointerDownListener,!0),Ce.removeEventListener("click",this._clickListener,!0),Ce.removeEventListener("auxclick",this._clickListener,!0),Ce.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(Ce.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(Ce){Ce.addEventListener("pointerdown",this._pointerDownListener,!0),Ce.addEventListener("click",this._clickListener,!0),Ce.addEventListener("auxclick",this._clickListener,!0),Ce.addEventListener("contextmenu",this._clickListener,!0)}}return Ve.\u0275fac=function(Ce){return new(Ce||Ve)(b.\u0275\u0275inject(p.DOCUMENT),b.\u0275\u0275inject(r.t4),b.\u0275\u0275inject(b.NgZone,8))},Ve.\u0275prov=b.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac,providedIn:"root"}),Ve})(),wt=0,Ct=(()=>{class Ve{constructor(Ce,Le,Se,xe,pe,Fe,at,Te,H,me,ae,we){this.scrollStrategies=Ce,this._overlayContainer=Le,this._componentFactoryResolver=Se,this._positionBuilder=xe,this._keyboardDispatcher=pe,this._injector=Fe,this._ngZone=at,this._document=Te,this._directionality=H,this._location=me,this._outsideClickDispatcher=ae,this._animationsModuleType=we}create(Ce){const Le=this._createHostElement(),Se=this._createPaneElement(Le),xe=this._createPortalOutlet(Se),pe=new B(Ce);return pe.direction=pe.direction||this._directionality.value,new G(xe,Le,Se,pe,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(Ce){const Le=this._document.createElement("div");return Le.id="cdk-overlay-"+wt++,Le.classList.add("cdk-overlay-pane"),Ce.appendChild(Le),Le}_createHostElement(){const Ce=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(Ce),Ce}_createPortalOutlet(Ce){return this._appRef||(this._appRef=this._injector.get(b.ApplicationRef)),new f.u0(Ce,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ve.\u0275fac=function(Ce){return new(Ce||Ve)(b.\u0275\u0275inject(Y),b.\u0275\u0275inject(Z),b.\u0275\u0275inject(b.ComponentFactoryResolver),b.\u0275\u0275inject(et),b.\u0275\u0275inject(Ge),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))},Ve.\u0275prov=b.\u0275\u0275defineInjectable({token:Ve,factory:Ve.\u0275fac}),Ve})();const fe={provide:new b.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[Ct],useFactory:function Ne(Ve){return()=>Ve.scrollStrategies.reposition()}};let ze=(()=>{class Ve{}return Ve.\u0275fac=function(Ce){return new(Ce||Ve)},Ve.\u0275mod=b.\u0275\u0275defineNgModule({type:Ve}),Ve.\u0275inj=b.\u0275\u0275defineInjector({providers:[Ct,fe],imports:[c.vT,f.eL,n.Cl,n.Cl]}),Ve})()},925:($,o,a)=>{"use strict";a.d(o,{Mq:()=>E,Oy:()=>Y,ht:()=>Q,i$:()=>_,kV:()=>j,sA:()=>U,t4:()=>u});var n=a(5e3),p=a(9808);let b;try{b="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(B){b=!1}let m,y,A,u=(()=>{class B{constructor(ie){this._platformId=ie,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 B.\u0275fac=function(ie){return new(ie||B)(n.\u0275\u0275inject(n.PLATFORM_ID))},B.\u0275prov=n.\u0275\u0275defineInjectable({token:B,factory:B.\u0275fac,providedIn:"root"}),B})();function _(B){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}()?B:!!B.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 B=Element.prototype.scrollTo;y=!!B&&!/\{\s*\[native code\]\s*\}/.test(B.toString())}}return y}function j(B){if(function F(){if(null==A){const B="undefined"!=typeof document?document.head:null;A=!(!B||!B.createShadowRoot&&!B.attachShadow)}return A}()){const ee=B.getRootNode?B.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&ee instanceof ShadowRoot)return ee}return null}function Q(){let B="undefined"!=typeof document&&document?document.activeElement:null;for(;B&&B.shadowRoot;){const ee=B.shadowRoot.activeElement;if(ee===B)break;B=ee}return B}function U(B){return B.composedPath?B.composedPath()[0]:B.target}function Y(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:($,o,a)=>{"use strict";a.d(o,{C5:()=>d,Pl:()=>Q,UE:()=>_,eL:()=>Y,en:()=>y,ig:()=>F,u0:()=>M});var n=a(5e3),p=a(9808);class m{attach(ie){return this._attachedHost=ie,ie.attach(this)}detach(){let ie=this._attachedHost;null!=ie&&(this._attachedHost=null,ie.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ie){this._attachedHost=ie}}class d extends m{constructor(ie,he,Me,qe){super(),this.component=ie,this.viewContainerRef=he,this.injector=Me,this.componentFactoryResolver=qe}}class _ extends m{constructor(ie,he,Me,qe){super(),this.templateRef=ie,this.viewContainerRef=he,this.context=Me,this.injector=qe}get origin(){return this.templateRef.elementRef}attach(ie,he=this.context){return this.context=he,super.attach(ie)}detach(){return this.context=void 0,super.detach()}}class v extends m{constructor(ie){super(),this.element=ie instanceof n.ElementRef?ie.nativeElement:ie}}class y{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ie){return ie instanceof d?(this._attachedPortal=ie,this.attachComponentPortal(ie)):ie instanceof _?(this._attachedPortal=ie,this.attachTemplatePortal(ie)):this.attachDomPortal&&ie instanceof v?(this._attachedPortal=ie,this.attachDomPortal(ie)):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(ie){this._disposeFn=ie}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class M extends y{constructor(ie,he,Me,qe,G){super(),this.outletElement=ie,this._componentFactoryResolver=he,this._appRef=Me,this._defaultInjector=qe,this.attachDomPortal=Z=>{const V=Z.element,J=this._document.createComment("dom-portal");V.parentNode.insertBefore(J,V),this.outletElement.appendChild(V),this._attachedPortal=Z,super.setDisposeFn(()=>{J.parentNode&&J.parentNode.replaceChild(V,J)})},this._document=G}attachComponentPortal(ie){const Me=(ie.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ie.component);let qe;return ie.viewContainerRef?(qe=ie.viewContainerRef.createComponent(Me,ie.viewContainerRef.length,ie.injector||ie.viewContainerRef.injector),this.setDisposeFn(()=>qe.destroy())):(qe=Me.create(ie.injector||this._defaultInjector||n.Injector.NULL),this._appRef.attachView(qe.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(qe.hostView),qe.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(qe)),this._attachedPortal=ie,qe}attachTemplatePortal(ie){let he=ie.viewContainerRef,Me=he.createEmbeddedView(ie.templateRef,ie.context,{injector:ie.injector});return Me.rootNodes.forEach(qe=>this.outletElement.appendChild(qe)),Me.detectChanges(),this.setDisposeFn(()=>{let qe=he.indexOf(Me);-1!==qe&&he.remove(qe)}),this._attachedPortal=ie,Me}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ie){return ie.hostView.rootNodes[0]}}let F=(()=>{class ee extends _{constructor(he,Me){super(he,Me)}}return ee.\u0275fac=function(he){return new(he||ee)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.ViewContainerRef))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ee})(),Q=(()=>{class ee extends y{constructor(he,Me,qe){super(),this._componentFactoryResolver=he,this._viewContainerRef=Me,this._isInitialized=!1,this.attached=new n.EventEmitter,this.attachDomPortal=G=>{const Z=G.element,V=this._document.createComment("dom-portal");G.setAttachedHost(this),Z.parentNode.insertBefore(V,Z),this._getRootNode().appendChild(Z),this._attachedPortal=G,super.setDisposeFn(()=>{V.parentNode&&V.parentNode.replaceChild(Z,V)})},this._document=qe}get portal(){return this._attachedPortal}set portal(he){this.hasAttached()&&!he&&!this._isInitialized||(this.hasAttached()&&super.detach(),he&&super.attach(he),this._attachedPortal=he||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(he){he.setAttachedHost(this);const Me=null!=he.viewContainerRef?he.viewContainerRef:this._viewContainerRef,G=(he.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(he.component),Z=Me.createComponent(G,Me.length,he.injector||Me.injector);return Me!==this._viewContainerRef&&this._getRootNode().appendChild(Z.hostView.rootNodes[0]),super.setDisposeFn(()=>Z.destroy()),this._attachedPortal=he,this._attachedRef=Z,this.attached.emit(Z),Z}attachTemplatePortal(he){he.setAttachedHost(this);const Me=this._viewContainerRef.createEmbeddedView(he.templateRef,he.context,{injector:he.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=he,this._attachedRef=Me,this.attached.emit(Me),Me}_getRootNode(){const he=this._viewContainerRef.element.nativeElement;return he.nodeType===he.ELEMENT_NODE?he:he.parentNode}}return ee.\u0275fac=function(he){return new(he||ee)(n.\u0275\u0275directiveInject(n.ComponentFactoryResolver),n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(p.DOCUMENT))},ee.\u0275dir=n.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ee})(),Y=(()=>{class ee{}return ee.\u0275fac=function(he){return new(he||ee)},ee.\u0275mod=n.\u0275\u0275defineNgModule({type:ee}),ee.\u0275inj=n.\u0275\u0275defineInjector({}),ee})()},495:($,o,a)=>{"use strict";a.d(o,{ZD:()=>It,mF:()=>it,Cl:()=>Ue,rL:()=>Et});var n=a(3191),p=a(5e3),b=a(4408),u=a(727);const r={schedule(Ae){let Ne=requestAnimationFrame,fe=cancelAnimationFrame;const{delegate:ze}=r;ze&&(Ne=ze.requestAnimationFrame,fe=ze.cancelAnimationFrame);const Ie=Ne(Ve=>{fe=void 0,Ae(Ve)});return new u.w0(()=>null==fe?void 0:fe(Ie))},requestAnimationFrame(...Ae){const{delegate:Ne}=r;return((null==Ne?void 0:Ne.requestAnimationFrame)||requestAnimationFrame)(...Ae)},cancelAnimationFrame(...Ae){const{delegate:Ne}=r;return((null==Ne?void 0:Ne.cancelAnimationFrame)||cancelAnimationFrame)(...Ae)},delegate:void 0};var f=a(640);new class h extends f.v{flush(Ne){this._active=!0;const fe=this._scheduled;this._scheduled=void 0;const{actions:ze}=this;let Ie;Ne=Ne||ze.shift();do{if(Ie=Ne.execute(Ne.state,Ne.delay))break}while((Ne=ze[0])&&Ne.id===fe&&ze.shift());if(this._active=!1,Ie){for(;(Ne=ze[0])&&Ne.id===fe&&ze.shift();)Ne.unsubscribe();throw Ie}}}(class c extends b.o{constructor(Ne,fe){super(Ne,fe),this.scheduler=Ne,this.work=fe}requestAsyncId(Ne,fe,ze=0){return null!==ze&&ze>0?super.requestAsyncId(Ne,fe,ze):(Ne.actions.push(this),Ne._scheduled||(Ne._scheduled=r.requestAnimationFrame(()=>Ne.flush(void 0))))}recycleAsyncId(Ne,fe,ze=0){if(null!=ze&&ze>0||null==ze&&this.delay>0)return super.recycleAsyncId(Ne,fe,ze);Ne.actions.some(Ie=>Ie.id===fe)||(r.cancelAnimationFrame(fe),Ne._scheduled=void 0)}});var _=a(7579),v=a(9646),y=a(8306),E=a(4968),A=(a(3101),a(4986)),F=a(4482),j=a(8421),Q=a(5403),Y=a(5963);function B(Ae,Ne=A.z){return function U(Ae){return(0,F.e)((Ne,fe)=>{let ze=!1,Ie=null,Ve=null,z=!1;const Ce=()=>{if(null==Ve||Ve.unsubscribe(),Ve=null,ze){ze=!1;const Se=Ie;Ie=null,fe.next(Se)}z&&fe.complete()},Le=()=>{Ve=null,z&&fe.complete()};Ne.subscribe((0,Q.x)(fe,Se=>{ze=!0,Ie=Se,Ve||(0,j.Xf)(Ae(Se)).subscribe(Ve=(0,Q.x)(fe,Ce,Le))},()=>{z=!0,(!ze||!Ve||Ve.closed)&&fe.complete()}))})}(()=>(0,Y.H)(Ae,Ne))}var ee=a(9300),ie=a(9808),he=a(925),Me=a(226);let it=(()=>{class Ae{constructor(fe,ze,Ie){this._ngZone=fe,this._platform=ze,this._scrolled=new _.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Ie}register(fe){this.scrollContainers.has(fe)||this.scrollContainers.set(fe,fe.elementScrolled().subscribe(()=>this._scrolled.next(fe)))}deregister(fe){const ze=this.scrollContainers.get(fe);ze&&(ze.unsubscribe(),this.scrollContainers.delete(fe))}scrolled(fe=20){return this._platform.isBrowser?new y.y(ze=>{this._globalSubscription||this._addGlobalListener();const Ie=fe>0?this._scrolled.pipe(B(fe)).subscribe(ze):this._scrolled.subscribe(ze);return this._scrolledCount++,()=>{Ie.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,v.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((fe,ze)=>this.deregister(ze)),this._scrolled.complete()}ancestorScrolled(fe,ze){const Ie=this.getAncestorScrollContainers(fe);return this.scrolled(ze).pipe((0,ee.h)(Ve=>!Ve||Ie.indexOf(Ve)>-1))}getAncestorScrollContainers(fe){const ze=[];return this.scrollContainers.forEach((Ie,Ve)=>{this._scrollableContainsElement(Ve,fe)&&ze.push(Ve)}),ze}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(fe,ze){let Ie=(0,n.fI)(ze),Ve=fe.getElementRef().nativeElement;do{if(Ie==Ve)return!0}while(Ie=Ie.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const fe=this._getWindow();return(0,E.R)(fe.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return Ae.\u0275fac=function(fe){return new(fe||Ae)(p.\u0275\u0275inject(p.NgZone),p.\u0275\u0275inject(he.t4),p.\u0275\u0275inject(ie.DOCUMENT,8))},Ae.\u0275prov=p.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),Et=(()=>{class Ae{constructor(fe,ze,Ie){this._platform=fe,this._change=new _.x,this._changeListener=Ve=>{this._change.next(Ve)},this._document=Ie,ze.runOutsideAngular(()=>{if(fe.isBrowser){const Ve=this._getWindow();Ve.addEventListener("resize",this._changeListener),Ve.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const fe=this._getWindow();fe.removeEventListener("resize",this._changeListener),fe.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const fe={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),fe}getViewportRect(){const fe=this.getViewportScrollPosition(),{width:ze,height:Ie}=this.getViewportSize();return{top:fe.top,left:fe.left,bottom:fe.top+Ie,right:fe.left+ze,height:Ie,width:ze}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const fe=this._document,ze=this._getWindow(),Ie=fe.documentElement,Ve=Ie.getBoundingClientRect();return{top:-Ve.top||fe.body.scrollTop||ze.scrollY||Ie.scrollTop||0,left:-Ve.left||fe.body.scrollLeft||ze.scrollX||Ie.scrollLeft||0}}change(fe=20){return fe>0?this._change.pipe(B(fe)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const fe=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:fe.innerWidth,height:fe.innerHeight}:{width:0,height:0}}}return Ae.\u0275fac=function(fe){return new(fe||Ae)(p.\u0275\u0275inject(he.t4),p.\u0275\u0275inject(p.NgZone),p.\u0275\u0275inject(ie.DOCUMENT,8))},Ae.\u0275prov=p.\u0275\u0275defineInjectable({token:Ae,factory:Ae.\u0275fac,providedIn:"root"}),Ae})(),It=(()=>{class Ae{}return Ae.\u0275fac=function(fe){return new(fe||Ae)},Ae.\u0275mod=p.\u0275\u0275defineNgModule({type:Ae}),Ae.\u0275inj=p.\u0275\u0275defineInjector({}),Ae})(),Ue=(()=>{class Ae{}return Ae.\u0275fac=function(fe){return new(fe||Ae)},Ae.\u0275mod=p.\u0275\u0275defineNgModule({type:Ae}),Ae.\u0275inj=p.\u0275\u0275defineInjector({imports:[Me.vT,It,Me.vT,It]}),Ae})()},9808:($,o,a)=>{"use strict";a.r(o),a.d(o,{APP_BASE_HREF:()=>j,AsyncPipe:()=>Di,CommonModule:()=>Ui,CurrencyPipe:()=>nr,DATE_PIPE_DEFAULT_TIMEZONE:()=>Si,DOCUMENT:()=>f,DatePipe:()=>Hr,DecimalPipe:()=>Ei,FormStyle:()=>G,FormatWidth:()=>V,HashLocationStrategy:()=>U,I18nPluralPipe:()=>$i,I18nSelectPipe:()=>Oi,JsonPipe:()=>qi,KeyValuePipe:()=>li,LOCATION_INITIALIZED:()=>d,Location:()=>Y,LocationStrategy:()=>F,LowerCasePipe:()=>Or,NgClass:()=>sn,NgComponentOutlet:()=>mn,NgForOf:()=>ei,NgForOfContext:()=>Rn,NgIf:()=>ti,NgIfContext:()=>In,NgLocaleLocalization:()=>Ft,NgLocalization:()=>Ze,NgPlural:()=>Mi,NgPluralCase:()=>Zi,NgStyle:()=>Bi,NgSwitch:()=>Ci,NgSwitchCase:()=>oi,NgSwitchDefault:()=>Hn,NgTemplateOutlet:()=>mr,NumberFormatStyle:()=>Me,NumberSymbol:()=>J,PathLocationStrategy:()=>Q,PercentPipe:()=>tr,PlatformLocation:()=>h,Plural:()=>qe,SlicePipe:()=>Ai,TitleCasePipe:()=>Xi,TranslationWidth:()=>Z,UpperCasePipe:()=>$r,VERSION:()=>ci,ViewportScroller:()=>Ln,WeekDay:()=>_e,XhrFactory:()=>wi,formatCurrency:()=>Ht,formatDate:()=>me,formatNumber:()=>An,formatPercent:()=>fn,getCurrencySymbol:()=>Ce,getLocaleCurrencyCode:()=>It,getLocaleCurrencyName:()=>st,getLocaleCurrencySymbol:()=>Ct,getLocaleDateFormat:()=>et,getLocaleDateTimeFormat:()=>Ge,getLocaleDayNames:()=>rt,getLocaleDayPeriods:()=>it,getLocaleDirection:()=>Ie,getLocaleEraNames:()=>Oe,getLocaleExtraDayPeriodRules:()=>fe,getLocaleExtraDayPeriods:()=>ze,getLocaleFirstDayOfWeek:()=>ft,getLocaleId:()=>De,getLocaleMonthNames:()=>yt,getLocaleNumberFormat:()=>wt,getLocaleNumberSymbol:()=>nt,getLocalePluralCase:()=>Ae,getLocaleTimeFormat:()=>lt,getLocaleWeekEndRange:()=>Et,getNumberOfCurrencyDigits:()=>Se,isPlatformBrowser:()=>zi,isPlatformServer:()=>yr,isPlatformWorkerApp:()=>Ti,isPlatformWorkerUi:()=>wn,registerLocaleData:()=>Zt,\u0275BrowserPlatformLocation:()=>_,\u0275DomAdapter:()=>c,\u0275NullViewportScroller:()=>Wi,\u0275PLATFORM_BROWSER_ID:()=>rr,\u0275PLATFORM_SERVER_ID:()=>Zn,\u0275PLATFORM_WORKER_APP_ID:()=>si,\u0275PLATFORM_WORKER_UI_ID:()=>or,\u0275getDOM:()=>b,\u0275parseCookieValue:()=>Qt,\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,je){v()?this._history.pushState(x,le,je):this.location.hash=je}replaceState(x,le,je){v()?this._history.replaceState(x,le,je):this.location.hash=je}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,te){if(0==R.length)return te;if(0==te.length)return R;let x=0;return R.endsWith("/")&&x++,te.startsWith("/")&&x++,2==x?R+te.substring(1):1==x?R+te:R+"/"+te}function M(R){const te=R.match(/#|\?|$/),x=te&&te.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 F=(()=>{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(0,n.inject)(Q)},providedIn:"root"}),R})();const j=new n.InjectionToken("appBaseHref");let Q=(()=>{class R extends F{constructor(x,le){var je,vt,Mt;super(),this._platformLocation=x,this._removeListenerFns=[],this._baseHref=null!==(Mt=null!==(je=null!=le?le:this._platformLocation.getBaseHrefFromDOM())&&void 0!==je?je:null===(vt=(0,n.inject)(f).location)||void 0===vt?void 0:vt.origin)&&void 0!==Mt?Mt:""}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),je=this._platformLocation.hash;return je&&x?`${le}${je}`:le}pushState(x,le,je,vt){const Mt=this.prepareExternalUrl(je+A(vt));this._platformLocation.pushState(x,le,Mt)}replaceState(x,le,je,vt){const Mt=this.prepareExternalUrl(je+A(vt));this._platformLocation.replaceState(x,le,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(x=0){var le,je;null===(je=(le=this._platformLocation).historyGo)||void 0===je||je.call(le,x)}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275inject(h),n.\u0275\u0275inject(j,8))},R.\u0275prov=n.\u0275\u0275defineInjectable({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),U=(()=>{class R extends F{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,je,vt){let Mt=this.prepareExternalUrl(je+A(vt));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.pushState(x,le,Mt)}replaceState(x,le,je,vt){let Mt=this.prepareExternalUrl(je+A(vt));0==Mt.length&&(Mt=this._platformLocation.pathname),this._platformLocation.replaceState(x,le,Mt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(x=0){var le,je;null===(je=(le=this._platformLocation).historyGo)||void 0===je||je.call(le,x)}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275inject(h),n.\u0275\u0275inject(j,8))},R.\u0275prov=n.\u0275\u0275defineInjectable({token:R,factory:R.\u0275fac}),R})(),Y=(()=>{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(ie(le)),this._locationStrategy.onPopState(je=>{this._subject.emit({url:this.path(!0),pop:!0,state:je.state,type:je.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 ee(R,te){return R&&te.startsWith(R)?te.substring(R.length):te}(this._baseHref,ie(x)))}prepareExternalUrl(x){return x&&"/"!==x[0]&&(x="/"+x),this._locationStrategy.prepareExternalUrl(x)}go(x,le="",je=null){this._locationStrategy.pushState(je,"",x,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(x+A(le)),je)}replaceState(x,le="",je=null){this._locationStrategy.replaceState(je,"",x,le),this._notifyUrlChangeListeners(this.prepareExternalUrl(x+A(le)),je)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(x=0){var le,je;null===(je=(le=this._locationStrategy).historyGo)||void 0===je||je.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 je=this._urlChangeListeners.indexOf(x);this._urlChangeListeners.splice(je,1),0===this._urlChangeListeners.length&&(null===(le=this._urlChangeSubscription)||void 0===le||le.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(x="",le){this._urlChangeListeners.forEach(je=>je(x,le))}subscribe(x,le,je){return this._subject.subscribe({next:x,error:le,complete:je})}}return R.normalizeQueryParams=A,R.joinWithSlash=E,R.stripTrailingSlash=M,R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275inject(F))},R.\u0275prov=n.\u0275\u0275defineInjectable({token:R,factory:function(){return function B(){return new Y((0,n.\u0275\u0275inject)(F))}()},providedIn:"root"}),R})();function ie(R){return R.replace(/\/index.html$/,"")}const he={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 Me=(()=>((Me=Me||{})[Me.Decimal=0]="Decimal",Me[Me.Percent=1]="Percent",Me[Me.Currency=2]="Currency",Me[Me.Scientific=3]="Scientific",Me))(),qe=(()=>((qe=qe||{})[qe.Zero=0]="Zero",qe[qe.One=1]="One",qe[qe.Two=2]="Two",qe[qe.Few=3]="Few",qe[qe.Many=4]="Many",qe[qe.Other=5]="Other",qe))(),G=(()=>((G=G||{})[G.Format=0]="Format",G[G.Standalone=1]="Standalone",G))(),Z=(()=>((Z=Z||{})[Z.Narrow=0]="Narrow",Z[Z.Abbreviated=1]="Abbreviated",Z[Z.Wide=2]="Wide",Z[Z.Short=3]="Short",Z))(),V=(()=>((V=V||{})[V.Short=0]="Short",V[V.Medium=1]="Medium",V[V.Long=2]="Long",V[V.Full=3]="Full",V))(),J=(()=>((J=J||{})[J.Decimal=0]="Decimal",J[J.Group=1]="Group",J[J.List=2]="List",J[J.PercentSign=3]="PercentSign",J[J.PlusSign=4]="PlusSign",J[J.MinusSign=5]="MinusSign",J[J.Exponential=6]="Exponential",J[J.SuperscriptingExponent=7]="SuperscriptingExponent",J[J.PerMille=8]="PerMille",J[J.Infinity=9]="Infinity",J[J.NaN=10]="NaN",J[J.TimeSeparator=11]="TimeSeparator",J[J.CurrencyDecimal=12]="CurrencyDecimal",J[J.CurrencyGroup=13]="CurrencyGroup",J))(),_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 De(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.LocaleId]}function it(R,te,x){const le=(0,n.\u0275findLocaleData)(R),vt=Ve([le[n.\u0275LocaleDataIndex.DayPeriodsFormat],le[n.\u0275LocaleDataIndex.DayPeriodsStandalone]],te);return Ve(vt,x)}function rt(R,te,x){const le=(0,n.\u0275findLocaleData)(R),vt=Ve([le[n.\u0275LocaleDataIndex.DaysFormat],le[n.\u0275LocaleDataIndex.DaysStandalone]],te);return Ve(vt,x)}function yt(R,te,x){const le=(0,n.\u0275findLocaleData)(R),vt=Ve([le[n.\u0275LocaleDataIndex.MonthsFormat],le[n.\u0275LocaleDataIndex.MonthsStandalone]],te);return Ve(vt,x)}function Oe(R,te){return Ve((0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.Eras],te)}function ft(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.FirstDayOfWeek]}function Et(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.WeekendRange]}function et(R,te){return Ve((0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.DateFormat],te)}function lt(R,te){return Ve((0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.TimeFormat],te)}function Ge(R,te){return Ve((0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.DateTimeFormat],te)}function nt(R,te){const x=(0,n.\u0275findLocaleData)(R),le=x[n.\u0275LocaleDataIndex.NumberSymbols][te];if(void 0===le){if(te===J.CurrencyDecimal)return x[n.\u0275LocaleDataIndex.NumberSymbols][J.Decimal];if(te===J.CurrencyGroup)return x[n.\u0275LocaleDataIndex.NumberSymbols][J.Group]}return le}function wt(R,te){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.NumberFormats][te]}function Ct(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.CurrencySymbol]||null}function st(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.CurrencyName]||null}function It(R){return(0,n.\u0275getLocaleCurrencyCode)(R)}const Ae=n.\u0275getLocalePluralCase;function Ne(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 fe(R){const te=(0,n.\u0275findLocaleData)(R);return Ne(te),(te[n.\u0275LocaleDataIndex.ExtraData][2]||[]).map(le=>"string"==typeof le?z(le):[z(le[0]),z(le[1])])}function ze(R,te,x){const le=(0,n.\u0275findLocaleData)(R);Ne(le);const vt=Ve([le[n.\u0275LocaleDataIndex.ExtraData][0],le[n.\u0275LocaleDataIndex.ExtraData][1]],te)||[];return Ve(vt,x)||[]}function Ie(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.Directionality]}function Ve(R,te){for(let x=te;x>-1;x--)if(void 0!==R[x])return R[x];throw new Error("Locale data API: locale data undefined")}function z(R){const[te,x]=R.split(":");return{hours:+te,minutes:+x}}function Ce(R,te,x="en"){const le=function Ue(R){return(0,n.\u0275findLocaleData)(R)[n.\u0275LocaleDataIndex.Currencies]}(x)[R]||he[R]||[],je=le[1];return"narrow"===te&&"string"==typeof je?je:le[0]||R}function Se(R){let te;const x=he[R];return x&&(te=x[2]),"number"==typeof te?te:2}const xe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,pe={},Fe=/((?:[^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 at=(()=>((at=at||{})[at.Short=0]="Short",at[at.ShortGMT=1]="ShortGMT",at[at.Long=2]="Long",at[at.Extended=3]="Extended",at))(),Te=(()=>((Te=Te||{})[Te.FullYear=0]="FullYear",Te[Te.Month=1]="Month",Te[Te.Date=2]="Date",Te[Te.Hours=3]="Hours",Te[Te.Minutes=4]="Minutes",Te[Te.Seconds=5]="Seconds",Te[Te.FractionalSeconds=6]="FractionalSeconds",Te[Te.Day=7]="Day",Te))(),H=(()=>((H=H||{})[H.DayPeriods=0]="DayPeriods",H[H.Days=1]="Days",H[H.Months=2]="Months",H[H.Eras=3]="Eras",H))();function me(R,te,x,le){let je=function tt(R){if($t(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[je,vt=1,Mt=1]=R.split("-").map(Ot=>+Ot);return ae(je,vt-1,Mt)}const x=parseFloat(R);if(!isNaN(R-x))return new Date(x);let le;if(le=R.match(xe))return function pt(R){const te=new Date(0);let x=0,le=0;const je=R[8]?te.setUTCFullYear:te.setFullYear,vt=R[8]?te.setUTCHours:te.setHours;R[9]&&(x=Number(R[9]+R[10]),le=Number(R[9]+R[11])),je.call(te,Number(R[1]),Number(R[2])-1,Number(R[3]));const Mt=Number(R[4]||0)-x,Ot=Number(R[5]||0)-le,dn=Number(R[6]||0),bn=Math.floor(1e3*parseFloat("0."+(R[7]||0)));return vt.call(te,Mt,Ot,dn,bn),te}(le)}const te=new Date(R);if(!$t(te))throw new Error(`Unable to convert "${R}" into a date`);return te}(R);te=we(x,te)||te;let Ot,Mt=[];for(;te;){if(Ot=Fe.exec(te),!Ot){Mt.push(te);break}{Mt=Mt.concat(Ot.slice(1));const Mn=Mt.pop();if(!Mn)break;te=Mn}}let dn=je.getTimezoneOffset();le&&(dn=ht(le,dn),je=function ve(R,te,x){const le=x?-1:1,je=R.getTimezoneOffset();return function se(R,te){return(R=new Date(R.getTime())).setMinutes(R.getMinutes()+te),R}(R,le*(ht(te,je)-je))}(je,le,!0));let bn="";return Mt.forEach(Mn=>{const hn=function ke(R){if(dt[R])return dt[R];let te;switch(R){case"G":case"GG":case"GGG":te=Bt(H.Eras,Z.Abbreviated);break;case"GGGG":te=Bt(H.Eras,Z.Wide);break;case"GGGGG":te=Bt(H.Eras,Z.Narrow);break;case"y":te=Pt(Te.FullYear,1,0,!1,!0);break;case"yy":te=Pt(Te.FullYear,2,0,!0,!0);break;case"yyy":te=Pt(Te.FullYear,3,0,!1,!0);break;case"yyyy":te=Pt(Te.FullYear,4,0,!1,!0);break;case"Y":te=ye(1);break;case"YY":te=ye(2,!0);break;case"YYY":te=ye(3);break;case"YYYY":te=ye(4);break;case"M":case"L":te=Pt(Te.Month,1,1);break;case"MM":case"LL":te=Pt(Te.Month,2,1);break;case"MMM":te=Bt(H.Months,Z.Abbreviated);break;case"MMMM":te=Bt(H.Months,Z.Wide);break;case"MMMMM":te=Bt(H.Months,Z.Narrow);break;case"LLL":te=Bt(H.Months,Z.Abbreviated,G.Standalone);break;case"LLLL":te=Bt(H.Months,Z.Wide,G.Standalone);break;case"LLLLL":te=Bt(H.Months,Z.Narrow,G.Standalone);break;case"w":te=L(1);break;case"ww":te=L(2);break;case"W":te=L(1,!0);break;case"d":te=Pt(Te.Date,1);break;case"dd":te=Pt(Te.Date,2);break;case"c":case"cc":te=Pt(Te.Day,1);break;case"ccc":te=Bt(H.Days,Z.Abbreviated,G.Standalone);break;case"cccc":te=Bt(H.Days,Z.Wide,G.Standalone);break;case"ccccc":te=Bt(H.Days,Z.Narrow,G.Standalone);break;case"cccccc":te=Bt(H.Days,Z.Short,G.Standalone);break;case"E":case"EE":case"EEE":te=Bt(H.Days,Z.Abbreviated);break;case"EEEE":te=Bt(H.Days,Z.Wide);break;case"EEEEE":te=Bt(H.Days,Z.Narrow);break;case"EEEEEE":te=Bt(H.Days,Z.Short);break;case"a":case"aa":case"aaa":te=Bt(H.DayPeriods,Z.Abbreviated);break;case"aaaa":te=Bt(H.DayPeriods,Z.Wide);break;case"aaaaa":te=Bt(H.DayPeriods,Z.Narrow);break;case"b":case"bb":case"bbb":te=Bt(H.DayPeriods,Z.Abbreviated,G.Standalone,!0);break;case"bbbb":te=Bt(H.DayPeriods,Z.Wide,G.Standalone,!0);break;case"bbbbb":te=Bt(H.DayPeriods,Z.Narrow,G.Standalone,!0);break;case"B":case"BB":case"BBB":te=Bt(H.DayPeriods,Z.Abbreviated,G.Format,!0);break;case"BBBB":te=Bt(H.DayPeriods,Z.Wide,G.Format,!0);break;case"BBBBB":te=Bt(H.DayPeriods,Z.Narrow,G.Format,!0);break;case"h":te=Pt(Te.Hours,1,-12);break;case"hh":te=Pt(Te.Hours,2,-12);break;case"H":te=Pt(Te.Hours,1);break;case"HH":te=Pt(Te.Hours,2);break;case"m":te=Pt(Te.Minutes,1);break;case"mm":te=Pt(Te.Minutes,2);break;case"s":te=Pt(Te.Seconds,1);break;case"ss":te=Pt(Te.Seconds,2);break;case"S":te=Pt(Te.FractionalSeconds,1);break;case"SS":te=Pt(Te.FractionalSeconds,2);break;case"SSS":te=Pt(Te.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":te=Be(at.Short);break;case"ZZZZZ":te=Be(at.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":te=Be(at.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":te=Be(at.Long);break;default:return null}return dt[R]=te,te}(Mn);bn+=hn?hn(je,x,dn):"''"===Mn?"'":Mn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),bn}function ae(R,te,x){const le=new Date(0);return le.setFullYear(R,te,x),le.setHours(0,0,0),le}function we(R,te){const x=De(R);if(pe[x]=pe[x]||{},pe[x][te])return pe[x][te];let le="";switch(te){case"shortDate":le=et(R,V.Short);break;case"mediumDate":le=et(R,V.Medium);break;case"longDate":le=et(R,V.Long);break;case"fullDate":le=et(R,V.Full);break;case"shortTime":le=lt(R,V.Short);break;case"mediumTime":le=lt(R,V.Medium);break;case"longTime":le=lt(R,V.Long);break;case"fullTime":le=lt(R,V.Full);break;case"short":const je=we(R,"shortTime"),vt=we(R,"shortDate");le=Ke(Ge(R,V.Short),[je,vt]);break;case"medium":const Mt=we(R,"mediumTime"),Ot=we(R,"mediumDate");le=Ke(Ge(R,V.Medium),[Mt,Ot]);break;case"long":const dn=we(R,"longTime"),bn=we(R,"longDate");le=Ke(Ge(R,V.Long),[dn,bn]);break;case"full":const Mn=we(R,"fullTime"),hn=we(R,"fullDate");le=Ke(Ge(R,V.Full),[Mn,hn])}return le&&(pe[x][te]=le),le}function Ke(R,te){return te&&(R=R.replace(/\{([^}]+)}/g,function(x,le){return null!=te&&le in te?te[le]:x})),R}function ct(R,te,x="-",le,je){let vt="";(R<0||je&&R<=0)&&(je?R=1-R:(R=-R,vt=x));let Mt=String(R);for(;Mt.length<te;)Mt="0"+Mt;return le&&(Mt=Mt.slice(Mt.length-te)),vt+Mt}function Pt(R,te,x=0,le=!1,je=!1){return function(vt,Mt){let Ot=function Kt(R,te){switch(R){case Te.FullYear:return te.getFullYear();case Te.Month:return te.getMonth();case Te.Date:return te.getDate();case Te.Hours:return te.getHours();case Te.Minutes:return te.getMinutes();case Te.Seconds:return te.getSeconds();case Te.FractionalSeconds:return te.getMilliseconds();case Te.Day:return te.getDay();default:throw new Error(`Unknown DateType value "${R}".`)}}(R,vt);if((x>0||Ot>-x)&&(Ot+=x),R===Te.Hours)0===Ot&&-12===x&&(Ot=12);else if(R===Te.FractionalSeconds)return function Lt(R,te){return ct(R,3).substring(0,te)}(Ot,te);const dn=nt(Mt,J.MinusSign);return ct(Ot,te,dn,le,je)}}function Bt(R,te,x=G.Format,le=!1){return function(je,vt){return function Ye(R,te,x,le,je,vt){switch(x){case H.Months:return yt(te,je,le)[R.getMonth()];case H.Days:return rt(te,je,le)[R.getDay()];case H.DayPeriods:const Mt=R.getHours(),Ot=R.getMinutes();if(vt){const bn=fe(te),Mn=ze(te,je,le),hn=bn.findIndex(Bn=>{if(Array.isArray(Bn)){const[Cn,xn]=Bn,vi=Mt>=Cn.hours&&Ot>=Cn.minutes,St=Mt<xn.hours||Mt===xn.hours&&Ot<xn.minutes;if(Cn.hours<xn.hours){if(vi&&St)return!0}else if(vi||St)return!0}else if(Bn.hours===Mt&&Bn.minutes===Ot)return!0;return!1});if(-1!==hn)return Mn[hn]}return it(te,je,le)[Mt<12?0:1];case H.Eras:return Oe(te,le)[R.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${x}`)}}(je,vt,R,te,x,le)}}function Be(R){return function(te,x,le){const je=-1*le,vt=nt(x,J.MinusSign),Mt=je>0?Math.floor(je/60):Math.ceil(je/60);switch(R){case at.Short:return(je>=0?"+":"")+ct(Mt,2,vt)+ct(Math.abs(je%60),2,vt);case at.ShortGMT:return"GMT"+(je>=0?"+":"")+ct(Mt,1,vt);case at.Long:return"GMT"+(je>=0?"+":"")+ct(Mt,2,vt)+":"+ct(Math.abs(je%60),2,vt);case at.Extended:return 0===le?"Z":(je>=0?"+":"")+ct(Mt,2,vt)+":"+ct(Math.abs(je%60),2,vt);default:throw new Error(`Unknown zone width "${R}"`)}}}function oe(R){return ae(R.getFullYear(),R.getMonth(),R.getDate()+(4-R.getDay()))}function L(R,te=!1){return function(x,le){let je;if(te){const vt=new Date(x.getFullYear(),x.getMonth(),1).getDay()-1,Mt=x.getDate();je=1+Math.floor((Mt+vt)/7)}else{const vt=oe(x),Mt=function re(R){const te=ae(R,0,1).getDay();return ae(R,0,1+(te<=4?4:11)-te)}(vt.getFullYear()),Ot=vt.getTime()-Mt.getTime();je=1+Math.round(Ot/6048e5)}return ct(je,R,nt(le,J.MinusSign))}}function ye(R,te=!1){return function(x,le){return ct(oe(x).getFullYear(),R,nt(le,J.MinusSign),te)}}const dt={};function ht(R,te){R=R.replace(/:/g,"");const x=Date.parse("Jan 01, 1970 00:00:00 "+R)/6e4;return isNaN(x)?te:x}function $t(R){return R instanceof Date&&!isNaN(R.valueOf())}const on=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function xt(R,te,x,le,je,vt,Mt=!1){let Ot="",dn=!1;if(isFinite(R)){let bn=function Re(R){let le,je,vt,Mt,Ot,te=Math.abs(R)+"",x=0;for((je=te.indexOf("."))>-1&&(te=te.replace(".","")),(vt=te.search(/e/i))>0?(je<0&&(je=vt),je+=+te.slice(vt+1),te=te.substring(0,vt)):je<0&&(je=te.length),vt=0;"0"===te.charAt(vt);vt++);if(vt===(Ot=te.length))le=[0],je=1;else{for(Ot--;"0"===te.charAt(Ot);)Ot--;for(je-=vt,le=[],Mt=0;vt<=Ot;vt++,Mt++)le[Mt]=Number(te.charAt(vt))}return je>22&&(le=le.splice(0,21),x=je-1,je=1),{digits:le,exponent:x,integerLen:je}}(R);Mt&&(bn=function ce(R){if(0===R.digits[0])return R;const te=R.digits.length-R.integerLen;return R.exponent?R.exponent+=2:(0===te?R.digits.push(0,0):1===te&&R.digits.push(0),R.integerLen+=2),R}(bn));let Mn=te.minInt,hn=te.minFrac,Bn=te.maxFrac;if(vt){const ai=vt.match(on);if(null===ai)throw new Error(`${vt} is not a valid digit info`);const Pr=ai[1],On=ai[3],Rr=ai[5];null!=Pr&&(Mn=Pe(Pr)),null!=On&&(hn=Pe(On)),null!=Rr?Bn=Pe(Rr):null!=On&&hn>Bn&&(Bn=hn)}!function X(R,te,x){if(te>x)throw new Error(`The minimum number of digits after fraction (${te}) is higher than the maximum (${x}).`);let le=R.digits,je=le.length-R.integerLen;const vt=Math.min(Math.max(te,je),x);let Mt=vt+R.integerLen,Ot=le[Mt];if(Mt>0){le.splice(Math.max(R.integerLen,Mt));for(let hn=Mt;hn<le.length;hn++)le[hn]=0}else{je=Math.max(0,je),R.integerLen=1,le.length=Math.max(1,Mt=vt+1),le[0]=0;for(let hn=1;hn<Mt;hn++)le[hn]=0}if(Ot>=5)if(Mt-1<0){for(let hn=0;hn>Mt;hn--)le.unshift(0),R.integerLen++;le.unshift(1),R.integerLen++}else le[Mt-1]++;for(;je<Math.max(0,vt);je++)le.push(0);let dn=0!==vt;const bn=te+R.integerLen,Mn=le.reduceRight(function(hn,Bn,Cn,xn){return xn[Cn]=(Bn+=hn)<10?Bn:Bn-10,dn&&(0===xn[Cn]&&Cn>=bn?xn.pop():dn=!1),Bn>=10?1:0},0);Mn&&(le.unshift(Mn),R.integerLen++)}(bn,hn,Bn);let Cn=bn.digits,xn=bn.integerLen;const vi=bn.exponent;let St=[];for(dn=Cn.every(ai=>!ai);xn<Mn;xn++)Cn.unshift(0);for(;xn<0;xn++)Cn.unshift(0);xn>0?St=Cn.splice(xn,Cn.length):(St=Cn,Cn=[0]);const ln=[];for(Cn.length>=te.lgSize&&ln.unshift(Cn.splice(-te.lgSize,Cn.length).join(""));Cn.length>te.gSize;)ln.unshift(Cn.splice(-te.gSize,Cn.length).join(""));Cn.length&&ln.unshift(Cn.join("")),Ot=ln.join(nt(x,le)),St.length&&(Ot+=nt(x,je)+St.join("")),vi&&(Ot+=nt(x,J.Exponential)+"+"+vi)}else Ot=nt(x,J.Infinity);return Ot=R<0&&!dn?te.negPre+Ot+te.negSuf:te.posPre+Ot+te.posSuf,Ot}function Ht(R,te,x,le,je){const Mt=_n(wt(te,Me.Currency),nt(te,J.MinusSign));return Mt.minFrac=Se(le),Mt.maxFrac=Mt.minFrac,xt(R,Mt,te,J.CurrencyGroup,J.CurrencyDecimal,je).replace("\xa4",x).replace("\xa4","").trim()}function fn(R,te,x){return xt(R,_n(wt(te,Me.Percent),nt(te,J.MinusSign)),te,J.Group,J.Decimal,x,!0).replace(new RegExp("%","g"),nt(te,J.PercentSign))}function An(R,te,x){return xt(R,_n(wt(te,Me.Decimal),nt(te,J.MinusSign)),te,J.Group,J.Decimal,x)}function _n(R,te="-"){const x={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},le=R.split(";"),je=le[0],vt=le[1],Mt=-1!==je.indexOf(".")?je.split("."):[je.substring(0,je.lastIndexOf("0")+1),je.substring(je.lastIndexOf("0")+1)],Ot=Mt[0],dn=Mt[1]||"";x.posPre=Ot.substring(0,Ot.indexOf("#"));for(let Mn=0;Mn<dn.length;Mn++){const hn=dn.charAt(Mn);"0"===hn?x.minFrac=x.maxFrac=Mn+1:"#"===hn?x.maxFrac=Mn+1:x.posSuf+=hn}const bn=Ot.split(",");if(x.gSize=bn[1]?bn[1].length:0,x.lgSize=bn[2]||bn[1]?(bn[2]||bn[1]).length:0,vt){const Mn=je.length-x.posPre.length-x.posSuf.length,hn=vt.indexOf("#");x.negPre=vt.substring(0,hn).replace(/'/g,""),x.negSuf=vt.slice(hn+Mn).replace(/'/g,"")}else x.negPre=te+x.posPre,x.negSuf=x.posSuf;return x}function Pe(R){const te=parseInt(R);if(isNaN(te))throw new Error("Invalid integer literal when parsing "+R);return te}let Ze=(()=>{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:(je=n.\u0275\u0275inject(n.LOCALE_ID),le=new Ft(je)),le;var je},providedIn:"root"}),R})();function Dt(R,te,x,le){let je=`=${R}`;if(te.indexOf(je)>-1||(je=x.getPluralCategory(R,le),te.indexOf(je)>-1))return je;if(te.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${R}"`)}let Ft=(()=>{class R extends Ze{constructor(x){super(),this.locale=x}getPluralCategory(x,le){switch(Ae(le||this.locale)(x)){case qe.Zero:return"zero";case qe.One:return"one";case qe.Two:return"two";case qe.Few:return"few";case qe.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 Zt(R,te,x){return(0,n.\u0275registerLocaleData)(R,te,x)}function Qt(R,te){te=encodeURIComponent(te);for(const x of R.split(";")){const le=x.indexOf("="),[je,vt]=-1==le?[x,""]:[x.slice(0,le),x.slice(le+1)];if(je.trim()===te)return decodeURIComponent(vt)}return null}let sn=(()=>{class R{constructor(x,le,je,vt){this._iterableDiffers=x,this._keyValueDiffers=le,this._ngEl=je,this._renderer=vt,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(je=>{le?this._renderer.addClass(this._ngEl.nativeElement,je):this._renderer.removeClass(this._ngEl.nativeElement,je)})}}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})(),mn=(()=>{class R{constructor(x){this._viewContainerRef=x,this.ngComponentOutlet=null}ngOnChanges(x){const{_viewContainerRef:le,ngComponentOutletNgModule:je,ngComponentOutletNgModuleFactory:vt}=this;if(le.clear(),this._componentRef=void 0,this.ngComponentOutlet){const Mt=this.ngComponentOutletInjector||le.parentInjector;(x.ngComponentOutletNgModule||x.ngComponentOutletNgModuleFactory)&&(this._moduleRef&&this._moduleRef.destroy(),this._moduleRef=je?(0,n.createNgModule)(je,vn(Mt)):vt?vt.create(vn(Mt)):void 0),this._componentRef=le.createComponent(this.ngComponentOutlet,{index:le.length,injector:Mt,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 vn(R){return R.get(n.NgModuleRef).injector}class Rn{constructor(te,x,le,je){this.$implicit=te,this.ngForOf=x,this.index=le,this.count=je}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 ei=(()=>{class R{constructor(x,le,je){this._viewContainer=x,this._template=le,this._differs=je,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((je,vt,Mt)=>{if(null==je.previousIndex)le.createEmbeddedView(this._template,new Rn(je.item,this._ngForOf,-1,-1),null===Mt?void 0:Mt);else if(null==Mt)le.remove(null===vt?void 0:vt);else if(null!==vt){const Ot=le.get(vt);le.move(Ot,Mt),Jt(Ot,je)}});for(let je=0,vt=le.length;je<vt;je++){const Ot=le.get(je).context;Ot.index=je,Ot.count=vt,Ot.ngForOf=this._ngForOf}x.forEachIdentityChange(je=>{Jt(le.get(je.currentIndex),je)})}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 Jt(R,te){R.context.$implicit=te.item}let ti=(()=>{class R{constructor(x,le){this._viewContainer=x,this._context=new In,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){Wn("ngIfThen",x),this._thenTemplateRef=x,this._thenViewRef=null,this._updateView()}set ngIfElse(x){Wn("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 In{constructor(){this.$implicit=null,this.ngIf=null}}function Wn(R,te){if(te&&!te.createEmbeddedView)throw new Error(`${R} must be a TemplateRef, but received '${(0,n.\u0275stringify)(te)}'.`)}class Li{constructor(te,x){this._viewContainerRef=te,this._templateRef=x,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(te){te&&!this._created?this.create():!te&&this._created&&this.destroy()}}let Ci=(()=>{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})(),oi=(()=>{class R{constructor(x,le,je){this.ngSwitch=je,je._addCase(),this._view=new Li(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(Ci,9))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),R})(),Hn=(()=>{class R{constructor(x,le,je){je._addDefault(new Li(x,le))}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(Ci,9))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngSwitchDefault",""]],standalone:!0}),R})(),Mi=(()=>{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=Dt(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(Ze))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0}),R})(),Zi=(()=>{class R{constructor(x,le,je,vt){this.value=x;const Mt=!isNaN(Number(x));vt.addCase(Mt?`=${x}`:x,new Li(je,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(Mi,1))},R.\u0275dir=n.\u0275\u0275defineDirective({type:R,selectors:[["","ngPluralCase",""]],standalone:!0}),R})(),Bi=(()=>{class R{constructor(x,le,je){this._ngEl=x,this._differs=le,this._renderer=je,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[je,vt]=x.split("."),Mt=-1===je.indexOf("-")?void 0:n.RendererStyleFlags2.DashCase;null!=le?this._renderer.setStyle(this._ngEl.nativeElement,je,vt?`${le}${vt}`:le,Mt):this._renderer.removeStyle(this._ngEl.nativeElement,je,Mt)}_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})(),mr=(()=>{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:je,ngTemplateOutletContext:vt,ngTemplateOutletInjector:Mt}=this;this._viewRef=le.createEmbeddedView(je,vt,Mt?{injector:Mt}: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 Qn(R,te){return new n.\u0275RuntimeError(2100,!1)}class gr{createSubscription(te,x){return te.subscribe({next:x,error:le=>{throw le}})}dispose(te){te.unsubscribe()}}class qr{createSubscription(te,x){return te.then(x,le=>{throw le})}dispose(te){}}const Vi=new qr,vr=new gr;let Di=(()=>{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 Vi;if((0,n.\u0275isSubscribable)(x))return vr;throw Qn()}_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})(),Or=(()=>{class R{transform(x){if(null==x)return null;if("string"!=typeof x)throw Qn();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 Ji=/(?:[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 Xi=(()=>{class R{transform(x){if(null==x)return null;if("string"!=typeof x)throw Qn();return x.replace(Ji,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})(),$r=(()=>{class R{transform(x){if(null==x)return null;if("string"!=typeof x)throw Qn();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 Si=new n.InjectionToken("DATE_PIPE_DEFAULT_TIMEZONE");let Hr=(()=>{class R{constructor(x,le){this.locale=x,this.defaultTimezone=le}transform(x,le="mediumDate",je,vt){var Mt;if(null==x||""===x||x!=x)return null;try{return me(x,le,vt||this.locale,null!==(Mt=null!=je?je:this.defaultTimezone)&&void 0!==Mt?Mt:void 0)}catch(Ot){throw Qn()}}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(n.LOCALE_ID,16),n.\u0275\u0275directiveInject(Si,24))},R.\u0275pipe=n.\u0275\u0275definePipe({name:"date",type:R,pure:!0,standalone:!0}),R})();const Ii=/#/g;let $i=(()=>{class R{constructor(x){this._localization=x}transform(x,le,je){if(null==x)return"";if("object"!=typeof le||null===le)throw Qn();return le[Dt(x,Object.keys(le),this._localization,je)].replace(Ii,x.toString())}}return R.\u0275fac=function(x){return new(x||R)(n.\u0275\u0275directiveInject(Ze,16))},R.\u0275pipe=n.\u0275\u0275definePipe({name:"i18nPlural",type:R,pure:!0,standalone:!0}),R})(),Oi=(()=>{class R{transform(x,le){if(null==x)return"";if("object"!=typeof le||"string"!=typeof x)throw Qn();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})(),qi=(()=>{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})(),li=(()=>{class R{constructor(x){this.differs=x,this.keyValues=[],this.compareFn=er}transform(x,le=er){if(!x||!(x instanceof Map)&&"object"!=typeof x)return null;this.differ||(this.differ=this.differs.find(x).create());const je=this.differ.diff(x),vt=le!==this.compareFn;return je&&(this.keyValues=[],je.forEachItem(Mt=>{this.keyValues.push(function Hi(R,te){return{key:R,value:te}}(Mt.key,Mt.currentValue))})),(je||vt)&&(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 er(R,te){const x=R.key,le=te.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 je=String(x),vt=String(le);return je==vt?0:je<vt?-1:1}let Ei=(()=>{class R{constructor(x){this._locale=x}transform(x,le,je){if(!ir(x))return null;je=je||this._locale;try{return An(gi(x),je,le)}catch(vt){throw Qn()}}}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})(),tr=(()=>{class R{constructor(x){this._locale=x}transform(x,le,je){if(!ir(x))return null;je=je||this._locale;try{return fn(gi(x),je,le)}catch(vt){throw Qn()}}}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})(),nr=(()=>{class R{constructor(x,le="USD"){this._locale=x,this._defaultCurrencyCode=le}transform(x,le=this._defaultCurrencyCode,je="symbol",vt,Mt){if(!ir(x))return null;Mt=Mt||this._locale,"boolean"==typeof je&&(je=je?"symbol":"code");let Ot=le||this._defaultCurrencyCode;"code"!==je&&(Ot="symbol"===je||"symbol-narrow"===je?Ce(Ot,"symbol"===je?"wide":"narrow",Mt):je);try{return Ht(gi(x),Mt,Ot,le,vt)}catch(dn){throw Qn()}}}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 ir(R){return!(null==R||""===R||R!=R)}function gi(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 Ai=(()=>{class R{transform(x,le,je){if(null==x)return null;if(!this.supports(x))throw Qn();return x.slice(le,je)}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})(),Ui=(()=>{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 rr="browser",Zn="server",si="browserWorkerApp",or="browserWorkerUi";function zi(R){return R===rr}function yr(R){return R===Zn}function Ti(R){return R===si}function wn(R){return R===or}const ci=new n.Version("14.1.1");let Ln=(()=>{class R{}return R.\u0275prov=(0,n.\u0275\u0275defineInjectable)({token:R,providedIn:"root",factory:()=>new jn((0,n.\u0275\u0275inject)(f),window)}),R})();class jn{constructor(te,x){this.document=te,this.window=x,this.offset=()=>[0,0]}setOffset(te){this.offset=Array.isArray(te)?()=>te:te}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(te){this.supportsScrolling()&&this.window.scrollTo(te[0],te[1])}scrollToAnchor(te){if(!this.supportsScrolling())return;const x=function Ar(R,te){const x=R.getElementById(te)||R.getElementsByName(te)[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 je=le.currentNode;for(;je;){const vt=je.shadowRoot;if(vt){const Mt=vt.getElementById(te)||vt.querySelector(`[name="${te}"]`);if(Mt)return Mt}je=le.nextNode()}}return null}(this.document,te);x&&(this.scrollToElement(x),x.focus())}setHistoryScrollRestoration(te){if(this.supportScrollRestoration()){const x=this.window.history;x&&x.scrollRestoration&&(x.scrollRestoration=te)}}scrollToElement(te){const x=te.getBoundingClientRect(),le=x.left+this.window.pageXOffset,je=x.top+this.window.pageYOffset,vt=this.offset();this.window.scrollTo(le-vt[0],je-vt[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const te=Dn(this.window.history)||Dn(Object.getPrototypeOf(this.window.history));return!(!te||!te.writable&&!te.set)}catch(te){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(te){return!1}}}function Dn(R){return Object.getOwnPropertyDescriptor(R,"scrollRestoration")}class Wi{setOffset(te){}getScrollPosition(){return[0,0]}scrollToPosition(te){}scrollToAnchor(te){}setHistoryScrollRestoration(te){}}class wi{}},6529:($,o,a)=>{"use strict";a.r(o),a.d(o,{HTTP_INTERCEPTORS:()=>Oe,HttpBackend:()=>_,HttpClient:()=>rt,HttpClientJsonpModule:()=>Fe,HttpClientModule:()=>pe,HttpClientXsrfModule:()=>xe,HttpContext:()=>B,HttpContextToken:()=>Y,HttpErrorResponse:()=>De,HttpEventType:()=>Z,HttpHandler:()=>d,HttpHeaderResponse:()=>J,HttpHeaders:()=>v,HttpParams:()=>U,HttpRequest:()=>G,HttpResponse:()=>_e,HttpResponseBase:()=>V,HttpUrlEncodingCodec:()=>E,HttpXhrBackend:()=>Ne,HttpXsrfTokenExtractor:()=>Ie,JsonpClientBackend:()=>st,JsonpInterceptor:()=>It,XhrFactory:()=>at,\u0275HttpInterceptingHandler:()=>Ce});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(H){this.normalizedNames=new Map,this.lazyUpdate=null,H?this.lazyInit="string"==typeof H?()=>{this.headers=new Map,H.split("\n").forEach(me=>{const ae=me.indexOf(":");if(ae>0){const we=me.slice(0,ae),Ke=we.toLowerCase(),ct=me.slice(ae+1).trim();this.maybeSetNormalizedName(we,Ke),this.headers.has(Ke)?this.headers.get(Ke).push(ct):this.headers.set(Ke,[ct])}})}:()=>{this.headers=new Map,Object.keys(H).forEach(me=>{let ae=H[me];const we=me.toLowerCase();"string"==typeof ae&&(ae=[ae]),ae.length>0&&(this.headers.set(we,ae),this.maybeSetNormalizedName(me,we))})}:this.headers=new Map}has(H){return this.init(),this.headers.has(H.toLowerCase())}get(H){this.init();const me=this.headers.get(H.toLowerCase());return me&&me.length>0?me[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(H){return this.init(),this.headers.get(H.toLowerCase())||null}append(H,me){return this.clone({name:H,value:me,op:"a"})}set(H,me){return this.clone({name:H,value:me,op:"s"})}delete(H,me){return this.clone({name:H,value:me,op:"d"})}maybeSetNormalizedName(H,me){this.normalizedNames.has(me)||this.normalizedNames.set(me,H)}init(){this.lazyInit&&(this.lazyInit instanceof v?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(H=>this.applyUpdate(H)),this.lazyUpdate=null))}copyFrom(H){H.init(),Array.from(H.headers.keys()).forEach(me=>{this.headers.set(me,H.headers.get(me)),this.normalizedNames.set(me,H.normalizedNames.get(me))})}clone(H){const me=new v;return me.lazyInit=this.lazyInit&&this.lazyInit instanceof v?this.lazyInit:this,me.lazyUpdate=(this.lazyUpdate||[]).concat([H]),me}applyUpdate(H){const me=H.name.toLowerCase();switch(H.op){case"a":case"s":let ae=H.value;if("string"==typeof ae&&(ae=[ae]),0===ae.length)return;this.maybeSetNormalizedName(H.name,me);const we=("a"===H.op?this.headers.get(me):void 0)||[];we.push(...ae),this.headers.set(me,we);break;case"d":const Ke=H.value;if(Ke){let ct=this.headers.get(me);if(!ct)return;ct=ct.filter(Lt=>-1===Ke.indexOf(Lt)),0===ct.length?(this.headers.delete(me),this.normalizedNames.delete(me)):this.headers.set(me,ct)}else this.headers.delete(me),this.normalizedNames.delete(me)}}forEach(H){this.init(),Array.from(this.normalizedNames.keys()).forEach(me=>H(this.normalizedNames.get(me),this.headers.get(me)))}}class E{encodeKey(H){return j(H)}encodeValue(H){return j(H)}decodeKey(H){return decodeURIComponent(H)}decodeValue(H){return decodeURIComponent(H)}}const A=/%(\d[a-f0-9])/gi,F={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function j(Te){return encodeURIComponent(Te).replace(A,(H,me)=>{var ae;return null!==(ae=F[me])&&void 0!==ae?ae:H})}function Q(Te){return`${Te}`}class U{constructor(H={}){if(this.updates=null,this.cloneFrom=null,this.encoder=H.encoder||new E,H.fromString){if(H.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function M(Te,H){const me=new Map;return Te.length>0&&Te.replace(/^\?/,"").split("&").forEach(we=>{const Ke=we.indexOf("="),[ct,Lt]=-1==Ke?[H.decodeKey(we),""]:[H.decodeKey(we.slice(0,Ke)),H.decodeValue(we.slice(Ke+1))],Pt=me.get(ct)||[];Pt.push(Lt),me.set(ct,Pt)}),me}(H.fromString,this.encoder)}else H.fromObject?(this.map=new Map,Object.keys(H.fromObject).forEach(me=>{const ae=H.fromObject[me],we=Array.isArray(ae)?ae.map(Q):[Q(ae)];this.map.set(me,we)})):this.map=null}has(H){return this.init(),this.map.has(H)}get(H){this.init();const me=this.map.get(H);return me?me[0]:null}getAll(H){return this.init(),this.map.get(H)||null}keys(){return this.init(),Array.from(this.map.keys())}append(H,me){return this.clone({param:H,value:me,op:"a"})}appendAll(H){const me=[];return Object.keys(H).forEach(ae=>{const we=H[ae];Array.isArray(we)?we.forEach(Ke=>{me.push({param:ae,value:Ke,op:"a"})}):me.push({param:ae,value:we,op:"a"})}),this.clone(me)}set(H,me){return this.clone({param:H,value:me,op:"s"})}delete(H,me){return this.clone({param:H,value:me,op:"d"})}toString(){return this.init(),this.keys().map(H=>{const me=this.encoder.encodeKey(H);return this.map.get(H).map(ae=>me+"="+this.encoder.encodeValue(ae)).join("&")}).filter(H=>""!==H).join("&")}clone(H){const me=new U({encoder:this.encoder});return me.cloneFrom=this.cloneFrom||this,me.updates=(this.updates||[]).concat(H),me}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(H=>this.map.set(H,this.cloneFrom.map.get(H))),this.updates.forEach(H=>{switch(H.op){case"a":case"s":const me=("a"===H.op?this.map.get(H.param):void 0)||[];me.push(Q(H.value)),this.map.set(H.param,me);break;case"d":if(void 0===H.value){this.map.delete(H.param);break}{let ae=this.map.get(H.param)||[];const we=ae.indexOf(Q(H.value));-1!==we&&ae.splice(we,1),ae.length>0?this.map.set(H.param,ae):this.map.delete(H.param)}}}),this.cloneFrom=this.updates=null)}}class Y{constructor(H){this.defaultValue=H}}class B{constructor(){this.map=new Map}set(H,me){return this.map.set(H,me),this}get(H){return this.map.has(H)||this.map.set(H,H.defaultValue()),this.map.get(H)}delete(H){return this.map.delete(H),this}has(H){return this.map.has(H)}keys(){return this.map.keys()}}function ie(Te){return"undefined"!=typeof ArrayBuffer&&Te instanceof ArrayBuffer}function he(Te){return"undefined"!=typeof Blob&&Te instanceof Blob}function Me(Te){return"undefined"!=typeof FormData&&Te instanceof FormData}class G{constructor(H,me,ae,we){let Ke;if(this.url=me,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=H.toUpperCase(),function ee(Te){switch(Te){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||we?(this.body=void 0!==ae?ae:null,Ke=we):Ke=ae,Ke&&(this.reportProgress=!!Ke.reportProgress,this.withCredentials=!!Ke.withCredentials,Ke.responseType&&(this.responseType=Ke.responseType),Ke.headers&&(this.headers=Ke.headers),Ke.context&&(this.context=Ke.context),Ke.params&&(this.params=Ke.params)),this.headers||(this.headers=new v),this.context||(this.context=new B),this.params){const ct=this.params.toString();if(0===ct.length)this.urlWithParams=me;else{const Lt=me.indexOf("?");this.urlWithParams=me+(-1===Lt?"?":Lt<me.length-1?"&":"")+ct}}else this.params=new U,this.urlWithParams=me}serializeBody(){return null===this.body?null:ie(this.body)||he(this.body)||Me(this.body)||function qe(Te){return"undefined"!=typeof URLSearchParams&&Te 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||Me(this.body)?null:he(this.body)?this.body.type||null:ie(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(H={}){var me;const ae=H.method||this.method,we=H.url||this.url,Ke=H.responseType||this.responseType,ct=void 0!==H.body?H.body:this.body,Lt=void 0!==H.withCredentials?H.withCredentials:this.withCredentials,Pt=void 0!==H.reportProgress?H.reportProgress:this.reportProgress;let Kt=H.headers||this.headers,Bt=H.params||this.params;const Ye=null!==(me=H.context)&&void 0!==me?me:this.context;return void 0!==H.setHeaders&&(Kt=Object.keys(H.setHeaders).reduce((Be,ge)=>Be.set(ge,H.setHeaders[ge]),Kt)),H.setParams&&(Bt=Object.keys(H.setParams).reduce((Be,ge)=>Be.set(ge,H.setParams[ge]),Bt)),new G(ae,we,ct,{params:Bt,headers:Kt,context:Ye,reportProgress:Pt,responseType:Ke,withCredentials:Lt})}}var Z=(()=>((Z=Z||{})[Z.Sent=0]="Sent",Z[Z.UploadProgress=1]="UploadProgress",Z[Z.ResponseHeader=2]="ResponseHeader",Z[Z.DownloadProgress=3]="DownloadProgress",Z[Z.Response=4]="Response",Z[Z.User=5]="User",Z))();class V{constructor(H,me=200,ae="OK"){this.headers=H.headers||new v,this.status=void 0!==H.status?H.status:me,this.statusText=H.statusText||ae,this.url=H.url||null,this.ok=this.status>=200&&this.status<300}}class J extends V{constructor(H={}){super(H),this.type=Z.ResponseHeader}clone(H={}){return new J({headers:H.headers||this.headers,status:void 0!==H.status?H.status:this.status,statusText:H.statusText||this.statusText,url:H.url||this.url||void 0})}}class _e extends V{constructor(H={}){super(H),this.type=Z.Response,this.body=void 0!==H.body?H.body:null}clone(H={}){return new _e({body:void 0!==H.body?H.body:this.body,headers:H.headers||this.headers,status:void 0!==H.status?H.status:this.status,statusText:H.statusText||this.statusText,url:H.url||this.url||void 0})}}class De extends V{constructor(H){super(H,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${H.url||"(unknown url)"}`:`Http failure response for ${H.url||"(unknown url)"}: ${H.status} ${H.statusText}`,this.error=H.error||null}}function it(Te,H){return{body:H,headers:Te.headers,context:Te.context,observe:Te.observe,params:Te.params,reportProgress:Te.reportProgress,responseType:Te.responseType,withCredentials:Te.withCredentials}}let rt=(()=>{class Te{constructor(me){this.handler=me}request(me,ae,we={}){let Ke;if(me instanceof G)Ke=me;else{let Pt,Kt;Pt=we.headers instanceof v?we.headers:new v(we.headers),we.params&&(Kt=we.params instanceof U?we.params:new U({fromObject:we.params})),Ke=new G(me,ae,void 0!==we.body?we.body:null,{headers:Pt,context:we.context,params:Kt,reportProgress:we.reportProgress,responseType:we.responseType||"json",withCredentials:we.withCredentials})}const ct=(0,b.of)(Ke).pipe(function f(Te,H){return(0,c.m)(H)?(0,r.z)(Te,H,1):(0,r.z)(Te,1)}(Pt=>this.handler.handle(Pt)));if(me instanceof G||"events"===we.observe)return ct;const Lt=ct.pipe((0,h.h)(Pt=>Pt instanceof _e));switch(we.observe||"body"){case"body":switch(Ke.responseType){case"arraybuffer":return Lt.pipe((0,m.U)(Pt=>{if(null!==Pt.body&&!(Pt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Pt.body}));case"blob":return Lt.pipe((0,m.U)(Pt=>{if(null!==Pt.body&&!(Pt.body instanceof Blob))throw new Error("Response is not a Blob.");return Pt.body}));case"text":return Lt.pipe((0,m.U)(Pt=>{if(null!==Pt.body&&"string"!=typeof Pt.body)throw new Error("Response is not a string.");return Pt.body}));default:return Lt.pipe((0,m.U)(Pt=>Pt.body))}case"response":return Lt;default:throw new Error(`Unreachable: unhandled observe type ${we.observe}}`)}}delete(me,ae={}){return this.request("DELETE",me,ae)}get(me,ae={}){return this.request("GET",me,ae)}head(me,ae={}){return this.request("HEAD",me,ae)}jsonp(me,ae){return this.request("JSONP",me,{params:(new U).append(ae,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(me,ae={}){return this.request("OPTIONS",me,ae)}patch(me,ae,we={}){return this.request("PATCH",me,it(we,ae))}post(me,ae,we={}){return this.request("POST",me,it(we,ae))}put(me,ae,we={}){return this.request("PUT",me,it(we,ae))}}return Te.\u0275fac=function(me){return new(me||Te)(p.\u0275\u0275inject(d))},Te.\u0275prov=p.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})();class yt{constructor(H,me){this.next=H,this.interceptor=me}handle(H){return this.interceptor.intercept(H,this.next)}}const Oe=new p.InjectionToken("HTTP_INTERCEPTORS");let et,ft=(()=>{class Te{intercept(me,ae){return ae.handle(me)}}return Te.\u0275fac=function(me){return new(me||Te)},Te.\u0275prov=p.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})(),Et=0;class Ct{}let st=(()=>{class Te{constructor(me,ae){this.callbackMap=me,this.document=ae,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+Et++}handle(me){if("JSONP"!==me.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==me.responseType)throw new Error("JSONP requests must use Json response type.");if(me.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new u.y(ae=>{const we=this.nextCallback(),Ke=me.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${we}$1`),ct=this.document.createElement("script");ct.src=Ke;let Lt=null,Pt=!1;this.callbackMap[we]=Be=>{delete this.callbackMap[we],Lt=Be,Pt=!0};const Kt=()=>{ct.parentNode&&ct.parentNode.removeChild(ct),delete this.callbackMap[we]};return ct.addEventListener("load",Be=>{this.resolvedPromise.then(()=>{Kt(),Pt?(ae.next(new _e({body:Lt,status:200,statusText:"OK",url:Ke})),ae.complete()):ae.error(new De({url:Ke,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),ct.addEventListener("error",Be=>{Kt(),ae.error(new De({error:Be,status:0,statusText:"JSONP Error",url:Ke}))}),this.document.body.appendChild(ct),ae.next({type:Z.Sent}),()=>{Pt||this.removeListeners(ct),Kt()}})}removeListeners(me){et||(et=this.document.implementation.createHTMLDocument()),et.adoptNode(me)}}return Te.\u0275fac=function(me){return new(me||Te)(p.\u0275\u0275inject(Ct),p.\u0275\u0275inject(n.DOCUMENT))},Te.\u0275prov=p.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})(),It=(()=>{class Te{constructor(me){this.jsonp=me}intercept(me,ae){return"JSONP"===me.method?this.jsonp.handle(me):ae.handle(me)}}return Te.\u0275fac=function(me){return new(me||Te)(p.\u0275\u0275inject(st))},Te.\u0275prov=p.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})();const Ue=/^\)\]\}',?\n/;let Ne=(()=>{class Te{constructor(me){this.xhrFactory=me}handle(me){if("JSONP"===me.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new u.y(ae=>{const we=this.xhrFactory.build();if(we.open(me.method,me.urlWithParams),me.withCredentials&&(we.withCredentials=!0),me.headers.forEach((ge,ue)=>we.setRequestHeader(ge,ue.join(","))),me.headers.has("Accept")||we.setRequestHeader("Accept","application/json, text/plain, */*"),!me.headers.has("Content-Type")){const ge=me.detectContentTypeHeader();null!==ge&&we.setRequestHeader("Content-Type",ge)}if(me.responseType){const ge=me.responseType.toLowerCase();we.responseType="json"!==ge?ge:"text"}const Ke=me.serializeBody();let ct=null;const Lt=()=>{if(null!==ct)return ct;const ge=we.statusText||"OK",ue=new v(we.getAllResponseHeaders()),re=function Ae(Te){return"responseURL"in Te&&Te.responseURL?Te.responseURL:/^X-Request-URL:/m.test(Te.getAllResponseHeaders())?Te.getResponseHeader("X-Request-URL"):null}(we)||me.url;return ct=new J({headers:ue,status:we.status,statusText:ge,url:re}),ct},Pt=()=>{let{headers:ge,status:ue,statusText:re,url:oe}=Lt(),L=null;204!==ue&&(L=void 0===we.response?we.responseText:we.response),0===ue&&(ue=L?200:0);let ye=ue>=200&&ue<300;if("json"===me.responseType&&"string"==typeof L){const dt=L;L=L.replace(Ue,"");try{L=""!==L?JSON.parse(L):null}catch(ke){L=dt,ye&&(ye=!1,L={error:ke,text:L})}}ye?(ae.next(new _e({body:L,headers:ge,status:ue,statusText:re,url:oe||void 0})),ae.complete()):ae.error(new De({error:L,headers:ge,status:ue,statusText:re,url:oe||void 0}))},Kt=ge=>{const{url:ue}=Lt(),re=new De({error:ge,status:we.status||0,statusText:we.statusText||"Unknown Error",url:ue||void 0});ae.error(re)};let Bt=!1;const Ye=ge=>{Bt||(ae.next(Lt()),Bt=!0);let ue={type:Z.DownloadProgress,loaded:ge.loaded};ge.lengthComputable&&(ue.total=ge.total),"text"===me.responseType&&!!we.responseText&&(ue.partialText=we.responseText),ae.next(ue)},Be=ge=>{let ue={type:Z.UploadProgress,loaded:ge.loaded};ge.lengthComputable&&(ue.total=ge.total),ae.next(ue)};return we.addEventListener("load",Pt),we.addEventListener("error",Kt),we.addEventListener("timeout",Kt),we.addEventListener("abort",Kt),me.reportProgress&&(we.addEventListener("progress",Ye),null!==Ke&&we.upload&&we.upload.addEventListener("progress",Be)),we.send(Ke),ae.next({type:Z.Sent}),()=>{we.removeEventListener("error",Kt),we.removeEventListener("abort",Kt),we.removeEventListener("load",Pt),we.removeEventListener("timeout",Kt),me.reportProgress&&(we.removeEventListener("progress",Ye),null!==Ke&&we.upload&&we.upload.removeEventListener("progress",Be)),we.readyState!==we.DONE&&we.abort()}})}}return Te.\u0275fac=function(me){return new(me||Te)(p.\u0275\u0275inject(n.XhrFactory))},Te.\u0275prov=p.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})();const fe=new p.InjectionToken("XSRF_COOKIE_NAME"),ze=new p.InjectionToken("XSRF_HEADER_NAME");class Ie{}let Ve=(()=>{class Te{constructor(me,ae,we){this.doc=me,this.platform=ae,this.cookieName=we,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const me=this.doc.cookie||"";return me!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,n.\u0275parseCookieValue)(me,this.cookieName),this.lastCookieString=me),this.lastToken}}return Te.\u0275fac=function(me){return new(me||Te)(p.\u0275\u0275inject(n.DOCUMENT),p.\u0275\u0275inject(p.PLATFORM_ID),p.\u0275\u0275inject(fe))},Te.\u0275prov=p.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})(),z=(()=>{class Te{constructor(me,ae){this.tokenService=me,this.headerName=ae}intercept(me,ae){const we=me.url.toLowerCase();if("GET"===me.method||"HEAD"===me.method||we.startsWith("http://")||we.startsWith("https://"))return ae.handle(me);const Ke=this.tokenService.getToken();return null!==Ke&&!me.headers.has(this.headerName)&&(me=me.clone({headers:me.headers.set(this.headerName,Ke)})),ae.handle(me)}}return Te.\u0275fac=function(me){return new(me||Te)(p.\u0275\u0275inject(Ie),p.\u0275\u0275inject(ze))},Te.\u0275prov=p.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})(),Ce=(()=>{class Te{constructor(me,ae){this.backend=me,this.injector=ae,this.chain=null}handle(me){if(null===this.chain){const ae=this.injector.get(Oe,[]);this.chain=ae.reduceRight((we,Ke)=>new yt(we,Ke),this.backend)}return this.chain.handle(me)}}return Te.\u0275fac=function(me){return new(me||Te)(p.\u0275\u0275inject(_),p.\u0275\u0275inject(p.Injector))},Te.\u0275prov=p.\u0275\u0275defineInjectable({token:Te,factory:Te.\u0275fac}),Te})();function Se(){return"object"==typeof window?window:{}}let xe=(()=>{class Te{static disable(){return{ngModule:Te,providers:[{provide:z,useClass:ft}]}}static withOptions(me={}){return{ngModule:Te,providers:[me.cookieName?{provide:fe,useValue:me.cookieName}:[],me.headerName?{provide:ze,useValue:me.headerName}:[]]}}}return Te.\u0275fac=function(me){return new(me||Te)},Te.\u0275mod=p.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=p.\u0275\u0275defineInjector({providers:[z,{provide:Oe,useExisting:z,multi:!0},{provide:Ie,useClass:Ve},{provide:fe,useValue:"XSRF-TOKEN"},{provide:ze,useValue:"X-XSRF-TOKEN"}]}),Te})(),pe=(()=>{class Te{}return Te.\u0275fac=function(me){return new(me||Te)},Te.\u0275mod=p.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=p.\u0275\u0275defineInjector({providers:[rt,{provide:d,useClass:Ce},Ne,{provide:_,useExisting:Ne}],imports:[xe.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),Te})(),Fe=(()=>{class Te{}return Te.\u0275fac=function(me){return new(me||Te)},Te.\u0275mod=p.\u0275\u0275defineNgModule({type:Te}),Te.\u0275inj=p.\u0275\u0275defineInjector({providers:[st,{provide:Ct,useFactory:Se},{provide:Oe,useClass:It,multi:!0}]}),Te})();const at=n.XhrFactory},5e3:($,o,a)=>{"use strict";a.r(o),a.d(o,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Sv,ANIMATION_MODULE_TYPE:()=>MD,APP_BOOTSTRAP_LISTENER:()=>Ng,APP_ID:()=>xg,APP_INITIALIZER:()=>Rg,ApplicationInitStatus:()=>ja,ApplicationModule:()=>gE,ApplicationRef:()=>$a,Attribute:()=>gd,COMPILER_OPTIONS:()=>jg,CUSTOM_ELEMENTS_SCHEMA:()=>mf,ChangeDetectionStrategy:()=>pe,ChangeDetectorRef:()=>lv,Compiler:()=>RD,CompilerFactory:()=>xD,Component:()=>gD,ComponentFactory:()=>oa,ComponentFactoryResolver:()=>gs,ComponentRef:()=>cf,ContentChild:()=>Ov,ContentChildren:()=>Iv,DEFAULT_CURRENCY_CODE:()=>OD,DebugElement:()=>Ns,DebugEventListener:()=>eE,DebugNode:()=>Gu,DefaultIterableDiffer:()=>pv,Directive:()=>Pg,ENVIRONMENT_INITIALIZER:()=>dl,ElementRef:()=>vs,EmbeddedViewRef:()=>qD,EnvironmentInjector:()=>so,ErrorHandler:()=>ys,EventEmitter:()=>Mr,Host:()=>wd,HostBinding:()=>bD,HostListener:()=>CD,INJECTOR:()=>fl,Inject:()=>Zs,InjectFlags:()=>Ie,Injectable:()=>z_,InjectionToken:()=>Pn,Injector:()=>Qr,Input:()=>yD,IterableDiffers:()=>Ju,KeyValueDiffers:()=>Xu,LOCALE_ID:()=>Ba,MissingTranslationStrategy:()=>Sr,ModuleWithComponentFactories:()=>Lg,NO_ERRORS_SCHEMA:()=>gf,NgModule:()=>DD,NgModuleFactory:()=>_m,NgModuleRef:()=>Zo,NgProbeToken:()=>HD,NgZone:()=>Ni,Optional:()=>us,Output:()=>_D,PACKAGE_ROOT_URL:()=>wD,PLATFORM_ID:()=>TD,PLATFORM_INITIALIZER:()=>kg,Pipe:()=>vD,PlatformRef:()=>Wu,Query:()=>os,QueryList:()=>xa,ReflectiveInjector:()=>Ro,ReflectiveKey:()=>Lr,Renderer2:()=>Ly,RendererFactory2:()=>df,RendererStyleFlags2:()=>Dr,ResolvedReflectiveFactory:()=>uh,Sanitizer:()=>ff,SecurityContext:()=>Yn,Self:()=>Js,SimpleChange:()=>er,SkipSelf:()=>To,TRANSLATIONS:()=>AD,TRANSLATIONS_FORMAT:()=>PD,TemplateRef:()=>xs,Testability:()=>$D,TestabilityRegistry:()=>Gg,Type:()=>Gs,VERSION:()=>pf,Version:()=>hf,ViewChild:()=>Pv,ViewChildren:()=>Av,ViewContainerRef:()=>ka,ViewEncapsulation:()=>Te,ViewRef:()=>uv,asNativeElements:()=>tE,assertPlatform:()=>qg,createComponent:()=>IE,createEnvironmentInjector:()=>Eu,createNgModule:()=>bm,createNgModuleRef:()=>IC,createPlatform:()=>Zg,createPlatformFactory:()=>Xg,defineInjectable:()=>Ge,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:()=>Kg,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>Uu,\u0275APP_ID_RANDOM_PROVIDER:()=>ED,\u0275ChangeDetectorStatus:()=>Fe,\u0275ComponentFactory:()=>oa,\u0275Console:()=>SD,\u0275DEFAULT_LOCALE_ID:()=>fo,\u0275INJECTOR_SCOPE:()=>ml,\u0275LContext:()=>Ef,\u0275LifecycleHooksFeature:()=>Kh,\u0275LocaleDataIndex:()=>Xt,\u0275NG_COMP_DEF:()=>ct,\u0275NG_DIR_DEF:()=>Lt,\u0275NG_ELEMENT_ID:()=>Ye,\u0275NG_INJ_DEF:()=>Ne,\u0275NG_MOD_DEF:()=>Kt,\u0275NG_PIPE_DEF:()=>Pt,\u0275NG_PROV_DEF:()=>Ae,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>sa,\u0275NO_CHANGE:()=>an,\u0275NgModuleFactory:()=>Ra,\u0275NoopNgZone:()=>Ug,\u0275ReflectionCapabilities:()=>Dd,\u0275Render3ComponentFactory:()=>Lo,\u0275Render3ComponentRef:()=>Gh,\u0275Render3NgModuleRef:()=>Du,\u0275RuntimeError:()=>M,\u0275TESTABILITY:()=>zg,\u0275TESTABILITY_GETTER:()=>Wg,\u0275ViewRef:()=>No,\u0275_sanitizeHtml:()=>Wd,\u0275_sanitizeUrl:()=>hs,\u0275allowSanitizationBypassAndThrow:()=>So,\u0275bypassSanitizationTrustHtml:()=>ly,\u0275bypassSanitizationTrustResourceUrl:()=>fy,\u0275bypassSanitizationTrustScript:()=>uy,\u0275bypassSanitizationTrustStyle:()=>cy,\u0275bypassSanitizationTrustUrl:()=>dy,\u0275clearResolutionOfComponentResourcesQueue:()=>Ad,\u0275coerceToBoolean:()=>vE,\u0275compileComponent:()=>_g,\u0275compileDirective:()=>ju,\u0275compileNgModule:()=>hg,\u0275compileNgModuleDefs:()=>pg,\u0275compileNgModuleFactory:()=>Yg,\u0275compilePipe:()=>Og,\u0275createInjector:()=>Vl,\u0275defaultIterableDiffers:()=>hE,\u0275defaultKeyValueDiffers:()=>pE,\u0275detectChanges:()=>Jh,\u0275devModeEqual:()=>Zh,\u0275findLocaleData:()=>du,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>dg,\u0275getDebugNode:()=>qo,\u0275getDebugNodeR2:()=>oE,\u0275getDirectives:()=>Mm,\u0275getHostElement:()=>wu,\u0275getInjectableDef:()=>wt,\u0275getLContext:()=>hi,\u0275getLocaleCurrencyCode:()=>R0,\u0275getLocalePluralCase:()=>zp,\u0275getSanitizationBypassType:()=>Ld,\u0275getUnknownElementStrictMode:()=>Vy,\u0275getUnknownPropertyStrictMode:()=>Hy,\u0275global:()=>H,\u0275injectChangeDetectorRef:()=>cv,\u0275internalBootstrapApplication:()=>zD,\u0275isBoundToModule:()=>Qg,\u0275isDefaultChangeDetectionStrategy:()=>at,\u0275isListLikeIterable:()=>Ts,\u0275isObservable:()=>rp,\u0275isPromise:()=>Ac,\u0275isStandalone:()=>Xo,\u0275isSubscribable:()=>ip,\u0275ivyEnabled:()=>yE,\u0275makeDecorator:()=>Co,\u0275markDirty:()=>Xh,\u0275noSideEffects:()=>xe,\u0275patchComponentDefWithScope:()=>Nu,\u0275publishDefaultGlobalUtils:()=>kD,\u0275publishGlobalUtil:()=>Qi,\u0275registerLocaleData:()=>P0,\u0275resetCompiledComponents:()=>rD,\u0275resetJitOptions:()=>tD,\u0275resolveComponentResources:()=>Id,\u0275setAllowDuplicateNgModuleIdsForTest:()=>qv,\u0275setClassMetadata:()=>Im,\u0275setCurrentInjector:()=>io,\u0275setDocument:()=>ey,\u0275setLocaleId:()=>fu,\u0275setUnknownElementStrictMode:()=>By,\u0275setUnknownPropertyStrictMode:()=>$y,\u0275store:()=>ep,\u0275stringify:()=>h,\u0275transitiveScopesFor:()=>ho,\u0275unregisterLocaleData:()=>x0,\u0275unwrapSafeValue:()=>kr,\u0275whenRendered:()=>Jb,\u0275\u0275CopyDefinitionFeature:()=>Qh,\u0275\u0275FactoryTarget:()=>ni,\u0275\u0275InheritDefinitionFeature:()=>hc,\u0275\u0275NgOnChangesFeature:()=>Ei,\u0275\u0275ProvidersFeature:()=>ym,\u0275\u0275StandaloneFeature:()=>Cm,\u0275\u0275advance:()=>th,\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:()=>yp,\u0275\u0275classMapInterpolate1:()=>Mp,\u0275\u0275classMapInterpolate2:()=>Sp,\u0275\u0275classMapInterpolate3:()=>Ip,\u0275\u0275classMapInterpolate4:()=>Op,\u0275\u0275classMapInterpolate5:()=>Ap,\u0275\u0275classMapInterpolate6:()=>Pp,\u0275\u0275classMapInterpolate7:()=>Rp,\u0275\u0275classMapInterpolate8:()=>xp,\u0275\u0275classMapInterpolateV:()=>Fp,\u0275\u0275classProp:()=>Uc,\u0275\u0275contentQuery:()=>ig,\u0275\u0275defineComponent:()=>ge,\u0275\u0275defineDirective:()=>ht,\u0275\u0275defineInjectable:()=>lt,\u0275\u0275defineInjector:()=>nt,\u0275\u0275defineNgModule:()=>ye,\u0275\u0275definePipe:()=>se,\u0275\u0275directiveInject:()=>xo,\u0275\u0275disableBindings:()=>vi,\u0275\u0275element:()=>Ic,\u0275\u0275elementContainer:()=>Oc,\u0275\u0275elementContainerEnd:()=>Ta,\u0275\u0275elementContainerStart:()=>Ea,\u0275\u0275elementEnd:()=>Da,\u0275\u0275elementStart:()=>Ca,\u0275\u0275enableBindings:()=>xn,\u0275\u0275getCurrentView:()=>np,\u0275\u0275getInheritedFactory:()=>pd,\u0275\u0275hostProperty:()=>cu,\u0275\u0275i18n:()=>hm,\u0275\u0275i18nApply:()=>mm,\u0275\u0275i18nAttributes:()=>pm,\u0275\u0275i18nEnd:()=>gu,\u0275\u0275i18nExp:()=>vu,\u0275\u0275i18nPostprocess:()=>gm,\u0275\u0275i18nStart:()=>mu,\u0275\u0275inject:()=>qn,\u0275\u0275injectAttribute:()=>Ya,\u0275\u0275invalidFactory:()=>ph,\u0275\u0275invalidFactoryDep:()=>qa,\u0275\u0275listener:()=>Pc,\u0275\u0275loadQuery:()=>rg,\u0275\u0275namespaceHTML:()=>en,\u0275\u0275namespaceMathML:()=>un,\u0275\u0275namespaceSVG:()=>cn,\u0275\u0275nextContext:()=>lp,\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:()=>zm,\u0275\u0275pipeBind1:()=>Wm,\u0275\u0275pipeBind2:()=>Gm,\u0275\u0275pipeBind3:()=>Km,\u0275\u0275pipeBind4:()=>Ym,\u0275\u0275pipeBindV:()=>Qm,\u0275\u0275projection:()=>up,\u0275\u0275projectionDef:()=>cp,\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:()=>Om,\u0275\u0275pureFunction1:()=>Am,\u0275\u0275pureFunction2:()=>Pm,\u0275\u0275pureFunction3:()=>Rm,\u0275\u0275pureFunction4:()=>xm,\u0275\u0275pureFunction5:()=>Fm,\u0275\u0275pureFunction6:()=>km,\u0275\u0275pureFunction7:()=>Nm,\u0275\u0275pureFunction8:()=>Lm,\u0275\u0275pureFunctionV:()=>jm,\u0275\u0275queryRefresh:()=>tg,\u0275\u0275reference:()=>tp,\u0275\u0275registerNgModuleType:()=>tl,\u0275\u0275resetView:()=>Pr,\u0275\u0275resolveBody:()=>Af,\u0275\u0275resolveDocument:()=>Of,\u0275\u0275resolveWindow:()=>If,\u0275\u0275restoreView:()=>ai,\u0275\u0275sanitizeHtml:()=>Gd,\u0275\u0275sanitizeResourceUrl:()=>ul,\u0275\u0275sanitizeScript:()=>Yd,\u0275\u0275sanitizeStyle:()=>Kd,\u0275\u0275sanitizeUrl:()=>cl,\u0275\u0275sanitizeUrlOrResourceUrl:()=>Jd,\u0275\u0275setComponentScope:()=>ue,\u0275\u0275setNgModuleScope:()=>dt,\u0275\u0275styleMap:()=>fr,\u0275\u0275styleMapInterpolate1:()=>kp,\u0275\u0275styleMapInterpolate2:()=>Np,\u0275\u0275styleMapInterpolate3:()=>Lp,\u0275\u0275styleMapInterpolate4:()=>jp,\u0275\u0275styleMapInterpolate5:()=>Bp,\u0275\u0275styleMapInterpolate6:()=>Vp,\u0275\u0275styleMapInterpolate7:()=>$p,\u0275\u0275styleMapInterpolate8:()=>Hp,\u0275\u0275styleMapInterpolateV:()=>Up,\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:()=>qh,\u0275\u0275templateRefExtractor:()=>lg,\u0275\u0275text:()=>wp,\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:()=>ng});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 F(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():F(e)}function B(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 lt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const Ge=lt;function nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function wt(e){return Ct(e,Ae)||Ct(e,fe)}function Ct(e,t){return e.hasOwnProperty(t)?e[t]:null}function Ue(e){return e&&(e.hasOwnProperty(Ne)||e.hasOwnProperty(ze))?e[Ne]:null}const Ae=c({\u0275prov:c}),Ne=c({\u0275inj:c}),fe=c({ngInjectableDef:c}),ze=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 Ve;function Ce(e){const t=Ve;return Ve=e,t}function Le(e,t,i){const s=wt(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 B(h(e))}function xe(e){return{toString:e}.toString()}var pe=(()=>((pe=pe||{})[pe.OnPush=0]="OnPush",pe[pe.Default=1]="Default",pe))(),Fe=(()=>((Fe=Fe||{})[Fe.CheckOnce=0]="CheckOnce",Fe[Fe.Checked=1]="Checked",Fe[Fe.CheckAlways=2]="CheckAlways",Fe[Fe.Detached=3]="Detached",Fe[Fe.Errored=4]="Errored",Fe[Fe.Destroyed=5]="Destroyed",Fe))();function at(e){return null==e||e===pe.Default}var Te=(()=>{return(e=Te||(Te={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Te;var e})();const H=(()=>"undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof global&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self)(),we={},Ke=[],ct=c({\u0275cmp:c}),Lt=c({\u0275dir:c}),Pt=c({\u0275pipe:c}),Kt=c({\u0275mod:c}),Bt=c({\u0275fac:c}),Ye=c({__NG_ELEMENT_ID__:c});let Be=0;function ge(e){return xe(()=>{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===pe.OnPush,directiveDefs:null,pipeDefs:null,standalone:i,dependencies:i&&e.dependencies||null,getStandaloneInjector:null,selectors:e.selectors||Ke,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Te.Emulated,id:"c"+Be++,styles:e.styles||Ke,_: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(re).filter(oe):null,l.pipeDefs=g?()=>("function"==typeof g?g():g).map(pt).filter(oe):null,l})}function ue(e,t,i){const s=e.\u0275cmp;s.directiveDefs=()=>("function"==typeof t?t():t).map(re),s.pipeDefs=()=>("function"==typeof i?i():i).map(pt)}function re(e){return ve(e)||tt(e)}function oe(e){return null!==e}const L={};function ye(e){return xe(()=>{const t={type:e.type,bootstrap:e.bootstrap||Ke,declarations:e.declarations||Ke,imports:e.imports||Ke,exports:e.exports||Ke,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(L[e.id]=e.type),t})}function dt(e,t){return xe(()=>{const i=$t(e,!0);i.declarations=t.declarations||Ke,i.imports=t.imports||Ke,i.exports=t.exports||Ke})}function ke(e,t){if(null==e)return we;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 ht=ge;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 ve(e){return e[ct]||null}function tt(e){return e[Lt]||null}function pt(e){return e[Pt]||null}function $t(e,t){const i=e[Kt]||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 Li(e){return 0!=(8&e.flags)}function Ci(e){return 2==(2&e.flags)}function oi(e){return 1==(1&e.flags)}function Hn(e){return null!==e.template}function ji(e){return 0!=(256&e[2])}function li(e,t){return e.hasOwnProperty(Bt)?e[Bt]:null}class er{constructor(t,i,s){this.previousValue=t,this.currentValue=i,this.firstChange=s}isFirstChange(){return this.firstChange}}function Ei(){return tr}function tr(e){return e.type.prototype.ngOnChanges&&(e.setInput=ir),nr}function nr(){const e=Ai(this),t=null==e?void 0:e.current;if(t){const i=e.previous;if(i===we)e.previous=t;else for(let s in t)i[s]=t[s];e.current=null,this.ngOnChanges(t)}}function ir(e,t,i,s){const l=Ai(e)||function Ur(e,t){return e[gi]=t}(e,{previous:we,current:null}),g=l.current||(l.current={}),C=l.previous,w=this.declaredInputs[i],I=C[w];g[w]=new er(I&&I.currentValue,t,C===we),e[s]=t}Ei.ngInherit=!0;const gi="__ngSimpleChanges__";function Ai(e){return e[gi]||null}let Ui=null;const rr=e=>{Ui=e},Zn=function(e,t,i){null!=Ui&&Ui(e,t,i)};function wn(e){for(;Array.isArray(e);)e=e[0];return e}function jn(e,t){return wn(t[e])}function Dn(e,t){return wn(t[e.index])}function Wi(e,t){return e.data[t]}function wi(e,t){return e[t]}function R(e,t){const i=t[e];return In(i)?i:i[0]}function te(e){return 4==(4&e[2])}function x(e){return 64==(64&e[2])}function je(e,t){return null==t?null:e[t]}function vt(e){e[18]=0}function Mt(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 Ot={lFrame:P(null),bindingsEnabled:!0};function Cn(){return Ot.bindingsEnabled}function xn(){Ot.bindingsEnabled=!0}function vi(){Ot.bindingsEnabled=!1}function St(){return Ot.lFrame.lView}function ln(){return Ot.lFrame.tView}function ai(e){return Ot.lFrame.contextLView=e,e[8]}function Pr(e){return Ot.lFrame.contextLView=null,e}function On(){let e=Rr();for(;null!==e&&64===e.type;)e=e.parent;return e}function Rr(){return Ot.lFrame.currentTNode}function k(){const e=Ot.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function O(e,t){const i=Ot.lFrame;i.currentTNode=e,i.isParent=t}function S(){return Ot.lFrame.isParent}function ne(){Ot.lFrame.isParent=!1}function Vn(){const e=Ot.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function ui(){return Ot.lFrame.bindingIndex}function Ls(e){return Ot.lFrame.bindingIndex=e}function zr(){return Ot.lFrame.bindingIndex++}function Gi(e){const t=Ot.lFrame,i=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,i}function js(e){Ot.lFrame.inI18n=e}function Bs(e,t){const i=Ot.lFrame;i.bindingIndex=i.bindingRootIndex=e,eo(t)}function eo(e){Ot.lFrame.currentDirectiveIndex=e}function ts(e){const t=Ot.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Vs(){return Ot.lFrame.currentQueryIndex}function ns(e){Ot.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=Ot.lFrame=T();return s.currentTNode=t,s.lView=e,!0}function D(e){const t=T(),i=e[1];Ot.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=Ot.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=Ot.lFrame;return Ot.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const be=K;function We(){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 bt(){return Ot.lFrame.selectedIndex}function Nt(e){Ot.lFrame.selectedIndex=e}function kt(){const e=Ot.lFrame;return Wi(e.tView,e.selectedIndex)}function cn(){Ot.lFrame.currentNamespace="svg"}function un(){Ot.lFrame.currentNamespace="math"}function en(){!function rn(){Ot.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:q}=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!=q&&(e.destroyHooks||(e.destroyHooks=[])).push(i,q)}}function Jn(e,t,i){ar(e,t,3,i)}function $n(e,t,i,s){(3&e[2])===i&&ar(e,t,i,s)}function sr(e,t){let i=e[2];(3&i)===t&&(i&=2047,i+=1,e[2]=i)}function ar(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)&&(di(e,i,t,I),e[18]=(4294901760&e[18])+I+2),I++}function di(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,Zn(4,w,g);try{g.call(w)}finally{Zn(5,w,g)}}}else{Zn(4,w,g);try{g.call(w)}finally{Zn(5,w,g)}}}class _r{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];kn(g)?e.setProperty(t,g,C):e.setAttribute(t,g,C),s++}}return s}function pn(e){return 3===e||4===e||6===e}function kn(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||fi(e,i,l,null,-1===i||2===i?t[++s]:null)}}return e}function fi(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 cr(e){return-1!==e}function Tn(e){return 32767&e}function Gr(e,t){let i=function Hs(e){return e>>16}(e),s=t;for(;i>0;)s=s[15],i--;return s}let Xn=!0;function Ki(e){const t=Xn;return Xn=e,t}let bv=0;const br={};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(cr(l)){const C=Tn(l),w=Gr(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 Cv(e,t,i){let s;"string"==typeof i?s=i.charCodeAt(0)||0:i.hasOwnProperty(Ye)&&(s=i[Ye]),null==s&&(s=i[Ye]=bv++);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;B()}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=Ce(void 0);try{return l?l.get(t,s,i&Ie.Optional):Le(t,s,i&Ie.Optional)}finally{Ce(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 Mv(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,br);if(w!==br)return w;let I=g.parent;if(!I){const N=C[21];if(N){const q=N.get(i,br,s);if(q!==br)return q}I=md(C),C=C[15]}g=I}return l}(e,t,i,s,br);if(C!==br)return C}const g=dd(e,t,i,s,br);if(g!==br)return g}return cd(t,i,s,l)}function dd(e,t,i,s,l){const g=function Tv(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ye)?e[Ye]:void 0;return"number"==typeof t?t>=0?255&t:wv: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;B()}finally{be()}}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=Gr(I,t)):w=-1);-1!==w;){const q=t[1];if(fd(g,w,q.data)){const Ee=Ev(w,t,i,C,s,N);if(Ee!==br)return Ee}I=t[w+8],-1!==I&&hd(s,t[1].data[w+8]===N)&&fd(g,w,t)?(C=q,w=Tn(I),t=Gr(I,t)):w=-1}}return l}function Ev(e,t,i,s,l,g){const C=t[1],w=C.data[e+8],q=Ws(w,C,i,null==s?Ci(w)&&Xn:s!=C&&0!=(3&w.type),l&Ie.Host&&g===w);return null!==q?rs(t,C,q,w):br}function Ws(e,t,i,s,l){const g=e.providerIndexes,C=t.data,w=1048575&g,I=e.directiveStart,q=g>>20,Xe=l?w+q:e.directiveEnd;for(let ot=s?w:w+q;ot<Xe;ot++){const Tt=C[ot];if(ot<I&&i===Tt||ot>=I&&Tt.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 Pi(e){return e instanceof _r}(l)){const C=l;C.resolving&&function Q(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=Ki(C.canSeeViewProviders);C.resolving=!0;const I=C.injectImpl?Ce(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=tr(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&&Ce(I),Ki(w),C.resolving=!1,be()}}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 wv(){return new vo(On(),St())}function pd(e){return xe(()=>{const t=e.prototype.constructor,i=t[Bt]||Ka(t),s=Object.prototype;let l=Object.getPrototypeOf(e.prototype).constructor;for(;l&&l!==s;){const g=l[Bt]||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()}:li(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 Dv(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(pn(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}(On(),e)}const yo="__annotations__",_o="__parameters__",bo="__prop__metadata__";function Co(e,t,i,s,l){return xe(()=>{const g=Qa(t);function C(...w){if(this instanceof C)return g.call(this,...w),this;const I=new C(...w);return function(q){return l&&l(q,...w),(q.hasOwnProperty(yo)?q[yo]:Object.defineProperty(q,yo,{value:[]})[yo]).push(I),s&&s(q),q}}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 xe(()=>{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,q){const Ee=I.hasOwnProperty(_o)?I[_o]:Object.defineProperty(I,_o,{value:[]})[_o];for(;Ee.length<=q;)Ee.push(null);return(Ee[q]=Ee[q]||[]).push(C),I}}return i&&(l.prototype=Object.create(i.prototype)),l.prototype.ngMetadataName=e,l.annotationCls=l,l})}function Kr(e,t,i,s){return xe(()=>{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,q){const Ee=N.constructor,Xe=Ee.hasOwnProperty(bo)?Ee[bo]:Object.defineProperty(Ee,bo,{value:{}})[bo];Xe[q]=Xe.hasOwnProperty(q)&&Xe[q]||[],Xe[q].unshift(w),s&&s(N,q,...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=lt({token:this,providedIn:i.providedIn||"root",factory:i.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Sv=new Pn("AnalyzeForEntryComponents");class os{}const Iv=Kr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),os),Ov=Kr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),os),Av=Kr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),os),Pv=Kr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),os);var ni=(()=>((ni=ni||{})[ni.Directive=0]="Directive",ni[ni.Component=1]="Component",ni[ni.Injectable=2]="Injectable",ni[ni.Pipe=3]="Pipe",ni[ni.NgModule=4]="NgModule",ni))();function ii(e){const t=H.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 xi(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)),xi(s,t)):t!==e&&t.push(s)}return t}function Fr(e,t){e.forEach(i=>Array.isArray(i)?Fr(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 Fi(e,t,i){let s=Eo(e,t);return s>=0?e[1|s]=i:(s=~s,function Fv(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 kv=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\).*)\)/,Nv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Lv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,jv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{[^}]*super\(\.\.\.arguments\)/;class Dd{constructor(t){this._reflect=t||H.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 Bv(e){return kv.test(e)||jv.test(e)||Nv.test(e)&&!Lv.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(q=>q&&q.type),N=w.map(q=>q&&Ja(q.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 Yr={},Xa="__NG_DI_FLAG__",Qs="ngTempTokenPath",$v=/\n/gm,Ed="__source";let ls;function io(e){const t=ls;return ls=e,t}function Uv(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 qn(e,t=Ie.Default){return(function z(){return Ve}()||Uv)(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)),qn(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=zv(w);"number"==typeof I?-1===I?l=w.token:g|=I:l=w}t.push(qn(l,g))}else t.push(qn(s))}return t}function cs(e,t){return e[Xa]=t,e.prototype[Xa]=t,e}function zv(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 Kv(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(Zv))}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,Xe)=>{I.push(""),C.push(s(Ee).then(ot=>{I[N+Xe]=ot,w.splice(w.indexOf(Ee),1),0==w.length&&(l.styleUrls=void 0)}))});const q=Promise.all(C).then(()=>function Jv(e){fs.delete(e)}(g));t.push(q)}),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 Zv(e){return"string"==typeof e?e:e.text()}const qs=new Map;let nl,ea,ta,Pd=!0;function tl(e,t){(function Xv(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 qv(e){Pd=!e}function ey(e){nl=e}function xd(){return void 0!==nl?nl:"undefined"!=typeof document?document:void 0}function il(){if(void 0===ea&&(ea=null,H.trustedTypes))try{ea=H.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,H.trustedTypes))try{ta=H.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 iy extends ro{getTypeName(){return"HTML"}}class ry extends ro{getTypeName(){return"Style"}}class oy extends ro{getTypeName(){return"Script"}}class sy extends ro{getTypeName(){return"URL"}}class ay extends ro{getTypeName(){return"ResourceURL"}}function kr(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 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 fy(e){return new ay(e)}function jd(e){const t=new py(e);return function my(){try{return!!(new window.DOMParser).parseFromString(Mo(""),"text/html")}catch(e){return!1}}()?new hy(t):t}class hy{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 py{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 gy=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,vy=/^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(gy)||e.match(vy)?e:"unsafe:"+e}function Bd(e){return(e=String(e)).split(",").map(t=>hs(t.trim())).join(", ")}function Cr(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=Cr("area,br,col,hr,img,wbr"),$d=Cr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Hd=Cr("rp,rt"),ol=ps(Vd,ps($d,Cr("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,Cr("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=Cr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),al=Cr("srcset"),Ud=ps(sl,al,Cr("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"),Cr("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")),yy=Cr("script,style,template");class _y{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,!yy.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 by=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Cy=/([^\#-~ |!])/g;function zd(e){return e.replace(/&/g,"&amp;").replace(by,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Cy,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 _y).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 Dy(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Yn=(()=>((Yn=Yn||{})[Yn.NONE=0]="NONE",Yn[Yn.HTML=1]="HTML",Yn[Yn.STYLE=2]="STYLE",Yn[Yn.SCRIPT=3]="SCRIPT",Yn[Yn.URL=4]="URL",Yn[Yn.RESOURCE_URL=5]="RESOURCE_URL",Yn))();function Gd(e){const t=ms();return t?Fd(t.sanitize(Yn.HTML,e)||""):So(e,"HTML")?Fd(kr(e)):Wd(xd(),F(e))}function Kd(e){const t=ms();return t?t.sanitize(Yn.STYLE,e)||"":So(e,"Style")?kr(e):F(e)}function cl(e){const t=ms();return t?t.sanitize(Yn.URL,e)||"":So(e,"URL")?kr(e):hs(F(e))}function ul(e){const t=ms();if(t)return Nd(t.sanitize(Yn.RESOURCE_URL,e)||"");if(So(e,"ResourceURL"))return Nd(kr(e));throw new M(904,!1)}function Yd(e){const t=ms();if(t)return kd(t.sanitize(Yn.SCRIPT,e)||"");if(So(e,"Script"))return kd(kr(e));throw new M(905,!1)}function Qd(e){return Mo(e[0])}function Zd(e){return function ny(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 Ey(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=Yr){if(i===Yr){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 Fr(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];Fr(l,g=>{t.push(g)})}}function hl(e,t,i,s){if(!(e=v(e)))return!1;let l=null,g=Ue(e);const C=!g&&ve(e);if(g||C){if(C&&!C.standalone)return!1;l=e}else{const I=e.ngModule;if(g=Ue(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{Fr(g.imports,q=>{hl(q,t,i,s)&&(N||(N=[]),N.push(q))})}finally{}void 0!==N&&nf(N,t)}if(!w){const N=li(l)||(()=>new l);t.push({provide:l,useFactory:N,deps:Ke},{provide:Xd,useValue:l,multi:!0},{provide:dl,useValue:()=>qn(l),multi:!0})}const I=g.providers;null==I||w||Fr(I,q=>{t.push(q)})}}return l!==e&&void 0!==e.providers}const Ty=c({provide:String,useValue:c});function pl(e){return null!==e&&"object"==typeof e&&Ty in e}function oo(e){return"function"==typeof e}const ml=new Pn("Set Injector scope."),ia={},My={};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,Ke,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=Ce(void 0);try{return t()}finally{io(i),Ce(s)}}get(t,i=Yr,s=Ie.Default){this.assertNotDestroyed();const l=io(this),g=Ce(void 0);try{if(!(s&Ie.SkipSelf)){let w=this.records.get(t);if(void 0===w){const I=function Py(e){return"function"==typeof e||"object"==typeof e&&e instanceof Pn}(t)&&wt(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===Yr?null:i)}catch(C){if("NullInjectorError"===C.name){if((C[Qs]=C[Qs]||[]).unshift(h(t)),l)throw C;return function Wv(e,t,i,s){const l=e[Qs];throw t[Ed]&&l.unshift(t[Ed]),e.message=function Gv(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($v,"\n ")}`}("\n"+e.message,l,i,s),e.ngTokenPath=l,e[Qs]=null,e}(C,t,"R3InjectorError",this.source)}throw C}finally{Ce(g),io(l)}}resolveInjectorInitializers(){const t=io(this),i=Ce(void 0);try{const s=this.get(dl.multi,Ke,Ie.Self);for(const l of s)l()}finally{io(t),Ce(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 Iy(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=My,i.value=i.factory()),"object"==typeof i.value&&i.value&&function Ay(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=wt(e),i=null!==t?t.factory:li(e);if(null!==i)return i;if(e instanceof Pn)throw new M(204,!1);if(e instanceof Function)return function Sy(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[fe]);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 li(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=()=>qn(v(e.useExisting));else{const l=v(e&&(e.useClass||e.provide));if(!function Oy(e){return!!e.deps}(e))return li(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 Ry(e){return!!e.\u0275providers}function yl(e,t){for(const i of e)Array.isArray(i)?yl(i,t):Ry(i)?yl(i.\u0275providers,t):t(i)}class cf{}class oa{}class Fy{resolveComponentFactory(t){throw function xy(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 Fy,e})();function ky(){return Oo(On(),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__=ky,e})();function Ny(e){return e instanceof vs?e.nativeElement:e}class df{}let Ly=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function jy(){const e=St(),i=R(On().index,e);return(In(i)?i:e)[11]}(),e})(),ff=(()=>{class e{}return e.\u0275prov=lt({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.1"),sa={},mf={name:"custom-elements"},gf={name:"no-errors-schema"};let _l=!1;function By(e){_l=e}function Vy(){return _l}let bl=!1;function $y(e){bl=e}function Hy(){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 Df(e){return Tl.get(e)||null}class Ef{constructor(t,i,s){this.lViewId=t,this.nodeIndex=i,this.native=s}get lView(){return Df(this.lViewId)}}function hi(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=Mf(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=Sf(s,i,!1)}else if(s=wf(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,pi(I.component,I)),g&&void 0===I.directives){I.directives=g;for(let N=0;N<g.length;N++)pi(g[N],I)}pi(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=wf(g,i);if(C>=0){const w=wn(g[C]),I=wl(g,C,w);pi(w,I),t=I;break}}}}return t||null}function wl(e,t,i){return new Ef(e[20],t,i)}function Tf(e){let i,t=_s(e);if(In(t)){const s=t,l=Mf(s,e);i=R(l,s);const g=wl(s,l,i[0]);g.component=e,pi(e,g),pi(g.native,g)}else i=R(t.nodeIndex,t.lView);return i}const Ml="__ngContext__";function pi(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?Df(t):t||null}function Sl(e){const t=_s(e);return t?In(t)?t:t.lView:null}function wf(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 Mf(e,t){const i=e[1].components;if(i)for(let s=0;s<i.length;s++){const l=i[s];if(R(l,e)[8]===t)return l}else if(R(22,e)[8]===t)return 22;return-1}function Sf(e,t,i){const s=t[1].data[e];let l=s.directiveStart;return 0==l?Ke:(!i&&2&s.flags&&l++,t.slice(l,s.directiveEnd))}const l_=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(H))();function If(e){return e.ownerDocument.defaultView}function Of(e){return e.ownerDocument}function Af(e){return e.ownerDocument.body}function Nr(e){return e instanceof Function?e():e}var Dr=(()=>((Dr=Dr||{})[Dr.Important=1]="Important",Dr[Dr.DashCase=2]="DashCase",Dr))();let Il;function Ol(e,t){return Il(e,t)}function bs(e){const t=e[3];return Wn(t)?t[3]:t}function xf(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 Ff(e[13])}function Pl(e){return Ff(e[4])}function Ff(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?Vf(t,i,w):ao(t,i,w,l||null,!0):1===e&&null!==i?ao(t,i,w,l||null,!0):2===e?Kf(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 kf(e,t,i){e.setValue(t,i)}function p_(e,t){return e.createComment(function Cf(e){return e.replace(Wy,t=>t.replace(Gy,"\u200b$1\u200b"))}(t))}function xl(e,t,i){return e.createElement(t,i)}function Nf(e,t){const i=e[9],s=i.indexOf(t),l=t[3];512&t[2]&&(t[2]&=-513,Mt(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&&Nf(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 Lf(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 _r)){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];Zn(4,w,I);try{I.call(w)}finally{Zn(5,w,I)}}else{Zn(4,l,g);try{g.call(l)}finally{Zn(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]&&Nf(i,t);const s=t[19];null!==s&&s.detachView(e)}!function t_(e){Tl.delete(e[20])}(t)}}function jf(e,t,i){return Bf(e,t.parent,i)}function Bf(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===Te.None||l===Te.Emulated)return null}return Dn(s,i)}function ao(e,t,i,s,l){e.insertBefore(t,i,s,l)}function Vf(e,t,i){e.appendChild(t,i)}function $f(e,t,i,s,l){null!==s?ao(e,t,i,s,l):Vf(e,t,i)}function aa(e,t){return e.parentNode(t)}function Hf(e,t,i){return zf(e,t,i)}function Uf(e,t,i){return 40&e.type?Dn(e,i):null}let Nl,zf=Uf;function Wf(e,t){zf=e,Nl=t}function la(e,t,i,s){const l=jf(e,s,t),g=t[11],w=Hf(s.parent||t[6],s,t);if(null!=l)if(Array.isArray(i))for(let I=0;I<i.length;I++)$f(g,l,i[I],w,!1);else $f(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=Gf(e,t);return null!==s?Array.isArray(s)?s[0]:ca(bs(e[16]),s):ca(e,t.next)}}return null}function Gf(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 Kf(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&&pi(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 q;for(;q=N();)Po(t,e,l,q,g);Po(t,e,l,w,g)}else 16&I?Yf(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 Yf(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 Qf(e,t,i){e.setAttribute(t,"style",i)}function Bl(e,t,i){""===i?e.removeAttribute(t,"class"):e.setAttribute(t,"class",i)}function Zf(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 Jf="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!==Zf(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 Xf(e){return 4===e.type&&e.value!==Jf}function O_(e,t,i){return t===(4!==e.type||i?e.value:Jf)}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(pn(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(ur(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(ur(s))return!1;C=!0}continue}const Ee=P_(8&s?"class":I,l,Xf(e),i);if(-1===Ee){if(ur(s))return!1;C=!0;continue}if(""!==N){let Xe;Xe=Ee>g?"":l[Ee+1].toLowerCase();const ot=8&s?Xe:null;if(ot&&-1!==Zf(ot,N,0)||2&s&&N!==Xe){if(ur(s))return!1;C=!0}}}}else{if(!C&&!ur(s)&&!ur(I))return!1;if(C&&ur(I))continue;C=!1,s=I|1&s}}return ur(s)||C}function ur(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 qf(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 eh(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&&!ur(C)&&(t+=eh(g,l),l=""),s=C,g=g||!ur(s);i++}return""!==l&&(t+=eh(g,l)),t}const an={};function th(e){nh(ln(),St(),bt()+e,!1)}function nh(e,t,i,s){if(!s)if(3==(3&t[2])){const g=e.preOrderCheckHooks;null!==g&&Jn(t,g,i)}else{const g=e.preOrderHooks;null!==g&&$n(t,g,0,i)}Nt(i)}const ih={\u0275\u0275defineInjectable:lt,\u0275\u0275defineInjector:nt,\u0275\u0275inject:qn,\u0275\u0275invalidFactoryDep:qa,resolveForwardRef:v};const V_=c({provide:String,useValue:c});function rh(e){return void 0!==e.useClass}function oh(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=ii().compileInjectable(ih,`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(rh(i)||oh(i))&&void 0!==i.deps&&(s.deps=Sd(i.deps)),rh(i)?s.useClass=i.useClass:function $_(e){return V_ in e}(i)?s.useValue=i.useValue:oh(i)?s.useFactory=i.useFactory:function H_(e){return void 0!==e.useExisting}(i)&&(s.useExisting=i.useExisting),s}(e,t))),i)}),e.hasOwnProperty(Bt)||Object.defineProperty(e,Bt,{get:()=>{if(null===s){const l=ii();s=l.compileFactory(ih,`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=sh(e,t,i,s);return l.resolveInjectorInitializers(),l}function sh(e,t=null,i=null,s,l=new Set){const g=[i||Ke,ef(e)];return s=s||("object"==typeof e?void 0:h(e)),new af(g,t||ra(),s||null,l)}let Qr=(()=>{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=Yr,e.NULL=new qd,e.\u0275prov=lt({token:e,providedIn:"any",factory:()=>qn(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 ah(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 Lr{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 lh.get(v(t))}static get numberOfKeys(){return lh.numberOfKeys}}class q_{constructor(){this._allKeys=new Map}get(t){if(t instanceof Lr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const i=new Lr(t,Lr.numberOfKeys);return this._allKeys.set(t,i),i}get numberOfKeys(){return this._allKeys.size}}const lh=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 ch{constructor(t,i,s){this.key=t,this.resolvedFactories=i,this.multiProvider=s,this.resolvedFactory=this.resolvedFactories[0]}}class uh{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=fh(s)}else e.useExisting?(t=s=>s,i=[ua.fromKey(Lr.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=>hh(e,s,i))}return fh(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,i=eb);return new uh(t,i)}function nb(e){return new ch(Lr.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 ch(s.key,s.resolvedFactories.slice(),s.multiProvider):s,t.set(s.key.id,g)}}return t}(dh(e,[]).map(nb),new Map);return Array.from(s.values())}function dh(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);dh(i,t)}}),t}function fh(e){const t=ds().parameters(e);if(!t)return[];if(t.some(i=>null==i))throw ah(e,t);return t.map(i=>hh(e,i,t))}function hh(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 ah(e,i)}function Ul(e,t,i){return new ua(Lr.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=Yr){return this._getByKey(Lr.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:Yr)}_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!==Yr)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=Lr.get(Qr),e})();function xo(e,t=Ie.Default){const i=St();return null===i?qn(e,t):ud(On(),i,v(e),t)}function ph(){throw new Error("invalid")}function da(e,t){return e<<17|t<<2}function dr(e){return e>>17&32767}function zl(e){return 2|e}function jr(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 wh(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,q){const Ee=t.blueprint.slice();return Ee[0]=l,Ee[2]=76|s,(null!==q||e&&1024&e[2])&&(Ee[2]|=1024),vt(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]=q,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 Ot.lFrame.inI18n}()&&(g.flags|=64);else if(64&g.type){g.type=i,g.value=s,g.attrs=l;const C=k();g.injectorIndex=null===C?-1:C.injectorIndex}return O(g,!0),g}function tc(e,t,i,s,l){const g=Rr(),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&&Mh(e,t,l,1,i),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&wh(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,We()}}function Es(e,t,i,s){const l=t[2];if(128!=(128&l)){D(t);try{vt(t),Ls(e.bindingStartIndex),null!==i&&Mh(e,t,i,2,s);const C=3==(3&l);if(C){const N=e.preOrderCheckHooks;null!==N&&Jn(t,N,null)}else{const N=e.preOrderHooks;null!==N&&$n(t,N,0,null),sr(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])&&Mt(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];x(s)&&Es(l,s,l.template,s[8])}}(t),null!==e.contentQueries&&wh(e,t),C){const N=e.contentCheckHooks;null!==N&&Jn(t,N)}else{const N=e.contentHooks;null!==N&&$n(t,N,1),sr(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&&Jn(t,N)}else{const N=e.viewHooks;null!==N&&$n(t,N,2),sr(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,Mt(t[3],-1))}finally{We()}}}function Cb(e,t,i,s){const l=t[10],C=te(t);try{!C&&l.begin&&l.begin(),C&&ma(e,t,s),Es(e,t,i,s)}finally{!C&&l.end&&l.end()}}function Mh(e,t,i,s,l){const g=bt(),C=2&s;try{Nt(-1),C&&t.length>22&&nh(e,t,22,!1),Zn(C?2:0,l),i(s,l)}finally{Nt(g),Zn(C?3:1,l)}}function Sh(e,t,i){if(Li(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){!Cn()||(function Ob(e,t,i,s){const l=i.directiveStart,g=i.directiveEnd;e.firstCreatePass||is(i,t),pi(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 q=rs(t,e,w,i);pi(q,t),null!==C&&kb(0,w-l,q,I,0,C),N&&(R(i.index,t)[8]=q)}}(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 Ot.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)&&Fh(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 Ih(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 q=22+s,Ee=q+l,Xe=function Db(e,t){const i=[];for(let s=0;s<t;s++)i.push(s<e?null:an);return i}(q,Ee),ot="function"==typeof N?N():N;return Xe[1]={type:e,blueprint:Xe,template:i,queries:null,viewQuery:w,declTNode:t,data:Xe.slice().fill(null,q),bindingStartIndex:q,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 Oh(e,t,i,s){const l=$h(t);null===i?l.push(s):(l.push(i),e.firstCreatePass&&Hh(e).push(s,l.length-1))}function Ah(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 Ph(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 q=l[N],Ee=q.inputs,Xe=null===g||Xf(t)?null:Nb(Ee,g);C.push(Xe),w=Ah(Ee,N,w),I=Ah(q.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 ki(e,t,i,s,l,g,C,w){const I=Dn(t,i);let q,N=t.inputs;!w&&null!=N&&(q=N[s])?(dc(e,i,q,s,l),Ci(t)&&Rh(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 Rh(e,t){const i=R(t,e);16&i[2]||(i[2]|=32)}function oc(e,t,i,s){let l=!1;if(Cn()){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];qf(i,C.selectors,!1)&&(l||(l=[]),zs(is(i,t),e,C.type),Hn(C)?(kh(e,i),l.unshift(C)):l.push(C))}return l}(e,t,i),C=null===s?null:{"":-1};if(null!==g){l=!0,Nh(i,e.data.length,g.length);for(let q=0;q<g.length;q++){const Ee=g[q];Ee.providersResolver&&Ee.providersResolver(Ee)}let w=!1,I=!1,N=ko(e,t,g.length,null);for(let q=0;q<g.length;q++){const Ee=g[q];i.mergedAttrs=_i(i.mergedAttrs,Ee.hostAttrs),Lh(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 Xe=Ee.type.prototype;!w&&(Xe.ngOnChanges||Xe.ngOnInit||Xe.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(i.index),w=!0),!I&&(Xe.ngOnChanges||Xe.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(i.index),I=!0),N++}Ph(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 xh(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 Fh(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function kh(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 Nh(e,t,i){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+i,e.providerIndexes=t}function Lh(e,t,i,s,l){e.data[s]=l;const g=l.factory||(l.factory=li(l.type)),C=new _r(g,Hn(l),xo);e.blueprint[s]=C,i[s]=C,xh(e,t,0,s,ko(e,i,l.hostVars,an),l)}function Fb(e,t,i){const s=Dn(t,e),l=Ih(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 Er(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?F(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++],q=C[I++],Ee=C[I++];null!==w?s.setInput(i,Ee,N,q):i[q]=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 jh(e,t,i,s){return new Array(e,!0,!1,t,null,0,s,i,null,null)}function Bb(e,t){const i=R(t,e);if(x(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=R(i[s],e);x(l)&&l[5]>0&&ac(l)}}function Vb(e,t){const i=R(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(ji(e)&&!t)return e;e=t}return null}function Bh(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 zh(t,l),l}finally{s.end&&s.end()}}function uc(e,t,i){ns(0),t(e,i)}const Ub=ec;function $h(e){return e[7]||(e[7]=[])}function Hh(e){return e.cleanup||(e.cleanup=[])}function Uh(e,t,i){return(null===e||Hn(e))&&(i=function ci(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(i[t.index])),i[11]}function zh(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 Br(e,t,i){const s=jn(t,e);kf(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=Gf(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}Lf(this._lView[1],this._lView)}onDestroy(t){Oh(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 Vh(e){Bh(e[8])}(this._view)}checkNoChanges(){}get context(){return null}}class fc extends gs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const i=ve(t);return new Lo(i,this.ngModule)}}function Wh(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 Wh(this.componentDef.inputs)}get outputs(){return Wh(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),q=this.componentDef.selectors[0][0]||"div",Ee=s?function Eb(e,t,i){return e.selectRootElement(t,i===Te.ShadowDom)}(N,s,this.componentDef.encapsulation):xl(w.createRenderer(null,this.componentDef),q,function Wb(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(q)),Xe=this.componentDef.onPush?288:272,ot=function Zb(e,t){return{components:[],scheduler:e||l_,clean:Ub,playerHandler:t||null,flags:0}}(),Tt=rc(0,null,null,1,0,null,null,null,null,null),Rt=pa(null,Tt,ot,Xe,null,null,w,N,I,C,null);let jt,Ut;D(Rt);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&&Qf(l,e,I.styles)));const q=s.createRenderer(e,t),Ee=pa(i,Ih(t),null,t.onPush?32:16,i[22],I,s,q,g||null,null,null);return C.firstCreatePass&&(zs(is(I,i),C,t.type),kh(C,I),Nh(I,i.length,1)),ga(i,Ee),i[22]=Ee}(Ee,this.componentDef,Rt,w,N);if(Ee)if(s)Gt(N,Ee,["ng-version",pf.full]);else{const{attrs:At,classes:Yt}=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(!ur(l))break;l=g}s++}return{attrs:t,classes:i}}(this.componentDef.selectors[0]);At&&Gt(N,Ee,At),Yt&&Yt.length>0&&Bl(N,Ee,Yt.join(" "))}if(Ut=Wi(Tt,22),void 0!==i){const At=Ut.projection=[];for(let Yt=0;Yt<this.ngContentSelectors.length;Yt++){const gn=i[Yt];At.push(null!=gn?Array.from(gn):null)}}jt=function Qb(e,t,i,s,l){const g=i[1],C=function Sb(e,t,i){const s=On();e.firstCreatePass&&(i.providersResolver&&i.providersResolver(i),Lh(e,s,t,ko(e,t,1,null),i),Ph(e,s));const l=rs(t,e,s.directiveStart,s);pi(l,t);const g=Dn(s,t);return g&&pi(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=On();t.contentQueries(1,C,I.directiveStart)}const w=On();return!g.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Nt(w.index),xh(i[1],w,0,w.directiveStart,w.directiveEnd,t),Fh(t,C)),C}(tn,this.componentDef,Rt,ot,[Kh]),ma(Tt,Rt,null)}finally{We()}return new Gh(this.componentType,jt,Oo(Ut,Rt),Rt,Ut)}}class Gh 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),Rh(g,this._tNode.index)}}get injector(){return new vo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function Kh(){const e=On();Un(St()[1],e)}function Jb(e){return xf(e).clean}function Yh(e){return Object.getPrototypeOf(e.prototype).constructor}function hc(e){let t=Yh(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 q=e.data;q.animation=(q.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===we?{}:e===Ke?[]: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 Qh(e){let i,t=Yh(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=H.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 Zh(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,Zh):!(i||!e||"object"!=typeof e&&"function"!=typeof e||s||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}function Tr(e,t,i){return e[t]=i}function ws(e,t){return e[t]}function mi(e,t,i){return!Object.is(e[t],i)&&(e[t]=i,!0)}function co(e,t,i,s){const l=mi(e,t,i);return mi(e,t+1,s)||l}function ba(e,t,i,s,l){const g=co(e,t,i,s);return mi(e,t+2,l)||g}function Yi(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 mi(l,zr(),t)&&(ln(),Er(kt(),l,e,t,i,s)),gc}function jo(e,t){let i=!1,s=ui();for(let g=1;g<t.length;g+=2)i=mi(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+=F(t[g])+t[g+1];return l}function Bo(e,t,i,s){return mi(e,zr(),i)?t+F(i)+s:an}function Vo(e,t,i,s,l,g){const w=co(e,ui(),i,l);return Gi(2),w?t+F(i)+s+F(l)+g:an}function $o(e,t,i,s,l,g,C,w){const N=ba(e,ui(),i,l,C);return Gi(3),N?t+F(i)+s+F(l)+g+F(C)+w:an}function Ho(e,t,i,s,l,g,C,w,I,N){const Ee=Yi(e,ui(),i,l,C,I);return Gi(4),Ee?t+F(i)+s+F(l)+g+F(C)+w+F(I)+N:an}function Uo(e,t,i,s,l,g,C,w,I,N,q,Ee){const Xe=ui();let ot=Yi(e,Xe,i,l,C,I);return ot=mi(e,Xe+4,q)||ot,Gi(5),ot?t+F(i)+s+F(l)+g+F(C)+w+F(I)+N+F(q)+Ee:an}function zo(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot){const Tt=ui();let Rt=Yi(e,Tt,i,l,C,I);return Rt=co(e,Tt+4,q,Xe)||Rt,Gi(6),Rt?t+F(i)+s+F(l)+g+F(C)+w+F(I)+N+F(q)+Ee+F(Xe)+ot:an}function Wo(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt){const jt=ui();let Ut=Yi(e,jt,i,l,C,I);return Ut=ba(e,jt+4,q,Xe,Tt)||Ut,Gi(7),Ut?t+F(i)+s+F(l)+g+F(C)+w+F(I)+N+F(q)+Ee+F(Xe)+ot+F(Tt)+Rt:an}function Go(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt,Ut){const tn=ui();let At=Yi(e,tn,i,l,C,I);return At=Yi(e,tn+4,q,Xe,Tt,jt)||At,Gi(8),At?t+F(i)+s+F(l)+g+F(C)+w+F(I)+N+F(q)+Ee+F(Xe)+ot+F(Tt)+Rt+F(jt)+Ut:an}function vc(e,t,i,s,l,g){const C=St(),w=Bo(C,t,i,s);return w!==an&&Er(kt(),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&&Er(kt(),I,e,N,C,w),yc}function _c(e,t,i,s,l,g,C,w,I,N){const q=St(),Ee=$o(q,t,i,s,l,g,C,w);return Ee!==an&&Er(kt(),q,e,Ee,I,N),_c}function bc(e,t,i,s,l,g,C,w,I,N,q,Ee){const Xe=St(),ot=Ho(Xe,t,i,s,l,g,C,w,I,N);return ot!==an&&Er(kt(),Xe,e,ot,q,Ee),bc}function Cc(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot){const Tt=St(),Rt=Uo(Tt,t,i,s,l,g,C,w,I,N,q,Ee);return Rt!==an&&Er(kt(),Tt,e,Rt,Xe,ot),Cc}function Dc(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt){const jt=St(),Ut=zo(jt,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot);return Ut!==an&&Er(kt(),jt,e,Ut,Tt,Rt),Dc}function Ec(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt,Ut){const tn=St(),At=Wo(tn,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt);return At!==an&&Er(kt(),tn,e,At,jt,Ut),Ec}function Tc(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt,Ut,tn,At){const Yt=St(),gn=Go(Yt,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt,Ut);return gn!==an&&Er(kt(),Yt,e,gn,tn,At),Tc}function wc(e,t,i,s){const l=St(),g=jo(l,t);return g!==an&&Er(kt(),l,e,g,i,s),wc}function Jh(e){const t=Tf(e);cc(t[1],t,e)}function Xh(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,Bh(e)),2&e.flags){e.flags&=-3;const l=e.playerHandler;l&&l.flushPlayers()}e.clean=ec,s(null)})}}(lc(Tf(e))[8],1)}function qh(e,t,i,s,l,g,C,w){const I=St(),N=ln(),q=e+22,Ee=N.firstCreatePass?function a0(e,t,i,s,l,g,C,w,I){const N=t.consts,q=Fo(t,e,4,C||null,je(N,w));oc(t,i,q,je(N,I)),Un(t,q);const Ee=q.tViews=rc(2,q,s,l,g,t.directiveRegistry,t.pipeRegistry,null,t.schemas,N);return null!==t.queries&&(t.queries.template(t,q),Ee.queries=t.queries.embeddedTView(q)),q}(q,N,I,t,i,s,l,g,C):N.data[q];O(Ee,!1);const Xe=I[11].createComment("");la(N,I,Xe,Ee),pi(Xe,I),ga(I,I[q]=jh(Xe,I,Xe,Ee)),oi(Ee)&&nc(N,I,Ee),null!=C&&ic(I,Ee,w)}function ep(e,t,i,s){i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),t[i]=s}function tp(e){return wi(function Vt(){return Ot.lFrame.contextLView}(),22+e)}function Mc(e,t,i){const s=St();return mi(s,zr(),t)&&ki(ln(),kt(),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=ln(),C=22+e,w=l[11],I=l[C]=xl(w,t,function En(){return Ot.lFrame.currentNamespace}()),N=g.firstCreatePass?function l0(e,t,i,s,l,g,C){const w=t.consts,N=Fo(t,e,2,l,je(w,g));return oc(t,i,N,je(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 q=N.mergedAttrs;null!==q&&Gt(w,I,q);const Ee=N.classes;null!==Ee&&Bl(w,I,Ee);const Xe=N.styles;return null!==Xe&&Qf(w,I,Xe),64!=(64&N.flags)&&la(g,l,I,N),0===function Mn(){return Ot.lFrame.elementDepthCount}()&&pi(I,l),function hn(){Ot.lFrame.elementDepthCount++}(),oi(N)&&(nc(g,l,N),Sh(g,N,l)),null!==s&&ic(l,N),Ca}function Da(){let e=On();S()?ne():(e=e.parent,O(e,!1));const t=e;!function Bn(){Ot.lFrame.elementDepthCount--}();const i=ln();return i.firstCreatePass&&(Un(i,e),Li(e)&&i.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Wr(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=ln(),g=e+22,C=l.firstCreatePass?function c0(e,t,i,s,l){const g=t.consts,C=je(g,s),w=Fo(t,e,8,"ng-container",C);return null!==C&&va(w,C,!0),oc(t,i,w,je(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),pi(w,s),oi(C)&&(nc(l,s,C),Sh(l,C,s)),null!=i&&ic(s,C),Ea}function Ta(){let e=On();const t=ln();return S()?ne():(e=e.parent,O(e,!1)),t.firstCreatePass&&(Un(t,e),Li(e)&&t.queries.elementEnd(e)),Ta}function Oc(e,t,i){return Ea(e,t,i),Ta(),Oc}function np(){return St()}function Ac(e){return!!e&&"function"==typeof e.then}function ip(e){return!!e&&"function"==typeof e.subscribe}const rp=ip;function Pc(e,t,i,s){const l=St(),g=ln(),C=On();return op(g,l,l[11],C,e,t,0,s),Pc}function Rc(e,t){const i=On(),s=St(),l=ln();return op(l,s,Uh(ts(l.data),i,s),i,e,t),Rc}function op(e,t,i,s,l,g,C,w){const I=oi(s),q=e.firstCreatePass&&Hh(e),Ee=t[8],Xe=$h(t);let ot=!0;if(3&s.type||w){const jt=Dn(s,t),Ut=w?w(jt):jt,tn=Xe.length,At=w?gn=>w(wn(gn[s.index])):s.index;let Yt=null;if(!w&&I&&(Yt=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!==Yt)(Yt.__ngLastListenerFn__||Yt).__ngNextListenerFn__=g,Yt.__ngLastListenerFn__=g,ot=!1;else{g=ap(s,t,Ee,g,!1);const gn=i.listen(Ut,l,g);Xe.push(g,gn),q&&q.push(l,At,tn,tn+1)}}else g=ap(s,t,Ee,g,!1);const Tt=s.outputs;let Rt;if(ot&&null!==Tt&&(Rt=Tt[l])){const jt=Rt.length;if(jt)for(let Ut=0;Ut<jt;Ut+=2){const Nn=t[Rt[Ut]][Rt[Ut+1]].subscribe(g),mo=Xe.length;Xe.push(g,Nn),q&&q.push(l,s.index,mo,-(mo+1))}}}function sp(e,t,i,s){try{return Zn(6,t,i),!1!==i(s)}catch(l){return zh(e,l),!1}finally{Zn(7,t,i)}}function ap(e,t,i,s,l){return function g(C){if(C===Function)return s;lc(2&e.flags?R(e.index,t):t);let I=sp(t,i,s,C),N=g.__ngNextListenerFn__;for(;N;)I=sp(t,i,N,C)&&I,N=N.__ngNextListenerFn__;return l&&!1===I&&(C.preventDefault(),C.returnValue=!1),I}}function lp(e=1){return function Je(e){return(Ot.lFrame.contextLView=function ut(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ot.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?qf(e,g,!0):k_(s,g))return l}else i=l}return i}function cp(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 up(e,t=0,i){const s=St(),l=ln(),g=Fo(l,22+e,16,null,i||null);null===g.projection&&(g.projection=t),ne(),64!=(64&g.flags)&&function w_(e,t,i){Yf(t[11],0,t,i,jf(e,i,t),Hf(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&&ki(ln(),kt(),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&&ki(ln(),kt(),w,e,I,w[11],C,!1),Fc}function kc(e,t,i,s,l,g,C,w,I){const N=St(),q=$o(N,t,i,s,l,g,C,w);return q!==an&&ki(ln(),kt(),N,e,q,N[11],I,!1),kc}function Nc(e,t,i,s,l,g,C,w,I,N,q){const Ee=St(),Xe=Ho(Ee,t,i,s,l,g,C,w,I,N);return Xe!==an&&ki(ln(),kt(),Ee,e,Xe,Ee[11],q,!1),Nc}function Lc(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe){const ot=St(),Tt=Uo(ot,t,i,s,l,g,C,w,I,N,q,Ee);return Tt!==an&&ki(ln(),kt(),ot,e,Tt,ot[11],Xe,!1),Lc}function jc(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt){const Rt=St(),jt=zo(Rt,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot);return jt!==an&&ki(ln(),kt(),Rt,e,jt,Rt[11],Tt,!1),jc}function Bc(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt){const Ut=St(),tn=Wo(Ut,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt);return tn!==an&&ki(ln(),kt(),Ut,e,tn,Ut[11],jt,!1),Bc}function Vc(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt,Ut,tn){const At=St(),Yt=Go(At,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt,Ut);return Yt!==an&&ki(ln(),kt(),At,e,Yt,At[11],tn,!1),Vc}function $c(e,t,i){const s=St(),l=jo(s,t);return l!==an&&ki(ln(),kt(),s,e,l,s[11],i,!1),$c}function dp(e,t,i,s,l){const g=e[i+1],C=null===t;let w=s?dr(g):jr(g),I=!1;for(;0!==w&&(!1===I||C);){const q=e[w+1];p0(e[w],t)&&(I=!0,e[w+1]=s?Gl(q):zl(q)),w=s?dr(q):jr(q)}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 ri={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fp(e){return e.substring(ri.key,ri.keyEnd)}function m0(e){return e.substring(ri.value,ri.valueEnd)}function hp(e,t){const i=ri.textEnd;return i===t?-1:(t=ri.keyEnd=function y0(e,t,i){for(;t<i&&e.charCodeAt(t)>32;)t++;return t}(e,ri.key=t,i),Ko(e,t,i))}function pp(e,t){const i=ri.textEnd;let s=ri.key=Ko(e,t,i);return i===s?-1:(s=ri.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=gp(e,s,i),s=ri.value=Ko(e,s,i),s=ri.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=vp(e,I,C,i):t===C-4&&85===g&&82===l&&76===s&&40===I?w=C=vp(e,41,C,i):I>32&&(w=C),g=l,l=s,s=-33&I}return w}(e,s,i),gp(e,s,i))}function mp(e){ri.key=0,ri.keyEnd=0,ri.value=0,ri.valueEnd=0,ri.textEnd=e.length}function Ko(e,t,i){for(;t<i&&e.charCodeAt(t)<=32;)t++;return t}function gp(e,t,i,s){return(t=Ko(e,t,i))<i&&t++,t}function vp(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 hr(e,t,i,!1),Hc}function Uc(e,t){return hr(e,t,null,!0),Uc}function fr(e){pr(Cp,C0,e,!1)}function C0(e,t){for(let i=function v0(e){return mp(e),pp(e,Ko(e,0,ri.textEnd))}(t);i>=0;i=pp(t,i))Cp(e,fp(t),m0(t))}function yp(e){pr(Fi,wr,e,!0)}function wr(e,t){for(let i=function g0(e){return mp(e),hp(e,Ko(e,0,ri.textEnd))}(t);i>=0;i=hp(t,i))Fi(e,fp(t),!0)}function hr(e,t,i,s){const l=St(),g=ln(),C=Gi(2);g.firstUpdatePass&&bp(g,e,C,s),t!==an&&mi(l,C,t)&&Dp(g,g.data[bt()],l,l[11],e,l[C+1]=function I0(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=h(kr(e)))),e}(t,i),s,C)}function pr(e,t,i,s){const l=ln(),g=Gi(2);l.firstUpdatePass&&bp(l,null,g,s);const C=St();if(i!==an&&mi(C,g,i)){const w=l.data[bt()];if(Tp(w,s)&&!_p(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=Ke);let I=0,N=0,q=0<l.length?l[0]:null,Ee=0<g.length?g[0]:null;for(;null!==q||null!==Ee;){const Xe=I<l.length?l[I+1]:void 0,ot=N<g.length?g[N+1]:void 0;let Rt,Tt=null;q===Ee?(I+=2,N+=2,Xe!==ot&&(Tt=Ee,Rt=ot)):null===Ee||null!==q&&q<Ee?(I+=2,Tt=q):(N+=2,Tt=Ee,Rt=ot),null!==Tt&&Dp(e,t,i,s,Tt,Rt,C,w),q=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 Ke;const s=[],l=kr(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 _p(e,t){return t>=e.expandoStartIndex}function bp(e,t,i,s){const l=e.data;if(null===l[i+1]){const g=l[bt()],C=_p(e,i);Tp(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!==jr(s))return e[dr(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[dr(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=dr(C),I=jr(C);e[s]=i;let q,N=!1;if(Array.isArray(i)){const Ee=i;q=Ee[1],(null===q||Eo(Ee,q)>0)&&(N=!0)}else q=i;if(l)if(0!==I){const Xe=dr(e[w+1]);e[s+1]=da(Xe,w),0!==Xe&&(e[Xe+1]=Wl(e[Xe+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])),dp(e,q,s,!0),dp(e,q,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,q,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]),Fi(e,C,!!i||t[++g]))}return void 0===e?null:e}function Cp(e,t,i){Fi(e,t,kr(i))}function Dp(e,t,i,s,l,g,C,w){if(!(3&t.type))return;const I=e.data,N=I[w+1];Ma(function vh(e){return 1==(1&e)}(N)?Ep(I,t,i,l,jr(N),C):void 0)||(Ma(g)||function gh(e){return 2==(2&e)}(N)&&(g=Ep(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:Dr.DashCase;null==l?e.removeStyle(i,s,g):("string"==typeof l&&l.endsWith("!important")&&(l=l.slice(0,-10),g|=Dr.Important),e.setStyle(i,s,l,g))}}(s,C,jn(bt(),i),l,g))}function Ep(e,t,i,s,l,g){const C=null===t;let w;for(;l>0;){const I=e[l],N=Array.isArray(I),q=N?I[1]:I,Ee=null===q;let Xe=i[l+1];Xe===an&&(Xe=Ee?Ke:void 0);let ot=Ee?Za(Xe,s):q===s?Xe:void 0;if(N&&!Ma(ot)&&(ot=Za(I,s)),Ma(ot)&&(w=ot,C))return w;const Tt=e[l+1];l=C?dr(Tt):jr(Tt)}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 Tp(e,t){return 0!=(e.flags&(t?16:32))}function wp(e,t=""){const i=St(),s=ln(),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&&Br(s,bt(),l),Sa}function Gc(e,t,i,s,l){const g=St(),C=Vo(g,e,t,i,s,l);return C!==an&&Br(g,bt(),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&&Br(w,bt(),I),Kc}function Yc(e,t,i,s,l,g,C,w,I){const N=St(),q=Ho(N,e,t,i,s,l,g,C,w,I);return q!==an&&Br(N,bt(),q),Yc}function Qc(e,t,i,s,l,g,C,w,I,N,q){const Ee=St(),Xe=Uo(Ee,e,t,i,s,l,g,C,w,I,N,q);return Xe!==an&&Br(Ee,bt(),Xe),Qc}function Zc(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe){const ot=St(),Tt=zo(ot,e,t,i,s,l,g,C,w,I,N,q,Ee,Xe);return Tt!==an&&Br(ot,bt(),Tt),Zc}function Jc(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt){const Rt=St(),jt=Wo(Rt,e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt);return jt!==an&&Br(Rt,bt(),jt),Jc}function Xc(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt){const Ut=St(),tn=Go(Ut,e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt);return tn!==an&&Br(Ut,bt(),tn),Xc}function qc(e){const t=St(),i=jo(t,e);return i!==an&&Br(t,bt(),i),qc}function Mp(e,t,i){pr(Fi,wr,Bo(St(),e,t,i),!0)}function Sp(e,t,i,s,l){pr(Fi,wr,Vo(St(),e,t,i,s,l),!0)}function Ip(e,t,i,s,l,g,C){pr(Fi,wr,$o(St(),e,t,i,s,l,g,C),!0)}function Op(e,t,i,s,l,g,C,w,I){pr(Fi,wr,Ho(St(),e,t,i,s,l,g,C,w,I),!0)}function Ap(e,t,i,s,l,g,C,w,I,N,q){pr(Fi,wr,Uo(St(),e,t,i,s,l,g,C,w,I,N,q),!0)}function Pp(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe){pr(Fi,wr,zo(St(),e,t,i,s,l,g,C,w,I,N,q,Ee,Xe),!0)}function Rp(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt){pr(Fi,wr,Wo(St(),e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt),!0)}function xp(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt){pr(Fi,wr,Go(St(),e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt),!0)}function Fp(e){pr(Fi,wr,jo(St(),e),!0)}function kp(e,t,i){fr(Bo(St(),e,t,i))}function Np(e,t,i,s,l){fr(Vo(St(),e,t,i,s,l))}function Lp(e,t,i,s,l,g,C){fr($o(St(),e,t,i,s,l,g,C))}function jp(e,t,i,s,l,g,C,w,I){fr(Ho(St(),e,t,i,s,l,g,C,w,I))}function Bp(e,t,i,s,l,g,C,w,I,N,q){fr(Uo(St(),e,t,i,s,l,g,C,w,I,N,q))}function Vp(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe){fr(zo(St(),e,t,i,s,l,g,C,w,I,N,q,Ee,Xe))}function $p(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt){fr(Wo(St(),e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt))}function Hp(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt){fr(Go(St(),e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt))}function Up(e){fr(jo(St(),e))}function eu(e,t,i,s,l){return hr(e,Bo(St(),t,i,s),l,!1),eu}function tu(e,t,i,s,l,g,C){return hr(e,Vo(St(),t,i,s,l,g),C,!1),tu}function nu(e,t,i,s,l,g,C,w,I){return hr(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,q){return hr(e,Ho(St(),t,i,s,l,g,C,w,I,N),q,!1),iu}function ru(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe){return hr(e,Uo(St(),t,i,s,l,g,C,w,I,N,q,Ee),Xe,!1),ru}function ou(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt){return hr(e,zo(St(),t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot),Tt,!1),ou}function su(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt){return hr(e,Wo(St(),t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt),jt,!1),su}function au(e,t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt,Ut,tn){return hr(e,Go(St(),t,i,s,l,g,C,w,I,N,q,Ee,Xe,ot,Tt,Rt,jt,Ut),tn,!1),au}function lu(e,t,i){return hr(e,jo(St(),t),i,!1),lu}function cu(e,t,i){const s=St();return mi(s,zr(),t)&&ki(ln(),kt(),s,e,t,s[11],i,!0),cu}function uu(e,t,i){const s=St();if(mi(s,zr(),t)){const g=ln(),C=kt();ki(g,C,s,e,t,Uh(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=Wp(t);if(i)return i;const s=t.split("-")[0];if(i=Wp(s),i)return i;if("en"===s)return A0;throw new M(701,!1)}function R0(e){return du(e)[Xt.CurrencyCode]||null}function zp(e){return du(e)[Xt.PluralCase]}function Wp(e){return e in Yo||(Yo[e]=H.ng&&H.ng.common&&H.ng.common.locales&&H.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 Gp=fo;function fu(e){(function yt(e,t){null==e&&Oe(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Gp=e.toLowerCase().replace(/_/g,"-"))}function Kp(e,t,i){const s=t.insertBeforeIndex,l=Array.isArray(s)?s[0]:s;return null===l?Uf(e,0,i):wn(i[l])}function Yp(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 Qp(e,t){if(e.push(t),e.length>1)for(let i=e.length-2;i>=0;i--){const s=e[i];Zp(s)||B0(s,t)&&null===V0(s)&&$0(s,t.index)}}function Zp(e){return!(64&e.type)}function B0(e,t){return Zp(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:(Wf(Kp,Yp),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 Qp(t,s),s}function Aa(e,t){const i=t[e.currentCaseLViewIndex];return null===i?i:i<0?~i:i}function Jp(e){return e>>>17}function Xp(e){return(131070&e)>>>1}let Is=0,Os=0;function em(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=Jp(I);let q,Ee;if(null===g&&(g=N,C=aa(l,s)),N===g?(q=s,Ee=C):(q=null,Ee=wn(i[N])),null!==Ee){const Rt=Xp(I);ao(l,Ee,i[Rt],q,!1);const Ut=Ss(e,Rt);if(null!==Ut&&"object"==typeof Ut){const tn=Aa(Ut,i);null!==tn&&em(e,Ut.create[tn],i,i[Ut.anchorIdx])}}break;case 1:const ot=t[++w],Tt=t[++w];sc(l,jn(I>>>1,i),null,null,ot,Tt,null)}else switch(I){case Oa:const N=t[++w],q=t[++w];null===i[q]&&pi(i[q]=p_(l,N),i);break;case Ia:const Ee=t[++w],Xe=t[++w];null===i[Xe]&&pi(i[Xe]=xl(l,Ee,null),i)}}}function tm(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 q=i[N];if("string"==typeof q)I+=q;else if("number"==typeof q)if(q<0)I+=F(t[s-q]);else{const Ee=q>>>2;switch(3&q){case 1:const Xe=i[++N],ot=i[++N],Tt=e.data[Ee];"string"==typeof Tt?sc(t[11],t[Ee],null,Tt,Xe,I,ot):ki(e,Tt,t,Xe,I,t[11],ot,!1);break;case 0:const Rt=t[Ee];null!==Rt&&kf(t[11],Rt,I);break;case 2:Q0(e,Ss(e,Ee),t,I);break;case 3:nm(e,Ss(e,Ee),s,t)}}}}else{const I=i[g+1];if(I>0&&3==(3&I)){const q=Ss(e,I>>>2);t[q.currentCaseLViewIndex]<0&&nm(e,q,s,t)}}g+=w}}function nm(e,t,i,s){let l=s[t.currentCaseLViewIndex];if(null!==l){let g=Is;l<0&&(l=s[t.currentCaseLViewIndex]=~l,g=-1),tm(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=zp(t)(parseInt(e,10)),s=k0[i];return void 0!==s?s:"other"}(t,function j0(){return Gp}());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&&(im(e,t,i),i[t.currentCaseLViewIndex]=null===l?null:~l,null!==l)){const C=i[t.anchorIdx];C&&em(e,t.create[l],i,C)}}function im(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=jn(C,i);null!==w&&Kf(i[11],w)}else im(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]:Ke}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/,om=/^\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 sm(e,t,i,s,l,g,C){const w=ko(e,s,1,null);let I=w<<zn.SHIFT,N=k();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 q=tc(e,w,C?32:1,null===g?"":g,null);Qp(i,q);const Ee=q.index;return O(q,!1),null!==N&&t!==N&&function U0(e,t){let i=e.insertBeforeIndex;null===i?(Wf(Kp,Yp),i=e.insertBeforeIndex=[null,t]):(function qe(e,t,i){e!=t&&Oe(i,e,t,"==")}(Array.isArray(i),!0,"Expecting array here"),i.push(t))}(N,Ee),q}function oC(e,t,i,s,l,g,C){const w=C.match(Pa),I=sm(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 q=0;for(let Ee=0;Ee<N.length;Ee++){const Xe=N[Ee];if(1&Ee){const ot=l+parseInt(Xe,10);e.push(-1-ot),q|=am(ot)}else""!==Xe&&e.push(Xe)}return e.push(i<<2|(s?1:0)),s&&e.push(s,g),e[C]=q,e[w]=e.length-I,q}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 am(e){return 1<<Math.min(e,31)}function lm(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 cm(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(am(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 q=I[N],Ee=[];for(let Xe=0;Xe<q.length;Xe++){const ot=q[Xe];if("string"!=typeof ot){const Tt=Ee.push(ot)-1;q[Xe]=`\x3c!--\ufffd${Tt}\ufffd--\x3e`}}C=dC(e,w,t,i,s,l.cases[N],q.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(om,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);om.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=[],q=[];t.cases.push(g),t.create.push(I),t.remove.push(N),t.update.push(q);const Xe=jd(xd()).getInertBodyElement(C),ot=ll(Xe)||Xe;return ot?um(e,t,i,s,I,N,q,ot,l,w,0):0}function um(e,t,i,s,l,g,C,w,I,N,q){let Ee=0,Xe=w.firstChild;for(;Xe;){const ot=ko(e,i,1,null);switch(Xe.nodeType){case Node.ELEMENT_NODE:const Tt=Xe,Rt=Tt.tagName.toLowerCase();if(ol.hasOwnProperty(Rt)){pu(l,Ia,Rt,I,ot),e.data[ot]=Rt;const At=Tt.attributes;for(let Yt=0;Yt<At.length;Yt++){const gn=At.item(Yt),Nn=gn.name.toLowerCase();gn.value.match(Pa)?Ud.hasOwnProperty(Nn)&&Qo(C,gn.value,ot,gn.name,0,sl[Nn]?hs:al[Nn]?Bd:null):mC(l,ot,gn)}Ee=um(e,t,i,s,l,g,C,Xe,ot,N,q+1)|Ee,dm(g,ot,q)}break;case Node.TEXT_NODE:const jt=Xe.textContent||"",Ut=jt.match(Pa);pu(l,null,Ut?"":jt,I,ot),dm(g,ot,q),Ut&&(Ee=Qo(C,jt,ot,null,0,null)|Ee);break;case Node.COMMENT_NODE:const tn=q0.exec(Xe.textContent||"");if(tn){const Yt=N[parseInt(tn[1],10)];pu(l,Oa,"",I,ot),cm(e,i,s,I,Yt,ot),fC(g,ot,q)}}Xe=Xe.nextSibling}return Ee}function dm(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=ln(),l=St(),g=22+e,C=je(s.consts,t),w=k();s.firstCreatePass&&function rC(e,t,i,s,l,g){const C=k(),w=[],I=[],N=[[]];l=function cC(e,t){if(function lC(e){return-1===e}(t))return lm(e);{const i=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,s=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return lm(e.substring(i,s))}}(l,g);const q=function iC(e){return e.replace(nC," ")}(l).split(tC);for(let Ee=0;Ee<q.length;Ee++){let Xe=q[Ee];if(0==(1&Ee)){const ot=hu(Xe);for(let Tt=0;Tt<ot.length;Tt++){let Rt=ot[Tt];if(0==(1&Tt)){const jt=Rt;""!==jt&&oC(e,C,N[0],w,I,i,jt)}else{const jt=Rt;if("object"!=typeof jt)throw new Error(`Unable to parse ICU expression in "${l}" message.`);cm(e,i,I,t,jt,sm(e,C,N[0],i,w,"",!0).index)}}}else{const ot=47===Xe.charCodeAt(0),Rt=(Xe.charCodeAt(ot?1:0),22+Number.parseInt(Xe.substring(ot?2:1)));if(ot)N.shift(),O(k(),!1);else{const jt=z0(e,N[0],Rt);N.unshift([]),O(jt,!0)}}}e.data[s]={create:w,update:I}}(s,null===w?0:w.index,l,g,C,i);const I=s.data[g],q=Bf(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,q=C>>>zn.SHIFT;let Ee=e[q];null===Ee&&(Ee=e[q]=I?l.createComment(w):Rl(l,w)),N&&null!==i&&ao(l,i,Ee,s,!1)}})(l,I.create,q,w&&8&w.type?l[w.index]:null),js(!0)}function gu(){js(!1)}function hm(e,t,i){mu(e,t,i),gu()}function pm(e,t){const i=ln();!function sC(e,t,i){const l=On().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,je(i.consts,t))}function vu(e){return function G0(e){e&&(Is|=1<<Math.min(Os,31)),Os++}(mi(St(),zr(),e)),vu}function mm(e){!function K0(e,t,i){if(Os>0){const s=e.data[i];tm(e,t,Array.isArray(s)?s:s.update,ui()-Os-1,Is)}Is=0,Os=0}(ln(),St(),e+22)}function gm(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(Rt=>{const jt=Rt.match(DC),Ut=jt?parseInt(jt[1],10):0,tn=CC.test(Rt);N.push([Ut,tn,Rt])}),s[I]=N),!N.length)throw new Error(`i18n postprocess: unmatched placeholder - ${I}`);const q=l[l.length-1];let Ee=0;for(let Rt=0;Rt<N.length;Rt++)if(N[Rt][0]===q){Ee=Rt;break}const[Xe,ot,Tt]=N[Ee];return ot?l.pop():q!==Xe&&l.push(Xe),N.splice(Ee,1),Tt})}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=ln(),C=St();let w=oo(e)?e:v(e.provide),I=lf(e);const N=On(),q=1048575&N.providerIndexes,Ee=N.directiveStart,Xe=N.providerIndexes>>20;if(oo(e)||!e.multi){const ot=new _r(I,l,xo),Tt=bu(w,t,l?q:q+Xe,Ee);-1===Tt?(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[Tt]=ot,C[Tt]=ot)}else{const ot=bu(w,t,q+Xe,Ee),Tt=bu(w,t,q,q+Xe),Rt=ot>=0&&i[ot],jt=Tt>=0&&i[Tt];if(l&&!jt||!l&&!Rt){zs(is(N,C),g,w);const Ut=function SC(e,t,i,s,l){const g=new _r(e,i,xo);return g.multi=[],g.index=t,g.componentProviders=0,vm(g,l,s&&!i),g}(l?MC:wC,i.length,l,s,I);!l&&jt&&(i[Tt].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:Tt,vm(i[l?Tt:ot],I,!l&&s));!l&&s&&jt&&i[Tt].componentProviders++}}}function _u(e,t,i,s){const l=oo(t),g=function wy(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 q=N.indexOf(i);-1===q?N.push(i,[s,I]):N[q+1].push(s,I)}else N.push(i,I)}}}function vm(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 ym(e,t=[]){return i=>{i.providersResolver=(s,l)=>function TC(e,t,i){const s=ln();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 _m{}function bm(e,t){return new Du(e,null!=t?t:null)}const IC=bm;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=Nr(s.bootstrap),this._r3Injector=sh(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 _m{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=lt({token:e,providedIn:"environment",factory:()=>new e(qn(so))}),e})();function Cm(e){e.getStandaloneInjector=t=>t.get(AC).getOrCreateStandaloneInjector(e)}function Tu(e){const t=hi(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 Dm(e){!function NC(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}(e);const t=hi(e),i=t?t.lView:null;return null===i?null:i[8]}function Em(e){const t=hi(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 Tm(e){const t=Sl(e);return null!==t?[...xf(t).components]:[]}function wm(e){const t=hi(e),i=t?t.lView:null;return null===i?Qr.NULL:new vo(i[1].data[t.nodeIndex],i)}function Mm(e){if(e instanceof Text)return[];const t=hi(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=Sf(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=ve(t);if(i)return{inputs:i.inputs,outputs:i.outputs,encapsulation:i.encapsulation,changeDetection:i.onPush?pe.OnPush:pe.Default};const s=tt(t);return s?{inputs:s.inputs,outputs:s.outputs}:null}function wu(e){return hi(e).native}function Sm(e){const t=hi(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 q=I,Ee=wn(i[N]),Xe=l[g[w++]],ot=g[w++],Tt="boolean"==typeof ot||ot>=0?"dom":"output",Rt="boolean"==typeof ot&&ot;e==Ee&&C.push({element:e,name:q,callback:Xe,useCapture:Rt,type:Tt})}}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 Im(e,t,i,s){return xe(()=>{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 Om(e,t,i){const s=Vn()+e,l=St();return l[s]===an?Tr(l,s,i?t.call(i):t()):ws(l,s)}function Am(e,t,i,s){return Bm(St(),Vn(),e,t,i,s)}function Pm(e,t,i,s,l){return Vm(St(),Vn(),e,t,i,s,l)}function Rm(e,t,i,s,l,g){return $m(St(),Vn(),e,t,i,s,l,g)}function xm(e,t,i,s,l,g,C){return Hm(St(),Vn(),e,t,i,s,l,g,C)}function Fm(e,t,i,s,l,g,C,w){const I=Vn()+e,N=St(),q=Yi(N,I,i,s,l,g);return mi(N,I+4,C)||q?Tr(N,I+5,w?t.call(w,i,s,l,g,C):t(i,s,l,g,C)):ws(N,I+5)}function km(e,t,i,s,l,g,C,w,I){const N=Vn()+e,q=St(),Ee=Yi(q,N,i,s,l,g);return co(q,N+4,C,w)||Ee?Tr(q,N+6,I?t.call(I,i,s,l,g,C,w):t(i,s,l,g,C,w)):ws(q,N+6)}function Nm(e,t,i,s,l,g,C,w,I,N){const q=Vn()+e,Ee=St();let Xe=Yi(Ee,q,i,s,l,g);return ba(Ee,q+4,C,w,I)||Xe?Tr(Ee,q+7,N?t.call(N,i,s,l,g,C,w,I):t(i,s,l,g,C,w,I)):ws(Ee,q+7)}function Lm(e,t,i,s,l,g,C,w,I,N,q){const Ee=Vn()+e,Xe=St(),ot=Yi(Xe,Ee,i,s,l,g);return Yi(Xe,Ee+4,C,w,I,N)||ot?Tr(Xe,Ee+8,q?t.call(q,i,s,l,g,C,w,I,N):t(i,s,l,g,C,w,I,N)):ws(Xe,Ee+8)}function jm(e,t,i,s){return Um(St(),Vn(),e,t,i,s)}function Ps(e,t){const i=e[t];return i===an?void 0:i}function Bm(e,t,i,s,l,g){const C=t+i;return mi(e,C,l)?Tr(e,C+1,g?s.call(g,l):s(l)):Ps(e,C+1)}function Vm(e,t,i,s,l,g,C){const w=t+i;return co(e,w,l,g)?Tr(e,w+2,C?s.call(C,l,g):s(l,g)):Ps(e,w+2)}function $m(e,t,i,s,l,g,C,w){const I=t+i;return ba(e,I,l,g,C)?Tr(e,I+3,w?s.call(w,l,g,C):s(l,g,C)):Ps(e,I+3)}function Hm(e,t,i,s,l,g,C,w,I){const N=t+i;return Yi(e,N,l,g,C,w)?Tr(e,N+4,I?s.call(I,l,g,C,w):s(l,g,C,w)):Ps(e,N+4)}function Um(e,t,i,s,l,g){let C=t+i,w=!1;for(let I=0;I<l.length;I++)mi(e,C++,l[I])&&(w=!0);return w?Tr(e,C,s.apply(g,l)):Ps(e,C)}function zm(e,t){const i=ln();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=li(s.type)),C=Ce(xo);try{const w=Ki(!1),I=g();return Ki(w),ep(i,St(),l,I),I}finally{Ce(C)}}function Wm(e,t,i){const s=e+22,l=St(),g=wi(l,s);return Rs(l,s)?Bm(l,Vn(),t,g.transform,i,g):g.transform(i)}function Gm(e,t,i,s){const l=e+22,g=St(),C=wi(g,l);return Rs(g,l)?Vm(g,Vn(),t,C.transform,i,s,C):C.transform(i,s)}function Km(e,t,i,s,l){const g=e+22,C=St(),w=wi(C,g);return Rs(C,g)?$m(C,Vn(),t,w.transform,i,s,l,w):w.transform(i,s,l)}function Ym(e,t,i,s,l,g){const C=e+22,w=St(),I=wi(w,C);return Rs(w,C)?Hm(w,Vn(),t,I.transform,i,s,l,g,I):I.transform(i,s,l,g)}function Qm(e,t,i){const s=e+22,l=St(),g=wi(l,s);return Rs(l,s)?Um(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 Mr=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 q=super.subscribe({next:w,error:I,complete:N});return t instanceof p.w0&&t.add(q),q}};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 Mr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,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=xi(t);(this._changesDetected=!function Rv(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(On(),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 Xm(On(),St())}const zC=ka,Zm=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(cr(t)){const i=Gr(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=Jm(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(ve(t)),N=s||this.parentInjector;if(!g&&null==I.ngModule){const Xe=(C?N:this.parentInjector).get(so,null);Xe&&(g=Xe)}const q=I.create(N,l,void 0,g);return this.insert(q.hostView,w),q}insert(t,i){const s=t._lView,l=s[1];if(function le(e){return Wn(e[3])}(s)){const q=this.indexOf(t);if(-1!==q)this.detach(q);else{const Ee=s[3],Xe=new Zm(Ee,Ee[6],Ee[3]);Xe.detach(Xe.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=Jm(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),Lf(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 Jm(e){return e[8]}function Su(e){return e[8]||(e[8]=[])}function Xm(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=jh(s,t,l,e),ga(t,i)}return new Zm(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!==ag(t,i).matches&&this.queries[i].setDirty()}}class qm{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?Xm(t,e):void 0}(e,t,s):rs(e,e[1],i,t)}function eg(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=eg(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],q=t[-I];for(let Ee=10;Ee<q.length;Ee++){const Xe=q[Ee];Xe[17]===Xe[3]&&Ru(Xe[1],Xe,N,s)}if(null!==q[9]){const Ee=q[9];for(let Xe=0;Xe<Ee.length;Xe++){const ot=Ee[Xe];Ru(ot[1],ot,N,s)}}}}}return s}function tg(e){const t=St(),i=ln(),s=Vs();ns(s+1);const l=ag(i,s);if(e.dirty&&te(t)===(2==(2&l.metadata.flags))){if(null===l.matches)e.reset([]);else{const g=l.crossesNgTemplate?Ru(i,t,s,[]):eg(i,t,l,s);e.reset(g,Ny),e.notifyOnChanges()}return!0}return!1}function ng(e,t,i){const s=ln();s.firstCreatePass&&(sg(s,new qm(e,t,i),-1),2==(2&t)&&(s.staticViewQueries=!0)),og(s,St(),t)}function ig(e,t,i,s){const l=ln();if(l.firstCreatePass){const g=On();sg(l,new qm(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)}og(l,St(),i)}function rg(){return function JC(e,t){return e[19].queries[t].queryList}(St(),Vs())}function og(e,t,i){const s=new xa(4==(4&i));Oh(e,t,s,s.destroy),null===t[19]&&(t[19]=new Ou),t[19].queries.push(new Iu(s))}function sg(e,t,i){null===e.queries&&(e.queries=new Au),e.queries.track(new Pu(t,i))}function ag(e,t){return e.queries.getByIndex(t)}function lg(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:ge,\u0275\u0275defineDirective:ht,\u0275\u0275defineInjectable:lt,\u0275\u0275defineInjector:nt,\u0275\u0275defineNgModule:ye,\u0275\u0275definePipe:se,\u0275\u0275directiveInject:xo,\u0275\u0275getInheritedFactory:pd,\u0275\u0275inject:qn,\u0275\u0275injectAttribute:Ya,\u0275\u0275invalidFactory:ph,\u0275\u0275invalidFactoryDep:qa,\u0275\u0275templateRefExtractor:lg,\u0275\u0275resetView:Pr,\u0275\u0275NgOnChangesFeature:Ei,\u0275\u0275ProvidersFeature:ym,\u0275\u0275CopyDefinitionFeature:Qh,\u0275\u0275InheritDefinitionFeature:hc,\u0275\u0275StandaloneFeature:Cm,\u0275\u0275nextContext:lp,\u0275\u0275namespaceHTML:en,\u0275\u0275namespaceMathML:un,\u0275\u0275namespaceSVG:cn,\u0275\u0275enableBindings:xn,\u0275\u0275disableBindings:vi,\u0275\u0275elementStart:Ca,\u0275\u0275elementEnd:Da,\u0275\u0275element:Ic,\u0275\u0275elementContainerStart:Ea,\u0275\u0275elementContainerEnd:Ta,\u0275\u0275elementContainer:Oc,\u0275\u0275pureFunction0:Om,\u0275\u0275pureFunction1:Am,\u0275\u0275pureFunction2:Pm,\u0275\u0275pureFunction3:Rm,\u0275\u0275pureFunction4:xm,\u0275\u0275pureFunction5:Fm,\u0275\u0275pureFunction6:km,\u0275\u0275pureFunction7:Nm,\u0275\u0275pureFunction8:Lm,\u0275\u0275pureFunctionV:jm,\u0275\u0275getCurrentView:np,\u0275\u0275restoreView:ai,\u0275\u0275listener:Pc,\u0275\u0275projection:up,\u0275\u0275syntheticHostProperty:uu,\u0275\u0275syntheticHostListener:Rc,\u0275\u0275pipeBind1:Wm,\u0275\u0275pipeBind2:Gm,\u0275\u0275pipeBind3:Km,\u0275\u0275pipeBind4:Ym,\u0275\u0275pipeBindV:Qm,\u0275\u0275projectionDef:cp,\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:zm,\u0275\u0275queryRefresh:tg,\u0275\u0275viewQuery:ng,\u0275\u0275loadQuery:rg,\u0275\u0275contentQuery:ig,\u0275\u0275reference:tp,\u0275\u0275classMap:yp,\u0275\u0275classMapInterpolate1:Mp,\u0275\u0275classMapInterpolate2:Sp,\u0275\u0275classMapInterpolate3:Ip,\u0275\u0275classMapInterpolate4:Op,\u0275\u0275classMapInterpolate5:Ap,\u0275\u0275classMapInterpolate6:Pp,\u0275\u0275classMapInterpolate7:Rp,\u0275\u0275classMapInterpolate8:xp,\u0275\u0275classMapInterpolateV:Fp,\u0275\u0275styleMap:fr,\u0275\u0275styleMapInterpolate1:kp,\u0275\u0275styleMapInterpolate2:Np,\u0275\u0275styleMapInterpolate3:Lp,\u0275\u0275styleMapInterpolate4:jp,\u0275\u0275styleMapInterpolate5:Bp,\u0275\u0275styleMapInterpolate6:Vp,\u0275\u0275styleMapInterpolate7:$p,\u0275\u0275styleMapInterpolate8:Hp,\u0275\u0275styleMapInterpolateV:Up,\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:th,\u0275\u0275template:qh,\u0275\u0275text:wp,\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:hm,\u0275\u0275i18nAttributes:pm,\u0275\u0275i18nExp:vu,\u0275\u0275i18nStart:mu,\u0275\u0275i18nEnd:gu,\u0275\u0275i18nApply:mm,\u0275\u0275i18nPostprocess:gm,\u0275\u0275resolveWindow:If,\u0275\u0275resolveDocument:Of,\u0275\u0275resolveBody:Af,\u0275\u0275setComponentScope:ue,\u0275\u0275setNgModuleScope:dt,\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 ug(e){return!!$t(e)}const Fs=[];let xu=!1;function dg(){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(fg)&&(Fs.splice(e,1),oD(t,i))}}finally{xu=!1}}}function fg(e){return Array.isArray(e)?e.every(fg):!!v(e)}function hg(e,t={}){pg(e,t),void 0!==t.id&&tl(e,t.id),function nD(e,t){Fs.push({moduleType:e,ngModule:t})}(e,t)}function pg(e,t,i=!1){const s=xi(t.declarations||Ke);let l=null;Object.defineProperty(e,Kt,{configurable:!0,get:()=>(null===l&&(l=ii().compileNgModule(bi,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:xi(t.bootstrap||Ke).map(v),declarations:s.map(v),imports:xi(t.imports||Ke).map(v).map(yg),exports:xi(t.exports||Ke).map(v).map(yg),schemas:t.schemas?xi(t.schemas):null,id:t.id||null}),l.schemas||(l.schemas=[])),l)});let g=null;Object.defineProperty(e,Bt,{get:()=>{if(null===g){const w=ii();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,Ne,{get:()=>{if(null===C){const w={name:e.name,type:e,providers:t.providers||Ke,imports:[(t.imports||Ke).map(v),(t.exports||Ke).map(v)]};C=ii().compileInjector(bi,`ng:///${e.name}/\u0275inj.js`,w)}return C},configurable:!1})}function Xo(e){const t=ve(e)||tt(e)||pt(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=xi(t.declarations||Ke),s=ho(e);i.forEach(l=>{(l=v(l)).hasOwnProperty(ct)?Nu(ve(l),s):!l.hasOwnProperty(Lt)&&!l.hasOwnProperty(Pt)&&(l.ngSelectorScope=e)})}function Nu(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(i=>i.hasOwnProperty(ct)?ve(i):tt(i)).filter(i=>!!i),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(i=>pt(i)),e.schemas=t.schemas,e.tView=null}function ho(e){if(ug(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 Nr(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))}),Nr(t.declarations).forEach(s=>{pt(s)?i.compilation.pipes.add(s):i.compilation.directives.add(s)}),Nr(t.exports).forEach(s=>{const l=s;if(ug(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 pt(l)?i.exported.pipes.add(l):i.exported.directives.add(l)}),t.transitiveCompileScopes=i,i}(e);if(Xo(e)){if(null!==(ve(e)||tt(e)))return{schemas:null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set([e]),pipes:new Set}};if(null!==pt(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 yg(e){return function cg(e){return void 0!==e.ngModule}(e)?e.ngModule:e}let Lu=0;function _g(e,t){let i=null;(function Yv(e,t){Od(t)&&(wo.set(e,t),fs.add(e))})(e,t),Cg(e,t),Object.defineProperty(e,ct,{get:()=>{if(null===i){const s=ii();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:Te.Emulated);const w=t.templateUrl||`ng:///${e.name}/template.html`,I=Object.assign(Object.assign({},Dg(e,t)),{typeSourceSpan:s.createParseSourceSpan("Component",e.name,w),template:t.template||"",preserveWhitespaces:g,styles:t.styles||Ke,animations:t.animations,declarations:[],changeDetection:t.changeDetection,encapsulation:C,interpolation:t.interpolation,viewProviders:t.viewProviders||null,isStandalone:!!t.standalone});Lu++;try{if(I.usesInheritance&&Eg(e),i=s.compileComponent(bi,w,I),t.standalone){const N=xi(t.imports||Ke),{directiveDefs:q,pipeDefs:Ee}=function lD(e,t){let i=null,s=null;return{directiveDefs:()=>{if(null===i){i=[ve(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 q of N.exported.directives){const Ee=ve(q)||tt(q);Ee&&!C.has(q)&&(C.add(q),i.push(Ee))}}else{const N=ve(I)||tt(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 q of N.exported.pipes){const Ee=pt(q);Ee&&!C.has(q)&&(C.add(q),s.push(Ee))}}else{const N=pt(I);N&&s.push(N)}}}return s}}}(e,N);i.directiveDefs=q,i.pipeDefs=Ee,i.dependencies=()=>N.map(v)}}finally{Lu--}if(0===Lu&&dg(),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;Cg(e,t||{}),Object.defineProperty(e,Lt,{get:()=>{if(null===i){const s=bg(e,t||{});i=ii().compileDirective(bi,s.sourceMapUrl,s.metadata)}return i},configurable:!1})}function bg(e,t){const i=e&&e.name,s=`ng:///${i}/\u0275dir.js`,l=ii(),g=Dg(e,t);return g.typeSourceSpan=l.createParseSourceSpan("Directive",i,s),g.usesInheritance&&Eg(e),{metadata:g,sourceMapUrl:s}}function Cg(e,t){let i=null;Object.defineProperty(e,Bt,{get:()=>{if(null===i){const s=bg(e,t),l=ii();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 Dg(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||we,propMetadata:s,inputs:t.inputs||Ke,outputs:t.outputs||Ke,queries:Tg(e,s,wg),lifecycle:{usesOnChanges:i.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!uD(e),exportAs:hD(t.exportAs),providers:t.providers||null,viewQueries:Tg(e,s,Mg),isStandalone:!!t.standalone}}function Eg(e){const t=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==t;)!tt(i)&&!ve(i)&&mD(i)&&ju(i,null),i=Object.getPrototypeOf(i)}function dD(e){return"string"==typeof e?Ig(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 Tg(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(Sg))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:Ig(e)}function wg(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function Mg(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function Sg(e){return"Input"===e.ngMetadataName}function Ig(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(Sg(C)||wg(C)||Mg(C)||"Output"===w||"HostBinding"===w||"HostListener"===w)return!0}}return!1}function Og(e,t){let i=null,s=null;Object.defineProperty(e,Bt,{get:()=>{if(null===s){const l=Ag(e,t),g=ii();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,Pt,{get:()=>{if(null===i){const l=Ag(e,t);i=ii().compilePipe(bi,`ng:///${l.name}/\u0275pipe.js`,l)}return i},configurable:!1})}function Ag(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure,isStandalone:!!t.standalone}}const Pg=Co("Directive",(e={})=>e,void 0,void 0,(e,t)=>ju(e,t)),gD=Co("Component",(e={})=>Object.assign({changeDetection:pe.Default},e),Pg,void 0,(e,t)=>_g(e,t)),vD=Co("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>Og(e,t)),yD=Kr("Input",e=>({bindingPropertyName:e})),_D=Kr("Output",e=>({bindingPropertyName:e})),bD=Kr("HostBinding",e=>({hostPropertyName:e})),CD=Kr("HostListener",(e,t)=>({eventName:e,args:t})),DD=Co("NgModule",e=>e,void 0,void 0,(e,t)=>hg(e,t));function La(...e){}const Rg=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(rp(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)(qn(Rg,8))},e.\u0275prov=lt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const xg=new Pn("AppId",{providedIn:"root",factory:Fg});function Fg(){return`${Bu()}${Bu()}${Bu()}`}const ED={provide:xg,useFactory:Fg,deps:[]};function Bu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const kg=new Pn("Platform Initializer"),TD=new Pn("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Ng=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=lt({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 Sr=(()=>((Sr=Sr||{})[Sr.Error=0]="Error",Sr[Sr.Warning=1]="Warning",Sr[Sr.Ignore=2]="Ignore",Sr))();class Lg{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=Nr($t(i).declarations).reduce((C,w)=>{const I=ve(w);return I&&C.push(new Lo(I)),C},[]);return new Lg(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=lt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const jg=new Pn("compilerOptions");class xD{}function FD(e){Xh(e),Tm(e).forEach(t=>Jh(t))}let Vg=!1;function kD(){Vg||(Vg=!0,Qi("\u0275setProfiler",rr),Qi("getDirectiveMetadata",RC),Qi("getComponent",Tu),Qi("getContext",Dm),Qi("getListeners",Sm),Qi("getOwningComponent",Em),Qi("getHostElement",wu),Qi("getInjector",wm),Qi("getRootComponents",Tm),Qi("getDirectives",Mm),Qi("applyChanges",FD))}function Qi(e,t){if("undefined"==typeof COMPILED||!COMPILED){const i=H;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 Ni{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:s=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Mr(!1),this.onMicrotaskEmpty=new Mr(!1),this.onStable=new Mr(!1),this.onError=new Mr(!1),"undefined"==typeof Zone)throw new 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=H.requestAnimationFrame,t=H.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(H,()=>{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 $g(e),i.invokeTask(l,g,C,w)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===g.type||e.shouldCoalesceRunChangeDetection)&&t(),Hg(e)}},onInvoke:(i,s,l,g,C,w,I)=>{try{return $g(e),i.invoke(l,g,C,w,I)}finally{e.shouldCoalesceRunChangeDetection&&t(),Hg(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(!Ni.isInAngularZone())throw new M(909,!1)}static assertNotInAngularZone(){if(Ni.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 $g(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Hg(e){e._nesting--,$u(e)}class Ug{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Mr,this.onMicrotaskEmpty=new Mr,this.onStable=new Mr,this.onError=new Mr}run(t,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 zg=new Pn(""),Wg=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||(Kg(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:()=>{Ni.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)(qn(Ni),qn(Gg),qn(Wg))},e.\u0275prov=lt({token:e,factory:e.\u0275fac}),e})(),Gg=(()=>{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=lt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function Kg(e){ks=e}let Ir=null;const Uu=new Pn("AllowMultipleToken"),zu=new Pn("PlatformDestroyListeners");function Yg(e,t,i){const s=new Ra(i);return Promise.resolve(s)}function Qg(e){return e.isBoundToModule}class HD{constructor(t,i){this.name=t,this.token=i}}function Zg(e){if(Ir&&!Ir.get(Uu,!1))throw new M(400,!1);Ir=e;const t=e.get(Wu);return Jg(e),t}function Jg(e){const t=e.get(kg,null);t&&t.forEach(i=>i())}function zD(e){const{rootComponent:t,appProviders:i,platformProviders:s}=e,l=function UD(e=[]){if(Ir)return Ir;const t=ev(e);return Ir=t,Jg(t),t}(s),g=new Ni(tv());return g.run(()=>{const w=Eu([{provide:Ni,useValue:g},...i||[]],l,"Environment Injector"),I=w.get(ys,null);let N;return g.runOutsideAngular(()=>{N=g.onError.subscribe({next:q=>{I.handleError(q)}})}),nv(I,g,()=>{const q=w.get(ja);return q.runInitializers(),q.donePromise.then(()=>{fu(w.get(Ba,fo)||fo);const Xe=w.get($a),ot=()=>Xe.destroy(),Tt=l.get(zu,null);return null==Tt||Tt.add(ot),Xe.onDestroy(()=>{null==Tt||Tt.delete(ot),N.unsubscribe()}),Xe.bootstrap(t),Xe})})})}function Xg(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):Zg(ev(w,s))}return qg()}}function qg(e){const t=Va();if(!t)throw new M(401,!1);return t}function ev(e=[],t){return Qr.create({name:t,providers:[{provide:ml,useValue:"platform"},{provide:zu,useValue:new Set([()=>Ir=null])},...e]})}function WD(){var e;null===(e=Va())||void 0===e||e.destroy()}function Va(){var e;return null!==(e=null==Ir?void 0:Ir.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 Ug:("zone.js"===e?void 0:e)||new Ni(t),i}(null==s?void 0:s.ngZone,tv(s)),g=[{provide:Ni,useValue:l}];return l.run(()=>{const C=Qr.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:q=>{I.handleError(q)}});w.onDestroy(()=>{Ha(this._modules,w),N.unsubscribe()})}),nv(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=iv({},s);return Yg(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)(qn(Qr))},e.\u0275prov=lt({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function tv(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!e||!e.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!e||!e.ngZoneRunCoalescing)||!1}}function nv(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 iv(e,t){return Array.isArray(t)?t.reduce(iv,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(()=>{Ni.assertNotInAngularZone(),Vu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,w.next(!0))})})});const N=this._zone.onUnstable.subscribe(()=>{Ni.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=Qg(C)?void 0:this._injector.get(Zo),N=C.create(Qr.NULL,[],s||C.selector,w),q=N.location.nativeElement,Ee=N.injector.get(zg,null);return null==Ee||Ee.registerApplication(q),N.onDestroy(()=>{this.detachView(N.hostView),Ha(this.components,N),null==Ee||Ee.unregisterApplication(q)}),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(Ng,[]).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)(qn(Ni),qn(so),qn(ys))},e.\u0275prov=lt({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ha(e,t){const i=e.indexOf(t);i>-1&&e.splice(i,1)}let ov=!0,sv=!1;function YD(){return sv=!0,ov}function QD(){if(sv)throw new Error("Cannot enable prod mode after platform setup.");ov=!1}function ZD(e){const t=Rd(e);if(!t)throw av(e);return new Ra(t)}function JD(e){const t=Rd(e);if(!t)throw av(e);return t}function av(e){return new Error(`No module with ID ${e} loaded`)}let lv=(()=>{class e{}return e.__NG_ELEMENT_ID__=cv,e})();function cv(e){return function XD(e,t,i){if(Ci(e)&&!i){const s=R(e.index,t);return new No(s,s)}return 47&e.type?new No(t[16],t):null}(On(),St(),16==(16&e))}class uv extends lv{}class qD extends uv{}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 wm(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(Tu(t)||Em(t))}get context(){return Tu(this.nativeNode)||Dm(this.nativeNode)}get listeners(){return Sm(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function xC(e){const t=hi(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=hi(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=hi(this.nativeNode),i=t?t.lView:null;return null!==i?i[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=hi(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 q=I[1];for(let Ee=1;Ee<I.length-1;Ee++)q+=F(i[C+Ee-1])+I[Ee+1];e[N]=q}else e[N]=i[C]}}(g,l,i,s),g}get attributes(){const t={},i=this.nativeElement;if(!i)return t;const s=hi(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],q=N.name.toLowerCase();-1===C.indexOf(q)&&(t[q]=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 dv(this,t,i,!0),i}queryAllNodes(t){const i=[];return dv(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 dv(e,t,i,s){const l=hi(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 Ar(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),Ci(e)){const I=R(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)&&fv(w,i,s,l,g)}else if(4&e.type){const w=t[e.index];Ku(w[7],i,s,l,g),fv(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 q of N)Ku(q,i,s,l,g);else if(N){const q=w[3];po(q[1].data[N.index],q,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 fv(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 hv{constructor(){}supports(t){return Ts(t)}create(t){return new pv(t)}}const sE=(e,t)=>t;class pv{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<gv(s,l,g)?i:s,w=gv(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,q=I-l;if(N!=q){for(let Xe=0;Xe<N;Xe++){const ot=Xe<g.length?g[Xe]:g[Xe]=0,Tt=ot+Xe;q<=Tt&&Tt<N&&(g[Xe]=ot+1)}g[C.previousIndex]=q-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 mv),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 mv),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 mv{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 gv(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 vv{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 yv(){return new Ju([new hv])}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||yv()),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=lt({token:e,providedIn:"root",factory:yv}),e})();function _v(){return new Xu([new vv])}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||_v()),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=lt({token:e,providedIn:"root",factory:_v}),e})();const dE=[new vv],hE=new Ju([new hv]),pE=new Xu(dE),mE=Xg(null,"core",[]);let gE=(()=>{class e{constructor(i){}}return e.\u0275fac=function(i){return new(i||e)(qn($a))},e.\u0275mod=ye({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 ii().compileDirectiveDeclaration(bi,`ng:///${e.type.name}/\u0275fac.js`,e)}function bE(e){var t,i;Im(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 ii().compileComponentDeclaration(bi,`ng:///${e.type.name}/\u0275cmp.js`,e)}function DE(e){return ii(function EE(e){switch(e){case ni.Directive:return"directive";case ni.Component:return"component";case ni.Injectable:return"injectable";case ni.Pipe:return"pipe";case ni.NgModule:return"NgModule"}}(e.target)).compileFactoryDeclaration(bi,`ng:///${e.type.name}/\u0275fac.js`,e)}function TE(e){return ii().compileInjectableDeclaration(bi,`ng:///${e.type.name}/\u0275prov.js`,e)}function wE(e){return ii().compileInjectorDeclaration(bi,`ng:///${e.type.name}/\u0275inj.js`,e)}function ME(e){return ii().compileNgModuleDeclaration(bi,`ng:///${e.type.name}/\u0275mod.js`,e)}function SE(e){return ii().compilePipeDeclaration(bi,`ng:///${e.type.name}/\u0275pipe.js`,e)}function IE(e,t){const i=ve(e),s=t.elementInjector||ra();return new Lo(i).create(s,t.projectableNodes,t.hostElement,t.environmentInjector)}function OE(e){const t=ve(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:($,o,a)=>{"use strict";a.r(o),a.d(o,{AbstractControl:()=>se,AbstractControlDirective:()=>Ue,AbstractFormGroupDirective:()=>In,COMPOSITION_BUFFER_MODE:()=>y,CheckboxControlValueAccessor:()=>d,CheckboxRequiredValidator:()=>wi,ControlContainer:()=>Ne,DefaultValueAccessor:()=>E,EmailValidator:()=>te,FormArray:()=>xn,FormArrayName:()=>Hi,FormBuilder:()=>ai,FormControl:()=>Jt,FormControlDirective:()=>Si,FormControlName:()=>Ei,FormGroup:()=>ve,FormGroupDirective:()=>Ii,FormGroupName:()=>Oi,FormRecord:()=>$t,FormsModule:()=>Bn,MaxLengthValidator:()=>vt,MaxValidator:()=>ci,MinLengthValidator:()=>le,MinValidator:()=>jn,NG_ASYNC_VALIDATORS:()=>Q,NG_VALIDATORS:()=>j,NG_VALUE_ACCESSOR:()=>h,NgControl:()=>Ae,NgControlStatus:()=>Ve,NgControlStatusGroup:()=>z,NgForm:()=>qt,NgModel:()=>Bi,NgModelGroup:()=>ji,NgSelectOption:()=>Ai,NonNullableFormBuilder:()=>Pr,NumberValueAccessor:()=>Qn,PatternValidator:()=>Ot,RadioControlValueAccessor:()=>Di,RangeValueAccessor:()=>Ji,ReactiveFormsModule:()=>Cn,RequiredValidator:()=>Wi,SelectControlValueAccessor:()=>gi,SelectMultipleControlValueAccessor:()=>si,UntypedFormArray:()=>vi,UntypedFormBuilder:()=>On,UntypedFormControl:()=>Fn,UntypedFormGroup:()=>tt,VERSION:()=>Rr,Validators:()=>Y,\u0275InternalFormsSharedModule:()=>hn,\u0275NgNoValidate:()=>mr,\u0275NgSelectMultipleOption:()=>or});var n=a(5e3),p=a(9808),b=a(2076),u=a(4128),r=a(4004);let c=(()=>{class k{constructor(S,ne){this._renderer=S,this._elementRef=ne,this.onChange=gt=>{},this.onTouched=()=>{}}setProperty(S,ne){this._renderer.setProperty(this._elementRef.nativeElement,S,ne)}registerOnTouched(S){this.onTouched=S}registerOnChange(S){this.onChange=S}setDisabledState(S){this.setProperty("disabled",S)}}return k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k}),k})(),f=(()=>{class k extends c{}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,features:[n.\u0275\u0275InheritDefinitionFeature]}),k})();const h=new n.InjectionToken("NgValueAccessor"),m={provide:h,useExisting:(0,n.forwardRef)(()=>d),multi:!0};let d=(()=>{class k extends f{writeValue(S){this.setProperty("checked",S)}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(S,ne){1&S&&n.\u0275\u0275listener("change",function(Vt){return ne.onChange(Vt.target.checked)})("blur",function(){return ne.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([m]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const _={provide:h,useExisting:(0,n.forwardRef)(()=>E),multi:!0},y=new n.InjectionToken("CompositionEventMode");let E=(()=>{class k extends c{constructor(S,ne,gt){super(S,ne),this._compositionMode=gt,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function v(){const k=(0,p.\u0275getDOM)()?(0,p.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(k.toLowerCase())}())}writeValue(S){this.setProperty("value",null==S?"":S)}_handleInput(S){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(S)}_compositionStart(){this._composing=!0}_compositionEnd(S){this._composing=!1,this._compositionMode&&this.onChange(S)}}return k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(y,8))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(S,ne){1&S&&n.\u0275\u0275listener("input",function(Vt){return ne._handleInput(Vt.target.value)})("blur",function(){return ne.onTouched()})("compositionstart",function(){return ne._compositionStart()})("compositionend",function(Vt){return ne._compositionEnd(Vt.target.value)})},features:[n.\u0275\u0275ProvidersFeature([_]),n.\u0275\u0275InheritDefinitionFeature]}),k})();function A(k){return null==k||("string"==typeof k||Array.isArray(k))&&0===k.length}function F(k){return null!=k&&"number"==typeof k.length}const j=new n.InjectionToken("NgValidators"),Q=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 Y{static min(O){return B(O)}static max(O){return ee(O)}static required(O){return ie(O)}static requiredTrue(O){return he(O)}static email(O){return Me(O)}static minLength(O){return qe(O)}static maxLength(O){return G(O)}static pattern(O){return Z(O)}static nullValidator(O){return null}static compose(O){return Oe(O)}static composeAsync(O){return Et(O)}}function B(k){return O=>{if(A(O.value)||A(k))return null;const S=parseFloat(O.value);return!isNaN(S)&&S<k?{min:{min:k,actual:O.value}}:null}}function ee(k){return O=>{if(A(O.value)||A(k))return null;const S=parseFloat(O.value);return!isNaN(S)&&S>k?{max:{max:k,actual:O.value}}:null}}function ie(k){return A(k.value)?{required:!0}:null}function he(k){return!0===k.value?null:{required:!0}}function Me(k){return A(k.value)||U.test(k.value)?null:{email:!0}}function qe(k){return O=>A(O.value)||!F(O.value)?null:O.value.length<k?{minlength:{requiredLength:k,actualLength:O.value.length}}:null}function G(k){return O=>F(O.value)&&O.value.length>k?{maxlength:{requiredLength:k,actualLength:O.value.length}}:null}function Z(k){if(!k)return V;let O,S;return"string"==typeof k?(S="","^"!==k.charAt(0)&&(S+="^"),S+=k,"$"!==k.charAt(k.length-1)&&(S+="$"),O=new RegExp(S)):(S=k.toString(),O=k),ne=>{if(A(ne.value))return null;const gt=ne.value;return O.test(gt)?null:{pattern:{requiredPattern:S,actualValue:gt}}}}function V(k){return null}function J(k){return null!=k}function _e(k){return(0,n.\u0275isPromise)(k)?(0,b.D)(k):k}function De(k){let O={};return k.forEach(S=>{O=null!=S?Object.assign(Object.assign({},O),S):O}),0===Object.keys(O).length?null:O}function it(k,O){return O.map(S=>S(k))}function yt(k){return k.map(O=>function rt(k){return!k.validate}(O)?O:S=>O.validate(S))}function Oe(k){if(!k)return null;const O=k.filter(J);return 0==O.length?null:function(S){return De(it(S,O))}}function ft(k){return null!=k?Oe(yt(k)):null}function Et(k){if(!k)return null;const O=k.filter(J);return 0==O.length?null:function(S){const ne=it(S,O).map(_e);return(0,u.D)(ne).pipe((0,r.U)(De))}}function et(k){return null!=k?Et(yt(k)):null}function lt(k,O){return null===k?[O]:Array.isArray(k)?[...k,O]:[k,O]}function Ge(k){return k._rawValidators}function nt(k){return k._rawAsyncValidators}function wt(k){return k?Array.isArray(k)?k:[k]:[]}function Ct(k,O){return Array.isArray(k)?k.includes(O):k===O}function st(k,O){const S=wt(O);return wt(k).forEach(gt=>{Ct(S,gt)||S.push(gt)}),S}function It(k,O){return wt(O).filter(S=>!Ct(k,S))}class Ue{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 Ue{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ne extends Ue{get formDirective(){return null}get path(){return null}}class fe{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 Ve=(()=>{class k extends fe{constructor(S){super(S)}}return k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(Ae,2))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(S,ne){2&S&&n.\u0275\u0275classProp("ng-untouched",ne.isUntouched)("ng-touched",ne.isTouched)("ng-pristine",ne.isPristine)("ng-dirty",ne.isDirty)("ng-valid",ne.isValid)("ng-invalid",ne.isInvalid)("ng-pending",ne.isPending)},features:[n.\u0275\u0275InheritDefinitionFeature]}),k})(),z=(()=>{class k extends fe{constructor(S){super(S)}}return k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(Ne,10))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(S,ne){2&S&&n.\u0275\u0275classProp("ng-untouched",ne.isUntouched)("ng-touched",ne.isTouched)("ng-pristine",ne.isPristine)("ng-dirty",ne.isDirty)("ng-valid",ne.isValid)("ng-invalid",ne.isInvalid)("ng-pending",ne.isPending)("ng-submitted",ne.isSubmitted)},features:[n.\u0275\u0275InheritDefinitionFeature]}),k})();const Ye="VALID",Be="INVALID",ge="PENDING",ue="DISABLED";function re(k){return(dt(k)?k.validators:k)||null}function oe(k){return Array.isArray(k)?ft(k):k||null}function L(k,O){return(dt(O)?O.asyncValidators:k)||null}function ye(k){return Array.isArray(k)?et(k):k||null}function dt(k){return null!=k&&!Array.isArray(k)&&"object"==typeof k}function ke(k,O,S){const ne=k.controls;if(!(O?Object.keys(ne):ne).length)throw new n.\u0275RuntimeError(1e3,"");if(!ne[S])throw new n.\u0275RuntimeError(1001,"")}function ht(k,O,S){k._forEachChild((ne,gt)=>{if(void 0===S[gt])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=ye(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===Ye}get invalid(){return this.status===Be}get pending(){return this.status==ge}get disabled(){return this.status===ue}get enabled(){return this.status!==ue}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=ye(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=ge,!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=ue,this.errors=null,this._forEachChild(ne=>{ne.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(ne=>ne(!0))}enable(O={}){const S=this._parentMarkedDirty(O.onlySelf);this.status=Ye,this._forEachChild(ne=>{ne.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(ne=>ne(!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===Ye||this.status===ge)&&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()?ue:Ye}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(O){if(this.asyncValidator){this.status=ge,this._hasOwnPendingAsyncValidator=!0;const S=_e(this.asyncValidator(this));this._asyncValidationSubscription=S.subscribe(ne=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ne,{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((ne,gt)=>ne&&ne._find(gt),this)}getError(O,S){const ne=S?this.get(S):this;return ne&&ne.errors?ne.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()?ue:this.errors?Be:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ge)?ge:this._anyControlsHaveStatus(Be)?Be:Ye}_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){dt(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 ve extends se{constructor(O,S,ne){super(re(S),L(ne,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,ne={}){this.registerControl(O,S),this.updateValueAndValidity({emitEvent:ne.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,ne={}){this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),delete this.controls[O],S&&this.registerControl(O,S),this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}contains(O){return this.controls.hasOwnProperty(O)&&this.controls[O].enabled}setValue(O,S={}){ht(this,0,O),Object.keys(O).forEach(ne=>{ke(this,!0,ne),this.controls[ne].setValue(O[ne],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(O,S={}){null!=O&&(Object.keys(O).forEach(ne=>{const gt=this.controls[ne];gt&&gt.patchValue(O[ne],{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(O={},S={}){this._forEachChild((ne,gt)=>{ne.reset(O[gt],{onlySelf:!0,emitEvent:S.emitEvent})}),this._updatePristine(S),this._updateTouched(S),this.updateValueAndValidity(S)}getRawValue(){return this._reduceChildren({},(O,S,ne)=>(O[ne]=S.getRawValue(),O))}_syncPendingControls(){let O=this._reduceChildren(!1,(S,ne)=>!!ne._syncPendingControls()||S);return O&&this.updateValueAndValidity({onlySelf:!0}),O}_forEachChild(O){Object.keys(this.controls).forEach(S=>{const ne=this.controls[S];ne&&O(ne,S)})}_setUpControls(){this._forEachChild(O=>{O.setParent(this),O._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(O){for(const[S,ne]of Object.entries(this.controls))if(this.contains(S)&&O(ne))return!0;return!1}_reduceValue(){return this._reduceChildren({},(S,ne,gt)=>((ne.enabled||this.disabled)&&(S[gt]=ne.value),S))}_reduceChildren(O,S){let ne=O;return this._forEachChild((gt,Vt)=>{ne=S(ne,gt,Vt)}),ne}_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 tt=ve;class $t extends ve{}function nn(k,O){return[...O.path,k]}function yn(k,O){var S,ne;Qe(k,O),O.valueAccessor.writeValue(k.value),k.disabled&&(null===(ne=(S=O.valueAccessor).setDisabledState)||void 0===ne||ne.call(S,!0)),function _t(k,O){O.valueAccessor.registerOnChange(S=>{k._pendingValue=S,k._pendingChange=!0,k._pendingDirty=!0,"change"===k.updateOn&&Ht(k,O)})}(k,O),function fn(k,O){const S=(ne,gt)=>{O.valueAccessor.writeValue(ne),gt&&O.viewToModelUpdate(ne)};k.registerOnChange(S),O._registerOnDestroy(()=>{k._unregisterOnChange(S)})}(k,O),function xt(k,O){O.valueAccessor.registerOnTouched(()=>{k._pendingTouched=!0,"blur"===k.updateOn&&k._pendingChange&&Ht(k,O),"submit"!==k.updateOn&&k.markAsTouched()})}(k,O),function de(k,O){if(O.valueAccessor.setDisabledState){const S=ne=>{O.valueAccessor.setDisabledState(ne)};k.registerOnDisabledChange(S),O._registerOnDestroy(()=>{k._unregisterOnDisabledChange(S)})}}(k,O)}function He(k,O,S=!0){const ne=()=>{};O.valueAccessor&&(O.valueAccessor.registerOnChange(ne),O.valueAccessor.registerOnTouched(ne)),mt(k,O),k&&(O._invokeOnDestroyCallbacks(),k._registerOnCollectionChange(()=>{}))}function $e(k,O){k.forEach(S=>{S.registerOnValidatorChange&&S.registerOnValidatorChange(O)})}function Qe(k,O){const S=Ge(k);null!==O.validator?k.setValidators(lt(S,O.validator)):"function"==typeof S&&k.setValidators([S]);const ne=nt(k);null!==O.asyncValidator?k.setAsyncValidators(lt(ne,O.asyncValidator)):"function"==typeof ne&&k.setAsyncValidators([ne]);const gt=()=>k.updateValueAndValidity();$e(O._rawValidators,gt),$e(O._rawAsyncValidators,gt)}function mt(k,O){let S=!1;if(null!==k){if(null!==O.validator){const gt=Ge(k);if(Array.isArray(gt)&&gt.length>0){const Vt=gt.filter(Gn=>Gn!==O.validator);Vt.length!==gt.length&&(S=!0,k.setValidators(Vt))}}if(null!==O.asyncValidator){const gt=nt(k);if(Array.isArray(gt)&&gt.length>0){const Vt=gt.filter(Gn=>Gn!==O.asyncValidator);Vt.length!==gt.length&&(S=!0,k.setAsyncValidators(Vt))}}}const ne=()=>{};return $e(O._rawValidators,ne),$e(O._rawAsyncValidators,ne),S}function Ht(k,O){k._pendingDirty&&k.markAsDirty(),k.setValue(k._pendingValue,{emitModelToViewChange:!1}),O.viewToModelUpdate(k._pendingValue),k._pendingChange=!1}function An(k,O){Qe(k,O)}function Ze(k,O){if(!k.hasOwnProperty("model"))return!1;const S=k.model;return!!S.isFirstChange()||!Object.is(O,S.currentValue)}function Ft(k,O){k._syncPendingControls(),O.forEach(S=>{const ne=S.control;"submit"===ne.updateOn&&ne._pendingChange&&(S.viewToModelUpdate(ne._pendingValue),ne._pendingChange=!1)})}function Zt(k,O){if(!O)return null;let S,ne,gt;return Array.isArray(O),O.forEach(Vt=>{Vt.constructor===E?S=Vt:function Dt(k){return Object.getPrototypeOf(k.constructor)===f}(Vt)?ne=Vt:gt=Vt}),gt||ne||S||null}const mn={provide:Ne,useExisting:(0,n.forwardRef)(()=>qt)},vn=(()=>Promise.resolve(null))();let qt=(()=>{class k extends Ne{constructor(S,ne){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.EventEmitter,this.form=new ve({},ft(S),et(ne))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(S){vn.then(()=>{const ne=this._findContainer(S.path);S.control=ne.registerControl(S.name,S.control),yn(S.control,S),S.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(S)})}getControl(S){return this.form.get(S.path)}removeControl(S){vn.then(()=>{const ne=this._findContainer(S.path);ne&&ne.removeControl(S.name),this._directives.delete(S)})}addFormGroup(S){vn.then(()=>{const ne=this._findContainer(S.path),gt=new ve({});An(gt,S),ne.registerControl(S.name,gt),gt.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(S){vn.then(()=>{const ne=this._findContainer(S.path);ne&&ne.removeControl(S.name)})}getFormGroup(S){return this.form.get(S.path)}updateModel(S,ne){vn.then(()=>{this.form.get(S.path).setValue(ne)})}setValue(S){this.control.setValue(S)}onSubmit(S){return this.submitted=!0,Ft(this.form,this._directives),this.ngSubmit.emit(S),!1}onReset(){this.resetForm()}resetForm(S){this.form.reset(S),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(S){return S.pop(),S.length?this.form.get(S):this.form}}return k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Q,10))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(S,ne){1&S&&n.\u0275\u0275listener("submit",function(Vt){return ne.onSubmit(Vt)})("reset",function(){return ne.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([mn]),n.\u0275\u0275InheritDefinitionFeature]}),k})();function Rn(k,O){const S=k.indexOf(O);S>-1&&k.splice(S,1)}function ei(k){return"object"==typeof k&&null!==k&&2===Object.keys(k).length&&"value"in k&&"disabled"in k}const Jt=class extends se{constructor(O=null,S,ne){super(re(S),L(ne,S)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(O),this._setUpdateStrategy(S),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),dt(S)&&(S.nonNullable||S.initialValueIsDefault)&&(this.defaultValue=ei(O)?O.value:O)}setValue(O,S={}){this.value=this._pendingValue=O,this._onChange.length&&!1!==S.emitModelToViewChange&&this._onChange.forEach(ne=>ne(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){ei(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}},Fn=Jt;let In=(()=>{class k extends Ne{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 k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,features:[n.\u0275\u0275InheritDefinitionFeature]}),k})();const Hn={provide:Ne,useExisting:(0,n.forwardRef)(()=>ji)};let ji=(()=>{class k extends In{constructor(S,ne,gt){super(),this._parent=S,this._setValidators(ne),this._setAsyncValidators(gt)}_checkParentType(){}}return k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(Ne,5),n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Q,10))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[n.\u0275\u0275ProvidersFeature([Hn]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const Mi={provide:Ae,useExisting:(0,n.forwardRef)(()=>Bi)},Zi=(()=>Promise.resolve(null))();let Bi=(()=>{class k extends Ae{constructor(S,ne,gt,Vt,Gn){super(),this._changeDetectorRef=Gn,this.control=new Jt,this._registered=!1,this.update=new n.EventEmitter,this._parent=S,this._setValidators(ne),this._setAsyncValidators(gt),this.valueAccessor=Zt(0,Vt)}ngOnChanges(S){if(this._checkForErrors(),!this._registered||"name"in S){if(this._registered&&(this._checkName(),this.formDirective)){const ne=S.name.previousValue;this.formDirective.removeControl({name:ne,path:this._getPath(ne)})}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(){yn(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){Zi.then(()=>{var ne;this.control.setValue(S,{emitViewToModelChange:!1}),null===(ne=this._changeDetectorRef)||void 0===ne||ne.markForCheck()})}_updateDisabled(S){const ne=S.isDisabled.currentValue,gt=0!==ne&&(0,n.\u0275coerceToBoolean)(ne);Zi.then(()=>{var Vt;gt&&!this.control.disabled?this.control.disable():!gt&&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 k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(Ne,9),n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Q,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(n.ChangeDetectorRef,8))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n.\u0275\u0275ProvidersFeature([Mi]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),k})(),mr=(()=>{class k{}return k.\u0275fac=function(S){return new(S||k)},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),k})();const Xr={provide:h,useExisting:(0,n.forwardRef)(()=>Qn),multi:!0};let Qn=(()=>{class k extends f{writeValue(S){this.setProperty("value",null==S?"":S)}registerOnChange(S){this.onChange=ne=>{S(""==ne?null:parseFloat(ne))}}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(S,ne){1&S&&n.\u0275\u0275listener("input",function(Vt){return ne.onChange(Vt.target.value)})("blur",function(){return ne.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Xr]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const gr={provide:h,useExisting:(0,n.forwardRef)(()=>Di),multi:!0};let Vi=(()=>{class k{}return k.\u0275fac=function(S){return new(S||k)},k.\u0275mod=n.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=n.\u0275\u0275defineInjector({}),k})(),vr=(()=>{class k{constructor(){this._accessors=[]}add(S,ne){this._accessors.push([S,ne])}remove(S){for(let ne=this._accessors.length-1;ne>=0;--ne)if(this._accessors[ne][1]===S)return void this._accessors.splice(ne,1)}select(S){this._accessors.forEach(ne=>{this._isSameGroup(ne,S)&&ne[1]!==S&&ne[1].fireUncheck(S.value)})}_isSameGroup(S,ne){return!!S[0].control&&S[0]._parent===ne._control._parent&&S[1].name===ne.name}}return k.\u0275fac=function(S){return new(S||k)},k.\u0275prov=n.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:Vi}),k})(),Di=(()=>{class k extends f{constructor(S,ne,gt,Vt){super(S,ne),this._registry=gt,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 k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(vr),n.\u0275\u0275directiveInject(n.Injector))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(S,ne){1&S&&n.\u0275\u0275listener("change",function(){return ne.onChange()})("blur",function(){return ne.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n.\u0275\u0275ProvidersFeature([gr]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const Or={provide:h,useExisting:(0,n.forwardRef)(()=>Ji),multi:!0};let Ji=(()=>{class k extends f{writeValue(S){this.setProperty("value",parseFloat(S))}registerOnChange(S){this.onChange=ne=>{S(""==ne?null:parseFloat(ne))}}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(S,ne){1&S&&n.\u0275\u0275listener("change",function(Vt){return ne.onChange(Vt.target.value)})("input",function(Vt){return ne.onChange(Vt.target.value)})("blur",function(){return ne.onTouched()})},features:[n.\u0275\u0275ProvidersFeature([Or]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const Xi=new n.InjectionToken("NgModelWithFormControlWarning"),$r={provide:Ae,useExisting:(0,n.forwardRef)(()=>Si)};let Si=(()=>{class k extends Ae{constructor(S,ne,gt,Vt){super(),this._ngModelWarningConfig=Vt,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(S),this._setAsyncValidators(ne),this.valueAccessor=Zt(0,gt)}set isDisabled(S){}ngOnChanges(S){if(this._isControlChanged(S)){const ne=S.form.previousValue;ne&&He(ne,this,!1),yn(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})}Ze(S,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&He(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(S){this.viewModel=S,this.update.emit(S)}_isControlChanged(S){return S.hasOwnProperty("form")}}return k._ngModelWarningSentOnce=!1,k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Q,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(Xi,8))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([$r]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),k})();const Hr={provide:Ne,useExisting:(0,n.forwardRef)(()=>Ii)};let Ii=(()=>{class k extends Ne{constructor(S,ne){super(),this.validators=S,this.asyncValidators=ne,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new n.EventEmitter,this._setValidators(S),this._setAsyncValidators(ne)}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 ne=this.form.get(S.path);return yn(ne,S),ne.updateValueAndValidity({emitEvent:!1}),this.directives.push(S),ne}getControl(S){return this.form.get(S.path)}removeControl(S){He(S.control||null,S,!1),function Qt(k,O){const S=k.indexOf(O);S>-1&&k.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,ne){this.form.get(S.path).setValue(ne)}onSubmit(S){return this.submitted=!0,Ft(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 ne=S.control,gt=this.form.get(S.path);ne!==gt&&(He(ne||null,S),(k=>k instanceof Jt)(gt)&&(yn(gt,S),S.control=gt))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(S){const ne=this.form.get(S.path);An(ne,S),ne.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(S){if(this.form){const ne=this.form.get(S.path);ne&&function _n(k,O){return mt(k,O)}(ne,S)&&ne.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Qe(this.form,this),this._oldForm&&mt(this._oldForm,this)}_checkFormPresent(){}}return k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Q,10))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","formGroup",""]],hostBindings:function(S,ne){1&S&&n.\u0275\u0275listener("submit",function(Vt){return ne.onSubmit(Vt)})("reset",function(){return ne.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n.\u0275\u0275ProvidersFeature([Hr]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),k})();const $i={provide:Ne,useExisting:(0,n.forwardRef)(()=>Oi)};let Oi=(()=>{class k extends In{constructor(S,ne,gt){super(),this._parent=S,this._setValidators(ne),this._setAsyncValidators(gt)}_checkParentType(){li(this._parent)}}return k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(Ne,13),n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Q,10))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[n.\u0275\u0275ProvidersFeature([$i]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const qi={provide:Ne,useExisting:(0,n.forwardRef)(()=>Hi)};let Hi=(()=>{class k extends Ne{constructor(S,ne,gt){super(),this._parent=S,this._setValidators(ne),this._setAsyncValidators(gt)}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(){li(this._parent)}}return k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(Ne,13),n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Q,10))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[n.\u0275\u0275ProvidersFeature([qi]),n.\u0275\u0275InheritDefinitionFeature]}),k})();function li(k){return!(k instanceof Oi||k instanceof Ii||k instanceof Hi)}const er={provide:Ae,useExisting:(0,n.forwardRef)(()=>Ei)};let Ei=(()=>{class k extends Ae{constructor(S,ne,gt,Vt,Gn){super(),this._ngModelWarningConfig=Gn,this._added=!1,this.update=new n.EventEmitter,this._ngModelWarningSent=!1,this._parent=S,this._setValidators(ne),this._setAsyncValidators(gt),this.valueAccessor=Zt(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 k._ngModelWarningSentOnce=!1,k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(Ne,13),n.\u0275\u0275directiveInject(j,10),n.\u0275\u0275directiveInject(Q,10),n.\u0275\u0275directiveInject(h,10),n.\u0275\u0275directiveInject(Xi,8))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[n.\u0275\u0275ProvidersFeature([er]),n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),k})();const tr={provide:h,useExisting:(0,n.forwardRef)(()=>gi),multi:!0};function nr(k,O){return null==k?`${O}`:(O&&"object"==typeof O&&(O="Object"),`${k}: ${O}`.slice(0,50))}let gi=(()=>{class k 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 gt=nr(this._getOptionId(S),S);this.setProperty("value",gt)}registerOnChange(S){this.onChange=ne=>{this.value=this._getOptionValue(ne),S(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(S){for(const ne of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ne),S))return ne;return null}_getOptionValue(S){const ne=function ir(k){return k.split(":")[0]}(S);return this._optionMap.has(ne)?this._optionMap.get(ne):S}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(S,ne){1&S&&n.\u0275\u0275listener("change",function(Vt){return ne.onChange(Vt.target.value)})("blur",function(){return ne.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([tr]),n.\u0275\u0275InheritDefinitionFeature]}),k})(),Ai=(()=>{class k{constructor(S,ne,gt){this._element=S,this._renderer=ne,this._select=gt,this._select&&(this.id=this._select._registerOption())}set ngValue(S){null!=this._select&&(this._select._optionMap.set(this.id,S),this._setElementValue(nr(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._setElementValue(S),this._select&&this._select.writeValue(this._select.value)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(gi,9))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),k})();const Ur={provide:h,useExisting:(0,n.forwardRef)(()=>si),multi:!0};function Ui(k,O){return null==k?`${O}`:("string"==typeof O&&(O=`'${O}'`),O&&"object"==typeof O&&(O="Object"),`${k}: ${O}`.slice(0,50))}let si=(()=>{class k 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 ne;if(this.value=S,Array.isArray(S)){const gt=S.map(Vt=>this._getOptionId(Vt));ne=(Vt,Gn)=>{Vt._setSelected(gt.indexOf(Gn.toString())>-1)}}else ne=(gt,Vt)=>{gt._setSelected(!1)};this._optionMap.forEach(ne)}registerOnChange(S){this.onChange=ne=>{const gt=[],Vt=ne.selectedOptions;if(void 0!==Vt){const Gn=Vt;for(let yi=0;yi<Gn.length;yi++){const ui=this._getOptionValue(Gn[yi].value);gt.push(ui)}}else{const Gn=ne.options;for(let yi=0;yi<Gn.length;yi++){const Vn=Gn[yi];if(Vn.selected){const ui=this._getOptionValue(Vn.value);gt.push(ui)}}}this.value=gt,S(gt)}}_registerOption(S){const ne=(this._idCounter++).toString();return this._optionMap.set(ne,S),ne}_getOptionId(S){for(const ne of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(ne)._value,S))return ne;return null}_getOptionValue(S){const ne=function rr(k){return k.split(":")[0]}(S);return this._optionMap.has(ne)?this._optionMap.get(ne)._value:S}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(S,ne){1&S&&n.\u0275\u0275listener("change",function(Vt){return ne.onChange(Vt.target)})("blur",function(){return ne.onTouched()})},inputs:{compareWith:"compareWith"},features:[n.\u0275\u0275ProvidersFeature([Ur]),n.\u0275\u0275InheritDefinitionFeature]}),k})(),or=(()=>{class k{constructor(S,ne,gt){this._element=S,this._renderer=ne,this._select=gt,this._select&&(this.id=this._select._registerOption(this))}set ngValue(S){null!=this._select&&(this._value=S,this._setElementValue(Ui(this.id,S)),this._select.writeValue(this._select.value))}set value(S){this._select?(this._value=S,this._setElementValue(Ui(this.id,S)),this._select.writeValue(this._select.value)):this._setElementValue(S)}_setElementValue(S){this._renderer.setProperty(this._element.nativeElement,"value",S)}_setSelected(S){this._renderer.setProperty(this._element.nativeElement,"selected",S)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return k.\u0275fac=function(S){return new(S||k)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(si,9))},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),k})();function zi(k){return"number"==typeof k?k:parseInt(k,10)}function yr(k){return"number"==typeof k?k:parseFloat(k)}let Ti=(()=>{class k{constructor(){this._validator=V}ngOnChanges(S){if(this.inputName in S){const ne=this.normalizeInput(S[this.inputName].currentValue);this._enabled=this.enabled(ne),this._validator=this._enabled?this.createValidator(ne):V,this._onChange&&this._onChange()}}validate(S){return this._validator(S)}registerOnValidatorChange(S){this._onChange=S}enabled(S){return null!=S}}return k.\u0275fac=function(S){return new(S||k)},k.\u0275dir=n.\u0275\u0275defineDirective({type:k,features:[n.\u0275\u0275NgOnChangesFeature]}),k})();const wn={provide:j,useExisting:(0,n.forwardRef)(()=>ci),multi:!0};let ci=(()=>{class k extends Ti{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=S=>yr(S),this.createValidator=S=>ee(S)}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(S,ne){2&S&&n.\u0275\u0275attribute("max",ne._enabled?ne.max:null)},inputs:{max:"max"},features:[n.\u0275\u0275ProvidersFeature([wn]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const Ln={provide:j,useExisting:(0,n.forwardRef)(()=>jn),multi:!0};let jn=(()=>{class k extends Ti{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=S=>yr(S),this.createValidator=S=>B(S)}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(S,ne){2&S&&n.\u0275\u0275attribute("min",ne._enabled?ne.min:null)},inputs:{min:"min"},features:[n.\u0275\u0275ProvidersFeature([Ln]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const Dn={provide:j,useExisting:(0,n.forwardRef)(()=>Wi),multi:!0},Ar={provide:j,useExisting:(0,n.forwardRef)(()=>wi),multi:!0};let Wi=(()=>{class k extends Ti{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.\u0275coerceToBoolean,this.createValidator=S=>ie}enabled(S){return S}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(S,ne){2&S&&n.\u0275\u0275attribute("required",ne._enabled?"":null)},inputs:{required:"required"},features:[n.\u0275\u0275ProvidersFeature([Dn]),n.\u0275\u0275InheritDefinitionFeature]}),k})(),wi=(()=>{class k extends Wi{constructor(){super(...arguments),this.createValidator=S=>he}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(S,ne){2&S&&n.\u0275\u0275attribute("required",ne._enabled?"":null)},features:[n.\u0275\u0275ProvidersFeature([Ar]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const R={provide:j,useExisting:(0,n.forwardRef)(()=>te),multi:!0};let te=(()=>{class k extends Ti{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=n.\u0275coerceToBoolean,this.createValidator=S=>Me}enabled(S){return S}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[n.\u0275\u0275ProvidersFeature([R]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const x={provide:j,useExisting:(0,n.forwardRef)(()=>le),multi:!0};let le=(()=>{class k extends Ti{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=S=>zi(S),this.createValidator=S=>qe(S)}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(S,ne){2&S&&n.\u0275\u0275attribute("minlength",ne._enabled?ne.minlength:null)},inputs:{minlength:"minlength"},features:[n.\u0275\u0275ProvidersFeature([x]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const je={provide:j,useExisting:(0,n.forwardRef)(()=>vt),multi:!0};let vt=(()=>{class k extends Ti{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=S=>zi(S),this.createValidator=S=>G(S)}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(S,ne){2&S&&n.\u0275\u0275attribute("maxlength",ne._enabled?ne.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n.\u0275\u0275ProvidersFeature([je]),n.\u0275\u0275InheritDefinitionFeature]}),k})();const Mt={provide:j,useExisting:(0,n.forwardRef)(()=>Ot),multi:!0};let Ot=(()=>{class k extends Ti{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=S=>S,this.createValidator=S=>Z(S)}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275dir=n.\u0275\u0275defineDirective({type:k,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(S,ne){2&S&&n.\u0275\u0275attribute("pattern",ne._enabled?ne.pattern:null)},inputs:{pattern:"pattern"},features:[n.\u0275\u0275ProvidersFeature([Mt]),n.\u0275\u0275InheritDefinitionFeature]}),k})(),hn=(()=>{class k{}return k.\u0275fac=function(S){return new(S||k)},k.\u0275mod=n.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=n.\u0275\u0275defineInjector({imports:[Vi]}),k})(),Bn=(()=>{class k{}return k.\u0275fac=function(S){return new(S||k)},k.\u0275mod=n.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=n.\u0275\u0275defineInjector({imports:[hn]}),k})(),Cn=(()=>{class k{static withConfig(S){return{ngModule:k,providers:[{provide:Xi,useValue:S.warnOnNgModelWithFormControl}]}}}return k.\u0275fac=function(S){return new(S||k)},k.\u0275mod=n.\u0275\u0275defineNgModule({type:k}),k.\u0275inj=n.\u0275\u0275defineInjector({imports:[hn]}),k})();class xn extends se{constructor(O,S,ne){super(re(S),L(ne,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,ne={}){this.controls.splice(O,0,S),this._registerControl(S),this.updateValueAndValidity({emitEvent:ne.emitEvent})}removeAt(O,S={}){let ne=this._adjustIndex(O);ne<0&&(ne=0),this.controls[ne]&&this.controls[ne]._registerOnCollectionChange(()=>{}),this.controls.splice(ne,1),this.updateValueAndValidity({emitEvent:S.emitEvent})}setControl(O,S,ne={}){let gt=this._adjustIndex(O);gt<0&&(gt=0),this.controls[gt]&&this.controls[gt]._registerOnCollectionChange(()=>{}),this.controls.splice(gt,1),S&&(this.controls.splice(gt,0,S),this._registerControl(S)),this.updateValueAndValidity({emitEvent:ne.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(O,S={}){ht(this,0,O),O.forEach((ne,gt)=>{ke(this,!1,gt),this.at(gt).setValue(ne,{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S)}patchValue(O,S={}){null!=O&&(O.forEach((ne,gt)=>{this.at(gt)&&this.at(gt).patchValue(ne,{onlySelf:!0,emitEvent:S.emitEvent})}),this.updateValueAndValidity(S))}reset(O=[],S={}){this._forEachChild((ne,gt)=>{ne.reset(O[gt],{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,ne)=>!!ne._syncPendingControls()||S,!1);return O&&this.updateValueAndValidity({onlySelf:!0}),O}_forEachChild(O){this.controls.forEach((S,ne)=>{O(S,ne)})}_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 vi=xn;function ln(k){return!!k&&(void 0!==k.asyncValidators||void 0!==k.validators||void 0!==k.updateOn)}let ai=(()=>{class k{constructor(){this.useNonNullable=!1}get nonNullable(){const S=new k;return S.useNonNullable=!0,S}group(S,ne=null){const gt=this._reduceControls(S);let Vt={};return ln(ne)?Vt=ne:null!==ne&&(Vt.validators=ne.validator,Vt.asyncValidators=ne.asyncValidator),new ve(gt,Vt)}control(S,ne,gt){let Vt={};return this.useNonNullable?(ln(ne)?Vt=ne:(Vt.validators=ne,Vt.asyncValidators=gt),new Jt(S,Object.assign(Object.assign({},Vt),{nonNullable:!0}))):new Jt(S,ne,gt)}array(S,ne,gt){const Vt=S.map(Gn=>this._createControl(Gn));return new xn(Vt,ne,gt)}_reduceControls(S){const ne={};return Object.keys(S).forEach(gt=>{ne[gt]=this._createControl(S[gt])}),ne}_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 k.\u0275fac=function(S){return new(S||k)},k.\u0275prov=n.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:Cn}),k})(),Pr=(()=>{class k{}return k.\u0275fac=function(S){return new(S||k)},k.\u0275prov=n.\u0275\u0275defineInjectable({token:k,factory:function(){return(0,n.inject)(ai).nonNullable},providedIn:Cn}),k})(),On=(()=>{class k extends ai{group(S,ne=null){return super.group(S,ne)}control(S,ne,gt){return super.control(S,ne,gt)}array(S,ne,gt){return super.array(S,ne,gt)}}return k.\u0275fac=function(){let O;return function(ne){return(O||(O=n.\u0275\u0275getInheritedFactory(k)))(ne||k)}}(),k.\u0275prov=n.\u0275\u0275defineInjectable({token:k,factory:k.\u0275fac,providedIn:Cn}),k})();const Rr=new n.Version("14.1.1")},7423:($,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,F){super(M),this._focusMonitor=A,this._animationMode=F,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 F;n.\u0275\u0275queryRefresh(F=n.\u0275\u0275loadQuery())&&(A.ripple=F.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,F,j){super(A,M,F),this._ngZone=j,this._haltDisabledEvents=Q=>{this.disabled&&(Q.preventDefault(),Q.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:($,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_CHIPS_DEFAULT_OPTIONS:()=>ct,MAT_CHIP_AVATAR:()=>Fe,MAT_CHIP_REMOVE:()=>pe,MAT_CHIP_TRAILING_ICON:()=>at,MatChip:()=>we,MatChipAvatar:()=>me,MatChipInput:()=>Pt,MatChipList:()=>Be,MatChipListChange:()=>Ye,MatChipRemove:()=>Ke,MatChipSelectionChange:()=>xe,MatChipTrailingIcon:()=>ae,MatChipsModule:()=>ue});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 re{}return re.\u0275fac=function(L){return new(L||re)},re.\u0275dir=p.\u0275\u0275defineDirective({type:re}),re})();var Le=a(226);const Se=["*"];class xe{constructor(oe,L,ye=!1){this.source=oe,this.selected=L,this.isUserInput=ye}}const pe=new p.InjectionToken("MatChipRemove"),Fe=new p.InjectionToken("MatChipAvatar"),at=new p.InjectionToken("MatChipTrailingIcon");class Te{constructor(oe){this._elementRef=oe}}const H=(0,b.mixinTabIndex)((0,b.mixinColor)((0,b.mixinDisableRipple)(Te),"primary"),-1);let me=(()=>{class re{}return re.\u0275fac=function(L){return new(L||re)},re.\u0275dir=p.\u0275\u0275defineDirective({type:re,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[p.\u0275\u0275ProvidersFeature([{provide:Fe,useExisting:re}])]}),re})(),ae=(()=>{class re{}return re.\u0275fac=function(L){return new(L||re)},re.\u0275dir=p.\u0275\u0275defineDirective({type:re,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[p.\u0275\u0275ProvidersFeature([{provide:at,useExisting:re}])]}),re})(),we=(()=>{class re extends H{constructor(L,ye,dt,ke,ht,se,ve,tt){super(L),this._ngZone=ye,this._changeDetectorRef=ht,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,ye,this._chipRippleTarget,dt),this._chipRipple.setupTriggerEvents(L),this.rippleConfig=ke||{},this._animationsDisabled="NoopAnimations"===ve,this.tabIndex=null!=tt&&parseInt(tt)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(L){const ye=(0,u.Ig)(L);ye!==this._selected&&(this._selected=ye,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",ye=this._elementRef.nativeElement;ye.hasAttribute(L)||ye.tagName.toLowerCase()===L?ye.classList.add(L):ye.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 re.\u0275fac=function(L){return new(L||re)(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"))},re.\u0275dir=p.\u0275\u0275defineDirective({type:re,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(L,ye,dt){if(1&L&&(p.\u0275\u0275contentQuery(dt,Fe,5),p.\u0275\u0275contentQuery(dt,at,5),p.\u0275\u0275contentQuery(dt,pe,5)),2&L){let ke;p.\u0275\u0275queryRefresh(ke=p.\u0275\u0275loadQuery())&&(ye.avatar=ke.first),p.\u0275\u0275queryRefresh(ke=p.\u0275\u0275loadQuery())&&(ye.trailingIcon=ke.first),p.\u0275\u0275queryRefresh(ke=p.\u0275\u0275loadQuery())&&(ye.removeIcon=ke.first)}},hostAttrs:[1,"mat-chip","mat-focus-indicator"],hostVars:15,hostBindings:function(L,ye){1&L&&p.\u0275\u0275listener("click",function(ke){return ye._handleClick(ke)})("keydown",function(ke){return ye._handleKeydown(ke)})("focus",function(){return ye.focus()})("blur",function(){return ye._blur()}),2&L&&(p.\u0275\u0275attribute("tabindex",ye.disabled?null:ye.tabIndex)("role",ye.role)("disabled",ye.disabled||null)("aria-disabled",ye.disabled.toString())("aria-selected",ye.ariaSelected),p.\u0275\u0275classProp("mat-chip-selected",ye.selected)("mat-chip-with-avatar",ye.avatar)("mat-chip-with-trailing-icon",ye.trailingIcon||ye.removeIcon)("mat-chip-disabled",ye.disabled)("_mat-animation-noopable",ye._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]}),re})(),Ke=(()=>{class re{constructor(L,ye){this._parentChip=L,"BUTTON"===ye.nativeElement.nodeName&&ye.nativeElement.setAttribute("type","button")}_handleClick(L){const ye=this._parentChip;ye.removable&&!ye.disabled&&ye.remove(),L.stopPropagation(),L.preventDefault()}}return re.\u0275fac=function(L){return new(L||re)(p.\u0275\u0275directiveInject(we),p.\u0275\u0275directiveInject(p.ElementRef))},re.\u0275dir=p.\u0275\u0275defineDirective({type:re,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(L,ye){1&L&&p.\u0275\u0275listener("click",function(ke){return ye._handleClick(ke)})},features:[p.\u0275\u0275ProvidersFeature([{provide:pe,useExisting:re}])]}),re})();const ct=new p.InjectionToken("mat-chips-default-options");let Lt=0,Pt=(()=>{class re{constructor(L,ye){this._elementRef=L,this._defaultOptions=ye,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new p.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+Lt++,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 re.\u0275fac=function(L){return new(L||re)(p.\u0275\u0275directiveInject(p.ElementRef),p.\u0275\u0275directiveInject(ct))},re.\u0275dir=p.\u0275\u0275defineDirective({type:re,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(L,ye){1&L&&p.\u0275\u0275listener("keydown",function(ke){return ye._keydown(ke)})("keyup",function(ke){return ye._keyup(ke)})("blur",function(){return ye._blur()})("focus",function(){return ye._focus()})("input",function(){return ye._onInput()}),2&L&&(p.\u0275\u0275hostProperty("id",ye.id),p.\u0275\u0275attribute("disabled",ye.disabled||null)("placeholder",ye.placeholder||null)("aria-invalid",ye._chipList&&ye._chipList.ngControl?ye._chipList.ngControl.invalid:null)("aria-required",ye._chipList&&ye._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]}),re})();const Kt=(0,b.mixinErrorState)(class{constructor(re,oe,L,ye){this._defaultErrorStateMatcher=re,this._parentForm=oe,this._parentFormGroup=L,this.ngControl=ye,this.stateChanges=new c.x}});let Bt=0;class Ye{constructor(oe,L){this.source=oe,this.value=L}}let Be=(()=>{class re extends Kt{constructor(L,ye,dt,ke,ht,se,ve){super(se,ke,ht,ve),this._elementRef=L,this._changeDetectorRef=ye,this._dir=dt,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new c.x,this._uid="mat-chip-list-"+Bt++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(tt,pt)=>tt===pt,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,ye;return this.multiple?(null===(L=this._selectionModel)||void 0===L?void 0:L.selected)||[]:null===(ye=this._selectionModel)||void 0===ye?void 0:ye.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,ye,dt,ke;return null!==(ke=null!==(L=this._required)&&void 0!==L?L:null===(dt=null===(ye=this.ngControl)||void 0===ye?void 0:ye.control)||void 0===dt?void 0:dt.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(ye=>ye.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 ye=L.target;ye&&ye.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,ye=!0){if(this._clearSelection(),this.chips.forEach(dt=>dt.deselect()),Array.isArray(L))L.forEach(dt=>this._selectValue(dt,ye)),this._sortValues();else{const dt=this._selectValue(L,ye);dt&&ye&&this._keyManager.setActiveItem(dt)}}_selectValue(L,ye=!0){const dt=this.chips.find(ke=>null!=ke.value&&this._compareWith(ke.value,L));return dt&&(ye?dt.selectViaInteraction():dt.select(),this._selectionModel.select(dt)),dt}_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(ye=>{ye!==L&&ye.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 ye=null;ye=Array.isArray(this.selected)?this.selected.map(dt=>dt.value):this.selected?this.selected.value:L,this._value=ye,this.change.emit(new Ye(this,ye)),this.valueChange.emit(ye),this._onChange(ye),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(ye=>{!this._selectionModel.isSelected(ye)&&ye.selected&&ye.deselect()}),L.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(L=>{let ye=this.chips.toArray().indexOf(L.chip);this._isValidIndex(ye)&&this._keyManager.updateActiveItem(ye),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(L=>{const ye=L.chip,dt=this.chips.toArray().indexOf(L.chip);this._isValidIndex(dt)&&ye._hasFocus&&(this._lastDestroyedChipIndex=dt)})}_originatesFromChip(L){let ye=L.target;for(;ye&&ye!==this._elementRef.nativeElement;){if(ye.classList.contains("mat-chip"))return!0;ye=ye.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 re.\u0275fac=function(L){return new(L||re)(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))},re.\u0275cmp=p.\u0275\u0275defineComponent({type:re,selectors:[["mat-chip-list"]],contentQueries:function(L,ye,dt){if(1&L&&p.\u0275\u0275contentQuery(dt,we,5),2&L){let ke;p.\u0275\u0275queryRefresh(ke=p.\u0275\u0275loadQuery())&&(ye.chips=ke)}},hostAttrs:[1,"mat-chip-list"],hostVars:14,hostBindings:function(L,ye){1&L&&p.\u0275\u0275listener("focus",function(){return ye.focus()})("blur",function(){return ye._blur()})("keydown",function(ke){return ye._keydown(ke)}),2&L&&(p.\u0275\u0275hostProperty("id",ye._uid),p.\u0275\u0275attribute("tabindex",ye.disabled?null:ye._tabIndex)("aria-required",ye.role?ye.required:null)("aria-disabled",ye.disabled.toString())("aria-invalid",ye.errorState)("aria-multiselectable",ye.multiple)("role",ye.role)("aria-orientation",ye.ariaOrientation),p.\u0275\u0275classProp("mat-chip-list-disabled",ye.disabled)("mat-chip-list-invalid",ye.errorState)("mat-chip-list-required",ye.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:re}]),p.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Se,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(L,ye){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}),re})(),ue=(()=>{class re{}return re.\u0275fac=function(L){return new(L||re)},re.\u0275mod=p.\u0275\u0275defineNgModule({type:re}),re.\u0275inj=p.\u0275\u0275defineInjector({providers:[b.ErrorStateMatcher,{provide:ct,useValue:{separatorKeyCodes:[n.K5]}}],imports:[b.MatCommonModule]}),re})()},508:($,o,a)=>{"use strict";a.r(o),a.d(o,{AnimationCurves:()=>j,AnimationDurations:()=>Q,DateAdapter:()=>it,ErrorStateMatcher:()=>nt,MATERIAL_SANITY_CHECKS:()=>Y,MAT_DATE_FORMATS:()=>rt,MAT_DATE_LOCALE:()=>_e,MAT_DATE_LOCALE_FACTORY:()=>De,MAT_NATIVE_DATE_FORMATS:()=>Et,MAT_OPTGROUP:()=>me,MAT_OPTION_PARENT_COMPONENT:()=>Fe,MAT_RIPPLE_GLOBAL_OPTIONS:()=>Ce,MatCommonModule:()=>B,MatLine:()=>wt,MatLineModule:()=>It,MatNativeDateModule:()=>lt,MatOptgroup:()=>ae,MatOption:()=>Lt,MatOptionModule:()=>Bt,MatOptionSelectionChange:()=>Ke,MatPseudoCheckbox:()=>xe,MatPseudoCheckboxModule:()=>pe,MatRipple:()=>Le,MatRippleModule:()=>Se,NativeDateAdapter:()=>ft,NativeDateModule:()=>et,RippleRef:()=>Ue,RippleRenderer:()=>Ve,ShowOnDirtyErrorStateMatcher:()=>Ge,VERSION:()=>F,_MatOptgroupBase:()=>H,_MatOptionBase:()=>ct,_countGroupLabelsBeforeOption:()=>Pt,_getOptionScrollPosition:()=>Kt,defaultRippleAnimationConfig:()=>Ae,mixinColor:()=>qe,mixinDisableRipple:()=>G,mixinDisabled:()=>Me,mixinErrorState:()=>V,mixinInitialized:()=>J,mixinTabIndex:()=>Z,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(Ye,Be){if(1&Ye&&n.\u0275\u0275element(0,"mat-pseudo-checkbox",4),2&Ye){const ge=n.\u0275\u0275nextContext();n.\u0275\u0275property("state",ge.selected?"checked":"unchecked")("disabled",ge.disabled)}}function M(Ye,Be){if(1&Ye&&(n.\u0275\u0275elementStart(0,"span",5),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&Ye){const ge=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("(",ge.group.label,")")}}const A=["*"],F=new n.Version("14.1.1");let j=(()=>{class Ye{}return Ye.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ye.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ye.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ye.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Ye})(),Q=(()=>{class Ye{}return Ye.COMPLEX="375ms",Ye.ENTERING="225ms",Ye.EXITING="195ms",Ye})();const Y=new n.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function U(){return!0}});let B=(()=>{class Ye{constructor(ge,ue,re){this._sanityChecks=ue,this._document=re,this._hasDoneGlobalChecks=!1,ge._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(ge){return!(0,r.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[ge])}}return Ye.\u0275fac=function(ge){return new(ge||Ye)(n.\u0275\u0275inject(c.qm),n.\u0275\u0275inject(Y,8),n.\u0275\u0275inject(u.DOCUMENT))},Ye.\u0275mod=n.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=n.\u0275\u0275defineInjector({imports:[p.vT,p.vT]}),Ye})();function Me(Ye){return class extends Ye{constructor(...Be){super(...Be),this._disabled=!1}get disabled(){return this._disabled}set disabled(Be){this._disabled=(0,f.Ig)(Be)}}}function qe(Ye,Be){return class extends Ye{constructor(...ge){super(...ge),this.defaultColor=Be,this.color=Be}get color(){return this._color}set color(ge){const ue=ge||this.defaultColor;ue!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ue&&this._elementRef.nativeElement.classList.add(`mat-${ue}`),this._color=ue)}}}function G(Ye){return class extends Ye{constructor(...Be){super(...Be),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(Be){this._disableRipple=(0,f.Ig)(Be)}}}function Z(Ye,Be=0){return class extends Ye{constructor(...ge){super(...ge),this._tabIndex=Be,this.defaultTabIndex=Be}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ge){this._tabIndex=null!=ge?(0,f.su)(ge):this.defaultTabIndex}}}function V(Ye){return class extends Ye{constructor(...Be){super(...Be),this.errorState=!1}updateErrorState(){const Be=this.errorState,oe=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);oe!==Be&&(this.errorState=oe,this.stateChanges.next())}}}function J(Ye){return class extends Ye{constructor(...Be){super(...Be),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.y(ge=>{this._isInitialized?this._notifySubscriber(ge):this._pendingSubscribers.push(ge)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(Be){Be.next(),Be.complete()}}}const _e=new n.InjectionToken("MAT_DATE_LOCALE",{providedIn:"root",factory:De});function De(){return(0,n.inject)(n.LOCALE_ID)}class it{constructor(){this._localeChanges=new m.x,this.localeChanges=this._localeChanges}getValidDateOrNull(Be){return this.isDateInstance(Be)&&this.isValid(Be)?Be:null}deserialize(Be){return null==Be||this.isDateInstance(Be)&&this.isValid(Be)?Be:this.invalid()}setLocale(Be){this.locale=Be,this._localeChanges.next()}compareDate(Be,ge){return this.getYear(Be)-this.getYear(ge)||this.getMonth(Be)-this.getMonth(ge)||this.getDate(Be)-this.getDate(ge)}sameDate(Be,ge){if(Be&&ge){let ue=this.isValid(Be),re=this.isValid(ge);return ue&&re?!this.compareDate(Be,ge):ue==re}return Be==ge}clampDate(Be,ge,ue){return ge&&this.compareDate(Be,ge)<0?ge:ue&&this.compareDate(Be,ue)>0?ue:Be}}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(Ye,Be){const ge=Array(Ye);for(let ue=0;ue<Ye;ue++)ge[ue]=Be(ue);return ge}let ft=(()=>{class Ye extends it{constructor(ge,ue){super(),this.useUtcForDisplay=!1,super.setLocale(ge)}getYear(ge){return ge.getFullYear()}getMonth(ge){return ge.getMonth()}getDate(ge){return ge.getDate()}getDayOfWeek(ge){return ge.getDay()}getMonthNames(ge){const ue=new Intl.DateTimeFormat(this.locale,{month:ge,timeZone:"utc"});return Oe(12,re=>this._format(ue,new Date(2017,re,1)))}getDateNames(){const ge=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Oe(31,ue=>this._format(ge,new Date(2017,0,ue+1)))}getDayOfWeekNames(ge){const ue=new Intl.DateTimeFormat(this.locale,{weekday:ge,timeZone:"utc"});return Oe(7,re=>this._format(ue,new Date(2017,0,re+1)))}getYearName(ge){const ue=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ue,ge)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(ge){return this.getDate(this._createDateWithOverflow(this.getYear(ge),this.getMonth(ge)+1,0))}clone(ge){return new Date(ge.getTime())}createDate(ge,ue,re){let oe=this._createDateWithOverflow(ge,ue,re);return oe.getMonth(),oe}today(){return new Date}parse(ge,ue){return"number"==typeof ge?new Date(ge):ge?new Date(Date.parse(ge)):null}format(ge,ue){if(!this.isValid(ge))throw Error("NativeDateAdapter: Cannot format invalid date.");const re=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},ue),{timeZone:"utc"}));return this._format(re,ge)}addCalendarYears(ge,ue){return this.addCalendarMonths(ge,12*ue)}addCalendarMonths(ge,ue){let re=this._createDateWithOverflow(this.getYear(ge),this.getMonth(ge)+ue,this.getDate(ge));return this.getMonth(re)!=((this.getMonth(ge)+ue)%12+12)%12&&(re=this._createDateWithOverflow(this.getYear(re),this.getMonth(re),0)),re}addCalendarDays(ge,ue){return this._createDateWithOverflow(this.getYear(ge),this.getMonth(ge),this.getDate(ge)+ue)}toIso8601(ge){return[ge.getUTCFullYear(),this._2digit(ge.getUTCMonth()+1),this._2digit(ge.getUTCDate())].join("-")}deserialize(ge){if("string"==typeof ge){if(!ge)return null;if(yt.test(ge)){let ue=new Date(ge);if(this.isValid(ue))return ue}}return super.deserialize(ge)}isDateInstance(ge){return ge instanceof Date}isValid(ge){return!isNaN(ge.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(ge,ue,re){const oe=new Date;return oe.setFullYear(ge,ue,re),oe.setHours(0,0,0,0),oe}_2digit(ge){return("00"+ge).slice(-2)}_format(ge,ue){const re=new Date;return re.setUTCFullYear(ue.getFullYear(),ue.getMonth(),ue.getDate()),re.setUTCHours(ue.getHours(),ue.getMinutes(),ue.getSeconds(),ue.getMilliseconds()),ge.format(re)}}return Ye.\u0275fac=function(ge){return new(ge||Ye)(n.\u0275\u0275inject(_e,8),n.\u0275\u0275inject(r.t4))},Ye.\u0275prov=n.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac}),Ye})();const Et={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 Ye{}return Ye.\u0275fac=function(ge){return new(ge||Ye)},Ye.\u0275mod=n.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:it,useClass:ft}]}),Ye})(),lt=(()=>{class Ye{}return Ye.\u0275fac=function(ge){return new(ge||Ye)},Ye.\u0275mod=n.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=n.\u0275\u0275defineInjector({providers:[{provide:rt,useValue:Et}],imports:[et]}),Ye})(),Ge=(()=>{class Ye{isErrorState(ge,ue){return!!(ge&&ge.invalid&&(ge.dirty||ue&&ue.submitted))}}return Ye.\u0275fac=function(ge){return new(ge||Ye)},Ye.\u0275prov=n.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac}),Ye})(),nt=(()=>{class Ye{isErrorState(ge,ue){return!!(ge&&ge.invalid&&(ge.touched||ue&&ue.submitted))}}return Ye.\u0275fac=function(ge){return new(ge||Ye)},Ye.\u0275prov=n.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac,providedIn:"root"}),Ye})(),wt=(()=>{class Ye{}return Ye.\u0275fac=function(ge){return new(ge||Ye)},Ye.\u0275dir=n.\u0275\u0275defineDirective({type:Ye,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Ye})();function Ct(Ye,Be,ge="mat"){Ye.changes.pipe((0,d.O)(Ye)).subscribe(({length:ue})=>{st(Be,`${ge}-2-line`,!1),st(Be,`${ge}-3-line`,!1),st(Be,`${ge}-multi-line`,!1),2===ue||3===ue?st(Be,`${ge}-${ue}-line`,!0):ue>3&&st(Be,`${ge}-multi-line`,!0)})}function st(Ye,Be,ge){Ye.nativeElement.classList.toggle(Be,ge)}let It=(()=>{class Ye{}return Ye.\u0275fac=function(ge){return new(ge||Ye)},Ye.\u0275mod=n.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=n.\u0275\u0275defineInjector({imports:[B,B]}),Ye})();class Ue{constructor(Be,ge,ue,re=!1){this._renderer=Be,this.element=ge,this.config=ue,this._animationForciblyDisabledThroughCss=re,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ae={enterDuration:225,exitDuration:150},fe=(0,r.i$)({passive:!0}),ze=["mousedown","touchstart"],Ie=["mouseup","mouseleave","touchend","touchcancel"];class Ve{constructor(Be,ge,ue,re){this._target=Be,this._ngZone=ge,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,re.isBrowser&&(this._containerElement=(0,f.fI)(ue))}fadeInRipple(Be,ge,ue={}){const re=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),oe=Object.assign(Object.assign({},Ae),ue.animation);ue.centered&&(Be=re.left+re.width/2,ge=re.top+re.height/2);const L=ue.radius||function z(Ye,Be,ge){const ue=Math.max(Math.abs(Ye-ge.left),Math.abs(Ye-ge.right)),re=Math.max(Math.abs(Be-ge.top),Math.abs(Be-ge.bottom));return Math.sqrt(ue*ue+re*re)}(Be,ge,re),ye=Be-re.left,dt=ge-re.top,ke=oe.enterDuration,ht=document.createElement("div");ht.classList.add("mat-ripple-element"),ht.style.left=ye-L+"px",ht.style.top=dt-L+"px",ht.style.height=2*L+"px",ht.style.width=2*L+"px",null!=ue.color&&(ht.style.backgroundColor=ue.color),ht.style.transitionDuration=`${ke}ms`,this._containerElement.appendChild(ht);const se=window.getComputedStyle(ht),tt=se.transitionDuration,pt="none"===se.transitionProperty||"0s"===tt||"0s, 0s"===tt,$t=new Ue(this,ht,ue,pt);ht.style.transform="scale3d(1, 1, 1)",$t.state=0,ue.persistent||(this._mostRecentTransientRipple=$t);let on=null;return!pt&&(ke||oe.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const nn=()=>this._finishRippleTransition($t),yn=()=>this._destroyRipple($t);ht.addEventListener("transitionend",nn),ht.addEventListener("transitioncancel",yn),on={onTransitionEnd:nn,onTransitionCancel:yn}}),this._activeRipples.set($t,on),(pt||!ke)&&this._finishRippleTransition($t),$t}fadeOutRipple(Be){if(2===Be.state||3===Be.state)return;const ge=Be.element,ue=Object.assign(Object.assign({},Ae),Be.config.animation);ge.style.transitionDuration=`${ue.exitDuration}ms`,ge.style.opacity="0",Be.state=2,(Be._animationForciblyDisabledThroughCss||!ue.exitDuration)&&this._finishRippleTransition(Be)}fadeOutAll(){this._getActiveRipples().forEach(Be=>Be.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(Be=>{Be.config.persistent||Be.fadeOut()})}setupTriggerEvents(Be){const ge=(0,f.fI)(Be);!ge||ge===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=ge,this._registerEvents(ze))}handleEvent(Be){"mousedown"===Be.type?this._onMousedown(Be):"touchstart"===Be.type?this._onTouchStart(Be):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Ie),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(Be){0===Be.state?this._startFadeOutTransition(Be):2===Be.state&&this._destroyRipple(Be)}_startFadeOutTransition(Be){const ge=Be===this._mostRecentTransientRipple,{persistent:ue}=Be.config;Be.state=1,!ue&&(!ge||!this._isPointerDown)&&Be.fadeOut()}_destroyRipple(Be){var ge;const ue=null!==(ge=this._activeRipples.get(Be))&&void 0!==ge?ge:null;this._activeRipples.delete(Be),this._activeRipples.size||(this._containerRect=null),Be===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),Be.state=3,null!==ue&&(Be.element.removeEventListener("transitionend",ue.onTransitionEnd),Be.element.removeEventListener("transitioncancel",ue.onTransitionCancel)),Be.element.remove()}_onMousedown(Be){const ge=(0,c.X6)(Be),ue=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!ge&&!ue&&(this._isPointerDown=!0,this.fadeInRipple(Be.clientX,Be.clientY,this._target.rippleConfig))}_onTouchStart(Be){if(!this._target.rippleDisabled&&!(0,c.yG)(Be)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const ge=Be.changedTouches;for(let ue=0;ue<ge.length;ue++)this.fadeInRipple(ge[ue].clientX,ge[ue].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(Be=>{!Be.config.persistent&&(1===Be.state||Be.config.terminateOnPointerUp&&0===Be.state)&&Be.fadeOut()}))}_registerEvents(Be){this._ngZone.runOutsideAngular(()=>{Be.forEach(ge=>{this._triggerElement.addEventListener(ge,this,fe)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(ze.forEach(Be=>{this._triggerElement.removeEventListener(Be,this,fe)}),this._pointerUpEventsRegistered&&Ie.forEach(Be=>{this._triggerElement.removeEventListener(Be,this,fe)}))}}const Ce=new n.InjectionToken("mat-ripple-global-options");let Le=(()=>{class Ye{constructor(ge,ue,re,oe,L){this._elementRef=ge,this._animationMode=L,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=oe||{},this._rippleRenderer=new Ve(this,ue,ge,re)}get disabled(){return this._disabled}set disabled(ge){ge&&this.fadeOutAllNonPersistent(),this._disabled=ge,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(ge){this._trigger=ge,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(ge,ue=0,re){return"number"==typeof ge?this._rippleRenderer.fadeInRipple(ge,ue,Object.assign(Object.assign({},this.rippleConfig),re)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),ge))}}return Ye.\u0275fac=function(ge){return new(ge||Ye)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(r.t4),n.\u0275\u0275directiveInject(Ce,8),n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},Ye.\u0275dir=n.\u0275\u0275defineDirective({type:Ye,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ge,ue){2&ge&&n.\u0275\u0275classProp("mat-ripple-unbounded",ue.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"]}),Ye})(),Se=(()=>{class Ye{}return Ye.\u0275fac=function(ge){return new(ge||Ye)},Ye.\u0275mod=n.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=n.\u0275\u0275defineInjector({imports:[B,B]}),Ye})(),xe=(()=>{class Ye{constructor(ge){this._animationMode=ge,this.state="unchecked",this.disabled=!1}}return Ye.\u0275fac=function(ge){return new(ge||Ye)(n.\u0275\u0275directiveInject(n.ANIMATION_MODULE_TYPE,8))},Ye.\u0275cmp=n.\u0275\u0275defineComponent({type:Ye,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(ge,ue){2&ge&&n.\u0275\u0275classProp("mat-pseudo-checkbox-indeterminate","indeterminate"===ue.state)("mat-pseudo-checkbox-checked","checked"===ue.state)("mat-pseudo-checkbox-disabled",ue.disabled)("_mat-animation-noopable","NoopAnimations"===ue._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(ge,ue){},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}),Ye})(),pe=(()=>{class Ye{}return Ye.\u0275fac=function(ge){return new(ge||Ye)},Ye.\u0275mod=n.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=n.\u0275\u0275defineInjector({imports:[B]}),Ye})();const Fe=new n.InjectionToken("MAT_OPTION_PARENT_COMPONENT"),at=Me(class{});let Te=0,H=(()=>{class Ye extends at{constructor(ge){var ue;super(),this._labelId="mat-optgroup-label-"+Te++,this._inert=null!==(ue=null==ge?void 0:ge.inertGroups)&&void 0!==ue&&ue}}return Ye.\u0275fac=function(ge){return new(ge||Ye)(n.\u0275\u0275directiveInject(Fe,8))},Ye.\u0275dir=n.\u0275\u0275defineDirective({type:Ye,inputs:{label:"label"},features:[n.\u0275\u0275InheritDefinitionFeature]}),Ye})();const me=new n.InjectionToken("MatOptgroup");let ae=(()=>{class Ye extends H{}return Ye.\u0275fac=function(){let Be;return function(ue){return(Be||(Be=n.\u0275\u0275getInheritedFactory(Ye)))(ue||Ye)}}(),Ye.\u0275cmp=n.\u0275\u0275defineComponent({type:Ye,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-optgroup"],hostVars:5,hostBindings:function(ge,ue){2&ge&&(n.\u0275\u0275attribute("role",ue._inert?null:"group")("aria-disabled",ue._inert?null:ue.disabled.toString())("aria-labelledby",ue._inert?null:ue._labelId),n.\u0275\u0275classProp("mat-optgroup-disabled",ue.disabled))},inputs:{disabled:"disabled"},exportAs:["matOptgroup"],features:[n.\u0275\u0275ProvidersFeature([{provide:me,useExisting:Ye}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:y,decls:4,vars:2,consts:[["aria-hidden","true",1,"mat-optgroup-label",3,"id"]],template:function(ge,ue){1&ge&&(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&ge&&(n.\u0275\u0275property("id",ue._labelId),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("",ue.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}),Ye})(),we=0;class Ke{constructor(Be,ge=!1){this.source=Be,this.isUserInput=ge}}let ct=(()=>{class Ye{constructor(ge,ue,re,oe){this._element=ge,this._changeDetectorRef=ue,this._parent=re,this.group=oe,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+we++,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(ge){this._disabled=(0,f.Ig)(ge)}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(ge,ue){const re=this._getHostElement();"function"==typeof re.focus&&re.focus(ue)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(ge){(ge.keyCode===_.K5||ge.keyCode===_.L_)&&!(0,_.Vb)(ge)&&(this._selectViaInteraction(),ge.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 ge=this.viewValue;ge!==this._mostRecentViewValue&&(this._mostRecentViewValue=ge,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(ge=!1){this.onSelectionChange.emit(new Ke(this,ge))}}return Ye.\u0275fac=function(ge){n.\u0275\u0275invalidFactory()},Ye.\u0275dir=n.\u0275\u0275defineDirective({type:Ye,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Ye})(),Lt=(()=>{class Ye extends ct{constructor(ge,ue,re,oe){super(ge,ue,re,oe)}}return Ye.\u0275fac=function(ge){return new(ge||Ye)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(Fe,8),n.\u0275\u0275directiveInject(me,8))},Ye.\u0275cmp=n.\u0275\u0275defineComponent({type:Ye,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(ge,ue){1&ge&&n.\u0275\u0275listener("click",function(){return ue._selectViaInteraction()})("keydown",function(oe){return ue._handleKeydown(oe)}),2&ge&&(n.\u0275\u0275hostProperty("id",ue.id),n.\u0275\u0275attribute("tabindex",ue._getTabIndex())("aria-selected",ue._getAriaSelected())("aria-disabled",ue.disabled.toString()),n.\u0275\u0275classProp("mat-selected",ue.selected)("mat-option-multiple",ue.multiple)("mat-active",ue.active)("mat-option-disabled",ue.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(ge,ue){1&ge&&(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&ge&&(n.\u0275\u0275property("ngIf",ue.multiple),n.\u0275\u0275advance(3),n.\u0275\u0275property("ngIf",ue.group&&ue.group._inert),n.\u0275\u0275advance(1),n.\u0275\u0275property("matRippleTrigger",ue._getHostElement())("matRippleDisabled",ue.disabled||ue.disableRipple))},dependencies:[Le,u.NgIf,xe],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}),Ye})();function Pt(Ye,Be,ge){if(ge.length){let ue=Be.toArray(),re=ge.toArray(),oe=0;for(let L=0;L<Ye+1;L++)ue[L].group&&ue[L].group===re[oe]&&oe++;return oe}return 0}function Kt(Ye,Be,ge,ue){return Ye<ge?Ye:Ye+Be>ge+ue?Math.max(0,Ye-ue+Be):ge}let Bt=(()=>{class Ye{}return Ye.\u0275fac=function(ge){return new(ge||Ye)},Ye.\u0275mod=n.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=n.\u0275\u0275defineInjector({imports:[Se,u.CommonModule,B,pe]}),Ye})()},9694:($,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_DIALOG_DATA:()=>Ge,MAT_DIALOG_DEFAULT_OPTIONS:()=>nt,MAT_DIALOG_SCROLL_STRATEGY:()=>wt,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>Ct,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>It,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>st,MatDialog:()=>Ne,MatDialogActions:()=>z,MatDialogClose:()=>ze,MatDialogConfig:()=>Oe,MatDialogContainer:()=>Et,MatDialogContent:()=>Ve,MatDialogModule:()=>Le,MatDialogRef:()=>et,MatDialogTitle:()=>Ie,_MatDialogBase:()=>Ae,_MatDialogContainerBase:()=>ft,_closeDialogVia:()=>lt,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(xe=>{(0,d.Xf)(Se()).subscribe(xe)})}var v=a(9646),y=a(226),E=a(8675);function M(Se,xe){}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(pe,Fe,at,Te,H,me,ae,we){super(),this._elementRef=pe,this._focusTrapFactory=Fe,this._config=Te,this._interactivityChecker=H,this._ngZone=me,this._overlayRef=ae,this._focusMonitor=we,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=Ke=>{this._portalOutlet.hasAttached();const ct=this._portalOutlet.attachDomPortal(Ke);return this._contentAttached(),ct},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=at}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(pe){this._portalOutlet.hasAttached();const Fe=this._portalOutlet.attachComponentPortal(pe);return this._contentAttached(),Fe}attachTemplatePortal(pe){this._portalOutlet.hasAttached();const Fe=this._portalOutlet.attachTemplatePortal(pe);return this._contentAttached(),Fe}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(pe,Fe){this._interactivityChecker.isFocusable(pe)||(pe.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const at=()=>{pe.removeEventListener("blur",at),pe.removeEventListener("mousedown",at),pe.removeAttribute("tabindex")};pe.addEventListener("blur",at),pe.addEventListener("mousedown",at)})),pe.focus(Fe)}_focusByCssSelector(pe,Fe){let at=this._elementRef.nativeElement.querySelector(pe);at&&this._forceFocus(at,Fe)}_trapFocus(){const pe=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||pe.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(Fe=>{Fe||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 pe=this._config.restoreFocus;let Fe=null;if("string"==typeof pe?Fe=this._document.querySelector(pe):"boolean"==typeof pe?Fe=pe?this._elementFocusedBeforeDialogWasOpened:null:pe&&(Fe=pe),this._config.restoreFocus&&Fe&&"function"==typeof Fe.focus){const at=(0,n.ht)(),Te=this._elementRef.nativeElement;(!at||at===this._document.body||at===Te||Te.contains(at))&&(this._focusMonitor?(this._focusMonitor.focusVia(Fe,this._closeInteractionType),this._closeInteractionType=null):Fe.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const pe=this._elementRef.nativeElement,Fe=(0,n.ht)();return pe===Fe||pe.contains(Fe)}_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(pe){return new(pe||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(pe,Fe){if(1&pe&&u.\u0275\u0275viewQuery(p.Pl,7),2&pe){let at;u.\u0275\u0275queryRefresh(at=u.\u0275\u0275loadQuery())&&(Fe._portalOutlet=at.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(pe,Fe){2&pe&&u.\u0275\u0275attribute("id",Fe._config.id||null)("role",Fe._config.role)("aria-modal",Fe._config.ariaModal)("aria-labelledby",Fe._config.ariaLabel?null:Fe._ariaLabelledBy)("aria-label",Fe._config.ariaLabel)("aria-describedby",Fe._config.ariaDescribedBy||null)},features:[u.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(pe,Fe){1&pe&&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 Q{constructor(xe,pe){this.overlayRef=xe,this.config=pe,this.closed=new h.x,this.disableClose=pe.disableClose,this.backdropClick=xe.backdropClick(),this.keydownEvents=xe.keydownEvents(),this.outsidePointerEvents=xe.outsidePointerEvents(),this.id=pe.id,this.keydownEvents.subscribe(Fe=>{Fe.keyCode===f.hY&&!this.disableClose&&!(0,f.Vb)(Fe)&&(Fe.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(xe,pe){if(this.containerInstance){const Fe=this.closed;this.containerInstance._closeInteractionType=(null==pe?void 0:pe.focusOrigin)||"program",this.overlayRef.dispose(),Fe.next(xe),Fe.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(xe="",pe=""){return this.overlayRef.updateSize({width:xe,height:pe}),this}addPanelClass(xe){return this.overlayRef.addPanelClass(xe),this}removePanelClass(xe){return this.overlayRef.removePanelClass(xe),this}}const U=new u.InjectionToken("DialogScrollStrategy"),Y=new u.InjectionToken("DialogData"),B=new u.InjectionToken("DefaultDialogConfig"),ie={provide:U,deps:[c.aV],useFactory:function ee(Se){return()=>Se.scrollStrategies.block()}};let he=0,Me=(()=>{class Se{constructor(pe,Fe,at,Te,H,me){this._overlay=pe,this._injector=Fe,this._defaultOptions=at,this._parentDialog=Te,this._overlayContainer=H,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=me}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(pe,Fe){const at=this._defaultOptions||new A;(Fe=Object.assign(Object.assign({},at),Fe)).id=Fe.id||"cdk-dialog-"+he++,Fe.id&&this.getDialogById(Fe.id);const Te=this._getOverlayConfig(Fe),H=this._overlay.create(Te),me=new Q(H,Fe),ae=this._attachContainer(H,me,Fe);return me.containerInstance=ae,this._attachDialogContent(pe,me,ae,Fe),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(me),me.closed.subscribe(()=>this._removeOpenDialog(me,!0)),this.afterOpened.next(me),me}closeAll(){qe(this.openDialogs,pe=>pe.close())}getDialogById(pe){return this.openDialogs.find(Fe=>Fe.id===pe)}ngOnDestroy(){qe(this._openDialogsAtThisLevel,pe=>{!1===pe.config.closeOnDestroy&&this._removeOpenDialog(pe,!1)}),qe(this._openDialogsAtThisLevel,pe=>pe.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(pe){const Fe=new c.X_({positionStrategy:pe.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:pe.scrollStrategy||this._scrollStrategy(),panelClass:pe.panelClass,hasBackdrop:pe.hasBackdrop,direction:pe.direction,minWidth:pe.minWidth,minHeight:pe.minHeight,maxWidth:pe.maxWidth,maxHeight:pe.maxHeight,width:pe.width,height:pe.height,disposeOnNavigation:pe.closeOnNavigation});return pe.backdropClass&&(Fe.backdropClass=pe.backdropClass),Fe}_attachContainer(pe,Fe,at){var Te,H;const me=null!==(Te=at.injector)&&void 0!==Te?Te:null===(H=at.viewContainerRef)||void 0===H?void 0:H.injector,ae=[{provide:A,useValue:at},{provide:Q,useValue:Fe},{provide:c.Iu,useValue:pe}];let we;at.container?"function"==typeof at.container?we=at.container:(we=at.container.type,ae.push(...at.container.providers(at))):we=j;const Ke=new p.C5(we,at.viewContainerRef,u.Injector.create({parent:me||this._injector,providers:ae}),at.componentFactoryResolver);return pe.attach(Ke).instance}_attachDialogContent(pe,Fe,at,Te){const H=this._createInjector(Te,Fe,at);if(pe instanceof u.TemplateRef){let me={$implicit:Te.data,dialogRef:Fe};Te.templateContext&&(me=Object.assign(Object.assign({},me),"function"==typeof Te.templateContext?Te.templateContext():Te.templateContext)),at.attachTemplatePortal(new p.UE(pe,null,me,H))}else{const me=at.attachComponentPortal(new p.C5(pe,Te.viewContainerRef,H,Te.componentFactoryResolver));Fe.componentInstance=me.instance}}_createInjector(pe,Fe,at){const Te=pe&&pe.viewContainerRef&&pe.viewContainerRef.injector,H=[{provide:Y,useValue:pe.data},{provide:Q,useValue:Fe}];return pe.providers&&("function"==typeof pe.providers?H.push(...pe.providers(Fe,pe,at)):H.push(...pe.providers)),pe.direction&&(!Te||!Te.get(y.Is,null,u.InjectFlags.Optional))&&H.push({provide:y.Is,useValue:{value:pe.direction,change:(0,v.of)()}}),u.Injector.create({parent:pe.injector||Te||this._injector,providers:H})}_removeOpenDialog(pe,Fe){const at=this.openDialogs.indexOf(pe);at>-1&&(this.openDialogs.splice(at,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Te,H)=>{Te?H.setAttribute("aria-hidden",Te):H.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),Fe&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const pe=this._overlayContainer.getContainerElement();if(pe.parentElement){const Fe=pe.parentElement.children;for(let at=Fe.length-1;at>-1;at--){const Te=Fe[at];Te!==pe&&"SCRIPT"!==Te.nodeName&&"STYLE"!==Te.nodeName&&!Te.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Te,Te.getAttribute("aria-hidden")),Te.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const pe=this._parentDialog;return pe?pe._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return Se.\u0275fac=function(pe){return new(pe||Se)(u.\u0275\u0275inject(c.aV),u.\u0275\u0275inject(u.Injector),u.\u0275\u0275inject(B,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 qe(Se,xe){let pe=Se.length;for(;pe--;)xe(Se[pe])}let G=(()=>{class Se{}return Se.\u0275fac=function(pe){return new(pe||Se)},Se.\u0275mod=u.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=u.\u0275\u0275defineInjector({providers:[Me,ie],imports:[c.U8,p.eL,r.rt,p.eL]}),Se})();var Z=a(508),V=a(6451),J=a(9300),_e=a(5698),De=a(1777);function it(Se,xe){}const rt={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},yt={dialogContainer:(0,De.X$)("dialogContainer",[(0,De.SB)("void, exit",(0,De.oB)({opacity:0,transform:"scale(0.7)"})),(0,De.SB)("enter",(0,De.oB)({transform:"none"})),(0,De.eR)("* => enter",(0,De.ru)([(0,De.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,De.oB)({transform:"none",opacity:1})),(0,De.IO)("@*",(0,De.pV)(),{optional:!0})]),rt),(0,De.eR)("* => void, * => exit",(0,De.ru)([(0,De.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,De.oB)({opacity:0})),(0,De.IO)("@*",(0,De.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(pe,Fe,at,Te,H,me,ae,we){super(pe,Fe,at,Te,H,me,ae,we),this._animationStateChanged=new u.EventEmitter}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(pe){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:pe})}}return Se.\u0275fac=function(pe){return new(pe||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(pe,Fe){},encapsulation:2}),Se})(),Et=(()=>{class Se extends ft{constructor(pe,Fe,at,Te,H,me,ae,we,Ke){super(pe,Fe,at,Te,H,me,ae,Ke),this._changeDetectorRef=we,this._state="enter"}_onAnimationDone({toState:pe,totalTime:Fe}){"enter"===pe?this._openAnimationDone(Fe):"exit"===pe&&this._animationStateChanged.next({state:"closed",totalTime:Fe})}_onAnimationStart({toState:pe,totalTime:Fe}){"enter"===pe?this._animationStateChanged.next({state:"opening",totalTime:Fe}):("exit"===pe||"void"===pe)&&this._animationStateChanged.next({state:"closing",totalTime:Fe})}_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(pe){return new(pe||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(pe,Fe){1&pe&&u.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(Te){return Fe._onAnimationStart(Te)})("@dialogContainer.done",function(Te){return Fe._onAnimationDone(Te)}),2&pe&&(u.\u0275\u0275hostProperty("id",Fe._config.id),u.\u0275\u0275attribute("aria-modal",Fe._config.ariaModal)("role",Fe._config.role)("aria-labelledby",Fe._config.ariaLabel?null:Fe._ariaLabelledBy)("aria-label",Fe._config.ariaLabel)("aria-describedby",Fe._config.ariaDescribedBy||null),u.\u0275\u0275syntheticHostProperty("@dialogContainer",Fe._getAnimationState()))},features:[u.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(pe,Fe){1&pe&&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(xe,pe,Fe){this._ref=xe,this._containerInstance=Fe,this._afterOpened=new h.x,this._beforeClosed=new h.x,this._state=0,this.disableClose=pe.disableClose,this.id=xe.id,Fe._animationStateChanged.pipe((0,J.h)(at=>"opened"===at.state),(0,_e.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Fe._animationStateChanged.pipe((0,J.h)(at=>"closed"===at.state),(0,_e.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),xe.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,V.T)(this.backdropClick(),this.keydownEvents().pipe((0,J.h)(at=>at.keyCode===f.hY&&!this.disableClose&&!(0,f.Vb)(at)))).subscribe(at=>{this.disableClose||(at.preventDefault(),lt(this,"keydown"===at.type?"keyboard":"mouse"))})}close(xe){this._result=xe,this._containerInstance._animationStateChanged.pipe((0,J.h)(pe=>"closing"===pe.state),(0,_e.q)(1)).subscribe(pe=>{this._beforeClosed.next(xe),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),pe.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(xe){let pe=this._ref.config.positionStrategy;return xe&&(xe.left||xe.right)?xe.left?pe.left(xe.left):pe.right(xe.right):pe.centerHorizontally(),xe&&(xe.top||xe.bottom)?xe.top?pe.top(xe.top):pe.bottom(xe.bottom):pe.centerVertically(),this._ref.updatePosition(),this}updateSize(xe="",pe=""){return this._ref.updateSize(xe,pe),this}addPanelClass(xe){return this._ref.addPanelClass(xe),this}removePanelClass(xe){return this._ref.removePanelClass(xe),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function lt(Se,xe,pe){return Se._closeInteractionType=xe,Se.close(pe)}const Ge=new u.InjectionToken("MatDialogData"),nt=new u.InjectionToken("mat-dialog-default-options"),wt=new u.InjectionToken("mat-dialog-scroll-strategy");function Ct(Se){return()=>Se.scrollStrategies.block()}function st(Se){return()=>Se.scrollStrategies.block()}const It={provide:wt,deps:[c.aV],useFactory:st};let Ue=0,Ae=(()=>{class Se{constructor(pe,Fe,at,Te,H,me,ae,we,Ke,ct){this._overlay=pe,this._defaultOptions=at,this._parentDialog=Te,this._dialogRefConstructor=ae,this._dialogContainerType=we,this._dialogDataToken=Ke,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=me,this._dialog=Fe.get(Me)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const pe=this._parentDialog;return pe?pe._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(pe,Fe){let at;(Fe=Object.assign(Object.assign({},this._defaultOptions||new Oe),Fe)).id=Fe.id||`${this._idPrefix}${Ue++}`,Fe.scrollStrategy=Fe.scrollStrategy||this._scrollStrategy();const Te=this._dialog.open(pe,Object.assign(Object.assign({},Fe),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:Oe,useValue:Fe},{provide:A,useValue:Fe}]},templateContext:()=>({dialogRef:at}),providers:(H,me,ae)=>(at=new this._dialogRefConstructor(H,Fe,ae),at.updatePosition(null==Fe?void 0:Fe.position),[{provide:this._dialogContainerType,useValue:ae},{provide:this._dialogDataToken,useValue:me.data},{provide:this._dialogRefConstructor,useValue:at}])}));return at.componentInstance=Te.componentInstance,this.openDialogs.push(at),this.afterOpened.next(at),at.afterClosed().subscribe(()=>{const H=this.openDialogs.indexOf(at);H>-1&&(this.openDialogs.splice(H,1),this.openDialogs.length||this._getAfterAllClosed().next())}),at}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(pe){return this.openDialogs.find(Fe=>Fe.id===pe)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(pe){let Fe=pe.length;for(;Fe--;)pe[Fe].close()}}return Se.\u0275fac=function(pe){u.\u0275\u0275invalidFactory()},Se.\u0275prov=u.\u0275\u0275defineInjectable({token:Se,factory:Se.\u0275fac}),Se})(),Ne=(()=>{class Se extends Ae{constructor(pe,Fe,at,Te,H,me,ae,we){super(pe,Fe,Te,me,ae,H,et,Et,Ge,we)}}return Se.\u0275fac=function(pe){return new(pe||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(wt),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})(),fe=0,ze=(()=>{class Se{constructor(pe,Fe,at){this.dialogRef=pe,this._elementRef=Fe,this._dialog=at,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Ce(this._elementRef,this._dialog.openDialogs))}ngOnChanges(pe){const Fe=pe._matDialogClose||pe._matDialogCloseResult;Fe&&(this.dialogResult=Fe.currentValue)}_onButtonClick(pe){lt(this.dialogRef,0===pe.screenX&&0===pe.screenY?"keyboard":"mouse",this.dialogResult)}}return Se.\u0275fac=function(pe){return new(pe||Se)(u.\u0275\u0275directiveInject(et,8),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(Ne))},Se.\u0275dir=u.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(pe,Fe){1&pe&&u.\u0275\u0275listener("click",function(Te){return Fe._onButtonClick(Te)}),2&pe&&u.\u0275\u0275attribute("aria-label",Fe.ariaLabel||null)("type",Fe.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(pe,Fe,at){this._dialogRef=pe,this._elementRef=Fe,this._dialog=at,this.id="mat-dialog-title-"+fe++}ngOnInit(){this._dialogRef||(this._dialogRef=Ce(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const pe=this._dialogRef._containerInstance;pe&&!pe._ariaLabelledBy&&(pe._ariaLabelledBy=this.id)})}}return Se.\u0275fac=function(pe){return new(pe||Se)(u.\u0275\u0275directiveInject(et,8),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(Ne))},Se.\u0275dir=u.\u0275\u0275defineDirective({type:Se,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(pe,Fe){2&pe&&u.\u0275\u0275hostProperty("id",Fe.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),Se})(),Ve=(()=>{class Se{}return Se.\u0275fac=function(pe){return new(pe||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(pe){return new(pe||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(pe,Fe){2&pe&&u.\u0275\u0275classProp("mat-dialog-actions-align-center","center"===Fe.align)("mat-dialog-actions-align-end","end"===Fe.align)},inputs:{align:"align"}}),Se})();function Ce(Se,xe){let pe=Se.nativeElement.parentElement;for(;pe&&!pe.classList.contains("mat-dialog-container");)pe=pe.parentElement;return pe?xe.find(Fe=>Fe.id===pe.id):null}let Le=(()=>{class Se{}return Se.\u0275fac=function(pe){return new(pe||Se)},Se.\u0275mod=u.\u0275\u0275defineNgModule({type:Se}),Se.\u0275inj=u.\u0275\u0275defineInjector({providers:[Ne,It],imports:[G,c.U8,p.eL,Z.MatCommonModule,Z.MatCommonModule]}),Se})()},3293:($,o,a)=>{"use strict";a.r(o),a.d(o,{ICON_REGISTRY_PROVIDER:()=>De,ICON_REGISTRY_PROVIDER_FACTORY:()=>_e,MAT_ICON_DEFAULT_OPTIONS:()=>ft,MAT_ICON_LOCATION:()=>Et,MAT_ICON_LOCATION_FACTORY:()=>et,MatIcon:()=>wt,MatIconModule:()=>Ct,MatIconRegistry:()=>J,getMatIconFailedToSanitizeLiteralError:()=>Z,getMatIconFailedToSanitizeUrlError:()=>G,getMatIconNameNotFoundError:()=>Me,getMatIconNoHttpProviderError:()=>qe});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,Ue)=>{let fe,Ae=null,Ne=!1;Ae=It.subscribe((0,v.x)(Ue,void 0,void 0,ze=>{fe=(0,_.Xf)(st(ze,E(st)(It))),Ae?(Ae.unsubscribe(),Ae=null,fe.subscribe(Ue)):Ne=!0})),Ne&&(Ae.unsubscribe(),Ae=null,fe.subscribe(Ue))})}var A=a(8505),F=a(4004),j=a(3099),Q=a(5698),U=a(6529),Y=a(2313);const B=["*"];let ee;function he(st){var It;return(null===(It=function ie(){if(void 0===ee&&(ee=null,"undefined"!=typeof window)){const st=window;void 0!==st.trustedTypes&&(ee=st.trustedTypes.createPolicy("angular#components",{createHTML:It=>It}))}return ee}())||void 0===It?void 0:It.createHTML(st))||st}function Me(st){return Error(`Unable to find icon with the name "${st}"`)}function qe(){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 Z(st){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${st}".`)}class V{constructor(It,Ue,Ae){this.url=It,this.svgText=Ue,this.options=Ae}}let J=(()=>{class st{constructor(Ue,Ae,Ne,fe){this._httpClient=Ue,this._sanitizer=Ae,this._errorHandler=fe,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=Ne}addSvgIcon(Ue,Ae,Ne){return this.addSvgIconInNamespace("",Ue,Ae,Ne)}addSvgIconLiteral(Ue,Ae,Ne){return this.addSvgIconLiteralInNamespace("",Ue,Ae,Ne)}addSvgIconInNamespace(Ue,Ae,Ne,fe){return this._addSvgIconConfig(Ue,Ae,new V(Ne,null,fe))}addSvgIconResolver(Ue){return this._resolvers.push(Ue),this}addSvgIconLiteralInNamespace(Ue,Ae,Ne,fe){const ze=this._sanitizer.sanitize(n.SecurityContext.HTML,Ne);if(!ze)throw Z(Ne);const Ie=he(ze);return this._addSvgIconConfig(Ue,Ae,new V("",Ie,fe))}addSvgIconSet(Ue,Ae){return this.addSvgIconSetInNamespace("",Ue,Ae)}addSvgIconSetLiteral(Ue,Ae){return this.addSvgIconSetLiteralInNamespace("",Ue,Ae)}addSvgIconSetInNamespace(Ue,Ae,Ne){return this._addSvgIconSetConfig(Ue,new V(Ae,null,Ne))}addSvgIconSetLiteralInNamespace(Ue,Ae,Ne){const fe=this._sanitizer.sanitize(n.SecurityContext.HTML,Ae);if(!fe)throw Z(Ae);const ze=he(fe);return this._addSvgIconSetConfig(Ue,new V("",ze,Ne))}registerFontClassAlias(Ue,Ae=Ue){return this._fontCssClassesByAlias.set(Ue,Ae),this}classNameForFontAlias(Ue){return this._fontCssClassesByAlias.get(Ue)||Ue}setDefaultFontSetClass(...Ue){return this._defaultFontSetClass=Ue,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(Ue){const Ae=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,Ue);if(!Ae)throw G(Ue);const Ne=this._cachedIconsByUrl.get(Ae);return Ne?(0,h.of)(it(Ne)):this._loadSvgIconFromConfig(new V(Ue,null)).pipe((0,A.b)(fe=>this._cachedIconsByUrl.set(Ae,fe)),(0,F.U)(fe=>it(fe)))}getNamedSvgIcon(Ue,Ae=""){const Ne=rt(Ae,Ue);let fe=this._svgIconConfigs.get(Ne);if(fe)return this._getSvgFromConfig(fe);if(fe=this._getIconConfigFromResolvers(Ae,Ue),fe)return this._svgIconConfigs.set(Ne,fe),this._getSvgFromConfig(fe);const ze=this._iconSetConfigs.get(Ae);return ze?this._getSvgFromIconSetConfigs(Ue,ze):function f(st,It){const Ue=(0,c.m)(st)?st:()=>st,Ae=Ne=>Ne.error(Ue());return new r.y(It?Ne=>It.schedule(Ae,0,Ne):Ae)}(Me(Ne))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(Ue){return Ue.svgText?(0,h.of)(it(this._svgElementFromConfig(Ue))):this._loadSvgIconFromConfig(Ue).pipe((0,F.U)(Ae=>it(Ae)))}_getSvgFromIconSetConfigs(Ue,Ae){const Ne=this._extractIconWithNameFromAnySet(Ue,Ae);if(Ne)return(0,h.of)(Ne);const fe=Ae.filter(ze=>!ze.svgText).map(ze=>this._loadSvgIconSetFromConfig(ze).pipe(E(Ie=>{const z=`Loading icon set URL: ${this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,ze.url)} failed: ${Ie.message}`;return this._errorHandler.handleError(new Error(z)),(0,h.of)(null)})));return(0,m.D)(fe).pipe((0,F.U)(()=>{const ze=this._extractIconWithNameFromAnySet(Ue,Ae);if(!ze)throw Me(Ue);return ze}))}_extractIconWithNameFromAnySet(Ue,Ae){for(let Ne=Ae.length-1;Ne>=0;Ne--){const fe=Ae[Ne];if(fe.svgText&&fe.svgText.toString().indexOf(Ue)>-1){const ze=this._svgElementFromConfig(fe),Ie=this._extractSvgIconFromSet(ze,Ue,fe.options);if(Ie)return Ie}}return null}_loadSvgIconFromConfig(Ue){return this._fetchIcon(Ue).pipe((0,A.b)(Ae=>Ue.svgText=Ae),(0,F.U)(()=>this._svgElementFromConfig(Ue)))}_loadSvgIconSetFromConfig(Ue){return Ue.svgText?(0,h.of)(null):this._fetchIcon(Ue).pipe((0,A.b)(Ae=>Ue.svgText=Ae))}_extractSvgIconFromSet(Ue,Ae,Ne){const fe=Ue.querySelector(`[id="${Ae}"]`);if(!fe)return null;const ze=fe.cloneNode(!0);if(ze.removeAttribute("id"),"svg"===ze.nodeName.toLowerCase())return this._setSvgAttributes(ze,Ne);if("symbol"===ze.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(ze),Ne);const Ie=this._svgElementFromString(he("<svg></svg>"));return Ie.appendChild(ze),this._setSvgAttributes(Ie,Ne)}_svgElementFromString(Ue){const Ae=this._document.createElement("DIV");Ae.innerHTML=Ue;const Ne=Ae.querySelector("svg");if(!Ne)throw Error("<svg> tag not found");return Ne}_toSvgElement(Ue){const Ae=this._svgElementFromString(he("<svg></svg>")),Ne=Ue.attributes;for(let fe=0;fe<Ne.length;fe++){const{name:ze,value:Ie}=Ne[fe];"id"!==ze&&Ae.setAttribute(ze,Ie)}for(let fe=0;fe<Ue.childNodes.length;fe++)Ue.childNodes[fe].nodeType===this._document.ELEMENT_NODE&&Ae.appendChild(Ue.childNodes[fe].cloneNode(!0));return Ae}_setSvgAttributes(Ue,Ae){return Ue.setAttribute("fit",""),Ue.setAttribute("height","100%"),Ue.setAttribute("width","100%"),Ue.setAttribute("preserveAspectRatio","xMidYMid meet"),Ue.setAttribute("focusable","false"),Ae&&Ae.viewBox&&Ue.setAttribute("viewBox",Ae.viewBox),Ue}_fetchIcon(Ue){var Ae;const{url:Ne,options:fe}=Ue,ze=null!==(Ae=null==fe?void 0:fe.withCredentials)&&void 0!==Ae&&Ae;if(!this._httpClient)throw qe();if(null==Ne)throw Error(`Cannot fetch icon from URL "${Ne}".`);const Ie=this._sanitizer.sanitize(n.SecurityContext.RESOURCE_URL,Ne);if(!Ie)throw G(Ne);const Ve=this._inProgressUrlFetches.get(Ie);if(Ve)return Ve;const z=this._httpClient.get(Ie,{responseType:"text",withCredentials:ze}).pipe((0,F.U)(Ce=>he(Ce)),function M(st){return(0,y.e)((It,Ue)=>{try{It.subscribe(Ue)}finally{Ue.add(st)}})}(()=>this._inProgressUrlFetches.delete(Ie)),(0,j.B)());return this._inProgressUrlFetches.set(Ie,z),z}_addSvgIconConfig(Ue,Ae,Ne){return this._svgIconConfigs.set(rt(Ue,Ae),Ne),this}_addSvgIconSetConfig(Ue,Ae){const Ne=this._iconSetConfigs.get(Ue);return Ne?Ne.push(Ae):this._iconSetConfigs.set(Ue,[Ae]),this}_svgElementFromConfig(Ue){if(!Ue.svgElement){const Ae=this._svgElementFromString(Ue.svgText);this._setSvgAttributes(Ae,Ue.options),Ue.svgElement=Ae}return Ue.svgElement}_getIconConfigFromResolvers(Ue,Ae){for(let Ne=0;Ne<this._resolvers.length;Ne++){const fe=this._resolvers[Ne](Ae,Ue);if(fe)return yt(fe)?new V(fe.url,null,fe.options):new V(fe,null)}}}return st.\u0275fac=function(Ue){return new(Ue||st)(n.\u0275\u0275inject(U.HttpClient,8),n.\u0275\u0275inject(Y.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 _e(st,It,Ue,Ae,Ne){return st||new J(It,Ue,Ne,Ae)}const De={provide:J,deps:[[new n.Optional,new n.SkipSelf,J],[new n.Optional,U.HttpClient],Y.DomSanitizer,n.ErrorHandler,[new n.Optional,u.DOCUMENT]],useFactory:_e};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"),Et=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 lt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ge=lt.map(st=>`[${st}]`).join(", "),nt=/^url\(['"]?#(.*?)['"]?\)$/;let wt=(()=>{class st extends Oe{constructor(Ue,Ae,Ne,fe,ze,Ie){super(Ue),this._iconRegistry=Ae,this._location=fe,this._errorHandler=ze,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)),Ne||Ue.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(Ue){this._inline=(0,b.Ig)(Ue)}get svgIcon(){return this._svgIcon}set svgIcon(Ue){Ue!==this._svgIcon&&(Ue?this._updateSvgIcon(Ue):this._svgIcon&&this._clearSvgElement(),this._svgIcon=Ue)}get fontSet(){return this._fontSet}set fontSet(Ue){const Ae=this._cleanupFontValue(Ue);Ae!==this._fontSet&&(this._fontSet=Ae,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(Ue){const Ae=this._cleanupFontValue(Ue);Ae!==this._fontIcon&&(this._fontIcon=Ae,this._updateFontIconClasses())}_splitIconName(Ue){if(!Ue)return["",""];const Ae=Ue.split(":");switch(Ae.length){case 1:return["",Ae[0]];case 2:return Ae;default:throw Error(`Invalid icon name: "${Ue}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const Ue=this._elementsWithExternalReferences;if(Ue&&Ue.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(Ue){this._clearSvgElement();const Ae=this._location.getPathname();this._previousPath=Ae,this._cacheChildrenWithExternalReferences(Ue),this._prependPathToReferences(Ae),this._elementRef.nativeElement.appendChild(Ue)}_clearSvgElement(){const Ue=this._elementRef.nativeElement;let Ae=Ue.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();Ae--;){const Ne=Ue.childNodes[Ae];(1!==Ne.nodeType||"svg"===Ne.nodeName.toLowerCase())&&Ne.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const Ue=this._elementRef.nativeElement,Ae=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Ne=>Ne.length>0);this._previousFontSetClass.forEach(Ne=>Ue.classList.remove(Ne)),Ae.forEach(Ne=>Ue.classList.add(Ne)),this._previousFontSetClass=Ae,this.fontIcon!==this._previousFontIconClass&&!Ae.includes("mat-ligature-font")&&(this._previousFontIconClass&&Ue.classList.remove(this._previousFontIconClass),this.fontIcon&&Ue.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(Ue){return"string"==typeof Ue?Ue.trim().split(" ")[0]:Ue}_prependPathToReferences(Ue){const Ae=this._elementsWithExternalReferences;Ae&&Ae.forEach((Ne,fe)=>{Ne.forEach(ze=>{fe.setAttribute(ze.name,`url('${Ue}#${ze.value}')`)})})}_cacheChildrenWithExternalReferences(Ue){const Ae=Ue.querySelectorAll(Ge),Ne=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let fe=0;fe<Ae.length;fe++)lt.forEach(ze=>{const Ie=Ae[fe],Ve=Ie.getAttribute(ze),z=Ve?Ve.match(nt):null;if(z){let Ce=Ne.get(Ie);Ce||(Ce=[],Ne.set(Ie,Ce)),Ce.push({name:ze,value:z[1]})}})}_updateSvgIcon(Ue){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),Ue){const[Ae,Ne]=this._splitIconName(Ue);Ae&&(this._svgNamespace=Ae),Ne&&(this._svgName=Ne),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Ne,Ae).pipe((0,Q.q)(1)).subscribe(fe=>this._setSvgElement(fe),fe=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${Ae}:${Ne}! ${fe.message}`))})}}}return st.\u0275fac=function(Ue){return new(Ue||st)(n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(J),n.\u0275\u0275injectAttribute("aria-hidden"),n.\u0275\u0275directiveInject(Et),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(Ue,Ae){2&Ue&&(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:B,decls:1,vars:0,template:function(Ue,Ae){1&Ue&&(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(Ue){return new(Ue||st)},st.\u0275mod=n.\u0275\u0275defineNgModule({type:st}),st.\u0275inj=n.\u0275\u0275defineInjector({imports:[p.MatCommonModule,p.MatCommonModule]}),st})()},1451:($,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_MENU_CONTENT:()=>Ge,MAT_MENU_DEFAULT_OPTIONS:()=>fe,MAT_MENU_PANEL:()=>Ue,MAT_MENU_SCROLL_STRATEGY:()=>Ce,MatMenu:()=>z,MatMenuContent:()=>wt,MatMenuItem:()=>Ne,MatMenuModule:()=>Te,MatMenuTrigger:()=>at,_MatMenuBase:()=>Ve,_MatMenuContentBase:()=>nt,_MatMenuTriggerBase:()=>Fe,fadeInItems:()=>et,matMenuAnimations:()=>Et,transformMenu:()=>lt});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),F=a(4004),Q=a(5577);function U(H,me){return me?ae=>(0,_.z)(me.pipe((0,v.q)(1),function A(){return(0,y.e)((H,me)=>{H.subscribe((0,E.x)(me,M.Z))})}()),ae.pipe(U(H))):(0,Q.z)((ae,we)=>H(ae,we).pipe((0,v.q)(1),function j(H){return(0,F.U)(()=>H)}(ae)))}var Y=a(5963);function B(H,me=d.z){const ae=(0,Y.H)(H,me);return U(()=>ae)}var ee=a(8675),ie=a(3900),he=a(2722),Me=a(9300),qe=a(1777),G=a(7429),Z=a(9808),V=a(508),J=a(1314),_e=a(925),De=a(226),it=a(495);const rt=["mat-menu-item",""];function yt(H,me){1&H&&(u.\u0275\u0275namespaceSVG(),u.\u0275\u0275elementStart(0,"svg",2),u.\u0275\u0275element(1,"polygon",3),u.\u0275\u0275elementEnd())}const Oe=["*"];function ft(H,me){if(1&H){const ae=u.\u0275\u0275getCurrentView();u.\u0275\u0275elementStart(0,"div",0),u.\u0275\u0275listener("keydown",function(Ke){u.\u0275\u0275restoreView(ae);const ct=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(ct._handleKeydown(Ke))})("click",function(){u.\u0275\u0275restoreView(ae);const Ke=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(Ke.closed.emit("click"))})("@transformMenu.start",function(Ke){u.\u0275\u0275restoreView(ae);const ct=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(ct._onAnimationStart(Ke))})("@transformMenu.done",function(Ke){u.\u0275\u0275restoreView(ae);const ct=u.\u0275\u0275nextContext();return u.\u0275\u0275resetView(ct._onAnimationDone(Ke))}),u.\u0275\u0275elementStart(1,"div",1),u.\u0275\u0275projection(2),u.\u0275\u0275elementEnd()()}if(2&H){const ae=u.\u0275\u0275nextContext();u.\u0275\u0275property("id",ae.panelId)("ngClass",ae._classList)("@transformMenu",ae._panelAnimationState),u.\u0275\u0275attribute("aria-label",ae.ariaLabel||null)("aria-labelledby",ae.ariaLabelledby||null)("aria-describedby",ae.ariaDescribedby||null)}}const Et={transformMenu:(0,qe.X$)("transformMenu",[(0,qe.SB)("void",(0,qe.oB)({opacity:0,transform:"scale(0.8)"})),(0,qe.eR)("void => enter",(0,qe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,qe.oB)({opacity:1,transform:"scale(1)"}))),(0,qe.eR)("* => void",(0,qe.jt)("100ms 25ms linear",(0,qe.oB)({opacity:0})))]),fadeInItems:(0,qe.X$)("fadeInItems",[(0,qe.SB)("showing",(0,qe.oB)({opacity:1})),(0,qe.eR)("void => *",[(0,qe.oB)({opacity:0}),(0,qe.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},et=Et.fadeInItems,lt=Et.transformMenu,Ge=new u.InjectionToken("MatMenuContent");let nt=(()=>{class H{constructor(ae,we,Ke,ct,Lt,Pt,Kt){this._template=ae,this._componentFactoryResolver=we,this._appRef=Ke,this._injector=ct,this._viewContainerRef=Lt,this._document=Pt,this._changeDetectorRef=Kt,this._attached=new r.x}attach(ae={}){var we;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 Ke=this._template.elementRef.nativeElement;Ke.parentNode.insertBefore(this._outlet.outletElement,Ke),null===(we=this._changeDetectorRef)||void 0===we||we.markForCheck(),this._portal.attach(this._outlet,ae),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return H.\u0275fac=function(ae){return new(ae||H)(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(Z.DOCUMENT),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},H.\u0275dir=u.\u0275\u0275defineDirective({type:H}),H})(),wt=(()=>{class H extends nt{}return H.\u0275fac=function(){let me;return function(we){return(me||(me=u.\u0275\u0275getInheritedFactory(H)))(we||H)}}(),H.\u0275dir=u.\u0275\u0275defineDirective({type:H,selectors:[["ng-template","matMenuContent",""]],features:[u.\u0275\u0275ProvidersFeature([{provide:Ge,useExisting:H}]),u.\u0275\u0275InheritDefinitionFeature]}),H})();const Ue=new u.InjectionToken("MAT_MENU_PANEL"),Ae=(0,V.mixinDisableRipple)((0,V.mixinDisabled)(class{}));let Ne=(()=>{class H extends Ae{constructor(ae,we,Ke,ct,Lt){var Pt;super(),this._elementRef=ae,this._document=we,this._focusMonitor=Ke,this._parentMenu=ct,this._changeDetectorRef=Lt,this.role="menuitem",this._hovered=new r.x,this._focused=new r.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Pt=null==ct?void 0:ct.addItem)||void 0===Pt||Pt.call(ct,this)}focus(ae,we){this._focusMonitor&&ae?this._focusMonitor.focusVia(this._getHostElement(),ae,we):this._getHostElement().focus(we),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(ae){this.disabled&&(ae.preventDefault(),ae.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var ae;const we=this._elementRef.nativeElement.cloneNode(!0),Ke=we.querySelectorAll("mat-icon, .material-icons");for(let ct=0;ct<Ke.length;ct++)Ke[ct].remove();return(null===(ae=we.textContent)||void 0===ae?void 0:ae.trim())||""}_setHighlighted(ae){var we;this._highlighted=ae,null===(we=this._changeDetectorRef)||void 0===we||we.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}}return H.\u0275fac=function(ae){return new(ae||H)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(Z.DOCUMENT),u.\u0275\u0275directiveInject(n.tE),u.\u0275\u0275directiveInject(Ue,8),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},H.\u0275cmp=u.\u0275\u0275defineComponent({type:H,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(ae,we){1&ae&&u.\u0275\u0275listener("click",function(ct){return we._checkDisabled(ct)})("mouseenter",function(){return we._handleMouseEnter()}),2&ae&&(u.\u0275\u0275attribute("role",we.role)("tabindex",we._getTabIndex())("aria-disabled",we.disabled.toString())("disabled",we.disabled||null),u.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",we._highlighted)("mat-menu-item-submenu-trigger",we._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(ae,we){1&ae&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275projection(0),u.\u0275\u0275element(1,"div",0),u.\u0275\u0275template(2,yt,2,0,"svg",1)),2&ae&&(u.\u0275\u0275advance(1),u.\u0275\u0275property("matRippleDisabled",we.disableRipple||we.disabled)("matRippleTrigger",we._getHostElement()),u.\u0275\u0275advance(1),u.\u0275\u0275property("ngIf",we._triggersSubmenu))},dependencies:[Z.NgIf,V.MatRipple],encapsulation:2,changeDetection:0}),H})();const fe=new u.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:function ze(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let Ie=0,Ve=(()=>{class H{constructor(ae,we,Ke,ct){this._elementRef=ae,this._ngZone=we,this._defaultOptions=Ke,this._changeDetectorRef=ct,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(ae){this._xPosition=ae,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(ae){this._yPosition=ae,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(ae){this._overlapTrigger=(0,p.Ig)(ae)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(ae){this._hasBackdrop=(0,p.Ig)(ae)}set panelClass(ae){const we=this._previousPanelClass;we&&we.length&&we.split(" ").forEach(Ke=>{this._classList[Ke]=!1}),this._previousPanelClass=ae,ae&&ae.length&&(ae.split(" ").forEach(Ke=>{this._classList[Ke]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(ae){this.panelClass=ae}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,ee.O)(this._directDescendantItems),(0,ie.w)(ae=>(0,f.T)(...ae.map(we=>we._focused)))).subscribe(ae=>this._keyManager.updateActiveItem(ae)),this._directDescendantItems.changes.subscribe(ae=>{var we;const Ke=this._keyManager;if("enter"===this._panelAnimationState&&(null===(we=Ke.activeItem)||void 0===we?void 0:we._hasFocus())){const ct=ae.toArray(),Lt=Math.max(0,Math.min(ct.length-1,Ke.activeItemIndex||0));ct[Lt]&&!ct[Lt].disabled?Ke.setActiveItem(Lt):Ke.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,ee.O)(this._directDescendantItems),(0,ie.w)(we=>(0,f.T)(...we.map(Ke=>Ke._hovered))))}addItem(ae){}removeItem(ae){}_handleKeydown(ae){const we=ae.keyCode,Ke=this._keyManager;switch(we){case b.hY:(0,b.Vb)(ae)||(ae.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(we===b.LH||we===b.JH)&&Ke.setFocusOrigin("keyboard"),void Ke.onKeydown(ae)}ae.stopPropagation()}focusFirstItem(ae="program"){this._ngZone.onStable.pipe((0,v.q)(1)).subscribe(()=>{let we=null;if(this._directDescendantItems.length&&(we=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!we||!we.contains(document.activeElement)){const Ke=this._keyManager;Ke.setFocusOrigin(ae).setFirstItemActive(),!Ke.activeItem&&we&&we.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(ae){const we=Math.min(this._baseElevation+ae,24),Ke=`${this._elevationPrefix}${we}`,ct=Object.keys(this._classList).find(Lt=>Lt.startsWith(this._elevationPrefix));(!ct||ct===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Ke]=!0,this._previousElevation=Ke)}setPositionClasses(ae=this.xPosition,we=this.yPosition){var Ke;const ct=this._classList;ct["mat-menu-before"]="before"===ae,ct["mat-menu-after"]="after"===ae,ct["mat-menu-above"]="above"===we,ct["mat-menu-below"]="below"===we,null===(Ke=this._changeDetectorRef)||void 0===Ke||Ke.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(ae){this._animationDone.next(ae),this._isAnimating=!1}_onAnimationStart(ae){this._isAnimating=!0,"enter"===ae.toState&&0===this._keyManager.activeItemIndex&&(ae.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,ee.O)(this._allItems)).subscribe(ae=>{this._directDescendantItems.reset(ae.filter(we=>we._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return H.\u0275fac=function(ae){return new(ae||H)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(fe),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},H.\u0275dir=u.\u0275\u0275defineDirective({type:H,contentQueries:function(ae,we,Ke){if(1&ae&&(u.\u0275\u0275contentQuery(Ke,Ge,5),u.\u0275\u0275contentQuery(Ke,Ne,5),u.\u0275\u0275contentQuery(Ke,Ne,4)),2&ae){let ct;u.\u0275\u0275queryRefresh(ct=u.\u0275\u0275loadQuery())&&(we.lazyContent=ct.first),u.\u0275\u0275queryRefresh(ct=u.\u0275\u0275loadQuery())&&(we._allItems=ct),u.\u0275\u0275queryRefresh(ct=u.\u0275\u0275loadQuery())&&(we.items=ct)}},viewQuery:function(ae,we){if(1&ae&&u.\u0275\u0275viewQuery(u.TemplateRef,5),2&ae){let Ke;u.\u0275\u0275queryRefresh(Ke=u.\u0275\u0275loadQuery())&&(we.templateRef=Ke.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"}}),H})(),z=(()=>{class H extends Ve{constructor(ae,we,Ke,ct){super(ae,we,Ke,ct),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return H.\u0275fac=function(ae){return new(ae||H)(u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.NgZone),u.\u0275\u0275directiveInject(fe),u.\u0275\u0275directiveInject(u.ChangeDetectorRef))},H.\u0275cmp=u.\u0275\u0275defineComponent({type:H,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(ae,we){2&ae&&u.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[u.\u0275\u0275ProvidersFeature([{provide:Ue,useExisting:H}]),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(ae,we){1&ae&&(u.\u0275\u0275projectionDef(),u.\u0275\u0275template(0,ft,3,6,"ng-template"))},dependencies:[Z.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:[Et.transformMenu,Et.fadeInItems]},changeDetection:0}),H})();const Ce=new u.InjectionToken("mat-menu-scroll-strategy"),Se={provide:Ce,deps:[J.aV],useFactory:function Le(H){return()=>H.scrollStrategies.reposition()}},pe=(0,_e.i$)({passive:!0});let Fe=(()=>{class H{constructor(ae,we,Ke,ct,Lt,Pt,Kt,Bt,Ye){this._overlay=ae,this._element=we,this._viewContainerRef=Ke,this._menuItemInstance=Pt,this._dir=Kt,this._focusMonitor=Bt,this._ngZone=Ye,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=c.w0.EMPTY,this._hoverSubscription=c.w0.EMPTY,this._menuCloseSubscription=c.w0.EMPTY,this._handleTouchStart=Be=>{(0,n.yG)(Be)||(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=ct,this._parentMaterialMenu=Lt instanceof Ve?Lt:void 0,we.nativeElement.addEventListener("touchstart",this._handleTouchStart,pe),Pt&&(Pt._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(ae){this.menu=ae}get menu(){return this._menu}set menu(ae){ae!==this._menu&&(this._menu=ae,this._menuCloseSubscription.unsubscribe(),ae&&(this._menuCloseSubscription=ae.close.subscribe(we=>{this._destroyMenu(we),("click"===we||"tab"===we)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(we)})))}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,pe),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 ae=this.menu;if(this._menuOpen||!ae)return;const we=this._createOverlay(ae),Ke=we.getConfig(),ct=Ke.positionStrategy;this._setPosition(ae,ct),Ke.hasBackdrop=null==ae.hasBackdrop?!this.triggersSubmenu():ae.hasBackdrop,we.attach(this._getPortal(ae)),ae.lazyContent&&ae.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(ae),ae instanceof Ve&&(ae._startAnimation(),ae._directDescendantItems.changes.pipe((0,he.R)(ae.close)).subscribe(()=>{ct.withLockedPosition(!1).reapplyLastPosition(),ct.withLockedPosition(!0)}))}closeMenu(){var ae;null===(ae=this.menu)||void 0===ae||ae.close.emit()}focus(ae,we){this._focusMonitor&&ae?this._focusMonitor.focusVia(this._element,ae,we):this._element.nativeElement.focus(we)}updatePosition(){var ae;null===(ae=this._overlayRef)||void 0===ae||ae.updatePosition()}_destroyMenu(ae){var we;if(!this._overlayRef||!this.menuOpen)return;const Ke=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===ae||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,Ke instanceof Ve?(Ke._resetAnimation(),Ke.lazyContent?Ke._animationDone.pipe((0,Me.h)(ct=>"void"===ct.toState),(0,v.q)(1),(0,he.R)(Ke.lazyContent._attached)).subscribe({next:()=>Ke.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),null===(we=null==Ke?void 0:Ke.lazyContent)||void 0===we||we.detach())}_initMenu(ae){ae.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,ae.direction=this.dir,this._setMenuElevation(ae),ae.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(ae){if(ae.setElevation){let we=0,Ke=ae.parentMenu;for(;Ke;)we++,Ke=Ke.parentMenu;ae.setElevation(we)}}_setIsMenuOpen(ae){this._menuOpen=ae,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(ae)}_createOverlay(ae){if(!this._overlayRef){const we=this._getOverlayConfig(ae);this._subscribeToPositions(ae,we.positionStrategy),this._overlayRef=this._overlay.create(we),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(ae){return new J.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:ae.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:ae.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(ae,we){ae.setPositionClasses&&we.positionChanges.subscribe(Ke=>{const ct="start"===Ke.connectionPair.overlayX?"after":"before",Lt="top"===Ke.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>ae.setPositionClasses(ct,Lt)):ae.setPositionClasses(ct,Lt)})}_setPosition(ae,we){let[Ke,ct]="before"===ae.xPosition?["end","start"]:["start","end"],[Lt,Pt]="above"===ae.yPosition?["bottom","top"]:["top","bottom"],[Kt,Bt]=[Lt,Pt],[Ye,Be]=[Ke,ct],ge=0;if(this.triggersSubmenu()){if(Be=Ke="before"===ae.xPosition?"start":"end",ct=Ye="end"===Ke?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const ue=this._parentMaterialMenu.items.first;this._parentInnerPadding=ue?ue._getHostElement().offsetTop:0}ge="bottom"===Lt?this._parentInnerPadding:-this._parentInnerPadding}}else ae.overlapTrigger||(Kt="top"===Lt?"bottom":"top",Bt="top"===Pt?"bottom":"top");we.withPositions([{originX:Ke,originY:Kt,overlayX:Ye,overlayY:Lt,offsetY:ge},{originX:ct,originY:Kt,overlayX:Be,overlayY:Lt,offsetY:ge},{originX:Ke,originY:Bt,overlayX:Ye,overlayY:Pt,offsetY:-ge},{originX:ct,originY:Bt,overlayX:Be,overlayY:Pt,offsetY:-ge}])}_menuClosingActions(){const ae=this._overlayRef.backdropClick(),we=this._overlayRef.detachments(),Ke=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,h.of)(),ct=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Me.h)(Lt=>Lt!==this._menuItemInstance),(0,Me.h)(()=>this._menuOpen)):(0,h.of)();return(0,f.T)(ae,Ke,ct,we)}_handleMousedown(ae){(0,n.X6)(ae)||(this._openedBy=0===ae.button?"mouse":void 0,this.triggersSubmenu()&&ae.preventDefault())}_handleKeydown(ae){const we=ae.keyCode;(we===b.K5||we===b.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(we===b.SV&&"ltr"===this.dir||we===b.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(ae){this.triggersSubmenu()?(ae.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Me.h)(ae=>ae===this._menuItemInstance&&!ae.disabled),B(0,m.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Ve&&this.menu._isAnimating?this.menu._animationDone.pipe((0,v.q)(1),B(0,m.E),(0,he.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(ae){return(!this._portal||this._portal.templateRef!==ae.templateRef)&&(this._portal=new G.UE(ae.templateRef,this._viewContainerRef)),this._portal}}return H.\u0275fac=function(ae){return new(ae||H)(u.\u0275\u0275directiveInject(J.aV),u.\u0275\u0275directiveInject(u.ElementRef),u.\u0275\u0275directiveInject(u.ViewContainerRef),u.\u0275\u0275directiveInject(Ce),u.\u0275\u0275directiveInject(Ue,8),u.\u0275\u0275directiveInject(Ne,10),u.\u0275\u0275directiveInject(De.Is,8),u.\u0275\u0275directiveInject(n.tE),u.\u0275\u0275directiveInject(u.NgZone))},H.\u0275dir=u.\u0275\u0275defineDirective({type:H,hostVars:3,hostBindings:function(ae,we){1&ae&&u.\u0275\u0275listener("click",function(ct){return we._handleClick(ct)})("mousedown",function(ct){return we._handleMousedown(ct)})("keydown",function(ct){return we._handleKeydown(ct)}),2&ae&&u.\u0275\u0275attribute("aria-haspopup",we.menu?"menu":null)("aria-expanded",we.menuOpen||null)("aria-controls",we.menuOpen?we.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"}}),H})(),at=(()=>{class H extends Fe{}return H.\u0275fac=function(){let me;return function(we){return(me||(me=u.\u0275\u0275getInheritedFactory(H)))(we||H)}}(),H.\u0275dir=u.\u0275\u0275defineDirective({type:H,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[u.\u0275\u0275InheritDefinitionFeature]}),H})(),Te=(()=>{class H{}return H.\u0275fac=function(ae){return new(ae||H)},H.\u0275mod=u.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=u.\u0275\u0275defineInjector({providers:[Se],imports:[Z.CommonModule,V.MatCommonModule,V.MatRippleModule,J.U8,it.ZD,V.MatCommonModule]}),H})()},4999:($,o,a)=>{"use strict";a.r(o),a.d(o,{MatCell:()=>on,MatCellDef:()=>ht,MatColumnDef:()=>tt,MatFooterCell:()=>$t,MatFooterCellDef:()=>ve,MatFooterRow:()=>de,MatFooterRowDef:()=>yn,MatHeaderCell:()=>pt,MatHeaderCellDef:()=>se,MatHeaderRow:()=>$e,MatHeaderRowDef:()=>nn,MatNoDataRow:()=>mt,MatRecycleRows:()=>dt,MatRow:()=>Qe,MatRowDef:()=>He,MatTable:()=>ke,MatTableDataSource:()=>_n,MatTableModule:()=>Ht,MatTextColumn:()=>_t,_MatTableDataSource:()=>An});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 F=[[["caption"]],[["colgroup"],["col"]]],j=["caption","colgroup, col"];function Q(ce,Re){if(1&ce&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ce){const X=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",X.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",X.headerText," ")}}function U(ce,Re){if(1&ce&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ce){const X=Re.$implicit,Pe=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Pe.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Pe.dataAccessor(X,Pe.name)," ")}}function Y(ce){return class extends ce{constructor(...Re){super(...Re),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Re){const X=this._sticky;this._sticky=(0,p.Ig)(Re),this._hasStickyChanged=X!==this._sticky}hasStickyChanged(){const Re=this._hasStickyChanged;return this._hasStickyChanged=!1,Re}resetStickyChanged(){this._hasStickyChanged=!1}}}const B=new n.InjectionToken("CDK_TABLE"),ee=new n.InjectionToken("text-column-options");let ie=(()=>{class ce{constructor(X){this.template=X}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.TemplateRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkCellDef",""]]}),ce})(),he=(()=>{class ce{constructor(X){this.template=X}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.TemplateRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkHeaderCellDef",""]]}),ce})(),Me=(()=>{class ce{constructor(X){this.template=X}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.TemplateRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkFooterCellDef",""]]}),ce})();class qe{}const G=Y(qe);let Z=(()=>{class ce extends G{constructor(X){super(),this._table=X,this._stickyEnd=!1}get name(){return this._name}set name(X){this._setNameInput(X)}get stickyEnd(){return this._stickyEnd}set stickyEnd(X){const Pe=this._stickyEnd;this._stickyEnd=(0,p.Ig)(X),this._hasStickyChanged=Pe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(X){X&&(this._name=X,this.cssClassFriendlyName=X.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(B,8))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkColumnDef",""]],contentQueries:function(X,Pe,Ze){if(1&X&&(n.\u0275\u0275contentQuery(Ze,ie,5),n.\u0275\u0275contentQuery(Ze,he,5),n.\u0275\u0275contentQuery(Ze,Me,5)),2&X){let Dt;n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Pe.cell=Dt.first),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Pe.headerCell=Dt.first),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Pe.footerCell=Dt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[n.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})();class V{constructor(Re,X){X.nativeElement.classList.add(...Re._columnCssClassName)}}let J=(()=>{class ce extends V{constructor(X,Pe){super(X,Pe)}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(Z),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),_e=(()=>{class ce extends V{constructor(X,Pe){var Ze;if(super(X,Pe),1===(null===(Ze=X._table)||void 0===Ze?void 0:Ze._elementRef.nativeElement.nodeType)){const Dt=X._table._elementRef.nativeElement.getAttribute("role");Pe.nativeElement.setAttribute("role","grid"===Dt||"treegrid"===Dt?"gridcell":"cell")}}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(Z),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),De=(()=>{class ce extends V{constructor(X,Pe){var Ze;if(super(X,Pe),1===(null===(Ze=X._table)||void 0===Ze?void 0:Ze._elementRef.nativeElement.nodeType)){const Dt=X._table._elementRef.nativeElement.getAttribute("role");Pe.nativeElement.setAttribute("role","grid"===Dt||"treegrid"===Dt?"gridcell":"cell")}}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(Z),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})();class it{constructor(){this.tasks=[],this.endTasks=[]}}const rt=new n.InjectionToken("_COALESCED_STYLE_SCHEDULER");let yt=(()=>{class ce{constructor(X){this._ngZone=X,this._currentSchedule=null,this._destroyed=new r.x}schedule(X){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(X)}scheduleEnd(X){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(X)}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 X=this._currentSchedule;this._currentSchedule=new it;for(const Pe of X.tasks)Pe();for(const Pe of X.endTasks)Pe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,c.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,y.q)(1))}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275inject(n.NgZone))},ce.\u0275prov=n.\u0275\u0275defineInjectable({token:ce,factory:ce.\u0275fac}),ce})(),ft=(()=>{class ce{constructor(X,Pe){this.template=X,this._differs=Pe}ngOnChanges(X){if(!this._columnsDiffer){const Pe=X.columns&&X.columns.currentValue||[];this._columnsDiffer=this._differs.find(Pe).create(),this._columnsDiffer.diff(Pe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(X){return this instanceof lt?X.headerCell.template:this instanceof wt?X.footerCell.template:X.cell.template}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,features:[n.\u0275\u0275NgOnChangesFeature]}),ce})();class Et extends ft{}const et=Y(Et);let lt=(()=>{class ce extends et{constructor(X,Pe,Ze){super(X,Pe),this._table=Ze}ngOnChanges(X){super.ngOnChanges(X)}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(B,8))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),ce})();class Ge extends ft{}const nt=Y(Ge);let wt=(()=>{class ce extends nt{constructor(X,Pe,Ze){super(X,Pe),this._table=Ze}ngOnChanges(X){super.ngOnChanges(X)}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(B,8))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275InheritDefinitionFeature,n.\u0275\u0275NgOnChangesFeature]}),ce})(),Ct=(()=>{class ce extends ft{constructor(X,Pe,Ze){super(X,Pe),this._table=Ze}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.TemplateRef),n.\u0275\u0275directiveInject(n.IterableDiffers),n.\u0275\u0275directiveInject(B,8))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),st=(()=>{class ce{constructor(X){this._viewContainer=X,ce.mostRecentCellOutlet=this}ngOnDestroy(){ce.mostRecentCellOutlet===this&&(ce.mostRecentCellOutlet=null)}}return ce.mostRecentCellOutlet=null,ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.ViewContainerRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","cdkCellOutlet",""]]}),ce})(),It=(()=>{class ce{}return ce.\u0275fac=function(X){return new(X||ce)},ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(X,Pe){1&X&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ce})(),Ue=(()=>{class ce{}return ce.\u0275fac=function(X){return new(X||ce)},ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(X,Pe){1&X&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ce})(),Ae=(()=>{class ce{}return ce.\u0275fac=function(X){return new(X||ce)},ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(X,Pe){1&X&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ce})(),Ne=(()=>{class ce{constructor(X){this.templateRef=X,this._contentClassName="cdk-no-data-row"}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.TemplateRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["ng-template","cdkNoDataRow",""]]}),ce})();const fe=["top","bottom","left","right"];class ze{constructor(Re,X,Pe,Ze,Dt=!0,Ft=!0,Zt){this._isNativeHtmlTable=Re,this._stickCellCss=X,this.direction=Pe,this._coalescedStyleScheduler=Ze,this._isBrowser=Dt,this._needsPositionStickyOnElement=Ft,this._positionListener=Zt,this._cachedCellWidths=[],this._borderCellCss={top:`${X}-border-elem-top`,bottom:`${X}-border-elem-bottom`,left:`${X}-border-elem-left`,right:`${X}-border-elem-right`}}clearStickyPositioning(Re,X){const Pe=[];for(const Ze of Re)if(Ze.nodeType===Ze.ELEMENT_NODE){Pe.push(Ze);for(let Dt=0;Dt<Ze.children.length;Dt++)Pe.push(Ze.children[Dt])}this._coalescedStyleScheduler.schedule(()=>{for(const Ze of Pe)this._removeStickyStyle(Ze,X)})}updateStickyColumns(Re,X,Pe,Ze=!0){if(!Re.length||!this._isBrowser||!X.some(qt=>qt)&&!Pe.some(qt=>qt))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const Dt=Re[0],Ft=Dt.children.length,Zt=this._getCellWidths(Dt,Ze),Qt=this._getStickyStartColumnPositions(Zt,X),sn=this._getStickyEndColumnPositions(Zt,Pe),mn=X.lastIndexOf(!0),vn=Pe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const qt="rtl"===this.direction,Rn=qt?"right":"left",ei=qt?"left":"right";for(const Jt of Re)for(let Fn=0;Fn<Ft;Fn++){const ti=Jt.children[Fn];X[Fn]&&this._addStickyStyle(ti,Rn,Qt[Fn],Fn===mn),Pe[Fn]&&this._addStickyStyle(ti,ei,sn[Fn],Fn===vn)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===mn?[]:Zt.slice(0,mn+1).map((Jt,Fn)=>X[Fn]?Jt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===vn?[]:Zt.slice(vn).map((Jt,Fn)=>Pe[Fn+vn]?Jt:null).reverse()}))})}stickRows(Re,X,Pe){if(!this._isBrowser)return;const Ze="bottom"===Pe?Re.slice().reverse():Re,Dt="bottom"===Pe?X.slice().reverse():X,Ft=[],Zt=[],Qt=[];for(let mn=0,vn=0;mn<Ze.length;mn++){if(!Dt[mn])continue;Ft[mn]=vn;const qt=Ze[mn];Qt[mn]=this._isNativeHtmlTable?Array.from(qt.children):[qt];const Rn=qt.getBoundingClientRect().height;vn+=Rn,Zt[mn]=Rn}const sn=Dt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var mn,vn;for(let qt=0;qt<Ze.length;qt++){if(!Dt[qt])continue;const Rn=Ft[qt],ei=qt===sn;for(const Jt of Qt[qt])this._addStickyStyle(Jt,Pe,Rn,ei)}"top"===Pe?null===(mn=this._positionListener)||void 0===mn||mn.stickyHeaderRowsUpdated({sizes:Zt,offsets:Ft,elements:Qt}):null===(vn=this._positionListener)||void 0===vn||vn.stickyFooterRowsUpdated({sizes:Zt,offsets:Ft,elements:Qt})})}updateStickyFooterContainer(Re,X){if(!this._isNativeHtmlTable)return;const Pe=Re.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{X.some(Ze=>!Ze)?this._removeStickyStyle(Pe,["bottom"]):this._addStickyStyle(Pe,"bottom",0,!1)})}_removeStickyStyle(Re,X){for(const Ze of X)Re.style[Ze]="",Re.classList.remove(this._borderCellCss[Ze]);fe.some(Ze=>-1===X.indexOf(Ze)&&Re.style[Ze])?Re.style.zIndex=this._getCalculatedZIndex(Re):(Re.style.zIndex="",this._needsPositionStickyOnElement&&(Re.style.position=""),Re.classList.remove(this._stickCellCss))}_addStickyStyle(Re,X,Pe,Ze){Re.classList.add(this._stickCellCss),Ze&&Re.classList.add(this._borderCellCss[X]),Re.style[X]=`${Pe}px`,Re.style.zIndex=this._getCalculatedZIndex(Re),this._needsPositionStickyOnElement&&(Re.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Re){const X={top:100,bottom:10,left:1,right:1};let Pe=0;for(const Ze of fe)Re.style[Ze]&&(Pe+=X[Ze]);return Pe?`${Pe}`:""}_getCellWidths(Re,X=!0){if(!X&&this._cachedCellWidths.length)return this._cachedCellWidths;const Pe=[],Ze=Re.children;for(let Dt=0;Dt<Ze.length;Dt++)Pe.push(Ze[Dt].getBoundingClientRect().width);return this._cachedCellWidths=Pe,Pe}_getStickyStartColumnPositions(Re,X){const Pe=[];let Ze=0;for(let Dt=0;Dt<Re.length;Dt++)X[Dt]&&(Pe[Dt]=Ze,Ze+=Re[Dt]);return Pe}_getStickyEndColumnPositions(Re,X){const Pe=[];let Ze=0;for(let Dt=Re.length;Dt>0;Dt--)X[Dt]&&(Pe[Dt]=Ze,Ze+=Re[Dt]);return Pe}}const Fe=new n.InjectionToken("CDK_SPL");let Te=(()=>{class ce{constructor(X,Pe){this.viewContainer=X,this.elementRef=Pe}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","rowOutlet",""]]}),ce})(),H=(()=>{class ce{constructor(X,Pe){this.viewContainer=X,this.elementRef=Pe}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","headerRowOutlet",""]]}),ce})(),me=(()=>{class ce{constructor(X,Pe){this.viewContainer=X,this.elementRef=Pe}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","footerRowOutlet",""]]}),ce})(),ae=(()=>{class ce{constructor(X,Pe){this.viewContainer=X,this.elementRef=Pe}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(n.ViewContainerRef),n.\u0275\u0275directiveInject(n.ElementRef))},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","noDataRowOutlet",""]]}),ce})(),ct=(()=>{class ce{constructor(X,Pe,Ze,Dt,Ft,Zt,Qt,sn,mn,vn,qt,Rn){this._differs=X,this._changeDetectorRef=Pe,this._elementRef=Ze,this._dir=Ft,this._platform=Qt,this._viewRepeater=sn,this._coalescedStyleScheduler=mn,this._viewportRuler=vn,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=Zt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(X){this._trackByFn=X}get dataSource(){return this._dataSource}set dataSource(X){this._dataSource!==X&&this._switchDataSource(X)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(X){this._multiTemplateDataRows=(0,p.Ig)(X),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(X){this._fixedLayout=(0,p.Ig)(X),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((X,Pe)=>this.trackBy?this.trackBy(Pe.dataIndex,Pe.data):Pe),this._viewportRuler.change().pipe((0,v.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Pe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Pe,this._forceRecalculateCellWidths=Pe,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(X=>{X.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 X=this._dataDiffer.diff(this._renderRows);if(!X)return this._updateNoDataRow(),void this.contentChanged.next();const Pe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(X,Pe,(Ze,Dt,Ft)=>this._getEmbeddedViewArgs(Ze.item,Ft),Ze=>Ze.item.data,Ze=>{1===Ze.operation&&Ze.context&&this._renderCellTemplateForItem(Ze.record.item.rowDef,Ze.context)}),this._updateRowIndexContext(),X.forEachIdentityChange(Ze=>{Pe.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(X){this._customColumnDefs.add(X)}removeColumnDef(X){this._customColumnDefs.delete(X)}addRowDef(X){this._customRowDefs.add(X)}removeRowDef(X){this._customRowDefs.delete(X)}addHeaderRowDef(X){this._customHeaderRowDefs.add(X),this._headerRowDefChanged=!0}removeHeaderRowDef(X){this._customHeaderRowDefs.delete(X),this._headerRowDefChanged=!0}addFooterRowDef(X){this._customFooterRowDefs.add(X),this._footerRowDefChanged=!0}removeFooterRowDef(X){this._customFooterRowDefs.delete(X),this._footerRowDefChanged=!0}setNoDataRow(X){this._customNoDataRow=X}updateStickyHeaderRowStyles(){const X=this._getRenderedRows(this._headerRowOutlet),Ze=this._elementRef.nativeElement.querySelector("thead");Ze&&(Ze.style.display=X.length?"":"none");const Dt=this._headerRowDefs.map(Ft=>Ft.sticky);this._stickyStyler.clearStickyPositioning(X,["top"]),this._stickyStyler.stickRows(X,Dt,"top"),this._headerRowDefs.forEach(Ft=>Ft.resetStickyChanged())}updateStickyFooterRowStyles(){const X=this._getRenderedRows(this._footerRowOutlet),Ze=this._elementRef.nativeElement.querySelector("tfoot");Ze&&(Ze.style.display=X.length?"":"none");const Dt=this._footerRowDefs.map(Ft=>Ft.sticky);this._stickyStyler.clearStickyPositioning(X,["bottom"]),this._stickyStyler.stickRows(X,Dt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,Dt),this._footerRowDefs.forEach(Ft=>Ft.resetStickyChanged())}updateStickyColumnStyles(){const X=this._getRenderedRows(this._headerRowOutlet),Pe=this._getRenderedRows(this._rowOutlet),Ze=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...X,...Pe,...Ze],["left","right"]),this._stickyColumnStylesNeedReset=!1),X.forEach((Dt,Ft)=>{this._addStickyColumnStyles([Dt],this._headerRowDefs[Ft])}),this._rowDefs.forEach(Dt=>{const Ft=[];for(let Zt=0;Zt<Pe.length;Zt++)this._renderRows[Zt].rowDef===Dt&&Ft.push(Pe[Zt]);this._addStickyColumnStyles(Ft,Dt)}),Ze.forEach((Dt,Ft)=>{this._addStickyColumnStyles([Dt],this._footerRowDefs[Ft])}),Array.from(this._columnDefsByName.values()).forEach(Dt=>Dt.resetStickyChanged())}_getAllRenderRows(){const X=[],Pe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Ze=0;Ze<this._data.length;Ze++){let Dt=this._data[Ze];const Ft=this._getRenderRowsForData(Dt,Ze,Pe.get(Dt));this._cachedRenderRowsMap.has(Dt)||this._cachedRenderRowsMap.set(Dt,new WeakMap);for(let Zt=0;Zt<Ft.length;Zt++){let Qt=Ft[Zt];const sn=this._cachedRenderRowsMap.get(Qt.data);sn.has(Qt.rowDef)?sn.get(Qt.rowDef).push(Qt):sn.set(Qt.rowDef,[Qt]),X.push(Qt)}}return X}_getRenderRowsForData(X,Pe,Ze){return this._getRowDefs(X,Pe).map(Ft=>{const Zt=Ze&&Ze.has(Ft)?Ze.get(Ft):[];if(Zt.length){const Qt=Zt.shift();return Qt.dataIndex=Pe,Qt}return{data:X,rowDef:Ft,dataIndex:Pe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Lt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Pe=>{this._columnDefsByName.has(Pe.name),this._columnDefsByName.set(Pe.name,Pe)})}_cacheRowDefs(){this._headerRowDefs=Lt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Lt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Lt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const X=this._rowDefs.filter(Pe=>!Pe.when);this._defaultRowDef=X[0]}_renderUpdatedColumns(){const X=(Ft,Zt)=>Ft||!!Zt.getColumnsDiff(),Pe=this._rowDefs.reduce(X,!1);Pe&&this._forceRenderDataRows();const Ze=this._headerRowDefs.reduce(X,!1);Ze&&this._forceRenderHeaderRows();const Dt=this._footerRowDefs.reduce(X,!1);return Dt&&this._forceRenderFooterRows(),Pe||Ze||Dt}_switchDataSource(X){this._data=[],(0,b.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),X||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=X}_observeRenderChanges(){if(!this.dataSource)return;let X;(0,b.Z9)(this.dataSource)?X=this.dataSource.connect(this):function d(ce){return!!ce&&(ce instanceof h.y||(0,m.m)(ce.lift)&&(0,m.m)(ce.subscribe))}(this.dataSource)?X=this.dataSource:Array.isArray(this.dataSource)&&(X=(0,_.of)(this.dataSource)),this._renderChangeSubscription=X.pipe((0,v.R)(this._onDestroy)).subscribe(Pe=>{this._data=Pe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((X,Pe)=>this._renderRow(this._headerRowOutlet,X,Pe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((X,Pe)=>this._renderRow(this._footerRowOutlet,X,Pe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(X,Pe){const Ze=Array.from(Pe.columns||[]).map(Zt=>this._columnDefsByName.get(Zt)),Dt=Ze.map(Zt=>Zt.sticky),Ft=Ze.map(Zt=>Zt.stickyEnd);this._stickyStyler.updateStickyColumns(X,Dt,Ft,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(X){const Pe=[];for(let Ze=0;Ze<X.viewContainer.length;Ze++){const Dt=X.viewContainer.get(Ze);Pe.push(Dt.rootNodes[0])}return Pe}_getRowDefs(X,Pe){if(1==this._rowDefs.length)return[this._rowDefs[0]];let Ze=[];if(this.multiTemplateDataRows)Ze=this._rowDefs.filter(Dt=>!Dt.when||Dt.when(Pe,X));else{let Dt=this._rowDefs.find(Ft=>Ft.when&&Ft.when(Pe,X))||this._defaultRowDef;Dt&&Ze.push(Dt)}return Ze}_getEmbeddedViewArgs(X,Pe){return{templateRef:X.rowDef.template,context:{$implicit:X.data},index:Pe}}_renderRow(X,Pe,Ze,Dt={}){const Ft=X.viewContainer.createEmbeddedView(Pe.template,Dt,Ze);return this._renderCellTemplateForItem(Pe,Dt),Ft}_renderCellTemplateForItem(X,Pe){for(let Ze of this._getCellTemplates(X))st.mostRecentCellOutlet&&st.mostRecentCellOutlet._viewContainer.createEmbeddedView(Ze,Pe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const X=this._rowOutlet.viewContainer;for(let Pe=0,Ze=X.length;Pe<Ze;Pe++){const Ft=X.get(Pe).context;Ft.count=Ze,Ft.first=0===Pe,Ft.last=Pe===Ze-1,Ft.even=Pe%2==0,Ft.odd=!Ft.even,this.multiTemplateDataRows?(Ft.dataIndex=this._renderRows[Pe].dataIndex,Ft.renderIndex=Pe):Ft.index=this._renderRows[Pe].dataIndex}}_getCellTemplates(X){return X&&X.columns?Array.from(X.columns,Pe=>{const Ze=this._columnDefsByName.get(Pe);return X.extractCellTemplate(Ze)}):[]}_applyNativeTableSections(){const X=this._document.createDocumentFragment(),Pe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Ze of Pe){const Dt=this._document.createElement(Ze.tag);Dt.setAttribute("role","rowgroup");for(const Ft of Ze.outlets)Dt.appendChild(Ft.elementRef.nativeElement);X.appendChild(Dt)}this._elementRef.nativeElement.appendChild(X)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const X=(Pe,Ze)=>Pe||Ze.hasStickyChanged();this._headerRowDefs.reduce(X,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(X,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(X,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new ze(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(Pe=>{this._stickyStyler.direction=Pe,this.updateStickyColumnStyles()})}_getOwnDefs(X){return X.filter(Pe=>!Pe._table||Pe._table===this)}_updateNoDataRow(){const X=this._customNoDataRow||this._noDataRow;if(!X)return;const Pe=0===this._rowOutlet.viewContainer.length;if(Pe===this._isShowingNoDataRow)return;const Ze=this._noDataRowOutlet.viewContainer;if(Pe){const Dt=Ze.createEmbeddedView(X.templateRef),Ft=Dt.rootNodes[0];1===Dt.rootNodes.length&&(null==Ft?void 0:Ft.nodeType)===this._document.ELEMENT_NODE&&(Ft.setAttribute("role","row"),Ft.classList.add(X._contentClassName))}else Ze.clear();this._isShowingNoDataRow=Pe}}return ce.\u0275fac=function(X){return new(X||ce)(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(Fe,12),n.\u0275\u0275directiveInject(n.NgZone,8))},ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(X,Pe,Ze){if(1&X&&(n.\u0275\u0275contentQuery(Ze,Ne,5),n.\u0275\u0275contentQuery(Ze,Z,5),n.\u0275\u0275contentQuery(Ze,Ct,5),n.\u0275\u0275contentQuery(Ze,lt,5),n.\u0275\u0275contentQuery(Ze,wt,5)),2&X){let Dt;n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Pe._noDataRow=Dt.first),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Pe._contentColumnDefs=Dt),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Pe._contentRowDefs=Dt),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Pe._contentHeaderRowDefs=Dt),n.\u0275\u0275queryRefresh(Dt=n.\u0275\u0275loadQuery())&&(Pe._contentFooterRowDefs=Dt)}},viewQuery:function(X,Pe){if(1&X&&(n.\u0275\u0275viewQuery(Te,7),n.\u0275\u0275viewQuery(H,7),n.\u0275\u0275viewQuery(me,7),n.\u0275\u0275viewQuery(ae,7)),2&X){let Ze;n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Pe._rowOutlet=Ze.first),n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Pe._headerRowOutlet=Ze.first),n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Pe._footerRowOutlet=Ze.first),n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Pe._noDataRowOutlet=Ze.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(X,Pe){2&X&&n.\u0275\u0275classProp("cdk-table-fixed-layout",Pe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:B,useExisting:ce},{provide:b.k,useClass:b.yy},{provide:rt,useClass:yt},{provide:Fe,useValue:null}])],ngContentSelectors:j,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(X,Pe){1&X&&(n.\u0275\u0275projectionDef(F),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0)(3,1)(4,2)(5,3))},dependencies:[Te,H,me,ae],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2}),ce})();function Lt(ce,Re){return ce.concat(Array.from(Re))}let Pt=(()=>{class ce{constructor(X,Pe){this._table=X,this._options=Pe,this.justify="start",this._options=Pe||{}}get name(){return this._name}set name(X){this._name=X,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((X,Pe)=>X[Pe])),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 X=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(X):X[0].toUpperCase()+X.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return ce.\u0275fac=function(X){return new(X||ce)(n.\u0275\u0275directiveInject(ct,8),n.\u0275\u0275directiveInject(ee,8))},ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["cdk-text-column"]],viewQuery:function(X,Pe){if(1&X&&(n.\u0275\u0275viewQuery(Z,7),n.\u0275\u0275viewQuery(ie,7),n.\u0275\u0275viewQuery(he,7)),2&X){let Ze;n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Pe.columnDef=Ze.first),n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Pe.cell=Ze.first),n.\u0275\u0275queryRefresh(Ze=n.\u0275\u0275loadQuery())&&(Pe.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(X,Pe){1&X&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,Q,2,3,"th",1),n.\u0275\u0275template(2,U,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},dependencies:[ie,he,Z,De,J],encapsulation:2}),ce})(),Bt=(()=>{class ce{}return ce.\u0275fac=function(X){return new(X||ce)},ce.\u0275mod=n.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=n.\u0275\u0275defineInjector({imports:[A.Cl]}),ce})();var Ye=a(508),Be=a(6451),ge=a(9841),ue=a(4004);const re=[[["caption"]],[["colgroup"],["col"]]],oe=["caption","colgroup, col"];function L(ce,Re){if(1&ce&&(n.\u0275\u0275elementStart(0,"th",3),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ce){const X=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",X.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",X.headerText," ")}}function ye(ce,Re){if(1&ce&&(n.\u0275\u0275elementStart(0,"td",4),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&ce){const X=Re.$implicit,Pe=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("text-align",Pe.justify),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Pe.dataAccessor(X,Pe.name)," ")}}let dt=(()=>{class ce{}return ce.\u0275fac=function(X){return new(X||ce)},ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:b.k,useClass:b.eX}])]}),ce})(),ke=(()=>{class ce extends ct{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(X,Pe){2&X&&n.\u0275\u0275classProp("mat-table-fixed-layout",Pe.fixedLayout)},exportAs:["matTable"],features:[n.\u0275\u0275ProvidersFeature([{provide:b.k,useClass:b.yy},{provide:ct,useExisting:ce},{provide:B,useExisting:ce},{provide:rt,useClass:yt},{provide:Fe,useValue:null}]),n.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:oe,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(X,Pe){1&X&&(n.\u0275\u0275projectionDef(re),n.\u0275\u0275projection(0),n.\u0275\u0275projection(1,1),n.\u0275\u0275elementContainer(2,0)(3,1)(4,2)(5,3))},dependencies:[Te,H,me,ae],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}),ce})(),ht=(()=>{class ce extends ie{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:ie,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),se=(()=>{class ce extends he{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matHeaderCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:he,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),ve=(()=>{class ce extends Me{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matFooterCellDef",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:Me,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),tt=(()=>{class ce extends Z{get name(){return this._name}set name(X){this._setNameInput(X)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[n.\u0275\u0275ProvidersFeature([{provide:Z,useExisting:ce},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),pt=(()=>{class ce extends J{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),$t=(()=>{class ce extends _e{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),on=(()=>{class ce extends De{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[n.\u0275\u0275InheritDefinitionFeature]}),ce})(),nn=(()=>{class ce extends lt{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:lt,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),yn=(()=>{class ce extends wt{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[n.\u0275\u0275ProvidersFeature([{provide:wt,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),He=(()=>{class ce extends Ct{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[n.\u0275\u0275ProvidersFeature([{provide:Ct,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),$e=(()=>{class ce extends It{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:It,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(X,Pe){1&X&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ce})(),de=(()=>{class ce extends Ue{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:Ue,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(X,Pe){1&X&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ce})(),Qe=(()=>{class ce extends Ae{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[n.\u0275\u0275ProvidersFeature([{provide:Ae,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(X,Pe){1&X&&n.\u0275\u0275elementContainer(0,0)},dependencies:[st],encapsulation:2}),ce})(),mt=(()=>{class ce extends Ne{constructor(){super(...arguments),this._contentClassName="mat-no-data-row"}}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275dir=n.\u0275\u0275defineDirective({type:ce,selectors:[["ng-template","matNoDataRow",""]],features:[n.\u0275\u0275ProvidersFeature([{provide:Ne,useExisting:ce}]),n.\u0275\u0275InheritDefinitionFeature]}),ce})(),_t=(()=>{class ce extends Pt{}return ce.\u0275fac=function(){let Re;return function(Pe){return(Re||(Re=n.\u0275\u0275getInheritedFactory(ce)))(Pe||ce)}}(),ce.\u0275cmp=n.\u0275\u0275defineComponent({type:ce,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(X,Pe){1&X&&(n.\u0275\u0275elementContainerStart(0,0),n.\u0275\u0275template(1,L,2,3,"th",1),n.\u0275\u0275template(2,ye,2,3,"td",2),n.\u0275\u0275elementContainerEnd())},dependencies:[se,tt,ht,pt,on],encapsulation:2}),ce})(),Ht=(()=>{class ce{}return ce.\u0275fac=function(X){return new(X||ce)},ce.\u0275mod=n.\u0275\u0275defineNgModule({type:ce}),ce.\u0275inj=n.\u0275\u0275defineInjector({imports:[Bt,Ye.MatCommonModule,Ye.MatCommonModule]}),ce})();class An extends b.o2{constructor(Re=[]){super(),this._renderData=new f.X([]),this._filter=new f.X(""),this._internalPageChanges=new r.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(X,Pe)=>{const Ze=X[Pe];if((0,p.t6)(Ze)){const Dt=Number(Ze);return Dt<9007199254740991?Dt:Ze}return Ze},this.sortData=(X,Pe)=>{const Ze=Pe.active,Dt=Pe.direction;return Ze&&""!=Dt?X.sort((Ft,Zt)=>{let Qt=this.sortingDataAccessor(Ft,Ze),sn=this.sortingDataAccessor(Zt,Ze);const mn=typeof Qt,vn=typeof sn;mn!==vn&&("number"===mn&&(Qt+=""),"number"===vn&&(sn+=""));let qt=0;return null!=Qt&&null!=sn?Qt>sn?qt=1:Qt<sn&&(qt=-1):null!=Qt?qt=1:null!=sn&&(qt=-1),qt*("asc"==Dt?1:-1)}):X},this.filterPredicate=(X,Pe)=>{const Ze=Object.keys(X).reduce((Ft,Zt)=>Ft+X[Zt]+"\u25ec","").toLowerCase(),Dt=Pe.trim().toLowerCase();return-1!=Ze.indexOf(Dt)},this._data=new f.X(Re),this._updateChangeSubscription()}get data(){return this._data.value}set data(Re){Re=Array.isArray(Re)?Re:[],this._data.next(Re),this._renderChangesSubscription||this._filterData(Re)}get filter(){return this._filter.value}set filter(Re){this._filter.next(Re),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Re){this._sort=Re,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Re){this._paginator=Re,this._updateChangeSubscription()}_updateChangeSubscription(){var Re;const X=this._sort?(0,Be.T)(this._sort.sortChange,this._sort.initialized):(0,_.of)(null),Pe=this._paginator?(0,Be.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,_.of)(null),Dt=(0,ge.a)([this._data,this._filter]).pipe((0,ue.U)(([Qt])=>this._filterData(Qt))),Ft=(0,ge.a)([Dt,X]).pipe((0,ue.U)(([Qt])=>this._orderData(Qt))),Zt=(0,ge.a)([Ft,Pe]).pipe((0,ue.U)(([Qt])=>this._pageData(Qt)));null===(Re=this._renderChangesSubscription)||void 0===Re||Re.unsubscribe(),this._renderChangesSubscription=Zt.subscribe(Qt=>this._renderData.next(Qt))}_filterData(Re){return this.filteredData=null==this.filter||""===this.filter?Re:Re.filter(X=>this.filterPredicate(X,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Re){return this.sort?this.sortData(Re.slice(),this.sort):Re}_pageData(Re){if(!this.paginator)return Re;const X=this.paginator.pageIndex*this.paginator.pageSize;return Re.slice(X,X+this.paginator.pageSize)}_updatePaginator(Re){Promise.resolve().then(()=>{const X=this.paginator;if(X&&(X.length=Re,X.pageIndex>0)){const Pe=Math.ceil(X.length/X.pageSize)-1||0,Ze=Math.min(X.pageIndex,Pe);Ze!==X.pageIndex&&(X.pageIndex=Ze,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Re;null===(Re=this._renderChangesSubscription)||void 0===Re||Re.unsubscribe(),this._renderChangesSubscription=null}}class _n extends An{}},3251:($,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_TAB:()=>fe,MAT_TABS_CONFIG:()=>pe,MAT_TAB_GROUP:()=>Ve,MatInkBar:()=>It,MatTab:()=>z,MatTabBody:()=>xe,MatTabBodyPortal:()=>Le,MatTabChangeEvent:()=>Pt,MatTabContent:()=>Ae,MatTabGroup:()=>Ye,MatTabHeader:()=>ct,MatTabLabel:()=>ze,MatTabLabelWrapper:()=>at,MatTabLink:()=>L,MatTabNav:()=>ue,MatTabNavPanel:()=>ye,MatTabsModule:()=>dt,_MAT_INK_BAR_POSITIONER:()=>Ct,_MatTabBodyBase:()=>Se,_MatTabGroupBase:()=>Bt,_MatTabHeaderBase:()=>Ke,_MatTabLinkBase:()=>oe,_MatTabNavBase:()=>ge,matTabsAnimations:()=>Ce});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),F=a(6451),j=a(515),Q=a(8306),U=a(5963),Y=a(1777),B=a(226),ee=a(3191),ie=a(1159),he=a(925),Me=a(495);function qe(ke,ht){1&ke&&r.\u0275\u0275projection(0)}const G=["*"];function Z(ke,ht){}const V=function(ke){return{animationDuration:ke}},J=function(ke,ht){return{value:ke,params:ht}},_e=["tabListContainer"],De=["tabList"],it=["tabListInner"],rt=["nextPaginator"],yt=["previousPaginator"],Oe=["tabBodyWrapper"],ft=["tabHeader"];function Et(ke,ht){}function et(ke,ht){if(1&ke&&r.\u0275\u0275template(0,Et,0,0,"ng-template",10),2&ke){const se=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275property("cdkPortalOutlet",se.templateLabel)}}function lt(ke,ht){if(1&ke&&r.\u0275\u0275text(0),2&ke){const se=r.\u0275\u0275nextContext().$implicit;r.\u0275\u0275textInterpolate(se.textLabel)}}function Ge(ke,ht){if(1&ke){const se=r.\u0275\u0275getCurrentView();r.\u0275\u0275elementStart(0,"div",6),r.\u0275\u0275listener("click",function(){const tt=r.\u0275\u0275restoreView(se),pt=tt.$implicit,$t=tt.index,on=r.\u0275\u0275nextContext(),nn=r.\u0275\u0275reference(1);return r.\u0275\u0275resetView(on._handleClick(pt,nn,$t))})("cdkFocusChange",function(tt){const $t=r.\u0275\u0275restoreView(se).index,on=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(on._tabFocusChanged(tt,$t))}),r.\u0275\u0275elementStart(1,"div",7),r.\u0275\u0275template(2,et,1,1,"ng-template",8),r.\u0275\u0275template(3,lt,1,1,"ng-template",null,9,r.\u0275\u0275templateRefExtractor),r.\u0275\u0275elementEnd()()}if(2&ke){const se=ht.$implicit,ve=ht.index,tt=r.\u0275\u0275reference(4),pt=r.\u0275\u0275nextContext();r.\u0275\u0275classProp("mat-tab-label-active",pt.selectedIndex===ve),r.\u0275\u0275property("id",pt._getTabLabelId(ve))("ngClass",se.labelClass)("disabled",se.disabled)("matRippleDisabled",se.disabled||pt.disableRipple),r.\u0275\u0275attribute("tabIndex",pt._getTabIndex(se,ve))("aria-posinset",ve+1)("aria-setsize",pt._tabs.length)("aria-controls",pt._getTabContentId(ve))("aria-selected",pt.selectedIndex===ve)("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",tt)}}function nt(ke,ht){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 tt=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(tt._removeTabBodyWrapperHeight())})("_onCentering",function(tt){r.\u0275\u0275restoreView(se);const pt=r.\u0275\u0275nextContext();return r.\u0275\u0275resetView(pt._setTabBodyWrapperHeight(tt))}),r.\u0275\u0275elementEnd()}if(2&ke){const se=ht.$implicit,ve=ht.index,tt=r.\u0275\u0275nextContext();r.\u0275\u0275classProp("mat-tab-body-active",tt.selectedIndex===ve),r.\u0275\u0275property("id",tt._getTabContentId(ve))("ngClass",se.bodyClass)("content",se.content)("position",se.position)("origin",se.origin)("animationDuration",tt.animationDuration)("preserveContent",tt.preserveContent),r.\u0275\u0275attribute("tabindex",null!=tt.contentTabIndex&&tt.selectedIndex===ve?tt.contentTabIndex:null)("aria-labelledby",tt._getTabLabelId(ve))}}const wt=["mat-tab-nav-bar",""],Ct=new r.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:function st(){return ht=>({left:ht?(ht.offsetLeft||0)+"px":"0",width:ht?(ht.offsetWidth||0)+"px":"0"})}});let It=(()=>{class ke{constructor(se,ve,tt,pt){this._elementRef=se,this._ngZone=ve,this._inkBarPositioner=tt,this._animationMode=pt}alignToElement(se){this.show(),this._ngZone.run(()=>{this._ngZone.onStable.pipe((0,f.q)(1)).subscribe(()=>{const ve=this._inkBarPositioner(se),tt=this._elementRef.nativeElement;tt.style.left=ve.left,tt.style.width=ve.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,ve){2&se&&r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ve._animationMode)}}),ke})();const Ue=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:Ue,useExisting:ke}])]}),ke})();const Ne=new r.InjectionToken("MatTabLabel"),fe=new r.InjectionToken("MAT_TAB");let ze=(()=>{class ke extends b.ig{constructor(se,ve,tt){super(se,ve),this._closestTab=tt}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.TemplateRef),r.\u0275\u0275directiveInject(r.ViewContainerRef),r.\u0275\u0275directiveInject(fe,8))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[r.\u0275\u0275ProvidersFeature([{provide:Ne,useExisting:ke}]),r.\u0275\u0275InheritDefinitionFeature]}),ke})();const Ie=(0,c.mixinDisabled)(class{}),Ve=new r.InjectionToken("MAT_TAB_GROUP");let z=(()=>{class ke extends Ie{constructor(se,ve){super(),this._viewContainerRef=se,this._closestTabGroup=ve,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(Ve,8))},ke.\u0275cmp=r.\u0275\u0275defineComponent({type:ke,selectors:[["mat-tab"]],contentQueries:function(se,ve,tt){if(1&se&&(r.\u0275\u0275contentQuery(tt,Ne,5),r.\u0275\u0275contentQuery(tt,Ue,7,r.TemplateRef)),2&se){let pt;r.\u0275\u0275queryRefresh(pt=r.\u0275\u0275loadQuery())&&(ve.templateLabel=pt.first),r.\u0275\u0275queryRefresh(pt=r.\u0275\u0275loadQuery())&&(ve._explicitContent=pt.first)}},viewQuery:function(se,ve){if(1&se&&r.\u0275\u0275viewQuery(r.TemplateRef,7),2&se){let tt;r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._implicitContent=tt.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:fe,useExisting:ke}]),r.\u0275\u0275InheritDefinitionFeature,r.\u0275\u0275NgOnChangesFeature],ngContentSelectors:G,decls:1,vars:0,template:function(se,ve){1&se&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275template(0,qe,1,0,"ng-template"))},encapsulation:2}),ke})();const Ce={translateTab:(0,Y.X$)("translateTab",[(0,Y.SB)("center, void, left-origin-center, right-origin-center",(0,Y.oB)({transform:"none"})),(0,Y.SB)("left",(0,Y.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Y.SB)("right",(0,Y.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Y.eR)("* => left, * => right, left => center, right => center",(0,Y.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,Y.eR)("void => left-origin-center",[(0,Y.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,Y.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,Y.eR)("void => right-origin-center",[(0,Y.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,Y.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let Le=(()=>{class ke extends b.Pl{constructor(se,ve,tt,pt){super(se,ve,pt),this._host=tt,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)(()=>xe)),r.\u0275\u0275directiveInject(u.DOCUMENT))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,selectors:[["","matTabBodyHost",""]],features:[r.\u0275\u0275InheritDefinitionFeature]}),ke})(),Se=(()=>{class ke{constructor(se,ve,tt){this._elementRef=se,this._dir=ve,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,ve&&(this._dirChangeSubscription=ve.change.subscribe(pt=>{this._computePositionAnimationState(pt),tt.markForCheck()})),this._translateTabComplete.pipe((0,m.x)((pt,$t)=>pt.fromState===$t.fromState&&pt.toState===$t.toState)).subscribe(pt=>{this._isCenterPosition(pt.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(pt.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 ve=this._isCenterPosition(se.toState);this._beforeCentering.emit(ve),ve&&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 ve=this._getLayoutDirection();return"ltr"==ve&&se<=0||"rtl"==ve&&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(B.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})(),xe=(()=>{class ke extends Se{constructor(se,ve,tt){super(se,ve,tt)}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(B.Is,8),r.\u0275\u0275directiveInject(r.ChangeDetectorRef))},ke.\u0275cmp=r.\u0275\u0275defineComponent({type:ke,selectors:[["mat-tab-body"]],viewQuery:function(se,ve){if(1&se&&r.\u0275\u0275viewQuery(b.Pl,5),2&se){let tt;r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._portalHost=tt.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,ve){1&se&&(r.\u0275\u0275elementStart(0,"div",0,1),r.\u0275\u0275listener("@translateTab.start",function(pt){return ve._onTranslateTabStarted(pt)})("@translateTab.done",function(pt){return ve._translateTabComplete.next(pt)}),r.\u0275\u0275template(2,Z,0,0,"ng-template",2),r.\u0275\u0275elementEnd()),2&se&&r.\u0275\u0275property("@translateTab",r.\u0275\u0275pureFunction2(3,J,ve._position,r.\u0275\u0275pureFunction1(1,V,ve.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:[Ce.translateTab]}}),ke})();const pe=new r.InjectionToken("MAT_TABS_CONFIG"),Fe=(0,c.mixinDisabled)(class{});let at=(()=>{class ke extends Fe{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,ve){2&se&&(r.\u0275\u0275attribute("aria-disabled",!!ve.disabled),r.\u0275\u0275classProp("mat-tab-disabled",ve.disabled))},inputs:{disabled:"disabled"},features:[r.\u0275\u0275InheritDefinitionFeature]}),ke})();const Te=(0,he.i$)({passive:!0});let we=(()=>{class ke{constructor(se,ve,tt,pt,$t,on,nn){this._elementRef=se,this._changeDetectorRef=ve,this._viewportRuler=tt,this._dir=pt,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,ee.Ig)(se)}get selectedIndex(){return this._selectedIndex}set selectedIndex(se){se=(0,ee.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",Te).pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,M.R)(this._nextPaginator.nativeElement,"touchstart",Te).pipe((0,d.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const se=this._dir?this._dir.change:(0,A.of)("ltr"),ve=this._viewportRuler.change(150),tt=()=>{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(tt),(0,F.T)(se,ve,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)),tt()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,d.R)(this._destroyed)).subscribe(pt=>{this.indexFocused.emit(pt),this._setTabFocus(pt)})}_itemsResized(){return"function"!=typeof ResizeObserver?j.E:this._items.changes.pipe((0,h.O)(this._items),(0,_.w)(se=>new Q.y(ve=>this._ngZone.runOutsideAngular(()=>{const tt=new ResizeObserver(()=>{ve.next()});return se.forEach(pt=>{tt.observe(pt.elementRef.nativeElement)}),()=>{tt.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,ie.Vb)(se))switch(se.keyCode){case ie.K5:case ie.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 ve=this._items?this._items.toArray()[se]:null;return!!ve&&!ve.disabled}_setTabFocus(se){if(this._showPaginationControls&&this._scrollToLabel(se),this._items&&this._items.length){this._items.toArray()[se].focus();const ve=this._tabListContainer.nativeElement;ve.scrollLeft="ltr"==this._getLayoutDirection()?0:ve.scrollWidth-ve.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const se=this.scrollDistance,ve="ltr"===this._getLayoutDirection()?-se:se;this._tabList.nativeElement.style.transform=`translateX(${Math.round(ve)}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 ve=this._items?this._items.toArray()[se]:null;if(!ve)return;const tt=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:pt,offsetWidth:$t}=ve.elementRef.nativeElement;let on,nn;"ltr"==this._getLayoutDirection()?(on=pt,nn=on+$t):(nn=this._tabListInner.nativeElement.offsetWidth-pt,on=nn-$t);const yn=this.scrollDistance,He=this.scrollDistance+tt;on<yn?this.scrollDistance-=yn-on+60:nn>He&&(this.scrollDistance+=nn-He+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,ve=se?se.elementRef.nativeElement:null;ve?this._inkBar.alignToElement(ve):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(se,ve){ve&&null!=ve.button&&0!==ve.button||(this._stopInterval(),(0,U.H)(650,100).pipe((0,d.R)((0,F.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:tt,distance:pt}=this._scrollHeader(se);(0===pt||pt>=tt)&&this._stopInterval()}))}_scrollTo(se){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const ve=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(ve,se)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:ve,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(Me.rL),r.\u0275\u0275directiveInject(B.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(he.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,inputs:{disablePagination:"disablePagination"}}),ke})(),Ke=(()=>{class ke extends we{constructor(se,ve,tt,pt,$t,on,nn){super(se,ve,tt,pt,$t,on,nn),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(se){this._disableRipple=(0,ee.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(Me.rL),r.\u0275\u0275directiveInject(B.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(he.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275dir=r.\u0275\u0275defineDirective({type:ke,inputs:{disableRipple:"disableRipple"},features:[r.\u0275\u0275InheritDefinitionFeature]}),ke})(),ct=(()=>{class ke extends Ke{constructor(se,ve,tt,pt,$t,on,nn){super(se,ve,tt,pt,$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(Me.rL),r.\u0275\u0275directiveInject(B.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(he.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275cmp=r.\u0275\u0275defineComponent({type:ke,selectors:[["mat-tab-header"]],contentQueries:function(se,ve,tt){if(1&se&&r.\u0275\u0275contentQuery(tt,at,4),2&se){let pt;r.\u0275\u0275queryRefresh(pt=r.\u0275\u0275loadQuery())&&(ve._items=pt)}},viewQuery:function(se,ve){if(1&se&&(r.\u0275\u0275viewQuery(It,7),r.\u0275\u0275viewQuery(_e,7),r.\u0275\u0275viewQuery(De,7),r.\u0275\u0275viewQuery(it,7),r.\u0275\u0275viewQuery(rt,5),r.\u0275\u0275viewQuery(yt,5)),2&se){let tt;r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._inkBar=tt.first),r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._tabListContainer=tt.first),r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._tabList=tt.first),r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._tabListInner=tt.first),r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._nextPaginator=tt.first),r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._previousPaginator=tt.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(se,ve){2&se&&r.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",ve._showPaginationControls)("mat-tab-header-rtl","rtl"==ve._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,ve){1&se&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275elementStart(0,"button",0,1),r.\u0275\u0275listener("click",function(){return ve._handlePaginatorClick("before")})("mousedown",function(pt){return ve._handlePaginatorPress("before",pt)})("touchend",function(){return ve._stopInterval()}),r.\u0275\u0275element(2,"div",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",3,4),r.\u0275\u0275listener("keydown",function(pt){return ve._handleKeydown(pt)}),r.\u0275\u0275elementStart(5,"div",5,6),r.\u0275\u0275listener("cdkObserveContent",function(){return ve._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(pt){return ve._handlePaginatorPress("after",pt)})("click",function(){return ve._handlePaginatorClick("after")})("touchend",function(){return ve._stopInterval()}),r.\u0275\u0275element(13,"div",2),r.\u0275\u0275elementEnd()),2&se&&(r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",ve._disableScrollBefore),r.\u0275\u0275property("matRippleDisabled",ve._disableScrollBefore||ve.disableRipple)("disabled",ve._disableScrollBefore||null),r.\u0275\u0275advance(5),r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ve._animationMode),r.\u0275\u0275advance(6),r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",ve._disableScrollAfter),r.\u0275\u0275property("matRippleDisabled",ve._disableScrollAfter||ve.disableRipple)("disabled",ve._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})(),Lt=0;class Pt{}const Kt=(0,c.mixinColor)((0,c.mixinDisableRipple)(class{constructor(ke){this._elementRef=ke}}),"primary");let Bt=(()=>{class ke extends Kt{constructor(se,ve,tt,pt){var $t;super(se),this._changeDetectorRef=ve,this._animationMode=pt,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=Lt++,this.animationDuration=tt&&tt.animationDuration?tt.animationDuration:"500ms",this.disablePagination=!(!tt||null==tt.disablePagination)&&tt.disablePagination,this.dynamicHeight=!(!tt||null==tt.dynamicHeight)&&tt.dynamicHeight,this.contentTabIndex=null!==($t=null==tt?void 0:tt.contentTabIndex)&&void 0!==$t?$t:null,this.preserveContent=!(null==tt||!tt.preserveContent)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(se){this._dynamicHeight=(0,ee.Ig)(se)}get selectedIndex(){return this._selectedIndex}set selectedIndex(se){this._indexToSelect=(0,ee.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,ee.su)(se,null)}get disablePagination(){return this._disablePagination}set disablePagination(se){this._disablePagination=(0,ee.Ig)(se)}get preserveContent(){return this._preserveContent}set preserveContent(se){this._preserveContent=(0,ee.Ig)(se)}get backgroundColor(){return this._backgroundColor}set backgroundColor(se){const ve=this._elementRef.nativeElement;ve.classList.remove(`mat-background-${this.backgroundColor}`),se&&ve.classList.add(`mat-background-${se}`),this._backgroundColor=se}ngAfterContentChecked(){const se=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=se){const ve=null==this._selectedIndex;if(!ve){this.selectedTabChange.emit(this._createChangeEvent(se));const tt=this._tabBodyWrapper.nativeElement;tt.style.minHeight=tt.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((tt,pt)=>tt.isActive=pt===se),ve||(this.selectedIndexChange.emit(se),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((ve,tt)=>{ve.position=tt-se,null!=this._selectedIndex&&0==ve.position&&!ve.origin&&(ve.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 ve=this._tabs.toArray();let tt;for(let pt=0;pt<ve.length;pt++)if(ve[pt].isActive){this._indexToSelect=this._selectedIndex=pt,this._lastFocusedTabIndex=null,tt=ve[pt];break}!tt&&ve[se]&&Promise.resolve().then(()=>{ve[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(ve=>ve._closestTabGroup===this||!ve._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 ve=this._tabHeader;ve&&(ve.focusIndex=se)}_focusChanged(se){this._lastFocusedTabIndex=se,this.focusChange.emit(this._createChangeEvent(se))}_createChangeEvent(se){const ve=new Pt;return ve.index=se,this._tabs&&this._tabs.length&&(ve.tab=this._tabs.toArray()[se]),ve}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,F.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 ve=this._tabBodyWrapper.nativeElement;ve.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(ve.style.height=se+"px")}_removeTabBodyWrapperHeight(){const se=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=se.clientHeight,se.style.height="",this.animationDone.emit()}_handleClick(se,ve,tt){se.disabled||(this.selectedIndex=ve.focusIndex=tt)}_getTabIndex(se,ve){var tt;return se.disabled?null:ve===(null!==(tt=this._lastFocusedTabIndex)&&void 0!==tt?tt:this.selectedIndex)?0:-1}_tabFocusChanged(se,ve){se&&"mouse"!==se&&"touch"!==se&&(this._tabHeader.focusIndex=ve)}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(pe,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})(),Ye=(()=>{class ke extends Bt{constructor(se,ve,tt,pt){super(se,ve,tt,pt)}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(pe,8),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275cmp=r.\u0275\u0275defineComponent({type:ke,selectors:[["mat-tab-group"]],contentQueries:function(se,ve,tt){if(1&se&&r.\u0275\u0275contentQuery(tt,z,5),2&se){let pt;r.\u0275\u0275queryRefresh(pt=r.\u0275\u0275loadQuery())&&(ve._allTabs=pt)}},viewQuery:function(se,ve){if(1&se&&(r.\u0275\u0275viewQuery(Oe,5),r.\u0275\u0275viewQuery(ft,5)),2&se){let tt;r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._tabBodyWrapper=tt.first),r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._tabHeader=tt.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(se,ve){2&se&&r.\u0275\u0275classProp("mat-tab-group-dynamic-height",ve.dynamicHeight)("mat-tab-group-inverted-header","below"===ve.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[r.\u0275\u0275ProvidersFeature([{provide:Ve,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,ve){1&se&&(r.\u0275\u0275elementStart(0,"mat-tab-header",0,1),r.\u0275\u0275listener("indexFocused",function(pt){return ve._focusChanged(pt)})("selectFocusedIndex",function(pt){return ve.selectedIndex=pt}),r.\u0275\u0275template(2,Ge,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",ve.selectedIndex||0)("disableRipple",ve.disableRipple)("disablePagination",ve.disablePagination),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",ve._tabs),r.\u0275\u0275advance(1),r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ve._animationMode),r.\u0275\u0275advance(2),r.\u0275\u0275property("ngForOf",ve._tabs))},dependencies:[u.NgClass,u.NgForOf,u.NgIf,b.Pl,c.MatRipple,n.kH,at,xe,ct],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})(),Be=0,ge=(()=>{class ke extends we{constructor(se,ve,tt,pt,$t,on,nn){super(se,pt,$t,ve,tt,on,nn),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(se){const ve=this._elementRef.nativeElement.classList;ve.remove(`mat-background-${this.backgroundColor}`),se&&ve.add(`mat-background-${se}`),this._backgroundColor=se}get disableRipple(){return this._disableRipple}set disableRipple(se){this._disableRipple=(0,ee.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 ve=0;ve<se.length;ve++)if(se[ve].active)return this.selectedIndex=ve,this._changeDetectorRef.markForCheck(),void(this.tabPanel&&(this.tabPanel._activeTabId=se[ve].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(B.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(Me.rL),r.\u0275\u0275directiveInject(he.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})(),ue=(()=>{class ke extends ge{constructor(se,ve,tt,pt,$t,on,nn){super(se,ve,tt,pt,$t,on,nn)}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(B.Is,8),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(r.ChangeDetectorRef),r.\u0275\u0275directiveInject(Me.rL),r.\u0275\u0275directiveInject(he.t4),r.\u0275\u0275directiveInject(r.ANIMATION_MODULE_TYPE,8))},ke.\u0275cmp=r.\u0275\u0275defineComponent({type:ke,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(se,ve,tt){if(1&se&&r.\u0275\u0275contentQuery(tt,L,5),2&se){let pt;r.\u0275\u0275queryRefresh(pt=r.\u0275\u0275loadQuery())&&(ve._items=pt)}},viewQuery:function(se,ve){if(1&se&&(r.\u0275\u0275viewQuery(It,7),r.\u0275\u0275viewQuery(_e,7),r.\u0275\u0275viewQuery(De,7),r.\u0275\u0275viewQuery(it,7),r.\u0275\u0275viewQuery(rt,5),r.\u0275\u0275viewQuery(yt,5)),2&se){let tt;r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._inkBar=tt.first),r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._tabListContainer=tt.first),r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._tabList=tt.first),r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._tabListInner=tt.first),r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._nextPaginator=tt.first),r.\u0275\u0275queryRefresh(tt=r.\u0275\u0275loadQuery())&&(ve._previousPaginator=tt.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(se,ve){2&se&&(r.\u0275\u0275attribute("role",ve._getRole()),r.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",ve._showPaginationControls)("mat-tab-header-rtl","rtl"==ve._getLayoutDirection())("mat-primary","warn"!==ve.color&&"accent"!==ve.color)("mat-accent","accent"===ve.color)("mat-warn","warn"===ve.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[r.\u0275\u0275InheritDefinitionFeature],attrs:wt,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,ve){1&se&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275elementStart(0,"button",0,1),r.\u0275\u0275listener("click",function(){return ve._handlePaginatorClick("before")})("mousedown",function(pt){return ve._handlePaginatorPress("before",pt)})("touchend",function(){return ve._stopInterval()}),r.\u0275\u0275element(2,"div",2),r.\u0275\u0275elementEnd(),r.\u0275\u0275elementStart(3,"div",3,4),r.\u0275\u0275listener("keydown",function(pt){return ve._handleKeydown(pt)}),r.\u0275\u0275elementStart(5,"div",5,6),r.\u0275\u0275listener("cdkObserveContent",function(){return ve._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(pt){return ve._handlePaginatorPress("after",pt)})("click",function(){return ve._handlePaginatorClick("after")})("touchend",function(){return ve._stopInterval()}),r.\u0275\u0275element(13,"div",2),r.\u0275\u0275elementEnd()),2&se&&(r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",ve._disableScrollBefore),r.\u0275\u0275property("matRippleDisabled",ve._disableScrollBefore||ve.disableRipple)("disabled",ve._disableScrollBefore||null),r.\u0275\u0275advance(5),r.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===ve._animationMode),r.\u0275\u0275advance(6),r.\u0275\u0275classProp("mat-tab-header-pagination-disabled",ve._disableScrollAfter),r.\u0275\u0275property("matRippleDisabled",ve._disableScrollAfter||ve.disableRipple)("disabled",ve._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 re=(0,c.mixinTabIndex)((0,c.mixinDisableRipple)((0,c.mixinDisabled)(class{})));let oe=(()=>{class ke extends re{constructor(se,ve,tt,pt,$t,on){super(),this._tabNavBar=se,this.elementRef=ve,this._focusMonitor=$t,this._isActive=!1,this.id="mat-tab-link-"+Be++,this.rippleConfig=tt||{},this.tabIndex=parseInt(pt)||0,"NoopAnimations"===on&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(se){const ve=(0,ee.Ig)(se);ve!==this._isActive&&(this._isActive=ve,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===ie.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(ge),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,ve,tt,pt,$t,on,nn,yn){super(se,ve,$t,on,nn,yn),this._tabLinkRipple=new c.RippleRenderer(this,tt,ve,pt),this._tabLinkRipple.setupTriggerEvents(ve.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return ke.\u0275fac=function(se){return new(se||ke)(r.\u0275\u0275directiveInject(ue),r.\u0275\u0275directiveInject(r.ElementRef),r.\u0275\u0275directiveInject(r.NgZone),r.\u0275\u0275directiveInject(he.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,ve){1&se&&r.\u0275\u0275listener("focus",function(){return ve._handleFocus()})("keydown",function(pt){return ve._handleKeydown(pt)}),2&se&&(r.\u0275\u0275attribute("aria-controls",ve._getAriaControls())("aria-current",ve._getAriaCurrent())("aria-disabled",ve.disabled)("aria-selected",ve._getAriaSelected())("id",ve.id)("tabIndex",ve._getTabIndex())("role",ve._getRole()),r.\u0275\u0275classProp("mat-tab-disabled",ve.disabled)("mat-tab-label-active",ve.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[r.\u0275\u0275InheritDefinitionFeature]}),ke})(),ye=(()=>{class ke{constructor(){this.id="mat-tab-nav-panel-"+Be++}}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,ve){2&se&&r.\u0275\u0275attribute("aria-labelledby",ve._activeTabId)("id",ve.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:G,decls:1,vars:0,template:function(se,ve){1&se&&(r.\u0275\u0275projectionDef(),r.\u0275\u0275projection(0))},encapsulation:2,changeDetection:0}),ke})(),dt=(()=>{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:($,o,a)=>{"use strict";a.r(o),a.d(o,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>qe,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>G,MAT_TOOLTIP_SCROLL_STRATEGY:()=>ie,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>he,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>Me,MatTooltip:()=>V,MatTooltipModule:()=>De,SCROLL_THROTTLE_MS:()=>j,TOOLTIP_PANEL_CLASS:()=>Q,TooltipComponent:()=>_e,_MatTooltipBase:()=>Z,_TooltipComponentBase:()=>J,getMatTooltipInvalidPositionError:()=>ee,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 F=["tooltip"],j=20,Q="mat-tooltip-panel",U="tooltip-panel",Y=(0,d.i$)({passive:!0});function ee(rt){return Error(`Tooltip position "${rt}" is invalid.`)}const ie=new u.InjectionToken("mat-tooltip-scroll-strategy");function he(rt){return()=>rt.scrollStrategies.reposition({scrollThrottle:j})}const Me={provide:ie,deps:[n.aV],useFactory:he},qe=new u.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:G});function G(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let Z=(()=>{class rt{constructor(Oe,ft,Et,et,lt,Ge,nt,wt,Ct,st,It,Ue){this._overlay=Oe,this._elementRef=ft,this._scrollDispatcher=Et,this._viewContainerRef=et,this._ngZone=lt,this._platform=Ge,this._ariaDescriber=nt,this._focusMonitor=wt,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=Ue,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,Et])=>{Oe.removeEventListener(ft,Et,Y)}),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 Et=this._tooltipInstance=ft.attach(this._portal).instance;Et._triggerElement=this._elementRef.nativeElement,Et._mouseLeaveHideDelay=this._hideDelay,Et.afterHidden().pipe((0,y.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),Et.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),Et=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(ft);return Et.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:Et,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,Et=this._getOrigin(),et=this._getOverlayPosition();ft.withPositions([this._addOffset(Object.assign(Object.assign({},Et.main),et.main)),this._addOffset(Object.assign(Object.assign({},Et.fallback),et.fallback))])}_addOffset(Oe){return Oe}_getOrigin(){const Oe=!this._dir||"ltr"==this._dir.value,ft=this.position;let Et;"above"==ft||"below"==ft?Et={originX:"center",originY:"above"==ft?"top":"bottom"}:"before"==ft||"left"==ft&&Oe||"right"==ft&&!Oe?Et={originX:"start",originY:"center"}:("after"==ft||"right"==ft&&Oe||"left"==ft&&!Oe)&&(Et={originX:"end",originY:"center"});const{x:et,y:lt}=this._invertPosition(Et.originX,Et.originY);return{main:Et,fallback:{originX:et,originY:lt}}}_getOverlayPosition(){const Oe=!this._dir||"ltr"==this._dir.value,ft=this.position;let Et;"above"==ft?Et={overlayX:"center",overlayY:"bottom"}:"below"==ft?Et={overlayX:"center",overlayY:"top"}:"before"==ft||"left"==ft&&Oe||"right"==ft&&!Oe?Et={overlayX:"end",overlayY:"center"}:("after"==ft||"right"==ft&&Oe||"left"==ft&&!Oe)&&(Et={overlayX:"start",overlayY:"center"});const{x:et,y:lt}=this._invertPosition(Et.overlayX,Et.overlayY);return{main:Et,fallback:{overlayX:et,overlayY:lt}}}_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:Et,originY:et}=Oe;let lt;if(lt="center"===ft?this._dir&&"rtl"===this._dir.value?"end"===Et?"left":"right":"start"===Et?"left":"right":"bottom"===ft&&"top"===et?"above":"below",lt!==this._currentPosition){const Ge=this._overlayRef;if(Ge){const nt=`${this._cssClassPrefix}-${U}-`;Ge.removePanelClass(nt+this._currentPosition),Ge.addPanelClass(nt+lt)}this._currentPosition=lt}}_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 Et;const et=ft.relatedTarget;(!et||null===(Et=this._overlayRef)||void 0===Et||!Et.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,Et])=>{this._elementRef.nativeElement.addEventListener(ft,Et,Y)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(Oe){if(this._isTooltipVisible()){const ft=this._document.elementFromPoint(Oe.clientX,Oe.clientY),Et=this._elementRef.nativeElement;ft!==Et&&!Et.contains(ft)&&this.hide()}}_disableNativeGesturesIfNecessary(){const Oe=this.touchGestures;if("off"!==Oe){const ft=this._elementRef.nativeElement,Et=ft.style;("on"===Oe||"INPUT"!==ft.nodeName&&"TEXTAREA"!==ft.nodeName)&&(Et.userSelect=Et.msUserSelect=Et.webkitUserSelect=Et.MozUserSelect="none"),("on"===Oe||!ft.draggable)&&(Et.webkitUserDrag="none"),Et.touchAction="none",Et.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})(),V=(()=>{class rt extends Z{constructor(Oe,ft,Et,et,lt,Ge,nt,wt,Ct,st,It,Ue){super(Oe,ft,Et,et,lt,Ge,nt,wt,Ct,st,It,Ue),this._tooltipComponent=_e}}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(ie),u.\u0275\u0275directiveInject(M.Is,8),u.\u0275\u0275directiveInject(qe,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})(),J=(()=>{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,Et=this._showAnimation,et=this._hideAnimation;if(ft.classList.remove(Oe?et:Et),ft.classList.add(Oe?Et:et),this._isVisible=Oe,Oe&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const lt=getComputedStyle(ft);("0s"===lt.getPropertyValue("animation-duration")||"none"===lt.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})(),_e=(()=>{class rt extends J{constructor(Oe,ft,Et){super(Oe,Et),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(F,7),2&Oe){let Et;u.\u0275\u0275queryRefresh(Et=u.\u0275\u0275loadQuery())&&(ft._tooltip=Et.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 Et;u.\u0275\u0275classProp("mat-tooltip-handset",null==(Et=u.\u0275\u0275pipeBind1(2,4,ft._isHandset))?null:Et.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})(),De=(()=>{class rt{}return rt.\u0275fac=function(Oe){return new(Oe||rt)},rt.\u0275mod=u.\u0275\u0275defineNgModule({type:rt}),rt.\u0275inj=u.\u0275\u0275defineInjector({providers:[Me],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:($,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:()=>ui,\u0275AnimationRendererFactory:()=>yi,\u0275BrowserAnimationBuilder:()=>O,\u0275BrowserAnimationFactory:()=>S,\u0275InjectableAnimationEngine:()=>Gi});var n=a(5e3),p=a(2313),b=a(1777);function r(W){return new n.\u0275RuntimeError(3e3,!1)}function Ge(){return"undefined"!=typeof window&&void 0!==window.document}function nt(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function wt(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,be=new Map){const We=[],Je=[];let ut=-1,bt=null;if(P.forEach(Nt=>{const kt=Nt.get("offset"),cn=kt==ut,un=cn&&bt||new Map;Nt.forEach((en,rn)=>{let En=rn,Sn=en;if("offset"!==rn)switch(En=D.normalizePropertyName(En,We),Sn){case b.k1:Sn=K.get(rn);break;case b.l3:Sn=be.get(rn);break;default:Sn=D.normalizeStyleValue(rn,En,Sn,We)}un.set(En,Sn)}),cn||Je.push(un),bt=un,ut=kt}),We.length)throw function Z(W){return new n.\u0275RuntimeError(3502,!1)}();return Je}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,be=Ue(W.element,W.triggerName,W.fromState,W.toState,D||W.phaseName,null==P?W.totalTime:P,!!T.disabled),We=W._data;return null!=We&&(be._data=We),be}function Ue(W,D,T,P,K="",be=0,We){return{element:W,triggerName:D,fromState:T,toState:P,phaseName:K,totalTime:be,disabled:!!We}}function Ae(W,D,T){let P=W.get(D);return P||W.set(D,P=T),P}function Ne(W){const D=W.indexOf(":");return[W.substring(1,D),W.slice(D+1)]}let fe=(W,D)=>!1,ze=(W,D,T)=>[],Ie=null;function Ve(W){const D=W.parentNode||W.host;return D===Ie?null:D}(nt()||"undefined"!=typeof Element)&&(Ge()?(Ie=(()=>document.documentElement)(),fe=(W,D)=>{for(;D;){if(D===W)return!0;D=Ve(D)}return!1}):fe=(W,D)=>W.contains(D),ze=(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 at=fe,Te=ze;let me=(()=>{class W{validateStyleProperty(T){return function xe(W){Le||(Le=function Fe(){return"undefined"!=typeof document?document.body:null}()||{},Se=!!Le.style&&"WebkitAppearance"in Le.style);let D=!0;return Le.style&&!function Ce(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 at(T,P)}getParentElement(T){return Ve(T)}query(T,P,K){return Te(T,P,K)}computeStyle(T,P,K){return K||""}animate(T,P,K,be,We,Je=[],ut){return new b.ZN(K,be)}}return W.\u0275fac=function(T){return new(T||W)},W.\u0275prov=n.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac}),W})(),ae=(()=>{class W{}return W.NOOP=new me,W})();const Lt="ng-enter",Pt="ng-leave",Kt="ng-trigger",Bt=".ng-trigger",Ye="ng-animating",Be=".ng-animating";function ge(W){if("number"==typeof W)return W;const D=W.match(/^(-?[\.\d]+)(m?s)/);return!D||D.length<2?0:ue(parseFloat(D[1]),D[2])}function ue(W,D){return"s"===D?1e3*W:W}function re(W,D,T){return W.hasOwnProperty("duration")?W:function oe(W,D,T){let K,be=0,We="";if("string"==typeof W){const Je=W.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Je)return D.push(r()),{duration:0,delay:0,easing:""};K=ue(parseFloat(Je[1]),Je[2]);const ut=Je[3];null!=ut&&(be=ue(parseFloat(ut),Je[4]));const bt=Je[5];bt&&(We=bt)}else K=W;if(!T){let Je=!1,ut=D.length;K<0&&(D.push(function c(){return new n.\u0275RuntimeError(3100,!1)}()),Je=!0),be<0&&(D.push(function f(){return new n.\u0275RuntimeError(3101,!1)}()),Je=!0),Je&&D.splice(ut,0,r())}return{duration:K,delay:be,easing:We}}(W,D,T)}function L(W,D={}){return Object.keys(W).forEach(T=>{D[T]=W[T]}),D}function ye(W){const D=new Map;return Object.keys(W).forEach(T=>{D.set(T,W[T])}),D}function ht(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 ve(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 tt(W,D,T){W.style&&(D.forEach((P,K)=>{const be=Qe(K);T&&!T.has(K)&&T.set(K,W.style[be]),W.style[be]=P}),nt()&&ve(W))}function pt(W,D){W.style&&(D.forEach((T,P)=>{const K=Qe(P);W.style[K]=""}),nt()&&ve(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 yn(W){let D=[];if("string"==typeof W){let T;for(;T=nn.exec(W);)D.push(T[1]);nn.lastIndex=0}return D}function He(W,D,T){const P=W.toString(),K=P.replace(nn,(be,We)=>{let Je=D[We];return null==Je&&(T.push(function m(W){return new n.\u0275RuntimeError(3003,!1)}()),Je=""),Je.toString()});return K==P?W:K}function $e(W){const D=[];let T=W.next();for(;!T.done;)D.push(T.value),T=W.next();return D}const de=/-+([a-z0-9])/g;function Qe(W){return W.replace(de,(...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 fn(W,D){return window.getComputedStyle(W)[D]}function Ft(W,D){const T=[];return"string"==typeof W?W.split(/\s*,\s*/).forEach(P=>function Zt(W,D,T){if(":"==W[0]){const ut=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 he(W){return new n.\u0275RuntimeError(3016,!1)}()),"* => *"}}(W,T);if("function"==typeof ut)return void D.push(ut);W=ut}const P=W.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==P||P.length<4)return T.push(function ie(W){return new n.\u0275RuntimeError(3015,!1)}()),D;const K=P[1],be=P[2],We=P[3];D.push(vn(K,We));"<"==be[0]&&!("*"==K&&"*"==We)&&D.push(vn(We,K))}(P,T,D)):T.push(W),T}const sn=new Set(["true","1"]),mn=new Set(["false","0"]);function vn(W,D){const T=sn.has(W)||mn.has(W),P=sn.has(D)||mn.has(D);return(K,be)=>{let We="*"==W||W==K,Je="*"==D||D==be;return!We&&T&&"boolean"==typeof K&&(We=K?sn.has(W):mn.has(W)),!Je&&P&&"boolean"==typeof be&&(Je=be?sn.has(D):mn.has(D)),We&&Je}}const Rn=new RegExp("s*:selfs*,?","g");function ei(W,D,T,P){return new Fn(W).build(D,T,P)}class Fn{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 be=[],We=[];return"@"==D.name.charAt(0)&&T.errors.push(function v(){return new n.\u0275RuntimeError(3006,!1)}()),D.definitions.forEach(Je=>{if(this._resetContextStyleTimingState(T),0==Je.type){const ut=Je,bt=ut.name;bt.toString().split(/\s*,\s*/).forEach(Nt=>{ut.name=Nt,be.push(this.visitState(ut,T))}),ut.name=bt}else if(1==Je.type){const ut=this.visitTransition(Je,T);P+=ut.queryCount,K+=ut.depCount,We.push(ut)}else T.errors.push(function y(){return new n.\u0275RuntimeError(3007,!1)}())}),{type:7,name:D.name,states:be,transitions:We,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 be=new Set,We=K||{};P.styles.forEach(Je=>{Je instanceof Map&&Je.forEach(ut=>{yn(ut).forEach(bt=>{We.hasOwnProperty(bt)||be.add(bt)})})}),be.size&&($e(be.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:Ft(D.expr,T.errors),animation:P,queryCount:T.queryCount,depCount:T.depCount,options:oi(D.options)}}visitSequence(D,T){return{type:2,steps:D.steps.map(P=>Ht(this,P,T)),options:oi(D.options)}}visitGroup(D,T){const P=T.currentTime;let K=0;const be=D.steps.map(We=>{T.currentTime=P;const Je=Ht(this,We,T);return K=Math.max(K,T.currentTime),Je});return T.currentTime=K,{type:3,steps:be,options:oi(D.options)}}visitAnimate(D,T){const P=function Ci(W,D){if(W.hasOwnProperty("duration"))return W;if("number"==typeof W)return Hn(re(W,D).duration,0,"");const T=W;if(T.split(/\s+/).some(be=>"{"==be.charAt(0)&&"{"==be.charAt(1))){const be=Hn(0,0,"");return be.dynamic=!0,be.strValue=T,be}const K=re(T,D);return Hn(K.duration,K.delay,K.easing)}(D.timings,T.errors);T.currentAnimateTimings=P;let K,be=D.styles?D.styles:(0,b.oB)({});if(5==be.type)K=this.visitKeyframes(be,T);else{let We=D.styles,Je=!1;if(!We){Je=!0;const bt={};P.easing&&(bt.easing=P.easing),We=(0,b.oB)(bt)}T.currentTime+=P.duration+P.delay;const ut=this.visitStyle(We,T);ut.isEmptyStep=Je,K=ut}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 Je of K)"string"==typeof Je?Je===b.l3?P.push(Je):T.errors.push(new n.\u0275RuntimeError(3002,!1)):P.push(ye(Je));let be=!1,We=null;return P.forEach(Je=>{if(Je instanceof Map&&(Je.has("easing")&&(We=Je.get("easing"),Je.delete("easing")),!be))for(let ut of Je.values())if(ut.toString().indexOf("{{")>=0){be=!0;break}}),{type:6,styles:P,easing:We,offset:D.offset,containsDynamicStyles:be,options:null}}_validateStyleAst(D,T){const P=T.currentAnimateTimings;let K=T.currentTime,be=T.currentTime;P&&be>0&&(be-=P.duration+P.delay),D.styles.forEach(We=>{"string"!=typeof We&&We.forEach((Je,ut)=>{const bt=T.collectedStyles.get(T.currentQuerySelector),Nt=bt.get(ut);let kt=!0;Nt&&(be!=K&&be>=Nt.startTime&&K<=Nt.endTime&&(T.errors.push(function F(W,D,T,P,K){return new n.\u0275RuntimeError(3010,!1)}()),kt=!1),be=Nt.startTime),kt&&bt.set(ut,{startTime:be,endTime:K}),T.options&&function on(W,D,T){const P=D.params||{},K=yn(W);K.length&&K.forEach(be=>{P.hasOwnProperty(be)||T.push(function h(W){return new n.\u0275RuntimeError(3001,!1)}())})}(Je,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 be=0;const We=[];let Je=!1,ut=!1,bt=0;const Nt=D.steps.map(Sn=>{const Un=this._makeStyleAst(Sn,T);let Jn=null!=Un.offset?Un.offset:function Li(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!=Jn&&(be++,$n=Un.offset=Jn),ut=ut||$n<0||$n>1,Je=Je||$n<bt,bt=$n,We.push($n),Un});ut&&T.errors.push(function Q(){return new n.\u0275RuntimeError(3012,!1)}()),Je&&T.errors.push(function U(){return new n.\u0275RuntimeError(3200,!1)}());const kt=D.steps.length;let cn=0;be>0&&be<kt?T.errors.push(function Y(){return new n.\u0275RuntimeError(3202,!1)}()):0==be&&(cn=1/(kt-1));const un=kt-1,en=T.currentTime,rn=T.currentAnimateTimings,En=rn.duration;return Nt.forEach((Sn,Un)=>{const Jn=cn>0?Un==un?1:cn*Un:We[Un],$n=Jn*En;T.currentTime=en+rn.delay+$n,rn.duration=$n,this._validateStyleAst(Sn,T),Sn.offset=Jn,P.styles.push(Sn)}),P}visitReference(D,T){return{type:8,animation:Ht(this,$t(D.animation),T),options:oi(D.options)}}visitAnimateChild(D,T){return T.depCount++,{type:9,options:oi(D.options)}}visitAnimateRef(D,T){return{type:10,animation:this.visitReference(D.animation,T),options:oi(D.options)}}visitQuery(D,T){const P=T.currentQuerySelector,K=D.options||{};T.queryCount++,T.currentQuery=D;const[be,We]=function ti(W){const D=!!W.split(/\s*,\s*/).find(T=>":self"==T);return D&&(W=W.replace(Rn,"")),W=W.replace(/@\*/g,Bt).replace(/@\w+/g,T=>Bt+"-"+T.slice(1)).replace(/:animating/g,Be),[W,D]}(D.selector);T.currentQuerySelector=P.length?P+" "+be:be,Ae(T.collectedStyles,T.currentQuerySelector,new Map);const Je=Ht(this,$t(D.animation),T);return T.currentQuery=null,T.currentQuerySelector=P,{type:11,selector:be,limit:K.limit||0,optional:!!K.optional,includeSelf:We,animation:Je,originalSelector:D.selector,options:oi(D.options)}}visitStagger(D,T){T.currentQuery||T.errors.push(function B(){return new n.\u0275RuntimeError(3013,!1)}());const P="full"===D.timings?{duration:0,delay:0,easing:"full"}:re(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 oi(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 ji(W,D,T,P,K,be,We=null,Je=!1){return{type:1,element:W,keyframes:D,preStyleProps:T,postStyleProps:P,duration:K,delay:be,totalTime:K+be,easing:We,subTimeline:Je}}class Mi{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 mr=new RegExp(":enter","g"),Qn=new RegExp(":leave","g");function gr(W,D,T,P,K,be=new Map,We=new Map,Je,ut,bt=[]){return(new qr).buildKeyframes(W,D,T,P,K,be,We,Je,ut,bt)}class qr{buildKeyframes(D,T,P,K,be,We,Je,ut,bt,Nt=[]){bt=bt||new Mi;const kt=new vr(D,T,bt,K,be,Nt,[]);kt.options=ut;const cn=ut.delay?ge(ut.delay):0;kt.currentTimeline.delayNextStep(cn),kt.currentTimeline.setStyles([We],null,kt.errors,ut),Ht(this,P,kt);const un=kt.timelines.filter(en=>en.containsAnimation());if(un.length&&Je.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([Je],null,kt.errors,ut)}return un.length?un.map(en=>en.buildKeyframes()):[ji(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),be=T.currentTimeline.currentTime,We=this._visitSubInstructions(P,K,K.options);be!=We&&T.transformIntoNewTimeline(We)}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 be=T.currentTimeline.currentTime;const We=null!=P.duration?ge(P.duration):null,Je=null!=P.delay?ge(P.delay):null;return 0!==We&&D.forEach(ut=>{const bt=T.appendInstructionToTimeline(ut,We,Je);be=Math.max(be,bt.duration+bt.delay)}),be}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 be=D.options;if(be&&(be.params||be.delay)&&(K=T.createSubContext(be),K.transformIntoNewTimeline(),null!=be.delay)){6==K.previousNode.type&&(K.currentTimeline.snapshotCurrentStyles(),K.previousNode=Vi);const We=ge(be.delay);K.delayNextStep(We)}D.steps.length&&(D.steps.forEach(We=>Ht(this,We,K)),K.currentTimeline.applyStylesToKeyframe(),K.subContextCount>P&&K.transformIntoNewTimeline()),T.previousNode=D}visitGroup(D,T){const P=[];let K=T.currentTimeline.currentTime;const be=D.options&&D.options.delay?ge(D.options.delay):0;D.steps.forEach(We=>{const Je=T.createSubContext(D.options);be&&Je.delayNextStep(be),Ht(this,We,Je),K=Math.max(K,Je.currentTimeline.currentTime),P.push(Je.currentTimeline)}),P.forEach(We=>T.currentTimeline.mergeTimelineCollectedStyles(We)),T.transformIntoNewTimeline(K),T.previousNode=D}_visitTiming(D,T){if(D.dynamic){const P=D.strValue;return re(T.params?He(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 be=D.style;5==be.type?this.visitKeyframes(be,T):(T.incrementTime(P.duration),this.visitStyle(be,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 be=K&&K.easing||D.easing;D.isEmptyStep?P.applyEmptyStep(be):P.setStyles(D.styles,be,T.errors,T.options),T.previousNode=D}visitKeyframes(D,T){const P=T.currentAnimateTimings,K=T.currentTimeline.duration,be=P.duration,Je=T.createSubContext().currentTimeline;Je.easing=P.easing,D.styles.forEach(ut=>{Je.forwardTime((ut.offset||0)*be),Je.setStyles(ut.styles,ut.easing,T.errors,T.options),Je.applyStylesToKeyframe()}),T.currentTimeline.mergeTimelineCollectedStyles(Je),T.transformIntoNewTimeline(K+be),T.previousNode=D}visitQuery(D,T){const P=T.currentTimeline.currentTime,K=D.options||{},be=K.delay?ge(K.delay):0;be&&(6===T.previousNode.type||0==P&&T.currentTimeline.hasCurrentStyleProperties())&&(T.currentTimeline.snapshotCurrentStyles(),T.previousNode=Vi);let We=P;const Je=T.invokeQuery(D.selector,D.originalSelector,D.limit,D.includeSelf,!!K.optional,T.errors);T.currentQueryTotal=Je.length;let ut=null;Je.forEach((bt,Nt)=>{T.currentQueryIndex=Nt;const kt=T.createSubContext(D.options,bt);be&&kt.delayNextStep(be),bt===T.element&&(ut=kt.currentTimeline),Ht(this,D.animation,kt),kt.currentTimeline.applyStylesToKeyframe(),We=Math.max(We,kt.currentTimeline.currentTime)}),T.currentQueryIndex=0,T.currentQueryTotal=0,T.transformIntoNewTimeline(We),ut&&(T.currentTimeline.mergeTimelineCollectedStyles(ut),T.currentTimeline.snapshotCurrentStyles()),T.previousNode=D}visitStagger(D,T){const P=T.parentContext,K=T.currentTimeline,be=D.timings,We=Math.abs(be.duration),Je=We*(T.currentQueryTotal-1);let ut=We*T.currentQueryIndex;switch(be.duration<0?"reverse":be.easing){case"reverse":ut=Je-ut;break;case"full":ut=P.currentStaggerTime}const Nt=T.currentTimeline;ut&&Nt.delayNextStep(ut);const kt=Nt.currentTime;Ht(this,D.animation,T),T.previousNode=D,P.currentStaggerTime=K.currentTime-kt+(K.startTime-P.currentTimeline.startTime)}}const Vi={};class vr{constructor(D,T,P,K,be,We,Je,ut){this._driver=D,this.element=T,this.subInstructions=P,this._enterClassName=K,this._leaveClassName=be,this.errors=We,this.timelines=Je,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vi,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ut||new Di(this._driver,T,0),Je.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=ge(P.duration)),null!=P.delay&&(K.delay=ge(P.delay));const be=P.params;if(be){let We=K.params;We||(We=this.options.params={}),Object.keys(be).forEach(Je=>{(!T||!We.hasOwnProperty(Je))&&(We[Je]=He(be[Je],We,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,be=new vr(this._driver,K,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(K,P||0));return be.previousNode=this.previousNode,be.currentAnimateTimings=this.currentAnimateTimings,be.options=this._copyOptions(),be.updateOptions(D),be.currentQueryIndex=this.currentQueryIndex,be.currentQueryTotal=this.currentQueryTotal,be.parentContext=this,this.subContextCount++,be}transformIntoNewTimeline(D){return this.previousNode=Vi,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:""},be=new Or(this._driver,D.element,D.keyframes,D.preStyleProps,D.postStyleProps,K,D.stretchStartingKeyframe);return this.timelines.push(be),K}incrementTime(D){this.currentTimeline.forwardTime(this.currentTimeline.duration+D)}delayNextStep(D){D>0&&this.currentTimeline.delayNextStep(D)}invokeQuery(D,T,P,K,be,We){let Je=[];if(K&&Je.push(this.element),D.length>0){D=(D=D.replace(mr,"."+this._enterClassName)).replace(Qn,"."+this._leaveClassName);let bt=this._driver.query(this.element,D,1!=P);0!==P&&(bt=P<0?bt.slice(bt.length+P,bt.length):bt.slice(0,P)),Je.push(...bt)}return!be&&0==Je.length&&We.push(function ee(W){return new n.\u0275RuntimeError(3014,!1)}()),Je}}class Di{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 Di(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 be;T&&this._previousKeyframe.set("easing",T);const We=K&&K.params||{},Je=function Xi(W,D){const T=new Map;let P;return W.forEach(K=>{if("*"===K){P=P||D.keys();for(let be of P)T.set(be,b.l3)}else ht(K,T)}),T}(D,this._globalTimelineStyles);for(let[ut,bt]of Je){const Nt=He(bt,We,P);this._pendingStyles.set(ut,Nt),this._localTimelineStyles.has(ut)||this._backFill.set(ut,null!==(be=this._globalTimelineStyles.get(ut))&&void 0!==be?be:b.l3),this._updateStyle(ut,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((Je,ut)=>{const bt=ht(Je,new Map,this._backFill);bt.forEach((Nt,kt)=>{Nt===b.k1?D.add(kt):Nt===b.l3&&T.add(kt)}),P||bt.set("offset",ut/this.duration),K.push(bt)});const be=D.size?$e(D.values()):[],We=T.size?$e(T.values()):[];if(P){const Je=K[0],ut=new Map(Je);Je.set("offset",0),ut.set("offset",1),K=[Je,ut]}return ji(this.element,K,be,We,this.duration,this.startTime,this.easing,!1)}}class Or extends Di{constructor(D,T,P,K,be,We,Je=!1){super(D,T,We.delay),this.keyframes=P,this.preStyleProps=K,this.postStyleProps=be,this._stretchStartingKeyframe=Je,this.timings={duration:We.duration,delay:We.delay,easing:We.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 be=[],We=P+T,Je=T/We,ut=ht(D[0]);ut.set("offset",0),be.push(ut);const bt=ht(D[0]);bt.set("offset",Ji(Je)),be.push(bt);const Nt=D.length-1;for(let kt=1;kt<=Nt;kt++){let cn=ht(D[kt]);const un=cn.get("offset");cn.set("offset",Ji((T+un*P)/We)),be.push(cn)}P=We,T=0,K="",D=be}return ji(this.element,D,this.preStyleProps,this.postStyleProps,P,T,K,!0)}}function Ji(W,D=3){const T=Math.pow(10,D-1);return Math.round(W*T)/T}class Si{}const Ii=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 $i extends Si{normalizePropertyName(D,T){return Qe(D)}normalizeStyleValue(D,T,P,K){let be="";const We=P.toString().trim();if(Ii.has(T)&&0!==P&&"0"!==P)if("number"==typeof P)be="px";else{const Je=P.match(/^[+-]?[\d\.]+([a-z]*)$/);Je&&0==Je[1].length&&K.push(function _(W,D){return new n.\u0275RuntimeError(3005,!1)}())}return We+be}}function Oi(W,D,T,P,K,be,We,Je,ut,bt,Nt,kt,cn){return{type:0,element:W,triggerName:D,isRemovalTransition:K,fromState:T,fromStyles:be,toState:P,toStyles:We,timelines:Je,queriedElements:ut,preStyleProps:bt,postStyleProps:Nt,totalTime:kt,errors:cn}}const qi={};class Hi{constructor(D,T,P){this._triggerName=D,this.ast=T,this._stateStyles=P}match(D,T,P,K){return function er(W,D,T,P,K){return W.some(be=>be(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,be,We,Je,ut,bt,Nt){var kt;const cn=[],un=this.ast.options&&this.ast.options.params||qi,rn=this.buildStyles(P,Je&&Je.params||qi,cn),En=ut&&ut.params||qi,Sn=this.buildStyles(K,En,cn),Un=new Set,Jn=new Map,$n=new Map,sr="void"===K,ar={params:Ei(En,un),delay:null===(kt=this.ast.options)||void 0===kt?void 0:kt.delay},di=Nt?[]:gr(D,T,this.ast.animation,be,We,rn,Sn,ar,bt,cn);let Kn=0;if(di.forEach(Pi=>{Kn=Math.max(Pi.duration+Pi.delay,Kn)}),cn.length)return Oi(T,this._triggerName,P,K,sr,rn,Sn,[],[],Jn,$n,Kn,cn);di.forEach(Pi=>{const to=Pi.element,lr=Ae(Jn,to,new Set);Pi.preStyleProps.forEach(Wr=>lr.add(Wr));const xr=Ae($n,to,new Set);Pi.postStyleProps.forEach(Wr=>xr.add(Wr)),to!==T&&Un.add(to)});const _r=$e(Un.values());return Oi(T,this._triggerName,P,K,sr,rn,Sn,di,_r,Jn,$n,Kn)}}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 tr{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(be=>{const We=D[be];null!==We&&(K[be]=We)}),this.styles.styles.forEach(be=>{"string"!=typeof be&&be.forEach((We,Je)=>{We&&(We=He(We,K,T));const ut=this.normalizer.normalizePropertyName(Je,T);We=this.normalizer.normalizeStyleValue(Je,ut,We,T),P.set(ut,We)})}),P}}class ir{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 tr(K.style,K.options&&K.options.params||{},P))}),Ai(this.states,"true","1"),Ai(this.states,"false","0"),T.transitions.forEach(K=>{this.transitionFactories.push(new Hi(D,K,this.states))}),this.fallbackTransition=function gi(W,D,T){return new Hi(W,{type:1,animation:{type:2,steps:[],options:null},matchers:[(We,Je)=>!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(We=>We.match(D,T,P,K))||null}matchStyles(D,T,P){return this.fallbackTransition.buildStyles(D,T,P)}}function Ai(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 Ur=new Mi;class Ui{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=[],be=ei(this._driver,T,P,[]);if(P.length)throw function V(W){return new n.\u0275RuntimeError(3503,!1)}();this._animations.set(D,be)}_buildPlayer(D,T,P){const K=D.element,be=Ct(0,this._normalizer,0,D.keyframes,T,P);return this._driver.animate(K,be,D.duration,D.delay,D.easing,[],!0)}create(D,T,P={}){const K=[],be=this._animations.get(D);let We;const Je=new Map;if(be?(We=gr(this._driver,T,be,Lt,Pt,new Map,new Map,P,Ur,K),We.forEach(Nt=>{const kt=Ae(Je,Nt.element,new Map);Nt.postStyleProps.forEach(cn=>kt.set(cn,null))})):(K.push(function J(){return new n.\u0275RuntimeError(3300,!1)}()),We=[]),K.length)throw function _e(W){return new n.\u0275RuntimeError(3504,!1)}();Je.forEach((Nt,kt)=>{Nt.forEach((cn,un)=>{Nt.set(un,this._driver.computeStyle(kt,un,b.l3))})});const bt=wt(We.map(Nt=>{const kt=Je.get(Nt.element);return this._buildPlayer(Nt,new Map,kt)}));return this._playersById.set(D,bt),bt.onDestroy(()=>this.destroy(D)),this.players.push(bt),bt}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 De(W){return new n.\u0275RuntimeError(3301,!1)}();return T}listen(D,T,P,K){const be=Ue(T,"","","");return st(this._getPlayer(D),P,be,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 be=this._getPlayer(D);switch(P){case"play":be.play();break;case"pause":be.pause();break;case"reset":be.reset();break;case"restart":be.restart();break;case"finish":be.finish();break;case"init":be.init();break;case"setPosition":be.setPosition(parseFloat(K[0]));break;case"destroy":this.destroy(D)}}}const rr="ng-animate-queued",si="ng-animate-disabled",Ti=[],wn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ci={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Ln="__ng_removed";class jn{constructor(D,T=""){this.namespaceId=T;const P=D&&D.hasOwnProperty("value");if(this.value=function x(W){return null!=W?W:null}(P?D.value:D),P){const be=L(D);delete be.value,this.options=be}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",Ar=new jn(Dn);class Wi{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,dn(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 je(W){return"start"==W||"done"==W}(P))throw function yt(W,D){return new n.\u0275RuntimeError(3400,!1)}();const be=Ae(this._elementListeners,D,[]),We={name:T,phase:P,callback:K};be.push(We);const Je=Ae(this._engine.statesByElement,D,new Map);return Je.has(T)||(dn(D,Kt),dn(D,Kt+"-"+T),Je.set(T,Ar)),()=>{this._engine.afterFlush(()=>{const ut=be.indexOf(We);ut>=0&&be.splice(ut,1),this._triggers.has(T)||Je.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 be=this._getTrigger(T),We=new R(this.id,T,D);let Je=this._engine.statesByElement.get(D);Je||(dn(D,Kt),dn(D,Kt+"-"+T),this._engine.statesByElement.set(D,Je=new Map));let ut=Je.get(T);const bt=new jn(P,this.id);if(!(P&&P.hasOwnProperty("value"))&&ut&&bt.absorbOptions(ut.options),Je.set(T,bt),ut||(ut=Ar),bt.value!==Dn&&ut.value===bt.value){if(!function Cn(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 be=T[K];if(!D.hasOwnProperty(be)||W[be]!==D[be])return!1}return!0}(ut.params,bt.params)){const rn=[],En=be.matchStyles(ut.value,ut.params,rn),Sn=be.matchStyles(bt.value,bt.params,rn);rn.length?this._engine.reportError(rn):this._engine.afterFlush(()=>{pt(D,En),tt(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=be.matchTransition(ut.value,bt.value,D,bt.params),en=!1;if(!un){if(!K)return;un=be.fallbackTransition,en=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:D,triggerName:T,transition:un,fromState:ut,toState:bt,player:We,isFallbackTransition:en}),en||(dn(D,rr),We.onStart(()=>{bn(D,rr)})),We.onDone(()=>{let rn=this.players.indexOf(We);rn>=0&&this.players.splice(rn,1);const En=this._engine.playersByElement.get(D);if(En){let Sn=En.indexOf(We);Sn>=0&&En.splice(Sn,1)}}),this.players.push(We),cn.push(We),We}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,Bt,!0);P.forEach(K=>{if(K[Ln])return;const be=this._engine.fetchNamespacesByElement(K);be.size?be.forEach(We=>We.triggerLeaveAnimation(K,T,!1,!0)):this.clearElementCache(K)}),this._engine.afterFlushAnimationsDone(()=>P.forEach(K=>this.clearElementCache(K)))}triggerLeaveAnimation(D,T,P,K){const be=this._engine.statesByElement.get(D),We=new Map;if(be){const Je=[];if(be.forEach((ut,bt)=>{if(We.set(bt,ut.value),this._triggers.has(bt)){const Nt=this.trigger(D,bt,Dn,K);Nt&&Je.push(Nt)}}),Je.length)return this._engine.markElementAsRemoved(this.id,D,!0,T,We),P&&wt(Je).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(be=>{const We=be.name;if(K.has(We))return;K.add(We);const ut=this._triggers.get(We).fallbackTransition,bt=P.get(We)||Ar,Nt=new jn(Dn),kt=new R(this.id,We,D);this._engine.totalQueuedPlayers++,this._queue.push({element:D,triggerName:We,transition:ut,fromState:bt,toState:Nt,player:kt,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 be=P.players.length?P.playersByQueriedElement.get(D):[];if(be&&be.length)K=!0;else{let We=D;for(;We=We.parentNode;)if(P.statesByElement.get(We)){K=!0;break}}}if(this.prepareLeaveAnimationListeners(D),K)P.markElementAsRemoved(this.id,D,!1,T);else{const be=D[Ln];(!be||be===wn)&&(P.afterFlush(()=>this.clearElementCache(D)),P.destroyInnerAnimations(D),P._onRemovalComplete(D,T))}}insertNode(D,T){dn(D,this._hostClassName)}drainQueuedTransitions(D){const T=[];return this._queue.forEach(P=>{const K=P.player;if(K.destroyed)return;const be=P.element,We=this._elementListeners.get(be);We&&We.forEach(Je=>{if(Je.name==P.triggerName){const ut=Ue(be,P.triggerName,P.fromState.value,P.toState.value);ut._data=D,st(P.player,Je.phase,ut,Je.callback)}}),K.markedForDestroy?this._engine.afterFlush(()=>{K.destroy()}):T.push(P)}),this._queue=[],T.sort((P,K)=>{const be=P.transition.ast.depCount,We=K.transition.ast.depCount;return 0==be||0==We?be-We: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 wi{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,be)=>{}}_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 Wi(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 We=!1,Je=this.driver.getParentElement(T);for(;Je;){const ut=K.get(Je);if(ut){const bt=P.indexOf(ut);P.splice(bt+1,0,D),We=!0;break}Je=this.driver.getParentElement(Je)}We||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 be=this._fetchNamespace(K.namespaceId);be&&T.add(be)}return T}trigger(D,T,P,K){if(le(T)){const be=this._fetchNamespace(D);if(be)return be.trigger(T,P,K),!0}return!1}insertNode(D,T,P,K){if(!le(T))return;const be=T[Ln];if(be&&be.setForRemoval){be.setForRemoval=!1,be.setForMove=!0;const We=this.collectedLeaveElements.indexOf(T);We>=0&&this.collectedLeaveElements.splice(We,1)}if(D){const We=this._fetchNamespace(D);We&&We.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),dn(D,si)):this.disabledNodes.has(D)&&(this.disabledNodes.delete(D),bn(D,si))}removeNode(D,T,P,K){if(le(T)){const be=D?this._fetchNamespace(D):null;if(be?be.removeNode(T,K):this.markElementAsRemoved(D,T,!1,K),P){const We=this.namespacesByHostElement.get(T);We&&We.id!==D&&We.removeNode(T,K)}}else this._onRemovalComplete(T,K)}markElementAsRemoved(D,T,P,K,be){this.collectedLeaveElements.push(T),T[Ln]={namespaceId:D,setForRemoval:K,hasAnimation:P,removedBeforeQueried:!1,previousTriggersValues:be}}listen(D,T,P,K,be){return le(T)?this._fetchNamespace(D).listen(T,P,K,be):()=>{}}_buildInstruction(D,T,P,K,be){return D.transition.build(this.driver,D.element,D.fromState.value,D.toState.value,P,K,D.fromState.options,D.toState.options,T,be)}destroyInnerAnimations(D){let T=this.driver.query(D,Bt,!0);T.forEach(P=>this.destroyActiveAnimationsForElement(P)),0!=this.playersByQueriedElement.size&&(T=this.driver.query(D,Be,!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 wt(this.players).onDone(()=>D());D()})}processLeaveNode(D){var T;const P=D[Ln];if(P&&P.setForRemoval){if(D[Ln]=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(si)&&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++)dn(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?wt(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 Mi,K=[],be=new Map,We=[],Je=new Map,ut=new Map,bt=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 kt=this.bodyNode,cn=Array.from(this.statesByElement.keys()),un=Ot(cn,this.collectedEnterElements),en=new Map;let rn=0;un.forEach((zt,Wt)=>{const Gt=Lt+rn++;en.set(Wt,Gt),zt.forEach(pn=>dn(pn,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[Ln];Gt&&Gt.setForRemoval&&(En.push(Wt),Sn.add(Wt),Gt.hasAnimation?this.driver.query(Wt,".ng-star-inserted",!0).forEach(pn=>Sn.add(pn)):Un.add(Wt))}const Jn=new Map,$n=Ot(cn,Array.from(Sn));$n.forEach((zt,Wt)=>{const Gt=Pt+rn++;Jn.set(Wt,Gt),zt.forEach(pn=>dn(pn,Gt))}),D.push(()=>{un.forEach((zt,Wt)=>{const Gt=en.get(Wt);zt.forEach(pn=>bn(pn,Gt))}),$n.forEach((zt,Wt)=>{const Gt=Jn.get(Wt);zt.forEach(pn=>bn(pn,Gt))}),En.forEach(zt=>{this.processLeaveNode(zt)})});const sr=[],ar=[];for(let zt=this._namespaceList.length-1;zt>=0;zt--)this._namespaceList[zt].drainQueuedTransitions(T).forEach(Gt=>{const pn=Gt.player,kn=Gt.element;if(sr.push(pn),this.collectedEnterElements.length){const Xn=kn[Ln];if(Xn&&Xn.setForMove){if(Xn.previousTriggersValues&&Xn.previousTriggersValues.has(Gt.triggerName)){const Ki=Xn.previousTriggersValues.get(Gt.triggerName),Ri=this.statesByElement.get(Gt.element);if(Ri&&Ri.has(Gt.triggerName)){const no=Ri.get(Gt.triggerName);no.value=Ki,Ri.set(Gt.triggerName,no)}}return void pn.destroy()}}const _i=!kt||!this.driver.containsElement(kt,kn),fi=Jn.get(kn),cr=en.get(kn),Tn=this._buildInstruction(Gt,P,cr,fi,_i);if(Tn.errors&&Tn.errors.length)return void ar.push(Tn);if(_i)return pn.onStart(()=>pt(kn,Tn.fromStyles)),pn.onDestroy(()=>tt(kn,Tn.toStyles)),void K.push(pn);if(Gt.isFallbackTransition)return pn.onStart(()=>pt(kn,Tn.fromStyles)),pn.onDestroy(()=>tt(kn,Tn.toStyles)),void K.push(pn);const Hs=[];Tn.timelines.forEach(Xn=>{Xn.stretchStartingKeyframe=!0,this.disabledNodes.has(Xn.element)||Hs.push(Xn)}),Tn.timelines=Hs,P.append(kn,Tn.timelines),We.push({instruction:Tn,player:pn,element:kn}),Tn.queriedElements.forEach(Xn=>Ae(Je,Xn,[]).push(pn)),Tn.preStyleProps.forEach((Xn,Ki)=>{if(Xn.size){let Ri=ut.get(Ki);Ri||ut.set(Ki,Ri=new Set),Xn.forEach((no,go)=>Ri.add(go))}}),Tn.postStyleProps.forEach((Xn,Ki)=>{let Ri=bt.get(Ki);Ri||bt.set(Ki,Ri=new Set),Xn.forEach((no,go)=>Ri.add(go))})});if(ar.length){const zt=[];ar.forEach(Wt=>{zt.push(function et(W,D){return new n.\u0275RuntimeError(3505,!1)}())}),sr.forEach(Wt=>Wt.destroy()),this.reportError(zt)}const di=new Map,Kn=new Map;We.forEach(zt=>{const Wt=zt.element;P.has(Wt)&&(Kn.set(Wt,Wt),this._beforeAnimationBuild(zt.player.namespaceId,zt.instruction,di))}),K.forEach(zt=>{const Wt=zt.element;this._getPreviousPlayers(Wt,!1,zt.namespaceId,zt.triggerName,null).forEach(pn=>{Ae(di,Wt,[]).push(pn),pn.destroy()})});const _r=En.filter(zt=>xn(zt,ut,bt)),Pi=new Map;Mt(Pi,this.driver,Un,bt,b.l3).forEach(zt=>{xn(zt,ut,bt)&&_r.push(zt)});const lr=new Map;un.forEach((zt,Wt)=>{Mt(lr,this.driver,new Set(zt),ut,b.k1)}),_r.forEach(zt=>{var Wt,Gt;const pn=Pi.get(zt),kn=lr.get(zt);Pi.set(zt,new Map([...Array.from(null!==(Wt=null==pn?void 0:pn.entries())&&void 0!==Wt?Wt:[]),...Array.from(null!==(Gt=null==kn?void 0:kn.entries())&&void 0!==Gt?Gt:[])]))});const xr=[],Wr=[],$s={};We.forEach(zt=>{const{element:Wt,player:Gt,instruction:pn}=zt;if(P.has(Wt)){if(Nt.has(Wt))return Gt.onDestroy(()=>tt(Wt,pn.toStyles)),Gt.disabled=!0,Gt.overrideTotalTime(pn.totalTime),void K.push(Gt);let kn=$s;if(Kn.size>1){let fi=Wt;const cr=[];for(;fi=fi.parentNode;){const Tn=Kn.get(fi);if(Tn){kn=Tn;break}cr.push(fi)}cr.forEach(Tn=>Kn.set(Tn,kn))}const _i=this._buildAnimation(Gt.namespaceId,pn,di,be,lr,Pi);if(Gt.setRealPlayer(_i),kn===$s)xr.push(Gt);else{const fi=this.playersByElement.get(kn);fi&&fi.length&&(Gt.parentPlayer=wt(fi)),K.push(Gt)}}else pt(Wt,pn.fromStyles),Gt.onDestroy(()=>tt(Wt,pn.toStyles)),Wr.push(Gt),Nt.has(Wt)&&K.push(Gt)}),Wr.forEach(zt=>{const Wt=be.get(zt.element);if(Wt&&Wt.length){const Gt=wt(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[Ln];if(bn(Wt,Pt),Gt&&Gt.hasAnimation)continue;let pn=[];if(Je.size){let _i=Je.get(Wt);_i&&_i.length&&pn.push(..._i);let fi=this.driver.query(Wt,Be,!0);for(let cr=0;cr<fi.length;cr++){let Tn=Je.get(fi[cr]);Tn&&Tn.length&&pn.push(...Tn)}}const kn=pn.filter(_i=>!_i.destroyed);kn.length?Mn(this,Wt,kn):this.processLeaveNode(Wt)}return En.length=0,xr.forEach(zt=>{this.players.push(zt),zt.onDone(()=>{zt.destroy();const Wt=this.players.indexOf(zt);this.players.splice(Wt,1)}),zt.play()}),xr}elementContainsData(D,T){let P=!1;const K=T[Ln];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,be){let We=[];if(T){const Je=this.playersByQueriedElement.get(D);Je&&(We=Je)}else{const Je=this.playersByElement.get(D);if(Je){const ut=!be||be==Dn;Je.forEach(bt=>{bt.queued||!ut&&bt.triggerName!=K||We.push(bt)})}}return(P||K)&&(We=We.filter(Je=>!(P&&P!=Je.namespaceId||K&&K!=Je.triggerName))),We}_beforeAnimationBuild(D,T,P){const be=T.element,We=T.isRemovalTransition?void 0:D,Je=T.isRemovalTransition?void 0:T.triggerName;for(const ut of T.timelines){const bt=ut.element,Nt=bt!==be,kt=Ae(P,bt,[]);this._getPreviousPlayers(bt,Nt,We,Je,T.toState).forEach(un=>{const en=un.getRealPlayer();en.beforeDestroy&&en.beforeDestroy(),un.destroy(),kt.push(un)})}pt(be,T.fromStyles)}_buildAnimation(D,T,P,K,be,We){const Je=T.triggerName,ut=T.element,bt=[],Nt=new Set,kt=new Set,cn=T.timelines.map(en=>{const rn=en.element;Nt.add(rn);const En=rn[Ln];if(En&&En.removedBeforeQueried)return new b.ZN(en.duration,en.delay);const Sn=rn!==ut,Un=function hn(W){const D=[];return Bn(W,D),D}((P.get(rn)||Ti).map(di=>di.getRealPlayer())).filter(di=>!!di.element&&di.element===rn),Jn=be.get(rn),$n=We.get(rn),sr=Ct(0,this._normalizer,0,en.keyframes,Jn,$n),ar=this._buildPlayer(en,sr,Un);if(en.subTimeline&&K&&kt.add(rn),Sn){const di=new R(D,Je,rn);di.setRealPlayer(ar),bt.push(di)}return ar});bt.forEach(en=>{Ae(this.playersByQueriedElement,en.element,[]).push(en),en.onDone(()=>function te(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=>dn(en,Ye));const un=wt(cn);return un.onDestroy(()=>{Nt.forEach(en=>bn(en,Ye)),tt(ut,T.toStyles)}),kt.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 R{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 le(W){return W&&1===W.nodeType}function vt(W,D){const T=W.style.display;return W.style.display=null!=D?D:"none",T}function Mt(W,D,T,P,K){const be=[];T.forEach(ut=>be.push(vt(ut)));const We=[];P.forEach((ut,bt)=>{const Nt=new Map;ut.forEach(kt=>{const cn=D.computeStyle(bt,kt,K);Nt.set(kt,cn),(!cn||0==cn.length)&&(bt[Ln]=ci,We.push(bt))}),W.set(bt,Nt)});let Je=0;return T.forEach(ut=>vt(ut,be[Je++])),We}function Ot(W,D){const T=new Map;if(W.forEach(Je=>T.set(Je,[])),0==D.length)return T;const K=new Set(D),be=new Map;function We(Je){if(!Je)return 1;let ut=be.get(Je);if(ut)return ut;const bt=Je.parentNode;return ut=T.has(bt)?bt:K.has(bt)?1:We(bt),be.set(Je,ut),ut}return D.forEach(Je=>{const ut=We(Je);1!==ut&&T.get(ut).push(Je)}),T}function dn(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){wt(T).onDone(()=>W.processLeaveNode(D))}function Bn(W,D){for(let T=0;T<W.length;T++){const P=W[T];P instanceof b.ZE?Bn(P.players,D):D.push(P)}}function xn(W,D,T){const P=T.get(W);if(!P)return!1;let K=D.get(W);return K?P.forEach(be=>K.add(be)):D.set(W,P),T.delete(W),!0}class vi{constructor(D,T,P){this.bodyNode=D,this._driver=T,this._normalizer=P,this._triggerCache={},this.onRemovalComplete=(K,be)=>{},this._transitionEngine=new wi(D,T,P),this._timelineEngine=new Ui(D,T,P),this._transitionEngine.onRemovalComplete=(K,be)=>this.onRemovalComplete(K,be)}registerTrigger(D,T,P,K,be){const We=D+"-"+K;let Je=this._triggerCache[We];if(!Je){const ut=[],Nt=ei(this._driver,be,ut,[]);if(ut.length)throw function G(W,D){return new n.\u0275RuntimeError(3404,!1)}();Je=function nr(W,D,T){return new ir(W,D,T)}(K,Nt,this._normalizer),this._triggerCache[We]=Je}this._transitionEngine.registerTrigger(T,K,Je)}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[be,We]=Ne(P);this._timelineEngine.command(be,T,We,K)}else this._transitionEngine.trigger(D,T,P,K)}listen(D,T,P,K,be){if("@"==P.charAt(0)){const[We,Je]=Ne(P);return this._timelineEngine.listen(We,T,Je,be)}return this._transitionEngine.listen(D,T,P,K,be)}flush(D=-1){this._transitionEngine.flush(D)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let ln=(()=>{class W{constructor(T,P,K){this._element=T,this._startStyles=P,this._endStyles=K,this._state=0;let be=W.initialStylesByElement.get(T);be||W.initialStylesByElement.set(T,be=new Map),this._initialStyles=be}start(){this._state<1&&(this._startStyles&&tt(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(tt(this._element,this._initialStyles),this._endStyles&&(tt(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(W.initialStylesByElement.delete(this._element),this._startStyles&&(pt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(pt(this._element,this._endStyles),this._endStyles=null),tt(this._element,this._initialStyles),this._state=3)}}return W.initialStylesByElement=new WeakMap,W})();function ai(W){let D=null;return W.forEach((T,P)=>{(function Pr(W){return"display"===W||"position"===W})(P)&&(D=D||new Map,D.set(P,T))}),D}class On{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:fn(this.element,K))}),this.currentSnapshot=D}triggerCallback(D){const T="start"===D?this._onStartFns:this._onDoneFns;T.forEach(P=>P()),T.length=0}}class Rr{validateStyleProperty(D){return!0}validateAnimatableStyleProperty(D){return!0}matchesElement(D,T){return!1}containsElement(D,T){return at(D,T)}getParentElement(D){return Ve(D)}query(D,T,P){return Te(D,T,P)}computeStyle(D,T,P){return window.getComputedStyle(D)[T]}animate(D,T,P,K,be,We=[]){const ut={duration:P,delay:K,fill:0==K?"both":"forwards"};be&&(ut.easing=be);const bt=new Map,Nt=We.filter(un=>un instanceof On);(function _t(W,D){return 0===W||0===D})(P,K)&&Nt.forEach(un=>{un.currentSnapshot.forEach((en,rn)=>bt.set(rn,en))});let kt=function dt(W){return W.length?W[0]instanceof Map?W:W.map(D=>ye(D)):[]}(T).map(un=>ht(un));kt=function xt(W,D,T){if(T.size&&D.length){let P=D[0],K=[];if(T.forEach((be,We)=>{P.has(We)||K.push(We),P.set(We,be)}),K.length)for(let be=1;be<D.length;be++){let We=D[be];K.forEach(Je=>We.set(Je,fn(W,Je)))}}return D}(D,kt,bt);const cn=function St(W,D){let T=null,P=null;return Array.isArray(D)&&D.length?(T=ai(D[0]),D.length>1&&(P=ai(D[D.length-1]))):D instanceof Map&&(T=ai(D)),T||P?new ln(W,T,P):null}(D,kt);return new On(D,kt,ut,cn)}}var k=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 gt(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(k.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 ne(this._id,D,T||{},this._renderer)}}class ne{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 gt(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 gt(W,D,T,P,K){return W.setProperty(D,`@@${T}:${P}`,K)}const Gn="@.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=(be,We)=>{const Je=null==We?void 0:We.parentNode(be);Je&&We.removeChild(Je,be)}}createRenderer(T,P){const be=this.delegate.createRenderer(T,P);if(!(T&&P&&P.data&&P.data.animation)){let Nt=this._rendererCache.get(be);return Nt||(Nt=new Vn("",be,this.engine),this._rendererCache.set(be,Nt)),Nt}const We=P.id,Je=P.id+"-"+this._currentId;this._currentId++,this.engine.register(Je,T);const ut=Nt=>{Array.isArray(Nt)?Nt.forEach(ut):this.engine.registerTrigger(We,Je,T,Nt.name,Nt)};return P.data.animation.forEach(ut),new ui(this,Je,be,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(be=>{const[We,Je]=be;We(Je)}),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(vi),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==Gn?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 ui 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==Gn?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 be=T.slice(1),We="";return"@"!=be.charAt(0)&&([be,We]=function zr(W){const D=W.indexOf(".");return[W.substring(0,D),W.slice(D+1)]}(be)),this.engine.listen(this.namespaceId,K,be,We,Je=>{this.factory.scheduleListenerCallback(Je._data||-1,P,Je)})}return this.delegate.listen(D,T,P)}}let Gi=(()=>{class W extends vi{constructor(T,P,K,be){super(T.body,P,K)}ngOnDestroy(){this.flush()}}return W.\u0275fac=function(T){return new(T||W)(n.\u0275\u0275inject(k.DOCUMENT),n.\u0275\u0275inject(ae),n.\u0275\u0275inject(Si),n.\u0275\u0275inject(n.ApplicationRef))},W.\u0275prov=n.\u0275\u0275defineInjectable({token:W,factory:W.\u0275fac}),W})();const Bs=[{provide:b._j,useClass:O},{provide:Si,useFactory:function Ua(){return new $i}},{provide:vi,useClass:Gi},{provide:n.RendererFactory2,useFactory:function js(W,D,T){return new yi(W,D,T)},deps:[p.\u0275DomRendererFactory2,vi,n.NgZone]}],es=[{provide:ae,useFactory:()=>new Rr},{provide:n.ANIMATION_MODULE_TYPE,useValue:"BrowserAnimations"},...Bs],eo=[{provide:ae,useClass:me},{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:($,o,a)=>{"use strict";a.r(o),a.d(o,{BrowserModule:()=>Le,BrowserTransferStateModule:()=>L,By:()=>ye,DomSanitizer:()=>$t,EVENT_MANAGER_PLUGINS:()=>E,EventManager:()=>M,HAMMER_GESTURE_CONFIG:()=>ht,HAMMER_LOADER:()=>se,HammerGestureConfig:()=>ve,HammerModule:()=>pt,Meta:()=>xe,Title:()=>at,TransferState:()=>re,VERSION:()=>yn,bootstrapApplication:()=>It,disableDebugTools:()=>Ye,enableDebugTools:()=>Bt,makeStateKey:()=>ue,platformBrowser:()=>Ie,provideProtractorTestingSupport:()=>Ue,\u0275BrowserDomAdapter:()=>u,\u0275BrowserGetTestability:()=>v,\u0275DomEventsPlugin:()=>ft,\u0275DomRendererFactory2:()=>J,\u0275DomSanitizerImpl:()=>nn,\u0275DomSharedStylesHost:()=>j,\u0275HammerGesturesPlugin:()=>tt,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>ze,\u0275KeyEventsPlugin:()=>wt,\u0275NAMESPACE_URIS:()=>U,\u0275SharedStylesHost:()=>F,\u0275TRANSITION_ID:()=>m,\u0275escapeHtml:()=>Be,\u0275flattenStyles:()=>G,\u0275getDOM:()=>n.\u0275getDOM,\u0275initDomAdapter:()=>Ae,\u0275shimContentAttribute:()=>Me,\u0275shimHostAttribute:()=>qe});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($e,de,Qe){return $e.addEventListener(de,Qe,!1),()=>{$e.removeEventListener(de,Qe,!1)}}dispatchEvent($e,de){$e.dispatchEvent(de)}remove($e){$e.parentNode&&$e.parentNode.removeChild($e)}createElement($e,de){return(de=de||this.getDefaultDocument()).createElement($e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode($e){return $e.nodeType===Node.ELEMENT_NODE}isShadowRoot($e){return $e instanceof DocumentFragment}getGlobalEventTarget($e,de){return"window"===de?window:"document"===de?$e:"body"===de?$e.body:null}getBaseHref($e){const de=function c(){return r=r||document.querySelector("base"),r?r.getAttribute("href"):null}();return null==de?null:function h(He){f=f||document.createElement("a"),f.setAttribute("href",He);const $e=f.pathname;return"/"===$e.charAt(0)?$e:`/${$e}`}(de)}resetBaseElement(){r=null}getUserAgent(){return window.navigator.userAgent}getCookie($e){return(0,n.\u0275parseCookieValue)(document.cookie,$e)}}let f,r=null;const m=new p.InjectionToken("TRANSITION_ID"),_=[{provide:p.APP_INITIALIZER,useFactory:function d(He,$e,de){return()=>{de.get(p.ApplicationInitStatus).donePromise.then(()=>{const Qe=(0,n.\u0275getDOM)(),mt=$e.querySelectorAll(`style[ng-transition="${He}"]`);for(let _t=0;_t<mt.length;_t++)Qe.remove(mt[_t])})}},deps:[m,n.DOCUMENT,p.Injector],multi:!0}];class v{addToWindow($e){p.\u0275global.getAngularTestability=(Qe,mt=!0)=>{const _t=$e.findTestabilityInTree(Qe,mt);if(null==_t)throw new Error("Could not find testability for element.");return _t},p.\u0275global.getAllAngularTestabilities=()=>$e.getAllTestabilities(),p.\u0275global.getAllAngularRootElements=()=>$e.getAllRootElements(),p.\u0275global.frameworkStabilizers||(p.\u0275global.frameworkStabilizers=[]),p.\u0275global.frameworkStabilizers.push(Qe=>{const mt=p.\u0275global.getAllAngularTestabilities();let _t=mt.length,xt=!1;const Ht=function(fn){xt=xt||fn,_t--,0==_t&&Qe(xt)};mt.forEach(function(fn){fn.whenStable(Ht)})})}findTestabilityInTree($e,de,Qe){if(null==de)return null;const mt=$e.getTestability(de);return null!=mt?mt:Qe?(0,n.\u0275getDOM)().isShadowRoot(de)?this.findTestabilityInTree($e,de.host,!0):this.findTestabilityInTree($e,de.parentElement,!0):null}}let y=(()=>{class He{build(){return new XMLHttpRequest}}return He.\u0275fac=function(de){return new(de||He)},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();const E=new p.InjectionToken("EventManagerPlugins");let M=(()=>{class He{constructor(de,Qe){this._zone=Qe,this._eventNameToPlugin=new Map,de.forEach(mt=>mt.manager=this),this._plugins=de.slice().reverse()}addEventListener(de,Qe,mt){return this._findPluginFor(Qe).addEventListener(de,Qe,mt)}addGlobalEventListener(de,Qe,mt){return this._findPluginFor(Qe).addGlobalEventListener(de,Qe,mt)}getZone(){return this._zone}_findPluginFor(de){const Qe=this._eventNameToPlugin.get(de);if(Qe)return Qe;const mt=this._plugins;for(let _t=0;_t<mt.length;_t++){const xt=mt[_t];if(xt.supports(de))return this._eventNameToPlugin.set(de,xt),xt}throw new Error(`No event manager plugin found for event ${de}`)}}return He.\u0275fac=function(de){return new(de||He)(p.\u0275\u0275inject(E),p.\u0275\u0275inject(p.NgZone))},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();class A{constructor($e){this._doc=$e}addGlobalEventListener($e,de,Qe){const mt=(0,n.\u0275getDOM)().getGlobalEventTarget(this._doc,$e);if(!mt)throw new Error(`Unsupported event target ${mt} for event ${de}`);return this.addEventListener(mt,de,Qe)}}let F=(()=>{class He{constructor(){this._stylesSet=new Set}addStyles(de){const Qe=new Set;de.forEach(mt=>{this._stylesSet.has(mt)||(this._stylesSet.add(mt),Qe.add(mt))}),this.onStylesAdded(Qe)}onStylesAdded(de){}getAllStyles(){return Array.from(this._stylesSet)}}return He.\u0275fac=function(de){return new(de||He)},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})(),j=(()=>{class He extends F{constructor(de){super(),this._doc=de,this._hostNodes=new Map,this._hostNodes.set(de.head,[])}_addStylesToHost(de,Qe,mt){de.forEach(_t=>{const xt=this._doc.createElement("style");xt.textContent=_t,mt.push(Qe.appendChild(xt))})}addHost(de){const Qe=[];this._addStylesToHost(this._stylesSet,de,Qe),this._hostNodes.set(de,Qe)}removeHost(de){const Qe=this._hostNodes.get(de);Qe&&Qe.forEach(Q),this._hostNodes.delete(de)}onStylesAdded(de){this._hostNodes.forEach((Qe,mt)=>{this._addStylesToHost(de,mt,Qe)})}ngOnDestroy(){this._hostNodes.forEach(de=>de.forEach(Q))}}return He.\u0275fac=function(de){return new(de||He)(p.\u0275\u0275inject(n.DOCUMENT))},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();function Q(He){(0,n.\u0275getDOM)().remove(He)}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/"},Y=/%COMP%/g;function Me(He){return"_ngcontent-%COMP%".replace(Y,He)}function qe(He){return"_nghost-%COMP%".replace(Y,He)}function G(He,$e,de){for(let Qe=0;Qe<$e.length;Qe++){let mt=$e[Qe];Array.isArray(mt)?G(He,mt,de):(mt=mt.replace(Y,He),de.push(mt))}return de}function Z(He){return $e=>{if("__ngUnwrap__"===$e)return He;!1===He($e)&&($e.preventDefault(),$e.returnValue=!1)}}let J=(()=>{class He{constructor(de,Qe,mt){this.eventManager=de,this.sharedStylesHost=Qe,this.appId=mt,this.rendererByCompId=new Map,this.defaultRenderer=new _e(de)}createRenderer(de,Qe){if(!de||!Qe)return this.defaultRenderer;switch(Qe.encapsulation){case p.ViewEncapsulation.Emulated:{let mt=this.rendererByCompId.get(Qe.id);return mt||(mt=new yt(this.eventManager,this.sharedStylesHost,Qe,this.appId),this.rendererByCompId.set(Qe.id,mt)),mt.applyToHost(de),mt}case 1:case p.ViewEncapsulation.ShadowDom:return new Oe(this.eventManager,this.sharedStylesHost,de,Qe);default:if(!this.rendererByCompId.has(Qe.id)){const mt=G(Qe.id,Qe.styles,[]);this.sharedStylesHost.addStyles(mt),this.rendererByCompId.set(Qe.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return He.\u0275fac=function(de){return new(de||He)(p.\u0275\u0275inject(M),p.\u0275\u0275inject(j),p.\u0275\u0275inject(p.APP_ID))},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();class _e{constructor($e){this.eventManager=$e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement($e,de){return de?document.createElementNS(U[de]||de,$e):document.createElement($e)}createComment($e){return document.createComment($e)}createText($e){return document.createTextNode($e)}appendChild($e,de){(rt($e)?$e.content:$e).appendChild(de)}insertBefore($e,de,Qe){$e&&(rt($e)?$e.content:$e).insertBefore(de,Qe)}removeChild($e,de){$e&&$e.removeChild(de)}selectRootElement($e,de){let Qe="string"==typeof $e?document.querySelector($e):$e;if(!Qe)throw new Error(`The selector "${$e}" did not match any elements`);return de||(Qe.textContent=""),Qe}parentNode($e){return $e.parentNode}nextSibling($e){return $e.nextSibling}setAttribute($e,de,Qe,mt){if(mt){de=mt+":"+de;const _t=U[mt];_t?$e.setAttributeNS(_t,de,Qe):$e.setAttribute(de,Qe)}else $e.setAttribute(de,Qe)}removeAttribute($e,de,Qe){if(Qe){const mt=U[Qe];mt?$e.removeAttributeNS(mt,de):$e.removeAttribute(`${Qe}:${de}`)}else $e.removeAttribute(de)}addClass($e,de){$e.classList.add(de)}removeClass($e,de){$e.classList.remove(de)}setStyle($e,de,Qe,mt){mt&(p.RendererStyleFlags2.DashCase|p.RendererStyleFlags2.Important)?$e.style.setProperty(de,Qe,mt&p.RendererStyleFlags2.Important?"important":""):$e.style[de]=Qe}removeStyle($e,de,Qe){Qe&p.RendererStyleFlags2.DashCase?$e.style.removeProperty(de):$e.style[de]=""}setProperty($e,de,Qe){$e[de]=Qe}setValue($e,de){$e.nodeValue=de}listen($e,de,Qe){return"string"==typeof $e?this.eventManager.addGlobalEventListener($e,de,Z(Qe)):this.eventManager.addEventListener($e,de,Z(Qe))}}function rt(He){return"TEMPLATE"===He.tagName&&void 0!==He.content}class yt extends _e{constructor($e,de,Qe,mt){super($e),this.component=Qe;const _t=G(mt+"-"+Qe.id,Qe.styles,[]);de.addStyles(_t),this.contentAttr=Me(mt+"-"+Qe.id),this.hostAttr=qe(mt+"-"+Qe.id)}applyToHost($e){super.setAttribute($e,this.hostAttr,"")}createElement($e,de){const Qe=super.createElement($e,de);return super.setAttribute(Qe,this.contentAttr,""),Qe}}class Oe extends _e{constructor($e,de,Qe,mt){super($e),this.sharedStylesHost=de,this.hostEl=Qe,this.shadowRoot=Qe.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const _t=G(mt.id,mt.styles,[]);for(let xt=0;xt<_t.length;xt++){const Ht=document.createElement("style");Ht.textContent=_t[xt],this.shadowRoot.appendChild(Ht)}}nodeOrShadowRoot($e){return $e===this.hostEl?this.shadowRoot:$e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild($e,de){return super.appendChild(this.nodeOrShadowRoot($e),de)}insertBefore($e,de,Qe){return super.insertBefore(this.nodeOrShadowRoot($e),de,Qe)}removeChild($e,de){return super.removeChild(this.nodeOrShadowRoot($e),de)}parentNode($e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot($e)))}}let ft=(()=>{class He extends A{constructor(de){super(de)}supports(de){return!0}addEventListener(de,Qe,mt){return de.addEventListener(Qe,mt,!1),()=>this.removeEventListener(de,Qe,mt)}removeEventListener(de,Qe,mt){return de.removeEventListener(Qe,mt)}}return He.\u0275fac=function(de){return new(de||He)(p.\u0275\u0275inject(n.DOCUMENT))},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();const Et=["alt","control","meta","shift"],lt={"\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"},Ge={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:He=>He.altKey,control:He=>He.ctrlKey,meta:He=>He.metaKey,shift:He=>He.shiftKey};let wt=(()=>{class He extends A{constructor(de){super(de)}supports(de){return null!=He.parseEventName(de)}addEventListener(de,Qe,mt){const _t=He.parseEventName(Qe),xt=He.eventCallback(_t.fullKey,mt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,n.\u0275getDOM)().onAndCancel(de,_t.domEventName,xt))}static parseEventName(de){const Qe=de.toLowerCase().split("."),mt=Qe.shift();if(0===Qe.length||"keydown"!==mt&&"keyup"!==mt)return null;const _t=He._normalizeKey(Qe.pop());let xt="";if(Et.forEach(fn=>{const An=Qe.indexOf(fn);An>-1&&(Qe.splice(An,1),xt+=fn+".")}),xt+=_t,0!=Qe.length||0===_t.length)return null;const Ht={};return Ht.domEventName=mt,Ht.fullKey=xt,Ht}static getEventFullKey(de){let Qe="",mt=function Ct(He){let $e=He.key;if(null==$e){if($e=He.keyIdentifier,null==$e)return"Unidentified";$e.startsWith("U+")&&($e=String.fromCharCode(parseInt($e.substring(2),16)),3===He.location&&Ge.hasOwnProperty($e)&&($e=Ge[$e]))}return lt[$e]||$e}(de);return mt=mt.toLowerCase()," "===mt?mt="space":"."===mt&&(mt="dot"),Et.forEach(_t=>{_t!=mt&&(0,nt[_t])(de)&&(Qe+=_t+".")}),Qe+=mt,Qe}static eventCallback(de,Qe,mt){return _t=>{He.getEventFullKey(_t)===de&&mt.runGuarded(()=>Qe(_t))}}static _normalizeKey(de){return"esc"===de?"escape":de}}return He.\u0275fac=function(de){return new(de||He)(p.\u0275\u0275inject(n.DOCUMENT))},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})();function It(He,$e){var de;return(0,p.\u0275internalBootstrapApplication)({rootComponent:He,appProviders:[...Ce,...null!==(de=null==$e?void 0:$e.providers)&&void 0!==de?de:[]],platformProviders:ze})}function Ue(){return[...z]}function Ae(){u.makeCurrent()}const ze=[{provide:p.PLATFORM_ID,useValue:n.\u0275PLATFORM_BROWSER_ID},{provide:p.PLATFORM_INITIALIZER,useValue:Ae,multi:!0},{provide:n.DOCUMENT,useFactory:function fe(){return(0,p.\u0275setDocument)(document),document},deps:[]}],Ie=(0,p.createPlatformFactory)(p.platformCore,"browser",ze),Ve=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]}],Ce=[{provide:p.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:p.ErrorHandler,useFactory:function Ne(){return new p.ErrorHandler},deps:[]},{provide:E,useClass:ft,multi:!0,deps:[n.DOCUMENT,p.NgZone,p.PLATFORM_ID]},{provide:E,useClass:wt,multi:!0,deps:[n.DOCUMENT]},{provide:J,useClass:J,deps:[M,j,p.APP_ID]},{provide:p.RendererFactory2,useExisting:J},{provide:F,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 He{constructor(de){}static withServerTransition(de){return{ngModule:He,providers:[{provide:p.APP_ID,useValue:de.appId},{provide:m,useExisting:p.APP_ID},_]}}}return He.\u0275fac=function(de){return new(de||He)(p.\u0275\u0275inject(Ve,12))},He.\u0275mod=p.\u0275\u0275defineNgModule({type:He}),He.\u0275inj=p.\u0275\u0275defineInjector({providers:[...Ce,...z],imports:[n.CommonModule,p.ApplicationModule]}),He})(),xe=(()=>{class He{constructor(de){this._doc=de,this._dom=(0,n.\u0275getDOM)()}addTag(de,Qe=!1){return de?this._getOrCreateElement(de,Qe):null}addTags(de,Qe=!1){return de?de.reduce((mt,_t)=>(_t&&mt.push(this._getOrCreateElement(_t,Qe)),mt),[]):[]}getTag(de){return de&&this._doc.querySelector(`meta[${de}]`)||null}getTags(de){if(!de)return[];const Qe=this._doc.querySelectorAll(`meta[${de}]`);return Qe?[].slice.call(Qe):[]}updateTag(de,Qe){if(!de)return null;Qe=Qe||this._parseSelector(de);const mt=this.getTag(Qe);return mt?this._setMetaElementAttributes(de,mt):this._getOrCreateElement(de,!0)}removeTag(de){this.removeTagElement(this.getTag(de))}removeTagElement(de){de&&this._dom.remove(de)}_getOrCreateElement(de,Qe=!1){if(!Qe){const xt=this._parseSelector(de),Ht=this.getTags(xt).filter(fn=>this._containsAttributes(de,fn))[0];if(void 0!==Ht)return Ht}const mt=this._dom.createElement("meta");return this._setMetaElementAttributes(de,mt),this._doc.getElementsByTagName("head")[0].appendChild(mt),mt}_setMetaElementAttributes(de,Qe){return Object.keys(de).forEach(mt=>Qe.setAttribute(this._getMetaKeyMap(mt),de[mt])),Qe}_parseSelector(de){const Qe=de.name?"name":"property";return`${Qe}="${de[Qe]}"`}_containsAttributes(de,Qe){return Object.keys(de).every(mt=>Qe.getAttribute(this._getMetaKeyMap(mt))===de[mt])}_getMetaKeyMap(de){return pe[de]||de}}return He.\u0275fac=function(de){return new(de||He)(p.\u0275\u0275inject(n.DOCUMENT))},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:function(de){let Qe=null;return Qe=de?new de:function Se(){return new xe((0,p.\u0275\u0275inject)(n.DOCUMENT))}(),Qe},providedIn:"root"}),He})();const pe={httpEquiv:"http-equiv"};let at=(()=>{class He{constructor(de){this._doc=de}getTitle(){return this._doc.title}setTitle(de){this._doc.title=de||""}}return He.\u0275fac=function(de){return new(de||He)(p.\u0275\u0275inject(n.DOCUMENT))},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:function(de){let Qe=null;return Qe=de?new de:function Fe(){return new at((0,p.\u0275\u0275inject)(n.DOCUMENT))}(),Qe},providedIn:"root"}),He})();function we(He,$e){"undefined"!=typeof COMPILED&&COMPILED||((p.\u0275global.ng=p.\u0275global.ng||{})[He]=$e)}const Ke="undefined"!=typeof window&&window||{};class ct{constructor($e,de){this.msPerTick=$e,this.numTicks=de}}class Lt{constructor($e){this.appRef=$e.injector.get(p.ApplicationRef)}timeChangeDetection($e){const de=$e&&$e.record,Qe="Change Detection",mt=null!=Ke.console.profile;de&&mt&&Ke.console.profile(Qe);const _t=Pt();let xt=0;for(;xt<5||Pt()-_t<500;)this.appRef.tick(),xt++;const Ht=Pt();de&&mt&&Ke.console.profileEnd(Qe);const fn=(Ht-_t)/xt;return Ke.console.log(`ran ${xt} change detection cycles`),Ke.console.log(`${fn.toFixed(2)} ms per check`),new ct(fn,xt)}}function Pt(){return Ke.performance&&Ke.performance.now?Ke.performance.now():(new Date).getTime()}const Kt="profiler";function Bt(He){return we(Kt,new Lt(He)),He}function Ye(){we(Kt,null)}function Be(He){const $e={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return He.replace(/[&"'<>]/g,de=>$e[de])}function ue(He){return He}let re=(()=>{class He{constructor(){this.store={},this.onSerializeCallbacks={}}get(de,Qe){return void 0!==this.store[de]?this.store[de]:Qe}set(de,Qe){this.store[de]=Qe}remove(de){delete this.store[de]}hasKey(de){return this.store.hasOwnProperty(de)}onSerialize(de,Qe){this.onSerializeCallbacks[de]=Qe}toJson(){for(const de in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(de))try{this.store[de]=this.onSerializeCallbacks[de]()}catch(Qe){console.warn("Exception in onSerialize callback: ",Qe)}return JSON.stringify(this.store)}}return He.\u0275fac=function(de){return new(de||He)},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:function(){return(()=>{const $e=(0,p.inject)(n.DOCUMENT),de=(0,p.inject)(p.APP_ID),Qe=new He;return Qe.store=function oe(He,$e){const de=He.getElementById($e+"-state");let Qe={};if(de&&de.textContent)try{Qe=JSON.parse(function ge(He){const $e={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return He.replace(/&[^;]+;/g,de=>$e[de])}(de.textContent))}catch(mt){console.warn("Exception while restoring TransferState for app "+$e,mt)}return Qe}($e,de),Qe})()},providedIn:"root"}),He})(),L=(()=>{class He{}return He.\u0275fac=function(de){return new(de||He)},He.\u0275mod=p.\u0275\u0275defineNgModule({type:He}),He.\u0275inj=p.\u0275\u0275defineInjector({}),He})();class ye{static all(){return()=>!0}static css($e){return de=>null!=de.nativeElement&&function dt(He,$e){return!!(0,n.\u0275getDOM)().isElementNode(He)&&(He.matches&&He.matches($e)||He.msMatchesSelector&&He.msMatchesSelector($e)||He.webkitMatchesSelector&&He.webkitMatchesSelector($e))}(de.nativeElement,$e)}static directive($e){return de=>-1!==de.providerTokens.indexOf($e)}}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},ht=new p.InjectionToken("HammerGestureConfig"),se=new p.InjectionToken("HammerLoader");let ve=(()=>{class He{constructor(){this.events=[],this.overrides={}}buildHammer(de){const Qe=new Hammer(de,this.options);Qe.get("pinch").set({enable:!0}),Qe.get("rotate").set({enable:!0});for(const mt in this.overrides)Qe.get(mt).set(this.overrides[mt]);return Qe}}return He.\u0275fac=function(de){return new(de||He)},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})(),tt=(()=>{class He extends A{constructor(de,Qe,mt,_t){super(de),this._config=Qe,this.console=mt,this.loader=_t,this._loaderPromise=null}supports(de){return!(!ke.hasOwnProperty(de.toLowerCase())&&!this.isCustomEvent(de)||!window.Hammer&&!this.loader)}addEventListener(de,Qe,mt){const _t=this.manager.getZone();if(Qe=Qe.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||_t.runOutsideAngular(()=>this.loader());let xt=!1,Ht=()=>{xt=!0};return _t.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?xt||(Ht=this.addEventListener(de,Qe,mt)):Ht=()=>{}}).catch(()=>{Ht=()=>{}})),()=>{Ht()}}return _t.runOutsideAngular(()=>{const xt=this._config.buildHammer(de),Ht=function(fn){_t.runGuarded(function(){mt(fn)})};return xt.on(Qe,Ht),()=>{xt.off(Qe,Ht),"function"==typeof xt.destroy&&xt.destroy()}})}isCustomEvent(de){return this._config.events.indexOf(de)>-1}}return He.\u0275fac=function(de){return new(de||He)(p.\u0275\u0275inject(n.DOCUMENT),p.\u0275\u0275inject(ht),p.\u0275\u0275inject(p.\u0275Console),p.\u0275\u0275inject(se,8))},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:He.\u0275fac}),He})(),pt=(()=>{class He{}return He.\u0275fac=function(de){return new(de||He)},He.\u0275mod=p.\u0275\u0275defineNgModule({type:He}),He.\u0275inj=p.\u0275\u0275defineInjector({providers:[{provide:E,useClass:tt,multi:!0,deps:[n.DOCUMENT,ht,p.\u0275Console,[new p.Optional,se]]},{provide:ht,useClass:ve,deps:[]}]}),He})(),$t=(()=>{class He{}return He.\u0275fac=function(de){return new(de||He)},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:function(de){let Qe=null;return Qe=de?new(de||He):p.\u0275\u0275inject(nn),Qe},providedIn:"root"}),He})(),nn=(()=>{class He extends $t{constructor(de){super(),this._doc=de}sanitize(de,Qe){if(null==Qe)return null;switch(de){case p.SecurityContext.NONE:return Qe;case p.SecurityContext.HTML:return(0,p.\u0275allowSanitizationBypassAndThrow)(Qe,"HTML")?(0,p.\u0275unwrapSafeValue)(Qe):(0,p.\u0275_sanitizeHtml)(this._doc,String(Qe)).toString();case p.SecurityContext.STYLE:return(0,p.\u0275allowSanitizationBypassAndThrow)(Qe,"Style")?(0,p.\u0275unwrapSafeValue)(Qe):Qe;case p.SecurityContext.SCRIPT:if((0,p.\u0275allowSanitizationBypassAndThrow)(Qe,"Script"))return(0,p.\u0275unwrapSafeValue)(Qe);throw new Error("unsafe value used in a script context");case p.SecurityContext.URL:return(0,p.\u0275allowSanitizationBypassAndThrow)(Qe,"URL")?(0,p.\u0275unwrapSafeValue)(Qe):(0,p.\u0275_sanitizeUrl)(String(Qe));case p.SecurityContext.RESOURCE_URL:if((0,p.\u0275allowSanitizationBypassAndThrow)(Qe,"ResourceURL"))return(0,p.\u0275unwrapSafeValue)(Qe);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${de} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(de){return(0,p.\u0275bypassSanitizationTrustHtml)(de)}bypassSecurityTrustStyle(de){return(0,p.\u0275bypassSanitizationTrustStyle)(de)}bypassSecurityTrustScript(de){return(0,p.\u0275bypassSanitizationTrustScript)(de)}bypassSecurityTrustUrl(de){return(0,p.\u0275bypassSanitizationTrustUrl)(de)}bypassSecurityTrustResourceUrl(de){return(0,p.\u0275bypassSanitizationTrustResourceUrl)(de)}}return He.\u0275fac=function(de){return new(de||He)(p.\u0275\u0275inject(n.DOCUMENT))},He.\u0275prov=p.\u0275\u0275defineInjectable({token:He,factory:function(de){let Qe=null;return Qe=de?new de:function on(He){return new nn(He.get(n.DOCUMENT))}(p.\u0275\u0275inject(p.Injector)),Qe},providedIn:"root"}),He})();const yn=new p.Version("14.1.1")},107:($,o,a)=>{"use strict";a.r(o),a.d(o,{MONACO_PATH:()=>v,MonacoDiffEditorComponent:()=>A,MonacoEditorComponent:()=>M,MonacoEditorLoaderDirective:()=>E,MonacoEditorLoaderService:()=>y,MonacoEditorModule:()=>F});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,Y){this.ngZone=U,this.monacoPathConfig=Y,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 ie=this._monacoPath;window.amdRequire=window.require;const he=!!this.nodeRequire,Me=ie.includes("http");he&&(window.require=this.nodeRequire,Me||(ie=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:ie}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},qe=>console.error("Error loading monaco-editor: ",qe))};if(window.amdRequire)return U();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const ee=document.createElement("script");ee.type="text/javascript",ee.src=`${this._monacoPath}/loader.js`,ee.addEventListener("load",U),document.body.appendChild(ee)}addElectronFixScripts(){const U=document.createElement("script"),Y=document.createTextNode("self.module = undefined;"),B=document.createTextNode("self.process.browser = true;");U.appendChild(Y),U.appendChild(B),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,Y,B){this.templateRef=U,this.viewContainer=Y,this.monacoEditorLoaderService=B,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 Y=U.options.currentValue,{language:B,theme:ee}=Y,ie=(0,f.__rest)(Y,["language","theme"]),{language:he,theme:Me}=U.options.previousValue;he!==B&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),Me!==ee&&monaco.editor.setTheme(ee),this.editor.updateOptions(ie)}if(this.editor&&U.uri){const Y=U.uri.currentValue,B=U.uri.previousValue;if(B&&!Y||!B&&Y||Y&&B&&Y.path!==B.path){const ee=this.editor.getValue();let ie;this.modelUriInstance&&this.modelUriInstance.dispose(),Y&&(ie=monaco.editor.getModels().find(he=>he.uri.path===Y.path)),this.modelUriInstance=ie||monaco.editor.createModel(ee,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:B})=>B).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,Y){if(1&U&&n.\u0275\u0275viewQuery(m,7),2&U){let B;n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Y.editorContent=B.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,Y){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 Y=monaco.editor.createModel(this.modified),B=monaco.editor.createModel(this.original);this.editor.setModel({original:B,modified:Y})}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 Y=monaco.editor.createModel(this.original),B=monaco.editor.createModel(this.modified);this.editor.setModel({original:Y,modified:B}),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,Y){if(1&U&&n.\u0275\u0275viewQuery(d,7),2&U){let B;n.\u0275\u0275queryRefresh(B=n.\u0275\u0275loadQuery())&&(Y.editorContent=B.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,Y){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})(),F=(()=>{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:($,o,a)=>{"use strict";a.r(o),a.d(o,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>ie,AngularSplitModule:()=>qe,SplitAreaDirective:()=>Me,SplitComponent:()=>he});var n=a(5e3),p=a(9808),b=a(7579),u=a(8306),r=a(8372);const c=["gutterEls"];function f(G,Z){if(1&G){const V=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"div",2,3),n.\u0275\u0275listener("keydown",function(_e){n.\u0275\u0275restoreView(V);const De=n.\u0275\u0275nextContext().index,it=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(it.startKeyboardDrag(_e,2*De+1,De+1))})("mousedown",function(_e){n.\u0275\u0275restoreView(V);const De=n.\u0275\u0275nextContext().index,it=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(it.startMouseDrag(_e,2*De+1,De+1))})("touchstart",function(_e){n.\u0275\u0275restoreView(V);const De=n.\u0275\u0275nextContext().index,it=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(it.startMouseDrag(_e,2*De+1,De+1))})("mouseup",function(_e){n.\u0275\u0275restoreView(V);const De=n.\u0275\u0275nextContext().index,it=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(it.clickGutter(_e,De+1))})("touchend",function(_e){n.\u0275\u0275restoreView(V);const De=n.\u0275\u0275nextContext().index,it=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(it.clickGutter(_e,De+1))}),n.\u0275\u0275element(2,"div",4),n.\u0275\u0275elementEnd()}if(2&G){const V=n.\u0275\u0275nextContext(),J=V.index,_e=V.$implicit,De=n.\u0275\u0275nextContext();n.\u0275\u0275styleProp("flex-basis",De.gutterSize,"px")("order",2*J+1),n.\u0275\u0275attribute("aria-label",De.gutterAriaLabel)("aria-orientation",De.direction)("aria-valuemin",_e.minSize)("aria-valuemax",_e.maxSize)("aria-valuenow",_e.size)("aria-valuetext",De.getAriaAreaSizeText(_e.size))}}function h(G,Z){1&G&&n.\u0275\u0275template(0,f,3,10,"div",1),2&G&&n.\u0275\u0275property("ngIf",!1===Z.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 Z=G.currentTarget;return{x:Z.offsetLeft,y:Z.offsetTop}}return null}function _(G,Z,V){return Math.abs(G.x-Z.x)<=V&&Math.abs(G.y-Z.y)<=V}function y(G,Z){const V=G.nativeElement.getBoundingClientRect();return"horizontal"===Z?V.width:V.height}function E(G){return"boolean"==typeof G?G:"false"!==G}function M(G,Z){return null==G?Z:(G=Number(G),!isNaN(G)&&G>=0?G:Z)}function A(G,Z){if("percent"===G){const V=Z.reduce((J,_e)=>null!==_e?J+_e:J,0);return Z.every(J=>null!==J)&&V>99.9&&V<100.1}if("pixel"===G)return 1===Z.filter(V=>null===V).length}function F(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 Q(G,Z,V,J){return Z.reduce((_e,De)=>{const it=function U(G,Z,V,J){return 0===V?{areaSnapshot:Z,pixelAbsorb:0,percentAfterAbsorption:Z.sizePercentAtStart,pixelRemain:0}:0===Z.sizePixelAtStart&&V<0?{areaSnapshot:Z,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:V}:"percent"===G?function Y(G,Z,V){const _e=(G.sizePixelAtStart+Z)/V*100;if(Z>0){if(null!==G.area.maxSize&&_e>G.area.maxSize){const De=G.area.maxSize/100*V;return{areaSnapshot:G,pixelAbsorb:De,percentAfterAbsorption:G.area.maxSize,pixelRemain:G.sizePixelAtStart+Z-De}}return{areaSnapshot:G,pixelAbsorb:Z,percentAfterAbsorption:_e>100?100:_e,pixelRemain:0}}if(Z<0){if(null!==G.area.minSize&&_e<G.area.minSize){const De=G.area.minSize/100*V;return{areaSnapshot:G,pixelAbsorb:De,percentAfterAbsorption:G.area.minSize,pixelRemain:G.sizePixelAtStart+Z-De}}return _e<0?{areaSnapshot:G,pixelAbsorb:-G.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:Z+G.sizePixelAtStart}:{areaSnapshot:G,pixelAbsorb:Z,percentAfterAbsorption:_e,pixelRemain:0}}}(Z,V,J):"pixel"===G?function B(G,Z,V){const J=G.sizePixelAtStart+Z;return Z>0?null!==G.area.maxSize&&J>G.area.maxSize?{areaSnapshot:G,pixelAbsorb:G.area.maxSize-G.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:J-G.area.maxSize}:{areaSnapshot:G,pixelAbsorb:Z,percentAfterAbsorption:-1,pixelRemain:0}:Z<0?null!==G.area.minSize&&J<G.area.minSize?{areaSnapshot:G,pixelAbsorb:G.area.minSize+Z-J,percentAfterAbsorption:-1,pixelRemain:J-G.area.minSize}:J<0?{areaSnapshot:G,pixelAbsorb:-G.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:Z+G.sizePixelAtStart}:{areaSnapshot:G,pixelAbsorb:Z,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(Z,V):void 0}(G,De,_e.remain,J);return _e.list.push(it),_e.remain=it.pixelRemain,_e},{remain:V,list:[]})}function ee(G,Z){"percent"===G?Z.areaSnapshot.area.size=Z.percentAfterAbsorption:"pixel"===G&&null!==Z.areaSnapshot.area.size&&(Z.areaSnapshot.area.size=Z.areaSnapshot.sizePixelAtStart+Z.pixelAbsorb)}const ie=new n.InjectionToken("angular-split-global-config");let he=(()=>{class G{constructor(V,J,_e,De,it){this.ngZone=V,this.elRef=J,this.cdRef=_e,this.renderer=De,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(V){this._direction="vertical"===V?"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(V){this._unit="pixel"===V?"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(V){this._gutterSize=M(V,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(V){this._gutterStep=M(V,1)}get gutterStep(){return this._gutterStep}set restrictMove(V){this._restrictMove=E(V)}get restrictMove(){return this._restrictMove}set useTransition(V){this._useTransition=E(V),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(V){this._disabled=E(V),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(V){this._dir="rtl"===V?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(V){this._gutterDblClickDuration=M(V,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new u.y(V=>this.transitionEndSubscriber=V).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(V){const J={component:V,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===V.visible?(this.displayedAreas.push(J),this.build(!0,!0)):this.hiddenAreas.push(J)}removeArea(V){if(this.displayedAreas.some(J=>J.component===V)){const J=this.displayedAreas.find(_e=>_e.component===V);this.displayedAreas.splice(this.displayedAreas.indexOf(J),1),this.build(!0,!0)}else if(this.hiddenAreas.some(J=>J.component===V)){const J=this.hiddenAreas.find(_e=>_e.component===V);this.hiddenAreas.splice(this.hiddenAreas.indexOf(J),1)}}updateArea(V,J,_e){!0===V.visible&&this.build(J,_e)}showArea(V){const J=this.hiddenAreas.find(De=>De.component===V);if(void 0===J)return;const _e=this.hiddenAreas.splice(this.hiddenAreas.indexOf(J),1);this.displayedAreas.push(..._e),this.build(!0,!0)}hideArea(V){const J=this.displayedAreas.find(De=>De.component===V);if(void 0===J)return;const _e=this.displayedAreas.splice(this.displayedAreas.indexOf(J),1);_e.forEach(De=>{De.order=0,De.size=0}),this.hiddenAreas.push(..._e),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(V=>null===V.size?"*":V.size)}setVisibleAreaSizes(V){if(V.length!==this.displayedAreas.length)return!1;const J=V.map(De=>M(De,null));return!1!==A(this.unit,J)&&(this.displayedAreas.forEach((De,it)=>De.component._size=J[it]),this.build(!1,!0),!0)}build(V,J){if(this.stopDragging(),!0===V&&(this.displayedAreas.every(_e=>null!==_e.component.order)&&this.displayedAreas.sort((_e,De)=>_e.component.order-De.component.order),this.displayedAreas.forEach((_e,De)=>{_e.order=2*De,_e.component.setStyleOrder(_e.order)})),!0===J){const _e=A(this.unit,this.displayedAreas.map(De=>De.component.size));switch(this.unit){case"percent":{const De=100/this.displayedAreas.length;this.displayedAreas.forEach(it=>{it.size=_e?it.component.size:De,it.minSize=F(it),it.maxSize=j(it)});break}case"pixel":if(_e)this.displayedAreas.forEach(De=>{De.size=De.component.size,De.minSize=F(De),De.maxSize=j(De)});else{const De=this.displayedAreas.filter(it=>null===it.component.size);if(0===De.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((it,rt)=>{it.size=0===rt?null:it.component.size,it.minSize=0===rt?null:F(it),it.maxSize=0===rt?null:j(it)});else if(De.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=F(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 V=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(J=>{J.component.setStyleFlex(0,0,`calc( ${J.size}% - ${J.size/100*V}px )`,null!==J.minSize&&J.minSize===J.size,null!==J.maxSize&&J.maxSize===J.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(V=>{null===V.size?V.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?V.component.setStyleFlex(0,0,"100%",!1,!1):V.component.setStyleFlex(0,0,`${V.size}px`,null!==V.minSize&&V.minSize===V.size,null!==V.maxSize&&V.maxSize===V.size)})}clickGutter(V,J){const _e=d(V);this.startPoint&&_(this.startPoint,_e,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",J),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",J),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(V,J,_e){if(!0===this.disabled||!0===this.isWaitingClear)return;const De=function v(G,Z){if("horizontal"===Z)switch(G.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===Z)switch(G.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const V=G.currentTarget,J="PageUp"===G.key||"PageDown"===G.key?500:50;let _e=V.offsetLeft,De=V.offsetTop;switch(G.key){case"ArrowLeft":_e-=J;break;case"ArrowRight":_e+=J;break;case"ArrowUp":De-=J;break;case"ArrowDown":De+=J;break;case"PageUp":"vertical"===Z?De-=J:_e+=J;break;case"PageDown":"vertical"===Z?De+=J:_e-=J;break;default:return null}return{x:_e,y:De}}(V,this.direction);null!==De&&(this.endPoint=De,this.startPoint=d(V),V.preventDefault(),V.stopPropagation(),this.setupForDragEvent(J,_e),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(V,J,_e){V.preventDefault(),V.stopPropagation(),this.startPoint=d(V),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(J,_e),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(V,J){this.snapshot={gutterNum:J,lastSteppedOffset:0,allAreasSizePixel:y(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(_e=>{const De={area:_e,sizePixelAtStart:y(_e.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?_e.size:-1};_e.order<V?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[De]:this.snapshot.areasBeforeGutter.unshift(De):_e.order>V&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[De]):this.snapshot.areasAfterGutter.push(De))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((_e,De)=>_e+De.sizePercentAtStart,0)}startDragging(){this.displayedAreas.forEach(V=>V.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(V){V.preventDefault(),V.stopPropagation();const J=d(V);null!==this._clickTimeout&&!_(this.startPoint,J,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=d(V),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 V="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(V=-V);const J=Math.round(V/this.gutterStep)*this.gutterStep;if(J===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=J;let _e=Q(this.unit,this.snapshot.areasBeforeGutter,-J,this.snapshot.allAreasSizePixel),De=Q(this.unit,this.snapshot.areasAfterGutter,J,this.snapshot.allAreasSizePixel);if(0!==_e.remain&&0!==De.remain?Math.abs(_e.remain)===Math.abs(De.remain)||(Math.abs(_e.remain)>Math.abs(De.remain)?De=Q(this.unit,this.snapshot.areasAfterGutter,J+_e.remain,this.snapshot.allAreasSizePixel):_e=Q(this.unit,this.snapshot.areasBeforeGutter,-(J-De.remain),this.snapshot.allAreasSizePixel)):0!==_e.remain?De=Q(this.unit,this.snapshot.areasAfterGutter,J+_e.remain,this.snapshot.allAreasSizePixel):0!==De.remain&&(_e=Q(this.unit,this.snapshot.areasBeforeGutter,-(J-De.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const it=[..._e.list,...De.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))}_e.list.forEach(it=>ee(this.unit,it)),De.list.forEach(it=>ee(this.unit,it)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(V){if(V&&(V.preventDefault(),V.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(J=>J.component.unlockEvents());this.dragListeners.length>0;){const J=this.dragListeners.pop();J&&J()}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(V,J){const _e=this.getVisibleAreaSizes();"start"===V?this.dragStart.emit({gutterNum:J,sizes:_e}):"end"===V?this.dragEnd.emit({gutterNum:J,sizes:_e}):"click"===V?this.gutterClick.emit({gutterNum:J,sizes:_e}):"dblclick"===V?this.gutterDblClick.emit({gutterNum:J,sizes:_e}):"transitionEnd"===V?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(_e)):"progress"===V&&this.dragProgressSubject.next({gutterNum:J,sizes:_e})}ngOnDestroy(){this.stopDragging()}collapseArea(V,J,_e){const De=this.displayedAreas.find(yt=>yt.component===V);if(void 0===De)return;const it="right"===_e?1:-1;De.sizeBeforeCollapse||(De.sizeBeforeCollapse=De.size,De.gutterBeforeCollapse=it),De.size=J;const rt=this.gutterEls.find(yt=>yt.nativeElement.style.order===`${De.order+it}`);rt&&this.renderer.addClass(rt.nativeElement,"as-split-gutter-collapsed"),this.updateArea(V,!1,!1)}expandArea(V){const J=this.displayedAreas.find(De=>De.component===V);if(void 0===J||!J.sizeBeforeCollapse)return;J.size=J.sizeBeforeCollapse,J.sizeBeforeCollapse=null;const _e=this.gutterEls.find(De=>De.nativeElement.style.order===`${J.order+J.gutterBeforeCollapse}`);_e&&this.renderer.removeClass(_e.nativeElement,"as-split-gutter-collapsed"),this.updateArea(V,!1,!1)}getAriaAreaSizeText(V){return null===V?null:V.toFixed(0)+" "+this.unit}}return G.\u0275fac=function(V){return new(V||G)(n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.ChangeDetectorRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(ie,8))},G.\u0275cmp=n.\u0275\u0275defineComponent({type:G,selectors:[["as-split"]],viewQuery:function(V,J){if(1&V&&n.\u0275\u0275viewQuery(c,5),2&V){let _e;n.\u0275\u0275queryRefresh(_e=n.\u0275\u0275loadQuery())&&(J.gutterEls=_e)}},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(V,J){1&V&&(n.\u0275\u0275projectionDef(),n.\u0275\u0275projection(0),n.\u0275\u0275template(1,h,1,1,"ng-template",0)),2&V&&(n.\u0275\u0275advance(1),n.\u0275\u0275property("ngForOf",J.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})(),Me=(()=>{class G{constructor(V,J,_e,De){this.ngZone=V,this.elRef=J,this.renderer=_e,this.split=De,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(V){this._order=M(V,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(V){this._size=M(V,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(V){this._minSize=M(V,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(V){this._maxSize=M(V,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(V){this._lockSize=E(V),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(V){this._visible=E(V),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",V=>{"flex-basis"===V.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(V){this.renderer.setStyle(this.elRef.nativeElement,"order",V)}setStyleFlex(V,J,_e,De,it){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",V),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",J),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",_e),!0===De?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 V=this.lockListeners.pop();V&&V()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(V=0,J="right"){this.split.collapseArea(this,V,J)}expand(){this.split.expandArea(this)}}return G.\u0275fac=function(V){return new(V||G)(n.\u0275\u0275directiveInject(n.NgZone),n.\u0275\u0275directiveInject(n.ElementRef),n.\u0275\u0275directiveInject(n.Renderer2),n.\u0275\u0275directiveInject(he))},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})(),qe=(()=>{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(V){return new(V||G)},G.\u0275mod=n.\u0275\u0275defineNgModule({type:G}),G.\u0275inj=n.\u0275\u0275defineInjector({imports:[[p.CommonModule]]}),G})()},1017:($,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,F=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(F.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,F){let j,Q;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,F),Array.isArray(A)?(Q=[],A.forEach(function(U,Y){Q[Y]=M(U,F+"["+Y+"]")})):(Q={},Object.keys(A).forEach(function(U){Q[U]=M(A[U],F+"["+JSON.stringify(U)+"]")})),Q))}(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:($,o,a)=>{"use strict";a.r(o),a.d(o,{BasePortalHost:()=>B,ComponentPortal:()=>Y,DefaultGlobalConfig:()=>it,DefaultNoAnimationsGlobalConfig:()=>ft,DefaultNoComponentGlobalConfig:()=>ie,Overlay:()=>J,OverlayContainer:()=>V,OverlayRef:()=>Z,TOAST_CONFIG:()=>he,Toast:()=>De,ToastContainerDirective:()=>Q,ToastContainerModule:()=>U,ToastInjector:()=>qe,ToastNoAnimation:()=>Oe,ToastNoAnimationModule:()=>Et,ToastPackage:()=>ee,ToastRef:()=>Me,ToastrComponentlessModule:()=>yt,ToastrModule:()=>rt,ToastrService:()=>_e});var n=a(5e3),p=a(1777),b=a(7579),u=a(9808),r=a(2313);const c=["toast-component",""];function f(et,lt){if(1&et){const Ge=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",5),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Ge);const wt=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(wt.remove())}),n.\u0275\u0275elementStart(1,"span",6),n.\u0275\u0275text(2,"\xd7"),n.\u0275\u0275elementEnd()()}}function h(et,lt){if(1&et&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275text(1),n.\u0275\u0275elementContainerEnd()),2&et){const Ge=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("[",Ge.duplicatesCount+1,"]")}}function m(et,lt){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 Ge=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ge.options.titleClass),n.\u0275\u0275attribute("aria-label",Ge.title),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ge.title," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ge.duplicatesCount)}}function d(et,lt){if(1&et&&n.\u0275\u0275element(0,"div",7),2&et){const Ge=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ge.options.messageClass),n.\u0275\u0275property("innerHTML",Ge.message,n.\u0275\u0275sanitizeHtml)}}function _(et,lt){if(1&et&&(n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&et){const Ge=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ge.options.messageClass),n.\u0275\u0275attribute("aria-label",Ge.message),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ge.message," ")}}function v(et,lt){if(1&et&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275element(1,"div",9),n.\u0275\u0275elementEnd()),2&et){const Ge=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",Ge.width+"%")}}function y(et,lt){if(1&et){const Ge=n.\u0275\u0275getCurrentView();n.\u0275\u0275elementStart(0,"button",5),n.\u0275\u0275listener("click",function(){n.\u0275\u0275restoreView(Ge);const wt=n.\u0275\u0275nextContext();return n.\u0275\u0275resetView(wt.remove())}),n.\u0275\u0275elementStart(1,"span",6),n.\u0275\u0275text(2,"\xd7"),n.\u0275\u0275elementEnd()()}}function E(et,lt){if(1&et&&(n.\u0275\u0275elementContainerStart(0),n.\u0275\u0275text(1),n.\u0275\u0275elementContainerEnd()),2&et){const Ge=n.\u0275\u0275nextContext(2);n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1("[",Ge.duplicatesCount+1,"]")}}function M(et,lt){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 Ge=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ge.options.titleClass),n.\u0275\u0275attribute("aria-label",Ge.title),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ge.title," "),n.\u0275\u0275advance(1),n.\u0275\u0275property("ngIf",Ge.duplicatesCount)}}function A(et,lt){if(1&et&&n.\u0275\u0275element(0,"div",7),2&et){const Ge=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ge.options.messageClass),n.\u0275\u0275property("innerHTML",Ge.message,n.\u0275\u0275sanitizeHtml)}}function F(et,lt){if(1&et&&(n.\u0275\u0275elementStart(0,"div",8),n.\u0275\u0275text(1),n.\u0275\u0275elementEnd()),2&et){const Ge=n.\u0275\u0275nextContext();n.\u0275\u0275classMap(Ge.options.messageClass),n.\u0275\u0275attribute("aria-label",Ge.message),n.\u0275\u0275advance(1),n.\u0275\u0275textInterpolate1(" ",Ge.message," ")}}function j(et,lt){if(1&et&&(n.\u0275\u0275elementStart(0,"div"),n.\u0275\u0275element(1,"div",9),n.\u0275\u0275elementEnd()),2&et){const Ge=n.\u0275\u0275nextContext();n.\u0275\u0275advance(1),n.\u0275\u0275styleProp("width",Ge.width+"%")}}let Q=(()=>{class et{constructor(Ge){this.el=Ge}getContainerElement(){return this.el.nativeElement}}return et.\u0275fac=function(Ge){return new(Ge||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(Ge){return new(Ge||et)},et.\u0275mod=n.\u0275\u0275defineNgModule({type:et}),et.\u0275inj=n.\u0275\u0275defineInjector({}),et})();class Y{constructor(lt,Ge){this.component=lt,this.injector=Ge}attach(lt,Ge){return this._attachedHost=lt,lt.attach(this,Ge)}detach(){const lt=this._attachedHost;if(lt)return this._attachedHost=void 0,lt.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(lt){this._attachedHost=lt}}class B{attach(lt,Ge){return this._attachedPortal=lt,this.attachComponentPortal(lt,Ge)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(lt){this._disposeFn=lt}}class ee{constructor(lt,Ge,nt,wt,Ct,st){this.toastId=lt,this.config=Ge,this.message=nt,this.title=wt,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(lt){this._onAction.next(lt)}onAction(){return this._onAction.asObservable()}}const ie={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},he=new n.InjectionToken("ToastConfig");class Me{constructor(lt){this._overlayRef=lt,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(lt,Ge){lt&&this._resetTimeout.next(),Ge&&this._countDuplicate.next(++this.duplicatesCount)}}class qe{constructor(lt,Ge){this._toastPackage=lt,this._parentInjector=Ge}get(lt,Ge,nt){return lt===ee?this._toastPackage:this._parentInjector.get(lt,Ge,nt)}}class G extends B{constructor(lt,Ge,nt){super(),this._hostDomElement=lt,this._componentFactoryResolver=Ge,this._appRef=nt}attachComponentPortal(lt,Ge){const nt=this._componentFactoryResolver.resolveComponentFactory(lt.component);let wt;return wt=nt.create(lt.injector),this._appRef.attachView(wt.hostView),this.setDisposeFn(()=>{this._appRef.detachView(wt.hostView),wt.destroy()}),Ge?this._hostDomElement.insertBefore(this._getComponentRootNode(wt),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(wt)),wt}_getComponentRootNode(lt){return lt.hostView.rootNodes[0]}}class Z{constructor(lt){this._portalHost=lt}attach(lt,Ge=!0){return this._portalHost.attach(lt,Ge)}detach(){return this._portalHost.detach()}}let V=(()=>{class et{constructor(Ge){this._document=Ge}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const Ge=this._document.createElement("div");Ge.classList.add("overlay-container"),Ge.setAttribute("aria-live","polite"),this._document.body.appendChild(Ge),this._containerElement=Ge}}return et.\u0275fac=function(Ge){return new(Ge||et)(n.\u0275\u0275inject(u.DOCUMENT))},et.\u0275prov=n.\u0275\u0275defineInjectable({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),J=(()=>{class et{constructor(Ge,nt,wt,Ct){this._overlayContainer=Ge,this._componentFactoryResolver=nt,this._appRef=wt,this._document=Ct,this._paneElements=new Map}create(Ge,nt){return this._createOverlayRef(this.getPaneElement(Ge,nt))}getPaneElement(Ge="",nt){return this._paneElements.get(nt)||this._paneElements.set(nt,{}),this._paneElements.get(nt)[Ge]||(this._paneElements.get(nt)[Ge]=this._createPaneElement(Ge,nt)),this._paneElements.get(nt)[Ge]}_createPaneElement(Ge,nt){const wt=this._document.createElement("div");return wt.id="toast-container",wt.classList.add(Ge),wt.classList.add("toast-container"),nt?nt.getContainerElement().appendChild(wt):this._overlayContainer.getContainerElement().appendChild(wt),wt}_createPortalHost(Ge){return new G(Ge,this._componentFactoryResolver,this._appRef)}_createOverlayRef(Ge){return new Z(this._createPortalHost(Ge))}}return et.\u0275fac=function(Ge){return new(Ge||et)(n.\u0275\u0275inject(V),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})(),_e=(()=>{class et{constructor(Ge,nt,wt,Ct,st){this.overlay=nt,this._injector=wt,this.sanitizer=Ct,this.ngZone=st,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},Ge.default),Ge.config),Ge.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},Ge.default.iconClasses),Ge.config.iconClasses))}show(Ge,nt,wt={},Ct=""){return this._preBuildNotification(Ct,Ge,nt,this.applyConfig(wt))}success(Ge,nt,wt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",Ge,nt,this.applyConfig(wt))}error(Ge,nt,wt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",Ge,nt,this.applyConfig(wt))}info(Ge,nt,wt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",Ge,nt,this.applyConfig(wt))}warning(Ge,nt,wt={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",Ge,nt,this.applyConfig(wt))}clear(Ge){for(const nt of this.toasts)if(void 0!==Ge){if(nt.toastId===Ge)return void nt.toastRef.manualClose()}else nt.toastRef.manualClose()}remove(Ge){const nt=this._findToast(Ge);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 wt=this.toasts[this.currentlyActive].toastRef;wt.isInactive()||(this.currentlyActive=this.currentlyActive+1,wt.activate())}return!0}findDuplicate(Ge="",nt="",wt,Ct){const{includeTitleDuplicates:st}=this.toastrConfig;for(const It of this.toasts){const Ue=st&&It.title===Ge;if((!st||Ue)&&It.message===nt)return It.toastRef.onDuplicate(wt,Ct),It}return null}applyConfig(Ge={}){return Object.assign(Object.assign({},this.toastrConfig),Ge)}_findToast(Ge){for(let nt=0;nt<this.toasts.length;nt++)if(this.toasts[nt].toastId===Ge)return{index:nt,activeToast:this.toasts[nt]};return null}_preBuildNotification(Ge,nt,wt,Ct){return Ct.onActivateTick?this.ngZone.run(()=>this._buildNotification(Ge,nt,wt,Ct)):this._buildNotification(Ge,nt,wt,Ct)}_buildNotification(Ge,nt,wt,Ct){if(!Ct.toastComponent)throw new Error("toastComponent required");const st=this.findDuplicate(wt,nt,this.toastrConfig.resetTimeoutOnDuplicate&&Ct.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&wt||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 Ue=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 Ne=new Me(Ue),fe=new ee(this.index,Ct,Ae,wt,Ge,Ne),ze=new qe(fe,this._injector),Ie=new Y(Ct.toastComponent,ze),Ve=Ue.attach(Ie,this.toastrConfig.newestOnTop);Ne.componentInstance=Ve.instance;const z={toastId:this.index,title:wt||"",message:nt||"",toastRef:Ne,onShown:Ne.afterActivate(),onHidden:Ne.afterClosed(),onTap:fe.onTap(),onAction:fe.onAction(),portal:Ve};return It||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{z.toastRef.activate()})),this.toasts.push(z),z}}return et.\u0275fac=function(Ge){return new(Ge||et)(n.\u0275\u0275inject(he),n.\u0275\u0275inject(J),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})(),De=(()=>{class et{constructor(Ge,nt,wt){this.toastrService=Ge,this.toastPackage=nt,this.ngZone=wt,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 Ge=(new Date).getTime();this.width=(this.hideTime-Ge)/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(Ge,nt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(Ge),nt)):this.timeout=setTimeout(()=>Ge(),nt)}outsideInterval(Ge,nt){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(Ge),nt)):this.intervalId=setInterval(()=>Ge(),nt)}runInsideAngular(Ge){this.ngZone?this.ngZone.run(()=>Ge()):Ge()}}return et.\u0275fac=function(Ge){return new(Ge||et)(n.\u0275\u0275directiveInject(_e),n.\u0275\u0275directiveInject(ee),n.\u0275\u0275directiveInject(n.NgZone))},et.\u0275cmp=n.\u0275\u0275defineComponent({type:et,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(Ge,nt){1&Ge&&n.\u0275\u0275listener("click",function(){return nt.tapToast()})("mouseenter",function(){return nt.stickAround()})("mouseleave",function(){return nt.delayedHideToast()}),2&Ge&&(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(Ge,nt){1&Ge&&(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&Ge&&(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({},ie),{toastComponent:De});let rt=(()=>{class et{static forRoot(Ge={}){return{ngModule:et,providers:[{provide:he,useValue:{default:it,config:Ge}}]}}}return et.\u0275fac=function(Ge){return new(Ge||et)},et.\u0275mod=n.\u0275\u0275defineNgModule({type:et}),et.\u0275inj=n.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),et})(),yt=(()=>{class et{static forRoot(Ge={}){return{ngModule:rt,providers:[{provide:he,useValue:{default:ie,config:Ge}}]}}}return et.\u0275fac=function(Ge){return new(Ge||et)},et.\u0275mod=n.\u0275\u0275defineNgModule({type:et}),et.\u0275inj=n.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),et})(),Oe=(()=>{class et{constructor(Ge,nt,wt){this.toastrService=Ge,this.toastPackage=nt,this.appRef=wt,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 Ge=(new Date).getTime();this.width=(this.hideTime-Ge)/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(Ge){return new(Ge||et)(n.\u0275\u0275directiveInject(_e),n.\u0275\u0275directiveInject(ee),n.\u0275\u0275directiveInject(n.ApplicationRef))},et.\u0275cmp=n.\u0275\u0275defineComponent({type:et,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function(Ge,nt){1&Ge&&n.\u0275\u0275listener("click",function(){return nt.tapToast()})("mouseenter",function(){return nt.stickAround()})("mouseleave",function(){return nt.delayedHideToast()}),2&Ge&&(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(Ge,nt){1&Ge&&(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,F,2,4,"div",3),n.\u0275\u0275template(4,j,2,2,"div",4)),2&Ge&&(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({},ie),{toastComponent:Oe});let Et=(()=>{class et{static forRoot(Ge={}){return{ngModule:et,providers:[{provide:he,useValue:{default:ft,config:Ge}}]}}}return et.\u0275fac=function(Ge){return new(Ge||et)},et.\u0275mod=n.\u0275\u0275defineNgModule({type:et}),et.\u0275inj=n.\u0275\u0275defineInjector({imports:[[u.CommonModule]]}),et})()},4147:$=>{"use strict";$.exports=JSON.parse('{"name":"@sdkgen/playground","version":"0.0.0-dev.20220808134551","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"}}')}},$=>{$($.s=4431)}]);