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

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.
Files changed (110) hide show
  1. package/dist/3rdpartylicenses.txt +2 -2
  2. package/dist/assets/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  3. package/dist/assets/vs/base/worker/workerMain.js +14 -10
  4. package/dist/assets/vs/basic-languages/abap/abap.js +6 -3
  5. package/dist/assets/vs/basic-languages/apex/apex.js +6 -3
  6. package/dist/assets/vs/basic-languages/azcli/azcli.js +6 -3
  7. package/dist/assets/vs/basic-languages/bat/bat.js +6 -3
  8. package/dist/assets/vs/basic-languages/bicep/bicep.js +7 -3
  9. package/dist/assets/vs/basic-languages/cameligo/cameligo.js +6 -3
  10. package/dist/assets/vs/basic-languages/clojure/clojure.js +6 -3
  11. package/dist/assets/vs/basic-languages/coffee/coffee.js +6 -3
  12. package/dist/assets/vs/basic-languages/cpp/cpp.js +6 -3
  13. package/dist/assets/vs/basic-languages/csharp/csharp.js +6 -3
  14. package/dist/assets/vs/basic-languages/csp/csp.js +6 -3
  15. package/dist/assets/vs/basic-languages/css/css.js +8 -3
  16. package/dist/assets/vs/basic-languages/dart/dart.js +6 -3
  17. package/dist/assets/vs/basic-languages/dockerfile/dockerfile.js +6 -3
  18. package/dist/assets/vs/basic-languages/ecl/ecl.js +6 -3
  19. package/dist/assets/vs/basic-languages/elixir/elixir.js +6 -3
  20. package/dist/assets/vs/basic-languages/flow9/flow9.js +6 -3
  21. package/dist/assets/vs/basic-languages/fsharp/fsharp.js +6 -3
  22. package/dist/assets/vs/basic-languages/go/go.js +6 -3
  23. package/dist/assets/vs/basic-languages/graphql/graphql.js +6 -3
  24. package/dist/assets/vs/basic-languages/handlebars/handlebars.js +6 -3
  25. package/dist/assets/vs/basic-languages/hcl/hcl.js +6 -3
  26. package/dist/assets/vs/basic-languages/html/html.js +6 -3
  27. package/dist/assets/vs/basic-languages/ini/ini.js +6 -3
  28. package/dist/assets/vs/basic-languages/java/java.js +6 -3
  29. package/dist/assets/vs/basic-languages/javascript/javascript.js +6 -3
  30. package/dist/assets/vs/basic-languages/julia/julia.js +6 -3
  31. package/dist/assets/vs/basic-languages/kotlin/kotlin.js +6 -3
  32. package/dist/assets/vs/basic-languages/less/less.js +7 -3
  33. package/dist/assets/vs/basic-languages/lexon/lexon.js +6 -3
  34. package/dist/assets/vs/basic-languages/liquid/liquid.js +6 -3
  35. package/dist/assets/vs/basic-languages/lua/lua.js +6 -3
  36. package/dist/assets/vs/basic-languages/m3/m3.js +6 -3
  37. package/dist/assets/vs/basic-languages/markdown/markdown.js +6 -3
  38. package/dist/assets/vs/basic-languages/mips/mips.js +6 -3
  39. package/dist/assets/vs/basic-languages/msdax/msdax.js +6 -3
  40. package/dist/assets/vs/basic-languages/mysql/mysql.js +6 -3
  41. package/dist/assets/vs/basic-languages/objective-c/objective-c.js +6 -3
  42. package/dist/assets/vs/basic-languages/pascal/pascal.js +6 -3
  43. package/dist/assets/vs/basic-languages/pascaligo/pascaligo.js +6 -3
  44. package/dist/assets/vs/basic-languages/perl/perl.js +6 -3
  45. package/dist/assets/vs/basic-languages/pgsql/pgsql.js +6 -3
  46. package/dist/assets/vs/basic-languages/php/php.js +6 -3
  47. package/dist/assets/vs/basic-languages/pla/pla.js +10 -0
  48. package/dist/assets/vs/basic-languages/postiats/postiats.js +6 -3
  49. package/dist/assets/vs/basic-languages/powerquery/powerquery.js +6 -3
  50. package/dist/assets/vs/basic-languages/powershell/powershell.js +6 -3
  51. package/dist/assets/vs/basic-languages/protobuf/protobuf.js +7 -3
  52. package/dist/assets/vs/basic-languages/pug/pug.js +6 -3
  53. package/dist/assets/vs/basic-languages/python/python.js +6 -3
  54. package/dist/assets/vs/basic-languages/qsharp/qsharp.js +6 -3
  55. package/dist/assets/vs/basic-languages/r/r.js +6 -3
  56. package/dist/assets/vs/basic-languages/razor/razor.js +6 -3
  57. package/dist/assets/vs/basic-languages/redis/redis.js +6 -3
  58. package/dist/assets/vs/basic-languages/redshift/redshift.js +6 -3
  59. package/dist/assets/vs/basic-languages/restructuredtext/restructuredtext.js +6 -3
  60. package/dist/assets/vs/basic-languages/ruby/ruby.js +6 -3
  61. package/dist/assets/vs/basic-languages/rust/rust.js +6 -3
  62. package/dist/assets/vs/basic-languages/sb/sb.js +6 -3
  63. package/dist/assets/vs/basic-languages/scala/scala.js +6 -3
  64. package/dist/assets/vs/basic-languages/scheme/scheme.js +6 -3
  65. package/dist/assets/vs/basic-languages/scss/scss.js +8 -3
  66. package/dist/assets/vs/basic-languages/shell/shell.js +6 -3
  67. package/dist/assets/vs/basic-languages/solidity/solidity.js +6 -3
  68. package/dist/assets/vs/basic-languages/sophia/sophia.js +6 -3
  69. package/dist/assets/vs/basic-languages/sparql/sparql.js +6 -3
  70. package/dist/assets/vs/basic-languages/sql/sql.js +6 -3
  71. package/dist/assets/vs/basic-languages/st/st.js +6 -3
  72. package/dist/assets/vs/basic-languages/swift/swift.js +6 -3
  73. package/dist/assets/vs/basic-languages/systemverilog/systemverilog.js +6 -3
  74. package/dist/assets/vs/basic-languages/tcl/tcl.js +6 -3
  75. package/dist/assets/vs/basic-languages/twig/twig.js +6 -3
  76. package/dist/assets/vs/basic-languages/typescript/typescript.js +6 -3
  77. package/dist/assets/vs/basic-languages/vb/vb.js +6 -3
  78. package/dist/assets/vs/basic-languages/xml/xml.js +6 -3
  79. package/dist/assets/vs/basic-languages/yaml/yaml.js +6 -3
  80. package/dist/assets/vs/editor/editor.main.css +2 -2
  81. package/dist/assets/vs/editor/editor.main.js +334 -310
  82. package/dist/assets/vs/editor/editor.main.nls.de.js +20 -4
  83. package/dist/assets/vs/editor/editor.main.nls.es.js +20 -4
  84. package/dist/assets/vs/editor/editor.main.nls.fr.js +19 -3
  85. package/dist/assets/vs/editor/editor.main.nls.it.js +19 -3
  86. package/dist/assets/vs/editor/editor.main.nls.ja.js +20 -4
  87. package/dist/assets/vs/editor/editor.main.nls.js +19 -3
  88. package/dist/assets/vs/editor/editor.main.nls.ko.js +19 -3
  89. package/dist/assets/vs/editor/editor.main.nls.ru.js +20 -4
  90. package/dist/assets/vs/editor/editor.main.nls.zh-cn.js +20 -4
  91. package/dist/assets/vs/editor/editor.main.nls.zh-tw.js +19 -3
  92. package/dist/assets/vs/language/css/cssMode.js +9 -3
  93. package/dist/assets/vs/language/css/cssWorker.js +59 -3
  94. package/dist/assets/vs/language/html/htmlMode.js +9 -3
  95. package/dist/assets/vs/language/html/htmlWorker.js +449 -3
  96. package/dist/assets/vs/language/json/jsonMode.js +11 -3
  97. package/dist/assets/vs/language/json/jsonWorker.js +32 -3
  98. package/dist/assets/vs/language/typescript/tsMode.js +16 -3
  99. package/dist/assets/vs/language/typescript/tsWorker.js +35304 -3
  100. package/dist/assets/vs/loader.js +5 -5
  101. package/dist/index.html +2 -2
  102. package/dist/main.40ee67c2a5bb17e7.js +1 -0
  103. package/dist/polyfills.84a4d90b09829a9b.js +1 -0
  104. package/dist/runtime.f21339e4fa7c52e0.js +1 -0
  105. package/dist/styles.a1262385bb5d178f.css +1 -0
  106. package/package.json +26 -26
  107. package/dist/main.b9a8cedc9f4be7d6a9f4.js +0 -1
  108. package/dist/polyfills.cafddf8c4735e41988ea.js +0 -1
  109. package/dist/runtime.8aa026ad8f7a602ca6ec.js +0 -1
  110. package/dist/styles.1cde4da533b5b820c978.css +0 -5
@@ -1 +0,0 @@
1
- (self.webpackChunk_sdkgen_playground=self.webpackChunk_sdkgen_playground||[]).push([[179],{8255:Le=>{function T(d){return Promise.resolve().then(()=>{var o=new Error("Cannot find module '"+d+"'");throw o.code="MODULE_NOT_FOUND",o})}T.keys=()=>[],T.resolve=T,T.id=8255,Le.exports=T},4704:function(Le,T){"use strict";var D,d=this&&this.__extends||(D=function(g,E){return(D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,S){M.__proto__=S}||function(M,S){for(var P in S)Object.prototype.hasOwnProperty.call(S,P)&&(M[P]=S[P])})(g,E)},function(g,E){if("function"!=typeof E&&null!==E)throw new TypeError("Class extends value "+String(E)+" is not a constructor or null");function M(){this.constructor=g}D(g,E),g.prototype=null===E?Object.create(E):(M.prototype=E.prototype,new M)}),o=this&&this.__spreadArray||function(D,g,E){if(E||2===arguments.length)for(var P,M=0,S=g.length;M<S;M++)(P||!(M in g))&&(P||(P=Array.prototype.slice.call(g,0,M)),P[M]=g[M]);return D.concat(P||Array.prototype.slice.call(g))};Object.defineProperty(T,"__esModule",{value:!0}),T.decode=T.encode=void 0;var l=["string","email","phone","html","xml"],h=o(["json","bool","url","int","uint","float","money","hex","uuid","base64","void"],l,!0),_=function(D){function g(E,M,S){var L;try{L=JSON.stringify(S)}catch(j){L=String(S)}return D.call(this,"Invalid type at '".concat(E,"', expected ").concat(M,", got ").concat(L))||this}return d(g,D),g}(Error);function a(D,g,E){if("json"===g)return null==E?null:JSON.parse(JSON.stringify(E));if("bool"===g){if("boolean"!=typeof E)throw new _(D,g,E);return E}if(l.indexOf(g)>=0){if("string"!=typeof E)throw new _(D,g,E);return E}if("hex"===g){if("string"!=typeof E||!/^(?:[A-Fa-f0-9]{2})*$/u.test(E))throw new _(D,g,E);return E.toLowerCase()}if("uuid"===g){if("string"!=typeof E||!/^[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}$/u.test(E))throw new _(D,g,E);return E.toLowerCase()}if("base64"===g){var M=!0;try{atob(E)}catch(P){M=!1}if("string"!=typeof E||!M)throw new _(D,g,E);return E}if("int"===g){if("number"!=typeof E||(0|E)!==E)throw new _(D,g,E);return E}if("uint"===g){if("number"!=typeof E||(0|E)!==E||E<0)throw new _(D,g,E);return E}if("float"===g){if("number"!=typeof E)throw new _(D,g,E);return E}if("money"===g){if("number"!=typeof E||!Number.isInteger(E))throw new _(D,g,E);return E}if("url"===g){var S=void 0;if("string"==typeof E)try{S=new URL(E)}catch(P){}if(!S)throw new _(D,g,E);return S.toString()}if("void"===g)return null;throw new Error("Unknown type '".concat(g,"' at '").concat(D,"'"))}T.encode=function C(D,g,E,M){if("string"==typeof E&&!E.endsWith("?")&&"void"!==E&&null==M)throw new Error("Invalid type at '".concat(g,"', cannot be null"));if(Array.isArray(E)){if("string"!=typeof M||E.indexOf(M)<0)throw new _(g,E,M);return M}if("object"==typeof E){if("object"!=typeof M)throw new _(g,E,M);for(var S={},P=0,L=Object.keys(E);P<L.length;P++){var j=L[P];S[j]=C(D,"".concat(g,".").concat(j),E[j],M[j])}return S}if(E.endsWith("?"))return null==M?null:C(D,g,E.slice(0,E.length-1),M);if(E.endsWith("[]")){if(!Array.isArray(M))throw new _(g,E,M);return M.map(function(he,ye){return C(D,"".concat(g,"[").concat(ye,"]"),E.slice(0,E.length-2),he)})}if(h.indexOf(E)>=0)return a(g,E,M);if("bytes"===E){if(!(M instanceof ArrayBuffer))throw new _(g,E,M);return btoa(String.fromCharCode.apply(String,new Uint8Array(M)))}if("bigint"===E){if("bigint"!=typeof M)throw new _(g,E,M);return M.toString()}if("cpf"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("cnpj"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("date"===E){if((!(M instanceof Date)||isNaN(M.getTime()))&&("string"!=typeof M||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(M)))throw new _(g,E,M);return"string"==typeof M?new Date(M).toISOString().split("T")[0]:M.toISOString().split("T")[0]}if("datetime"===E){if((!(M instanceof Date)||isNaN(M.getTime()))&&("string"!=typeof M||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?(?:Z|[+-][012][0-9]:[0123456][0-9])?$/u.test(M)))throw new _(g,E,M);return("string"==typeof M?new Date(M):M).toISOString().replace("Z","")}var ae=D[E];if(ae)return C(D,g,ae,M);throw new Error("Unknown type '".concat(E,"' at '").concat(g,"'"))},T.decode=function w(D,g,E,M){if("string"==typeof E&&!E.endsWith("?")&&"void"!==E&&null==M)throw new Error("Invalid type at '".concat(g,"', cannot be null"));if(Array.isArray(E)){if("string"!=typeof M||E.indexOf(M)<0)throw new _(g,E,M);return M}if("object"==typeof E){if("object"!=typeof M)throw new _(g,E,M);for(var S={},P=0,L=Object.keys(E);P<L.length;P++){var j=L[P];S[j]=w(D,"".concat(g,".").concat(j),E[j],M[j])}return S}if(E.endsWith("?"))return null==M?null:w(D,g,E.slice(0,E.length-1),M);if(E.endsWith("[]")){if(!Array.isArray(M))throw new _(g,E,M);return M.map(function(Ze,Me){return w(D,"".concat(g,"[").concat(Me,"]"),E.slice(0,E.length-2),Ze)})}if(h.indexOf(E)>=0)return a(g,E,M);if("bytes"!==E){if("bigint"===E){if("number"!=typeof M&&("string"!=typeof M||!/^-?[0-9]+$/u.test(M)))throw new _(g,E,M);return BigInt(M)}if("cpf"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("cnpj"===E){if("string"!=typeof M)throw new _(g,E,M);return M}if("date"===E){if("string"!=typeof M||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(M))throw new _(g,E,M);var ae=parseInt(M.split("-")[2],10),he=parseInt(M.split("-")[1],10)-1,ye=parseInt(M.split("-")[0],10),$e=new Date(ye,he,ae);if($e.getFullYear()!==ye||$e.getMonth()!==he||$e.getDate()!==ae)throw new _(g,E,M);return $e}if("datetime"===E){if("string"!=typeof M||!/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0123456][0-9]:[0123456][0-9](?:\.[0-9]{1,6})?Z?$/u.test(M))throw new _(g,E,M);return new Date("".concat(M.endsWith("Z")?M:M.concat("Z")))}var at=D[E];if(at)return w(D,g,at,M);throw new Error("Unknown type '".concat(E,"' at '").concat(g,"'"))}if("string"!=typeof M)throw new _(g,"".concat(E," (base 64)"),M);try{return Uint8Array.from(atob(M),function(Ze){return Ze.charCodeAt(0)})}catch(Ze){throw new _(g,"".concat(E," (base 64)"),M)}}},3249:function(Le,T){"use strict";var h,d=this&&this.__extends||(h=function(_,a){return(h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,w){C.__proto__=w}||function(C,w){for(var D in w)Object.prototype.hasOwnProperty.call(w,D)&&(C[D]=w[D])})(_,a)},function(_,a){if("function"!=typeof a&&null!==a)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function C(){this.constructor=_}h(_,a),_.prototype=null===a?Object.create(a):(C.prototype=a.prototype,new C)});Object.defineProperty(T,"__esModule",{value:!0}),T.SdkgenErrorWithData=T.SdkgenError=void 0;var o=function(h){function _(){return null!==h&&h.apply(this,arguments)||this}return d(_,h),Object.defineProperty(_.prototype,"type",{get:function(){return this.constructor.name},enumerable:!1,configurable:!0}),_.prototype.toJSON=function(){return{message:this.message,type:this.type}},_}(Error);T.SdkgenError=o;var l=function(h){function _(a,C){var w=h.call(this,a)||this;return w.data=C,w}return d(_,h),_.prototype.toJSON=function(){return{data:this.data,message:this.message,type:this.type}},_}(o);T.SdkgenErrorWithData=l},1364:function(Le,T,d){"use strict";var o=this&&this.__awaiter||function(g,E,M,S){return new(M||(M=Promise))(function(L,j){function ae($e){try{ye(S.next($e))}catch(at){j(at)}}function he($e){try{ye(S.throw($e))}catch(at){j(at)}}function ye($e){$e.done?L($e.value):function(L){return L instanceof M?L:new M(function(j){j(L)})}($e.value).then(ae,he)}ye((S=S.apply(g,E||[])).next())})},l=this&&this.__generator||function(g,E){var S,P,L,j,M={label:0,sent:function(){if(1&L[0])throw L[1];return L[1]},trys:[],ops:[]};return j={next:ae(0),throw:ae(1),return:ae(2)},"function"==typeof Symbol&&(j[Symbol.iterator]=function(){return this}),j;function ae(ye){return function($e){return function(ye){if(S)throw new TypeError("Generator is already executing.");for(;M;)try{if(S=1,P&&(L=2&ye[0]?P.return:ye[0]?P.throw||((L=P.return)&&L.call(P),0):P.next)&&!(L=L.call(P,ye[1])).done)return L;switch(P=0,L&&(ye=[2&ye[0],L.value]),ye[0]){case 0:case 1:L=ye;break;case 4:return M.label++,{value:ye[1],done:!1};case 5:M.label++,P=ye[1],ye=[0];continue;case 7:ye=M.ops.pop(),M.trys.pop();continue;default:if(!(L=(L=M.trys).length>0&&L[L.length-1])&&(6===ye[0]||2===ye[0])){M=0;continue}if(3===ye[0]&&(!L||ye[1]>L[0]&&ye[1]<L[3])){M.label=ye[1];break}if(6===ye[0]&&M.label<L[1]){M.label=L[1],L=ye;break}if(L&&M.label<L[2]){M.label=L[2],M.ops.push(ye);break}L[2]&&M.ops.pop(),M.trys.pop();continue}ye=E.call(g,M)}catch($e){ye=[6,$e],P=0}finally{S=L=0}if(5&ye[0])throw ye[1];return{value:ye[0]?ye[1]:void 0,done:!0}}([ye,$e])}}};Object.defineProperty(T,"__esModule",{value:!0}),T.SdkgenHttpClient=void 0;var h=d(4704);function _(g){for(var E="",M=0;M<2*g;++M)E+="0123456789abcdef"[Math.floor(16*Math.random())];return E}var a=_(20);function C(){try{var g=localStorage.getItem("deviceId");return g||(g=a,localStorage.setItem("deviceId",g)),g}catch(E){}return a}function w(g,E){return E in g}var D=function(){function g(E,M,S){this.astJson=M,this.errClasses=S,this.extra=new Map,this.successHook=function(){},this.errorHook=function(){},this.baseUrl=E}return g.prototype.makeRequest=function(E,M){var S,P;return o(this,void 0,void 0,function(){var L,j,ae,he,ye,$e=this;return l(this,function(at){switch(at.label){case 0:if(!(L=this.astJson.functionTable[E]))throw new Error("Unknown function ".concat(E));return j={},this.extra.forEach(function(Ze,Me){j[Me]=Ze}),ae={args:(0,h.encode)(this.astJson.typeTable,"".concat(E,".args"),L.args,M),deviceInfo:{id:C(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:null!==(P=null===(S=document.currentScript)||void 0===S?void 0:S.getAttribute("src"))&&void 0!==P?P:""},extra:j,name:E,requestId:_(16),version:3},[4,new Promise(function(Ze,Me){var Re=new XMLHttpRequest;Re.open("POST","".concat($e.baseUrl,"/").concat(E)),Re.setRequestHeader("Content-Type","application/sdkgen"),Re.onreadystatechange=function(){if(4===Re.readyState)try{var Pe=JSON.parse(Re.responseText);try{w(Pe,"error")&&Pe.error?(Me(Pe.error),$e.errorHook(Pe.error,E,M)):Ze(w(Pe,"result")?Pe.result:null)}catch(Ct){var Ne={message:"".concat(Ct),type:"Fatal"};Me(Ne),$e.errorHook(Ne,E,M)}}catch(Ct){Me(Ne={message:"Falha de conex\xe3o com o servidor",type:"Fatal"}),$e.errorHook(Ne,E,M)}},Re.send(JSON.stringify(ae))}).catch(function(Ze){if($e.errorHook(Ze,E,M),w(Ze,"type")&&w(Ze,"message")&&"string"==typeof Ze.type&&"string"==typeof Ze.message){var Me=$e.errClasses[Ze.type];if(Me){var Re=$e.astJson.errors.find(function(Pe){return Array.isArray(Pe)?Pe[0]===Ze.type:Pe===Ze.type});if(Re)throw Array.isArray(Re)&&w(Ze,"data")?new Me(Ze.message,(0,h.decode)($e.astJson.typeTable,"".concat(Me.name,".data"),Re[1],Ze.data)):new Me(Ze.message,void 0)}throw new $e.errClasses.Fatal("".concat(Ze.type,": ").concat(Ze.message))}throw Ze})];case 1:return he=at.sent(),ye=(0,h.decode)(this.astJson.typeTable,"".concat(E,".ret"),L.ret,he),this.successHook(ye,E,M),[2,ye]}})})},g}();T.SdkgenHttpClient=D},2184:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(h,_,a,C){void 0===C&&(C=a),Object.defineProperty(h,C,{enumerable:!0,get:function(){return _[a]}})}:function(h,_,a,C){void 0===C&&(C=a),h[C]=_[a]}),l=this&&this.__exportStar||function(h,_){for(var a in h)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,h,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(3249),T),l(d(1364),T)},1704:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateCSharpServerSource=void 0;const o=d(3979),l=d(9032);T.generateCSharpServerSource=function(_){let a="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing Sdkgen.Runtime;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const C of _.operations){const w=C.returnType instanceof o.VoidPrimitiveType?"":`<${(0,l.generateTypeName)(C.returnType)}>`;a+=`\n public virtual Task${w} ${(0,l.capitalize)(C.name)}(${["Context ctx",...C.args.map(D=>`${(0,l.generateTypeName)(D.type)} ${(0,l.ident)(D.name)}`)].join(", ")})\n {\n return Task.FromException${w}(new FatalException("Function '${C.name}' not implemented."));\n }\n`}a+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const C of _.operations){a+=`\n case ${JSON.stringify(C.name)}:\n {`;for(const w of C.args)a+=`\n JsonElement ${w.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(w.name)}, out ${w.name}Json_))\n {\n ${w.type instanceof o.OptionalType?`${w.name}Json_ = new JsonElement()`:`throw new FatalException("'${C.name}().args.${w.name}' must be set to a value of type ${w.type.name}.");`}\n }\n ${(0,l.generateTypeName)(w.type)} ${(0,l.ident)(w.name)};\n ${(0,l.decodeType)(w.type,`${w.name}Json_`,`"${C.name}().args.${w.name}"`,(0,l.ident)(w.name)).replace(/\n/gu,"\n ")}`;a+=C.returnType instanceof o.VoidPrimitiveType?`\n await ${(0,l.capitalize)(C.name)}(${["context_",...C.args.map(w=>(0,l.ident)(w.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,l.capitalize)(C.name)}(${["context_",...C.args.map(w=>(0,l.ident)(w.name))].join(", ")});\n ${(0,l.encodeType)(C.returnType,"result_",`"${C.name}().ret"`).replace(/\n/gu,"\n ")}`,a+="\n return;\n }"}a+="\n default:\n {\n throw new FatalException($\"Unknown function '{context_.Name}'.\");\n }\n }\n }\n";for(const C of _.structTypes)a+=(0,l.generateStruct)(C);for(const C of _.enumTypes)a+=(0,l.generateEnum)(C);a+=`\n public string GetAstJson() => @"${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const C of _.errors)a+=`\n public class ${C.name}Exception : SdkgenException\n {\n public ${C.name}Exception(string message, Exception? inner = null) : base("${C.name}", message, inner) { }\n }\n`;return a+="\n}\n",a}},9032:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateEnum=T.generateStruct=T.encodeType=T.decodeType=T.generateTypeName=T.capitalize=T.ident=void 0;const o=d(3979),l=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while"],h=[o.StringPrimitiveType,o.HtmlPrimitiveType,o.CpfPrimitiveType,o.CnpjPrimitiveType,o.BytesPrimitiveType,o.EmailPrimitiveType,o.UrlPrimitiveType,o.UuidPrimitiveType,o.HexPrimitiveType,o.Base64PrimitiveType,o.XmlPrimitiveType,o.StructType,o.ArrayType],_=[o.BigIntPrimitiveType,o.DatePrimitiveType,o.DateTimePrimitiveType,o.FloatPrimitiveType,o.IntPrimitiveType,o.MoneyPrimitiveType,o.UIntPrimitiveType];function a(S){return l.includes(S)?`@${S}`:S}function C(S){return S[0].toUpperCase()+S.slice(1)}function w(S){switch(S.constructor){case o.StringPrimitiveType:return"string";case o.IntPrimitiveType:return"int";case o.UIntPrimitiveType:return"uint";case o.FloatPrimitiveType:return"double";case o.BigIntPrimitiveType:return"BigInteger";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"DateTime";case o.BoolPrimitiveType:return"bool";case o.BytesPrimitiveType:return"byte[]";case o.MoneyPrimitiveType:return"decimal";case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"string";case o.VoidPrimitiveType:return"void";case o.JsonPrimitiveType:return"JsonElement";case o.OptionalType:return`${w(S.base)}?`;case o.ArrayType:return`List<${w(S.base)}>`;case o.StructType:case o.EnumType:return S.name;case o.TypeReference:return w(S.type);default:throw new Error(`BUG: generateTypeName with ${S.constructor.name}`)}}function D(S,P,L,j,ae=1,he=!0){switch(S.constructor){case o.IntPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetInt32(out ${j}))\n {\n throw new FatalException($"'{${L}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.UIntPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetUInt32(out ${j}))\n {\n throw new FatalException($"'{${L}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.MoneyPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetDecimal(out ${j}) || ${j} % 1 != 0)\n {\n throw new FatalException($"'{${L}}' must be an integer amount of cents.");\n }\n ${j} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case o.FloatPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.Number || !${P}.TryGetDouble(out ${j}))\n {\n throw new FatalException($"'{${L}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.BigIntPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${P}.GetString(), out ${j}))\n {\n throw new FatalException($"'{${L}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.StringPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${L}}' must be a string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.HtmlPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${L}}' must be a valid HTML string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.CpfPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${L}}' must be a valid CPF string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.CnpjPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${L}}' must be a valid CNPJ string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.EmailPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${L}}' must be a valid email.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.UrlPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${L}}' must be a valid URL string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.UuidPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${L}}' must be a valid UUID.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.HexPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${L}}' must be a valid hex string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.Base64PrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${L}}' must be a base64 string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.XmlPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${L}}' must be a XML string.");\n }\n ${j} = ${P}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case o.BoolPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.True && ${P}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${L}}' must be either true or false.");\n }\n ${j} = ${P}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case o.BytesPrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${L}}' must be a string.");\n }\n try\n {\n ${j} = Convert.FromBase64String(${P}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${L}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.TypeReference:return D(S.type,P,L,j,ae);case o.OptionalType:if(_.includes(S.base.constructor)){const ye=`${j.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${P}.ValueKind == JsonValueKind.Null || ${P}.ValueKind == JsonValueKind.Undefined)\n {\n ${j} = null;\n }\n else\n {\n ${w(S.base)} ${ye};\n ${D(S.base,P,L,ye,ae,!1).replace(/\n/gu,"\n ")}\n ${j} = ${ye};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${P}.ValueKind == JsonValueKind.Null || ${P}.ValueKind == JsonValueKind.Undefined)\n {\n ${j} = null;\n }\n else\n {\n ${D(S.base,P,L,j,ae,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case o.EnumType:case o.StructType:return`${j} = Decode${S.name}(${P}, ${L});`;case o.JsonPrimitiveType:return he?`\n if (${P}.ValueKind == JsonValueKind.Null || ${P}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${L}}' can't be null.");\n }\n ${j} = ${P};\n `.replace(/\n {16}/gu,"\n").trim():`${j} = ${P};`;case o.DateTimePrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${P}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${j}) || DateTime.TryParseExact(${P}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${j})))\n {\n throw new FatalException($"'{${L}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.DatePrimitiveType:return`\n if (${P}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${P}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${j})))\n {\n throw new FatalException($"'{${L}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case o.ArrayType:return`\n if (${P}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${L}}' must be a date.");\n }\n ${j} = new ${w(S)}();\n for (var i${ae} = 0; i${ae} < ${P}.GetArrayLength(); ++i${ae})\n {\n ${w(S.base)} element${ae};\n ${D(S.base,`${P}[i${ae}]`,`$"{${L}}[{i${ae}}]"`,`element${ae}`,ae+1).replace(/\n/gu,"\n ")}\n ${j}.Add(element${ae});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${S.constructor.name}`)}}function g(S,P,L,j=1){switch(S.constructor){case o.StringPrimitiveType:return`resultWriter_.WriteStringValue(${P});`;case o.FloatPrimitiveType:case o.UIntPrimitiveType:case o.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${P});`;case o.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${P} * 100));`;case o.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${P}.ToString());`;case o.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${P});`;case o.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${P}));`;case o.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${P}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case o.DatePrimitiveType:return`resultWriter_.WriteStringValue(${P}.ToString("yyyy-MM-dd"));`;case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.Base64PrimitiveType:case o.HexPrimitiveType:case o.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${P});`;case o.OptionalType:{let ae=S.base;for(;ae instanceof o.TypeReference;)ae=ae.type;return`\n if (${P} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${g(ae,h.includes(ae.constructor)?P:`${P}.Value`,L,j).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case o.TypeReference:return g(S.type,P,L,j);case o.EnumType:case o.StructType:return`Encode${S.name}(${P}, resultWriter_, ${L});`;case o.JsonPrimitiveType:return`${P}.WriteTo(resultWriter_);`;case o.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${j} = 0; i${j} < ${P}.Count; ++i${j})\n {\n ${g(S.base,`${P}[i${j}]`,`$"{${L}}[{i${j}}]"`,j+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${S.constructor.name}`)}}T.ident=a,T.capitalize=C,T.generateTypeName=w,T.decodeType=D,T.encodeType=g,T.generateStruct=function(S){return`\n public class ${S.name}\n {${S.fields.map(P=>`\n public ${w(P.type)} ${C(P.name)};`).join("")}\n public ${S.name}(${S.fields.map(P=>`${w(P.type)} ${a(P.name)}`).join(", ")})\n {${S.fields.map(P=>`\n ${C(P.name)} = ${a(P.name)};`).join("")}\n }\n }\n\n ${S.name} Decode${S.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${S.fields.map(P=>` JsonElement ${P.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(P.name)}, out ${P.name}Json_))\n {\n ${P.type instanceof o.OptionalType?`${P.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${P.name}' must be set to a value of type ${P.type.name}.");`}\n }\n ${w(P.type)} ${a(P.name)};\n ${D(P.type,`${P.name}Json_`,`$"{path_}.${P.name}"`,a(P.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${S.name}(${S.fields.map(P=>a(P.name)).join(", ")});\n }\n\n void Encode${S.name}(${S.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${S.fields.map(P=>`resultWriter_.WritePropertyName(${JSON.stringify(P.name)});\n ${g(P.type,`obj_.${C(P.name)}`,`$"{path_}.${P.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},T.generateEnum=function(S){return`\n public enum ${S.name}\n {${S.values.map(({value:P})=>`\n ${C(P)}`).join(",\n ")}\n }\n\n ${S.name} Decode${S.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{path_}' must be a string.");\n }\n var value = json_.GetString();${S.values.map(({value:P})=>`\n if (value == "${P}")\n {\n return ${S.name}.${C(P)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${S.values.map(({value:P})=>`'${P}'`).join(", ")}).");\n }\n\n void Encode${S.name}(${S.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${S.values.map(({value:P})=>`\n if (obj_ == ${S.name}.${C(P)})\n {\n resultWriter_.WriteStringValue("${P}");\n }`).join("")}\n }\n`}},4906:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(h,_,a,C){void 0===C&&(C=a),Object.defineProperty(h,C,{enumerable:!0,get:function(){return _[a]}})}:function(h,_,a,C){void 0===C&&(C=a),h[C]=_[a]}),l=this&&this.__exportStar||function(h,_){for(var a in h)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,h,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(1704),T)},8720:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateDartClientSource=void 0;const o=d(3979),l=d(1526);T.generateDartClientSource=function(_){let a="";a+="import 'dart:typed_data';\n\nimport 'package:flutter/widgets.dart';\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n\n";for(const C of _.enumTypes)a+=(0,l.generateEnum)(C),a+="\n";for(const C of _.structTypes)a+=(0,l.generateClass)(C),a+="\n";for(const C of _.errors)a+=(0,l.generateErrorClass)(C),a+="\n";a+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl, [BuildContext? context]) : super(baseUrl, context, _typeTable, _fnTable, _errTable);\n${_.operations.filter(C=>C.annotations.every(w=>!(w instanceof o.HiddenAnnotation))).map(C=>`\n ${C.returnType instanceof o.VoidPrimitiveType?"Future<void> ":`Future<${(0,l.generateTypeName)(C.returnType)}> `}${C.name}(${0===C.args.length?"":`{${C.args.map(w=>`${w.type instanceof o.OptionalType?"":"required "}${(0,l.generateTypeName)(w.type)} ${(0,l.mangle)(w.name)}`).join(", ")}}`}) async { ${C.returnType instanceof o.VoidPrimitiveType?"":"return "}${(0,l.cast)(`await makeRequest('${C.name}', {${C.args.map(w=>`'${w.name}': ${(0,l.mangle)(w.name)}`).join(", ")}})`,C.returnType)}; }`).join("")}\n}\n\n`,a+="var _typeTable = {\n";for(const C of _.structTypes){a+=` '${C.name}': StructTypeDescription(\n`,a+=` ${C.name},\n`,a+=" {\n";for(const w of C.fields)a+=` '${w.name}': '${w.type.name}',\n`;a+=" },\n",a+=` (Map fields) => ${C.name}(\n`;for(const w of C.fields)a+=` ${(0,l.mangle)(w.name)}: ${(0,l.cast)(`fields['${w.name}']`,w.type)},\n`;a+=" ),\n",a+=` (${C.name} obj) => ({\n`;for(const w of C.fields)a+=` '${w.name}': obj.${(0,l.mangle)(w.name)},\n`;a+=" }),\n",a+=" ),\n"}for(const C of _.enumTypes)a+=` '${C.name}': EnumTypeDescription(${C.name}, ${C.name}.values, [\n ${C.values.map(w=>`'${w.value}'`).join(",\n ")}\n ]),\n`;a+="};\n\n",a+="var _fnTable = {\n";for(const C of _.operations){a+=` '${C.name}': FunctionDescription('${C.returnType.name}', {\n`;for(const w of C.args)a+=` '${w.name}': '${w.type.name}',\n`;a+=" }),\n"}a+="};\n\n",a+="var _errTable = {\n";for(const C of _.errors)a+=` '${C.name}': SdkgenErrorDescription('${C.dataType.name}', (msg, data) => ${C.name}(msg${C.dataType instanceof o.VoidPrimitiveType?"":", data"})),\n`;return a+="};\n",a}},1526:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateClass=T.cast=T.generateErrorClass=T.generateTypeName=T.generateEnum=T.mangle=void 0;const o=d(3979);function l(S){return["abstract","as","assert","async","await","bool","break","case","catch","class","const","continue","covariant","default","deferred","do","double","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","int","interface","is","library","mixin","new","null","on","operator","part","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"].includes(S)?`$${S}`:S}function _(S){switch(S.constructor){case o.StringPrimitiveType:return"String";case o.IntPrimitiveType:case o.UIntPrimitiveType:return"int";case o.FloatPrimitiveType:return"double";case o.BigIntPrimitiveType:return"BigInt";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"DateTime";case o.BoolPrimitiveType:return"bool";case o.BytesPrimitiveType:return"Uint8List";case o.MoneyPrimitiveType:return"int";case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"String";case o.VoidPrimitiveType:return"void";case o.JsonPrimitiveType:return"dynamic";case o.OptionalType:return`${_(S.base)}?`;case o.ArrayType:return`List<${_(S.base)}>`;case o.StructType:case o.EnumType:return S.name;case o.TypeReference:return _(S.type);default:throw new Error(`BUG: generateTypeName with ${S.constructor.name}`)}}T.mangle=l,T.generateEnum=function(S){return`enum ${S.name} {\n ${S.values.map(P=>P.value).join(",\n ")}\n}\n`},T.generateTypeName=_,T.generateErrorClass=function(S){if(S.dataType instanceof o.VoidPrimitiveType)return`class ${S.name} extends SdkgenError {\n ${S.name}(String msg) : super(msg);\n}\n`;const P=_(S.dataType);return`class ${S.name} extends SdkgenErrorWithData<${P}> {\n ${S.name}(String msg, ${P} data) : super(msg, data);\n}\n`},T.cast=function C(S,P){return P instanceof o.OptionalType?`${S} == null ? null : ${C(S,P.base)}`:P instanceof o.ArrayType?`(${S} as List).map((e) => ${C("e",P.base)}).toList()`:P instanceof o.VoidPrimitiveType?S:P instanceof o.FloatPrimitiveType?`(${S} as num).toDouble()`:P instanceof o.MoneyPrimitiveType?`${S} as int`:`${S} as ${_(P)}`},T.generateClass=function(S){return`class ${S.name} {\n ${S.fields.map(P=>`final ${_(P.type)} ${l(P.name)};`).join("\n ")}\n\n${function(S){let P=` ${S.name}({\n`;for(const L of S.fields)P+=L.type instanceof o.OptionalType?" ":" required ",P+=`this.${l(L.name)},\n`;return P+=" });\n",P}(S)}\n${function(S){let P=" bool operator ==(other){\n";return P+=" if (identical(this, other)) return true;\n",P+=` return ${[`other is ${S.name}`,...S.fields.map(L=>`${l(L.name)} == other.${l(L.name)}`)].join(" && ")};\n`,P+=" }\n",P}(S)}\n${function(S){return` @override\n int get hashCode => hashList([${S.fields.map(P=>l(P.name)).join(", ")}]);\n`}(S)}\n${function(S){return` String toString() {\n return '${S.name} { ${S.fields.map(P=>`${P.name}: $${l(P.name).startsWith("$")?`{${l(P.name)}}`:l(P.name)}`).join(", ")} }';\n }\n`}(S)}}\n`}},6988:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(h,_,a,C){void 0===C&&(C=a),Object.defineProperty(h,C,{enumerable:!0,get:function(){return _[a]}})}:function(h,_,a,C){void 0===C&&(C=a),h[C]=_[a]}),l=this&&this.__exportStar||function(h,_){for(var a in h)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,h,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(8720),T)},5672:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateAndroidClientSource=void 0;const o=d(3979),l=d(5057);T.generateAndroidClientSource=function(_,a){let C='@file:Suppress("UNNECESSARY_SAFE_CALL")\n\nimport android.os.Parcelable\nimport kotlinx.android.parcel.Parcelize\nimport android.content.Context\nimport android.util.Base64\nimport com.google.gson.*\nimport com.google.gson.reflect.TypeToken\nimport com.google.gson.annotations.JsonAdapter\nimport com.google.gson.annotations.SerializedName\nimport io.sdkgen.runtime.SdkgenHttpClient\nimport kotlinx.coroutines.*\nimport kotlinx.coroutines.Dispatchers.IO\nimport java.util.*\n\ninline fun <reified T> Gson.fromJson(json: String) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\ninline fun <reified T> Gson.fromJson(json: JsonElement) =\n fromJson<T>(json, object : TypeToken<T>() {}.type)\n\n@Suppress("DeferredIsResult", "unused")\nclass ApiClient(\n baseUrl: String,\n val applicationContext: Context,\n defaultTimeoutMillis: Long = 10000L\n) : SdkgenHttpClient(baseUrl, applicationContext, defaultTimeoutMillis) {\n\n private val gson = GsonBuilder()\n .registerTypeAdapter(object : TypeToken<ByteArray>() {}.type, ByteArrayDeserializer())\n .create()\n\n';for(const g of _.enumTypes)C+=` ${(0,l.generateEnum)(g)}`,C+="\n";C+=" open class Error(val message: String? = null)\n",C+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const g of _.structTypes)C+=` ${(0,l.generateClass)(g)}\n`;const w=[],D=new o.ErrorNode("Connection",new o.VoidPrimitiveType);w.push(D.name),C+=` ${(0,l.generateErrorClass)(D)}`;for(const g of _.errors)C+=` ${(0,l.generateErrorClass)(g)}`,w.push(g.name);return w.length>0&&(C+=`\n enum class ErrorType {\n ${w.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${w.map(g=>`${g} -> ApiClient.${g}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),C+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>{let E="";const M=[];M.push("timeoutMillis: Long? = null"),a&&M.push(`callback: ((response: Response<${(0,l.generateKotlinTypeName)(g.returnType)}>) -> Unit)? = null`);const S=g.args.map(P=>`${(0,l.mangle)(P.name)}: ${(0,l.generateKotlinTypeName)(P.type)}`).concat(M);return E+=` fun ${(0,l.mangle)(g.name)}(\n ${S.join(",\n ")}\n ): Deferred<Response<out ${(0,l.generateKotlinTypeName)(g.returnType)}>> = sdkgenIOScope.async {\n`,g.args.length>0?(E+=" val bodyArgs = JsonObject().apply {\n",E+=g.args.map(P=>` ${(0,l.generateJsonAddRepresentation)(P.type,P.name)}`).join("\n"),E+="\n }\n"):E+=" val bodyArgs: JsonObject? = null",E+="\n",E+=` val call = makeRequest("${g.name}", bodyArgs, timeoutMillis)\n`,E+=` val response: Response<${(0,l.generateKotlinTypeName)(g.returnType)}> = handleCallResponse(call)\n`,a&&(E+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),E+=" return@async response\n",E+=" }\n",E}).join("\n"),C+='\n private inline fun <reified T> handleCallResponse(callResponse: InternalResponse): Response<T> {\n try {\n val data = if (callResponse.result?.get("result") != null)\n gson.fromJson<T>(callResponse.result?.get("result")!!)\n else null\n\n val error = if (callResponse.error != null) {\n val errorType = try {\n ErrorType.valueOf(callResponse.error?.get("type")?.asString ?: "")\n } catch (e: Exception) {\n ErrorType.Fatal\n }\n\n gson.fromJson(callResponse.error, errorType.type())\n } else null\n\n return Response(error, data, callResponse.stats)\n } catch(e: Exception) {\n return Response(Fatal(applicationContext.getString(io.sdkgen.runtime.R.string.sdkgen_error_serialization)), null, callResponse.stats)\n }\n }\n',C+="}\n",C}},5057:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateErrorClass=T.generateClass=T.getAnnotation=T.generateEnum=T.generateJsonAddRepresentation=T.mangle=T.generateKotlinTypeName=void 0;const o=d(3979);function l(g){switch(g.constructor){case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:return"Int";case o.FloatPrimitiveType:return"Double";case o.BigIntPrimitiveType:return"BigInt";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"Calendar";case o.BoolPrimitiveType:return"Boolean";case o.BytesPrimitiveType:return"ByteArray";case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"String";case o.VoidPrimitiveType:return"Unit";case o.JsonPrimitiveType:return"JsonElement";case o.OptionalType:return`${l(g.base)}?`;case o.ArrayType:return`ArrayList<${l(g.base)}>`;case o.StructType:case o.EnumType:return g.name;case o.TypeReference:return l(g.type);default:throw new Error(`BUG: generateKotlinTypeName with ${g.constructor.name}`)}}function h(g){return["in","out","as","break","class","continue","do","else","false","for","fun","if","in","interface","is","null","object","package","return","super","this","throw","true","try","typealias","val","var","when","while","by","catch","constructor","delegate","dynamic","field","file","finally","get","import","init","param","property","receiver","set","setparam","where","actual","abstract","annotation","companion","const","crossinline","data","enum","expect","external","final","infix","inline","inner","internal","lateinit","noinline","open","operator","out","override","private","protected","public","reified","sealed","suspend","tailrec","vararg","Double","Float","Long","Int","Short","Byte"].includes(g)?`_${g}`:g}function C(g,E){let M="";switch(E&&E!==h(E)&&(M+=` @SerializedName("${E}")\n`),g.constructor){case o.DatePrimitiveType:M+=" @JsonAdapter(DateAdapter::class)\n";break;case o.DateTimePrimitiveType:M+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case o.ArrayType:case o.OptionalType:M+=C(g.base)}return M}T.generateKotlinTypeName=l,T.mangle=h,T.generateJsonAddRepresentation=function _(g,E){switch(g.constructor){case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:case o.FloatPrimitiveType:case o.BoolPrimitiveType:return`addProperty("${E}", ${h(E)})`;case o.OptionalType:return _(g.base,E);case o.DatePrimitiveType:return`addProperty("${E}", ${h(E)}?.let { DateAdapter.sdf.format(it.time)}) `;case o.DateTimePrimitiveType:return`addProperty("${E}", ${h(E)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case o.ArrayType:case o.StructType:case o.EnumType:case o.TypeReference:case o.JsonPrimitiveType:return`add("${E}", gson.toJsonTree(${h(E)}))`;case o.VoidPrimitiveType:return"";case o.BytesPrimitiveType:return`addProperty("${E}", Base64.encodeToString(${h(E)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${g.constructor.name}`)}},T.generateEnum=function(g){let E="@Parcelize \n";return E+=` enum class ${g.name} : Parcelable { ${g.values.map(M=>h(M.value)).join(", ")} }\n`,E},T.getAnnotation=C,T.generateClass=function(g){let E="@Parcelize\n";return E+=` data class ${g.name}(\n${g.fields.map(M=>{let S=C(M.type,M.name);return S+=` var ${h(M.name)}: ${l(M.type)}${M.type.constructor===o.OptionalType?" = null":""}`,S}).join(",\n")}\n ) : Parcelable\n`,E},T.generateErrorClass=function(g){return`class ${g.name}(message: String) : Error(message)\n`}},2768:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(h,_,a,C){void 0===C&&(C=a),Object.defineProperty(h,C,{enumerable:!0,get:function(){return _[a]}})}:function(h,_,a,C){void 0===C&&(C=a),h[C]=_[a]}),l=this&&this.__exportStar||function(h,_){for(var a in h)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,h,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(5672),T)},2253:function(Le,T,d){"use strict";var o=this&&this.__rest||function(le,ne){var fe={};for(var Oe in le)Object.prototype.hasOwnProperty.call(le,Oe)&&ne.indexOf(Oe)<0&&(fe[Oe]=le[Oe]);if(null!=le&&"function"==typeof Object.getOwnPropertySymbols){var rt=0;for(Oe=Object.getOwnPropertySymbols(le);rt<Oe.length;rt++)ne.indexOf(Oe[rt])<0&&Object.prototype.propertyIsEnumerable.call(le,Oe[rt])&&(fe[Oe[rt]]=le[Oe[rt]])}return fe};Object.defineProperty(T,"__esModule",{value:!0}),T.AstRoot=T.FunctionOperation=T.TypeDefinition=T.StructType=T.TypeReference=T.Spread=T.Field=T.EnumType=T.EnumValue=T.ArrayType=T.OptionalType=T.JsonPrimitiveType=T.XmlPrimitiveType=T.Base64PrimitiveType=T.HtmlPrimitiveType=T.HexPrimitiveType=T.UuidPrimitiveType=T.UrlPrimitiveType=T.EmailPrimitiveType=T.CnpjPrimitiveType=T.CpfPrimitiveType=T.MoneyPrimitiveType=T.VoidPrimitiveType=T.BytesPrimitiveType=T.BoolPrimitiveType=T.DateTimePrimitiveType=T.DatePrimitiveType=T.BigIntPrimitiveType=T.FloatPrimitiveType=T.UIntPrimitiveType=T.IntPrimitiveType=T.StringPrimitiveType=T.PrimitiveType=T.HiddenAnnotation=T.RestAnnotation=T.ArgDescriptionAnnotation=T.ThrowsAnnotation=T.DescriptionAnnotation=T.Annotation=T.ErrorNode=T.Type=T.AstNode=void 0;const l=d(7279);class h{constructor(){this.location=new l.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(ne){return this.location=ne.location,this}atLocation(ne){return this.location=ne,this}}T.AstNode=h;class _ extends h{toJSON(){const ne=Object.assign({},this);return o(ne,["name"])}}T.Type=_,T.ErrorNode=class extends h{constructor(ne,fe){super(),this.name=ne,this.dataType=fe}};class C extends h{}T.Annotation=C,T.DescriptionAnnotation=class extends C{constructor(ne){super(),this.text=ne}},T.ThrowsAnnotation=class extends C{constructor(ne){super(),this.error=ne}},T.ArgDescriptionAnnotation=class extends C{constructor(ne,fe){super(),this.argName=ne,this.text=fe}},T.RestAnnotation=class extends C{constructor(ne,fe,Oe,rt,wt,Je){super(),this.method=ne,this.path=fe,this.pathVariables=Oe,this.queryVariables=rt,this.headers=wt,this.bodyVariable=Je}},T.HiddenAnnotation=class extends C{};class S extends _{}T.PrimitiveType=S,T.StringPrimitiveType=class extends S{constructor(){super(...arguments),this.name="string"}},T.IntPrimitiveType=class extends S{constructor(){super(...arguments),this.name="int"}},T.UIntPrimitiveType=class extends S{constructor(){super(...arguments),this.name="uint"}},T.FloatPrimitiveType=class extends S{constructor(){super(...arguments),this.name="float"}},T.BigIntPrimitiveType=class extends S{constructor(){super(...arguments),this.name="bigint"}},T.DatePrimitiveType=class extends S{constructor(){super(...arguments),this.name="date"}},T.DateTimePrimitiveType=class extends S{constructor(){super(...arguments),this.name="datetime"}},T.BoolPrimitiveType=class extends S{constructor(){super(...arguments),this.name="bool"}},T.BytesPrimitiveType=class extends S{constructor(){super(...arguments),this.name="bytes"}},T.VoidPrimitiveType=class extends S{constructor(){super(...arguments),this.name="void"}},T.MoneyPrimitiveType=class extends S{constructor(){super(...arguments),this.name="money"}},T.CpfPrimitiveType=class extends S{constructor(){super(...arguments),this.name="cpf"}},T.CnpjPrimitiveType=class extends S{constructor(){super(...arguments),this.name="cnpj"}},T.EmailPrimitiveType=class extends S{constructor(){super(...arguments),this.name="email"}},T.UrlPrimitiveType=class extends S{constructor(){super(...arguments),this.name="url"}},T.UuidPrimitiveType=class extends S{constructor(){super(...arguments),this.name="uuid"}},T.HexPrimitiveType=class extends S{constructor(){super(...arguments),this.name="hex"}},T.HtmlPrimitiveType=class extends S{constructor(){super(...arguments),this.name="html"}},T.Base64PrimitiveType=class extends S{constructor(){super(...arguments),this.name="base64"}},T.XmlPrimitiveType=class extends S{constructor(){super(...arguments),this.name="xml"}},T.JsonPrimitiveType=class extends S{constructor(){super(...arguments),this.name="json"}},T.OptionalType=class extends _{constructor(ne){super(),this.base=ne}get name(){return`${this.base.name}?`}},T.ArrayType=class extends _{constructor(ne){super(),this.base=ne}get name(){return`${this.base.name}[]`}},T.EnumValue=class extends h{constructor(ne){super(),this.value=ne,this.annotations=[]}},T.EnumType=class extends _{constructor(ne){super(),this.values=ne}},T.Field=class extends h{constructor(ne,fe,Oe=!1){super(),this.name=ne,this.type=fe,this.secret=Oe,this.annotations=[]}},T.Spread=class extends h{constructor(ne){super(),this.typeReference=ne}},T.TypeReference=class extends _{constructor(ne){super(),this.name=ne}},T.StructType=class extends _{constructor(ne){super(),this.fieldsAndSpreads=ne,this.fields=[]}},T.TypeDefinition=class extends h{constructor(ne,fe){super(),this.name=ne,this.type=fe,this.annotations=[]}},T.FunctionOperation=class extends h{constructor(ne,fe,Oe){super(),this.name=ne,this.fieldsAndSpreads=fe,this.returnType=Oe,this.annotations=[],this.args=[]}},T.AstRoot=class{constructor(ne=[],fe=[],Oe=[]){this.typeDefinitions=ne,this.operations=fe,this.errors=Oe,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},806:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.compatibilityIssues=void 0;const o=d(2253);function l(a,C,w,D){if(w instanceof o.TypeReference)l(a,C,w.type,D);else if(D instanceof o.TypeReference)l(a,C,w,D.type);else if(w instanceof o.OptionalType||!(D instanceof o.OptionalType))if(w instanceof o.OptionalType&&D instanceof o.OptionalType)l(a,C,w.base,D.base);else{if(w instanceof o.OptionalType&&!(D instanceof o.OptionalType))return C.push(`${a} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void l(a,C,w.base,D);if(w instanceof o.ArrayType&&D instanceof o.ArrayType)l(a,C,w.base,D.base);else if(w instanceof o.StructType&&D instanceof o.StructType)for(const g of D.fields){const E=w.fields.find(M=>M.name===g.name);if(E)l(`${a}.${E.name}`,C,E.type,g.type);else{if(g.type instanceof o.OptionalType)continue;C.push(`${a}.${g.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(w instanceof o.UIntPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.IntPrimitiveType&&D instanceof o.FloatPrimitiveType||w instanceof o.MoneyPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.MoneyPrimitiveType&&D instanceof o.UIntPrimitiveType||w instanceof o.UIntPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.IntPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.MoneyPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.UuidPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.XmlPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.DatePrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.DateTimePrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.CpfPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.CnpjPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.HexPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.HtmlPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.Base64PrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.BytesPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.BytesPrimitiveType&&D instanceof o.Base64PrimitiveType||w instanceof o.UrlPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.EmailPrimitiveType&&D instanceof o.StringPrimitiveType||w instanceof o.EnumType&&D instanceof o.StringPrimitiveType)){if(w instanceof o.EnumType&&D instanceof o.EnumType){for(const g of w.values)D.values.map(E=>E.value).includes(g.value)||C.push(`The enum at ${a} used to accept the value "${g.value}" that doesn't exist now. Clients that send it will fail.`);return}w.constructor.name!==D.constructor.name&&C.push(`${a} was ${w.name} and now it is ${D.name}. They are not compatible.`)}}else l(a,C,w,D.base)}function h(a,C,w,D){if(w instanceof o.TypeReference)h(a,C,w.type,D);else if(D instanceof o.TypeReference)h(a,C,w,D.type);else if(!(w instanceof o.OptionalType)||D instanceof o.OptionalType)if(w instanceof o.OptionalType&&D instanceof o.OptionalType)h(a,C,w.base,D.base);else{if(!(w instanceof o.OptionalType)&&D instanceof o.OptionalType)return C.push(`${a} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void h(a,C,w,D.base);if(w instanceof o.ArrayType&&D instanceof o.ArrayType)h(a,C,w.base,D.base);else if(w instanceof o.StructType&&D instanceof o.StructType)for(const g of w.fields){const E=D.fields.find(M=>M.name===g.name);if(E)h(`${a}.${g.name}`,C,g.type,E.type);else{if(g.type instanceof o.OptionalType)continue;C.push(`${a}.${g.name} used to exist with type ${g.type.name}, but it's now missing. Add it back.`)}}else if(!(w instanceof o.IntPrimitiveType&&D instanceof o.UIntPrimitiveType||w instanceof o.FloatPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.IntPrimitiveType&&D instanceof o.MoneyPrimitiveType||w instanceof o.UIntPrimitiveType&&D instanceof o.MoneyPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.UIntPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.IntPrimitiveType||w instanceof o.BigIntPrimitiveType&&D instanceof o.MoneyPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.BigIntPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.UuidPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.XmlPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.DatePrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.DateTimePrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.CpfPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.CnpjPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.HexPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.HtmlPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.Base64PrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.BytesPrimitiveType||w instanceof o.Base64PrimitiveType&&D instanceof o.BytesPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.UrlPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.EmailPrimitiveType||w instanceof o.StringPrimitiveType&&D instanceof o.EnumType)){if(w instanceof o.EnumType&&D instanceof o.EnumType){for(const g of D.values)w.values.map(E=>E.value).includes(g.value)||C.push(`The enum at ${a} now has the value "${g.value}" that didn't exist before. Client will crash if it receives it`);return}w.constructor.name!==D.constructor.name&&C.push(`${a} was ${w.name} and now it is ${D.name}. They are not compatible.`)}}else h(a,C,w.base,D)}T.compatibilityIssues=function(a,C){const w=[];for(const D of a.operations){const g=C.operations.find(E=>E.name===D.name);if(g){h(`${D.name}.ret`,w,D.returnType,g.returnType);for(const E of g.args){const M=D.args.find(S=>S.name===E.name);if(M)l(`${D.name}.args.${M.name}`,w,M.type,E.type);else{if(E.type instanceof o.OptionalType)continue;w.push(`${D.name}.args.${E.name} didn't exist before and isn't optional. Make it optional.`)}}}else w.push(`function ${D.name} used to exist, but it's now missing. Add it back.`)}for(const D of a.errors){const g=C.errors.find(E=>E.name===D.name);!g||h(`${D.name}.data`,w,D.dataType,g.dataType)}return w}},3979:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(_,a,C,w){void 0===w&&(w=C),Object.defineProperty(_,w,{enumerable:!0,get:function(){return a[C]}})}:function(_,a,C,w){void 0===w&&(w=C),_[w]=a[C]}),l=this&&this.__exportStar||function(_,a){for(var C in _)"default"!==C&&!Object.prototype.hasOwnProperty.call(a,C)&&o(a,_,C)};Object.defineProperty(T,"__esModule",{value:!0}),T.jsonToAst=T.astToJson=void 0,l(d(2253),T),l(d(806),T);var h=d(3536);Object.defineProperty(T,"astToJson",{enumerable:!0,get:function(){return h.astToJson}}),Object.defineProperty(T,"jsonToAst",{enumerable:!0,get:function(){return h.jsonToAst}}),l(d(2814),T),l(d(6790),T),l(d(7279),T)},3536:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.jsonToAst=T.astToJson=void 0;const o=d(2253),l=d(5140),h=d(1321);function _(D){if(D instanceof o.DescriptionAnnotation)return{type:"description",value:D.text};if(D instanceof o.ThrowsAnnotation)return{type:"throws",value:D.error};if(D instanceof o.RestAnnotation)return{type:"rest",value:{bodyVariable:D.bodyVariable,headers:[...D.headers.entries()].sort(([g],[E])=>g.localeCompare(E)),method:D.method,path:D.path,pathVariables:[...D.pathVariables].sort((g,E)=>g.localeCompare(E)),queryVariables:[...D.queryVariables].sort((g,E)=>g.localeCompare(E))}};if(D instanceof o.HiddenAnnotation)return{type:"hidden",value:null};throw new Error(`BUG: annotationToJson with ${D.constructor.name}`)}function a(D){switch(D.type){case"description":return new o.DescriptionAnnotation(D.value);case"throws":return new o.ThrowsAnnotation(D.value);case"rest":{const{method:g,path:E,pathVariables:M,queryVariables:S,headers:P,bodyVariable:L}=D.value;return new o.RestAnnotation(g,E,M,S,new Map(P),L)}case"hidden":return new o.HiddenAnnotation;default:throw new Error(`BUG: annotationFromJson with ${D.type}`)}}T.astToJson=function(D){var g,E,M;const S={},P={};function L(he){return he instanceof o.ArrayType?`${L(he.base)}[]`:he instanceof o.OptionalType?`${L(he.base)}?`:he.name}for(const{name:he,fields:ye}of D.structTypes){P[he]={};const $e=P[he];for(const at of ye){$e[at.name]=L(at.type);for(const Ze of at.annotations)if(Ze instanceof o.DescriptionAnnotation){const Me=`type.${he}.${at.name}`;null!==(g=S[Me])&&void 0!==g||(S[Me]=[]),S[Me].push(_(Ze))}}}for(const{name:he,values:ye}of D.enumTypes)P[he]=ye.map($e=>$e.value);for(const{name:he,type:ye}of D.typeDefinitions)ye instanceof o.StructType||ye instanceof o.EnumType||(P[he]=L(ye));const j={};for(const he of D.operations){const ye={};for(const $e of he.args){ye[$e.name]=L($e.type);for(const at of $e.annotations)if(at instanceof o.DescriptionAnnotation){const Ze=`fn.${he.name}.${$e.name}`;null!==(E=S[Ze])&&void 0!==E||(S[Ze]=[]),S[Ze].push(_(at))}}j[he.name]={args:ye,ret:L(he.returnType)};for(const $e of he.annotations){const at=`fn.${he.name}`;null!==(M=S[at])&&void 0!==M||(S[at]=[]),S[at].push(_($e))}}return{annotations:S,errors:D.errors.map(he=>he.dataType instanceof o.VoidPrimitiveType?he.name:[he.name,he.dataType.name]),functionTable:j,typeTable:P}},T.jsonToAst=function(D){var g;const E=[],M=[];function S(j,ae){var he;if("string"==typeof j){const $e=h.primitiveToAstClass.get(j);return $e?new $e:j.endsWith("?")?new o.OptionalType(S(j.slice(0,j.length-1))):j.endsWith("[]")?new o.ArrayType(S(j.slice(0,j.length-2))):new o.TypeReference(j)}if(Array.isArray(j))return new o.EnumType(j.map($e=>new o.EnumValue($e)));const ye=[];for(const $e of Object.keys(j)){const at=new o.Field($e,S(j[$e]));if(ae){const Ze=`type.${ae}.${$e}`;for(const Me of null!==(he=D.annotations[Ze])&&void 0!==he?he:[])at.annotations.push(a(Me))}ye.push(at)}return new o.StructType(ye)}for(const[j,ae]of Object.entries(D.typeTable)){const he=S(ae,j);M.push(new o.TypeDefinition(j,he))}for(const[j,ae]of Object.entries(D.functionTable)){const he=Object.keys(ae.args).map(at=>{var Ze;const Me=new o.Field(at,S(ae.args[at])),Re=`fn.${j}.${at}`;for(const Pe of null!==(Ze=D.annotations[Re])&&void 0!==Ze?Ze:[])Me.annotations.push(a(Pe));return Me}),ye=new o.FunctionOperation(j,he,S(ae.ret)),$e=`fn.${j}`;for(const at of null!==(g=D.annotations[$e])&&void 0!==g?g:[])ye.annotations.push(a(at));E.push(ye)}const P=D.errors.map(j=>Array.isArray(j)?new o.ErrorNode(j[0],S(j[1])):new o.ErrorNode(j,new o.VoidPrimitiveType)),L=new o.AstRoot(M,E,P);return(0,l.analyse)(L),L}},2814:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.Lexer=T.LexerError=void 0;const o=d(7279);class l extends Error{}T.LexerError=l;class h{constructor(a,C="-"){this.source=a,this.filename=C,this.startPos=0,this.startLine=1,this.startColumn=1,this.pos=0,this.line=1,this.column=1}currentChar(){return this.source[this.pos]||"\0"}nextChar(){return this.column++,this.source[++this.pos]||"\0"}nextToken(){this.startPos=this.pos,this.startLine=this.line,this.startColumn=this.column;let a=null;switch(this.currentChar()){case"\0":return null;case" ":case"\r":case"\t":return this.nextChar(),this.nextToken();case"\n":return this.nextChar(),this.column=1,this.line++,this.nextToken();case"/":switch(this.nextChar()){case"/":for(;;)switch(this.nextChar()){case"\0":return null;case"\n":return this.nextChar(),this.column=1,this.line++,this.nextToken()}case"*":e:for(;;)switch(this.nextChar()){case"\0":break e;case"\n":this.column=0,this.line++;break;case"*":for(;"*"===this.nextChar(););switch(this.currentChar()){case"\0":break e;case"\n":this.column=0,this.line++;break;case"/":return this.nextChar(),this.nextToken()}}}break;case"{":this.nextChar(),a=new o.CurlyOpenSymbolToken;break;case"}":this.nextChar(),a=new o.CurlyCloseSymbolToken;break;case"(":this.nextChar(),a=new o.ParensOpenSymbolToken;break;case")":this.nextChar(),a=new o.ParensCloseSymbolToken;break;case"?":this.nextChar(),a=new o.OptionalSymbolToken;break;case":":this.nextChar(),a=new o.ColonSymbolToken;break;case"=":this.nextChar(),a=new o.EqualSymbolToken;break;case"!":this.nextChar(),a=new o.ExclamationMarkSymbolToken;break;case",":this.nextChar(),a=new o.CommaSymbolToken;break;case"[":switch(this.nextChar()){case"]":this.nextChar(),a=new o.ArraySymbolToken}break;case".":switch(this.nextChar()){case".":switch(this.nextChar()){case".":this.nextChar(),a=new o.SpreadSymbolToken}}break;case"@":{let C="\\",w=this.startPos+1;for(;"\\"===C[C.length-1];){for(C=C.slice(0,C.length-1).trim();!["\0","\n"].includes(this.nextChar()););C=`${C} ${this.source.substring(w,this.pos).trim()}`.trim(),w=this.pos+1}a=new o.AnnotationToken(C.trim());break}case'"':{const C=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":C.push("\n");break;case"t":C.push("\t");break;default:C.push(this.currentChar())}break;case'"':this.nextChar(),a=new o.StringLiteralToken(C.join(""));break e;default:C.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const C=this.source.substring(this.startPos,this.pos);switch(C){case"error":a=new o.ErrorKeywordToken;break;case"enum":a=new o.EnumKeywordToken;break;case"type":a=new o.TypeKeywordToken;break;case"import":a=new o.ImportKeywordToken;break;case"fn":a=new o.FnKeywordToken;break;case"true":a=new o.TrueKeywordToken;break;case"false":a=new o.FalseKeywordToken;break;default:a=h.PRIMITIVES.has(C)?new o.PrimitiveTypeToken(C):new o.IdentifierToken(C)}}}if(null!==a)return a.location.filename=this.filename,a.location.line=this.startLine,a.location.column=this.startColumn,a;throw"\0"===this.currentChar()?new l(`Unexpected end of file at ${this.filename}`):new l(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}T.Lexer=h,h.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]),h.KEYWORDS=new Set([...h.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"])},6790:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.Parser=T.ParserError=void 0;const o=d(2253),l=d(2814),h=d(8215),_=d(5140),a=d(7279),C=d(1321);class w extends Error{}T.ParserError=w,T.Parser=class{constructor(E){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var S=new Error("Cannot find module 'fs'");throw S.code="MODULE_NOT_FOUND",S}()).readFileSync}catch(M){}this.lexers=E instanceof l.Lexer?[E]:[new l.Lexer(this.readFileSync(E).toString(),E)],this.nextToken()}nextToken(){for(;this.lexers.length>0;){if(this.token=this.lexers[this.lexers.length-1].nextToken(),this.token)return;this.lexers.pop()}}multiExpect(E){if(!this.token)throw new w(`Expected ${Object.keys(E).map(S=>S.replace("Token","")).join(" or ")}, but found end of file`);const M=this.token.constructor.name;if(M in E)return E[M](this.token);if(E.IdentifierToken){const S=this.token.maybeAsIdentifier();if(S instanceof a.IdentifierToken)return E.IdentifierToken(S)}throw new w(`Expected ${Object.keys(E).map(S=>S.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(E){if(null===this.token)throw new w(`Expected ${E.name.replace("Token","")}, but found end of file`);if(this.token instanceof E)return this.token;if(E===a.IdentifierToken){const M=this.token.maybeAsIdentifier();if(M instanceof a.IdentifierToken)return M}throw new w(`Expected ${E.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const E=[],M=[],S=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{S.push(this.parseError())},FnKeywordToken:()=>{E.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const L=this.expect(a.StringLiteralToken),j=L.location.filename.replace(/[^/\\]+$/u,`${L.value}.sdkgen`);this.lexers.push(new l.Lexer(this.readFileSync(j).toString(),j)),this.nextToken()},TypeKeywordToken:()=>{M.push(this.parseTypeDefinition())}});const P=new o.AstRoot(M,E,S);return P.warnings=this.warnings,(0,_.analyse)(P),P}acceptAnnotations(){for(;this.token instanceof a.AnnotationToken;){const E=this.token.value.split(" "),M=this.token.value.slice(E[0].length).trim();switch(E[0]){case"description":this.annotations.push(new o.DescriptionAnnotation(M).at(this.token));break;case"arg":this.annotations.push(new o.ArgDescriptionAnnotation(E[1],this.token.value.slice(E[0].length+1+E[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new o.ThrowsAnnotation(M).at(this.token));break;case"rest":try{this.annotations.push((0,h.parseRestAnnotation)(M).at(this.token))}catch(S){throw new w(`${S instanceof Error?S.message:S} at ${this.token.location}`)}break;case"hidden":if(""!==M)throw new w("@hidden annotation doesn't take any argument");this.annotations.push((new o.HiddenAnnotation).at(this.token));break;default:throw new w(`Unknown annotation '${E[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new w(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const E=this.expect(a.TypeKeywordToken);this.nextToken();const M=this.expect(a.IdentifierToken),S=M.value;if(!/[A-Z]/u.test(S[0]))throw new w(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(S)} at ${M.location}`);this.nextToken();const{annotations:P}=this;this.annotations=[];const L=this.parseType(),j=new o.TypeDefinition(S,L).at(E);return j.annotations=P,j}parseError(){this.checkCannotHaveAnnotationsHere();const E=this.expect(a.ErrorKeywordToken);this.nextToken();const M=this.expect(a.IdentifierToken),S=M.value;if(!/[A-Z]/u.test(S[0]))throw new w(`Error name must start with an uppercase letter, but found ${JSON.stringify(S)} at ${M.location}`);this.nextToken();let P=new o.VoidPrimitiveType;return(this.token instanceof a.CurlyOpenSymbolToken||this.token instanceof a.EnumKeywordToken||this.token instanceof a.IdentifierToken||this.token instanceof a.PrimitiveTypeToken)&&(P=this.parseType()),new o.ErrorNode(S,P).at(E)}parseOperation(){let{annotations:E}=this;this.annotations=[],this.expect(a.FnKeywordToken),this.nextToken();const M=this.expect(a.IdentifierToken).value;this.nextToken(),this.expect(a.ParensOpenSymbolToken),this.nextToken();const S=new Set,P=[];let j,L=!1;for(;!L;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:ye=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),L=!0,j=ye},IdentifierToken:()=>{const ye=this.parseField();if(S.has(ye.name))throw new w(`Cannot redeclare argument '${ye.name}'`);S.add(ye.name),P.push(ye),this.multiExpect({ParensCloseSymbolToken:$e=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),L=!0,j=$e},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const ye=this.expect(a.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(ye.value[0]))throw new w(`Expected a type but found ${JSON.stringify(ye.value)} at ${ye.location}`);P.push(new o.Spread(new o.TypeReference(ye.value).at(ye)).at(ye)),this.multiExpect({ParensCloseSymbolToken:$e=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),L=!0,j=$e},CommaSymbolToken:()=>this.nextToken()})}});for(const ye of E)if(ye instanceof o.ArgDescriptionAnnotation){const $e=P.find(at=>at instanceof o.Field&&at.name===ye.argName);if(!$e)throw new w(`Argument '${ye.argName}' not found, at ${ye.location}`);$e.annotations.push(new o.DescriptionAnnotation(ye.text).atLocation(ye.location))}E=E.filter(ye=>!(ye instanceof o.ArgDescriptionAnnotation));let ae=(new o.VoidPrimitiveType).at(j);this.token instanceof a.ColonSymbolToken&&(this.nextToken(),ae=this.parseType());const he=new o.FunctionOperation(M,P,ae);return he.annotations=E,he}parseEnum(){this.checkCannotHaveAnnotationsHere();const E=this.expect(a.EnumKeywordToken);this.nextToken(),this.expect(a.CurlyOpenSymbolToken),this.nextToken();const M=new o.EnumType([]).at(E);let S=!1;for(;!S;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),S=!0},IdentifierToken:P=>{const L=new o.EnumValue(P.value).at(P);L.annotations=this.annotations,this.annotations=[],M.values.push(L),this.nextToken()}});return M}parseField(){const E=this.expect(a.IdentifierToken);this.nextToken(),this.expect(a.ColonSymbolToken),this.nextToken();const{annotations:M}=this;this.annotations=[];const S=this.parseType(),P=new o.Field(E.value,S).at(E);for(P.annotations=M;this.token instanceof a.ExclamationMarkSymbolToken;){switch(this.nextToken(),this.expect(a.IdentifierToken).value){case"secret":P.secret=!0;break;default:throw new w(`Unknown field mark !${this.token.value} at ${this.token.location}`)}this.nextToken()}return P}parseStruct(){const E=this.expect(a.CurlyOpenSymbolToken);this.nextToken();const M=[],S=new Set;let P=!1;for(;!P;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),P=!0},IdentifierToken:()=>{const L=this.parseField();if(S.has(L.name))throw new w(`Cannot redeclare field '${L.name}'`);S.add(L.name),M.push(L)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const L=this.expect(a.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(L.value[0]))throw new w(`Expected a type but found ${JSON.stringify(L.value)} at ${L.location}`);M.push(new o.Spread(new o.TypeReference(L.value).at(L)).at(L))}});return new o.StructType(M).at(E)}parseType(){this.checkCannotHaveAnnotationsHere();let E=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:M=>{if(this.nextToken(),!/[A-Z]/u.test(M.value[0]))throw new w(`Expected a type but found ${JSON.stringify(M.value)} at ${M.location}`);return new o.TypeReference(M.value).at(M)},PrimitiveTypeToken:M=>{this.nextToken();const S=C.primitiveToAstClass.get(M.value);if(S)return(new S).at(M);throw new w(`BUG! Should handle primitive ${M.value}`)}});for(;this.token instanceof a.ArraySymbolToken||this.token instanceof a.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:M=>E=new o.ArrayType(E).at(M),OptionalSymbolToken:M=>E=new o.OptionalType(E).at(M)}),this.nextToken();return E}}},8215:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.parseRestAnnotation=void 0;const o=d(2253);function _(C){var w;const D=/\{(?<name>\w+)\}/gu,g=[];let E;for(;null!==(E=D.exec(C));)(null===(w=E.groups)||void 0===w?void 0:w.name)&&g.push(E.groups.name);return g}T.parseRestAnnotation=function(C){const w=C.split(" "),D=w[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(D))throw new Error(`Unsupported method '${D}'`);let g=w[1];if(!g.startsWith("/"))throw new Error("Invalid path");let E=[];if(g.includes("?")){const[j,...ae]=g.split("?");g=j;const he=ae.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(he))throw new Error("Invalid querystring on path");E=_(he)}const M=_(g),S=w.slice(2).join(" "),P=function(C){var w;const D=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,g=new Map;let E;for(;null!==(E=D.exec(C));)(null===(w=E.groups)||void 0===w?void 0:w.header)&&E.groups.name&&g.set(E.groups.header.toLowerCase(),E.groups.name);return g}(S),L=function(C){var w;const D=/\[body \{(?<name>\w+)\}\]/u.exec(C);return(null===(w=null==D?void 0:D.groups)||void 0===w?void 0:w.name)?D.groups.name:null}(S);return new o.RestAnnotation(D,g,M,E,P,L)}},2652:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CheckMultipleDeclarationVisitor=void 0;const o=d(2253),l=d(6572);T.CheckMultipleDeclarationVisitor=class extends l.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(a){if(a instanceof o.TypeDefinition){const C=this.nameToType.get(a.name);if(C&&JSON.stringify(C)!==JSON.stringify(a.type))throw new l.SemanticError(`Type '${a.name}' at ${a.location} is defined multiple times (also at ${C.location})`);this.nameToType.set(a.name,a.type)}super.visit(a)}}},2417:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.MatchTypeDefinitionsVisitor=void 0;const o=d(2253),l=d(6572);T.MatchTypeDefinitionsVisitor=class extends l.Visitor{visit(a){if(a instanceof o.TypeReference){const C=this.root.typeDefinitions.find(w=>w.name===a.name);if(void 0===C)throw new l.SemanticError(`Could not find type '${a.name}' at ${a.location}`);a.type=C.type}super.visit(a)}}},8237:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CheckDontReturnSecretVisitor=void 0;const o=d(2253),l=d(6572);T.CheckDontReturnSecretVisitor=class extends l.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(a){if(!this.visited.has(a))if(this.visited.add(a),a instanceof o.FunctionOperation)this.isInReturn=!0,this.path.push(`${a.name}(...)`),this.visit(a.returnType),this.path.pop(),this.isInReturn=!1;else if(a instanceof o.TypeReference)this.visit(a.type);else if(a instanceof o.Field){if(this.path.push(a.name),this.isInReturn&&a.secret)throw new l.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${a.location}`);super.visit(a),this.path.pop()}else super.visit(a)}}},7267:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ExpandSpreadsVisitor=void 0;const o=d(2253),l=d(6572);T.ExpandSpreadsVisitor=class extends l.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(a,C){const w=new Map;for(const D of C){let g;if(D instanceof o.Field)g=[D];else{const E=D.typeReference.type;if(!(E instanceof o.StructType))throw new l.SemanticError(`A spread operator can't refer to something that is not a struct, in '${D.typeReference.name}' at ${D.location}.`);this.visit(E),g=E.fields}for(const E of g){const M=w.get(E.name);M?a[M]=E:(w.set(E.name,a.length),a.push(E))}}}visit(a){if(a instanceof o.StructType){if(this.processed.has(a))return;this.processed.add(a)}super.visit(a),a instanceof o.StructType?(this.expandSpread(a.fields,a.fieldsAndSpreads),a.fieldsAndSpreads=[]):a instanceof o.FunctionOperation&&(this.expandSpread(a.args,a.fieldsAndSpreads),a.fieldsAndSpreads=[])}}},5193:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CheckEmptyStructOrEnumVisitor=void 0;const o=d(2253),l=d(6572);T.CheckEmptyStructOrEnumVisitor=class extends l.Visitor{visit(a){if(super.visit(a),a instanceof o.EnumType&&0===a.values.length)throw new l.SemanticError(`Enum '${a.name}' at ${a.location} is empty`);if(a instanceof o.StructType&&0===a.fields.length)throw new l.SemanticError(`Struct '${a.name}' at ${a.location} is empty`)}}},9362:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.GiveStructAndEnumNamesVisitor=void 0;const o=d(2253),l=d(6572);T.GiveStructAndEnumNamesVisitor=class extends l.Visitor{constructor(){super(...arguments),this.path=[],this.names=new Map}visit(a){if(a instanceof o.TypeDefinition)this.path=[a.name],super.visit(a);else if(a instanceof o.ErrorNode)this.path=[`${a.name}Data`],super.visit(a);else if(a instanceof o.FunctionOperation)this.path=[a.name],super.visit(a);else if(a instanceof o.Field)this.path.push(a.name),super.visit(a),this.path.pop();else if(a instanceof o.StructType||a instanceof o.EnumType){a.name=this.path.map(w=>w[0].toUpperCase()+w.slice(1)).join("");const C=this.names.get(a.name);if(C&&JSON.stringify(C.type)!==JSON.stringify(a))throw new l.SemanticError(`The name of the type '${this.path.join(".")}' at ${a.location} will conflict with '${C.path.join(".")}' at ${C.type.location}`);this.names.set(a.name,{path:[...this.path],type:a}),super.visit(a)}else super.visit(a)}}},2124:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.CollectStructAndEnumTypesVisitor=void 0;const o=d(2253),l=d(6572);T.CollectStructAndEnumTypesVisitor=class extends l.Visitor{visit(a){super.visit(a),a instanceof o.StructType?this.root.structTypes.push(a):a instanceof o.EnumType&&this.root.enumTypes.push(a)}}},7181:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ValidateAnnotationsVisitor=void 0;const o=d(2253),l=d(6572);function _(C){return C instanceof o.TypeReference?_(C.type):C}T.ValidateAnnotationsVisitor=class extends l.Visitor{visit(w){if(w instanceof o.EnumValue){for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(w instanceof o.TypeDefinition){for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(w instanceof o.Field){for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`)}else if(w instanceof o.FunctionOperation)for(const D of w.annotations)if(!(D instanceof o.DescriptionAnnotation))if(D instanceof o.ThrowsAnnotation){if(!this.root.errors.some(g=>g.name===D.error))throw new l.SemanticError(`Unknown error type '${D.error}' at ${D.location}`)}else if(D instanceof o.RestAnnotation){const g=[...D.pathVariables,...D.queryVariables,...D.headers.values()];if(g.length!==new Set(g).size)throw new l.SemanticError(`Arguments must appear only once for rest annotation at ${D.location}`);for(const E of g){const M=w.args.find(P=>P.name===E);if(!M)throw new l.SemanticError(`Argument '${E}' not found at ${D.location}`);if(D.pathVariables.includes(E)&&M.type instanceof o.OptionalType)throw new l.SemanticError(`The path argument '${E}' can't be nullable at ${D.location}`);if(!((C=_(M.type instanceof o.OptionalType?M.type.base:M.type))instanceof o.BoolPrimitiveType||C instanceof o.IntPrimitiveType||C instanceof o.UIntPrimitiveType||C instanceof o.BigIntPrimitiveType||C instanceof o.FloatPrimitiveType||C instanceof o.StringPrimitiveType||C instanceof o.DatePrimitiveType||C instanceof o.DateTimePrimitiveType||C instanceof o.MoneyPrimitiveType||C instanceof o.CpfPrimitiveType||C instanceof o.CnpjPrimitiveType||C instanceof o.UuidPrimitiveType||C instanceof o.HexPrimitiveType||C instanceof o.Base64PrimitiveType||C instanceof o.EnumType))throw new l.SemanticError(`Argument '${E}' can't have type '${M.type.name}' for rest annotation at ${D.location}`)}for(const E of w.args)if(!g.includes(E.name)&&D.bodyVariable!==E.name)throw new l.SemanticError(`Argument '${E.name}' is missing from the rest annotation at ${D.location}`);if("GET"===D.method&&w.returnType instanceof o.VoidPrimitiveType)throw new l.SemanticError(`A GET rest endpoint must return something at ${D.location}`)}else if(!(D instanceof o.HiddenAnnotation))throw new l.SemanticError(`Cannot have @${D.constructor.name.replace("Annotation","").toLowerCase()} at ${D.location}`);var C}}},3158:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ValidateRecursiveTypes=void 0;const o=d(2253),l=d(6572);T.ValidateRecursiveTypes=class extends l.Visitor{visit(a){if(super.visit(a),a instanceof o.TypeDefinition&&(a.type instanceof o.TypeReference&&a.type.name===a.name||a.type instanceof o.ArrayType&&a.type.base.name===a.name||a.type instanceof o.OptionalType&&a.type.base.name===a.name))throw new l.SemanticError(`Type '${a.name}' at ${a.location} is recursive but is not an struct`)}}},5140:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.analyse=void 0;const o=d(2253),l=d(2652),h=d(2417),_=d(8237),a=d(7267),C=d(5193),w=d(9362),D=d(2124),g=d(7181),E=d(3158);T.analyse=function(S){S.errors.some(P=>"Fatal"===P.name)||S.errors.push(new o.ErrorNode("Fatal",new o.VoidPrimitiveType)),new l.CheckMultipleDeclarationVisitor(S).process(),new h.MatchTypeDefinitionsVisitor(S).process(),new _.CheckDontReturnSecretVisitor(S).process(),new a.ExpandSpreadsVisitor(S).process(),new C.CheckEmptyStructOrEnumVisitor(S).process(),new w.GiveStructAndEnumNamesVisitor(S).process(),new D.CollectStructAndEnumTypesVisitor(S).process(),new g.ValidateAnnotationsVisitor(S).process(),new E.ValidateRecursiveTypes(S).process()}},6572:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.Visitor=T.SemanticError=void 0;const o=d(2253);class l extends Error{}T.SemanticError=l,T.Visitor=class{constructor(a){this.root=a}process(){for(const a of this.root.errors)this.visit(a);for(const a of this.root.typeDefinitions)this.visit(a);for(const a of this.root.operations)this.visit(a)}visit(a){if(a instanceof o.FunctionOperation){for(const C of a.args)this.visit(C);for(const C of a.fieldsAndSpreads)this.visit(C);this.visit(a.returnType)}else if(a instanceof o.Field||a instanceof o.TypeDefinition)this.visit(a.type);else if(a instanceof o.StructType){for(const C of a.fields)this.visit(C);for(const C of a.fieldsAndSpreads)this.visit(C)}else a instanceof o.ArrayType||a instanceof o.OptionalType?this.visit(a.base):a instanceof o.ErrorNode?this.visit(a.dataType):a instanceof o.Spread&&this.visit(a.typeReference)}}},7279:(Le,T)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.PrimitiveTypeToken=T.FalseKeywordToken=T.TrueKeywordToken=T.ErrorKeywordToken=T.FnKeywordToken=T.EnumKeywordToken=T.TypeKeywordToken=T.ImportKeywordToken=T.AnnotationToken=T.SpreadSymbolToken=T.CommaSymbolToken=T.ArraySymbolToken=T.OptionalSymbolToken=T.ColonSymbolToken=T.ParensCloseSymbolToken=T.ParensOpenSymbolToken=T.CurlyCloseSymbolToken=T.CurlyOpenSymbolToken=T.ExclamationMarkSymbolToken=T.EqualSymbolToken=T.StringLiteralToken=T.IdentifierToken=T.Token=T.TokenLocation=void 0;class d{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}T.TokenLocation=d;class o{constructor(Ne=""){this.value=Ne,this.location=new d,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const Ne=this.constructor.name.replace("Token","");return""===this.value?Ne:`${Ne}(${JSON.stringify(this.value)})`}}T.Token=o;class l extends o{}T.IdentifierToken=l,T.StringLiteralToken=class extends o{},T.EqualSymbolToken=class extends o{},T.ExclamationMarkSymbolToken=class extends o{},T.CurlyOpenSymbolToken=class extends o{},T.CurlyCloseSymbolToken=class extends o{},T.ParensOpenSymbolToken=class extends o{},T.ParensCloseSymbolToken=class extends o{},T.ColonSymbolToken=class extends o{},T.OptionalSymbolToken=class extends o{},T.ArraySymbolToken=class extends o{},T.CommaSymbolToken=class extends o{},T.SpreadSymbolToken=class extends o{},T.AnnotationToken=class extends o{},T.ImportKeywordToken=class extends o{maybeAsIdentifier(){return new l("import")}},T.TypeKeywordToken=class extends o{maybeAsIdentifier(){return new l("type")}},T.EnumKeywordToken=class extends o{maybeAsIdentifier(){return new l("enum")}},T.FnKeywordToken=class extends o{maybeAsIdentifier(){return new l("fn")}},T.ErrorKeywordToken=class extends o{maybeAsIdentifier(){return new l("error")}},T.TrueKeywordToken=class extends o{maybeAsIdentifier(){return new l("true")}},T.FalseKeywordToken=class extends o{maybeAsIdentifier(){return new l("false")}},T.PrimitiveTypeToken=class extends o{maybeAsIdentifier(){return new l(this.value)}}},1321:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.primitiveToAstClass=void 0;const o=d(2253);T.primitiveToAstClass=new Map,T.primitiveToAstClass.set("string",o.StringPrimitiveType),T.primitiveToAstClass.set("int",o.IntPrimitiveType),T.primitiveToAstClass.set("uint",o.UIntPrimitiveType),T.primitiveToAstClass.set("date",o.DatePrimitiveType),T.primitiveToAstClass.set("datetime",o.DateTimePrimitiveType),T.primitiveToAstClass.set("float",o.FloatPrimitiveType),T.primitiveToAstClass.set("bigint",o.BigIntPrimitiveType),T.primitiveToAstClass.set("bool",o.BoolPrimitiveType),T.primitiveToAstClass.set("bytes",o.BytesPrimitiveType),T.primitiveToAstClass.set("money",o.MoneyPrimitiveType),T.primitiveToAstClass.set("cpf",o.CpfPrimitiveType),T.primitiveToAstClass.set("cnpj",o.CnpjPrimitiveType),T.primitiveToAstClass.set("email",o.EmailPrimitiveType),T.primitiveToAstClass.set("html",o.HtmlPrimitiveType),T.primitiveToAstClass.set("url",o.UrlPrimitiveType),T.primitiveToAstClass.set("uuid",o.UuidPrimitiveType),T.primitiveToAstClass.set("hex",o.HexPrimitiveType),T.primitiveToAstClass.set("base64",o.Base64PrimitiveType),T.primitiveToAstClass.set("xml",o.XmlPrimitiveType),T.primitiveToAstClass.set("json",o.JsonPrimitiveType),T.primitiveToAstClass.set("void",o.VoidPrimitiveType)},7238:(Le,T,d)=>{"use strict";d.d(T,{l3:()=>h,_j:()=>o,LC:()=>l,ZN:()=>ye,jt:()=>a,F4:()=>E,vP:()=>w,SB:()=>g,oB:()=>D,eR:()=>M,X$:()=>_,ZE:()=>$e,k1:()=>at});class o{}class l{}const h="*";function _(Ze,Me){return{type:7,name:Ze,definitions:Me,options:{}}}function a(Ze,Me=null){return{type:4,styles:Me,timings:Ze}}function w(Ze,Me=null){return{type:2,steps:Ze,options:Me}}function D(Ze){return{type:6,styles:Ze,offset:null}}function g(Ze,Me,Re){return{type:0,name:Ze,styles:Me,options:Re}}function E(Ze){return{type:5,steps:Ze}}function M(Ze,Me,Re=null){return{type:1,expr:Ze,animation:Me,options:Re}}function he(Ze){Promise.resolve(null).then(Ze)}class ye{constructor(Me=0,Re=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=Me+Re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Me=>Me()),this._onDoneFns=[])}onStart(Me){this._onStartFns.push(Me)}onDone(Me){this._onDoneFns.push(Me)}onDestroy(Me){this._onDestroyFns.push(Me)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){he(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(Me=>Me()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(Me=>Me()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(Me){this._position=this.totalTime?Me*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(Me){const Re="start"==Me?this._onStartFns:this._onDoneFns;Re.forEach(Pe=>Pe()),Re.length=0}}class $e{constructor(Me){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=Me;let Re=0,Pe=0,Ne=0;const Ct=this.players.length;0==Ct?he(()=>this._onFinish()):this.players.forEach(te=>{te.onDone(()=>{++Re==Ct&&this._onFinish()}),te.onDestroy(()=>{++Pe==Ct&&this._onDestroy()}),te.onStart(()=>{++Ne==Ct&&this._onStart()})}),this.totalTime=this.players.reduce((te,ge)=>Math.max(te,ge.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(Me=>Me()),this._onDoneFns=[])}init(){this.players.forEach(Me=>Me.init())}onStart(Me){this._onStartFns.push(Me)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(Me=>Me()),this._onStartFns=[])}onDone(Me){this._onDoneFns.push(Me)}onDestroy(Me){this._onDestroyFns.push(Me)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(Me=>Me.play())}pause(){this.players.forEach(Me=>Me.pause())}restart(){this.players.forEach(Me=>Me.restart())}finish(){this._onFinish(),this.players.forEach(Me=>Me.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(Me=>Me.destroy()),this._onDestroyFns.forEach(Me=>Me()),this._onDestroyFns=[])}reset(){this.players.forEach(Me=>Me.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(Me){const Re=Me*this.totalTime;this.players.forEach(Pe=>{const Ne=Pe.totalTime?Math.min(1,Re/Pe.totalTime):1;Pe.setPosition(Ne)})}getPosition(){const Me=this.players.reduce((Re,Pe)=>null===Re||Pe.totalTime>Re.totalTime?Pe:Re,null);return null!=Me?Me.getPosition():0}beforeDestroy(){this.players.forEach(Me=>{Me.beforeDestroy&&Me.beforeDestroy()})}triggerCallback(Me){const Re="start"==Me?this._onStartFns:this._onDoneFns;Re.forEach(Pe=>Pe()),Re.length=0}}const at="!"},9238:(Le,T,d)=>{"use strict";d.d(T,{rt:()=>De,$s:()=>X,kH:()=>qe,Em:()=>et,tE:()=>_n,qV:()=>wt,qm:()=>W,X6:()=>R,yG:()=>de});var o=d(8583),l=d(7716),h=d(9765),_=d(826),a=d(6215),C=d(5917),w=d(6461),D=d(8307),g=d(4395),E=d(5435),M=d(8002),S=d(5257),P=d(3653),L=d(7519),j=d(6782),ae=d(9490),he=d(521),ye=d(8553);function Me(Ee,Q){return(Ee.getAttribute(Q)||"").match(/\S+/g)||[]}const Re="cdk-describedby-message-container",Pe="cdk-describedby-message",Ne="cdk-describedby-host";let Ct=0;const te=new Map;let ge=null,X=(()=>{class Ee{constructor(J){this._document=J}describe(J,N,oe){if(!this._canBeDescribed(J,N))return;const st=ce(N,oe);"string"!=typeof N?(Ae(N),te.set(st,{messageElement:N,referenceCount:0})):te.has(st)||this._createMessageElement(N,oe),this._isElementDescribedByMessage(J,st)||this._addMessageReference(J,st)}removeDescription(J,N,oe){if(!N||!this._isElementNode(J))return;const st=ce(N,oe);if(this._isElementDescribedByMessage(J,st)&&this._removeMessageReference(J,st),"string"==typeof N){const _t=te.get(st);_t&&0===_t.referenceCount&&this._deleteMessageElement(st)}ge&&0===ge.childNodes.length&&this._deleteMessagesContainer()}ngOnDestroy(){const J=this._document.querySelectorAll(`[${Ne}]`);for(let N=0;N<J.length;N++)this._removeCdkDescribedByReferenceIds(J[N]),J[N].removeAttribute(Ne);ge&&this._deleteMessagesContainer(),te.clear()}_createMessageElement(J,N){const oe=this._document.createElement("div");Ae(oe),oe.textContent=J,N&&oe.setAttribute("role",N),this._createMessagesContainer(),ge.appendChild(oe),te.set(ce(J,N),{messageElement:oe,referenceCount:0})}_deleteMessageElement(J){const N=te.get(J),oe=N&&N.messageElement;ge&&oe&&ge.removeChild(oe),te.delete(J)}_createMessagesContainer(){if(!ge){const J=this._document.getElementById(Re);J&&J.parentNode&&J.parentNode.removeChild(J),ge=this._document.createElement("div"),ge.id=Re,ge.style.visibility="hidden",ge.classList.add("cdk-visually-hidden"),this._document.body.appendChild(ge)}}_deleteMessagesContainer(){ge&&ge.parentNode&&(ge.parentNode.removeChild(ge),ge=null)}_removeCdkDescribedByReferenceIds(J){const N=Me(J,"aria-describedby").filter(oe=>0!=oe.indexOf(Pe));J.setAttribute("aria-describedby",N.join(" "))}_addMessageReference(J,N){const oe=te.get(N);(function(Ee,Q,J){const N=Me(Ee,Q);N.some(oe=>oe.trim()==J.trim())||(N.push(J.trim()),Ee.setAttribute(Q,N.join(" ")))})(J,"aria-describedby",oe.messageElement.id),J.setAttribute(Ne,""),oe.referenceCount++}_removeMessageReference(J,N){const oe=te.get(N);oe.referenceCount--,function(Ee,Q,J){const oe=Me(Ee,Q).filter(st=>st!=J.trim());oe.length?Ee.setAttribute(Q,oe.join(" ")):Ee.removeAttribute(Q)}(J,"aria-describedby",oe.messageElement.id),J.removeAttribute(Ne)}_isElementDescribedByMessage(J,N){const oe=Me(J,"aria-describedby"),st=te.get(N),_t=st&&st.messageElement.id;return!!_t&&-1!=oe.indexOf(_t)}_canBeDescribed(J,N){if(!this._isElementNode(J))return!1;if(N&&"object"==typeof N)return!0;const oe=null==N?"":`${N}`.trim(),st=J.getAttribute("aria-label");return!(!oe||st&&st.trim()===oe)}_isElementNode(J){return J.nodeType===this._document.ELEMENT_NODE}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(o.DOCUMENT))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(o.DOCUMENT))},token:Ee,providedIn:"root"}),Ee})();function ce(Ee,Q){return"string"==typeof Ee?`${Q||""}/${Ee}`:Ee}function Ae(Ee){Ee.id||(Ee.id=`${Pe}-${Ct++}`)}class et extends class{constructor(Q){this._items=Q,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new h.xQ,this._typeaheadSubscription=_.w.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=J=>J.disabled,this._pressedLetters=[],this.tabOut=new h.xQ,this.change=new h.xQ,Q instanceof l.QueryList&&Q.changes.subscribe(J=>{if(this._activeItem){const oe=J.toArray().indexOf(this._activeItem);oe>-1&&oe!==this._activeItemIndex&&(this._activeItemIndex=oe)}})}skipPredicate(Q){return this._skipPredicateFn=Q,this}withWrap(Q=!0){return this._wrap=Q,this}withVerticalOrientation(Q=!0){return this._vertical=Q,this}withHorizontalOrientation(Q){return this._horizontal=Q,this}withAllowedModifierKeys(Q){return this._allowedModifierKeys=Q,this}withTypeAhead(Q=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,D.b)(J=>this._pressedLetters.push(J)),(0,g.b)(Q),(0,E.h)(()=>this._pressedLetters.length>0),(0,M.U)(()=>this._pressedLetters.join(""))).subscribe(J=>{const N=this._getItemsArray();for(let oe=1;oe<N.length+1;oe++){const st=(this._activeItemIndex+oe)%N.length,_t=N[st];if(!this._skipPredicateFn(_t)&&0===_t.getLabel().toUpperCase().trim().indexOf(J)){this.setActiveItem(st);break}}this._pressedLetters=[]}),this}withHomeAndEnd(Q=!0){return this._homeAndEnd=Q,this}setActiveItem(Q){const J=this._activeItem;this.updateActiveItem(Q),this._activeItem!==J&&this.change.next(this._activeItemIndex)}onKeydown(Q){const J=Q.keyCode,oe=["altKey","ctrlKey","metaKey","shiftKey"].every(st=>!Q[st]||this._allowedModifierKeys.indexOf(st)>-1);switch(J){case w.Mf:return void this.tabOut.next();case w.JH:if(this._vertical&&oe){this.setNextItemActive();break}return;case w.LH:if(this._vertical&&oe){this.setPreviousItemActive();break}return;case w.SV:if(this._horizontal&&oe){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case w.oh:if(this._horizontal&&oe){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case w.Sd:if(this._homeAndEnd&&oe){this.setFirstItemActive();break}return;case w.uR:if(this._homeAndEnd&&oe){this.setLastItemActive();break}return;default:return void((oe||(0,w.Vb)(Q,"shiftKey"))&&(Q.key&&1===Q.key.length?this._letterKeyStream.next(Q.key.toLocaleUpperCase()):(J>=w.A&&J<=w.Z||J>=w.xE&&J<=w.aO)&&this._letterKeyStream.next(String.fromCharCode(J))))}this._pressedLetters=[],Q.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(Q){const J=this._getItemsArray(),N="number"==typeof Q?Q:J.indexOf(Q),oe=J[N];this._activeItem=null==oe?null:oe,this._activeItemIndex=N}_setActiveItemByDelta(Q){this._wrap?this._setActiveInWrapMode(Q):this._setActiveInDefaultMode(Q)}_setActiveInWrapMode(Q){const J=this._getItemsArray();for(let N=1;N<=J.length;N++){const oe=(this._activeItemIndex+Q*N+J.length)%J.length;if(!this._skipPredicateFn(J[oe]))return void this.setActiveItem(oe)}}_setActiveInDefaultMode(Q){this._setActiveItemByIndex(this._activeItemIndex+Q,Q)}_setActiveItemByIndex(Q,J){const N=this._getItemsArray();if(N[Q]){for(;this._skipPredicateFn(N[Q]);)if(!N[Q+=J])return;this.setActiveItem(Q)}}_getItemsArray(){return this._items instanceof l.QueryList?this._items.toArray():this._items}}{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(Q){return this._origin=Q,this}setActiveItem(Q){super.setActiveItem(Q),this.activeItem&&this.activeItem.focus(this._origin)}}let je=(()=>{class Ee{constructor(J){this._platform=J}isDisabled(J){return J.hasAttribute("disabled")}isVisible(J){return function(Ee){return!!(Ee.offsetWidth||Ee.offsetHeight||"function"==typeof Ee.getClientRects&&Ee.getClientRects().length)}(J)&&"visible"===getComputedStyle(J).visibility}isTabbable(J){if(!this._platform.isBrowser)return!1;const N=function(Ee){try{return Ee.frameElement}catch(Q){return null}}(function(Ee){return Ee.ownerDocument&&Ee.ownerDocument.defaultView||window}(J));if(N&&(-1===le(N)||!this.isVisible(N)))return!1;let oe=J.nodeName.toLowerCase(),st=le(J);return J.hasAttribute("contenteditable")?-1!==st:!("iframe"===oe||"object"===oe||this._platform.WEBKIT&&this._platform.IOS&&!function(Ee){let Q=Ee.nodeName.toLowerCase(),J="input"===Q&&Ee.type;return"text"===J||"password"===J||"select"===Q||"textarea"===Q}(J))&&("audio"===oe?!!J.hasAttribute("controls")&&-1!==st:"video"===oe?-1!==st&&(null!==st||this._platform.FIREFOX||J.hasAttribute("controls")):J.tabIndex>=0)}isFocusable(J,N){return function(Ee){return!function(Ee){return function(Ee){return"input"==Ee.nodeName.toLowerCase()}(Ee)&&"hidden"==Ee.type}(Ee)&&(function(Ee){let Q=Ee.nodeName.toLowerCase();return"input"===Q||"select"===Q||"button"===Q||"textarea"===Q}(Ee)||function(Ee){return function(Ee){return"a"==Ee.nodeName.toLowerCase()}(Ee)&&Ee.hasAttribute("href")}(Ee)||Ee.hasAttribute("contenteditable")||H(Ee))}(J)&&!this.isDisabled(J)&&((null==N?void 0:N.ignoreVisibility)||this.isVisible(J))}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(he.t4))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(he.t4))},token:Ee,providedIn:"root"}),Ee})();function H(Ee){if(!Ee.hasAttribute("tabindex")||void 0===Ee.tabIndex)return!1;let Q=Ee.getAttribute("tabindex");return"-32768"!=Q&&!(!Q||isNaN(parseInt(Q,10)))}function le(Ee){if(!H(Ee))return null;const Q=parseInt(Ee.getAttribute("tabindex")||"",10);return isNaN(Q)?-1:Q}class rt{constructor(Q,J,N,oe,st=!1){this._element=Q,this._checker=J,this._ngZone=N,this._document=oe,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,st||this.attachAnchors()}get enabled(){return this._enabled}set enabled(Q){this._enabled=Q,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Q,this._startAnchor),this._toggleAnchorTabIndex(Q,this._endAnchor))}destroy(){const Q=this._startAnchor,J=this._endAnchor;Q&&(Q.removeEventListener("focus",this.startAnchorListener),Q.parentNode&&Q.parentNode.removeChild(Q)),J&&(J.removeEventListener("focus",this.endAnchorListener),J.parentNode&&J.parentNode.removeChild(J)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(Q){return new Promise(J=>{this._executeOnStable(()=>J(this.focusInitialElement(Q)))})}focusFirstTabbableElementWhenReady(Q){return new Promise(J=>{this._executeOnStable(()=>J(this.focusFirstTabbableElement(Q)))})}focusLastTabbableElementWhenReady(Q){return new Promise(J=>{this._executeOnStable(()=>J(this.focusLastTabbableElement(Q)))})}_getRegionBoundary(Q){let J=this._element.querySelectorAll(`[cdk-focus-region-${Q}], [cdkFocusRegion${Q}], [cdk-focus-${Q}]`);for(let N=0;N<J.length;N++)J[N].hasAttribute(`cdk-focus-${Q}`)?console.warn(`Found use of deprecated attribute 'cdk-focus-${Q}', use 'cdkFocusRegion${Q}' instead. The deprecated attribute will be removed in 8.0.0.`,J[N]):J[N].hasAttribute(`cdk-focus-region-${Q}`)&&console.warn(`Found use of deprecated attribute 'cdk-focus-region-${Q}', use 'cdkFocusRegion${Q}' instead. The deprecated attribute will be removed in 8.0.0.`,J[N]);return"start"==Q?J.length?J[0]:this._getFirstTabbableElement(this._element):J.length?J[J.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(Q){const J=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(J){if(J.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 8.0.0",J),!this._checker.isFocusable(J)){const N=this._getFirstTabbableElement(J);return null==N||N.focus(Q),!!N}return J.focus(Q),!0}return this.focusFirstTabbableElement(Q)}focusFirstTabbableElement(Q){const J=this._getRegionBoundary("start");return J&&J.focus(Q),!!J}focusLastTabbableElement(Q){const J=this._getRegionBoundary("end");return J&&J.focus(Q),!!J}hasAttached(){return this._hasAttached}_getFirstTabbableElement(Q){if(this._checker.isFocusable(Q)&&this._checker.isTabbable(Q))return Q;let J=Q.children||Q.childNodes;for(let N=0;N<J.length;N++){let oe=J[N].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(J[N]):null;if(oe)return oe}return null}_getLastTabbableElement(Q){if(this._checker.isFocusable(Q)&&this._checker.isTabbable(Q))return Q;let J=Q.children||Q.childNodes;for(let N=J.length-1;N>=0;N--){let oe=J[N].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(J[N]):null;if(oe)return oe}return null}_createAnchor(){const Q=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,Q),Q.classList.add("cdk-visually-hidden"),Q.classList.add("cdk-focus-trap-anchor"),Q.setAttribute("aria-hidden","true"),Q}_toggleAnchorTabIndex(Q,J){Q?J.setAttribute("tabindex","0"):J.removeAttribute("tabindex")}toggleAnchors(Q){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(Q,this._startAnchor),this._toggleAnchorTabIndex(Q,this._endAnchor))}_executeOnStable(Q){this._ngZone.isStable?Q():this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(Q)}}let wt=(()=>{class Ee{constructor(J,N,oe){this._checker=J,this._ngZone=N,this._document=oe}create(J,N=!1){return new rt(J,this._checker,this._ngZone,this._document,N)}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(je),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(je),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT))},token:Ee,providedIn:"root"}),Ee})();function R(Ee){return 0===Ee.offsetX&&0===Ee.offsetY}function de(Ee){const Q=Ee.touches&&Ee.touches[0]||Ee.changedTouches&&Ee.changedTouches[0];return!(!Q||-1!==Q.identifier||null!=Q.radiusX&&1!==Q.radiusX||null!=Q.radiusY&&1!==Q.radiusY)}"undefined"!=typeof Element&&Element;const z=new l.InjectionToken("cdk-input-modality-detector-options"),re={ignoreKeys:[w.zL,w.jx,w.b2,w.MW,w.JU]},gt=(0,he.i$)({passive:!0,capture:!0});let Et=(()=>{class Ee{constructor(J,N,oe,st){this._platform=J,this._mostRecentTarget=null,this._modality=new a.X(null),this._lastTouchMs=0,this._onKeydown=_t=>{var Ht,dn;(null===(dn=null===(Ht=this._options)||void 0===Ht?void 0:Ht.ignoreKeys)||void 0===dn?void 0:dn.some(cn=>cn===_t.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,he.sA)(_t))},this._onMousedown=_t=>{Date.now()-this._lastTouchMs<650||(this._modality.next(R(_t)?"keyboard":"mouse"),this._mostRecentTarget=(0,he.sA)(_t))},this._onTouchstart=_t=>{de(_t)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,he.sA)(_t))},this._options=Object.assign(Object.assign({},re),st),this.modalityDetected=this._modality.pipe((0,P.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,L.x)()),J.isBrowser&&N.runOutsideAngular(()=>{oe.addEventListener("keydown",this._onKeydown,gt),oe.addEventListener("mousedown",this._onMousedown,gt),oe.addEventListener("touchstart",this._onTouchstart,gt)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,gt),document.removeEventListener("mousedown",this._onMousedown,gt),document.removeEventListener("touchstart",this._onTouchstart,gt))}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(he.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(z,8))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(he.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(z,8))},token:Ee,providedIn:"root"}),Ee})();const Lt=new l.InjectionToken("cdk-focus-monitor-default-options"),jt=(0,he.i$)({passive:!0,capture:!0});let _n=(()=>{class Ee{constructor(J,N,oe,st,_t){this._ngZone=J,this._platform=N,this._inputModalityDetector=oe,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new h.xQ,this._rootNodeFocusAndBlurListener=Ht=>{const dn=(0,he.sA)(Ht),cn="focus"===Ht.type?this._onFocus:this._onBlur;for(let an=dn;an;an=an.parentElement)cn.call(this,Ht,an)},this._document=st,this._detectionMode=(null==_t?void 0:_t.detectionMode)||0}monitor(J,N=!1){const oe=(0,ae.fI)(J);if(!this._platform.isBrowser||1!==oe.nodeType)return(0,C.of)(null);const st=(0,he.kV)(oe)||this._getDocument(),_t=this._elementInfo.get(oe);if(_t)return N&&(_t.checkChildren=!0),_t.subject;const Ht={checkChildren:N,subject:new h.xQ,rootNode:st};return this._elementInfo.set(oe,Ht),this._registerGlobalListeners(Ht),Ht.subject}stopMonitoring(J){const N=(0,ae.fI)(J),oe=this._elementInfo.get(N);oe&&(oe.subject.complete(),this._setClasses(N),this._elementInfo.delete(N),this._removeGlobalListeners(oe))}focusVia(J,N,oe){const st=(0,ae.fI)(J);st===this._getDocument().activeElement?this._getClosestElementsInfo(st).forEach(([Ht,dn])=>this._originChanged(Ht,N,dn)):(this._setOrigin(N),"function"==typeof st.focus&&st.focus(oe))}ngOnDestroy(){this._elementInfo.forEach((J,N)=>this.stopMonitoring(N))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(J,N,oe){oe?J.classList.add(N):J.classList.remove(N)}_getFocusOrigin(J){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(J)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(J){return 1===this._detectionMode||!!(null==J?void 0:J.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(J,N){this._toggleClass(J,"cdk-focused",!!N),this._toggleClass(J,"cdk-touch-focused","touch"===N),this._toggleClass(J,"cdk-keyboard-focused","keyboard"===N),this._toggleClass(J,"cdk-mouse-focused","mouse"===N),this._toggleClass(J,"cdk-program-focused","program"===N)}_setOrigin(J,N=!1){this._ngZone.runOutsideAngular(()=>{this._origin=J,this._originFromTouchInteraction="touch"===J&&N,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(J,N){const oe=this._elementInfo.get(N),st=(0,he.sA)(J);!oe||!oe.checkChildren&&N!==st||this._originChanged(N,this._getFocusOrigin(st),oe)}_onBlur(J,N){const oe=this._elementInfo.get(N);!oe||oe.checkChildren&&J.relatedTarget instanceof Node&&N.contains(J.relatedTarget)||(this._setClasses(N),this._emitOrigin(oe.subject,null))}_emitOrigin(J,N){this._ngZone.run(()=>J.next(N))}_registerGlobalListeners(J){if(!this._platform.isBrowser)return;const N=J.rootNode,oe=this._rootNodeFocusListenerCount.get(N)||0;oe||this._ngZone.runOutsideAngular(()=>{N.addEventListener("focus",this._rootNodeFocusAndBlurListener,jt),N.addEventListener("blur",this._rootNodeFocusAndBlurListener,jt)}),this._rootNodeFocusListenerCount.set(N,oe+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,j.R)(this._stopInputModalityDetector)).subscribe(st=>{this._setOrigin(st,!0)}))}_removeGlobalListeners(J){const N=J.rootNode;if(this._rootNodeFocusListenerCount.has(N)){const oe=this._rootNodeFocusListenerCount.get(N);oe>1?this._rootNodeFocusListenerCount.set(N,oe-1):(N.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jt),N.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jt),this._rootNodeFocusListenerCount.delete(N))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(J,N,oe){this._setClasses(J,N),this._emitOrigin(oe.subject,N),this._lastFocusOrigin=N}_getClosestElementsInfo(J){const N=[];return this._elementInfo.forEach((oe,st)=>{(st===J||oe.checkChildren&&st.contains(J))&&N.push([st,oe])}),N}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(he.t4),l.\u0275\u0275inject(Et),l.\u0275\u0275inject(o.DOCUMENT,8),l.\u0275\u0275inject(Lt,8))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(he.t4),l.\u0275\u0275inject(Et),l.\u0275\u0275inject(o.DOCUMENT,8),l.\u0275\u0275inject(Lt,8))},token:Ee,providedIn:"root"}),Ee})(),qe=(()=>{class Ee{constructor(J,N){this._elementRef=J,this._focusMonitor=N,this.cdkFocusChange=new l.EventEmitter}ngAfterViewInit(){const J=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(J,1===J.nodeType&&J.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(N=>this.cdkFocusChange.emit(N))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(_n))},Ee.\u0275dir=l.\u0275\u0275defineDirective({type:Ee,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Ee})();const Pt="cdk-high-contrast-black-on-white",B="cdk-high-contrast-white-on-black",K="cdk-high-contrast-active";let W=(()=>{class Ee{constructor(J,N){this._platform=J,this._document=N}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const J=this._document.createElement("div");J.style.backgroundColor="rgb(1,2,3)",J.style.position="absolute",this._document.body.appendChild(J);const N=this._document.defaultView||window,oe=N&&N.getComputedStyle?N.getComputedStyle(J):null,st=(oe&&oe.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(J),st){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const J=this._document.body.classList;J.remove(K),J.remove(Pt),J.remove(B),this._hasCheckedHighContrastMode=!0;const N=this.getHighContrastMode();1===N?(J.add(K),J.add(Pt)):2===N&&(J.add(K),J.add(B))}}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(he.t4),l.\u0275\u0275inject(o.DOCUMENT))},Ee.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ee(l.\u0275\u0275inject(he.t4),l.\u0275\u0275inject(o.DOCUMENT))},token:Ee,providedIn:"root"}),Ee})(),De=(()=>{class Ee{constructor(J){J._applyBodyHighContrastModeCssClasses()}}return Ee.\u0275fac=function(J){return new(J||Ee)(l.\u0275\u0275inject(W))},Ee.\u0275mod=l.\u0275\u0275defineNgModule({type:Ee}),Ee.\u0275inj=l.\u0275\u0275defineInjector({imports:[[he.ud,ye.Q8]]}),Ee})()},946:(Le,T,d)=>{"use strict";d.d(T,{vT:()=>w,Is:()=>a});var o=d(7716),l=d(8583);const h=new o.InjectionToken("cdk-dir-doc",{providedIn:"root",factory:function(){return(0,o.inject)(l.DOCUMENT)}});let a=(()=>{class D{constructor(E){if(this.value="ltr",this.change=new o.EventEmitter,E){const S=E.documentElement?E.documentElement.dir:null,P=(E.body?E.body.dir:null)||S;this.value="ltr"===P||"rtl"===P?P:"ltr"}}ngOnDestroy(){this.change.complete()}}return D.\u0275fac=function(E){return new(E||D)(o.\u0275\u0275inject(h,8))},D.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new D(o.\u0275\u0275inject(h,8))},token:D,providedIn:"root"}),D})(),w=(()=>{class D{}return D.\u0275fac=function(E){return new(E||D)},D.\u0275mod=o.\u0275\u0275defineNgModule({type:D}),D.\u0275inj=o.\u0275\u0275defineInjector({}),D})()},8345:(Le,T,d)=>{"use strict";d.d(T,{P3:()=>w,o2:()=>a,Ov:()=>E,yy:()=>D,eX:()=>g,k:()=>P,Z9:()=>C});var o=d(5639),l=d(5917),h=d(9765),_=d(7716);class a{}function C(L){return L&&"function"==typeof L.connect}class w extends a{constructor(j){super(),this._data=j}connect(){return(0,o.b)(this._data)?this._data:(0,l.of)(this._data)}disconnect(){}}class D{applyChanges(j,ae,he,ye,$e){j.forEachOperation((at,Ze,Me)=>{let Re,Pe;if(null==at.previousIndex){const Ne=he(at,Ze,Me);Re=ae.createEmbeddedView(Ne.templateRef,Ne.context,Ne.index),Pe=1}else null==Me?(ae.remove(Ze),Pe=3):(Re=ae.get(Ze),ae.move(Re,Me),Pe=2);$e&&$e({context:null==Re?void 0:Re.context,operation:Pe,record:at})})}detach(){}}class g{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(j,ae,he,ye,$e){j.forEachOperation((at,Ze,Me)=>{let Re,Pe;null==at.previousIndex?(Re=this._insertView(()=>he(at,Ze,Me),Me,ae,ye(at)),Pe=Re?1:0):null==Me?(this._detachAndCacheView(Ze,ae),Pe=3):(Re=this._moveView(Ze,Me,ae,ye(at)),Pe=2),$e&&$e({context:null==Re?void 0:Re.context,operation:Pe,record:at})})}detach(){for(const j of this._viewCache)j.destroy();this._viewCache=[]}_insertView(j,ae,he,ye){const $e=this._insertViewFromCache(ae,he);if($e)return void($e.context.$implicit=ye);const at=j();return he.createEmbeddedView(at.templateRef,at.context,at.index)}_detachAndCacheView(j,ae){const he=ae.detach(j);this._maybeCacheView(he,ae)}_moveView(j,ae,he,ye){const $e=he.get(j);return he.move($e,ae),$e.context.$implicit=ye,$e}_maybeCacheView(j,ae){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(j);else{const he=ae.indexOf(j);-1===he?j.destroy():ae.remove(he)}}_insertViewFromCache(j,ae){const he=this._viewCache.pop();return he&&ae.insert(he,j),he||null}}class E{constructor(j=!1,ae,he=!0){this._multiple=j,this._emitChanges=he,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new h.xQ,ae&&ae.length&&(j?ae.forEach(ye=>this._markSelected(ye)):this._markSelected(ae[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...j){this._verifyValueAssignment(j),j.forEach(ae=>this._markSelected(ae)),this._emitChangeEvent()}deselect(...j){this._verifyValueAssignment(j),j.forEach(ae=>this._unmarkSelected(ae)),this._emitChangeEvent()}toggle(j){this.isSelected(j)?this.deselect(j):this.select(j)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(j){return this._selection.has(j)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(j){this._multiple&&this.selected&&this._selected.sort(j)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(j){this.isSelected(j)||(this._multiple||this._unmarkAll(),this._selection.add(j),this._emitChanges&&this._selectedToEmit.push(j))}_unmarkSelected(j){this.isSelected(j)&&(this._selection.delete(j),this._emitChanges&&this._deselectedToEmit.push(j))}_unmarkAll(){this.isEmpty()||this._selection.forEach(j=>this._unmarkSelected(j))}_verifyValueAssignment(j){}}const P=new _.InjectionToken("_ViewRepeater")},6461:(Le,T,d)=>{"use strict";d.d(T,{A:()=>It,zL:()=>D,ZH:()=>l,jx:()=>w,yY:()=>Pe,JH:()=>at,uR:()=>j,K5:()=>a,hY:()=>M,Sd:()=>ae,oh:()=>he,b2:()=>gi,MW:()=>Be,aO:()=>et,SV:()=>$e,JU:()=>C,L_:()=>S,Mf:()=>h,LH:()=>ye,Z:()=>re,xE:()=>Ne,Vb:()=>bi});const l=8,h=9,a=13,C=16,w=17,D=18,M=27,S=32,j=35,ae=36,he=37,ye=38,$e=39,at=40,Pe=46,Ne=48,et=57,It=65,re=90,Be=91,gi=224;function bi(li,...qn){return qn.length?qn.some(_i=>li[_i]):li.altKey||li.shiftKey||li.ctrlKey||li.metaKey}},5072:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{BreakpointObserver:()=>at,Breakpoints:()=>Me,LayoutModule:()=>L,MediaMatcher:()=>he});var o=d(7716),l=d(9490),h=d(9765),_=d(9112),a=d(8071),C=d(9897),w=d(5257),D=d(3653),g=d(4395),E=d(8002),M=d(9761),S=d(6782),P=d(521);let L=(()=>{class Re{}return Re.\u0275fac=function(Ne){return new(Ne||Re)},Re.\u0275mod=o.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=o.\u0275\u0275defineInjector({}),Re})();const j=new Set;let ae,he=(()=>{class Re{constructor(Ne){this._platform=Ne,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$e}matchMedia(Ne){return(this._platform.WEBKIT||this._platform.BLINK)&&function(Re){if(!j.has(Re))try{ae||(ae=document.createElement("style"),ae.setAttribute("type","text/css"),document.head.appendChild(ae)),ae.sheet&&(ae.sheet.insertRule(`@media ${Re} {body{ }}`,0),j.add(Re))}catch(Pe){console.error(Pe)}}(Ne),this._matchMedia(Ne)}}return Re.\u0275fac=function(Ne){return new(Ne||Re)(o.\u0275\u0275inject(P.t4))},Re.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Re(o.\u0275\u0275inject(P.t4))},token:Re,providedIn:"root"}),Re})();function $e(Re){return{matches:"all"===Re||""===Re,media:Re,addListener:()=>{},removeListener:()=>{}}}let at=(()=>{class Re{constructor(Ne,Ct){this._mediaMatcher=Ne,this._zone=Ct,this._queries=new Map,this._destroySubject=new h.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(Ne){return Ze((0,l.Eq)(Ne)).some(te=>this._registerQuery(te).mql.matches)}observe(Ne){const te=Ze((0,l.Eq)(Ne)).map(X=>this._registerQuery(X).observable);let ge=(0,_.aj)(te);return ge=(0,a.z)(ge.pipe((0,w.q)(1)),ge.pipe((0,D.T)(1),(0,g.b)(0))),ge.pipe((0,E.U)(X=>{const ce={matches:!1,breakpoints:{}};return X.forEach(({matches:Ae,query:Ce})=>{ce.matches=ce.matches||Ae,ce.breakpoints[Ce]=Ae}),ce}))}_registerQuery(Ne){if(this._queries.has(Ne))return this._queries.get(Ne);const Ct=this._mediaMatcher.matchMedia(Ne),ge={observable:new C.y(X=>{const ce=Ae=>this._zone.run(()=>X.next(Ae));return Ct.addListener(ce),()=>{Ct.removeListener(ce)}}).pipe((0,M.O)(Ct),(0,E.U)(({matches:X})=>({query:Ne,matches:X})),(0,S.R)(this._destroySubject)),mql:Ct};return this._queries.set(Ne,ge),ge}}return Re.\u0275fac=function(Ne){return new(Ne||Re)(o.\u0275\u0275inject(he),o.\u0275\u0275inject(o.NgZone))},Re.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Re(o.\u0275\u0275inject(he),o.\u0275\u0275inject(o.NgZone))},token:Re,providedIn:"root"}),Re})();function Ze(Re){return Re.map(Pe=>Pe.split(",")).reduce((Pe,Ne)=>Pe.concat(Ne)).map(Pe=>Pe.trim())}const Me={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},8553:(Le,T,d)=>{"use strict";d.d(T,{wD:()=>D,yq:()=>w,Q8:()=>g});var o=d(9490),l=d(7716),h=d(9897),_=d(9765),a=d(4395);let C=(()=>{class E{create(S){return"undefined"==typeof MutationObserver?null:new MutationObserver(S)}}return E.\u0275fac=function(S){return new(S||E)},E.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new E},token:E,providedIn:"root"}),E})(),w=(()=>{class E{constructor(S){this._mutationObserverFactory=S,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((S,P)=>this._cleanupObserver(P))}observe(S){const P=(0,o.fI)(S);return new h.y(L=>{const ae=this._observeElement(P).subscribe(L);return()=>{ae.unsubscribe(),this._unobserveElement(P)}})}_observeElement(S){if(this._observedElements.has(S))this._observedElements.get(S).count++;else{const P=new _.xQ,L=this._mutationObserverFactory.create(j=>P.next(j));L&&L.observe(S,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(S,{observer:L,stream:P,count:1})}return this._observedElements.get(S).stream}_unobserveElement(S){this._observedElements.has(S)&&(this._observedElements.get(S).count--,this._observedElements.get(S).count||this._cleanupObserver(S))}_cleanupObserver(S){if(this._observedElements.has(S)){const{observer:P,stream:L}=this._observedElements.get(S);P&&P.disconnect(),L.complete(),this._observedElements.delete(S)}}}return E.\u0275fac=function(S){return new(S||E)(l.\u0275\u0275inject(C))},E.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new E(l.\u0275\u0275inject(C))},token:E,providedIn:"root"}),E})(),D=(()=>{class E{constructor(S,P,L){this._contentObserver=S,this._elementRef=P,this._ngZone=L,this.event=new l.EventEmitter,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(S){this._disabled=(0,o.Ig)(S),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(S){this._debounce=(0,o.su)(S),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const S=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?S.pipe((0,a.b)(this.debounce)):S).subscribe(this.event)})}_unsubscribe(){var S;null===(S=this._currentSubscription)||void 0===S||S.unsubscribe()}}return E.\u0275fac=function(S){return new(S||E)(l.\u0275\u0275directiveInject(w),l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.NgZone))},E.\u0275dir=l.\u0275\u0275defineDirective({type:E,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),E})(),g=(()=>{class E{}return E.\u0275fac=function(S){return new(S||E)},E.\u0275mod=l.\u0275\u0275defineNgModule({type:E}),E.\u0275inj=l.\u0275\u0275defineInjector({providers:[C]}),E})()},625:(Le,T,d)=>{"use strict";d.d(T,{aV:()=>rt,X_:()=>te,Xj:()=>je,U8:()=>ft});var o=d(5197),l=d(7716),h=d(521),_=d(946),a=d(8583),C=d(9490),w=d(7636),D=d(9765),g=d(826),E=d(6682);d(7393);var j=d(5257),ae=d(6782);d(6461);const ye=(0,h.Mq)();class $e{constructor(x,F){this._viewportRuler=x,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=F}attach(){}enable(){if(this._canBeEnabled()){const x=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=x.style.left||"",this._previousHTMLStyles.top=x.style.top||"",x.style.left=(0,C.HM)(-this._previousScrollPosition.left),x.style.top=(0,C.HM)(-this._previousScrollPosition.top),x.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const x=this._document.documentElement,R=x.style,de=this._document.body.style,z=R.scrollBehavior||"",re=de.scrollBehavior||"";this._isEnabled=!1,R.left=this._previousHTMLStyles.left,R.top=this._previousHTMLStyles.top,x.classList.remove("cdk-global-scrollblock"),ye&&(R.scrollBehavior=de.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ye&&(R.scrollBehavior=z,de.scrollBehavior=re)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const F=this._document.body,R=this._viewportRuler.getViewportSize();return F.scrollHeight>R.height||F.scrollWidth>R.width}}class Ze{constructor(x,F,R,de){this._scrollDispatcher=x,this._ngZone=F,this._viewportRuler=R,this._config=de,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(x){this._overlayRef=x}enable(){if(this._scrollSubscription)return;const x=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=x.subscribe(()=>{const F=this._viewportRuler.getViewportScrollPosition().top;Math.abs(F-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=x.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Me{enable(){}disable(){}attach(){}}function Re(Ye,x){return x.some(F=>Ye.bottom<F.top||Ye.top>F.bottom||Ye.right<F.left||Ye.left>F.right)}function Pe(Ye,x){return x.some(F=>Ye.top<F.top||Ye.bottom>F.bottom||Ye.left<F.left||Ye.right>F.right)}class Ne{constructor(x,F,R,de){this._scrollDispatcher=x,this._viewportRuler=F,this._ngZone=R,this._config=de,this._scrollSubscription=null}attach(x){this._overlayRef=x}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const F=this._overlayRef.overlayElement.getBoundingClientRect(),{width:R,height:de}=this._viewportRuler.getViewportSize();Re(F,[{width:R,height:de,bottom:de,right:R,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let Ct=(()=>{class Ye{constructor(F,R,de,z){this._scrollDispatcher=F,this._viewportRuler=R,this._ngZone=de,this.noop=()=>new Me,this.close=re=>new Ze(this._scrollDispatcher,this._ngZone,this._viewportRuler,re),this.block=()=>new $e(this._viewportRuler,this._document),this.reposition=re=>new Ne(this._scrollDispatcher,this._viewportRuler,this._ngZone,re),this._document=z}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(o.mF),l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(a.DOCUMENT))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(o.mF),l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(a.DOCUMENT))},token:Ye,providedIn:"root"}),Ye})();class te{constructor(x){if(this.scrollStrategy=new Me,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,x){const F=Object.keys(x);for(const R of F)void 0!==x[R]&&(this[R]=x[R])}}}class ge{constructor(x,F,R,de,z){this.offsetX=R,this.offsetY=de,this.panelClass=z,this.originX=x.originX,this.originY=x.originY,this.overlayX=F.overlayX,this.overlayY=F.overlayY}}class ce{constructor(x,F){this.connectionPair=x,this.scrollableViewProperties=F}}let Ue=(()=>{class Ye{constructor(F){this._attachedOverlays=[],this._document=F}ngOnDestroy(){this.detach()}add(F){this.remove(F),this._attachedOverlays.push(F)}remove(F){const R=this._attachedOverlays.indexOf(F);R>-1&&this._attachedOverlays.splice(R,1),0===this._attachedOverlays.length&&this.detach()}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(a.DOCUMENT))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(a.DOCUMENT))},token:Ye,providedIn:"root"}),Ye})(),et=(()=>{class Ye extends Ue{constructor(F){super(F),this._keydownListener=R=>{const de=this._attachedOverlays;for(let z=de.length-1;z>-1;z--)if(de[z]._keydownEvents.observers.length>0){de[z]._keydownEvents.next(R);break}}}add(F){super.add(F),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(a.DOCUMENT))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(a.DOCUMENT))},token:Ye,providedIn:"root"}),Ye})(),pt=(()=>{class Ye extends Ue{constructor(F,R){super(F),this._platform=R,this._cursorStyleIsSet=!1,this._pointerDownListener=de=>{this._pointerDownEventTarget=(0,h.sA)(de)},this._clickListener=de=>{const z=(0,h.sA)(de),re="click"===de.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:z;this._pointerDownEventTarget=null;const Be=this._attachedOverlays.slice();for(let gt=Be.length-1;gt>-1;gt--){const Et=Be[gt];if(!(Et._outsidePointerEvents.observers.length<1)&&Et.hasAttached()){if(Et.overlayElement.contains(z)||Et.overlayElement.contains(re))break;Et._outsidePointerEvents.next(de)}}}}add(F){if(super.add(F),!this._isAttached){const R=this._document.body;R.addEventListener("pointerdown",this._pointerDownListener,!0),R.addEventListener("click",this._clickListener,!0),R.addEventListener("auxclick",this._clickListener,!0),R.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=R.style.cursor,R.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const F=this._document.body;F.removeEventListener("pointerdown",this._pointerDownListener,!0),F.removeEventListener("click",this._clickListener,!0),F.removeEventListener("auxclick",this._clickListener,!0),F.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(F.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(h.t4))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(h.t4))},token:Ye,providedIn:"root"}),Ye})(),je=(()=>{class Ye{constructor(F,R){this._platform=R,this._document=F}ngOnDestroy(){const F=this._containerElement;F&&F.parentNode&&F.parentNode.removeChild(F)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const F="cdk-overlay-container";if(this._platform.isBrowser||(0,h.Oy)()){const de=this._document.querySelectorAll(`.${F}[platform="server"], .${F}[platform="test"]`);for(let z=0;z<de.length;z++)de[z].parentNode.removeChild(de[z])}const R=this._document.createElement("div");R.classList.add(F),(0,h.Oy)()?R.setAttribute("platform","test"):this._platform.isBrowser||R.setAttribute("platform","server"),this._document.body.appendChild(R),this._containerElement=R}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(h.t4))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(h.t4))},token:Ye,providedIn:"root"}),Ye})();class tt{constructor(x,F,R,de,z,re,Be,gt,Et){this._portalOutlet=x,this._host=F,this._pane=R,this._config=de,this._ngZone=z,this._keyboardDispatcher=re,this._document=Be,this._location=gt,this._outsideClickDispatcher=Et,this._backdropElement=null,this._backdropClick=new D.xQ,this._attachments=new D.xQ,this._detachments=new D.xQ,this._locationChanges=g.w.EMPTY,this._backdropClickHandler=xt=>this._backdropClick.next(xt),this._keydownEvents=new D.xQ,this._outsidePointerEvents=new D.xQ,de.scrollStrategy&&(this._scrollStrategy=de.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=de.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(x){let F=this._portalOutlet.attach(x);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,j.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),F}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const x=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),x}dispose(){const x=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,x&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(x){x!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=x,this.hasAttached()&&(x.attach(this),this.updatePosition()))}updateSize(x){this._config=Object.assign(Object.assign({},this._config),x),this._updateElementSize()}setDirection(x){this._config=Object.assign(Object.assign({},this._config),{direction:x}),this._updateElementDirection()}addPanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!0)}removePanelClass(x){this._pane&&this._toggleClasses(this._pane,x,!1)}getDirection(){const x=this._config.direction;return x?"string"==typeof x?x:x.value:"ltr"}updateScrollStrategy(x){x!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=x,this.hasAttached()&&(x.attach(this),x.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const x=this._pane.style;x.width=(0,C.HM)(this._config.width),x.height=(0,C.HM)(this._config.height),x.minWidth=(0,C.HM)(this._config.minWidth),x.minHeight=(0,C.HM)(this._config.minHeight),x.maxWidth=(0,C.HM)(this._config.maxWidth),x.maxHeight=(0,C.HM)(this._config.maxHeight)}_togglePointerEvents(x){this._pane.style.pointerEvents=x?"":"none"}_attachBackdrop(){const x="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(x)})}):this._backdropElement.classList.add(x)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const x=this._backdropElement;if(!x)return;let F;const R=()=>{x&&(x.removeEventListener("click",this._backdropClickHandler),x.removeEventListener("transitionend",R),this._disposeBackdrop(x)),this._config.backdropClass&&this._toggleClasses(x,this._config.backdropClass,!1),clearTimeout(F)};x.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{x.addEventListener("transitionend",R)}),x.style.pointerEvents="none",F=this._ngZone.runOutsideAngular(()=>setTimeout(R,500))}_toggleClasses(x,F,R){const de=x.classList;(0,C.Eq)(F).forEach(z=>{z&&(R?de.add(z):de.remove(z))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const x=this._ngZone.onStable.pipe((0,ae.R)((0,E.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),x.unsubscribe())})})}_disposeScrollStrategy(){const x=this._scrollStrategy;x&&(x.disable(),x.detach&&x.detach())}_disposeBackdrop(x){x&&(x.parentNode&&x.parentNode.removeChild(x),this._backdropElement===x&&(this._backdropElement=null))}}const ut="cdk-overlay-connected-position-bounding-box",It=/([A-Za-z%]+)$/;class Xe{constructor(x,F,R,de,z){this._viewportRuler=F,this._document=R,this._platform=de,this._overlayContainer=z,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new D.xQ,this._resizeSubscription=g.w.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(x)}get positions(){return this._preferredPositions}attach(x){this._validatePositions(),x.hostElement.classList.add(ut),this._overlayRef=x,this._boundingBox=x.hostElement,this._pane=x.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const x=this._originRect,F=this._overlayRect,R=this._viewportRect,de=[];let z;for(let re of this._preferredPositions){let Be=this._getOriginPoint(x,re),gt=this._getOverlayPoint(Be,F,re),Et=this._getOverlayFit(gt,F,R,re);if(Et.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(re,Be);this._canFitWithFlexibleDimensions(Et,gt,R)?de.push({position:re,origin:Be,overlayRect:F,boundingBoxRect:this._calculateBoundingBoxRect(Be,re)}):(!z||z.overlayFit.visibleArea<Et.visibleArea)&&(z={overlayFit:Et,overlayPoint:gt,originPoint:Be,position:re,overlayRect:F})}if(de.length){let re=null,Be=-1;for(const gt of de){const Et=gt.boundingBoxRect.width*gt.boundingBoxRect.height*(gt.position.weight||1);Et>Be&&(Be=Et,re=gt)}return this._isPushed=!1,void this._applyPosition(re.position,re.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(z.position,z.originPoint);this._applyPosition(z.position,z.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&dt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ut),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const x=this._lastPosition||this._preferredPositions[0],F=this._getOriginPoint(this._originRect,x);this._applyPosition(x,F)}}withScrollableContainers(x){return this._scrollables=x,this}withPositions(x){return this._preferredPositions=x,-1===x.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(x){return this._viewportMargin=x,this}withFlexibleDimensions(x=!0){return this._hasFlexibleDimensions=x,this}withGrowAfterOpen(x=!0){return this._growAfterOpen=x,this}withPush(x=!0){return this._canPush=x,this}withLockedPosition(x=!0){return this._positionLocked=x,this}setOrigin(x){return this._origin=x,this}withDefaultOffsetX(x){return this._offsetX=x,this}withDefaultOffsetY(x){return this._offsetY=x,this}withTransformOriginOn(x){return this._transformOriginSelector=x,this}_getOriginPoint(x,F){let R,de;if("center"==F.originX)R=x.left+x.width/2;else{const z=this._isRtl()?x.right:x.left,re=this._isRtl()?x.left:x.right;R="start"==F.originX?z:re}return de="center"==F.originY?x.top+x.height/2:"top"==F.originY?x.top:x.bottom,{x:R,y:de}}_getOverlayPoint(x,F,R){let de,z;return de="center"==R.overlayX?-F.width/2:"start"===R.overlayX?this._isRtl()?-F.width:0:this._isRtl()?0:-F.width,z="center"==R.overlayY?-F.height/2:"top"==R.overlayY?0:-F.height,{x:x.x+de,y:x.y+z}}_getOverlayFit(x,F,R,de){const z=se(F);let{x:re,y:Be}=x,gt=this._getOffset(de,"x"),Et=this._getOffset(de,"y");gt&&(re+=gt),Et&&(Be+=Et);let Ut=0-Be,Qt=Be+z.height-R.height,At=this._subtractOverflows(z.width,0-re,re+z.width-R.width),Lt=this._subtractOverflows(z.height,Ut,Qt),jt=At*Lt;return{visibleArea:jt,isCompletelyWithinViewport:z.width*z.height===jt,fitsInViewportVertically:Lt===z.height,fitsInViewportHorizontally:At==z.width}}_canFitWithFlexibleDimensions(x,F,R){if(this._hasFlexibleDimensions){const de=R.bottom-F.y,z=R.right-F.x,re=$(this._overlayRef.getConfig().minHeight),Be=$(this._overlayRef.getConfig().minWidth),Et=x.fitsInViewportHorizontally||null!=Be&&Be<=z;return(x.fitsInViewportVertically||null!=re&&re<=de)&&Et}return!1}_pushOverlayOnScreen(x,F,R){if(this._previousPushAmount&&this._positionLocked)return{x:x.x+this._previousPushAmount.x,y:x.y+this._previousPushAmount.y};const de=se(F),z=this._viewportRect,re=Math.max(x.x+de.width-z.width,0),Be=Math.max(x.y+de.height-z.height,0),gt=Math.max(z.top-R.top-x.y,0),Et=Math.max(z.left-R.left-x.x,0);let xt=0,Nt=0;return xt=de.width<=z.width?Et||-re:x.x<this._viewportMargin?z.left-R.left-x.x:0,Nt=de.height<=z.height?gt||-Be:x.y<this._viewportMargin?z.top-R.top-x.y:0,this._previousPushAmount={x:xt,y:Nt},{x:x.x+xt,y:x.y+Nt}}_applyPosition(x,F){if(this._setTransformOrigin(x),this._setOverlayElementStyles(F,x),this._setBoundingBoxStyles(F,x),x.panelClass&&this._addPanelClasses(x.panelClass),this._lastPosition=x,this._positionChanges.observers.length){const R=this._getScrollVisibility(),de=new ce(x,R);this._positionChanges.next(de)}this._isInitialRender=!1}_setTransformOrigin(x){if(!this._transformOriginSelector)return;const F=this._boundingBox.querySelectorAll(this._transformOriginSelector);let R,de=x.overlayY;R="center"===x.overlayX?"center":this._isRtl()?"start"===x.overlayX?"right":"left":"start"===x.overlayX?"left":"right";for(let z=0;z<F.length;z++)F[z].style.transformOrigin=`${R} ${de}`}_calculateBoundingBoxRect(x,F){const R=this._viewportRect,de=this._isRtl();let z,re,Be,xt,Nt,Ut;if("top"===F.overlayY)re=x.y,z=R.height-re+this._viewportMargin;else if("bottom"===F.overlayY)Be=R.height-x.y+2*this._viewportMargin,z=R.height-Be+this._viewportMargin;else{const Qt=Math.min(R.bottom-x.y+R.top,x.y),At=this._lastBoundingBoxSize.height;z=2*Qt,re=x.y-Qt,z>At&&!this._isInitialRender&&!this._growAfterOpen&&(re=x.y-At/2)}if("end"===F.overlayX&&!de||"start"===F.overlayX&&de)Ut=R.width-x.x+this._viewportMargin,xt=x.x-this._viewportMargin;else if("start"===F.overlayX&&!de||"end"===F.overlayX&&de)Nt=x.x,xt=R.right-x.x;else{const Qt=Math.min(R.right-x.x+R.left,x.x),At=this._lastBoundingBoxSize.width;xt=2*Qt,Nt=x.x-Qt,xt>At&&!this._isInitialRender&&!this._growAfterOpen&&(Nt=x.x-At/2)}return{top:re,left:Nt,bottom:Be,right:Ut,width:xt,height:z}}_setBoundingBoxStyles(x,F){const R=this._calculateBoundingBoxRect(x,F);!this._isInitialRender&&!this._growAfterOpen&&(R.height=Math.min(R.height,this._lastBoundingBoxSize.height),R.width=Math.min(R.width,this._lastBoundingBoxSize.width));const de={};if(this._hasExactPosition())de.top=de.left="0",de.bottom=de.right=de.maxHeight=de.maxWidth="",de.width=de.height="100%";else{const z=this._overlayRef.getConfig().maxHeight,re=this._overlayRef.getConfig().maxWidth;de.height=(0,C.HM)(R.height),de.top=(0,C.HM)(R.top),de.bottom=(0,C.HM)(R.bottom),de.width=(0,C.HM)(R.width),de.left=(0,C.HM)(R.left),de.right=(0,C.HM)(R.right),de.alignItems="center"===F.overlayX?"center":"end"===F.overlayX?"flex-end":"flex-start",de.justifyContent="center"===F.overlayY?"center":"bottom"===F.overlayY?"flex-end":"flex-start",z&&(de.maxHeight=(0,C.HM)(z)),re&&(de.maxWidth=(0,C.HM)(re))}this._lastBoundingBoxSize=R,dt(this._boundingBox.style,de)}_resetBoundingBoxStyles(){dt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){dt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(x,F){const R={},de=this._hasExactPosition(),z=this._hasFlexibleDimensions,re=this._overlayRef.getConfig();if(de){const xt=this._viewportRuler.getViewportScrollPosition();dt(R,this._getExactOverlayY(F,x,xt)),dt(R,this._getExactOverlayX(F,x,xt))}else R.position="static";let Be="",gt=this._getOffset(F,"x"),Et=this._getOffset(F,"y");gt&&(Be+=`translateX(${gt}px) `),Et&&(Be+=`translateY(${Et}px)`),R.transform=Be.trim(),re.maxHeight&&(de?R.maxHeight=(0,C.HM)(re.maxHeight):z&&(R.maxHeight="")),re.maxWidth&&(de?R.maxWidth=(0,C.HM)(re.maxWidth):z&&(R.maxWidth="")),dt(this._pane.style,R)}_getExactOverlayY(x,F,R){let de={top:"",bottom:""},z=this._getOverlayPoint(F,this._overlayRect,x);this._isPushed&&(z=this._pushOverlayOnScreen(z,this._overlayRect,R));let re=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return z.y-=re,"bottom"===x.overlayY?de.bottom=this._document.documentElement.clientHeight-(z.y+this._overlayRect.height)+"px":de.top=(0,C.HM)(z.y),de}_getExactOverlayX(x,F,R){let re,de={left:"",right:""},z=this._getOverlayPoint(F,this._overlayRect,x);return this._isPushed&&(z=this._pushOverlayOnScreen(z,this._overlayRect,R)),re=this._isRtl()?"end"===x.overlayX?"left":"right":"end"===x.overlayX?"right":"left","right"===re?de.right=this._document.documentElement.clientWidth-(z.x+this._overlayRect.width)+"px":de.left=(0,C.HM)(z.x),de}_getScrollVisibility(){const x=this._getOriginRect(),F=this._pane.getBoundingClientRect(),R=this._scrollables.map(de=>de.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Pe(x,R),isOriginOutsideView:Re(x,R),isOverlayClipped:Pe(F,R),isOverlayOutsideView:Re(F,R)}}_subtractOverflows(x,...F){return F.reduce((R,de)=>R-Math.max(de,0),x)}_getNarrowedViewportRect(){const x=this._document.documentElement.clientWidth,F=this._document.documentElement.clientHeight,R=this._viewportRuler.getViewportScrollPosition();return{top:R.top+this._viewportMargin,left:R.left+this._viewportMargin,right:R.left+x-this._viewportMargin,bottom:R.top+F-this._viewportMargin,width:x-2*this._viewportMargin,height:F-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(x,F){return"x"===F?null==x.offsetX?this._offsetX:x.offsetX:null==x.offsetY?this._offsetY:x.offsetY}_validatePositions(){}_addPanelClasses(x){this._pane&&(0,C.Eq)(x).forEach(F=>{""!==F&&-1===this._appliedPanelClasses.indexOf(F)&&(this._appliedPanelClasses.push(F),this._pane.classList.add(F))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(x=>{this._pane.classList.remove(x)}),this._appliedPanelClasses=[])}_getOriginRect(){const x=this._origin;if(x instanceof l.ElementRef)return x.nativeElement.getBoundingClientRect();if(x instanceof Element)return x.getBoundingClientRect();const F=x.width||0,R=x.height||0;return{top:x.y,bottom:x.y+R,left:x.x,right:x.x+F,height:R,width:F}}}function dt(Ye,x){for(let F in x)x.hasOwnProperty(F)&&(Ye[F]=x[F]);return Ye}function $(Ye){if("number"!=typeof Ye&&null!=Ye){const[x,F]=Ye.split(It);return F&&"px"!==F?null:parseFloat(x)}return Ye||null}function se(Ye){return{top:Math.floor(Ye.top),right:Math.floor(Ye.right),bottom:Math.floor(Ye.bottom),left:Math.floor(Ye.left),width:Math.floor(Ye.width),height:Math.floor(Ye.height)}}class H{constructor(x,F,R,de,z,re,Be){this._preferredPositions=[],this._positionStrategy=new Xe(R,de,z,re,Be).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(x,F),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(x){this._overlayRef=x,this._positionStrategy.attach(x),this._direction&&(x.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(x){this._positionStrategy.withScrollableContainers(x)}withFallbackPosition(x,F,R,de){const z=new ge(x,F,R,de);return this._preferredPositions.push(z),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(x){return this._overlayRef?this._overlayRef.setDirection(x):this._direction=x,this}withOffsetX(x){return this._positionStrategy.withDefaultOffsetX(x),this}withOffsetY(x){return this._positionStrategy.withDefaultOffsetY(x),this}withLockedPosition(x){return this._positionStrategy.withLockedPosition(x),this}withPositions(x){return this._preferredPositions=x.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(x){return this._positionStrategy.setOrigin(x),this}}const le="cdk-global-overlay-wrapper";class ne{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(x){const F=x.getConfig();this._overlayRef=x,this._width&&!F.width&&x.updateSize({width:this._width}),this._height&&!F.height&&x.updateSize({height:this._height}),x.hostElement.classList.add(le),this._isDisposed=!1}top(x=""){return this._bottomOffset="",this._topOffset=x,this._alignItems="flex-start",this}left(x=""){return this._rightOffset="",this._leftOffset=x,this._justifyContent="flex-start",this}bottom(x=""){return this._topOffset="",this._bottomOffset=x,this._alignItems="flex-end",this}right(x=""){return this._leftOffset="",this._rightOffset=x,this._justifyContent="flex-end",this}width(x=""){return this._overlayRef?this._overlayRef.updateSize({width:x}):this._width=x,this}height(x=""){return this._overlayRef?this._overlayRef.updateSize({height:x}):this._height=x,this}centerHorizontally(x=""){return this.left(x),this._justifyContent="center",this}centerVertically(x=""){return this.top(x),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const x=this._overlayRef.overlayElement.style,F=this._overlayRef.hostElement.style,R=this._overlayRef.getConfig(),{width:de,height:z,maxWidth:re,maxHeight:Be}=R,gt=!("100%"!==de&&"100vw"!==de||re&&"100%"!==re&&"100vw"!==re),Et=!("100%"!==z&&"100vh"!==z||Be&&"100%"!==Be&&"100vh"!==Be);x.position=this._cssPosition,x.marginLeft=gt?"0":this._leftOffset,x.marginTop=Et?"0":this._topOffset,x.marginBottom=this._bottomOffset,x.marginRight=this._rightOffset,gt?F.justifyContent="flex-start":"center"===this._justifyContent?F.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?F.justifyContent="flex-end":"flex-end"===this._justifyContent&&(F.justifyContent="flex-start"):F.justifyContent=this._justifyContent,F.alignItems=Et?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const x=this._overlayRef.overlayElement.style,F=this._overlayRef.hostElement,R=F.style;F.classList.remove(le),R.justifyContent=R.alignItems=x.marginTop=x.marginBottom=x.marginLeft=x.marginRight=x.position="",this._overlayRef=null,this._isDisposed=!0}}let fe=(()=>{class Ye{constructor(F,R,de,z){this._viewportRuler=F,this._document=R,this._platform=de,this._overlayContainer=z}global(){return new ne}connectedTo(F,R,de){return new H(R,de,F,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(F){return new Xe(F,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(h.t4),l.\u0275\u0275inject(je))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new Ye(l.\u0275\u0275inject(o.rL),l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(h.t4),l.\u0275\u0275inject(je))},token:Ye,providedIn:"root"}),Ye})(),Oe=0,rt=(()=>{class Ye{constructor(F,R,de,z,re,Be,gt,Et,xt,Nt,Ut){this.scrollStrategies=F,this._overlayContainer=R,this._componentFactoryResolver=de,this._positionBuilder=z,this._keyboardDispatcher=re,this._injector=Be,this._ngZone=gt,this._document=Et,this._directionality=xt,this._location=Nt,this._outsideClickDispatcher=Ut}create(F){const R=this._createHostElement(),de=this._createPaneElement(R),z=this._createPortalOutlet(de),re=new te(F);return re.direction=re.direction||this._directionality.value,new tt(z,R,de,re,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(F){const R=this._document.createElement("div");return R.id="cdk-overlay-"+Oe++,R.classList.add("cdk-overlay-pane"),F.appendChild(R),R}_createHostElement(){const F=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(F),F}_createPortalOutlet(F){return this._appRef||(this._appRef=this._injector.get(l.ApplicationRef)),new w.u0(F,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return Ye.\u0275fac=function(F){return new(F||Ye)(l.\u0275\u0275inject(Ct),l.\u0275\u0275inject(je),l.\u0275\u0275inject(l.ComponentFactoryResolver),l.\u0275\u0275inject(fe),l.\u0275\u0275inject(et),l.\u0275\u0275inject(l.Injector),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(a.DOCUMENT),l.\u0275\u0275inject(_.Is),l.\u0275\u0275inject(a.Location),l.\u0275\u0275inject(pt))},Ye.\u0275prov=l.\u0275\u0275defineInjectable({token:Ye,factory:Ye.\u0275fac}),Ye})();const Ge={provide:new l.InjectionToken("cdk-connected-overlay-scroll-strategy"),deps:[rt],useFactory:function(Ye){return()=>Ye.scrollStrategies.reposition()}};let ft=(()=>{class Ye{}return Ye.\u0275fac=function(F){return new(F||Ye)},Ye.\u0275mod=l.\u0275\u0275defineNgModule({type:Ye}),Ye.\u0275inj=l.\u0275\u0275defineInjector({providers:[rt,Ge],imports:[[_.vT,w.eL,o.Cl],o.Cl]}),Ye})()},521:(Le,T,d)=>{"use strict";d.d(T,{t4:()=>_,ud:()=>a,sA:()=>at,ht:()=>$e,kV:()=>ye,Oy:()=>Ze,_i:()=>j,i$:()=>M,Mq:()=>L});var o=d(7716),l=d(8583);let h;try{h="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Me){h=!1}let g,S,P,ae,_=(()=>{class Me{constructor(Pe){this._platformId=Pe,this.isBrowser=this._platformId?(0,l.isPlatformBrowser)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!h)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return Me.\u0275fac=function(Pe){return new(Pe||Me)(o.\u0275\u0275inject(o.PLATFORM_ID))},Me.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Me(o.\u0275\u0275inject(o.PLATFORM_ID))},token:Me,providedIn:"root"}),Me})(),a=(()=>{class Me{}return Me.\u0275fac=function(Pe){return new(Pe||Me)},Me.\u0275mod=o.\u0275\u0275defineNgModule({type:Me}),Me.\u0275inj=o.\u0275\u0275defineInjector({}),Me})();function M(Me){return function(){if(null==g&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>g=!0}))}finally{g=g||!1}return g}()?Me:!!Me.capture}function L(){if(null==P){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return P=!1,P;if("scrollBehavior"in document.documentElement.style)P=!0;else{const Me=Element.prototype.scrollTo;P=!!Me&&!/\{\s*\[native code\]\s*\}/.test(Me.toString())}}return P}function j(){if("object"!=typeof document||!document)return 0;if(null==S){const Me=document.createElement("div"),Re=Me.style;Me.dir="rtl",Re.width="1px",Re.overflow="auto",Re.visibility="hidden",Re.pointerEvents="none",Re.position="absolute";const Pe=document.createElement("div"),Ne=Pe.style;Ne.width="2px",Ne.height="1px",Me.appendChild(Pe),document.body.appendChild(Me),S=0,0===Me.scrollLeft&&(Me.scrollLeft=1,S=0===Me.scrollLeft?1:2),Me.parentNode.removeChild(Me)}return S}function ye(Me){if(function(){if(null==ae){const Me="undefined"!=typeof document?document.head:null;ae=!(!Me||!Me.createShadowRoot&&!Me.attachShadow)}return ae}()){const Re=Me.getRootNode?Me.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&Re instanceof ShadowRoot)return Re}return null}function $e(){let Me="undefined"!=typeof document&&document?document.activeElement:null;for(;Me&&Me.shadowRoot;){const Re=Me.shadowRoot.activeElement;if(Re===Me)break;Me=Re}return Me}function at(Me){return Me.composedPath?Me.composedPath()[0]:Me.target}function Ze(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7636:(Le,T,d)=>{"use strict";d.d(T,{en:()=>P,ig:()=>he,Pl:()=>$e,C5:()=>E,u0:()=>j,eL:()=>Ze,UE:()=>M});var o=d(7716),l=d(8583);class g{attach(Pe){return this._attachedHost=Pe,Pe.attach(this)}detach(){let Pe=this._attachedHost;null!=Pe&&(this._attachedHost=null,Pe.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Pe){this._attachedHost=Pe}}class E extends g{constructor(Pe,Ne,Ct,te){super(),this.component=Pe,this.viewContainerRef=Ne,this.injector=Ct,this.componentFactoryResolver=te}}class M extends g{constructor(Pe,Ne,Ct){super(),this.templateRef=Pe,this.viewContainerRef=Ne,this.context=Ct}get origin(){return this.templateRef.elementRef}attach(Pe,Ne=this.context){return this.context=Ne,super.attach(Pe)}detach(){return this.context=void 0,super.detach()}}class S extends g{constructor(Pe){super(),this.element=Pe instanceof o.ElementRef?Pe.nativeElement:Pe}}class P{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Pe){return Pe instanceof E?(this._attachedPortal=Pe,this.attachComponentPortal(Pe)):Pe instanceof M?(this._attachedPortal=Pe,this.attachTemplatePortal(Pe)):this.attachDomPortal&&Pe instanceof S?(this._attachedPortal=Pe,this.attachDomPortal(Pe)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(Pe){this._disposeFn=Pe}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class j extends P{constructor(Pe,Ne,Ct,te,ge){super(),this.outletElement=Pe,this._componentFactoryResolver=Ne,this._appRef=Ct,this._defaultInjector=te,this.attachDomPortal=X=>{const ce=X.element,Ae=this._document.createComment("dom-portal");ce.parentNode.insertBefore(Ae,ce),this.outletElement.appendChild(ce),this._attachedPortal=X,super.setDisposeFn(()=>{Ae.parentNode&&Ae.parentNode.replaceChild(ce,Ae)})},this._document=ge}attachComponentPortal(Pe){const Ct=(Pe.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Pe.component);let te;return Pe.viewContainerRef?(te=Pe.viewContainerRef.createComponent(Ct,Pe.viewContainerRef.length,Pe.injector||Pe.viewContainerRef.injector),this.setDisposeFn(()=>te.destroy())):(te=Ct.create(Pe.injector||this._defaultInjector),this._appRef.attachView(te.hostView),this.setDisposeFn(()=>{this._appRef.detachView(te.hostView),te.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(te)),this._attachedPortal=Pe,te}attachTemplatePortal(Pe){let Ne=Pe.viewContainerRef,Ct=Ne.createEmbeddedView(Pe.templateRef,Pe.context);return Ct.rootNodes.forEach(te=>this.outletElement.appendChild(te)),Ct.detectChanges(),this.setDisposeFn(()=>{let te=Ne.indexOf(Ct);-1!==te&&Ne.remove(te)}),this._attachedPortal=Pe,Ct}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(Pe){return Pe.hostView.rootNodes[0]}}let he=(()=>{class Re extends M{constructor(Ne,Ct){super(Ne,Ct)}}return Re.\u0275fac=function(Ne){return new(Ne||Re)(o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef))},Re.\u0275dir=o.\u0275\u0275defineDirective({type:Re,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[o.\u0275\u0275InheritDefinitionFeature]}),Re})(),$e=(()=>{class Re extends P{constructor(Ne,Ct,te){super(),this._componentFactoryResolver=Ne,this._viewContainerRef=Ct,this._isInitialized=!1,this.attached=new o.EventEmitter,this.attachDomPortal=ge=>{const X=ge.element,ce=this._document.createComment("dom-portal");ge.setAttachedHost(this),X.parentNode.insertBefore(ce,X),this._getRootNode().appendChild(X),this._attachedPortal=ge,super.setDisposeFn(()=>{ce.parentNode&&ce.parentNode.replaceChild(X,ce)})},this._document=te}get portal(){return this._attachedPortal}set portal(Ne){this.hasAttached()&&!Ne&&!this._isInitialized||(this.hasAttached()&&super.detach(),Ne&&super.attach(Ne),this._attachedPortal=Ne)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(Ne){Ne.setAttachedHost(this);const Ct=null!=Ne.viewContainerRef?Ne.viewContainerRef:this._viewContainerRef,ge=(Ne.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Ne.component),X=Ct.createComponent(ge,Ct.length,Ne.injector||Ct.injector);return Ct!==this._viewContainerRef&&this._getRootNode().appendChild(X.hostView.rootNodes[0]),super.setDisposeFn(()=>X.destroy()),this._attachedPortal=Ne,this._attachedRef=X,this.attached.emit(X),X}attachTemplatePortal(Ne){Ne.setAttachedHost(this);const Ct=this._viewContainerRef.createEmbeddedView(Ne.templateRef,Ne.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=Ne,this._attachedRef=Ct,this.attached.emit(Ct),Ct}_getRootNode(){const Ne=this._viewContainerRef.element.nativeElement;return Ne.nodeType===Ne.ELEMENT_NODE?Ne:Ne.parentNode}}return Re.\u0275fac=function(Ne){return new(Ne||Re)(o.\u0275\u0275directiveInject(o.ComponentFactoryResolver),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(l.DOCUMENT))},Re.\u0275dir=o.\u0275\u0275defineDirective({type:Re,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[o.\u0275\u0275InheritDefinitionFeature]}),Re})(),Ze=(()=>{class Re{}return Re.\u0275fac=function(Ne){return new(Ne||Re)},Re.\u0275mod=o.\u0275\u0275defineNgModule({type:Re}),Re.\u0275inj=o.\u0275\u0275defineInjector({}),Re})()},5197:(Le,T,d)=>{"use strict";d.d(T,{ZD:()=>wt,mF:()=>dt,Cl:()=>Je,rL:()=>H});var o=d(9490),l=d(7716),h=d(9765),_=d(5917),a=d(9897),C=d(2759),M=(d(1927),d(4581),d(826),d(5639),d(3637)),S=d(5345);class L{constructor(He){this.durationSelector=He}call(He,q){return q.subscribe(new j(He,this.durationSelector))}}class j extends S.Ds{constructor(He,q){super(He),this.durationSelector=q,this.hasValue=!1}_next(He){if(this.value=He,this.hasValue=!0,!this.throttled){let q;try{const{durationSelector:ft}=this;q=ft(He)}catch(ft){return this.destination.error(ft)}const Ge=(0,S.ft)(q,new S.IY(this));!Ge||Ge.closed?this.clearThrottle():this.add(this.throttled=Ge)}}clearThrottle(){const{value:He,hasValue:q,throttled:Ge}=this;Ge&&(this.remove(Ge),this.throttled=void 0,Ge.unsubscribe()),q&&(this.value=void 0,this.hasValue=!1,this.destination.next(He))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}var ae=d(6797);function he(ze,He=M.P){return function(ze){return function(q){return q.lift(new L(ze))}}(()=>(0,ae.H)(ze,He))}d(7393),d(4448),d(7519);var Ct=d(5435),ce=(d(6782),d(9761),d(3190),d(521)),Ae=d(8583),Ce=d(946);d(8345);let dt=(()=>{class ze{constructor(q,Ge,ft){this._ngZone=q,this._platform=Ge,this._scrolled=new h.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=ft}register(q){this.scrollContainers.has(q)||this.scrollContainers.set(q,q.elementScrolled().subscribe(()=>this._scrolled.next(q)))}deregister(q){const Ge=this.scrollContainers.get(q);Ge&&(Ge.unsubscribe(),this.scrollContainers.delete(q))}scrolled(q=20){return this._platform.isBrowser?new a.y(Ge=>{this._globalSubscription||this._addGlobalListener();const ft=q>0?this._scrolled.pipe(he(q)).subscribe(Ge):this._scrolled.subscribe(Ge);return this._scrolledCount++,()=>{ft.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,_.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((q,Ge)=>this.deregister(Ge)),this._scrolled.complete()}ancestorScrolled(q,Ge){const ft=this.getAncestorScrollContainers(q);return this.scrolled(Ge).pipe((0,Ct.h)(vt=>!vt||ft.indexOf(vt)>-1))}getAncestorScrollContainers(q){const Ge=[];return this.scrollContainers.forEach((ft,vt)=>{this._scrollableContainsElement(vt,q)&&Ge.push(vt)}),Ge}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(q,Ge){let ft=(0,o.fI)(Ge),vt=q.getElementRef().nativeElement;do{if(ft==vt)return!0}while(ft=ft.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const q=this._getWindow();return(0,C.R)(q.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return ze.\u0275fac=function(q){return new(q||ze)(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(ce.t4),l.\u0275\u0275inject(Ae.DOCUMENT,8))},ze.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new ze(l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(ce.t4),l.\u0275\u0275inject(Ae.DOCUMENT,8))},token:ze,providedIn:"root"}),ze})(),H=(()=>{class ze{constructor(q,Ge,ft){this._platform=q,this._change=new h.xQ,this._changeListener=vt=>{this._change.next(vt)},this._document=ft,Ge.runOutsideAngular(()=>{if(q.isBrowser){const vt=this._getWindow();vt.addEventListener("resize",this._changeListener),vt.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const q=this._getWindow();q.removeEventListener("resize",this._changeListener),q.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const q={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),q}getViewportRect(){const q=this.getViewportScrollPosition(),{width:Ge,height:ft}=this.getViewportSize();return{top:q.top,left:q.left,bottom:q.top+ft,right:q.left+Ge,height:ft,width:Ge}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const q=this._document,Ge=this._getWindow(),ft=q.documentElement,vt=ft.getBoundingClientRect();return{top:-vt.top||q.body.scrollTop||Ge.scrollY||ft.scrollTop||0,left:-vt.left||q.body.scrollLeft||Ge.scrollX||ft.scrollLeft||0}}change(q=20){return q>0?this._change.pipe(he(q)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const q=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:q.innerWidth,height:q.innerHeight}:{width:0,height:0}}}return ze.\u0275fac=function(q){return new(q||ze)(l.\u0275\u0275inject(ce.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(Ae.DOCUMENT,8))},ze.\u0275prov=l.\u0275\u0275defineInjectable({factory:function(){return new ze(l.\u0275\u0275inject(ce.t4),l.\u0275\u0275inject(l.NgZone),l.\u0275\u0275inject(Ae.DOCUMENT,8))},token:ze,providedIn:"root"}),ze})(),wt=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=l.\u0275\u0275defineNgModule({type:ze}),ze.\u0275inj=l.\u0275\u0275defineInjector({}),ze})(),Je=(()=>{class ze{}return ze.\u0275fac=function(q){return new(q||ze)},ze.\u0275mod=l.\u0275\u0275defineNgModule({type:ze}),ze.\u0275inj=l.\u0275\u0275defineInjector({imports:[[Ce.vT,ce.ud,wt],Ce.vT,wt]}),ze})()},9490:(Le,T,d)=>{"use strict";d.d(T,{t6:()=>_,Eq:()=>a,Ig:()=>l,HM:()=>C,fI:()=>w,su:()=>h});var o=d(7716);function l(g){return null!=g&&"false"!=`${g}`}function h(g,E=0){return _(g)?Number(g):E}function _(g){return!isNaN(parseFloat(g))&&!isNaN(Number(g))}function a(g){return Array.isArray(g)?g:[g]}function C(g){return null==g?"":"string"==typeof g?g:`${g}px`}function w(g){return g instanceof o.ElementRef?g.nativeElement:g}},8583:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{APP_BASE_HREF:()=>$e,AsyncPipe:()=>Fr,CommonModule:()=>Mi,CurrencyPipe:()=>Br,DOCUMENT:()=>w,DatePipe:()=>po,DecimalPipe:()=>wi,FormStyle:()=>X,FormatWidth:()=>Ae,HashLocationStrategy:()=>Ze,I18nPluralPipe:()=>Ti,I18nSelectPipe:()=>mo,JsonPipe:()=>ko,KeyValuePipe:()=>Lr,LOCATION_INITIALIZED:()=>E,Location:()=>Me,LocationStrategy:()=>he,LowerCasePipe:()=>Nr,NgClass:()=>Ft,NgComponentOutlet:()=>$t,NgForOf:()=>Wt,NgForOfContext:()=>qt,NgIf:()=>bi,NgIfContext:()=>li,NgLocaleLocalization:()=>pe,NgLocalization:()=>we,NgPlural:()=>Cn,NgPluralCase:()=>Ci,NgStyle:()=>ci,NgSwitch:()=>ei,NgSwitchCase:()=>xn,NgSwitchDefault:()=>Xi,NgTemplateOutlet:()=>ui,NumberFormatStyle:()=>te,NumberSymbol:()=>Ce,PathLocationStrategy:()=>at,PercentPipe:()=>Li,PlatformLocation:()=>D,Plural:()=>ge,SlicePipe:()=>yi,TitleCasePipe:()=>to,TranslationWidth:()=>ce,UpperCasePipe:()=>Di,VERSION:()=>Rn,ViewportScroller:()=>Cr,WeekDay:()=>Ue,XhrFactory:()=>go,formatCurrency:()=>Rt,formatDate:()=>gt,formatNumber:()=>be,formatPercent:()=>ee,getCurrencySymbol:()=>vt,getLocaleCurrencyCode:()=>Oe,getLocaleCurrencyName:()=>fe,getLocaleCurrencySymbol:()=>ne,getLocaleDateFormat:()=>dt,getLocaleDateTimeFormat:()=>se,getLocaleDayNames:()=>je,getLocaleDayPeriods:()=>pt,getLocaleDirection:()=>q,getLocaleEraNames:()=>ut,getLocaleExtraDayPeriodRules:()=>ze,getLocaleExtraDayPeriods:()=>He,getLocaleFirstDayOfWeek:()=>It,getLocaleId:()=>et,getLocaleMonthNames:()=>tt,getLocaleNumberFormat:()=>le,getLocaleNumberSymbol:()=>H,getLocalePluralCase:()=>wt,getLocaleTimeFormat:()=>$,getLocaleWeekEndRange:()=>Xe,getNumberOfCurrencyDigits:()=>x,isPlatformBrowser:()=>br,isPlatformServer:()=>Hr,isPlatformWorkerApp:()=>Si,isPlatformWorkerUi:()=>$r,registerLocaleData:()=>Ve,\u0275BrowserPlatformLocation:()=>M,\u0275DomAdapter:()=>C,\u0275NullViewportScroller:()=>Tr,\u0275PLATFORM_BROWSER_ID:()=>ji,\u0275PLATFORM_SERVER_ID:()=>Vr,\u0275PLATFORM_WORKER_APP_ID:()=>tr,\u0275PLATFORM_WORKER_UI_ID:()=>vr,\u0275angular_packages_common_common_a:()=>g,\u0275angular_packages_common_common_b:()=>P,\u0275angular_packages_common_common_c:()=>Re,\u0275angular_packages_common_common_d:()=>ye,\u0275angular_packages_common_common_e:()=>ni,\u0275angular_packages_common_common_f:()=>er,\u0275getDOM:()=>h,\u0275parseCookieValue:()=>lt,\u0275setRootDomAdapter:()=>a});var o=d(7716);let l=null;function h(){return l}function a(O){l||(l=O)}class C{}const w=new o.InjectionToken("DocumentToken");let D=(()=>{class O{historyGo(k){throw new Error("Not implemented")}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:g,token:O,providedIn:"platform"}),O})();function g(){return(0,o.\u0275\u0275inject)(M)}const E=new o.InjectionToken("Location Initialized");let M=(()=>{class O extends D{constructor(k){super(),this._doc=k,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return h().getBaseHref(this._doc)}onPopState(k){const m=h().getGlobalEventTarget(this._doc,"window");return m.addEventListener("popstate",k,!1),()=>m.removeEventListener("popstate",k)}onHashChange(k){const m=h().getGlobalEventTarget(this._doc,"window");return m.addEventListener("hashchange",k,!1),()=>m.removeEventListener("hashchange",k)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(k){this.location.pathname=k}pushState(k,m,v){S()?this._history.pushState(k,m,v):this.location.hash=v}replaceState(k,m,v){S()?this._history.replaceState(k,m,v):this.location.hash=v}forward(){this._history.forward()}back(){this._history.back()}historyGo(k=0){this._history.go(k)}getState(){return this._history.state}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(w))},O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:P,token:O,providedIn:"platform"}),O})();function S(){return!!window.history.pushState}function P(){return new M((0,o.\u0275\u0275inject)(w))}function L(O,ie){if(0==O.length)return ie;if(0==ie.length)return O;let k=0;return O.endsWith("/")&&k++,ie.startsWith("/")&&k++,2==k?O+ie.substring(1):1==k?O+ie:O+"/"+ie}function j(O){const ie=O.match(/#|\?|$/),k=ie&&ie.index||O.length;return O.slice(0,k-("/"===O[k-1]?1:0))+O.slice(k)}function ae(O){return O&&"?"!==O[0]?"?"+O:O}let he=(()=>{class O{historyGo(k){throw new Error("Not implemented")}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:ye,token:O,providedIn:"root"}),O})();function ye(O){const ie=(0,o.\u0275\u0275inject)(w).location;return new at((0,o.\u0275\u0275inject)(D),ie&&ie.origin||"")}const $e=new o.InjectionToken("appBaseHref");let at=(()=>{class O extends he{constructor(k,m){if(super(),this._platformLocation=k,this._removeListenerFns=[],null==m&&(m=this._platformLocation.getBaseHrefFromDOM()),null==m)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=m}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}prepareExternalUrl(k){return L(this._baseHref,k)}path(k=!1){const m=this._platformLocation.pathname+ae(this._platformLocation.search),v=this._platformLocation.hash;return v&&k?`${m}${v}`:m}pushState(k,m,v,b){const U=this.prepareExternalUrl(v+ae(b));this._platformLocation.pushState(k,m,U)}replaceState(k,m,v,b){const U=this.prepareExternalUrl(v+ae(b));this._platformLocation.replaceState(k,m,U)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var m,v;null===(v=(m=this._platformLocation).historyGo)||void 0===v||v.call(m,k)}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(D),o.\u0275\u0275inject($e,8))},O.\u0275prov=o.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})(),Ze=(()=>{class O extends he{constructor(k,m){super(),this._platformLocation=k,this._baseHref="",this._removeListenerFns=[],null!=m&&(this._baseHref=m)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(k){this._removeListenerFns.push(this._platformLocation.onPopState(k),this._platformLocation.onHashChange(k))}getBaseHref(){return this._baseHref}path(k=!1){let m=this._platformLocation.hash;return null==m&&(m="#"),m.length>0?m.substring(1):m}prepareExternalUrl(k){const m=L(this._baseHref,k);return m.length>0?"#"+m:m}pushState(k,m,v,b){let U=this.prepareExternalUrl(v+ae(b));0==U.length&&(U=this._platformLocation.pathname),this._platformLocation.pushState(k,m,U)}replaceState(k,m,v,b){let U=this.prepareExternalUrl(v+ae(b));0==U.length&&(U=this._platformLocation.pathname),this._platformLocation.replaceState(k,m,U)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(k=0){var m,v;null===(v=(m=this._platformLocation).historyGo)||void 0===v||v.call(m,k)}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(D),o.\u0275\u0275inject($e,8))},O.\u0275prov=o.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})(),Me=(()=>{class O{constructor(k,m){this._subject=new o.EventEmitter,this._urlChangeListeners=[],this._platformStrategy=k;const v=this._platformStrategy.getBaseHref();this._platformLocation=m,this._baseHref=j(Ne(v)),this._platformStrategy.onPopState(b=>{this._subject.emit({url:this.path(!0),pop:!0,state:b.state,type:b.type})})}path(k=!1){return this.normalize(this._platformStrategy.path(k))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(k,m=""){return this.path()==this.normalize(k+ae(m))}normalize(k){return O.stripTrailingSlash(function(O,ie){return O&&ie.startsWith(O)?ie.substring(O.length):ie}(this._baseHref,Ne(k)))}prepareExternalUrl(k){return k&&"/"!==k[0]&&(k="/"+k),this._platformStrategy.prepareExternalUrl(k)}go(k,m="",v=null){this._platformStrategy.pushState(v,"",k,m),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+ae(m)),v)}replaceState(k,m="",v=null){this._platformStrategy.replaceState(v,"",k,m),this._notifyUrlChangeListeners(this.prepareExternalUrl(k+ae(m)),v)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(k=0){var m,v;null===(v=(m=this._platformStrategy).historyGo)||void 0===v||v.call(m,k)}onUrlChange(k){this._urlChangeListeners.push(k),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(m=>{this._notifyUrlChangeListeners(m.url,m.state)}))}_notifyUrlChangeListeners(k="",m){this._urlChangeListeners.forEach(v=>v(k,m))}subscribe(k,m,v){return this._subject.subscribe({next:k,error:m,complete:v})}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(he),o.\u0275\u0275inject(D))},O.normalizeQueryParams=ae,O.joinWithSlash=L,O.stripTrailingSlash=j,O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:Re,token:O,providedIn:"root"}),O})();function Re(){return new Me((0,o.\u0275\u0275inject)(he),(0,o.\u0275\u0275inject)(D))}function Ne(O){return O.replace(/\/index.html$/,"")}const Ct={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var te=(()=>((te=te||{})[te.Decimal=0]="Decimal",te[te.Percent=1]="Percent",te[te.Currency=2]="Currency",te[te.Scientific=3]="Scientific",te))(),ge=(()=>((ge=ge||{})[ge.Zero=0]="Zero",ge[ge.One=1]="One",ge[ge.Two=2]="Two",ge[ge.Few=3]="Few",ge[ge.Many=4]="Many",ge[ge.Other=5]="Other",ge))(),X=(()=>((X=X||{})[X.Format=0]="Format",X[X.Standalone=1]="Standalone",X))(),ce=(()=>((ce=ce||{})[ce.Narrow=0]="Narrow",ce[ce.Abbreviated=1]="Abbreviated",ce[ce.Wide=2]="Wide",ce[ce.Short=3]="Short",ce))(),Ae=(()=>((Ae=Ae||{})[Ae.Short=0]="Short",Ae[Ae.Medium=1]="Medium",Ae[Ae.Long=2]="Long",Ae[Ae.Full=3]="Full",Ae))(),Ce=(()=>((Ce=Ce||{})[Ce.Decimal=0]="Decimal",Ce[Ce.Group=1]="Group",Ce[Ce.List=2]="List",Ce[Ce.PercentSign=3]="PercentSign",Ce[Ce.PlusSign=4]="PlusSign",Ce[Ce.MinusSign=5]="MinusSign",Ce[Ce.Exponential=6]="Exponential",Ce[Ce.SuperscriptingExponent=7]="SuperscriptingExponent",Ce[Ce.PerMille=8]="PerMille",Ce[Ce.Infinity=9]="Infinity",Ce[Ce.NaN=10]="NaN",Ce[Ce.TimeSeparator=11]="TimeSeparator",Ce[Ce.CurrencyDecimal=12]="CurrencyDecimal",Ce[Ce.CurrencyGroup=13]="CurrencyGroup",Ce))(),Ue=(()=>((Ue=Ue||{})[Ue.Sunday=0]="Sunday",Ue[Ue.Monday=1]="Monday",Ue[Ue.Tuesday=2]="Tuesday",Ue[Ue.Wednesday=3]="Wednesday",Ue[Ue.Thursday=4]="Thursday",Ue[Ue.Friday=5]="Friday",Ue[Ue.Saturday=6]="Saturday",Ue))();function et(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.LocaleId]}function pt(O,ie,k){const m=(0,o.\u0275findLocaleData)(O),b=Ge([m[o.\u0275LocaleDataIndex.DayPeriodsFormat],m[o.\u0275LocaleDataIndex.DayPeriodsStandalone]],ie);return Ge(b,k)}function je(O,ie,k){const m=(0,o.\u0275findLocaleData)(O),b=Ge([m[o.\u0275LocaleDataIndex.DaysFormat],m[o.\u0275LocaleDataIndex.DaysStandalone]],ie);return Ge(b,k)}function tt(O,ie,k){const m=(0,o.\u0275findLocaleData)(O),b=Ge([m[o.\u0275LocaleDataIndex.MonthsFormat],m[o.\u0275LocaleDataIndex.MonthsStandalone]],ie);return Ge(b,k)}function ut(O,ie){return Ge((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.Eras],ie)}function It(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.FirstDayOfWeek]}function Xe(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.WeekendRange]}function dt(O,ie){return Ge((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.DateFormat],ie)}function $(O,ie){return Ge((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.TimeFormat],ie)}function se(O,ie){return Ge((0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.DateTimeFormat],ie)}function H(O,ie){const k=(0,o.\u0275findLocaleData)(O),m=k[o.\u0275LocaleDataIndex.NumberSymbols][ie];if(void 0===m){if(ie===Ce.CurrencyDecimal)return k[o.\u0275LocaleDataIndex.NumberSymbols][Ce.Decimal];if(ie===Ce.CurrencyGroup)return k[o.\u0275LocaleDataIndex.NumberSymbols][Ce.Group]}return m}function le(O,ie){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.NumberFormats][ie]}function ne(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.CurrencySymbol]||null}function fe(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.CurrencyName]||null}function Oe(O){return(0,o.\u0275getLocaleCurrencyCode)(O)}const wt=o.\u0275getLocalePluralCase;function Je(O){if(!O[o.\u0275LocaleDataIndex.ExtraData])throw new Error(`Missing extra locale data for the locale "${O[o.\u0275LocaleDataIndex.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function ze(O){const ie=(0,o.\u0275findLocaleData)(O);return Je(ie),(ie[o.\u0275LocaleDataIndex.ExtraData][2]||[]).map(m=>"string"==typeof m?ft(m):[ft(m[0]),ft(m[1])])}function He(O,ie,k){const m=(0,o.\u0275findLocaleData)(O);Je(m);const b=Ge([m[o.\u0275LocaleDataIndex.ExtraData][0],m[o.\u0275LocaleDataIndex.ExtraData][1]],ie)||[];return Ge(b,k)||[]}function q(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.Directionality]}function Ge(O,ie){for(let k=ie;k>-1;k--)if(void 0!==O[k])return O[k];throw new Error("Locale data API: locale data undefined")}function ft(O){const[ie,k]=O.split(":");return{hours:+ie,minutes:+k}}function vt(O,ie,k="en"){const m=function(O){return(0,o.\u0275findLocaleData)(O)[o.\u0275LocaleDataIndex.Currencies]}(k)[O]||Ct[O]||[],v=m[1];return"narrow"===ie&&"string"==typeof v?v:m[0]||O}function x(O){let ie;const k=Ct[O];return k&&(ie=k[2]),"number"==typeof ie?ie:2}const F=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,R={},de=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var z=(()=>((z=z||{})[z.Short=0]="Short",z[z.ShortGMT=1]="ShortGMT",z[z.Long=2]="Long",z[z.Extended=3]="Extended",z))(),re=(()=>((re=re||{})[re.FullYear=0]="FullYear",re[re.Month=1]="Month",re[re.Date=2]="Date",re[re.Hours=3]="Hours",re[re.Minutes=4]="Minutes",re[re.Seconds=5]="Seconds",re[re.FractionalSeconds=6]="FractionalSeconds",re[re.Day=7]="Day",re))(),Be=(()=>((Be=Be||{})[Be.DayPeriods=0]="DayPeriods",Be[Be.Days=1]="Days",Be[Be.Months=2]="Months",Be[Be.Eras=3]="Eras",Be))();function gt(O,ie,k,m){let v=function(O){if(dn(O))return O;if("number"==typeof O&&!isNaN(O))return new Date(O);if("string"==typeof O){if(O=O.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(O)){const[v,b=1,U=1]=O.split("-").map(Qe=>+Qe);return Et(v,b-1,U)}const k=parseFloat(O);if(!isNaN(O-k))return new Date(k);let m;if(m=O.match(F))return function(O){const ie=new Date(0);let k=0,m=0;const v=O[8]?ie.setUTCFullYear:ie.setFullYear,b=O[8]?ie.setUTCHours:ie.setHours;O[9]&&(k=Number(O[9]+O[10]),m=Number(O[9]+O[11])),v.call(ie,Number(O[1]),Number(O[2])-1,Number(O[3]));const U=Number(O[4]||0)-k,Qe=Number(O[5]||0)-m,St=Number(O[6]||0),Zt=Math.floor(1e3*parseFloat("0."+(O[7]||0)));return b.call(ie,U,Qe,St,Zt),ie}(m)}const ie=new Date(O);if(!dn(ie))throw new Error(`Unable to convert "${O}" into a date`);return ie}(O);ie=xt(k,ie)||ie;let Qe,U=[];for(;ie;){if(Qe=de.exec(ie),!Qe){U.push(ie);break}{U=U.concat(Qe.slice(1));const fn=U.pop();if(!fn)break;ie=fn}}let St=v.getTimezoneOffset();m&&(St=N(m,St),v=function(O,ie,k){const v=O.getTimezoneOffset();return function(O,ie){return(O=new Date(O.getTime())).setMinutes(O.getMinutes()+ie),O}(O,-1*(N(ie,v)-v))}(v,m));let Zt="";return U.forEach(fn=>{const rn=function(O){if(Q[O])return Q[O];let ie;switch(O){case"G":case"GG":case"GGG":ie=jt(Be.Eras,ce.Abbreviated);break;case"GGGG":ie=jt(Be.Eras,ce.Wide);break;case"GGGGG":ie=jt(Be.Eras,ce.Narrow);break;case"y":ie=At(re.FullYear,1,0,!1,!0);break;case"yy":ie=At(re.FullYear,2,0,!0,!0);break;case"yyy":ie=At(re.FullYear,3,0,!1,!0);break;case"yyyy":ie=At(re.FullYear,4,0,!1,!0);break;case"Y":ie=Ee(1);break;case"YY":ie=Ee(2,!0);break;case"YYY":ie=Ee(3);break;case"YYYY":ie=Ee(4);break;case"M":case"L":ie=At(re.Month,1,1);break;case"MM":case"LL":ie=At(re.Month,2,1);break;case"MMM":ie=jt(Be.Months,ce.Abbreviated);break;case"MMMM":ie=jt(Be.Months,ce.Wide);break;case"MMMMM":ie=jt(Be.Months,ce.Narrow);break;case"LLL":ie=jt(Be.Months,ce.Abbreviated,X.Standalone);break;case"LLLL":ie=jt(Be.Months,ce.Wide,X.Standalone);break;case"LLLLL":ie=jt(Be.Months,ce.Narrow,X.Standalone);break;case"w":ie=De(1);break;case"ww":ie=De(2);break;case"W":ie=De(1,!0);break;case"d":ie=At(re.Date,1);break;case"dd":ie=At(re.Date,2);break;case"c":case"cc":ie=At(re.Day,1);break;case"ccc":ie=jt(Be.Days,ce.Abbreviated,X.Standalone);break;case"cccc":ie=jt(Be.Days,ce.Wide,X.Standalone);break;case"ccccc":ie=jt(Be.Days,ce.Narrow,X.Standalone);break;case"cccccc":ie=jt(Be.Days,ce.Short,X.Standalone);break;case"E":case"EE":case"EEE":ie=jt(Be.Days,ce.Abbreviated);break;case"EEEE":ie=jt(Be.Days,ce.Wide);break;case"EEEEE":ie=jt(Be.Days,ce.Narrow);break;case"EEEEEE":ie=jt(Be.Days,ce.Short);break;case"a":case"aa":case"aaa":ie=jt(Be.DayPeriods,ce.Abbreviated);break;case"aaaa":ie=jt(Be.DayPeriods,ce.Wide);break;case"aaaaa":ie=jt(Be.DayPeriods,ce.Narrow);break;case"b":case"bb":case"bbb":ie=jt(Be.DayPeriods,ce.Abbreviated,X.Standalone,!0);break;case"bbbb":ie=jt(Be.DayPeriods,ce.Wide,X.Standalone,!0);break;case"bbbbb":ie=jt(Be.DayPeriods,ce.Narrow,X.Standalone,!0);break;case"B":case"BB":case"BBB":ie=jt(Be.DayPeriods,ce.Abbreviated,X.Format,!0);break;case"BBBB":ie=jt(Be.DayPeriods,ce.Wide,X.Format,!0);break;case"BBBBB":ie=jt(Be.DayPeriods,ce.Narrow,X.Format,!0);break;case"h":ie=At(re.Hours,1,-12);break;case"hh":ie=At(re.Hours,2,-12);break;case"H":ie=At(re.Hours,1);break;case"HH":ie=At(re.Hours,2);break;case"m":ie=At(re.Minutes,1);break;case"mm":ie=At(re.Minutes,2);break;case"s":ie=At(re.Seconds,1);break;case"ss":ie=At(re.Seconds,2);break;case"S":ie=At(re.FractionalSeconds,1);break;case"SS":ie=At(re.FractionalSeconds,2);break;case"SSS":ie=At(re.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":ie=qe(z.Short);break;case"ZZZZZ":ie=qe(z.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":ie=qe(z.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":ie=qe(z.Long);break;default:return null}return Q[O]=ie,ie}(fn);Zt+=rn?rn(v,k,St):"''"===fn?"'":fn.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Zt}function Et(O,ie,k){const m=new Date(0);return m.setFullYear(O,ie,k),m.setHours(0,0,0),m}function xt(O,ie){const k=et(O);if(R[k]=R[k]||{},R[k][ie])return R[k][ie];let m="";switch(ie){case"shortDate":m=dt(O,Ae.Short);break;case"mediumDate":m=dt(O,Ae.Medium);break;case"longDate":m=dt(O,Ae.Long);break;case"fullDate":m=dt(O,Ae.Full);break;case"shortTime":m=$(O,Ae.Short);break;case"mediumTime":m=$(O,Ae.Medium);break;case"longTime":m=$(O,Ae.Long);break;case"fullTime":m=$(O,Ae.Full);break;case"short":const v=xt(O,"shortTime"),b=xt(O,"shortDate");m=Nt(se(O,Ae.Short),[v,b]);break;case"medium":const U=xt(O,"mediumTime"),Qe=xt(O,"mediumDate");m=Nt(se(O,Ae.Medium),[U,Qe]);break;case"long":const St=xt(O,"longTime"),Zt=xt(O,"longDate");m=Nt(se(O,Ae.Long),[St,Zt]);break;case"full":const fn=xt(O,"fullTime"),rn=xt(O,"fullDate");m=Nt(se(O,Ae.Full),[fn,rn])}return m&&(R[k][ie]=m),m}function Nt(O,ie){return ie&&(O=O.replace(/\{([^}]+)}/g,function(k,m){return null!=ie&&m in ie?ie[m]:k})),O}function Ut(O,ie,k="-",m,v){let b="";(O<0||v&&O<=0)&&(v?O=1-O:(O=-O,b=k));let U=String(O);for(;U.length<ie;)U="0"+U;return m&&(U=U.substr(U.length-ie)),b+U}function At(O,ie,k=0,m=!1,v=!1){return function(b,U){let Qe=function(O,ie){switch(O){case re.FullYear:return ie.getFullYear();case re.Month:return ie.getMonth();case re.Date:return ie.getDate();case re.Hours:return ie.getHours();case re.Minutes:return ie.getMinutes();case re.Seconds:return ie.getSeconds();case re.FractionalSeconds:return ie.getMilliseconds();case re.Day:return ie.getDay();default:throw new Error(`Unknown DateType value "${O}".`)}}(O,b);if((k>0||Qe>-k)&&(Qe+=k),O===re.Hours)0===Qe&&-12===k&&(Qe=12);else if(O===re.FractionalSeconds)return function(O,ie){return Ut(O,3).substr(0,ie)}(Qe,ie);const St=H(U,Ce.MinusSign);return Ut(Qe,ie,St,m,v)}}function jt(O,ie,k=X.Format,m=!1){return function(v,b){return function(O,ie,k,m,v,b){switch(k){case Be.Months:return tt(ie,v,m)[O.getMonth()];case Be.Days:return je(ie,v,m)[O.getDay()];case Be.DayPeriods:const U=O.getHours(),Qe=O.getMinutes();if(b){const Zt=ze(ie),fn=He(ie,v,m),rn=Zt.findIndex(bn=>{if(Array.isArray(bn)){const[Tn,Ln]=bn,Ur=U>=Tn.hours&&Qe>=Tn.minutes,Kn=U<Ln.hours||U===Ln.hours&&Qe<Ln.minutes;if(Tn.hours<Ln.hours){if(Ur&&Kn)return!0}else if(Ur||Kn)return!0}else if(bn.hours===U&&bn.minutes===Qe)return!0;return!1});if(-1!==rn)return fn[rn]}return pt(ie,v,m)[U<12?0:1];case Be.Eras:return ut(ie,m)[O.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${k}`)}}(v,b,O,ie,k,m)}}function qe(O){return function(ie,k,m){const v=-1*m,b=H(k,Ce.MinusSign),U=v>0?Math.floor(v/60):Math.ceil(v/60);switch(O){case z.Short:return(v>=0?"+":"")+Ut(U,2,b)+Ut(Math.abs(v%60),2,b);case z.ShortGMT:return"GMT"+(v>=0?"+":"")+Ut(U,1,b);case z.Long:return"GMT"+(v>=0?"+":"")+Ut(U,2,b)+":"+Ut(Math.abs(v%60),2,b);case z.Extended:return 0===m?"Z":(v>=0?"+":"")+Ut(U,2,b)+":"+Ut(Math.abs(v%60),2,b);default:throw new Error(`Unknown zone width "${O}"`)}}}function W(O){return Et(O.getFullYear(),O.getMonth(),O.getDate()+(4-O.getDay()))}function De(O,ie=!1){return function(k,m){let v;if(ie){const b=new Date(k.getFullYear(),k.getMonth(),1).getDay()-1,U=k.getDate();v=1+Math.floor((U+b)/7)}else{const b=W(k),U=function(O){const ie=Et(O,0,1).getDay();return Et(O,0,1+(ie<=4?4:11)-ie)}(b.getFullYear()),Qe=b.getTime()-U.getTime();v=1+Math.round(Qe/6048e5)}return Ut(v,O,H(m,Ce.MinusSign))}}function Ee(O,ie=!1){return function(k,m){return Ut(W(k).getFullYear(),O,H(m,Ce.MinusSign),ie)}}const Q={};function N(O,ie){O=O.replace(/:/g,"");const k=Date.parse("Jan 01, 1970 00:00:00 "+O)/6e4;return isNaN(k)?ie:k}function dn(O){return O instanceof Date&&!isNaN(O.valueOf())}const cn=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function ht(O,ie,k,m,v,b,U=!1){let Qe="",St=!1;if(isFinite(O)){let Zt=function(O){let m,v,b,U,Qe,ie=Math.abs(O)+"",k=0;for((v=ie.indexOf("."))>-1&&(ie=ie.replace(".","")),(b=ie.search(/e/i))>0?(v<0&&(v=b),v+=+ie.slice(b+1),ie=ie.substring(0,b)):v<0&&(v=ie.length),b=0;"0"===ie.charAt(b);b++);if(b===(Qe=ie.length))m=[0],v=1;else{for(Qe--;"0"===ie.charAt(Qe);)Qe--;for(v-=b,m=[],U=0;b<=Qe;b++,U++)m[U]=Number(ie.charAt(b))}return v>22&&(m=m.splice(0,21),k=v-1,v=1),{digits:m,exponent:k,integerLen:v}}(O);U&&(Zt=function(O){if(0===O.digits[0])return O;const ie=O.digits.length-O.integerLen;return O.exponent?O.exponent+=2:(0===ie?O.digits.push(0,0):1===ie&&O.digits.push(0),O.integerLen+=2),O}(Zt));let fn=ie.minInt,rn=ie.minFrac,bn=ie.maxFrac;if(b){const Ii=b.match(cn);if(null===Ii)throw new Error(`${b} is not a valid digit info`);const Yt=Ii[1],io=Ii[3],_o=Ii[5];null!=Yt&&(fn=Tt(Yt)),null!=io&&(rn=Tt(io)),null!=_o?bn=Tt(_o):null!=io&&rn>bn&&(bn=rn)}!function(O,ie,k){if(ie>k)throw new Error(`The minimum number of digits after fraction (${ie}) is higher than the maximum (${k}).`);let m=O.digits,v=m.length-O.integerLen;const b=Math.min(Math.max(ie,v),k);let U=b+O.integerLen,Qe=m[U];if(U>0){m.splice(Math.max(O.integerLen,U));for(let rn=U;rn<m.length;rn++)m[rn]=0}else{v=Math.max(0,v),O.integerLen=1,m.length=Math.max(1,U=b+1),m[0]=0;for(let rn=1;rn<U;rn++)m[rn]=0}if(Qe>=5)if(U-1<0){for(let rn=0;rn>U;rn--)m.unshift(0),O.integerLen++;m.unshift(1),O.integerLen++}else m[U-1]++;for(;v<Math.max(0,b);v++)m.push(0);let St=0!==b;const Zt=ie+O.integerLen,fn=m.reduceRight(function(rn,bn,Tn,Ln){return Ln[Tn]=(bn+=rn)<10?bn:bn-10,St&&(0===Ln[Tn]&&Tn>=Zt?Ln.pop():St=!1),bn>=10?1:0},0);fn&&(m.unshift(fn),O.integerLen++)}(Zt,rn,bn);let Tn=Zt.digits,Ln=Zt.integerLen;const Ur=Zt.exponent;let Kn=[];for(St=Tn.every(Ii=>!Ii);Ln<fn;Ln++)Tn.unshift(0);for(;Ln<0;Ln++)Tn.unshift(0);Ln>0?Kn=Tn.splice(Ln,Tn.length):(Kn=Tn,Tn=[0]);const Bi=[];for(Tn.length>=ie.lgSize&&Bi.unshift(Tn.splice(-ie.lgSize,Tn.length).join(""));Tn.length>ie.gSize;)Bi.unshift(Tn.splice(-ie.gSize,Tn.length).join(""));Tn.length&&Bi.unshift(Tn.join("")),Qe=Bi.join(H(k,m)),Kn.length&&(Qe+=H(k,v)+Kn.join("")),Ur&&(Qe+=H(k,Ce.Exponential)+"+"+Ur)}else Qe=H(k,Ce.Infinity);return Qe=O<0&&!St?ie.negPre+Qe+ie.negSuf:ie.posPre+Qe+ie.posSuf,Qe}function Rt(O,ie,k,m,v){const U=Y(le(ie,te.Currency),H(ie,Ce.MinusSign));return U.minFrac=x(m),U.maxFrac=U.minFrac,ht(O,U,ie,Ce.CurrencyGroup,Ce.CurrencyDecimal,v).replace("\xa4",k).replace("\xa4","").trim()}function ee(O,ie,k){return ht(O,Y(le(ie,te.Percent),H(ie,Ce.MinusSign)),ie,Ce.Group,Ce.Decimal,k,!0).replace(new RegExp("%","g"),H(ie,Ce.PercentSign))}function be(O,ie,k){return ht(O,Y(le(ie,te.Decimal),H(ie,Ce.MinusSign)),ie,Ce.Group,Ce.Decimal,k)}function Y(O,ie="-"){const k={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},m=O.split(";"),v=m[0],b=m[1],U=-1!==v.indexOf(".")?v.split("."):[v.substring(0,v.lastIndexOf("0")+1),v.substring(v.lastIndexOf("0")+1)],Qe=U[0],St=U[1]||"";k.posPre=Qe.substr(0,Qe.indexOf("#"));for(let fn=0;fn<St.length;fn++){const rn=St.charAt(fn);"0"===rn?k.minFrac=k.maxFrac=fn+1:"#"===rn?k.maxFrac=fn+1:k.posSuf+=rn}const Zt=Qe.split(",");if(k.gSize=Zt[1]?Zt[1].length:0,k.lgSize=Zt[2]||Zt[1]?(Zt[2]||Zt[1]).length:0,b){const fn=v.length-k.posPre.length-k.posSuf.length,rn=b.indexOf("#");k.negPre=b.substr(0,rn).replace(/'/g,""),k.negSuf=b.substr(rn+fn).replace(/'/g,"")}else k.negPre=ie+k.posPre,k.negSuf=k.posSuf;return k}function Tt(O){const ie=parseInt(O);if(isNaN(ie))throw new Error("Invalid integer literal when parsing "+O);return ie}class we{}function Ie(O,ie,k,m){let v=`=${O}`;if(ie.indexOf(v)>-1||(v=k.getPluralCategory(O,m),ie.indexOf(v)>-1))return v;if(ie.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${O}"`)}let pe=(()=>{class O extends we{constructor(k){super(),this.locale=k}getPluralCategory(k,m){switch(wt(m||this.locale)(k)){case ge.Zero:return"zero";case ge.One:return"one";case ge.Two:return"two";case ge.Few:return"few";case ge.Many:return"many";default:return"other"}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275inject(o.LOCALE_ID))},O.\u0275prov=o.\u0275\u0275defineInjectable({token:O,factory:O.\u0275fac}),O})();function Ve(O,ie,k){return(0,o.\u0275registerLocaleData)(O,ie,k)}function lt(O,ie){ie=encodeURIComponent(ie);for(const k of O.split(";")){const m=k.indexOf("="),[v,b]=-1==m?[k,""]:[k.slice(0,m),k.slice(m+1)];if(v.trim()===ie)return decodeURIComponent(b)}return null}let Ft=(()=>{class O{constructor(k,m,v,b){this._iterableDiffers=k,this._keyValueDiffers=m,this._ngEl=v,this._renderer=b,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(k){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof k?k.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(k){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof k?k.split(/\s+/):k,this._rawClass&&((0,o.\u0275isListLikeIterable)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const k=this._iterableDiffer.diff(this._rawClass);k&&this._applyIterableChanges(k)}else if(this._keyValueDiffer){const k=this._keyValueDiffer.diff(this._rawClass);k&&this._applyKeyValueChanges(k)}}_applyKeyValueChanges(k){k.forEachAddedItem(m=>this._toggleClass(m.key,m.currentValue)),k.forEachChangedItem(m=>this._toggleClass(m.key,m.currentValue)),k.forEachRemovedItem(m=>{m.previousValue&&this._toggleClass(m.key,!1)})}_applyIterableChanges(k){k.forEachAddedItem(m=>{if("string"!=typeof m.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,o.\u0275stringify)(m.item)}`);this._toggleClass(m.item,!0)}),k.forEachRemovedItem(m=>this._toggleClass(m.item,!1))}_applyClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(m=>this._toggleClass(m,!0)):Object.keys(k).forEach(m=>this._toggleClass(m,!!k[m])))}_removeClasses(k){k&&(Array.isArray(k)||k instanceof Set?k.forEach(m=>this._toggleClass(m,!1)):Object.keys(k).forEach(m=>this._toggleClass(m,!1)))}_toggleClass(k,m){(k=k.trim())&&k.split(/\s+/g).forEach(v=>{m?this._renderer.addClass(this._ngEl.nativeElement,v):this._renderer.removeClass(this._ngEl.nativeElement,v)})}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.IterableDiffers),o.\u0275\u0275directiveInject(o.KeyValueDiffers),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),O})(),$t=(()=>{class O{constructor(k){this._viewContainerRef=k,this._componentRef=null,this._moduleRef=null}ngOnChanges(k){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){const m=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(k.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){const U=m.get(o.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(U.injector)}else this._moduleRef=null;const b=(this._moduleRef?this._moduleRef.componentFactoryResolver:m.get(o.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(b,this._viewContainerRef.length,m,this.ngComponentOutletContent)}}ngOnDestroy(){this._moduleRef&&this._moduleRef.destroy()}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[o.\u0275\u0275NgOnChangesFeature]}),O})();class qt{constructor(ie,k,m,v){this.$implicit=ie,this.ngForOf=k,this.index=m,this.count=v}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Wt=(()=>{class O{constructor(k,m,v){this._viewContainer=k,this._template=m,this._differs=v,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(k){this._ngForOf=k,this._ngForOfDirty=!0}set ngForTrackBy(k){this._trackByFn=k}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(k){k&&(this._template=k)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const k=this._ngForOf;if(!this._differ&&k)try{this._differ=this._differs.find(k).create(this.ngForTrackBy)}catch(m){throw new Error(`Cannot find a differ supporting object '${k}' of type '${function(O){return O.name||typeof O}(k)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const k=this._differ.diff(this._ngForOf);k&&this._applyChanges(k)}}_applyChanges(k){const m=[];k.forEachOperation((v,b,U)=>{if(null==v.previousIndex){const Qe=this._viewContainer.createEmbeddedView(this._template,new qt(null,this._ngForOf,-1,-1),null===U?void 0:U),St=new Mn(v,Qe);m.push(St)}else if(null==U)this._viewContainer.remove(null===b?void 0:b);else if(null!==b){const Qe=this._viewContainer.get(b);this._viewContainer.move(Qe,U);const St=new Mn(v,Qe);m.push(St)}});for(let v=0;v<m.length;v++)this._perViewChange(m[v].view,m[v].record);for(let v=0,b=this._viewContainer.length;v<b;v++){const U=this._viewContainer.get(v);U.context.index=v,U.context.count=b,U.context.ngForOf=this._ngForOf}k.forEachIdentityChange(v=>{this._viewContainer.get(v.currentIndex).context.$implicit=v.item})}_perViewChange(k,m){k.context.$implicit=m.item}static ngTemplateContextGuard(k,m){return!0}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.IterableDiffers))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),O})();class Mn{constructor(ie,k){this.record=ie,this.view=k}}let bi=(()=>{class O{constructor(k,m){this._viewContainer=k,this._context=new li,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=m}set ngIf(k){this._context.$implicit=this._context.ngIf=k,this._updateView()}set ngIfThen(k){qn("ngIfThen",k),this._thenTemplateRef=k,this._thenViewRef=null,this._updateView()}set ngIfElse(k){qn("ngIfElse",k),this._elseTemplateRef=k,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(k,m){return!0}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),O})();class li{constructor(){this.$implicit=null,this.ngIf=null}}function qn(O,ie){if(ie&&!ie.createEmbeddedView)throw new Error(`${O} must be a TemplateRef, but received '${(0,o.\u0275stringify)(ie)}'.`)}class _i{constructor(ie,k){this._viewContainerRef=ie,this._templateRef=k,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(ie){ie&&!this._created?this.create():!ie&&this._created&&this.destroy()}}let ei=(()=>{class O{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(k){this._ngSwitch=k,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(k){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(k)}_matchCase(k){const m=k==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||m,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),m}_updateDefaultCases(k){if(this._defaultViews&&k!==this._defaultUsed){this._defaultUsed=k;for(let m=0;m<this._defaultViews.length;m++)this._defaultViews[m].enforceState(k)}}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),O})(),xn=(()=>{class O{constructor(k,m,v){this.ngSwitch=v,v._addCase(),this._view=new _i(k,m)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(ei,9))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),O})(),Xi=(()=>{class O{constructor(k,m,v){v._addDefault(new _i(k,m))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(ei,9))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngSwitchDefault",""]]}),O})(),Cn=(()=>{class O{constructor(k){this._localization=k,this._caseViews={}}set ngPlural(k){this._switchValue=k,this._updateView()}addCase(k,m){this._caseViews[k]=m}_updateView(){this._clearViews();const k=Object.keys(this._caseViews),m=Ie(this._switchValue,k,this._localization);this._activateView(this._caseViews[m])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(k){k&&(this._activeView=k,this._activeView.create())}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(we))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"}}),O})(),Ci=(()=>{class O{constructor(k,m,v,b){this.value=k;const U=!isNaN(Number(k));b.addCase(U?`=${k}`:k,new _i(v,m))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275injectAttribute("ngPluralCase"),o.\u0275\u0275directiveInject(o.TemplateRef),o.\u0275\u0275directiveInject(o.ViewContainerRef),o.\u0275\u0275directiveInject(Cn,1))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngPluralCase",""]]}),O})(),ci=(()=>{class O{constructor(k,m,v){this._ngEl=k,this._differs=m,this._renderer=v,this._ngStyle=null,this._differ=null}set ngStyle(k){this._ngStyle=k,!this._differ&&k&&(this._differ=this._differs.find(k).create())}ngDoCheck(){if(this._differ){const k=this._differ.diff(this._ngStyle);k&&this._applyChanges(k)}}_setStyle(k,m){const[v,b]=k.split(".");null!=(m=null!=m&&b?`${m}${b}`:m)?this._renderer.setStyle(this._ngEl.nativeElement,v,m):this._renderer.removeStyle(this._ngEl.nativeElement,v)}_applyChanges(k){k.forEachRemovedItem(m=>this._setStyle(m.key,null)),k.forEachAddedItem(m=>this._setStyle(m.key,m.currentValue)),k.forEachChangedItem(m=>this._setStyle(m.key,m.currentValue))}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.KeyValueDiffers),o.\u0275\u0275directiveInject(o.Renderer2))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),O})(),ui=(()=>{class O{constructor(k){this._viewContainerRef=k,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(k){if(k.ngTemplateOutlet){const m=this._viewContainerRef;this._viewRef&&m.remove(m.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?m.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&k.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ViewContainerRef))},O.\u0275dir=o.\u0275\u0275defineDirective({type:O,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[o.\u0275\u0275NgOnChangesFeature]}),O})();const ni=[Ft,$t,Wt,bi,ui,ci,ei,xn,Xi,Cn,Ci];function Un(O,ie){return Error(`InvalidPipeArgument: '${ie}' for pipe '${(0,o.\u0275stringify)(O)}'`)}class kr{createSubscription(ie,k){return ie.subscribe({next:k,error:m=>{throw m}})}dispose(ie){ie.unsubscribe()}onDestroy(ie){ie.unsubscribe()}}class mr{createSubscription(ie,k){return ie.then(k,m=>{throw m})}dispose(ie){}onDestroy(ie){}}const qr=new mr,gr=new kr;let Fr=(()=>{class O{constructor(k){this._ref=k,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(k){return this._obj?k!==this._obj?(this._dispose(),this.transform(k)):this._latestValue:(k&&this._subscribe(k),this._latestValue)}_subscribe(k){this._obj=k,this._strategy=this._selectStrategy(k),this._subscription=this._strategy.createSubscription(k,m=>this._updateLatestValue(k,m))}_selectStrategy(k){if((0,o.\u0275isPromise)(k))return qr;if((0,o.\u0275isSubscribable)(k))return gr;throw Un(O,k)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(k,m){k===this._obj&&(this._latestValue=m,this._ref.markForCheck())}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.ChangeDetectorRef,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"async",type:O,pure:!1}),O})(),Nr=(()=>{class O{transform(k){if(null==k)return null;if("string"!=typeof k)throw Un(O,k);return k.toLowerCase()}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"lowercase",type:O,pure:!0}),O})();const eo=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let to=(()=>{class O{transform(k){if(null==k)return null;if("string"!=typeof k)throw Un(O,k);return k.replace(eo,m=>m[0].toUpperCase()+m.substr(1).toLowerCase())}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"titlecase",type:O,pure:!0}),O})(),Di=(()=>{class O{transform(k){if(null==k)return null;if("string"!=typeof k)throw Un(O,k);return k.toUpperCase()}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"uppercase",type:O,pure:!0}),O})(),po=(()=>{class O{constructor(k){this.locale=k}transform(k,m="mediumDate",v,b){if(null==k||""===k||k!=k)return null;try{return gt(k,m,b||this.locale,v)}catch(U){throw Un(O,U.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"date",type:O,pure:!0}),O})();const ii=/#/g;let Ti=(()=>{class O{constructor(k){this._localization=k}transform(k,m,v){if(null==k)return"";if("object"!=typeof m||null===m)throw Un(O,m);return m[Ie(k,Object.keys(m),this._localization,v)].replace(ii,k.toString())}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(we,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"i18nPlural",type:O,pure:!0}),O})(),mo=(()=>{class O{transform(k,m){if(null==k)return"";if("object"!=typeof m||"string"!=typeof k)throw Un(O,m);return m.hasOwnProperty(k)?m[k]:m.hasOwnProperty("other")?m.other:""}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"i18nSelect",type:O,pure:!0}),O})(),ko=(()=>{class O{transform(k){return JSON.stringify(k,null,2)}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"json",type:O,pure:!1}),O})(),Lr=(()=>{class O{constructor(k){this.differs=k,this.keyValues=[],this.compareFn=jr}transform(k,m=jr){if(!k||!(k instanceof Map)&&"object"!=typeof k)return null;this.differ||(this.differ=this.differs.find(k).create());const v=this.differ.diff(k),b=m!==this.compareFn;return v&&(this.keyValues=[],v.forEachItem(U=>{this.keyValues.push(function(O,ie){return{key:O,value:ie}}(U.key,U.currentValue))})),(v||b)&&(this.keyValues.sort(m),this.compareFn=m),this.keyValues}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.KeyValueDiffers,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"keyvalue",type:O,pure:!1}),O})();function jr(O,ie){const k=O.key,m=ie.key;if(k===m)return 0;if(void 0===k)return 1;if(void 0===m)return-1;if(null===k)return 1;if(null===m)return-1;if("string"==typeof k&&"string"==typeof m)return k<m?-1:1;if("number"==typeof k&&"number"==typeof m)return k-m;if("boolean"==typeof k&&"boolean"==typeof m)return k<m?-1:1;const v=String(k),b=String(m);return v==b?0:v<b?-1:1}let wi=(()=>{class O{constructor(k){this._locale=k}transform(k,m,v){if(!qi(k))return null;v=v||this._locale;try{return be(yr(k),v,m)}catch(b){throw Un(O,b.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"number",type:O,pure:!0}),O})(),Li=(()=>{class O{constructor(k){this._locale=k}transform(k,m,v){if(!qi(k))return null;v=v||this._locale;try{return ee(yr(k),v,m)}catch(b){throw Un(O,b.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"percent",type:O,pure:!0}),O})(),Br=(()=>{class O{constructor(k,m="USD"){this._locale=k,this._defaultCurrencyCode=m}transform(k,m=this._defaultCurrencyCode,v="symbol",b,U){if(!qi(k))return null;U=U||this._locale,"boolean"==typeof v&&(v=v?"symbol":"code");let Qe=m||this._defaultCurrencyCode;"code"!==v&&(Qe="symbol"===v||"symbol-narrow"===v?vt(Qe,"symbol"===v?"wide":"narrow",U):v);try{return Rt(yr(k),U,Qe,m,b)}catch(St){throw Un(O,St.message)}}}return O.\u0275fac=function(k){return new(k||O)(o.\u0275\u0275directiveInject(o.LOCALE_ID,16),o.\u0275\u0275directiveInject(o.DEFAULT_CURRENCY_CODE,16))},O.\u0275pipe=o.\u0275\u0275definePipe({name:"currency",type:O,pure:!0}),O})();function qi(O){return!(null==O||""===O||O!=O)}function yr(O){if("string"==typeof O&&!isNaN(Number(O)-parseFloat(O)))return Number(O);if("number"!=typeof O)throw new Error(`${O} is not a number`);return O}let yi=(()=>{class O{transform(k,m,v){if(null==k)return null;if(!this.supports(k))throw Un(O,k);return k.slice(m,v)}supports(k){return"string"==typeof k||Array.isArray(k)}}return O.\u0275fac=function(k){return new(k||O)},O.\u0275pipe=o.\u0275\u0275definePipe({name:"slice",type:O,pure:!1}),O})();const er=[Fr,Di,Nr,ko,yi,wi,Li,to,Br,po,Ti,mo,Lr];let Mi=(()=>{class O{}return O.\u0275fac=function(k){return new(k||O)},O.\u0275mod=o.\u0275\u0275defineNgModule({type:O}),O.\u0275inj=o.\u0275\u0275defineInjector({providers:[{provide:we,useClass:pe}]}),O})();const ji="browser",Vr="server",tr="browserWorkerApp",vr="browserWorkerUi";function br(O){return O===ji}function Hr(O){return O===Vr}function Si(O){return O===tr}function $r(O){return O===vr}const Rn=new o.Version("12.2.15");let Cr=(()=>{class O{}return O.\u0275prov=(0,o.\u0275\u0275defineInjectable)({token:O,providedIn:"root",factory:()=>new no((0,o.\u0275\u0275inject)(w),window)}),O})();class no{constructor(ie,k){this.document=ie,this.window=k,this.offset=()=>[0,0]}setOffset(ie){this.offset=Array.isArray(ie)?()=>ie:ie}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ie){this.supportsScrolling()&&this.window.scrollTo(ie[0],ie[1])}scrollToAnchor(ie){if(!this.supportsScrolling())return;const k=function(O,ie){const k=O.getElementById(ie)||O.getElementsByName(ie)[0];if(k)return k;if("function"==typeof O.createTreeWalker&&O.body&&(O.body.createShadowRoot||O.body.attachShadow)){const m=O.createTreeWalker(O.body,NodeFilter.SHOW_ELEMENT);let v=m.currentNode;for(;v;){const b=v.shadowRoot;if(b){const U=b.getElementById(ie)||b.querySelector(`[name="${ie}"]`);if(U)return U}v=m.nextNode()}}return null}(this.document,ie);k&&(this.scrollToElement(k),this.attemptFocus(k))}setHistoryScrollRestoration(ie){if(this.supportScrollRestoration()){const k=this.window.history;k&&k.scrollRestoration&&(k.scrollRestoration=ie)}}scrollToElement(ie){const k=ie.getBoundingClientRect(),m=k.left+this.window.pageXOffset,v=k.top+this.window.pageYOffset,b=this.offset();this.window.scrollTo(m-b[0],v-b[1])}attemptFocus(ie){return ie.focus(),this.document.activeElement===ie}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ie=Er(this.window.history)||Er(Object.getPrototypeOf(this.window.history));return!(!ie||!ie.writable&&!ie.set)}catch(ie){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(ie){return!1}}}function Er(O){return Object.getOwnPropertyDescriptor(O,"scrollRestoration")}class Tr{setOffset(ie){}getScrollPosition(){return[0,0]}scrollToPosition(ie){}scrollToAnchor(ie){}setHistoryScrollRestoration(ie){}}class go{}},6820:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{HTTP_INTERCEPTORS:()=>pt,HttpBackend:()=>E,HttpClient:()=>Ue,HttpClientJsonpModule:()=>vt,HttpClientModule:()=>ft,HttpClientXsrfModule:()=>Ge,HttpContext:()=>at,HttpContextToken:()=>$e,HttpErrorResponse:()=>Ae,HttpEventType:()=>te,HttpHandler:()=>g,HttpHeaderResponse:()=>X,HttpHeaders:()=>M,HttpParams:()=>ye,HttpRequest:()=>Ct,HttpResponse:()=>ce,HttpResponseBase:()=>ge,HttpUrlEncodingCodec:()=>S,HttpXhrBackend:()=>ne,HttpXsrfTokenExtractor:()=>rt,JsonpClientBackend:()=>$,JsonpInterceptor:()=>se,XhrFactory:()=>Ye,\u0275HttpInterceptingHandler:()=>ze,\u0275angular_packages_common_http_http_a:()=>je,\u0275angular_packages_common_http_http_b:()=>dt,\u0275angular_packages_common_http_http_c:()=>q,\u0275angular_packages_common_http_http_d:()=>fe,\u0275angular_packages_common_http_http_e:()=>Oe,\u0275angular_packages_common_http_http_f:()=>wt,\u0275angular_packages_common_http_http_g:()=>Je});var o=d(8583),l=d(7716),h=d(5917),_=d(9897),a=d(9773),w=d(5435),D=d(8002);class g{}class E{}class M{constructor(F){this.normalizedNames=new Map,this.lazyUpdate=null,F?this.lazyInit="string"==typeof F?()=>{this.headers=new Map,F.split("\n").forEach(R=>{const de=R.indexOf(":");if(de>0){const z=R.slice(0,de),re=z.toLowerCase(),Be=R.slice(de+1).trim();this.maybeSetNormalizedName(z,re),this.headers.has(re)?this.headers.get(re).push(Be):this.headers.set(re,[Be])}})}:()=>{this.headers=new Map,Object.keys(F).forEach(R=>{let de=F[R];const z=R.toLowerCase();"string"==typeof de&&(de=[de]),de.length>0&&(this.headers.set(z,de),this.maybeSetNormalizedName(R,z))})}:this.headers=new Map}has(F){return this.init(),this.headers.has(F.toLowerCase())}get(F){this.init();const R=this.headers.get(F.toLowerCase());return R&&R.length>0?R[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(F){return this.init(),this.headers.get(F.toLowerCase())||null}append(F,R){return this.clone({name:F,value:R,op:"a"})}set(F,R){return this.clone({name:F,value:R,op:"s"})}delete(F,R){return this.clone({name:F,value:R,op:"d"})}maybeSetNormalizedName(F,R){this.normalizedNames.has(R)||this.normalizedNames.set(R,F)}init(){this.lazyInit&&(this.lazyInit instanceof M?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(F=>this.applyUpdate(F)),this.lazyUpdate=null))}copyFrom(F){F.init(),Array.from(F.headers.keys()).forEach(R=>{this.headers.set(R,F.headers.get(R)),this.normalizedNames.set(R,F.normalizedNames.get(R))})}clone(F){const R=new M;return R.lazyInit=this.lazyInit&&this.lazyInit instanceof M?this.lazyInit:this,R.lazyUpdate=(this.lazyUpdate||[]).concat([F]),R}applyUpdate(F){const R=F.name.toLowerCase();switch(F.op){case"a":case"s":let de=F.value;if("string"==typeof de&&(de=[de]),0===de.length)return;this.maybeSetNormalizedName(F.name,R);const z=("a"===F.op?this.headers.get(R):void 0)||[];z.push(...de),this.headers.set(R,z);break;case"d":const re=F.value;if(re){let Be=this.headers.get(R);if(!Be)return;Be=Be.filter(gt=>-1===re.indexOf(gt)),0===Be.length?(this.headers.delete(R),this.normalizedNames.delete(R)):this.headers.set(R,Be)}else this.headers.delete(R),this.normalizedNames.delete(R)}}forEach(F){this.init(),Array.from(this.normalizedNames.keys()).forEach(R=>F(this.normalizedNames.get(R),this.headers.get(R)))}}class S{encodeKey(F){return ae(F)}encodeValue(F){return ae(F)}decodeKey(F){return decodeURIComponent(F)}decodeValue(F){return decodeURIComponent(F)}}const L=/%(\d[a-f0-9])/gi,j={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ae(x){return encodeURIComponent(x).replace(L,(F,R)=>{var de;return null!==(de=j[R])&&void 0!==de?de:F})}function he(x){return`${x}`}class ye{constructor(F={}){if(this.updates=null,this.cloneFrom=null,this.encoder=F.encoder||new S,F.fromString){if(F.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(x,F){const R=new Map;return x.length>0&&x.replace(/^\?/,"").split("&").forEach(z=>{const re=z.indexOf("="),[Be,gt]=-1==re?[F.decodeKey(z),""]:[F.decodeKey(z.slice(0,re)),F.decodeValue(z.slice(re+1))],Et=R.get(Be)||[];Et.push(gt),R.set(Be,Et)}),R}(F.fromString,this.encoder)}else F.fromObject?(this.map=new Map,Object.keys(F.fromObject).forEach(R=>{const de=F.fromObject[R];this.map.set(R,Array.isArray(de)?de:[de])})):this.map=null}has(F){return this.init(),this.map.has(F)}get(F){this.init();const R=this.map.get(F);return R?R[0]:null}getAll(F){return this.init(),this.map.get(F)||null}keys(){return this.init(),Array.from(this.map.keys())}append(F,R){return this.clone({param:F,value:R,op:"a"})}appendAll(F){const R=[];return Object.keys(F).forEach(de=>{const z=F[de];Array.isArray(z)?z.forEach(re=>{R.push({param:de,value:re,op:"a"})}):R.push({param:de,value:z,op:"a"})}),this.clone(R)}set(F,R){return this.clone({param:F,value:R,op:"s"})}delete(F,R){return this.clone({param:F,value:R,op:"d"})}toString(){return this.init(),this.keys().map(F=>{const R=this.encoder.encodeKey(F);return this.map.get(F).map(de=>R+"="+this.encoder.encodeValue(de)).join("&")}).filter(F=>""!==F).join("&")}clone(F){const R=new ye({encoder:this.encoder});return R.cloneFrom=this.cloneFrom||this,R.updates=(this.updates||[]).concat(F),R}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(F=>this.map.set(F,this.cloneFrom.map.get(F))),this.updates.forEach(F=>{switch(F.op){case"a":case"s":const R=("a"===F.op?this.map.get(F.param):void 0)||[];R.push(he(F.value)),this.map.set(F.param,R);break;case"d":if(void 0===F.value){this.map.delete(F.param);break}{let de=this.map.get(F.param)||[];const z=de.indexOf(he(F.value));-1!==z&&de.splice(z,1),de.length>0?this.map.set(F.param,de):this.map.delete(F.param)}}}),this.cloneFrom=this.updates=null)}}class $e{constructor(F){this.defaultValue=F}}class at{constructor(){this.map=new Map}set(F,R){return this.map.set(F,R),this}get(F){return this.map.has(F)||this.map.set(F,F.defaultValue()),this.map.get(F)}delete(F){return this.map.delete(F),this}keys(){return this.map.keys()}}function Me(x){return"undefined"!=typeof ArrayBuffer&&x instanceof ArrayBuffer}function Re(x){return"undefined"!=typeof Blob&&x instanceof Blob}function Pe(x){return"undefined"!=typeof FormData&&x instanceof FormData}class Ct{constructor(F,R,de,z){let re;if(this.url=R,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=F.toUpperCase(),function(x){switch(x){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||z?(this.body=void 0!==de?de:null,re=z):re=de,re&&(this.reportProgress=!!re.reportProgress,this.withCredentials=!!re.withCredentials,re.responseType&&(this.responseType=re.responseType),re.headers&&(this.headers=re.headers),re.context&&(this.context=re.context),re.params&&(this.params=re.params)),this.headers||(this.headers=new M),this.context||(this.context=new at),this.params){const Be=this.params.toString();if(0===Be.length)this.urlWithParams=R;else{const gt=R.indexOf("?");this.urlWithParams=R+(-1===gt?"?":gt<R.length-1?"&":"")+Be}}else this.params=new ye,this.urlWithParams=R}serializeBody(){return null===this.body?null:Me(this.body)||Re(this.body)||Pe(this.body)||"undefined"!=typeof URLSearchParams&&this.body instanceof URLSearchParams||"string"==typeof this.body?this.body:this.body instanceof ye?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Pe(this.body)?null:Re(this.body)?this.body.type||null:Me(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ye?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(F={}){var R;const de=F.method||this.method,z=F.url||this.url,re=F.responseType||this.responseType,Be=void 0!==F.body?F.body:this.body,gt=void 0!==F.withCredentials?F.withCredentials:this.withCredentials,Et=void 0!==F.reportProgress?F.reportProgress:this.reportProgress;let xt=F.headers||this.headers,Nt=F.params||this.params;const Ut=null!==(R=F.context)&&void 0!==R?R:this.context;return void 0!==F.setHeaders&&(xt=Object.keys(F.setHeaders).reduce((Qt,At)=>Qt.set(At,F.setHeaders[At]),xt)),F.setParams&&(Nt=Object.keys(F.setParams).reduce((Qt,At)=>Qt.set(At,F.setParams[At]),Nt)),new Ct(de,z,Be,{params:Nt,headers:xt,context:Ut,reportProgress:Et,responseType:re,withCredentials:gt})}}var te=(()=>((te=te||{})[te.Sent=0]="Sent",te[te.UploadProgress=1]="UploadProgress",te[te.ResponseHeader=2]="ResponseHeader",te[te.DownloadProgress=3]="DownloadProgress",te[te.Response=4]="Response",te[te.User=5]="User",te))();class ge{constructor(F,R=200,de="OK"){this.headers=F.headers||new M,this.status=void 0!==F.status?F.status:R,this.statusText=F.statusText||de,this.url=F.url||null,this.ok=this.status>=200&&this.status<300}}class X extends ge{constructor(F={}){super(F),this.type=te.ResponseHeader}clone(F={}){return new X({headers:F.headers||this.headers,status:void 0!==F.status?F.status:this.status,statusText:F.statusText||this.statusText,url:F.url||this.url||void 0})}}class ce extends ge{constructor(F={}){super(F),this.type=te.Response,this.body=void 0!==F.body?F.body:null}clone(F={}){return new ce({body:void 0!==F.body?F.body:this.body,headers:F.headers||this.headers,status:void 0!==F.status?F.status:this.status,statusText:F.statusText||this.statusText,url:F.url||this.url||void 0})}}class Ae extends ge{constructor(F){super(F,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${F.url||"(unknown url)"}`:`Http failure response for ${F.url||"(unknown url)"}: ${F.status} ${F.statusText}`,this.error=F.error||null}}function Ce(x,F){return{body:F,headers:x.headers,context:x.context,observe:x.observe,params:x.params,reportProgress:x.reportProgress,responseType:x.responseType,withCredentials:x.withCredentials}}let Ue=(()=>{class x{constructor(R){this.handler=R}request(R,de,z={}){let re;if(R instanceof Ct)re=R;else{let Et,xt;Et=z.headers instanceof M?z.headers:new M(z.headers),z.params&&(xt=z.params instanceof ye?z.params:new ye({fromObject:z.params})),re=new Ct(R,de,void 0!==z.body?z.body:null,{headers:Et,context:z.context,params:xt,reportProgress:z.reportProgress,responseType:z.responseType||"json",withCredentials:z.withCredentials})}const Be=(0,h.of)(re).pipe(function(x,F){return(0,a.zg)(x,void 0,1)}(Et=>this.handler.handle(Et)));if(R instanceof Ct||"events"===z.observe)return Be;const gt=Be.pipe((0,w.h)(Et=>Et instanceof ce));switch(z.observe||"body"){case"body":switch(re.responseType){case"arraybuffer":return gt.pipe((0,D.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Et.body}));case"blob":return gt.pipe((0,D.U)(Et=>{if(null!==Et.body&&!(Et.body instanceof Blob))throw new Error("Response is not a Blob.");return Et.body}));case"text":return gt.pipe((0,D.U)(Et=>{if(null!==Et.body&&"string"!=typeof Et.body)throw new Error("Response is not a string.");return Et.body}));case"json":default:return gt.pipe((0,D.U)(Et=>Et.body))}case"response":return gt;default:throw new Error(`Unreachable: unhandled observe type ${z.observe}}`)}}delete(R,de={}){return this.request("DELETE",R,de)}get(R,de={}){return this.request("GET",R,de)}head(R,de={}){return this.request("HEAD",R,de)}jsonp(R,de){return this.request("JSONP",R,{params:(new ye).append(de,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(R,de={}){return this.request("OPTIONS",R,de)}patch(R,de,z={}){return this.request("PATCH",R,Ce(z,de))}post(R,de,z={}){return this.request("POST",R,Ce(z,de))}put(R,de,z={}){return this.request("PUT",R,Ce(z,de))}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(g))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();class et{constructor(F,R){this.next=F,this.interceptor=R}handle(F){return this.interceptor.intercept(F,this.next)}}const pt=new l.InjectionToken("HTTP_INTERCEPTORS");let je=(()=>{class x{intercept(R,de){return de.handle(R)}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),tt=0;class dt{}let $=(()=>{class x{constructor(R,de){this.callbackMap=R,this.document=de,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+tt++}handle(R){if("JSONP"!==R.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==R.responseType)throw new Error("JSONP requests must use Json response type.");return new _.y(de=>{const z=this.nextCallback(),re=R.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${z}$1`),Be=this.document.createElement("script");Be.src=re;let gt=null,Et=!1,xt=!1;this.callbackMap[z]=At=>{delete this.callbackMap[z],!xt&&(gt=At,Et=!0)};const Nt=()=>{Be.parentNode&&Be.parentNode.removeChild(Be),delete this.callbackMap[z]},Ut=At=>{xt||this.resolvedPromise.then(()=>{Nt(),Et?(de.next(new ce({body:gt,status:200,statusText:"OK",url:re})),de.complete()):de.error(new Ae({url:re,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})},Qt=At=>{xt||(Nt(),de.error(new Ae({error:At,status:0,statusText:"JSONP Error",url:re})))};return Be.addEventListener("load",Ut),Be.addEventListener("error",Qt),this.document.body.appendChild(Be),de.next({type:te.Sent}),()=>{xt=!0,Be.removeEventListener("load",Ut),Be.removeEventListener("error",Qt),Nt()}})}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(dt),l.\u0275\u0275inject(o.DOCUMENT))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),se=(()=>{class x{constructor(R){this.jsonp=R}intercept(R,de){return"JSONP"===R.method?this.jsonp.handle(R):de.handle(R)}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject($))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();const H=/^\)\]\}',?\n/;let ne=(()=>{class x{constructor(R){this.xhrFactory=R}handle(R){if("JSONP"===R.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new _.y(de=>{const z=this.xhrFactory.build();if(z.open(R.method,R.urlWithParams),R.withCredentials&&(z.withCredentials=!0),R.headers.forEach((At,Lt)=>z.setRequestHeader(At,Lt.join(","))),R.headers.has("Accept")||z.setRequestHeader("Accept","application/json, text/plain, */*"),!R.headers.has("Content-Type")){const At=R.detectContentTypeHeader();null!==At&&z.setRequestHeader("Content-Type",At)}if(R.responseType){const At=R.responseType.toLowerCase();z.responseType="json"!==At?At:"text"}const re=R.serializeBody();let Be=null;const gt=()=>{if(null!==Be)return Be;const At=1223===z.status?204:z.status,Lt=z.statusText||"OK",jt=new M(z.getAllResponseHeaders()),_n=function(x){return"responseURL"in x&&x.responseURL?x.responseURL:/^X-Request-URL:/m.test(x.getAllResponseHeaders())?x.getResponseHeader("X-Request-URL"):null}(z)||R.url;return Be=new X({headers:jt,status:At,statusText:Lt,url:_n}),Be},Et=()=>{let{headers:At,status:Lt,statusText:jt,url:_n}=gt(),qe=null;204!==Lt&&(qe=void 0===z.response?z.responseText:z.response),0===Lt&&(Lt=qe?200:0);let Pt=Lt>=200&&Lt<300;if("json"===R.responseType&&"string"==typeof qe){const B=qe;qe=qe.replace(H,"");try{qe=""!==qe?JSON.parse(qe):null}catch(K){qe=B,Pt&&(Pt=!1,qe={error:K,text:qe})}}Pt?(de.next(new ce({body:qe,headers:At,status:Lt,statusText:jt,url:_n||void 0})),de.complete()):de.error(new Ae({error:qe,headers:At,status:Lt,statusText:jt,url:_n||void 0}))},xt=At=>{const{url:Lt}=gt(),jt=new Ae({error:At,status:z.status||0,statusText:z.statusText||"Unknown Error",url:Lt||void 0});de.error(jt)};let Nt=!1;const Ut=At=>{Nt||(de.next(gt()),Nt=!0);let Lt={type:te.DownloadProgress,loaded:At.loaded};At.lengthComputable&&(Lt.total=At.total),"text"===R.responseType&&!!z.responseText&&(Lt.partialText=z.responseText),de.next(Lt)},Qt=At=>{let Lt={type:te.UploadProgress,loaded:At.loaded};At.lengthComputable&&(Lt.total=At.total),de.next(Lt)};return z.addEventListener("load",Et),z.addEventListener("error",xt),z.addEventListener("timeout",xt),z.addEventListener("abort",xt),R.reportProgress&&(z.addEventListener("progress",Ut),null!==re&&z.upload&&z.upload.addEventListener("progress",Qt)),z.send(re),de.next({type:te.Sent}),()=>{z.removeEventListener("error",xt),z.removeEventListener("abort",xt),z.removeEventListener("load",Et),z.removeEventListener("timeout",xt),R.reportProgress&&(z.removeEventListener("progress",Ut),null!==re&&z.upload&&z.upload.removeEventListener("progress",Qt)),z.readyState!==z.DONE&&z.abort()}})}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(o.XhrFactory))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();const fe=new l.InjectionToken("XSRF_COOKIE_NAME"),Oe=new l.InjectionToken("XSRF_HEADER_NAME");class rt{}let wt=(()=>{class x{constructor(R,de,z){this.doc=R,this.platform=de,this.cookieName=z,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const R=this.doc.cookie||"";return R!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,o.\u0275parseCookieValue)(R,this.cookieName),this.lastCookieString=R),this.lastToken}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(l.PLATFORM_ID),l.\u0275\u0275inject(fe))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),Je=(()=>{class x{constructor(R,de){this.tokenService=R,this.headerName=de}intercept(R,de){const z=R.url.toLowerCase();if("GET"===R.method||"HEAD"===R.method||z.startsWith("http://")||z.startsWith("https://"))return de.handle(R);const re=this.tokenService.getToken();return null!==re&&!R.headers.has(this.headerName)&&(R=R.clone({headers:R.headers.set(this.headerName,re)})),de.handle(R)}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(rt),l.\u0275\u0275inject(Oe))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})(),ze=(()=>{class x{constructor(R,de){this.backend=R,this.injector=de,this.chain=null}handle(R){if(null===this.chain){const de=this.injector.get(pt,[]);this.chain=de.reduceRight((z,re)=>new et(z,re),this.backend)}return this.chain.handle(R)}}return x.\u0275fac=function(R){return new(R||x)(l.\u0275\u0275inject(E),l.\u0275\u0275inject(l.Injector))},x.\u0275prov=l.\u0275\u0275defineInjectable({token:x,factory:x.\u0275fac}),x})();function q(){return"object"==typeof window?window:{}}let Ge=(()=>{class x{static disable(){return{ngModule:x,providers:[{provide:Je,useClass:je}]}}static withOptions(R={}){return{ngModule:x,providers:[R.cookieName?{provide:fe,useValue:R.cookieName}:[],R.headerName?{provide:Oe,useValue:R.headerName}:[]]}}}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=l.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=l.\u0275\u0275defineInjector({providers:[Je,{provide:pt,useExisting:Je,multi:!0},{provide:rt,useClass:wt},{provide:fe,useValue:"XSRF-TOKEN"},{provide:Oe,useValue:"X-XSRF-TOKEN"}]}),x})(),ft=(()=>{class x{}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=l.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=l.\u0275\u0275defineInjector({providers:[Ue,{provide:g,useClass:ze},ne,{provide:E,useExisting:ne}],imports:[[Ge.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),x})(),vt=(()=>{class x{}return x.\u0275fac=function(R){return new(R||x)},x.\u0275mod=l.\u0275\u0275defineNgModule({type:x}),x.\u0275inj=l.\u0275\u0275defineInjector({providers:[$,{provide:dt,useFactory:q},{provide:pt,useClass:se,multi:!0}]}),x})();const Ye=o.XhrFactory},7716:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{ANALYZE_FOR_ENTRY_COMPONENTS:()=>Cb,APP_BOOTSTRAP_LISTENER:()=>uv,APP_ID:()=>ov,APP_INITIALIZER:()=>lh,ApplicationInitStatus:()=>Ss,ApplicationModule:()=>oS,ApplicationRef:()=>xa,Attribute:()=>ef,COMPILER_OPTIONS:()=>_v,CUSTOM_ELEMENTS_SCHEMA:()=>Uf,ChangeDetectionStrategy:()=>R,ChangeDetectorRef:()=>Pd,Compiler:()=>Oa,CompilerFactory:()=>yv,Component:()=>rM,ComponentFactory:()=>bs,ComponentFactoryResolver:()=>Cs,ComponentRef:()=>Cd,ContentChild:()=>Db,ContentChildren:()=>Eb,DEFAULT_CURRENCY_CODE:()=>hv,DebugElement:()=>nS,DebugEventListener:()=>jv,DebugNode:()=>tS,DefaultIterableDiffer:()=>v_,Directive:()=>ev,ElementRef:()=>cr,EmbeddedViewRef:()=>WM,ErrorHandler:()=>Xo,EventEmitter:()=>xr,Host:()=>uf,HostBinding:()=>lM,HostListener:()=>cM,INJECTOR:()=>co,Inject:()=>Go,InjectFlags:()=>q,Injectable:()=>vD,InjectionToken:()=>jn,Injector:()=>In,Input:()=>sM,IterableDiffers:()=>Tl,KeyValueDiffers:()=>wl,LOCALE_ID:()=>kl,MissingTranslationStrategy:()=>Rr,ModuleWithComponentFactories:()=>pv,NO_ERRORS_SCHEMA:()=>zf,NgModule:()=>fM,NgModuleFactory:()=>Ad,NgModuleFactoryLoader:()=>BM,NgModuleRef:()=>uo,NgProbeToken:()=>kM,NgZone:()=>Ni,Optional:()=>Wr,Output:()=>aM,PACKAGE_ROOT_URL:()=>mM,PLATFORM_ID:()=>cv,PLATFORM_INITIALIZER:()=>lv,Pipe:()=>oM,PlatformRef:()=>vh,Query:()=>Us,QueryList:()=>Sa,ReflectiveInjector:()=>gs,ReflectiveKey:()=>Xr,Renderer2:()=>m_,RendererFactory2:()=>Dl,RendererStyleFlags2:()=>Ir,ResolvedReflectiveFactory:()=>jm,Sanitizer:()=>Dd,SecurityContext:()=>Bn,Self:()=>Qo,SimpleChange:()=>er,SkipSelf:()=>Kr,SystemJsNgModuleLoader:()=>zM,SystemJsNgModuleLoaderConfig:()=>Fv,TRANSLATIONS:()=>gM,TRANSLATIONS_FORMAT:()=>_M,TemplateRef:()=>Po,Testability:()=>Ev,TestabilityRegistry:()=>ph,Type:()=>Ga,VERSION:()=>Td,Version:()=>y_,ViewChild:()=>wb,ViewChildren:()=>Tb,ViewContainerRef:()=>ga,ViewEncapsulation:()=>re,ViewRef:()=>Lv,WrappedValue:()=>Gi,asNativeElements:()=>KM,assertPlatform:()=>Pv,createPlatform:()=>Sv,createPlatformFactory:()=>Iv,defineInjectable:()=>se,destroyPlatform:()=>FM,enableProdMode:()=>PM,forwardRef:()=>M,getDebugNode:()=>Zn,getModuleFactory:()=>HM,getPlatform:()=>yh,inject:()=>Lb,isDevMode:()=>gh,platformCore:()=>iS,resolveForwardRef:()=>S,setTestabilityGetter:()=>IM,\u02750:()=>cf,\u0275ALLOW_MULTIPLE_PLATFORMS:()=>_h,\u0275APP_ID_RANDOM_PROVIDER:()=>av,\u0275CREATE_ATTRIBUTE_DECORATOR__POST_R3__:()=>qh,\u0275ChangeDetectorStatus:()=>de,\u0275CodegenComponentFactoryResolver:()=>n0,\u0275Compiler_compileModuleAndAllComponentsAsync__POST_R3__:()=>gv,\u0275Compiler_compileModuleAndAllComponentsSync__POST_R3__:()=>uh,\u0275Compiler_compileModuleAsync__POST_R3__:()=>mv,\u0275Compiler_compileModuleSync__POST_R3__:()=>Fl,\u0275ComponentFactory:()=>bs,\u0275Console:()=>dv,\u0275DEFAULT_LOCALE_ID:()=>ca,\u0275EMPTY_ARRAY:()=>Lt,\u0275EMPTY_MAP:()=>j0,\u0275INJECTOR_IMPL__POST_R3__:()=>sm,\u0275INJECTOR_SCOPE:()=>ea,\u0275LifecycleHooksFeature:()=>Dm,\u0275LocaleDataIndex:()=>Jt,\u0275NG_COMP_DEF:()=>jt,\u0275NG_DIR_DEF:()=>_n,\u0275NG_ELEMENT_ID:()=>W,\u0275NG_INJ_DEF:()=>Je,\u0275NG_MOD_DEF:()=>Pt,\u0275NG_PIPE_DEF:()=>qe,\u0275NG_PROV_DEF:()=>wt,\u0275NOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR:()=>Oo,\u0275NO_CHANGE:()=>on,\u0275NgModuleFactory:()=>xl,\u0275NoopNgZone:()=>Cv,\u0275ReflectionCapabilities:()=>zo,\u0275Render3ComponentFactory:()=>Ud,\u0275Render3ComponentRef:()=>ny,\u0275Render3NgModuleRef:()=>ay,\u0275RuntimeError:()=>j,\u0275SWITCH_CHANGE_DETECTOR_REF_FACTORY__POST_R3__:()=>E_,\u0275SWITCH_COMPILE_COMPONENT__POST_R3__:()=>tv,\u0275SWITCH_COMPILE_DIRECTIVE__POST_R3__:()=>nv,\u0275SWITCH_COMPILE_INJECTABLE__POST_R3__:()=>Rm,\u0275SWITCH_COMPILE_NGMODULE__POST_R3__:()=>rv,\u0275SWITCH_COMPILE_PIPE__POST_R3__:()=>iv,\u0275SWITCH_ELEMENT_REF_FACTORY__POST_R3__:()=>f_,\u0275SWITCH_IVY_ENABLED__POST_R3__:()=>fv,\u0275SWITCH_RENDERER2_FACTORY__POST_R3__:()=>g_,\u0275SWITCH_TEMPLATE_REF_FACTORY__POST_R3__:()=>M_,\u0275SWITCH_VIEW_CONTAINER_REF_FACTORY__POST_R3__:()=>I_,\u0275_sanitizeHtml:()=>Sf,\u0275_sanitizeUrl:()=>Ks,\u0275allowSanitizationBypassAndThrow:()=>Zo,\u0275and:()=>sS,\u0275angular_packages_core_core_a:()=>P,\u0275angular_packages_core_core_b:()=>sf,\u0275angular_packages_core_core_ba:()=>Gv,\u0275angular_packages_core_core_bb:()=>Fg,\u0275angular_packages_core_core_bc:()=>Ol,\u0275angular_packages_core_core_bd:()=>M0,\u0275angular_packages_core_core_be:()=>ji,\u0275angular_packages_core_core_bf:()=>ty,\u0275angular_packages_core_core_bg:()=>Wh,\u0275angular_packages_core_core_bh:()=>Mt,\u0275angular_packages_core_core_bi:()=>Te,\u0275angular_packages_core_core_bj:()=>Ls,\u0275angular_packages_core_core_bl:()=>zd,\u0275angular_packages_core_core_bm:()=>Wd,\u0275angular_packages_core_core_bn:()=>Kd,\u0275angular_packages_core_core_bo:()=>Gd,\u0275angular_packages_core_core_bp:()=>Qd,\u0275angular_packages_core_core_bq:()=>Rf,\u0275angular_packages_core_core_br:()=>zr,\u0275angular_packages_core_core_bs:()=>ro,\u0275angular_packages_core_core_bv:()=>C,\u0275angular_packages_core_core_bw:()=>Jc,\u0275angular_packages_core_core_bx:()=>ft,\u0275angular_packages_core_core_bz:()=>St,\u0275angular_packages_core_core_c:()=>Ko,\u0275angular_packages_core_core_cb:()=>bc,\u0275angular_packages_core_core_cc:()=>i_,\u0275angular_packages_core_core_d:()=>Um,\u0275angular_packages_core_core_e:()=>oa,\u0275angular_packages_core_core_f:()=>Bm,\u0275angular_packages_core_core_g:()=>sv,\u0275angular_packages_core_core_h:()=>__,\u0275angular_packages_core_core_i:()=>h_,\u0275angular_packages_core_core_j:()=>Io,\u0275angular_packages_core_core_k:()=>VM,\u0275angular_packages_core_core_l:()=>S_,\u0275angular_packages_core_core_m:()=>ma,\u0275angular_packages_core_core_n:()=>P_,\u0275angular_packages_core_core_o:()=>Ra,\u0275angular_packages_core_core_p:()=>Jn,\u0275angular_packages_core_core_q:()=>ZM,\u0275angular_packages_core_core_r:()=>D_,\u0275angular_packages_core_core_s:()=>wd,\u0275angular_packages_core_core_t:()=>Md,\u0275angular_packages_core_core_u:()=>Sd,\u0275angular_packages_core_core_v:()=>Id,\u0275angular_packages_core_core_w:()=>Uv,\u0275angular_packages_core_core_x:()=>zv,\u0275angular_packages_core_core_y:()=>Wv,\u0275angular_packages_core_core_z:()=>Kv,\u0275bypassSanitizationTrustHtml:()=>Zb,\u0275bypassSanitizationTrustResourceUrl:()=>tC,\u0275bypassSanitizationTrustScript:()=>qb,\u0275bypassSanitizationTrustStyle:()=>Xb,\u0275bypassSanitizationTrustUrl:()=>eC,\u0275ccf:()=>nw,\u0275clearOverrides:()=>uI,\u0275clearResolutionOfComponentResourcesQueue:()=>mf,\u0275cmf:()=>dI,\u0275compileComponent:()=>$y,\u0275compileDirective:()=>ah,\u0275compileNgModule:()=>Ny,\u0275compileNgModuleDefs:()=>Ly,\u0275compileNgModuleFactory__POST_R3__:()=>wv,\u0275compilePipe:()=>Xy,\u0275createInjector:()=>nm,\u0275crt:()=>I0,\u0275defaultIterableDiffers:()=>T_,\u0275defaultKeyValueDiffers:()=>w_,\u0275detectChanges:()=>qp,\u0275devModeEqual:()=>au,\u0275did:()=>yw,\u0275eld:()=>aS,\u0275findLocaleData:()=>dd,\u0275flushModuleScopingQueueAsMuchAsPossible:()=>ky,\u0275getComponentViewDefinitionFactory:()=>K_,\u0275getDebugNodeR2:()=>qM,\u0275getDebugNode__POST_R3__:()=>Ll,\u0275getDirectives:()=>gm,\u0275getHostElement:()=>iu,\u0275getInjectableDef:()=>le,\u0275getLContext:()=>di,\u0275getLocaleCurrencyCode:()=>aT,\u0275getLocalePluralCase:()=>Rg,\u0275getModuleFactory__POST_R3__:()=>xv,\u0275getSanitizationBypassType:()=>vf,\u0275global:()=>Nt,\u0275initServicesIfNeeded:()=>La,\u0275inlineInterpolate:()=>L0,\u0275interpolate:()=>N0,\u0275isBoundToModule__POST_R3__:()=>Mv,\u0275isDefaultChangeDetectionStrategy:()=>z,\u0275isListLikeIterable:()=>ia,\u0275isObservable:()=>Pu,\u0275isPromise:()=>Iu,\u0275isSubscribable:()=>Qm,\u0275ivyEnabled:()=>Aa,\u0275makeDecorator:()=>$o,\u0275markDirty:()=>em,\u0275mod:()=>U0,\u0275mpd:()=>$0,\u0275ncd:()=>CS,\u0275noSideEffects:()=>F,\u0275nov:()=>uw,\u0275overrideComponentView:()=>cI,\u0275overrideProvider:()=>lI,\u0275pad:()=>TS,\u0275patchComponentDefWithScope:()=>rh,\u0275pid:()=>vw,\u0275pod:()=>wS,\u0275ppd:()=>DS,\u0275prd:()=>bw,\u0275publishDefaultGlobalUtils:()=>tD,\u0275publishGlobalUtil:()=>Ki,\u0275qud:()=>_S,\u0275registerLocaleData:()=>sT,\u0275registerModuleFactory:()=>xw,\u0275registerNgModuleType:()=>oy,\u0275renderComponent:()=>nD,\u0275resetCompiledComponents:()=>Qw,\u0275resetJitOptions:()=>Kw,\u0275resolveComponentResources:()=>ff,\u0275setClassMetadata:()=>iy,\u0275setCurrentInjector:()=>Eo,\u0275setDocument:()=>Dr,\u0275setLocaleId:()=>vl,\u0275store:()=>Sm,\u0275stringify:()=>D,\u0275ted:()=>PS,\u0275transitiveScopesFor:()=>Pa,\u0275unregisterLocaleData:()=>lT,\u0275unv:()=>S0,\u0275unwrapSafeValue:()=>Gr,\u0275vid:()=>RS,\u0275whenRendered:()=>iD,\u0275\u0275CopyDefinitionFeature:()=>wm,\u0275\u0275FactoryTarget:()=>Gn,\u0275\u0275InheritDefinitionFeature:()=>ou,\u0275\u0275NgOnChangesFeature:()=>Mi,\u0275\u0275ProvidersFeature:()=>c_,\u0275\u0275advance:()=>Cp,\u0275\u0275attribute:()=>cu,\u0275\u0275attributeInterpolate1:()=>uu,\u0275\u0275attributeInterpolate2:()=>du,\u0275\u0275attributeInterpolate3:()=>hu,\u0275\u0275attributeInterpolate4:()=>fu,\u0275\u0275attributeInterpolate5:()=>pu,\u0275\u0275attributeInterpolate6:()=>mu,\u0275\u0275attributeInterpolate7:()=>gu,\u0275\u0275attributeInterpolate8:()=>_u,\u0275\u0275attributeInterpolateV:()=>yu,\u0275\u0275classMap:()=>ag,\u0275\u0275classMapInterpolate1:()=>mg,\u0275\u0275classMapInterpolate2:()=>gg,\u0275\u0275classMapInterpolate3:()=>_g,\u0275\u0275classMapInterpolate4:()=>yg,\u0275\u0275classMapInterpolate5:()=>vg,\u0275\u0275classMapInterpolate6:()=>bg,\u0275\u0275classMapInterpolate7:()=>Cg,\u0275\u0275classMapInterpolate8:()=>Eg,\u0275\u0275classMapInterpolateV:()=>Dg,\u0275\u0275classProp:()=>Uu,\u0275\u0275contentQuery:()=>Iy,\u0275\u0275defineComponent:()=>Ee,\u0275\u0275defineDirective:()=>dn,\u0275\u0275defineInjectable:()=>$,\u0275\u0275defineInjector:()=>H,\u0275\u0275defineNgModule:()=>st,\u0275\u0275definePipe:()=>cn,\u0275\u0275directiveInject:()=>aa,\u0275\u0275disableBindings:()=>Fs,\u0275\u0275element:()=>Wm,\u0275\u0275elementContainer:()=>Km,\u0275\u0275elementContainerEnd:()=>Su,\u0275\u0275elementContainerStart:()=>Mu,\u0275\u0275elementEnd:()=>wu,\u0275\u0275elementStart:()=>Tu,\u0275\u0275enableBindings:()=>ks,\u0275\u0275getCurrentView:()=>Gm,\u0275\u0275getInheritedFactory:()=>Xh,\u0275\u0275hostProperty:()=>cd,\u0275\u0275i18n:()=>r_,\u0275\u0275i18nApply:()=>s_,\u0275\u0275i18nAttributes:()=>o_,\u0275\u0275i18nEnd:()=>md,\u0275\u0275i18nExp:()=>gd,\u0275\u0275i18nPostprocess:()=>a_,\u0275\u0275i18nStart:()=>pd,\u0275\u0275inject:()=>$n,\u0275\u0275injectAttribute:()=>Xl,\u0275\u0275invalidFactory:()=>zm,\u0275\u0275invalidFactoryDep:()=>oc,\u0275\u0275listener:()=>Au,\u0275\u0275loadQuery:()=>Py,\u0275\u0275namespaceHTML:()=>tn,\u0275\u0275namespaceMathML:()=>Kt,\u0275\u0275namespaceSVG:()=>Bt,\u0275\u0275nextContext:()=>Zm,\u0275\u0275ngDeclareClassMetadata:()=>mI,\u0275\u0275ngDeclareComponent:()=>gI,\u0275\u0275ngDeclareDirective:()=>pI,\u0275\u0275ngDeclareFactory:()=>_I,\u0275\u0275ngDeclareInjectable:()=>vI,\u0275\u0275ngDeclareInjector:()=>bI,\u0275\u0275ngDeclareNgModule:()=>CI,\u0275\u0275ngDeclarePipe:()=>EI,\u0275\u0275pipe:()=>yy,\u0275\u0275pipeBind1:()=>vy,\u0275\u0275pipeBind2:()=>by,\u0275\u0275pipeBind3:()=>Cy,\u0275\u0275pipeBind4:()=>Ey,\u0275\u0275pipeBindV:()=>Dy,\u0275\u0275projection:()=>qm,\u0275\u0275projectionDef:()=>Xm,\u0275\u0275property:()=>Eu,\u0275\u0275propertyInterpolate:()=>Ru,\u0275\u0275propertyInterpolate1:()=>pl,\u0275\u0275propertyInterpolate2:()=>ku,\u0275\u0275propertyInterpolate3:()=>Fu,\u0275\u0275propertyInterpolate4:()=>Nu,\u0275\u0275propertyInterpolate5:()=>Lu,\u0275\u0275propertyInterpolate6:()=>ju,\u0275\u0275propertyInterpolate7:()=>Bu,\u0275\u0275propertyInterpolate8:()=>Vu,\u0275\u0275propertyInterpolateV:()=>Hu,\u0275\u0275pureFunction0:()=>ly,\u0275\u0275pureFunction1:()=>cy,\u0275\u0275pureFunction2:()=>uy,\u0275\u0275pureFunction3:()=>dy,\u0275\u0275pureFunction4:()=>hy,\u0275\u0275pureFunction5:()=>fy,\u0275\u0275pureFunction6:()=>py,\u0275\u0275pureFunction7:()=>my,\u0275\u0275pureFunction8:()=>gy,\u0275\u0275pureFunctionV:()=>_y,\u0275\u0275queryRefresh:()=>My,\u0275\u0275reference:()=>Im,\u0275\u0275resolveBody:()=>Jf,\u0275\u0275resolveDocument:()=>Yf,\u0275\u0275resolveWindow:()=>Qf,\u0275\u0275restoreView:()=>Ns,\u0275\u0275sanitizeHtml:()=>If,\u0275\u0275sanitizeResourceUrl:()=>pc,\u0275\u0275sanitizeScript:()=>Af,\u0275\u0275sanitizeStyle:()=>Pf,\u0275\u0275sanitizeUrl:()=>fc,\u0275\u0275sanitizeUrlOrResourceUrl:()=>kf,\u0275\u0275setComponentScope:()=>Q,\u0275\u0275setNgModuleScope:()=>_t,\u0275\u0275styleMap:()=>sr,\u0275\u0275styleMapInterpolate1:()=>Tg,\u0275\u0275styleMapInterpolate2:()=>wg,\u0275\u0275styleMapInterpolate3:()=>Mg,\u0275\u0275styleMapInterpolate4:()=>Sg,\u0275\u0275styleMapInterpolate5:()=>Ig,\u0275\u0275styleMapInterpolate6:()=>Pg,\u0275\u0275styleMapInterpolate7:()=>Ag,\u0275\u0275styleMapInterpolate8:()=>Og,\u0275\u0275styleMapInterpolateV:()=>xg,\u0275\u0275styleProp:()=>$u,\u0275\u0275stylePropInterpolate1:()=>ed,\u0275\u0275stylePropInterpolate2:()=>td,\u0275\u0275stylePropInterpolate3:()=>nd,\u0275\u0275stylePropInterpolate4:()=>id,\u0275\u0275stylePropInterpolate5:()=>rd,\u0275\u0275stylePropInterpolate6:()=>od,\u0275\u0275stylePropInterpolate7:()=>sd,\u0275\u0275stylePropInterpolate8:()=>ad,\u0275\u0275stylePropInterpolateV:()=>ld,\u0275\u0275syntheticHostListener:()=>Ou,\u0275\u0275syntheticHostProperty:()=>ud,\u0275\u0275template:()=>Mm,\u0275\u0275templateRefExtractor:()=>Ry,\u0275\u0275text:()=>pg,\u0275\u0275textInterpolate:()=>Wu,\u0275\u0275textInterpolate1:()=>gl,\u0275\u0275textInterpolate2:()=>Ku,\u0275\u0275textInterpolate3:()=>Gu,\u0275\u0275textInterpolate4:()=>Qu,\u0275\u0275textInterpolate5:()=>Yu,\u0275\u0275textInterpolate6:()=>Ju,\u0275\u0275textInterpolate7:()=>Zu,\u0275\u0275textInterpolate8:()=>Xu,\u0275\u0275textInterpolateV:()=>qu,\u0275\u0275trustConstantHtml:()=>Of,\u0275\u0275trustConstantResourceUrl:()=>xf,\u0275\u0275viewQuery:()=>Sy});var o=d(9765),l=d(826),h=d(9897),_=d(6682),a=d(8819);function C(e){for(let t in e)if(e[t]===C)return t;throw Error("Could not find renamed property on target object.")}function w(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function D(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(D).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function g(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const E=C({__forward_ref__:C});function M(e){return e.__forward_ref__=M,e.toString=function(){return D(this())},e}function S(e){return P(e)?e():e}function P(e){return"function"==typeof e&&e.hasOwnProperty(E)&&e.__forward_ref__===M}class j extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function ye(e){return"string"==typeof e?e:null==e?"":String(e)}function $e(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ye(e)}function Re(e,t){const n=t?` in ${t}`:"";throw new j("201",`No provider for ${$e(e)} found${n}`)}function ut(e,t,n,i){throw new Error(`ASSERTION ERROR: ${e}`+(null==i?"":` [Expected=> ${n} ${i} ${t} <=Actual]`))}function $(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}const se=$;function H(e){return{providers:e.providers||[],imports:e.imports||[]}}function le(e){return ne(e,wt)||ne(e,ze)}function ne(e,t){return e.hasOwnProperty(t)?e[t]:null}function rt(e){return e&&(e.hasOwnProperty(Je)||e.hasOwnProperty(He))?e[Je]:null}const wt=C({\u0275prov:C}),Je=C({\u0275inj:C}),ze=C({ngInjectableDef:C}),He=C({ngInjectorDef:C});var q=(()=>((q=q||{})[q.Default=0]="Default",q[q.Host=1]="Host",q[q.Self=2]="Self",q[q.SkipSelf=4]="SkipSelf",q[q.Optional=8]="Optional",q))();let Ge;function ft(){return Ge}function vt(e){const t=Ge;return Ge=e,t}function Ye(e,t,n){const i=le(e);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&q.Optional?null:void 0!==t?t:void Re(D(e),"Injector")}function F(e){return{toString:e}.toString()}var R=(()=>((R=R||{})[R.OnPush=0]="OnPush",R[R.Default=1]="Default",R))(),de=(()=>((de=de||{})[de.CheckOnce=0]="CheckOnce",de[de.Checked=1]="Checked",de[de.CheckAlways=2]="CheckAlways",de[de.Detached=3]="Detached",de[de.Errored=4]="Errored",de[de.Destroyed=5]="Destroyed",de))();function z(e){return null==e||e===R.Default}var re=(()=>((re=re||{})[re.Emulated=0]="Emulated",re[re.None=2]="None",re[re.ShadowDom=3]="ShadowDom",re))();const Be="undefined"!=typeof globalThis&&globalThis,gt="undefined"!=typeof window&&window,Et="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Nt=Be||"undefined"!=typeof global&&global||gt||Et,At={},Lt=[],jt=C({\u0275cmp:C}),_n=C({\u0275dir:C}),qe=C({\u0275pipe:C}),Pt=C({\u0275mod:C}),B=C({\u0275loc:C}),K=C({\u0275fac:C}),W=C({__NG_ELEMENT_ID__:C});let De=0;function Ee(e){return F(()=>{const n={},i={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===R.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||Lt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||re.Emulated,id:"c",styles:e.styles||Lt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,s=e.features,c=e.pipes;return i.id+=De++,i.inputs=Ht(e.inputs,n),i.outputs=Ht(e.outputs),s&&s.forEach(u=>u(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(J):null,i.pipeDefs=c?()=>("function"==typeof c?c():c).map(N):null,i})}function Q(e,t,n){const i=e.\u0275cmp;i.directiveDefs=()=>t.map(J),i.pipeDefs=()=>n.map(N)}function J(e){return an(e)||un(e)}function N(e){return wn(e)}const oe={};function st(e){return F(()=>{const t={type:e.type,bootstrap:e.bootstrap||Lt,declarations:e.declarations||Lt,imports:e.imports||Lt,exports:e.exports||Lt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(oe[e.id]=e.type),t})}function _t(e,t){return F(()=>{const n=yn(e,!0);n.declarations=t.declarations||Lt,n.imports=t.imports||Lt,n.exports=t.exports||Lt})}function Ht(e,t){if(null==e)return At;const n={};for(const i in e)if(e.hasOwnProperty(i)){let r=e[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),n[r]=i,t&&(t[r]=s)}return n}const dn=Ee;function cn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function an(e){return e[jt]||null}function un(e){return e[_n]||null}function wn(e){return e[qe]||null}function yn(e,t){const n=e[Pt]||null;if(!n&&!0===t)throw new Error(`Type ${D(e)} does not have '\u0275mod' property.`);return n}function ti(e){return Array.isArray(e)&&"object"==typeof e[1]}function Cn(e){return Array.isArray(e)&&!0===e[1]}function Ci(e){return 0!=(8&e.flags)}function ci(e){return 2==(2&e.flags)}function ui(e){return 1==(1&e.flags)}function ni(e){return null!==e.template}function Un(e){return 0!=(512&e[2])}function yi(e,t){return e.hasOwnProperty(K)?e[K]:null}class er{constructor(t,n,i){this.previousValue=t,this.currentValue=n,this.firstChange=i}isFirstChange(){return this.firstChange}}function Mi(){return ji}function ji(e){return e.type.prototype.ngOnChanges&&(e.setInput=tr),Vr}function Vr(){const e=br(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===At)e.previous=t;else for(let i in t)n[i]=t[i];e.current=null,this.ngOnChanges(t)}}function tr(e,t,n,i){const r=br(e)||function(e,t){return e[vr]=t}(e,{previous:At,current:null}),s=r.current||(r.current={}),c=r.previous,u=this.declaredInputs[n],y=c[u];s[u]=new er(y&&y.currentValue,t,c===At),e[i]=t}Mi.ngInherit=!0;const vr="__ngSimpleChanges__";function br(e){return e[vr]||null}let Si=null;const $r=e=>{Si=e},Rn=function(e,t,n){null!=Si&&Si(e,t,n)},Cr="http://www.w3.org/2000/svg",no="http://www.w3.org/1998/MathML/";let Er;function Dr(e){Er=e}function Tr(){return void 0!==Er?Er:"undefined"!=typeof document?document:void 0}function O(e){return!!e.listen}const k={createRenderer:(e,t)=>Tr()};function v(e){for(;Array.isArray(e);)e=e[0];return e}function Qe(e,t){return v(t[e])}function St(e,t){return v(t[e.index])}function fn(e,t){return e.data[t]}function rn(e,t){return e[t]}function bn(e,t){const n=t[e];return ti(n)?n:n[0]}function Tn(e){return 4==(4&e[2])}function Ln(e){return 128==(128&e[2])}function Kn(e,t){return null==t?null:e[t]}function Bi(e){e[18]=0}function Ii(e,t){e[5]+=t;let n=e,i=e[3];for(;null!==i&&(1===t&&1===n[5]||-1===t&&0===n[5]);)i[5]+=t,n=i,i=i[3]}const Yt={lFrame:ri(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Rs(){return Yt.bindingsEnabled}function ks(){Yt.bindingsEnabled=!0}function Fs(){Yt.bindingsEnabled=!1}function Mt(){return Yt.lFrame.lView}function pn(){return Yt.lFrame.tView}function Ns(e){return Yt.lFrame.contextLView=e,e[8]}function kn(){let e=Fo();for(;null!==e&&64===e.type;)e=e.parent;return e}function Fo(){return Yt.lFrame.currentTNode}function yo(){const e=Yt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Vi(e,t){const n=Yt.lFrame;n.currentTNode=e,n.isParent=t}function G(){return Yt.lFrame.isParent}function f(){Yt.lFrame.isParent=!1}function Z(){return Yt.isInCheckNoChangesMode}function me(e){Yt.isInCheckNoChangesMode=e}function Te(){const e=Yt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Fe(){return Yt.lFrame.bindingIndex}function ot(e){return Yt.lFrame.bindingIndex=e}function bt(){return Yt.lFrame.bindingIndex++}function kt(e){const t=Yt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function nn(e){Yt.lFrame.inI18n=e}function mn(e,t){const n=Yt.lFrame;n.bindingIndex=n.bindingRootIndex=e,en(t)}function en(e){Yt.lFrame.currentDirectiveIndex=e}function hn(e){const t=Yt.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function Pn(){return Yt.lFrame.currentQueryIndex}function An(e){Yt.lFrame.currentQueryIndex=e}function si(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function zn(e,t,n){if(n&q.SkipSelf){let r=t,s=e;for(;!(r=r.parent,null!==r||n&q.Host||(r=si(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,e=s}const i=Yt.lFrame=Pi();return i.currentTNode=t,i.lView=e,!0}function nr(e){const t=Pi(),n=e[1];Yt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Pi(){const e=Yt.lFrame,t=null===e?null:e.child;return null===t?ri(e):t}function ri(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Hi(){const e=Yt.lFrame;return Yt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const $i=Hi;function Ei(){const e=Hi();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ls(e){return(Yt.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Yt.lFrame.contextLView))[8]}function Fn(){return Yt.lFrame.selectedIndex}function ir(e){Yt.lFrame.selectedIndex=e}function On(){const e=Yt.lFrame;return fn(e.tView,e.selectedIndex)}function Bt(){Yt.lFrame.currentNamespace=Cr}function Kt(){Yt.lFrame.currentNamespace=no}function tn(){Yt.lFrame.currentNamespace=null}function oi(e,t){for(let n=t.directiveStart,i=t.directiveEnd;n<i;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:c,ngAfterContentChecked:u,ngAfterViewInit:y,ngAfterViewChecked:A,ngOnDestroy:V}=s;c&&(e.contentHooks||(e.contentHooks=[])).push(-n,c),u&&((e.contentHooks||(e.contentHooks=[])).push(n,u),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,u)),y&&(e.viewHooks||(e.viewHooks=[])).push(-n,y),A&&((e.viewHooks||(e.viewHooks=[])).push(n,A),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,A)),null!=V&&(e.destroyHooks||(e.destroyHooks=[])).push(n,V)}}function Ai(e,t,n){Oi(e,t,3,n)}function Sn(e,t,n,i){(3&e[2])===n&&Oi(e,t,n,i)}function js(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Oi(e,t,n,i){const s=null!=i?i:-1,c=t.length-1;let u=0;for(let y=void 0!==i?65535&e[18]:0;y<c;y++)if("number"==typeof t[y+1]){if(u=t[y],null!=i&&u>=i)break}else t[y]<0&&(e[18]+=65536),(u<s||-1==s)&&(bo(e,n,t,y),e[18]=(4294901760&e[18])+y+2),y++}function bo(e,t,n,i){const r=n[i]<0,s=n[i+1],u=e[r?-n[i]:n[i]];if(r){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048,Rn(4,u,s);try{s.call(u)}finally{Rn(5,u,s)}}}else{Rn(4,u,s);try{s.call(u)}finally{Rn(5,u,s)}}}class Ri{constructor(t,n,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i}}function Ha(e,t,n){const i=O(e);let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const c=n[r++],u=n[r++],y=n[r++];i?e.setAttribute(t,u,y,c):t.setAttributeNS(c,u,y)}else{const c=s,u=n[++r];Gl(c)?i&&e.setProperty(t,c,u):i?e.setAttribute(t,c,u):t.setAttribute(c,u),r++}}return r}function Vh(e){return 3===e||4===e||6===e}function Gl(e){return 64===e.charCodeAt(0)}function $a(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?n=r:0===n||Hh(e,n,r,null,-1===n||2===n?t[++i]:null)}}return e}function Hh(e,t,n,i,r){let s=0,c=e.length;if(-1===t)c=-1;else for(;s<e.length;){const u=e[s++];if("number"==typeof u){if(u===t){c=-1;break}if(u>t){c=s-1;break}}}for(;s<e.length;){const u=e[s];if("number"==typeof u)break;if(u===n){if(null===i)return void(null!==r&&(e[s+1]=r));if(i===e[s+1])return void(e[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==c&&(e.splice(c,0,t),s=c+1),e.splice(s++,0,n),null!==i&&e.splice(s++,0,i),null!==r&&e.splice(s++,0,r)}function $h(e){return-1!==e}function No(e){return 32767&e}function Lo(e,t){let n=function(e){return e>>16}(e),i=t;for(;n>0;)i=i[15],n--;return i}let Ql=!0;function Ua(e){const t=Ql;return Ql=e,t}let gb=0;function Hs(e,t){const n=Jl(e,t);if(-1!==n)return n;const i=t[1];i.firstCreatePass&&(e.injectorIndex=t.length,Yl(i.data,e),Yl(t,null),Yl(i.blueprint,null));const r=za(e,t),s=e.injectorIndex;if($h(r)){const c=No(r),u=Lo(r,t),y=u[1].data;for(let A=0;A<8;A++)t[s+A]=u[c+A]|y[c+A]}return t[s+8]=r,s}function Yl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jl(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function za(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,i=null,r=t;for(;null!==r;){const s=r[1],c=s.type;if(i=2===c?s.declTNode:1===c?r[6]:null,null===i)return-1;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return-1}function Wa(e,t,n){!function(e,t,n){let i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(W)&&(i=n[W]),null==i&&(i=n[W]=gb++);const r=255&i;t.data[e+(r>>5)]|=1<<r}(e,t,n)}function Wh(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const i=n.length;let r=0;for(;r<i;){const s=n[r];if(Vh(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof n[r];)r++;else{if(s===t)return n[r+1];r+=2}}}return null}function Kh(e,t,n){if(n&q.Optional)return e;Re(t,"NodeInjector")}function Gh(e,t,n,i){if(n&q.Optional&&void 0===i&&(i=null),0==(n&(q.Self|q.Host))){const r=e[9],s=vt(void 0);try{return r?r.get(t,i,n&q.Optional):Ye(t,i,n&q.Optional)}finally{vt(s)}}return Kh(i,t,n)}function Qh(e,t,n,i=q.Default,r){if(null!==e){const s=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(W)?e[W]:void 0;return"number"==typeof t?t>=0?255&t:yb:t}(n);if("function"==typeof s){if(!zn(t,e,i))return i&q.Host?Kh(r,n,i):Gh(t,n,i,r);try{const c=s(i);if(null!=c||i&q.Optional)return c;Re(n)}finally{$i()}}else if("number"==typeof s){let c=null,u=Jl(e,t),y=-1,A=i&q.Host?t[16][6]:null;for((-1===u||i&q.SkipSelf)&&(y=-1===u?za(e,t):t[u+8],-1!==y&&Zh(i,!1)?(c=t[1],u=No(y),t=Lo(y,t)):u=-1);-1!==u;){const V=t[1];if(Jh(s,u,V.data)){const ue=vb(u,t,n,c,i,A);if(ue!==Yh)return ue}y=t[u+8],-1!==y&&Zh(i,t[1].data[u+8]===A)&&Jh(s,u,t)?(c=V,u=No(y),t=Lo(y,t)):u=-1}}}return Gh(t,n,i,r)}const Yh={};function yb(){return new jo(kn(),Mt())}function vb(e,t,n,i,r,s){const c=t[1],u=c.data[e+8],V=Ka(u,c,n,null==i?ci(u)&&Ql:i!=c&&0!=(3&u.type),r&q.Host&&s===u);return null!==V?$s(t,c,V,u):Yh}function Ka(e,t,n,i,r){const s=e.providerIndexes,c=t.data,u=1048575&s,y=e.directiveStart,V=s>>20,_e=r?u+V:e.directiveEnd;for(let xe=i?u:u+V;xe<_e;xe++){const We=c[xe];if(xe<y&&n===We||xe>=y&&We.type===n)return xe}if(r){const xe=c[y];if(xe&&ni(xe)&&xe.type===n)return y}return null}function $s(e,t,n,i){let r=e[n];const s=t.data;if(function(e){return e instanceof Ri}(r)){const c=r;c.resolving&&function(e,t){throw new j("200",`Circular dependency in DI detected for ${e}`)}($e(s[n]));const u=Ua(c.canSeeViewProviders);c.resolving=!0;const y=c.injectImpl?vt(c.injectImpl):null;zn(e,i,q.Default);try{r=e[n]=c.factory(void 0,s,e,i),t.firstCreatePass&&n>=i.directiveStart&&function(e,t,n){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const c=ji(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,c),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,c)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,r),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==y&&vt(y),Ua(u),c.resolving=!1,$i()}}return r}function Jh(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Zh(e,t){return!(e&q.Self||e&q.Host&&t)}class jo{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,i){return Qh(this._tNode,this._lView,t,i,n)}}function Xh(e){return F(()=>{const t=e.prototype.constructor,n=t[K]||Zl(t),i=Object.prototype;let r=Object.getPrototypeOf(e.prototype).constructor;for(;r&&r!==i;){const s=r[K]||Zl(r);if(s&&s!==n)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Zl(e){return P(e)?()=>{const t=Zl(S(e));return t&&t()}:yi(e)}function Xl(e){return Wh(kn(),e)}const Bo="__annotations__",Vo="__parameters__",Ho="__prop__metadata__";function $o(e,t,n,i,r){return F(()=>{const s=ql(t);function c(...u){if(this instanceof c)return s.call(this,...u),this;const y=new c(...u);return function(V){return r&&r(V,...u),(V.hasOwnProperty(Bo)?V[Bo]:Object.defineProperty(V,Bo,{value:[]})[Bo]).push(y),i&&i(V),V}}return n&&(c.prototype=Object.create(n.prototype)),c.prototype.ngMetadataName=e,c.annotationCls=c,c})}function ql(e){return function(...n){if(e){const i=e(...n);for(const r in i)this[r]=i[r]}}}function ro(e,t,n){return F(()=>{const i=ql(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const c=new r(...s);return u.annotation=c,u;function u(y,A,V){const ue=y.hasOwnProperty(Vo)?y[Vo]:Object.defineProperty(y,Vo,{value:[]})[Vo];for(;ue.length<=V;)ue.push(null);return(ue[V]=ue[V]||[]).push(c),y}}return n&&(r.prototype=Object.create(n.prototype)),r.prototype.ngMetadataName=e,r.annotationCls=r,r})}function zr(e,t,n,i){return F(()=>{const r=ql(t);function s(...c){if(this instanceof s)return r.apply(this,c),this;const u=new s(...c);return function(A,V){const ue=A.constructor,_e=ue.hasOwnProperty(Ho)?ue[Ho]:Object.defineProperty(ue,Ho,{value:{}})[Ho];_e[V]=_e.hasOwnProperty(V)&&_e[V]||[],_e[V].unshift(u),i&&i(A,V,...c)}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function qh(){return ro("Attribute",e=>({attributeName:e,__NG_ELEMENT_ID__:()=>Xl(e)}))}const ef=qh();class jn{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=$({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Cb=new jn("AnalyzeForEntryComponents");class Us{}const Eb=zr("ContentChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0},t),Us),Db=zr("ContentChild",(e,t={})=>Object.assign({selector:e,first:!0,isViewQuery:!1,descendants:!0},t),Us),Tb=zr("ViewChildren",(e,t={})=>Object.assign({selector:e,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0},t),Us),wb=zr("ViewChild",(e,t)=>Object.assign({selector:e,first:!0,isViewQuery:!0,descendants:!0},t),Us);var Gn=(()=>((Gn=Gn||{})[Gn.Directive=0]="Directive",Gn[Gn.Component=1]="Component",Gn[Gn.Injectable=2]="Injectable",Gn[Gn.Pipe=3]="Pipe",Gn[Gn.NgModule=4]="NgModule",Gn))();function Qn(e){const t=Nt.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}const Ga=Function;function Qa(e){return"function"==typeof e}function zi(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let i=e[n];Array.isArray(i)?(t===e&&(t=e.slice(0,n)),zi(i,t)):t!==e&&t.push(i)}return t}function wr(e,t){e.forEach(n=>Array.isArray(n)?wr(n,t):t(n))}function Ya(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Co(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function oo(e,t){const n=[];for(let i=0;i<e;i++)n.push(t);return n}function ki(e,t,n){let i=Uo(e,t);return i>=0?e[1|i]=n:(i=~i,function(e,t,n,i){let r=e.length;if(r==t)e.push(n,i);else if(1===r)e.push(i,e[0]),e[0]=n;else{for(r--,e.push(e[r-1],e[r]);r>t;)e[r]=e[r-2],r--;e[t]=n,e[t+1]=i}}(e,i,t,n)),i}function ec(e,t){const n=Uo(e,t);if(n>=0)return e[1|n]}function Uo(e,t){return function(e,t,n){let i=0,r=e.length>>n;for(;r!==i;){const s=i+(r-i>>1),c=e[s<<n];if(t===c)return s<<n;c>t?r=s:i=s+1}return~(r<<n)}(e,t,1)}const Pb=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*(arguments|(?:[^()]+\(\[\],)?[^()]+\(arguments\))\)/,Ab=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,Ob=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,xb=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s*super\(\.\.\.arguments\)/;class zo{constructor(t){this._reflect=t||Nt.Reflect}isReflectionEnabled(){return!0}factory(t){return(...n)=>new t(...n)}_zipTypesAndAnnotations(t,n){let i;i=oo(void 0===t?n.length:t.length);for(let r=0;r<i.length;r++)i[r]=void 0===t?[]:t[r]&&t[r]!=Object?[t[r]]:[],n&&null!=n[r]&&(i[r]=i[r].concat(n[r]));return i}_ownParameters(t,n){const i=t.toString();if(Pb.test(e=i)||xb.test(e)||Ab.test(e)&&!Ob.test(e))return null;var e;if(t.parameters&&t.parameters!==n.parameters)return t.parameters;const r=t.ctorParameters;if(r&&r!==n.ctorParameters){const u="function"==typeof r?r():r,y=u.map(V=>V&&V.type),A=u.map(V=>V&&tc(V.decorators));return this._zipTypesAndAnnotations(y,A)}const s=t.hasOwnProperty(Vo)&&t[Vo],c=this._reflect&&this._reflect.getOwnMetadata&&this._reflect.getOwnMetadata("design:paramtypes",t);return c||s?this._zipTypesAndAnnotations(c,s):oo(t.length)}parameters(t){if(!Qa(t))return[];const n=Ja(t);let i=this._ownParameters(t,n);return!i&&n!==Object&&(i=this.parameters(n)),i||[]}_ownAnnotations(t,n){if(t.annotations&&t.annotations!==n.annotations){let i=t.annotations;return"function"==typeof i&&i.annotations&&(i=i.annotations),i}return t.decorators&&t.decorators!==n.decorators?tc(t.decorators):t.hasOwnProperty(Bo)?t[Bo]:null}annotations(t){if(!Qa(t))return[];const n=Ja(t),i=this._ownAnnotations(t,n)||[];return(n!==Object?this.annotations(n):[]).concat(i)}_ownPropMetadata(t,n){if(t.propMetadata&&t.propMetadata!==n.propMetadata){let i=t.propMetadata;return"function"==typeof i&&i.propMetadata&&(i=i.propMetadata),i}if(t.propDecorators&&t.propDecorators!==n.propDecorators){const i=t.propDecorators,r={};return Object.keys(i).forEach(s=>{r[s]=tc(i[s])}),r}return t.hasOwnProperty(Ho)?t[Ho]:null}propMetadata(t){if(!Qa(t))return{};const n=Ja(t),i={};if(n!==Object){const s=this.propMetadata(n);Object.keys(s).forEach(c=>{i[c]=s[c]})}const r=this._ownPropMetadata(t,n);return r&&Object.keys(r).forEach(s=>{const c=[];i.hasOwnProperty(s)&&c.push(...i[s]),c.push(...r[s]),i[s]=c}),i}ownPropMetadata(t){return Qa(t)&&this._ownPropMetadata(t,Ja(t))||{}}hasLifecycleHook(t,n){return t instanceof Ga&&n in t.prototype}guards(t){return{}}getter(t){return new Function("o","return o."+t+";")}setter(t){return new Function("o","v","return o."+t+" = v;")}method(t){return new Function("o","args",`if (!o.${t}) throw new Error('"${t}" is undefined');\n return o.${t}.apply(o, args);`)}importUri(t){return"object"==typeof t&&t.filePath?t.filePath:`./${D(t)}`}resourceUri(t){return`./${D(t)}`}resolveIdentifier(t,n,i,r){return r}resolveEnum(t,n){return t[n]}}function tc(e){return e?e.map(t=>new(0,t.type.annotationCls)(...t.args?t.args:[])):[]}function Ja(e){const t=e.prototype?Object.getPrototypeOf(e.prototype):null;return(t?t.constructor:null)||Object}const so={},nc="__NG_DI_FLAG__",Wo="ngTempTokenPath",Fb=/\n/gm,ic="__source",rc=C({provide:String,useValue:C});let zs;function Eo(e){const t=zs;return zs=e,t}function sf(e,t=q.Default){if(void 0===zs)throw new Error("inject() must be called from an injection context");return null===zs?Ye(e,void 0,t):zs.get(e,t&q.Optional?null:void 0,t)}function $n(e,t=q.Default){return(ft()||sf)(S(e),t)}function oc(e){throw new Error("invalid")}const Lb=$n;function Do(e){const t=[];for(let n=0;n<e.length;n++){const i=S(e[n]);if(Array.isArray(i)){if(0===i.length)throw new Error("Arguments array must have arguments.");let r,s=q.Default;for(let c=0;c<i.length;c++){const u=i[c],y=jb(u);"number"==typeof y?-1===y?r=u.token:s|=y:r=u}t.push($n(r,s))}else t.push($n(i))}return t}function Ko(e,t){return e[nc]=t,e.prototype[nc]=t,e}function jb(e){return e[nc]}function af(e,t,n,i){const r=e[Wo];throw t[ic]&&r.unshift(t[ic]),e.message=function(e,t,n,i=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let r=D(t);if(Array.isArray(t))r=t.map(D).join(" -> ");else if("object"==typeof t){let s=[];for(let c in t)if(t.hasOwnProperty(c)){let u=t[c];s.push(c+":"+("string"==typeof u?JSON.stringify(u):D(u)))}r=`{${s.join(", ")}}`}return`${n}${i?"("+i+")":""}[${r}]: ${e.replace(Fb,"\n ")}`}("\n"+e.message,r,n,i),e.ngTokenPath=r,e[Wo]=null,e}const cf=e=>({token:e}),Go=Ko(ro("Inject",cf),-1),Wr=Ko(ro("Optional"),8),Qo=Ko(ro("Self"),2),Kr=Ko(ro("SkipSelf"),4),uf=Ko(ro("Host"),1);let df=null;function sc(){return df=df||new zo}function Za(e){return hf(sc().parameters(e))}function hf(e){return e.map(t=>function(e){const t={token:null,attribute:null,host:!1,optional:!1,self:!1,skipSelf:!1};if(Array.isArray(e)&&e.length>0)for(let n=0;n<e.length;n++){const i=e[n];if(void 0===i)continue;const r=Object.getPrototypeOf(i);if(i instanceof Wr||"Optional"===r.ngMetadataName)t.optional=!0;else if(i instanceof Kr||"SkipSelf"===r.ngMetadataName)t.skipSelf=!0;else if(i instanceof Qo||"Self"===r.ngMetadataName)t.self=!0;else if(i instanceof uf||"Host"===r.ngMetadataName)t.host=!0;else if(i instanceof Go)t.token=i.token;else if(i instanceof ef){if(void 0===i.attributeName)throw new Error("Attribute name must be defined.");t.attribute=i.attributeName}else t.token=i}else t.token=void 0===e||Array.isArray(e)&&0===e.length?null:e;return t}(t))}function ff(e){const t=[],n=new Map;function i(r){let s=n.get(r);if(!s){const c=e(r);n.set(r,s=c.then($b))}return s}return Yo.forEach((r,s)=>{const c=[];r.templateUrl&&c.push(i(r.templateUrl).then(ue=>{r.template=ue}));const u=r.styleUrls,y=r.styles||(r.styles=[]),A=r.styles.length;u&&u.forEach((ue,_e)=>{y.push(""),c.push(i(ue).then(xe=>{y[A+_e]=xe,u.splice(u.indexOf(ue),1),0==u.length&&(r.styleUrls=void 0)}))});const V=Promise.all(c).then(()=>function(e){Ws.delete(e)}(s));t.push(V)}),mf(),Promise.all(t).then(()=>{})}let Yo=new Map;const Ws=new Set;function pf(e){return!!(e.templateUrl&&!e.hasOwnProperty("template")||e.styleUrls&&e.styleUrls.length)}function mf(){const e=Yo;return Yo=new Map,e}function $b(e){return"string"==typeof e?e:e.text()}let Xa,qa;function ac(){if(void 0===Xa&&(Xa=null,Nt.trustedTypes))try{Xa=Nt.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Xa}function Jo(e){var t;return(null===(t=ac())||void 0===t?void 0:t.createHTML(e))||e}function lc(){if(void 0===qa&&(qa=null,Nt.trustedTypes))try{qa=Nt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return qa}function gf(e){var t;return(null===(t=lc())||void 0===t?void 0:t.createHTML(e))||e}function _f(e){var t;return(null===(t=lc())||void 0===t?void 0:t.createScript(e))||e}function yf(e){var t;return(null===(t=lc())||void 0===t?void 0:t.createScriptURL(e))||e}class To{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Kb extends To{getTypeName(){return"HTML"}}class Gb extends To{getTypeName(){return"Style"}}class Qb extends To{getTypeName(){return"Script"}}class Yb extends To{getTypeName(){return"URL"}}class Jb extends To{getTypeName(){return"ResourceURL"}}function Gr(e){return e instanceof To?e.changingThisBreaksApplicationSecurity:e}function Zo(e,t){const n=vf(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}function vf(e){return e instanceof To&&e.getTypeName()||null}function Zb(e){return new Kb(e)}function Xb(e){return new Gb(e)}function qb(e){return new Qb(e)}function eC(e){return new Yb(e)}function tC(e){return new Jb(e)}function bf(e){const t=new iC(e);return function(){try{return!!(new window.DOMParser).parseFromString(Jo(""),"text/html")}catch(e){return!1}}()?new nC(t):t}class nC{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Jo(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class iC{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const i=this.inertDocument.createElement("body");n.appendChild(i)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Jo(t),n;const i=this.inertDocument.createElement("body");return i.innerHTML=Jo(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const n=t.attributes;for(let r=n.length-1;0<r;r--){const c=n.item(r).name;("xmlns:ns1"===c||0===c.indexOf("ns1:"))&&t.removeAttribute(c)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const oC=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,sC=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ks(e){return(e=String(e)).match(oC)||e.match(sC)?e:"unsafe:"+e}function Cf(e){return(e=String(e)).split(",").map(t=>Ks(t.trim())).join(", ")}function Mr(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Gs(...e){const t={};for(const n of e)for(const i in n)n.hasOwnProperty(i)&&(t[i]=!0);return t}const Ef=Mr("area,br,col,hr,img,wbr"),Df=Mr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Tf=Mr("rp,rt"),cc=Gs(Ef,Gs(Df,Mr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Gs(Tf,Mr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Gs(Tf,Df)),uc=Mr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),dc=Mr("srcset"),wf=Gs(uc,dc,Mr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Mr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),aC=Mr("script,style,template");class lC{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,i=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?i=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,i&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let r=this.checkClobberedElement(n,n.nextSibling);if(r){n=r;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!cc.hasOwnProperty(n))return this.sanitizedSomething=!0,!aC.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),c=s.name,u=c.toLowerCase();if(!wf.hasOwnProperty(u)){this.sanitizedSomething=!0;continue}let y=s.value;uc[u]&&(y=Ks(y)),dc[u]&&(y=Cf(y)),this.buf.push(" ",c,'="',Mf(y),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();cc.hasOwnProperty(n)&&!Ef.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Mf(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const cC=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,uC=/([^\#-~ |!])/g;function Mf(e){return e.replace(/&/g,"&amp;").replace(cC,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(uC,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let el;function Sf(e,t){let n=null;try{el=el||bf(e);let i=t?String(t):"";n=el.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=n.innerHTML,n=el.getInertBodyElement(i)}while(i!==s);return Jo((new lC).sanitizeChildren(hc(n)||n))}finally{if(n){const i=hc(n)||n;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function hc(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Bn=(()=>((Bn=Bn||{})[Bn.NONE=0]="NONE",Bn[Bn.HTML=1]="HTML",Bn[Bn.STYLE=2]="STYLE",Bn[Bn.SCRIPT=3]="SCRIPT",Bn[Bn.URL=4]="URL",Bn[Bn.RESOURCE_URL=5]="RESOURCE_URL",Bn))();function If(e){const t=Qs();return t?gf(t.sanitize(Bn.HTML,e)||""):Zo(e,"HTML")?gf(Gr(e)):Sf(Tr(),ye(e))}function Pf(e){const t=Qs();return t?t.sanitize(Bn.STYLE,e)||"":Zo(e,"Style")?Gr(e):ye(e)}function fc(e){const t=Qs();return t?t.sanitize(Bn.URL,e)||"":Zo(e,"URL")?Gr(e):Ks(ye(e))}function pc(e){const t=Qs();if(t)return yf(t.sanitize(Bn.RESOURCE_URL,e)||"");if(Zo(e,"ResourceURL"))return yf(Gr(e));throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)")}function Af(e){const t=Qs();if(t)return _f(t.sanitize(Bn.SCRIPT,e)||"");if(Zo(e,"Script"))return _f(Gr(e));throw new Error("unsafe value used in a script context")}function Of(e){return Jo(e[0])}function xf(e){return function(e){var t;return(null===(t=ac())||void 0===t?void 0:t.createScriptURL(e))||e}(e[0])}function Rf(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?pc:fc}function kf(e,t,n){return Rf(t,n)(e)}function Qs(){const e=Mt();return e&&e[12]}function di(e){let t=Ys(e);if(t){if(Array.isArray(t)){const n=t;let i,r,s;if(function(e){return e&&e.constructor&&e.constructor.\u0275cmp}(e)){if(i=jf(n,e),-1==i)throw new Error("The provided component was not found in the application");r=e}else if(function(e){return e&&e.constructor&&e.constructor.\u0275dir}(e)){if(i=function(e,t){let n=e[1].firstChild;for(;n;){const r=n.directiveEnd;for(let s=n.directiveStart;s<r;s++)if(e[s]===t)return n.index;n=pC(n)}return-1}(n,e),-1==i)throw new Error("The provided directive was not found in the application");s=Bf(i,n,!1)}else if(i=Lf(n,e),-1==i)return null;const c=v(n[i]),u=Ys(c),y=u&&!Array.isArray(u)?u:mc(n,i,c);if(r&&void 0===y.component&&(y.component=r,hi(y.component,y)),s&&void 0===y.directives){y.directives=s;for(let A=0;A<s.length;A++)hi(s[A],y)}hi(y.native,y),t=y}}else{const n=e;let i=n;for(;i=i.parentNode;){const r=Ys(i);if(r){let s;if(s=Array.isArray(r)?r:r.lView,!s)return null;const c=Lf(s,n);if(c>=0){const u=v(s[c]),y=mc(s,c,u);hi(u,y),t=y;break}}}}return t||null}function mc(e,t,n){return{lView:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}function Ff(e){let n,t=Ys(e);if(Array.isArray(t)){const i=jf(t,e);n=bn(i,t);const r=mc(t,i,n[0]);r.component=e,hi(e,r),hi(r.native,r)}else n=bn(t.nodeIndex,t.lView);return n}const Nf="__ngContext__";function hi(e,t){e[Nf]=t}function Ys(e){return e[Nf]||null}function gc(e){const t=Ys(e);return t?Array.isArray(t)?t:t.lView:null}function Lf(e,t){const n=e[1];for(let i=20;i<n.bindingStartIndex;i++)if(v(e[i])===t)return i;return-1}function pC(e){if(e.child)return e.child;if(e.next)return e.next;for(;e.parent&&!e.parent.next;)e=e.parent;return e.parent&&e.parent.next}function jf(e,t){const n=e[1].components;if(n)for(let i=0;i<n.length;i++){const r=n[i];if(bn(r,e)[8]===t)return r}else if(bn(20,e)[8]===t)return 20;return-1}function Bf(e,t,n){const i=t[1].data[e];let r=i.directiveStart;return 0==r?Lt:(!n&&2&i.flags&&r++,t.slice(r,i.directiveEnd))}const Vf="ngDebugContext",_c="ngOriginalError",Hf="ngErrorLogger";function $f(e){return e[Vf]}function tl(e){return e[_c]}function CC(e,...t){e.error(...t)}class Xo{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),i=this._findContext(t),r=(e=t)&&e[Hf]||CC;var e;r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n),i&&r(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?$f(t)||this._findContext(tl(t)):null}_findOriginalError(t){let n=t&&tl(t);for(;n&&tl(n);)n=tl(n);return n||null}}const Uf={name:"custom-elements"},zf={name:"no-errors-schema"},EC=/^>|^->|<!--|-->|--!>|<!-$/g,DC=/(<|>)/;function nl(e){return e.replace(EC,t=>t.replace(DC,"\u200b$1\u200b"))}function Wf(e){return`ng-reflect-${e=function(e){return e.replace(wC,(...t)=>"-"+t[1].toLowerCase())}(e.replace(/[$@]/g,"_"))}`}const wC=/([A-Z])/g;function Kf(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}const Gf=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt))();function Qf(e){return e.ownerDocument.defaultView}function Yf(e){return e.ownerDocument}function Jf(e){return e.ownerDocument.body}function Sr(e){return e instanceof Function?e():e}var Ir=(()=>((Ir=Ir||{})[Ir.Important=1]="Important",Ir[Ir.DashCase=2]="DashCase",Ir))();let yc;function vc(e,t){return yc(e,t)}function Js(e){const t=e[3];return Cn(t)?t[3]:t}function bc(e){return function(e){let t=ti(e)?e:gc(e);for(;t&&!(512&t[2]);)t=Js(t);return t}(e)[8]}function Cc(e){return ep(e[13])}function Ec(e){return ep(e[4])}function ep(e){for(;null!==e&&!Cn(e);)e=e[4];return e}function es(e,t,n,i,r){if(null!=i){let s,c=!1;Cn(i)?s=i:ti(i)&&(c=!0,i=i[0]);const u=v(i);0===e&&null!==n?null==r?sp(t,n,u):wo(t,n,u,r||null,!0):1===e&&null!==n?wo(t,n,u,r||null,!0):2===e?fp(t,u,c):3===e&&t.destroyNode(u),null!=s&&function(e,t,n,i,r){const s=n[7];s!==v(n)&&es(t,e,i,s,r);for(let u=10;u<n.length;u++){const y=n[u];Zs(y[1],y,e,t,i,s)}}(t,e,s,n,r)}}function Dc(e,t){return O(e)?e.createText(t):e.createTextNode(t)}function tp(e,t,n){O(e)?e.setValue(t,n):t.textContent=n}function IC(e,t){return e.createComment(nl(t))}function Tc(e,t,n){return O(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function np(e,t){const n=e[9],i=n.indexOf(t),r=t[3];1024&t[2]&&(t[2]&=-1025,Ii(r,-1)),n.splice(i,1)}function wc(e,t){if(e.length<=10)return;const n=10+t,i=e[n];if(i){const r=i[17];null!==r&&r!==e&&np(r,i),t>0&&(e[n-1][4]=i[4]);const s=Co(e,10+t);!function(e,t){Zs(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const c=s[19];null!==c&&c.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function ip(e,t){if(!(256&t[2])){const n=t[11];O(n)&&n.destroyNode&&Zs(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return Mc(e[1],e);for(;t;){let n=null;if(ti(t))n=t[13];else{const i=t[10];i&&(n=i)}if(!n){for(;t&&!t[4]&&t!==e;)ti(t)&&Mc(t[1],t),t=t[3];null===t&&(t=e),ti(t)&&Mc(t[1],t),n=t&&t[4]}t=n}}(t)}}function Mc(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let i=0;i<n.length;i+=2){const r=t[n[i]];if(!(r instanceof Ri)){const s=n[i+1];if(Array.isArray(s))for(let c=0;c<s.length;c+=2){const u=r[s[c]],y=s[c+1];Rn(4,u,y);try{y.call(u)}finally{Rn(5,u,y)}}else{Rn(4,r,s);try{s.call(r)}finally{Rn(5,r,s)}}}}}(e,t),function(e,t){const n=e.cleanup,i=t[7];let r=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const c=n[s+1],u="function"==typeof c?c(t):v(t[c]),y=i[r=n[s+2]],A=n[s+3];"boolean"==typeof A?u.removeEventListener(n[s],y,A):A>=0?i[r=A]():i[r=-A].unsubscribe(),s+=2}else{const c=i[r=n[s+1]];n[s].call(c)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();t[7]=null}}(e,t),1===t[1].type&&O(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&Cn(t[3])){n!==t[3]&&np(n,t);const i=t[19];null!==i&&i.detachView(e)}}}function rp(e,t,n){return op(e,t.parent,n)}function op(e,t,n){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return n[0];if(2&i.flags){const r=e.data[i.directiveStart].encapsulation;if(r===re.None||r===re.Emulated)return null}return St(i,n)}function wo(e,t,n,i,r){O(e)?e.insertBefore(t,n,i,r):t.insertBefore(n,i,r)}function sp(e,t,n){O(e)?e.appendChild(t,n):t.appendChild(n)}function ap(e,t,n,i,r){null!==i?wo(e,t,n,i,r):sp(e,t,n)}function il(e,t){return O(e)?e.parentNode(t):t.parentNode}function lp(e,t,n){return up(e,t,n)}function cp(e,t,n){return 40&e.type?St(e,n):null}let Sc,up=cp;function dp(e,t){up=e,Sc=t}function rl(e,t,n,i){const r=rp(e,i,t),s=t[11],u=lp(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(n))for(let y=0;y<n.length;y++)ap(s,r,n[y],u,!1);else ap(s,r,n,u,!1);void 0!==Sc&&Sc(s,i,t,n,r)}function ol(e,t){if(null!==t){const n=t.type;if(3&n)return St(t,e);if(4&n)return Ic(-1,e[t.index]);if(8&n){const i=t.child;if(null!==i)return ol(e,i);{const r=e[t.index];return Cn(r)?Ic(-1,r):v(r)}}if(32&n)return vc(t,e)()||v(e[t.index]);{const i=hp(e,t);return null!==i?Array.isArray(i)?i[0]:ol(Js(e[16]),i):ol(e,t.next)}}return null}function hp(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Ic(e,t){const n=10+e+1;if(n<t.length){const i=t[n],r=i[1].firstChild;if(null!==r)return ol(i,r)}return t[7]}function fp(e,t,n){const i=il(e,t);i&&function(e,t,n,i){O(e)?e.removeChild(t,n,i):t.removeChild(n)}(e,i,t,n)}function Pc(e,t,n,i,r,s,c){for(;null!=n;){const u=i[n.index],y=n.type;if(c&&0===t&&(u&&hi(v(u),i),n.flags|=4),64!=(64&n.flags))if(8&y)Pc(e,t,n.child,i,r,s,!1),es(t,e,r,u,s);else if(32&y){const A=vc(n,i);let V;for(;V=A();)es(t,e,r,V,s);es(t,e,r,u,s)}else 16&y?pp(e,t,i,n,r,s):es(t,e,r,u,s);n=c?n.projectionNext:n.next}}function Zs(e,t,n,i,r,s){Pc(n,i,e.firstChild,t,r,s,!1)}function pp(e,t,n,i,r,s){const c=n[16],y=c[6].projection[i.projection];if(Array.isArray(y))for(let A=0;A<y.length;A++)es(t,e,r,y[A],s);else Pc(e,t,y,c[3],r,s,!0)}function mp(e,t,n){O(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Ac(e,t,n){O(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function gp(e,t,n){let i=e.length;for(;;){const r=e.indexOf(t,n);if(-1===r)return r;if(0===r||e.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||e.charCodeAt(r+s)<=32)return r}n=r+1}}const _p="ng-template";function $C(e,t,n){let i=0;for(;i<e.length;){let r=e[i++];if(n&&"class"===r){if(r=e[i],-1!==gp(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<e.length&&"string"==typeof(r=e[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function yp(e){return 4===e.type&&e.value!==_p}function UC(e,t,n){return t===(4!==e.type||n?e.value:_p)}function zC(e,t,n){let i=4;const r=e.attrs||[],s=function(e){for(let t=0;t<e.length;t++)if(Vh(e[t]))return t;return e.length}(r);let c=!1;for(let u=0;u<t.length;u++){const y=t[u];if("number"!=typeof y){if(!c)if(4&i){if(i=2|1&i,""!==y&&!UC(e,y,n)||""===y&&1===t.length){if(rr(i))return!1;c=!0}}else{const A=8&i?y:t[++u];if(8&i&&null!==e.attrs){if(!$C(e.attrs,A,n)){if(rr(i))return!1;c=!0}continue}const ue=WC(8&i?"class":y,r,yp(e),n);if(-1===ue){if(rr(i))return!1;c=!0;continue}if(""!==A){let _e;_e=ue>s?"":r[ue+1].toLowerCase();const xe=8&i?_e:null;if(xe&&-1!==gp(xe,A,0)||2&i&&A!==_e){if(rr(i))return!1;c=!0}}}}else{if(!c&&!rr(i)&&!rr(y))return!1;if(c&&rr(y))continue;c=!1,i=y|1&i}}return rr(i)||c}function rr(e){return 0==(1&e)}function WC(e,t,n,i){if(null===t)return-1;let r=0;if(i||!n){let s=!1;for(;r<t.length;){const c=t[r];if(c===e)return r;if(3===c||6===c)s=!0;else{if(1===c||2===c){let u=t[++r];for(;"string"==typeof u;)u=t[++r];continue}if(4===c)break;if(0===c){r+=4;continue}}r+=s?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const i=e[n];if("number"==typeof i)return-1;if(i===t)return n;n++}return-1}(t,e)}function vp(e,t,n=!1){for(let i=0;i<t.length;i++)if(zC(e,t[i],n))return!0;return!1}function YC(e,t){e:for(let n=0;n<t.length;n++){const i=t[n];if(e.length===i.length){for(let r=0;r<e.length;r++)if(e[r]!==i[r])continue e;return!0}}return!1}function bp(e,t){return e?":not("+t.trim()+")":t}function JC(e){let t=e[0],n=1,i=2,r="",s=!1;for(;n<e.length;){let c=e[n];if("string"==typeof c)if(2&i){const u=e[++n];r+="["+c+(u.length>0?'="'+u+'"':"")+"]"}else 8&i?r+="."+c:4&i&&(r+=" "+c);else""!==r&&!rr(c)&&(t+=bp(s,r),r=""),i=c,s=s||!rr(i);n++}return""!==r&&(t+=bp(s,r)),t}const on={};function Cp(e){Ep(pn(),Mt(),Fn()+e,Z())}function Ep(e,t,n,i){if(!i)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&Ai(t,s,n)}else{const s=e.preOrderHooks;null!==s&&Sn(t,s,0,n)}ir(n)}function sl(e,t){return e<<17|t<<2}function or(e){return e>>17&32767}function Oc(e){return 2|e}function Qr(e){return(131068&e)>>2}function xc(e,t){return-131069&e|t<<2}function Rc(e){return 1|e}const Bc=(()=>Promise.resolve(null))();function xp(e,t){const n=e.contentQueries;if(null!==n)for(let i=0;i<n.length;i+=2){const r=n[i],s=n[i+1];if(-1!==s){const c=e.data[s];An(r),c.contentQueries(2,t[s],s)}}}function Xs(e,t,n,i,r,s,c,u,y,A){const V=t.blueprint.slice();return V[0]=r,V[2]=140|i,Bi(V),V[3]=V[15]=e,V[8]=n,V[10]=c||e&&e[10],V[11]=u||e&&e[11],V[12]=y||e&&e[12]||null,V[9]=A||e&&e[9]||null,V[6]=s,V[16]=2==t.type?e[16]:V,V}function ts(e,t,n,i,r){let s=e.data[t];if(null===s)s=Vc(e,t,n,i,r),Yt.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=i,s.attrs=r;const c=yo();s.injectorIndex=null===c?-1:c.injectorIndex}return Vi(s,!0),s}function Vc(e,t,n,i,r){const s=Fo(),c=G(),y=e.data[t]=function(e,t,n,i,r,s){return{type:n,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,c?s:s&&s.parent,n,t,i,r);return null===e.firstChild&&(e.firstChild=y),null!==s&&(c?null==s.child&&null!==y.parent&&(s.child=y):null===s.next&&(s.next=y)),y}function ns(e,t,n,i){if(0===n)return-1;const r=t.length;for(let s=0;s<n;s++)t.push(i),e.blueprint.push(i),e.data.push(null);return r}function qs(e,t,n){nr(t);try{const i=e.viewQuery;null!==i&&Yc(1,i,n);const r=e.template;null!==r&&Rp(e,t,r,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&xp(e,t),e.staticViewQueries&&Yc(2,e.viewQuery,n);const s=e.components;null!==s&&function(e,t){for(let n=0;n<t.length;n++)PE(e,t[n])}(t,s)}catch(i){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),i}finally{t[2]&=-5,Ei()}}function is(e,t,n,i){const r=t[2];if(256==(256&r))return;nr(t);const s=Z();try{Bi(t),ot(e.bindingStartIndex),null!==n&&Rp(e,t,n,2,i);const c=3==(3&r);if(!s)if(c){const A=e.preOrderCheckHooks;null!==A&&Ai(t,A,null)}else{const A=e.preOrderHooks;null!==A&&Sn(t,A,0,null),js(t,0)}if(function(e){for(let t=Cc(e);null!==t;t=Ec(t)){if(!t[2])continue;const n=t[9];for(let i=0;i<n.length;i++){const r=n[i],s=r[3];0==(1024&r[2])&&Ii(s,1),r[2]|=1024}}}(t),function(e){for(let t=Cc(e);null!==t;t=Ec(t))for(let n=10;n<t.length;n++){const i=t[n],r=i[1];Ln(i)&&is(r,i,r.template,i[8])}}(t),null!==e.contentQueries&&xp(e,t),!s)if(c){const A=e.contentCheckHooks;null!==A&&Ai(t,A)}else{const A=e.contentHooks;null!==A&&Sn(t,A,1),js(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let i=0;i<n.length;i++){const r=n[i];if(r<0)ir(~r);else{const s=r,c=n[++i],u=n[++i];mn(c,s),u(2,t[s])}}}finally{ir(-1)}}(e,t);const u=e.components;null!==u&&function(e,t){for(let n=0;n<t.length;n++)IE(e,t[n])}(t,u);const y=e.viewQuery;if(null!==y&&Yc(2,y,i),!s)if(c){const A=e.viewCheckHooks;null!==A&&Ai(t,A)}else{const A=e.viewHooks;null!==A&&Sn(t,A,2),js(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Ii(t[3],-1))}finally{Ei()}}function cE(e,t,n,i){const r=t[10],s=!Z(),c=Tn(t);try{s&&!c&&r.begin&&r.begin(),c&&qs(e,t,i),is(e,t,n,i)}finally{s&&!c&&r.end&&r.end()}}function Rp(e,t,n,i,r){const s=Fn(),c=2&i;try{ir(-1),c&&t.length>20&&Ep(e,t,20,Z()),Rn(c?2:0,r),n(i,r)}finally{ir(s),Rn(c?3:1,r)}}function kp(e,t,n){if(Ci(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const c=e.data[s];c.contentQueries&&c.contentQueries(1,n[s],s)}}}function Hc(e,t,n){!Rs()||(function(e,t,n,i){const r=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||Hs(n,t),hi(i,t);const c=n.initialInputs;for(let u=r;u<s;u++){const y=e.data[u],A=ni(y);A&&DE(t,n,y);const V=$s(t,e,u,n);hi(V,t),null!==c&&TE(0,u-r,V,y,0,c),A&&(bn(n.index,t)[8]=V)}}(e,t,n,St(n,t)),128==(128&n.flags)&&function(e,t,n){const i=n.directiveStart,r=n.directiveEnd,c=n.index,u=Yt.lFrame.currentDirectiveIndex;try{ir(c);for(let y=i;y<r;y++){const A=e.data[y],V=t[y];en(y),(null!==A.hostBindings||0!==A.hostVars||null!==A.hostAttrs)&&$p(A,V)}}finally{ir(-1),en(u)}}(e,t,n))}function $c(e,t,n=St){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const c=i[s+1],u=-1===c?n(t,e):e[c];e[r++]=u}}}function Fp(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=cl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function cl(e,t,n,i,r,s,c,u,y,A){const V=20+i,ue=V+r,_e=function(e,t){const n=[];for(let i=0;i<t;i++)n.push(i<e?null:on);return n}(V,ue),xe="function"==typeof A?A():A;return _e[1]={type:e,blueprint:_e,template:n,queries:null,viewQuery:u,declTNode:t,data:_e.slice().fill(null,V),bindingStartIndex:V,expandoStartIndex:ue,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof c?c():c,firstChild:null,schemas:y,consts:xe,incompleteFirstPass:!1}}function Lp(e,t,n){if(O(e))return e.selectRootElement(t,n===re.ShadowDom);let i="string"==typeof t?e.querySelector(t):t;return i.textContent="",i}function jp(e,t,n,i){const r=Qp(t);null===n?r.push(i):(r.push(n),e.firstCreatePass&&Yp(e).push(i,r.length-1))}function Bp(e,t,n){for(let i in e)if(e.hasOwnProperty(i)){const r=e[i];(n=null===n?{}:n).hasOwnProperty(i)?n[i].push(t,r):n[i]=[t,r]}return n}function Fi(e,t,n,i,r,s,c,u){const y=St(t,n);let V,A=t.inputs;!u&&null!=A&&(V=A[i])?(Xp(e,n,V,i,r),ci(t)&&function(e,t){const n=bn(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(i=function(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(i),r=null!=c?c(r,t.value||"",i):r,O(s)?s.setProperty(y,i,r):Gl(i)||(y.setProperty?y.setProperty(i,r):y[i]=r))}function Uc(e,t,n,i){let r=!1;if(Rs()){const s=function(e,t,n){const i=e.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const c=i[s];vp(n,c.selectors,!1)&&(r||(r=[]),Wa(Hs(n,t),e,c.type),ni(c)?(Up(e,n),r.unshift(c)):r.push(c))}return r}(e,t,n),c=null===i?null:{"":-1};if(null!==s){r=!0,zp(n,e.data.length,s.length);for(let V=0;V<s.length;V++){const ue=s[V];ue.providersResolver&&ue.providersResolver(ue)}let u=!1,y=!1,A=ns(e,t,s.length,null);for(let V=0;V<s.length;V++){const ue=s[V];n.mergedAttrs=$a(n.mergedAttrs,ue.hostAttrs),Wp(e,n,t,A,ue),EE(A,ue,c),null!==ue.contentQueries&&(n.flags|=8),(null!==ue.hostBindings||null!==ue.hostAttrs||0!==ue.hostVars)&&(n.flags|=128);const _e=ue.type.prototype;!u&&(_e.ngOnChanges||_e.ngOnInit||_e.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),u=!0),!y&&(_e.ngOnChanges||_e.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),y=!0),A++}!function(e,t){const i=t.directiveEnd,r=e.data,s=t.attrs,c=[];let u=null,y=null;for(let A=t.directiveStart;A<i;A++){const V=r[A],ue=V.inputs,_e=null===s||yp(t)?null:wE(ue,s);c.push(_e),u=Bp(ue,A,u),y=Bp(V.outputs,A,y)}null!==u&&(u.hasOwnProperty("class")&&(t.flags|=16),u.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=c,t.inputs=u,t.outputs=y}(e,n)}c&&function(e,t,n){if(t){const i=e.localNames=[];for(let r=0;r<t.length;r+=2){const s=n[t[r+1]];if(null==s)throw new j("301",`Export of name '${t[r+1]}' not found!`);i.push(t[r],s)}}}(n,i,c)}return n.mergedAttrs=$a(n.mergedAttrs,n.attrs),r}function Hp(e,t,n,i,r,s){const c=s.hostBindings;if(c){let u=e.hostBindingOpCodes;null===u&&(u=e.hostBindingOpCodes=[]);const y=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(u)!=y&&u.push(y),u.push(i,r,c)}}function $p(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Up(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function EE(e,t,n){if(n){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)n[t.exportAs[i]]=e;ni(t)&&(n[""]=e)}}function zp(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Wp(e,t,n,i,r){e.data[i]=r;const s=r.factory||(r.factory=yi(r.type)),c=new Ri(s,ni(r),null);e.blueprint[i]=c,n[i]=c,Hp(e,t,0,i,ns(e,n,r.hostVars,on),r)}function DE(e,t,n){const i=St(t,e),r=Fp(n),s=e[10],c=ul(e,Xs(e,r,null,n.onPush?64:16,i,t,s,s.createRenderer(i,n),null,null));e[t.index]=c}function Pr(e,t,n,i,r,s){const c=St(e,t);zc(t[11],c,s,e.value,n,i,r)}function zc(e,t,n,i,r,s,c){if(null==s)O(e)?e.removeAttribute(t,r,n):t.removeAttribute(r);else{const u=null==c?ye(s):c(s,i||"",r);O(e)?e.setAttribute(t,r,u,n):n?t.setAttributeNS(n,r,u):t.setAttribute(r,u)}}function TE(e,t,n,i,r,s){const c=s[t];if(null!==c){const u=i.setInput;for(let y=0;y<c.length;){const A=c[y++],V=c[y++],ue=c[y++];null!==u?i.setInput(n,ue,A,V):n[V]=ue}}}function wE(e,t){let n=null,i=0;for(;i<t.length;){const r=t[i];if(0!==r)if(5!==r){if("number"==typeof r)break;e.hasOwnProperty(r)&&(null===n&&(n=[]),n.push(r,e[r],t[i+1])),i+=2}else i+=2;else i+=4}return n}function Kp(e,t,n,i){return new Array(e,!0,!1,t,null,0,i,n,null,null)}function IE(e,t){const n=bn(t,e);if(Ln(n)){const i=n[1];80&n[2]?is(i,n,i.template,n[8]):n[5]>0&&Wc(n)}}function Wc(e){for(let i=Cc(e);null!==i;i=Ec(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const c=s[1];is(c,s,c.template,s[8])}else s[5]>0&&Wc(s)}const n=e[1].components;if(null!==n)for(let i=0;i<n.length;i++){const r=bn(n[i],e);Ln(r)&&r[5]>0&&Wc(r)}}function PE(e,t){const n=bn(t,e),i=n[1];(function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(i,n),qs(i,n,n[8])}function ul(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Kc(e){for(;e;){e[2]|=64;const t=Js(e);if(Un(e)&&!t)return e;e=t}return null}function Gc(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],i=gc(n),r=i[1];cE(r,i,r.template,n)}}function Qc(e,t,n){const i=t[10];i.begin&&i.begin();try{is(e,t,e.template,n)}catch(r){throw Zp(t,r),r}finally{i.end&&i.end()}}function Gp(e){Gc(e[8])}function Yc(e,t,n){An(0),t(e,n)}const kE=Bc;function Qp(e){return e[7]||(e[7]=[])}function Yp(e){return e.cleanup||(e.cleanup=[])}function Jp(e,t,n){return(null===e||ni(e))&&(n=function(e){for(;Array.isArray(e);){if("object"==typeof e[1])return e;e=e[0]}return null}(n[t.index])),n[11]}function Zp(e,t){const n=e[9],i=n?n.get(Xo,null):null;i&&i.handleError(t)}function Xp(e,t,n,i,r){for(let s=0;s<n.length;){const c=n[s++],u=n[s++],y=t[c],A=e.data[c];null!==A.setInput?A.setInput(y,r,i,u):y[u]=r}}function Jr(e,t,n){const i=Qe(t,e);tp(e[11],i,n)}function dl(e,t,n){let i=n?e.styles:null,r=n?e.classes:null,s=0;if(null!==t)for(let c=0;c<t.length;c++){const u=t[c];"number"==typeof u?s=u:1==s?r=g(r,u):2==s&&(i=g(i,u+": "+t[++c]+";"))}n?e.styles=i:e.stylesWithoutHost=i,n?e.classes=r:e.classesWithoutHost=r}function qp(e){const t=Ff(e);Qc(t[1],t,e)}function em(e){!function(e,t){if(0===e.flags&&e.clean==Bc){let i;e.flags|=1,e.clean=new Promise(r=>i=r),e.scheduler(()=>{if(1&e.flags&&(e.flags&=-2,Gc(e)),2&e.flags){e.flags&=-3;const r=e.playerHandler;r&&r.flushPlayers()}e.clean=Bc,i(null)})}}(Kc(Ff(e))[8])}const co=new jn("INJECTOR",-1);class Jc{get(t,n=so){if(n===so){const i=new Error(`NullInjectorError: No provider for ${D(t)}!`);throw i.name="NullInjectorError",i}return n}}const ea=new jn("Set Injector scope."),ta={},FE={};let Zc;function tm(){return void 0===Zc&&(Zc=new Jc),Zc}function nm(e,t=null,n=null,i){const r=im(e,t,n,i);return r._resolveInjectorDefTypes(),r}function im(e,t=null,n=null,i){return new NE(e,n,t||tm(),i)}class NE{constructor(t,n,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];n&&wr(n,u=>this.processProvider(u,t,n)),wr([t],u=>this.processInjectorType(u,[],s)),this.records.set(co,rs(void 0,this));const c=this.records.get(ea);this.scope=null!=c?c.value:null,this.source=r||("object"==typeof t?null:D(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=so,i=q.Default){this.assertNotDestroyed();const r=Eo(this),s=vt(void 0);try{if(!(i&q.SkipSelf)){let u=this.records.get(t);if(void 0===u){const y=("function"==typeof(e=t)||"object"==typeof e&&e instanceof jn)&&le(t);u=y&&this.injectableDefInScope(y)?rs(Xc(t),ta):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u)}return(i&q.Self?tm():this.parent).get(t,n=i&q.Optional&&n===so?null:n)}catch(c){if("NullInjectorError"===c.name){if((c[Wo]=c[Wo]||[]).unshift(D(t)),r)throw c;return af(c,t,"R3InjectorError",this.source)}throw c}finally{vt(s),Eo(r)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((i,r)=>t.push(D(r))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,i){if(!(t=S(t)))return!1;let r=rt(t);const s=null==r&&t.ngModule||void 0,c=void 0===s?t:s,u=-1!==i.indexOf(c);if(void 0!==s&&(r=rt(s)),null==r)return!1;if(null!=r.imports&&!u){let V;i.push(c);try{wr(r.imports,ue=>{this.processInjectorType(ue,n,i)&&(void 0===V&&(V=[]),V.push(ue))})}finally{}if(void 0!==V)for(let ue=0;ue<V.length;ue++){const{ngModule:_e,providers:xe}=V[ue];wr(xe,We=>this.processProvider(We,_e,xe||Lt))}}this.injectorDefTypes.add(c);const y=yi(c)||(()=>new c);this.records.set(c,rs(y,ta));const A=r.providers;if(null!=A&&!u){const V=t;wr(A,ue=>this.processProvider(ue,V,A))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,i){let r=os(t=S(t))?t:S(t&&t.provide);const s=om(e=t)?rs(void 0,e.useValue):rs(rm(e),ta);var e;if(os(t)||!0!==t.multi)this.records.get(r);else{let c=this.records.get(r);c||(c=rs(void 0,ta,!0),c.factory=()=>Do(c.multi),this.records.set(r,c)),r=t,c.multi.push(t)}this.records.set(r,s)}hydrate(t,n){return n.value===ta&&(n.value=FE,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=S(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Xc(e){const t=le(e),n=null!==t?t.factory:yi(e);if(null!==n)return n;if(e instanceof jn)throw new Error(`Token ${D(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const i=oo(t,"?");throw new Error(`Can't resolve all parameters for ${D(e)}: (${i.join(", ")}).`)}const n=function(e){const t=e&&(e[wt]||e[ze]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function rm(e,t,n){let i;if(os(e)){const r=S(e);return yi(r)||Xc(r)}if(om(e))i=()=>S(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))i=()=>e.useFactory(...Do(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))i=()=>$n(S(e.useExisting));else{const r=S(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return yi(r)||Xc(r);i=()=>new r(...Do(e.deps))}return i}function rs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function om(e){return null!==e&&"object"==typeof e&&rc in e}function os(e){return"function"==typeof e}function sm(e,t,n){return nm({name:n},t,e,n)}const am=sm;let In=(()=>{class e{static create(n,i){return Array.isArray(n)?am(n,i,""):am(n.providers,n.parent,n.name||"")}}return e.THROW_IF_NOT_FOUND=so,e.NULL=new Jc,e.\u0275prov=$({token:e,providedIn:"any",factory:()=>$n(co)}),e.__NG_ELEMENT_ID__=-1,e})();function nu(e){ru(e);const t=di(e);return null===t?null:(void 0===t.component&&(t.component=function(e,t){const n=t[1].data[e];return 2&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component)}function hm(e){ru(e);const t=di(e);return null===t?null:t.lView[8]}function fm(e){const t=di(e);if(null===t)return null;let i,n=t.lView;for(;2===n[1].type&&(i=Js(n));)n=i;return 512&n[2]?null:n[8]}function pm(e){return[...bc(e).components]}function mm(e){const t=di(e);return null===t?In.NULL:new jo(t.lView[1].data[t.nodeIndex],t.lView)}function gm(e){if(e instanceof Text)return[];const t=di(e);if(null===t)return[];const n=t.lView,i=n[1],r=t.nodeIndex;return(null==i?void 0:i.data[r])?(void 0===t.directives&&(t.directives=Bf(r,n,!1)),null===t.directives?[]:[...t.directives]):[]}function JE(e){const{constructor:t}=e;if(!t)throw new Error("Unable to find the instance constructor");const n=an(t);if(n)return{inputs:n.inputs,outputs:n.outputs,encapsulation:n.encapsulation,changeDetection:n.onPush?R.OnPush:R.Default};const i=un(t);return i?{inputs:i.inputs,outputs:i.outputs}:null}function iu(e){return di(e).native}function _m(e){ru(e);const t=di(e);if(null===t)return[];const n=t.lView,r=n[7],s=n[1].cleanup,c=[];if(s&&r)for(let u=0;u<s.length;){const y=s[u++],A=s[u++];if("string"==typeof y){const V=y,ue=v(n[A]),_e=r[s[u++]],xe=s[u++],We="boolean"==typeof xe||xe>=0?"dom":"output",ct="boolean"==typeof xe&&xe;e==ue&&c.push({element:e,name:V,callback:_e,useCapture:ct,type:We})}}return c.sort(XE),c}function XE(e,t){return e.name==t.name?0:e.name<t.name?-1:1}function qE(e){return void 0!==e.type&&void 0!==e.template&&void 0!==e.declaredInputs}function ru(e){if("undefined"!=typeof Element&&!(e instanceof Element))throw new Error("Expecting instance of DOM Element")}function eD(e){em(e),pm(e).forEach(t=>qp(t))}let vm=!1;function tD(){vm||(vm=!0,Ki("\u0275setProfiler",$r),Ki("getDirectiveMetadata",JE),Ki("getComponent",nu),Ki("getContext",hm),Ki("getListeners",_m),Ki("getOwningComponent",fm),Ki("getHostElement",iu),Ki("getInjector",mm),Ki("getRootComponents",pm),Ki("getDirectives",gm),Ki("applyChanges",eD))}function Ki(e,t){if("undefined"==typeof COMPILED||!COMPILED){const n=Nt;if(n){let i=n.ng;i||(i=n.ng={}),i[e]=t}}}function nD(e,t={}){const n=t.rendererFactory||k,i=t.sanitizer||null,r=an(e);r.type!=e&&(r.type=e);const s=r.selectors[0][0],u=Lp(n.createRenderer(null,null),t.host||s,r.encapsulation),y=r.onPush?576:528,A=Em(t.scheduler,t.playerHandler),V=n.createRenderer(u,r),ue=cl(0,null,null,1,0,null,null,null,null,null),_e=Xs(null,ue,A,y,null,null,n,V,null,t.injector||null);let xe;nr(_e);try{n.begin&&n.begin(),xe=Cm(bm(u,r,_e,n,V,i),r,_e,A,t.hostFeatures||null),qs(ue,_e,null),is(ue,_e,null,null)}finally{Ei(),n.end&&n.end()}return xe}function bm(e,t,n,i,r,s){const c=n[1];n[20]=e;const y=ts(c,20,2,"#host",null),A=y.mergedAttrs=t.hostAttrs;null!==A&&(dl(y,A,!0),null!==e&&(Ha(r,e,A),null!==y.classes&&Ac(r,e,y.classes),null!==y.styles&&mp(r,e,y.styles)));const V=i.createRenderer(e,t),ue=Xs(n,Fp(t),null,t.onPush?64:16,n[20],y,i,V,s||null,null);return c.firstCreatePass&&(Wa(Hs(y,n),c,t.type),Up(c,y),zp(y,n.length,1)),ul(n,ue),n[20]=ue}function Cm(e,t,n,i,r){const s=n[1],c=function(e,t,n){const i=kn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Wp(e,i,t,ns(e,t,1,null),n));const r=$s(t,e,i.directiveStart,i);hi(r,t);const s=St(i,t);return s&&hi(s,t),r}(s,n,t);if(i.components.push(c),e[8]=c,r&&r.forEach(y=>y(c,t)),t.contentQueries){const y=kn();t.contentQueries(1,c,y.directiveStart)}const u=kn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(ir(u.index),Hp(n[1],u,0,u.directiveStart,u.directiveEnd,t),$p(t,c)),c}function Em(e,t){return{components:[],scheduler:e||Gf,clean:kE,playerHandler:t||null,flags:0}}function Dm(e,t){oi(gc(e)[1],kn())}function iD(e){return bc(e).clean}function Tm(e){return Object.getPrototypeOf(e.prototype).constructor}function ou(e){let t=Tm(e.type),n=!0;const i=[e];for(;t;){let r;if(ni(e))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");r=t.\u0275dir}if(r){if(n){i.push(r);const c=e;c.inputs=su(e.inputs),c.declaredInputs=su(e.declaredInputs),c.outputs=su(e.outputs);const u=r.hostBindings;u&&aD(e,u);const y=r.viewQuery,A=r.contentQueries;if(y&&oD(e,y),A&&sD(e,A),w(e.inputs,r.inputs),w(e.declaredInputs,r.declaredInputs),w(e.outputs,r.outputs),ni(r)&&r.data.animation){const V=e.data;V.animation=(V.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let c=0;c<s.length;c++){const u=s[c];u&&u.ngInherit&&u(e),u===ou&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let i=e.length-1;i>=0;i--){const r=e[i];r.hostVars=t+=r.hostVars,r.hostAttrs=$a(r.hostAttrs,n=$a(n,r.hostAttrs))}}(i)}function su(e){return e===At?{}:e===Lt?[]:e}function oD(e,t){const n=e.viewQuery;e.viewQuery=n?(i,r)=>{t(i,r),n(i,r)}:t}function sD(e,t){const n=e.contentQueries;e.contentQueries=n?(i,r,s)=>{t(i,r,s),n(i,r,s)}:t}function aD(e,t){const n=e.hostBindings;e.hostBindings=n?(i,r)=>{t(i,r),n(i,r)}:t}const lD=["providersResolver"],cD=["template","decls","consts","vars","onPush","ngContentSelectors","styles","encapsulation","schemas"];function wm(e){let n,t=Tm(e.type);n=ni(e)?t.\u0275cmp:t.\u0275dir;const i=e;for(const r of lD)i[r]=n[r];if(ni(n))for(const r of cD)i[r]=n[r]}let hl=null;function ss(){if(!hl){const e=Nt.Symbol;if(e&&e.iterator)hl=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const i=t[n];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(hl=i)}}}return hl}function au(e,t){const n=ia(e),i=ia(t);return n&&i?function(e,t,n){const i=e[ss()](),r=t[ss()]();for(;;){const s=i.next(),c=r.next();if(s.done&&c.done)return!0;if(s.done||c.done||!n(s.value,c.value))return!1}}(e,t,au):!(n||!e||"object"!=typeof e&&"function"!=typeof e||i||!t||"object"!=typeof t&&"function"!=typeof t)||Object.is(e,t)}class Gi{constructor(t){this.wrapped=t}static wrap(t){return new Gi(t)}static unwrap(t){return Gi.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof Gi}}function ia(e){return!!lu(e)&&(Array.isArray(e)||!(e instanceof Map)&&ss()in e)}function lu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Ar(e,t,n){return e[t]=n}function ra(e,t){return e[t]}function fi(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Mo(e,t,n,i){const r=fi(e,t,n);return fi(e,t+1,i)||r}function fl(e,t,n,i,r){const s=Mo(e,t,n,i);return fi(e,t+2,r)||s}function Qi(e,t,n,i,r,s){const c=Mo(e,t,n,i);return Mo(e,t+2,r,s)||c}function cu(e,t,n,i){const r=Mt();return fi(r,bt(),t)&&(pn(),Pr(On(),r,e,t,n,i)),cu}function as(e,t){let n=!1,i=Fe();for(let s=1;s<t.length;s+=2)n=fi(e,i++,t[s])||n;if(ot(i),!n)return on;let r=t[0];for(let s=1;s<t.length;s+=2)r+=ye(t[s])+t[s+1];return r}function ls(e,t,n,i){return fi(e,bt(),n)?t+ye(n)+i:on}function cs(e,t,n,i,r,s){const u=Mo(e,Fe(),n,r);return kt(2),u?t+ye(n)+i+ye(r)+s:on}function us(e,t,n,i,r,s,c,u){const A=fl(e,Fe(),n,r,c);return kt(3),A?t+ye(n)+i+ye(r)+s+ye(c)+u:on}function ds(e,t,n,i,r,s,c,u,y,A){const ue=Qi(e,Fe(),n,r,c,y);return kt(4),ue?t+ye(n)+i+ye(r)+s+ye(c)+u+ye(y)+A:on}function hs(e,t,n,i,r,s,c,u,y,A,V,ue){const _e=Fe();let xe=Qi(e,_e,n,r,c,y);return xe=fi(e,_e+4,V)||xe,kt(5),xe?t+ye(n)+i+ye(r)+s+ye(c)+u+ye(y)+A+ye(V)+ue:on}function fs(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe){const We=Fe();let ct=Qi(e,We,n,r,c,y);return ct=Mo(e,We+4,V,_e)||ct,kt(6),ct?t+ye(n)+i+ye(r)+s+ye(c)+u+ye(y)+A+ye(V)+ue+ye(_e)+xe:on}function ps(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct){const it=Fe();let Ot=Qi(e,it,n,r,c,y);return Ot=fl(e,it+4,V,_e,We)||Ot,kt(7),Ot?t+ye(n)+i+ye(r)+s+ye(c)+u+ye(y)+A+ye(V)+ue+ye(_e)+xe+ye(We)+ct:on}function ms(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it,Ot){const Dt=Fe();let zt=Qi(e,Dt,n,r,c,y);return zt=Qi(e,Dt+4,V,_e,We,it)||zt,kt(8),zt?t+ye(n)+i+ye(r)+s+ye(c)+u+ye(y)+A+ye(V)+ue+ye(_e)+xe+ye(We)+ct+ye(it)+Ot:on}function uu(e,t,n,i,r,s){const c=Mt(),u=ls(c,t,n,i);return u!==on&&Pr(On(),c,e,u,r,s),uu}function du(e,t,n,i,r,s,c,u){const y=Mt(),A=cs(y,t,n,i,r,s);return A!==on&&Pr(On(),y,e,A,c,u),du}function hu(e,t,n,i,r,s,c,u,y,A){const V=Mt(),ue=us(V,t,n,i,r,s,c,u);return ue!==on&&Pr(On(),V,e,ue,y,A),hu}function fu(e,t,n,i,r,s,c,u,y,A,V,ue){const _e=Mt(),xe=ds(_e,t,n,i,r,s,c,u,y,A);return xe!==on&&Pr(On(),_e,e,xe,V,ue),fu}function pu(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe){const We=Mt(),ct=hs(We,t,n,i,r,s,c,u,y,A,V,ue);return ct!==on&&Pr(On(),We,e,ct,_e,xe),pu}function mu(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct){const it=Mt(),Ot=fs(it,t,n,i,r,s,c,u,y,A,V,ue,_e,xe);return Ot!==on&&Pr(On(),it,e,Ot,We,ct),mu}function gu(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it,Ot){const Dt=Mt(),zt=ps(Dt,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct);return zt!==on&&Pr(On(),Dt,e,zt,it,Ot),gu}function _u(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it,Ot,Dt,zt){const Xt=Mt(),gn=ms(Xt,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it,Ot);return gn!==on&&Pr(On(),Xt,e,gn,Dt,zt),_u}function yu(e,t,n,i){const r=Mt(),s=as(r,t);return s!==on&&Pr(On(),r,e,s,n,i),yu}function Mm(e,t,n,i,r,s,c,u){const y=Mt(),A=pn(),V=e+20,ue=A.firstCreatePass?function(e,t,n,i,r,s,c,u,y){const A=t.consts,V=ts(t,e,4,c||null,Kn(A,u));Uc(t,n,V,Kn(A,y)),oi(t,V);const ue=V.tViews=cl(2,V,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,A);return null!==t.queries&&(t.queries.template(t,V),ue.queries=t.queries.embeddedTView(V)),V}(V,A,y,t,n,i,r,s,c):A.data[V];Vi(ue,!1);const _e=y[11].createComment("");rl(A,y,_e,ue),hi(_e,y),ul(y,y[V]=Kp(_e,y,_e,ue)),ui(ue)&&Hc(A,y,ue),null!=c&&$c(y,ue,u)}function Sm(e,t,n,i){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=i}function Im(e){return rn(Yt.lFrame.contextLView,20+e)}const Pm={\u0275\u0275defineInjectable:$,\u0275\u0275defineInjector:H,\u0275\u0275inject:$n,\u0275\u0275invalidFactoryDep:oc,resolveForwardRef:S},pD=C({provide:String,useValue:C});function Am(e){return void 0!==e.useClass}function Om(e){return void 0!==e.useFactory}const vD=$o("Injectable",void 0,void 0,void 0,(e,t)=>bD(e,t)),Rm=function(e,t){let n=null,i=null;e.hasOwnProperty(wt)||Object.defineProperty(e,wt,{get:()=>(null===n&&(n=Qn().compileInjectable(Pm,`ng:///${e.name}/\u0275prov.js`,function(e,t){const n=t||{providedIn:null},i={name:e.name,type:e,typeArgumentCount:0,providedIn:n.providedIn};return(Am(n)||Om(n))&&void 0!==n.deps&&(i.deps=hf(n.deps)),Am(n)?i.useClass=n.useClass:function(e){return pD in e}(n)?i.useValue=n.useValue:Om(n)?i.useFactory=n.useFactory:function(e){return void 0!==e.useExisting}(n)&&(i.useExisting=n.useExisting),i}(e,t))),n)}),e.hasOwnProperty(K)||Object.defineProperty(e,K,{get:()=>{if(null===i){const r=Qn();i=r.compileFactory(Pm,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,typeArgumentCount:0,deps:Za(e),target:r.FactoryTarget.Injectable})}return i},configurable:!0})},bD=Rm;function vu(e){return e.length>1?" ("+function(e){const t=[];for(let n=0;n<e.length;++n){if(t.indexOf(e[n])>-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(i=>D(i.token)).join(" -> ")+")":""}function bu(e,t,n,i){const r=[t],s=n(r),c=i?function(e,t){const n=`${e} caused by: ${t instanceof Error?t.message:t}`,i=Error(n);return i[_c]=t,i}(s,i):Error(s);return c.addKey=ED,c.keys=r,c.injectors=[e],c.constructResolvingMessage=n,c[_c]=i,c}function ED(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function km(e,t){const n=[];for(let i=0,r=t.length;i<r;i++){const s=t[i];n.push(s&&0!=s.length?s.map(D).join(" "):"?")}return Error("Cannot resolve all parameters for '"+D(e)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+D(e)+"' is decorated with Injectable.")}function ID(e,t){return Error(`Cannot mix multi providers and regular providers, got: ${e} ${t}`)}class Xr{constructor(t,n){if(this.token=t,this.id=n,!t)throw new Error("Token must be defined!");this.displayName=D(this.token)}static get(t){return Fm.get(S(t))}static get numberOfKeys(){return Fm.numberOfKeys}}class PD{constructor(){this._allKeys=new Map}get(t){if(t instanceof Xr)return t;if(this._allKeys.has(t))return this._allKeys.get(t);const n=new Xr(t,Xr.numberOfKeys);return this._allKeys.set(t,n),n}get numberOfKeys(){return this._allKeys.size}}const Fm=new PD;class AD{constructor(t){this.reflectionCapabilities=t}updateCapabilities(t){this.reflectionCapabilities=t}factory(t){return this.reflectionCapabilities.factory(t)}parameters(t){return this.reflectionCapabilities.parameters(t)}annotations(t){return this.reflectionCapabilities.annotations(t)}propMetadata(t){return this.reflectionCapabilities.propMetadata(t)}hasLifecycleHook(t,n){return this.reflectionCapabilities.hasLifecycleHook(t,n)}getter(t){return this.reflectionCapabilities.getter(t)}setter(t){return this.reflectionCapabilities.setter(t)}method(t){return this.reflectionCapabilities.method(t)}importUri(t){return this.reflectionCapabilities.importUri(t)}resourceUri(t){return this.reflectionCapabilities.resourceUri(t)}resolveIdentifier(t,n,i,r){return this.reflectionCapabilities.resolveIdentifier(t,n,i,r)}resolveEnum(t,n){return this.reflectionCapabilities.resolveEnum(t,n)}}const Nm=new AD(new zo);class oa{constructor(t,n,i){this.key=t,this.optional=n,this.visibility=i}static fromKey(t){return new oa(t,!1,null)}}const OD=[];class Lm{constructor(t,n,i){this.key=t,this.resolvedFactories=n,this.multiProvider=i,this.resolvedFactory=this.resolvedFactories[0]}}class jm{constructor(t,n){this.factory=t,this.dependencies=n}}function xD(e){let t,n;if(e.useClass){const i=S(e.useClass);t=Nm.factory(i),n=Hm(i)}else e.useExisting?(t=i=>i,n=[oa.fromKey(Xr.get(e.useExisting))]):e.useFactory?(t=e.useFactory,n=function(e,t){if(t){const n=t.map(i=>[i]);return t.map(i=>$m(e,i,n))}return Hm(e)}(e.useFactory,e.deps)):(t=()=>e.useValue,n=OD);return new jm(t,n)}function RD(e){return new Lm(Xr.get(e.provide),[xD(e)],e.multi||!1)}function Bm(e){const i=function(e,t){for(let n=0;n<e.length;n++){const i=e[n],r=t.get(i.key.id);if(r){if(i.multiProvider!==r.multiProvider)throw ID(r,i);if(i.multiProvider)for(let s=0;s<i.resolvedFactories.length;s++)r.resolvedFactories.push(i.resolvedFactories[s]);else t.set(i.key.id,i)}else{let s;s=i.multiProvider?new Lm(i.key,i.resolvedFactories.slice(),i.multiProvider):i,t.set(i.key.id,s)}}return t}(Vm(e,[]).map(RD),new Map);return Array.from(i.values())}function Vm(e,t){return e.forEach(n=>{if(n instanceof Ga)t.push({provide:n,useClass:n});else if(n&&"object"==typeof n&&void 0!==n.provide)t.push(n);else{if(!Array.isArray(n))throw function(e){return Error(`Invalid provider - only instances of Provider and Type are allowed, got: ${e}`)}(n);Vm(n,t)}}),t}function Hm(e){const t=Nm.parameters(e);if(!t)return[];if(t.some(n=>null==n))throw km(e,t);return t.map(n=>$m(e,n,t))}function $m(e,t,n){let i=null,r=!1;if(!Array.isArray(t))return Cu(t instanceof Go?t.token:t,r,null);let s=null;for(let c=0;c<t.length;++c){const u=t[c];u instanceof Ga?i=u:u instanceof Go?i=u.token:u instanceof Wr?r=!0:u instanceof Qo||u instanceof Kr?s=u:u instanceof jn&&(i=u)}if(i=S(i),null!=i)return Cu(i,r,s);throw km(e,n)}function Cu(e,t,n){return new oa(Xr.get(e),t,n)}const sa={};class gs{static resolve(t){return Bm(t)}static resolveAndCreate(t,n){const i=gs.resolve(t);return gs.fromResolvedProviders(i,n)}static fromResolvedProviders(t,n){return new Um(t,n)}}let Um=(()=>{class e{constructor(n,i){this._constructionCounter=0,this._providers=n,this.parent=i||null;const r=n.length;this.keyIds=[],this.objs=[];for(let s=0;s<r;s++)this.keyIds[s]=n[s].key.id,this.objs[s]=sa}get(n,i=so){return this._getByKey(Xr.get(n),null,i)}resolveAndCreateChild(n){const i=gs.resolve(n);return this.createChildFromResolved(i)}createChildFromResolved(n){const i=new e(n);return i.parent=this,i}resolveAndInstantiate(n){return this.instantiateResolved(gs.resolve([n])[0])}instantiateResolved(n){return this._instantiateProvider(n)}getProviderAtIndex(n){if(n<0||n>=this._providers.length)throw function(e){return Error(`Index ${e} is out-of-bounds.`)}(n);return this._providers[n]}_new(n){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function(e,t){return bu(e,t,function(n){return`Cannot instantiate cyclic dependency!${vu(n)}`})}(this,n.key);return this._instantiateProvider(n)}_getMaxNumberOfObjects(){return this.objs.length}_instantiateProvider(n){if(n.multiProvider){const i=[];for(let r=0;r<n.resolvedFactories.length;++r)i[r]=this._instantiate(n,n.resolvedFactories[r]);return i}return this._instantiate(n,n.resolvedFactories[0])}_instantiate(n,i){const r=i.factory;let s,c;try{s=i.dependencies.map(u=>this._getByReflectiveDependency(u))}catch(u){throw u.addKey&&u.addKey(this,n.key),u}try{c=r(...s)}catch(u){throw function(e,t,n,i){return bu(e,i,function(r){const s=D(r[0].token);return`${t.message}: Error during instantiation of ${s}!${vu(r)}.`},t)}(this,u,0,n.key)}return c}_getByReflectiveDependency(n){return this._getByKey(n.key,n.visibility,n.optional?null:so)}_getByKey(n,i,r){return n===e.INJECTOR_KEY?this:i instanceof Qo?this._getByKeySelf(n,r):this._getByKeyDefault(n,r,i)}_getObjByKeyId(n){for(let i=0;i<this.keyIds.length;i++)if(this.keyIds[i]===n)return this.objs[i]===sa&&(this.objs[i]=this._new(this._providers[i])),this.objs[i];return sa}_throwOrNull(n,i){if(i!==so)return i;throw function(e,t){return bu(e,t,function(n){return`No provider for ${D(n[0].token)}!${vu(n)}`})}(this,n)}_getByKeySelf(n,i){const r=this._getObjByKeyId(n.id);return r!==sa?r:this._throwOrNull(n,i)}_getByKeyDefault(n,i,r){let s;for(s=r instanceof Kr?this.parent:this;s instanceof e;){const c=s,u=c._getObjByKeyId(n.id);if(u!==sa)return u;s=c.parent}return null!==s?s.get(n.token,i):this._throwOrNull(n,i)}get displayName(){return`ReflectiveInjector(providers: [${function(e,t){const n=[];for(let i=0;i<e._providers.length;++i)n[i]=t(e.getProviderAtIndex(i));return n}(this,i=>' "'+i.key.displayName+'" ').join(", ")}])`}toString(){return this.displayName}}return e.INJECTOR_KEY=Xr.get(In),e})();function aa(e,t=q.Default){const n=Mt();return null===n?$n(e,t):Qh(kn(),n,S(e),t)}function zm(){throw new Error("invalid")}function Eu(e,t,n){const i=Mt();return fi(i,bt(),t)&&Fi(pn(),On(),i,e,t,i[11],n,!1),Eu}function Du(e,t,n,i,r){const c=r?"class":"style";Xp(e,n,t.inputs[c],c,i)}function Tu(e,t,n,i){const r=Mt(),s=pn(),c=20+e,u=r[11],y=r[c]=Tc(u,t,Yt.lFrame.currentNamespace),A=s.firstCreatePass?function(e,t,n,i,r,s,c){const u=t.consts,A=ts(t,e,2,r,Kn(u,s));return Uc(t,n,A,Kn(u,c)),null!==A.attrs&&dl(A,A.attrs,!1),null!==A.mergedAttrs&&dl(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(c,s,r,0,t,n,i):s.data[c];Vi(A,!0);const V=A.mergedAttrs;null!==V&&Ha(u,y,V);const ue=A.classes;null!==ue&&Ac(u,y,ue);const _e=A.styles;null!==_e&&mp(u,y,_e),64!=(64&A.flags)&&rl(s,r,y,A),0===Yt.lFrame.elementDepthCount&&hi(y,r),Yt.lFrame.elementDepthCount++,ui(A)&&(Hc(s,r,A),kp(s,A,r)),null!==i&&$c(r,A)}function wu(){let e=kn();G()?f():(e=e.parent,Vi(e,!1));const t=e;Yt.lFrame.elementDepthCount--;const n=pn();n.firstCreatePass&&(oi(n,e),Ci(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Du(n,t,Mt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Du(n,t,Mt(),t.stylesWithoutHost,!1)}function Wm(e,t,n,i){Tu(e,t,n,i),wu()}function Mu(e,t,n){const i=Mt(),r=pn(),s=e+20,c=r.firstCreatePass?function(e,t,n,i,r){const s=t.consts,c=Kn(s,i),u=ts(t,e,8,"ng-container",c);return null!==c&&dl(u,c,!0),Uc(t,n,u,Kn(s,r)),null!==t.queries&&t.queries.elementStart(t,u),u}(s,r,i,t,n):r.data[s];Vi(c,!0);const u=i[s]=i[11].createComment("");rl(r,i,u,c),hi(u,i),ui(c)&&(Hc(r,i,c),kp(r,c,i)),null!=n&&$c(i,c)}function Su(){let e=kn();const t=pn();G()?f():(e=e.parent,Vi(e,!1)),t.firstCreatePass&&(oi(t,e),Ci(e)&&t.queries.elementEnd(e))}function Km(e,t,n){Mu(e,t,n),Su()}function Gm(){return Mt()}function Iu(e){return!!e&&"function"==typeof e.then}function Qm(e){return!!e&&"function"==typeof e.subscribe}const Pu=Qm;function Au(e,t,n,i){const r=Mt(),s=pn(),c=kn();return Ym(s,r,r[11],c,e,t,!!n,i),Au}function Ou(e,t){const n=kn(),i=Mt(),r=pn();return Ym(r,i,Jp(hn(r.data),n,i),n,e,t,!1),Ou}function Ym(e,t,n,i,r,s,c,u){const y=ui(i),V=e.firstCreatePass&&Yp(e),ue=t[8],_e=Qp(t);let xe=!0;if(3&i.type||u){const it=St(i,t),Ot=u?u(it):it,Dt=_e.length,zt=u?Xt=>u(v(Xt[i.index])):i.index;if(O(n)){let Xt=null;if(!u&&y&&(Xt=function(e,t,n,i){const r=e.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const c=r[s];if(c===n&&r[s+1]===i){const u=t[7],y=r[s+2];return u.length>y?u[y]:null}"string"==typeof c&&(s+=2)}return null}(e,t,r,i.index)),null!==Xt)(Xt.__ngLastListenerFn__||Xt).__ngNextListenerFn__=s,Xt.__ngLastListenerFn__=s,xe=!1;else{s=xu(i,t,ue,s,!1);const gn=n.listen(Ot,r,s);_e.push(s,gn),V&&V.push(r,zt,Dt,Dt+1)}}else s=xu(i,t,ue,s,!0),Ot.addEventListener(r,s,c),_e.push(s),V&&V.push(r,zt,Dt,c)}else s=xu(i,t,ue,s,!1);const We=i.outputs;let ct;if(xe&&null!==We&&(ct=We[r])){const it=ct.length;if(it)for(let Ot=0;Ot<it;Ot+=2){const Xn=t[ct[Ot]][ct[Ot+1]].subscribe(s),Zi=_e.length;_e.push(s,Xn),V&&V.push(r,i.index,Zi,-(Zi+1))}}}function Jm(e,t,n,i){try{return Rn(6,t,n),!1!==n(i)}catch(r){return Zp(e,r),!1}finally{Rn(7,t,n)}}function xu(e,t,n,i,r){return function s(c){if(c===Function)return i;const u=2&e.flags?bn(e.index,t):t;0==(32&t[2])&&Kc(u);let y=Jm(t,n,i,c),A=s.__ngNextListenerFn__;for(;A;)y=Jm(t,n,A,c)&&y,A=A.__ngNextListenerFn__;return r&&!1===y&&(c.preventDefault(),c.returnValue=!1),y}}function Zm(e=1){return Ls(e)}function VD(e,t){let n=null;const i=function(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?vp(e,s,!0):YC(i,s))return r}else n=r}return n}function Xm(e){const t=Mt()[16][6];if(!t.projection){const i=t.projection=oo(e?e.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const c=e?VD(s,e):0;null!==c&&(r[c]?r[c].projectionNext=s:i[c]=s,r[c]=s),s=s.next}}}function qm(e,t=0,n){const i=Mt(),r=pn(),s=ts(r,20+e,16,null,n||null);null===s.projection&&(s.projection=t),f(),64!=(64&s.flags)&&function(e,t,n){pp(t[11],0,t,n,rp(e,n,t),lp(n.parent||t[6],n,t))}(r,i,s)}function Ru(e,t,n){return pl(e,"",t,"",n),Ru}function pl(e,t,n,i,r){const s=Mt(),c=ls(s,t,n,i);return c!==on&&Fi(pn(),On(),s,e,c,s[11],r,!1),pl}function ku(e,t,n,i,r,s,c){const u=Mt(),y=cs(u,t,n,i,r,s);return y!==on&&Fi(pn(),On(),u,e,y,u[11],c,!1),ku}function Fu(e,t,n,i,r,s,c,u,y){const A=Mt(),V=us(A,t,n,i,r,s,c,u);return V!==on&&Fi(pn(),On(),A,e,V,A[11],y,!1),Fu}function Nu(e,t,n,i,r,s,c,u,y,A,V){const ue=Mt(),_e=ds(ue,t,n,i,r,s,c,u,y,A);return _e!==on&&Fi(pn(),On(),ue,e,_e,ue[11],V,!1),Nu}function Lu(e,t,n,i,r,s,c,u,y,A,V,ue,_e){const xe=Mt(),We=hs(xe,t,n,i,r,s,c,u,y,A,V,ue);return We!==on&&Fi(pn(),On(),xe,e,We,xe[11],_e,!1),Lu}function ju(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We){const ct=Mt(),it=fs(ct,t,n,i,r,s,c,u,y,A,V,ue,_e,xe);return it!==on&&Fi(pn(),On(),ct,e,it,ct[11],We,!1),ju}function Bu(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it){const Ot=Mt(),Dt=ps(Ot,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct);return Dt!==on&&Fi(pn(),On(),Ot,e,Dt,Ot[11],it,!1),Bu}function Vu(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it,Ot,Dt){const zt=Mt(),Xt=ms(zt,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it,Ot);return Xt!==on&&Fi(pn(),On(),zt,e,Xt,zt[11],Dt,!1),Vu}function Hu(e,t,n){const i=Mt(),r=as(i,t);return r!==on&&Fi(pn(),On(),i,e,r,i[11],n,!1),Hu}function eg(e,t,n,i,r){const s=e[n+1],c=null===t;let u=i?or(s):Qr(s),y=!1;for(;0!==u&&(!1===y||c);){const V=e[u+1];UD(e[u],t)&&(y=!0,e[u+1]=i?Rc(V):Oc(V)),u=i?or(V):Qr(V)}y&&(e[n+1]=i?Oc(s):Rc(s))}function UD(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Uo(e,t)>=0}const Yn={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function tg(e){return e.substring(Yn.key,Yn.keyEnd)}function zD(e){return e.substring(Yn.value,Yn.valueEnd)}function ng(e,t){const n=Yn.textEnd;return n===t?-1:(t=Yn.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Yn.key=t,n),_s(e,t,n))}function ig(e,t){const n=Yn.textEnd;let i=Yn.key=_s(e,t,n);return n===i?-1:(i=Yn.keyEnd=function(e,t,n){let i;for(;t<n&&(45===(i=e.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(e,i,n),i=og(e,i,n),i=Yn.value=_s(e,i,n),i=Yn.valueEnd=function(e,t,n){let i=-1,r=-1,s=-1,c=t,u=c;for(;c<n;){const y=e.charCodeAt(c++);if(59===y)return u;34===y||39===y?u=c=sg(e,y,c,n):t===c-4&&85===s&&82===r&&76===i&&40===y?u=c=sg(e,41,c,n):y>32&&(u=c),s=r,r=i,i=-33&y}return u}(e,i,n),og(e,i,n))}function rg(e){Yn.key=0,Yn.keyEnd=0,Yn.value=0,Yn.valueEnd=0,Yn.textEnd=e.length}function _s(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function og(e,t,n,i){return(t=_s(e,t,n))<n&&t++,t}function sg(e,t,n,i){let r=-1,s=n;for(;s<i;){const c=e.charCodeAt(s++);if(c==t&&92!==r)return s;r=92==c&&92===r?0:c}throw new Error}function $u(e,t,n){return ar(e,t,n,!1),$u}function Uu(e,t){return ar(e,t,null,!0),Uu}function sr(e){lr(ug,JD,e,!1)}function JD(e,t){for(let n=function(e){return rg(e),ig(e,_s(e,0,Yn.textEnd))}(t);n>=0;n=ig(t,n))ug(e,tg(t),zD(t))}function ag(e){lr(ki,Or,e,!0)}function Or(e,t){for(let n=function(e){return rg(e),ng(e,_s(e,0,Yn.textEnd))}(t);n>=0;n=ng(t,n))ki(e,tg(t),!0)}function ar(e,t,n,i){const r=Mt(),s=pn(),c=kt(2);s.firstUpdatePass&&cg(s,e,c,i),t!==on&&fi(r,c,t)&&dg(s,s.data[Fn()],r,r[11],e,r[c+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=D(Gr(e)))),e}(t,n),i,c)}function lr(e,t,n,i){const r=pn(),s=kt(2);r.firstUpdatePass&&cg(r,null,s,i);const c=Mt();if(n!==on&&fi(c,s,n)){const u=r.data[Fn()];if(fg(u,i)&&!lg(r,s)){let y=i?u.classesWithoutHost:u.stylesWithoutHost;null!==y&&(n=g(y,n||"")),Du(r,u,c,n,i)}else!function(e,t,n,i,r,s,c,u){r===on&&(r=Lt);let y=0,A=0,V=0<r.length?r[0]:null,ue=0<s.length?s[0]:null;for(;null!==V||null!==ue;){const _e=y<r.length?r[y+1]:void 0,xe=A<s.length?s[A+1]:void 0;let ct,We=null;V===ue?(y+=2,A+=2,_e!==xe&&(We=ue,ct=xe)):null===ue||null!==V&&V<ue?(y+=2,We=V):(A+=2,We=ue,ct=xe),null!==We&&dg(e,t,n,i,We,ct,c,u),V=y<r.length?r[y]:null,ue=A<s.length?s[A]:null}}(r,u,c,c[11],c[s+1],c[s+1]=function(e,t,n){if(null==n||""===n)return Lt;const i=[],r=Gr(n);if(Array.isArray(r))for(let s=0;s<r.length;s++)e(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&e(i,s,r[s]);else"string"==typeof r&&t(i,r);return i}(e,t,n),i,s)}}function lg(e,t){return t>=e.expandoStartIndex}function cg(e,t,n,i){const r=e.data;if(null===r[n+1]){const s=r[Fn()],c=lg(e,n);fg(s,i)&&null===t&&!c&&(t=!1),t=function(e,t,n,i){const r=hn(e);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(n=la(n=zu(null,e,t,n,i),t.attrs,i),s=null);else{const c=t.directiveStylingLast;if(-1===c||e[c]!==r)if(n=zu(r,e,t,n,i),null===s){let y=function(e,t,n){const i=n?t.classBindings:t.styleBindings;if(0!==Qr(i))return e[or(i)]}(e,t,i);void 0!==y&&Array.isArray(y)&&(y=zu(null,e,t,y[1],i),y=la(y,t.attrs,i),function(e,t,n,i){e[or(n?t.classBindings:t.styleBindings)]=i}(e,t,i,y))}else s=function(e,t,n){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=la(i,e[s].hostAttrs,n);return la(i,t.attrs,n)}(e,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),n}(r,s,t,i),function(e,t,n,i,r,s){let c=s?t.classBindings:t.styleBindings,u=or(c),y=Qr(c);e[i]=n;let V,A=!1;if(Array.isArray(n)){const ue=n;V=ue[1],(null===V||Uo(ue,V)>0)&&(A=!0)}else V=n;if(r)if(0!==y){const _e=or(e[u+1]);e[i+1]=sl(_e,u),0!==_e&&(e[_e+1]=xc(e[_e+1],i)),e[u+1]=function(e,t){return 131071&e|t<<17}(e[u+1],i)}else e[i+1]=sl(u,0),0!==u&&(e[u+1]=xc(e[u+1],i)),u=i;else e[i+1]=sl(y,0),0===u?u=i:e[y+1]=xc(e[y+1],i),y=i;A&&(e[i+1]=Oc(e[i+1])),eg(e,V,i,!0),eg(e,V,i,!1),function(e,t,n,i,r){const s=r?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Uo(s,t)>=0&&(n[i+1]=Rc(n[i+1]))}(t,V,e,i,s),c=sl(u,y),s?t.classBindings=c:t.styleBindings=c}(r,s,t,n,c,i)}}function zu(e,t,n,i,r){let s=null;const c=n.directiveEnd;let u=n.directiveStylingLast;for(-1===u?u=n.directiveStart:u++;u<c&&(s=t[u],i=la(i,s.hostAttrs,r),s!==e);)u++;return null!==e&&(n.directiveStylingLast=u),i}function la(e,t,n){const i=n?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const c=t[s];"number"==typeof c?r=c:r===i&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ki(e,c,!!n||t[++s]))}return void 0===e?null:e}function ug(e,t,n){ki(e,t,Gr(n))}function dg(e,t,n,i,r,s,c,u){if(!(3&t.type))return;const y=e.data,A=y[u+1];ml(function(e){return 1==(1&e)}(A)?hg(y,t,n,r,Qr(A),c):void 0)||(ml(s)||function(e){return 2==(2&e)}(A)&&(s=hg(y,null,n,r,u,c)),function(e,t,n,i,r){const s=O(e);if(t)r?s?e.addClass(n,i):n.classList.add(i):s?e.removeClass(n,i):n.classList.remove(i);else{let c=-1===i.indexOf("-")?void 0:Ir.DashCase;if(null==r)s?e.removeStyle(n,i,c):n.style.removeProperty(i);else{const u="string"==typeof r&&r.endsWith("!important");u&&(r=r.slice(0,-10),c|=Ir.Important),s?e.setStyle(n,i,r,c):n.style.setProperty(i,r,u?"important":"")}}}(i,c,Qe(Fn(),n),r,s))}function hg(e,t,n,i,r,s){const c=null===t;let u;for(;r>0;){const y=e[r],A=Array.isArray(y),V=A?y[1]:y,ue=null===V;let _e=n[r+1];_e===on&&(_e=ue?Lt:void 0);let xe=ue?ec(_e,i):V===i?_e:void 0;if(A&&!ml(xe)&&(xe=ec(y,i)),ml(xe)&&(u=xe,c))return u;const We=e[r+1];r=c?or(We):Qr(We)}if(null!==t){let y=s?t.residualClasses:t.residualStyles;null!=y&&(u=ec(y,i))}return u}function ml(e){return void 0!==e}function fg(e,t){return 0!=(e.flags&(t?16:32))}function pg(e,t=""){const n=Mt(),i=pn(),r=e+20,s=i.firstCreatePass?ts(i,r,1,t,null):i.data[r],c=n[r]=Dc(n[11],t);rl(i,n,c,s),Vi(s,!1)}function Wu(e){return gl("",e,""),Wu}function gl(e,t,n){const i=Mt(),r=ls(i,e,t,n);return r!==on&&Jr(i,Fn(),r),gl}function Ku(e,t,n,i,r){const s=Mt(),c=cs(s,e,t,n,i,r);return c!==on&&Jr(s,Fn(),c),Ku}function Gu(e,t,n,i,r,s,c){const u=Mt(),y=us(u,e,t,n,i,r,s,c);return y!==on&&Jr(u,Fn(),y),Gu}function Qu(e,t,n,i,r,s,c,u,y){const A=Mt(),V=ds(A,e,t,n,i,r,s,c,u,y);return V!==on&&Jr(A,Fn(),V),Qu}function Yu(e,t,n,i,r,s,c,u,y,A,V){const ue=Mt(),_e=hs(ue,e,t,n,i,r,s,c,u,y,A,V);return _e!==on&&Jr(ue,Fn(),_e),Yu}function Ju(e,t,n,i,r,s,c,u,y,A,V,ue,_e){const xe=Mt(),We=fs(xe,e,t,n,i,r,s,c,u,y,A,V,ue,_e);return We!==on&&Jr(xe,Fn(),We),Ju}function Zu(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We){const ct=Mt(),it=ps(ct,e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We);return it!==on&&Jr(ct,Fn(),it),Zu}function Xu(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it){const Ot=Mt(),Dt=ms(Ot,e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it);return Dt!==on&&Jr(Ot,Fn(),Dt),Xu}function qu(e){const t=Mt(),n=as(t,e);return n!==on&&Jr(t,Fn(),n),qu}function mg(e,t,n){lr(ki,Or,ls(Mt(),e,t,n),!0)}function gg(e,t,n,i,r){lr(ki,Or,cs(Mt(),e,t,n,i,r),!0)}function _g(e,t,n,i,r,s,c){lr(ki,Or,us(Mt(),e,t,n,i,r,s,c),!0)}function yg(e,t,n,i,r,s,c,u,y){lr(ki,Or,ds(Mt(),e,t,n,i,r,s,c,u,y),!0)}function vg(e,t,n,i,r,s,c,u,y,A,V){lr(ki,Or,hs(Mt(),e,t,n,i,r,s,c,u,y,A,V),!0)}function bg(e,t,n,i,r,s,c,u,y,A,V,ue,_e){lr(ki,Or,fs(Mt(),e,t,n,i,r,s,c,u,y,A,V,ue,_e),!0)}function Cg(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We){lr(ki,Or,ps(Mt(),e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We),!0)}function Eg(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it){lr(ki,Or,ms(Mt(),e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it),!0)}function Dg(e){lr(ki,Or,as(Mt(),e),!0)}function Tg(e,t,n){sr(ls(Mt(),e,t,n))}function wg(e,t,n,i,r){sr(cs(Mt(),e,t,n,i,r))}function Mg(e,t,n,i,r,s,c){sr(us(Mt(),e,t,n,i,r,s,c))}function Sg(e,t,n,i,r,s,c,u,y){sr(ds(Mt(),e,t,n,i,r,s,c,u,y))}function Ig(e,t,n,i,r,s,c,u,y,A,V){sr(hs(Mt(),e,t,n,i,r,s,c,u,y,A,V))}function Pg(e,t,n,i,r,s,c,u,y,A,V,ue,_e){sr(fs(Mt(),e,t,n,i,r,s,c,u,y,A,V,ue,_e))}function Ag(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We){sr(ps(Mt(),e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We))}function Og(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it){sr(ms(Mt(),e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it))}function xg(e){sr(as(Mt(),e))}function ed(e,t,n,i,r){return ar(e,ls(Mt(),t,n,i),r,!1),ed}function td(e,t,n,i,r,s,c){return ar(e,cs(Mt(),t,n,i,r,s),c,!1),td}function nd(e,t,n,i,r,s,c,u,y){return ar(e,us(Mt(),t,n,i,r,s,c,u),y,!1),nd}function id(e,t,n,i,r,s,c,u,y,A,V){return ar(e,ds(Mt(),t,n,i,r,s,c,u,y,A),V,!1),id}function rd(e,t,n,i,r,s,c,u,y,A,V,ue,_e){return ar(e,hs(Mt(),t,n,i,r,s,c,u,y,A,V,ue),_e,!1),rd}function od(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We){return ar(e,fs(Mt(),t,n,i,r,s,c,u,y,A,V,ue,_e,xe),We,!1),od}function sd(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it){return ar(e,ps(Mt(),t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct),it,!1),sd}function ad(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it,Ot,Dt){return ar(e,ms(Mt(),t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it,Ot),Dt,!1),ad}function ld(e,t,n){return ar(e,as(Mt(),t),n,!1),ld}function cd(e,t,n){const i=Mt();return fi(i,bt(),t)&&Fi(pn(),On(),i,e,t,i[11],n,!0),cd}function ud(e,t,n){const i=Mt();if(fi(i,bt(),t)){const s=pn(),c=On();Fi(s,c,i,e,t,Jp(hn(s.data),c,i),n,!0)}return ud}const So=void 0;var oT=["en",[["a","p"],["AM","PM"],So],[["AM","PM"],So,So],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],So,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],So,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",So,"{1} 'at' {0}",So],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let ys={};function sT(e,t,n){"string"!=typeof t&&(n=t,t=e[Jt.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),ys[t]=e,n&&(ys[t][Jt.ExtraData]=n)}function dd(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=kg(t);if(n)return n;const i=t.split("-")[0];if(n=kg(i),n)return n;if("en"===i)return oT;throw new Error(`Missing locale data for the locale "${e}".`)}function aT(e){return dd(e)[Jt.CurrencyCode]||null}function Rg(e){return dd(e)[Jt.PluralCase]}function kg(e){return e in ys||(ys[e]=Nt.ng&&Nt.ng.common&&Nt.ng.common.locales&&Nt.ng.common.locales[e]),ys[e]}function lT(){ys={}}var Jt=(()=>((Jt=Jt||{})[Jt.LocaleId=0]="LocaleId",Jt[Jt.DayPeriodsFormat=1]="DayPeriodsFormat",Jt[Jt.DayPeriodsStandalone=2]="DayPeriodsStandalone",Jt[Jt.DaysFormat=3]="DaysFormat",Jt[Jt.DaysStandalone=4]="DaysStandalone",Jt[Jt.MonthsFormat=5]="MonthsFormat",Jt[Jt.MonthsStandalone=6]="MonthsStandalone",Jt[Jt.Eras=7]="Eras",Jt[Jt.FirstDayOfWeek=8]="FirstDayOfWeek",Jt[Jt.WeekendRange=9]="WeekendRange",Jt[Jt.DateFormat=10]="DateFormat",Jt[Jt.TimeFormat=11]="TimeFormat",Jt[Jt.DateTimeFormat=12]="DateTimeFormat",Jt[Jt.NumberSymbols=13]="NumberSymbols",Jt[Jt.NumberFormats=14]="NumberFormats",Jt[Jt.CurrencyCode=15]="CurrencyCode",Jt[Jt.CurrencySymbol=16]="CurrencySymbol",Jt[Jt.CurrencyName=17]="CurrencyName",Jt[Jt.Currencies=18]="Currencies",Jt[Jt.Directionality=19]="Directionality",Jt[Jt.PluralCase=20]="PluralCase",Jt[Jt.ExtraData=21]="ExtraData",Jt))();const uT=["zero","one","two","few","many"],ca="en-US",Fg="USD",_l={marker:"element"},yl={marker:"ICU"};var Vn=(()=>((Vn=Vn||{})[Vn.SHIFT=2]="SHIFT",Vn[Vn.APPEND_EAGERLY=1]="APPEND_EAGERLY",Vn[Vn.COMMENT=2]="COMMENT",Vn))();let Ng=ca;function vl(e){(function(e,t){null==e&&ut(t,e,null,"!=")})(e,"Expected localeId to be defined"),"string"==typeof e&&(Ng=e.toLowerCase().replace(/_/g,"-"))}function Lg(e,t,n){const i=t.insertBeforeIndex,r=Array.isArray(i)?i[0]:i;return null===r?cp(e,0,n):v(n[r])}function jg(e,t,n,i,r){const s=t.insertBeforeIndex;if(Array.isArray(s)){let c=i,u=null;if(3&t.type||(u=c,c=r),null!==c&&0==(2&t.flags))for(let y=1;y<s.length;y++)wo(e,c,n[s[y]],u,!1)}}function Bg(e,t){if(e.push(t),e.length>1)for(let n=e.length-2;n>=0;n--){const i=e[n];Vg(i)||fT(i,t)&&null===pT(i)&&mT(i,t.index)}}function Vg(e){return!(64&e.type)}function fT(e,t){return Vg(t)||e.index>t.index}function pT(e){const t=e.insertBeforeIndex;return Array.isArray(t)?t[0]:t}function mT(e,t){const n=e.insertBeforeIndex;Array.isArray(n)?n[0]=t:(dp(Lg,jg),e.insertBeforeIndex=t)}function ua(e,t){const n=e.data[t];return null===n||"string"==typeof n?null:n.hasOwnProperty("currentCaseLViewIndex")?n:n.value}function yT(e,t,n){const i=Vc(e,n,64,null,null);return Bg(t,i),i}function bl(e,t){const n=t[e.currentCaseLViewIndex];return null===n?n:n<0?~n:n}function Hg(e){return e>>>17}function $g(e){return(131070&e)>>>1}let da=0,ha=0;function zg(e,t,n,i){const r=n[11];let c,s=null;for(let u=0;u<t.length;u++){const y=t[u];if("string"==typeof y){const A=t[++u];null===n[A]&&(n[A]=Dc(r,y))}else if("number"==typeof y)switch(1&y){case 0:const A=Hg(y);let V,ue;if(null===s&&(s=A,c=il(r,i)),A===s?(V=i,ue=c):(V=null,ue=v(n[A])),null!==ue){const ct=$g(y);wo(r,ue,n[ct],V,!1);const Ot=ua(e,ct);if(null!==Ot&&"object"==typeof Ot){const Dt=bl(Ot,n);null!==Dt&&zg(e,Ot.create[Dt],n,n[Ot.anchorIdx])}}break;case 1:const xe=t[++u],We=t[++u];zc(r,Qe(y>>>1,n),null,null,xe,We,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${y}"`)}else switch(y){case yl:const A=t[++u],V=t[++u];null===n[V]&&hi(n[V]=IC(r,A),n);break;case _l:const ue=t[++u],_e=t[++u];null===n[_e]&&hi(n[_e]=Tc(r,ue,null),n)}}}function Wg(e,t,n,i,r){for(let s=0;s<n.length;s++){const c=n[s],u=n[++s];if(c&r){let y="";for(let A=s+1;A<=s+u;A++){const V=n[A];if("string"==typeof V)y+=V;else if("number"==typeof V)if(V<0)y+=ye(t[i-V]);else{const ue=V>>>2;switch(3&V){case 1:const _e=n[++A],xe=n[++A],We=e.data[ue];"string"==typeof We?zc(t[11],t[ue],null,We,_e,y,xe):Fi(e,We,t,_e,y,t[11],xe,!1);break;case 0:const ct=t[ue];null!==ct&&tp(t[11],ct,y);break;case 2:DT(e,ua(e,ue),t,y);break;case 3:Kg(e,ua(e,ue),i,t)}}}}else{const y=n[s+1];if(y>0&&3==(3&y)){const V=ua(e,y>>>2);t[V.currentCaseLViewIndex]<0&&Kg(e,V,i,t)}}s+=u}}function Kg(e,t,n,i){let r=i[t.currentCaseLViewIndex];if(null!==r){let s=da;r<0&&(r=i[t.currentCaseLViewIndex]=~r,s=-1),Wg(e,i,t.update[r],n,s)}}function DT(e,t,n,i){const r=function(e,t){let n=e.cases.indexOf(t);if(-1===n)switch(e.type){case 1:{const i=function(e,t){const n=Rg(t)(parseInt(e,10)),i=uT[n];return void 0!==i?i:"other"}(t,Ng);n=e.cases.indexOf(i),-1===n&&"other"!==i&&(n=e.cases.indexOf("other"));break}case 0:n=e.cases.indexOf("other")}return-1===n?null:n}(t,i);if(bl(t,n)!==r&&(Gg(e,t,n),n[t.currentCaseLViewIndex]=null===r?null:~r,null!==r)){const c=n[t.anchorIdx];c&&zg(e,t.create[r],n,c)}}function Gg(e,t,n){let i=bl(t,n);if(null!==i){const r=t.remove[i];for(let s=0;s<r.length;s++){const c=r[s];if(c>0){const u=Qe(c,n);null!==u&&fp(n[11],u)}else Gg(e,ua(e,~c),n)}}}function wT(){const e=[];let n,i,t=-1;function s(u,y){t=0;const A=bl(u,y);i=null!==A?u.remove[A]:Lt}function c(){if(t<i.length){const u=i[t++];return u>0?n[u]:(e.push(t,i),s(n[1].data[~u],n),c())}return 0===e.length?null:(i=e.pop(),t=e.pop(),c())}return function(u,y){for(n=y;e.length;)e.pop();return s(u.value,y),c}}const Cl=/\ufffd(\d+):?\d*\ufffd/gi,MT=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,ST=/\ufffd(\d+)\ufffd/,Yg=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,IT=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,PT=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,AT=/\uE500/g;function Jg(e,t,n,i,r,s,c){const u=ns(e,i,1,null);let y=u<<Vn.SHIFT,A=yo();t===A&&(A=null),null===A&&(y|=Vn.APPEND_EAGERLY),c&&(y|=Vn.COMMENT,function(e){void 0===yc&&(yc=e())}(wT)),r.push(y,null===s?"":s);const V=Vc(e,u,c?32:1,null===s?"":s,null);Bg(n,V);const ue=V.index;return Vi(V,!1),null!==A&&t!==A&&function(e,t){let n=e.insertBeforeIndex;null===n?(dp(Lg,jg),n=e.insertBeforeIndex=[null,t]):(function(e,t,n){e!=t&&ut(n,e,t,"==")}(Array.isArray(n),!0,"Expecting array here"),n.push(t))}(A,ue),V}function RT(e,t,n,i,r,s,c){const u=c.match(Cl),y=Jg(e,t,n,s,i,u?null:c,!1);u&&vs(r,c,y.index,null,0,null)}function vs(e,t,n,i,r,s){const c=e.length,u=c+1;e.push(null,null);const y=c+2,A=t.split(Cl);let V=0;for(let ue=0;ue<A.length;ue++){const _e=A[ue];if(1&ue){const xe=r+parseInt(_e,10);e.push(-1-xe),V|=Zg(xe)}else""!==_e&&e.push(_e)}return e.push(n<<2|(i?1:0)),i&&e.push(i,s),e[c]=V,e[u]=e.length-y,V}function FT(e){let t=0;for(let n=0;n<e.length;n++){const i=e[n];"number"==typeof i&&i<0&&t++}return t}function Zg(e){return 1<<Math.min(e,31)}function Xg(e){let t,s,n="",i=0,r=!1;for(;null!==(t=IT.exec(e));)r?t[0]===`\ufffd/*${s}\ufffd`&&(i=t.index,r=!1):(n+=e.substring(i,t.index+t[0].length),s=t[1],r=!0);return n+=e.substr(i),n}function qg(e,t,n,i,r,s){let c=0;const u={type:r.type,currentCaseLViewIndex:ns(e,t,1,null),anchorIdx:s,cases:[],create:[],remove:[],update:[]};(function(e,t,n){e.push(Zg(t.mainBinding),2,-1-t.mainBinding,n<<2|2)})(n,r,s),function(e,t,n){const i=e.data[t];null===i?e.data[t]=n:i.value=n}(e,s,u);const y=r.values;for(let A=0;A<y.length;A++){const V=y[A],ue=[];for(let _e=0;_e<V.length;_e++){const xe=V[_e];if("string"!=typeof xe){const We=ue.push(xe)-1;V[_e]=`\x3c!--\ufffd${We}\ufffd--\x3e`}}c=BT(e,u,t,n,i,r.cases[A],V.join(""),ue)|c}c&&function(e,t,n){e.push(t,1,n<<2|3)}(n,c,s)}function jT(e){const t=[],n=[];let i=1,r=0;const s=hd(e=e.replace(Yg,function(c,u,y){return i="select"===y?0:1,r=parseInt(u.substr(1),10),""}));for(let c=0;c<s.length;){let u=s[c++].trim();1===i&&(u=u.replace(/\s*(?:=)?(\w+)\s*/,"$1")),u.length&&t.push(u);const y=hd(s[c++]);t.length>n.length&&n.push(y)}return{type:i,mainBinding:r,cases:t,values:n}}function hd(e){if(!e)return[];let t=0;const n=[],i=[],r=/[{}]/g;let s;for(r.lastIndex=0;s=r.exec(e);){const u=s.index;if("}"==s[0]){if(n.pop(),0==n.length){const y=e.substring(t,u);Yg.test(y)?i.push(jT(y)):i.push(y),t=u+1}}else{if(0==n.length){const y=e.substring(t,u);i.push(y),t=u+1}n.push("{")}}const c=e.substring(t);return i.push(c),i}function BT(e,t,n,i,r,s,c,u){const y=[],A=[],V=[];t.cases.push(s),t.create.push(y),t.remove.push(A),t.update.push(V);const _e=bf(Tr()).getInertBodyElement(c),xe=hc(_e)||_e;return xe?e_(e,t,n,i,y,A,V,xe,r,u,0):0}function e_(e,t,n,i,r,s,c,u,y,A,V){let ue=0,_e=u.firstChild;for(;_e;){const xe=ns(e,n,1,null);switch(_e.nodeType){case Node.ELEMENT_NODE:const We=_e,ct=We.tagName.toLowerCase();if(cc.hasOwnProperty(ct)){fd(r,_l,ct,y,xe),e.data[xe]=ct;const zt=We.attributes;for(let Xt=0;Xt<zt.length;Xt++){const gn=zt.item(Xt),Xn=gn.name.toLowerCase();gn.value.match(Cl)?wf.hasOwnProperty(Xn)&&vs(c,gn.value,xe,gn.name,0,uc[Xn]?Ks:dc[Xn]?Cf:null):UT(r,xe,gn)}ue=e_(e,t,n,i,r,s,c,_e,xe,A,V+1)|ue,t_(s,xe,V)}break;case Node.TEXT_NODE:const it=_e.textContent||"",Ot=it.match(Cl);fd(r,null,Ot?"":it,y,xe),t_(s,xe,V),Ot&&(ue=vs(c,it,xe,null,0,null)|ue);break;case Node.COMMENT_NODE:const Dt=ST.exec(_e.textContent||"");if(Dt){const Xt=A[parseInt(Dt[1],10)];fd(r,yl,"",y,xe),qg(e,n,i,y,Xt,xe),VT(s,xe,V)}}_e=_e.nextSibling}return ue}function t_(e,t,n){0===n&&e.push(t)}function VT(e,t,n){0===n&&(e.push(~t),e.push(t))}function fd(e,t,n,i,r){null!==t&&e.push(t),e.push(n,r,function(e,t,n){return 0|t<<17|n<<1}(0,i,r))}function UT(e,t,n){e.push(t<<1|1,n.name,n.value)}const zT=/\[(\ufffd.+?\ufffd?)\]/,WT=/\[(\ufffd.+?\ufffd?)\]|(\ufffd\/?\*\d+:\d+\ufffd)/g,KT=/({\s*)(VAR_(PLURAL|SELECT)(_\d+)?)(\s*,)/g,GT=/{([A-Z0-9_]+)}/g,QT=/\ufffdI18N_EXP_(ICU(_\d+)?)\ufffd/g,YT=/\/\*/,JT=/\d+\:(\d+)/;function i_(e,t={}){let n=e;if(zT.test(e)){const i={},r=[0];n=n.replace(WT,(s,c,u)=>{const y=c||u,A=i[y]||[];if(A.length||(y.split("|").forEach(ct=>{const it=ct.match(JT),Ot=it?parseInt(it[1],10):0,Dt=YT.test(ct);A.push([Ot,Dt,ct])}),i[y]=A),!A.length)throw new Error(`i18n postprocess: unmatched placeholder - ${y}`);const V=r[r.length-1];let ue=0;for(let ct=0;ct<A.length;ct++)if(A[ct][0]===V){ue=ct;break}const[_e,xe,We]=A[ue];return xe?r.pop():V!==_e&&r.push(_e),A.splice(ue,1),We})}return Object.keys(t).length&&(n=n.replace(KT,(i,r,s,c,u,y)=>t.hasOwnProperty(s)?`${r}${t[s]}${y}`:i),n=n.replace(GT,(i,r)=>t.hasOwnProperty(r)?t[r]:i),n=n.replace(QT,(i,r)=>{if(t.hasOwnProperty(r)){const s=t[r];if(!s.length)throw new Error(`i18n postprocess: unmatched ICU - ${i} with key: ${r}`);return s.shift()}return i})),n}function pd(e,t,n=-1){const i=pn(),r=Mt(),s=20+e,c=Kn(i.consts,t),u=yo();i.firstCreatePass&&function(e,t,n,i,r,s){const c=yo(),u=[],y=[],A=[[]],V=function(e){return e.replace(AT," ")}(r=function(e,t){if(function(e){return-1===e}(t))return Xg(e);{const n=e.indexOf(`:${t}\ufffd`)+2+t.toString().length,i=e.search(new RegExp(`\ufffd\\/\\*\\d+:${t}\ufffd`));return Xg(e.substring(n,i))}}(r,s)).split(PT);for(let ue=0;ue<V.length;ue++){let _e=V[ue];if(0==(1&ue)){const xe=hd(_e);for(let We=0;We<xe.length;We++){let ct=xe[We];if(0==(1&We)){const it=ct;""!==it&&RT(e,c,A[0],u,y,n,it)}else{const it=ct;if("object"!=typeof it)throw new Error(`Unable to parse ICU expression in "${r}" message.`);qg(e,n,y,t,it,Jg(e,c,A[0],n,u,"",!0).index)}}}else{const xe=47===_e.charCodeAt(0),ct=(_e.charCodeAt(xe?1:0),20+Number.parseInt(_e.substring(xe?2:1)));if(xe)A.shift(),Vi(yo(),!1);else{const it=yT(e,A[0],ct);A.unshift([]),Vi(it,!0)}}}e.data[i]={create:u,update:y}}(i,null===u?0:u.index,r,s,c,n);const y=i.data[s],V=op(i,u===r[6]?null:u,r);(function(e,t,n,i){const r=e[11];for(let s=0;s<t.length;s++){const c=t[s++],u=t[s],y=(c&Vn.COMMENT)===Vn.COMMENT,A=(c&Vn.APPEND_EAGERLY)===Vn.APPEND_EAGERLY,V=c>>>Vn.SHIFT;let ue=e[V];null===ue&&(ue=e[V]=y?r.createComment(u):Dc(r,u)),A&&null!==n&&wo(r,n,ue,i,!1)}})(r,y.create,V,u&&8&u.type?r[u.index]:null),nn(!0)}function md(){nn(!1)}function r_(e,t,n){pd(e,t,n),md()}function o_(e,t){const n=pn();!function(e,t,n){const r=kn().index,s=[];if(e.firstCreatePass&&null===e.data[t]){for(let c=0;c<n.length;c+=2){const u=n[c],y=n[c+1];if(""!==y){if(MT.test(y))throw new Error(`ICU expressions are not supported in attributes. Message: "${y}".`);vs(s,y,r,u,FT(s),null)}}e.data[t]=s}}(n,e+20,Kn(n.consts,t))}function gd(e){return function(e){e&&(da|=1<<Math.min(ha,31)),ha++}(fi(Mt(),bt(),e)),gd}function s_(e){!function(e,t,n){if(ha>0){const i=e.data[n];Wg(e,t,Array.isArray(i)?i:i.update,Fe()-ha-1,da)}da=0,ha=0}(pn(),Mt(),e+20)}function a_(e,t={}){return i_(e,t)}function _d(e,t,n,i,r){if(e=S(e),Array.isArray(e))for(let s=0;s<e.length;s++)_d(e[s],t,n,i,r);else{const s=pn(),c=Mt();let u=os(e)?e:S(e.provide),y=rm(e);const A=kn(),V=1048575&A.providerIndexes,ue=A.directiveStart,_e=A.providerIndexes>>20;if(os(e)||!e.multi){const xe=new Ri(y,r,aa),We=vd(u,t,r?V:V+_e,ue);-1===We?(Wa(Hs(A,c),s,u),yd(s,e,t.length),t.push(u),A.directiveStart++,A.directiveEnd++,r&&(A.providerIndexes+=1048576),n.push(xe),c.push(xe)):(n[We]=xe,c[We]=xe)}else{const xe=vd(u,t,V+_e,ue),We=vd(u,t,V,V+_e),ct=xe>=0&&n[xe],it=We>=0&&n[We];if(r&&!it||!r&&!ct){Wa(Hs(A,c),s,u);const Ot=function(e,t,n,i,r){const s=new Ri(e,n,aa);return s.multi=[],s.index=t,s.componentProviders=0,l_(s,r,i&&!n),s}(r?qT:XT,n.length,r,i,y);!r&&it&&(n[We].providerFactory=Ot),yd(s,e,t.length,0),t.push(u),A.directiveStart++,A.directiveEnd++,r&&(A.providerIndexes+=1048576),n.push(Ot),c.push(Ot)}else yd(s,e,xe>-1?xe:We,l_(n[r?We:xe],y,!r&&i));!r&&i&&it&&n[We].componentProviders++}}}function yd(e,t,n,i){const r=os(t);if(r||function(e){return!!e.useClass}(t)){const c=(t.useClass||t).prototype.ngOnDestroy;if(c){const u=e.destroyHooks||(e.destroyHooks=[]);if(!r&&t.multi){const y=u.indexOf(n);-1===y?u.push(n,[i,c]):u[y+1].push(i,c)}else u.push(n,c)}}}function l_(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function vd(e,t,n,i){for(let r=n;r<i;r++)if(t[r]===e)return r;return-1}function XT(e,t,n,i){return bd(this.multi,[])}function qT(e,t,n,i){const r=this.multi;let s;if(this.providerFactory){const c=this.providerFactory.componentProviders,u=$s(n,n[1],this.providerFactory.index,i);s=u.slice(0,c),bd(r,s);for(let y=c;y<u.length;y++)s.push(u[y])}else s=[],bd(r,s);return s}function bd(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function c_(e,t=[]){return n=>{n.providersResolver=(i,r)=>function(e,t,n){const i=pn();if(i.firstCreatePass){const r=ni(e);_d(n,i.data,i.blueprint,r,!0),_d(t,i.data,i.blueprint,r,!1)}}(i,r?r(e):e,t)}}class Cd{}class bs{}function u_(e){const t=Error(`No component factory found for ${D(e)}. Did you add it to @NgModule.entryComponents?`);return t[d_]=e,t}const d_="ngComponent";class t0{resolveComponentFactory(t){throw u_(t)}}let Cs=(()=>{class e{}return e.NULL=new t0,e})();class n0{constructor(t,n,i){this._parent=n,this._ngModule=i,this._factories=new Map;for(let r=0;r<t.length;r++){const s=t[r];this._factories.set(s.componentType,s)}}resolveComponentFactory(t){let n=this._factories.get(t);if(!n&&this._parent&&(n=this._parent.resolveComponentFactory(t)),!n)throw u_(t);return new Ed(n,this._ngModule)}}class Ed extends bs{constructor(t,n){super(),this.factory=t,this.ngModule=n,this.selector=t.selector,this.componentType=t.componentType,this.ngContentSelectors=t.ngContentSelectors,this.inputs=t.inputs,this.outputs=t.outputs}create(t,n,i,r){return this.factory.create(t,n,i,r||this.ngModule)}}function El(...e){}function h_(){return Io(kn(),Mt())}function Io(e,t){return new cr(St(e,t))}const f_=h_,r0=f_;let cr=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=r0,e})();function p_(e){return e instanceof cr?e.nativeElement:e}class Dl{}let m_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>o0(),e})();const g_=__,o0=g_;function __(){const e=Mt(),n=bn(kn().index,e);return function(e){return e[11]}(ti(n)?n:e)}let Dd=(()=>{class e{}return e.\u0275prov=$({token:e,providedIn:"root",factory:()=>null}),e})();class y_{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Td=new y_("12.2.15");class wd{constructor(){}supports(t){return ia(t)}create(t){return new v_(t)}}const a0=(e,t)=>t;class v_{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||a0}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,i=this._removalsHead,r=0,s=null;for(;n||i;){const c=!i||n&&n.currentIndex<C_(i,r,s)?n:i,u=C_(c,r,s),y=c.currentIndex;if(c===i)r--,i=i._nextRemoved;else if(n=n._next,null==c.previousIndex)r++;else{s||(s=[]);const A=u-r,V=y-r;if(A!=V){for(let _e=0;_e<A;_e++){const xe=_e<s.length?s[_e]:s[_e]=0,We=xe+_e;V<=We&&We<A&&(s[_e]=xe+1)}s[c.previousIndex]=V-A}}u!==y&&t(c,u,y)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!ia(t))throw new Error(`Error trying to diff '${D(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,c,n=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let u=0;u<this.length;u++)s=t[u],c=this._trackByFn(u,s),null!==n&&Object.is(n.trackById,c)?(i&&(n=this._verifyReinsertion(n,s,c,u)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,c,u),i=!0),n=n._next}else r=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[ss()]();let i;for(;!(i=n.next()).done;)t(i.value)}}(t,u=>{c=this._trackByFn(r,u),null!==n&&Object.is(n.trackById,c)?(i&&(n=this._verifyReinsertion(n,u,c,r)),Object.is(n.item,u)||this._addIdentityChange(n,u)):(n=this._mismatch(n,u,c,r),i=!0),n=n._next,r++}),this.length=r;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,r)):t=this._addAfter(new l0(n,i),s,r),t}_verifyReinsertion(t,n,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,n,i),this._addToMoves(t,i),t}_moveAfter(t,n,i){return this._unlink(t),this._insertAfter(t,n,i),this._addToMoves(t,i),t}_addAfter(t,n,i){return this._insertAfter(t,n,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,i){const r=null===n?this._itHead:n._next;return t._next=r,t._prev=n,null===r?this._itTail=t:r._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new b_),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,i=t._next;return null===n?this._itHead=i:n._next=i,null===i?this._itTail=n:i._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new b_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class l0{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class c0{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===n||n<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const n=t._prevDup,i=t._nextDup;return null===n?this._head=i:n._nextDup=i,null===i?this._tail=n:i._prevDup=n,null===this._head}}class b_{constructor(){this.map=new Map}put(t){const n=t.trackById;let i=this.map.get(n);i||(i=new c0,this.map.set(n,i)),i.add(t)}get(t,n){const r=this.map.get(t);return r?r.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function C_(e,t,n){const i=e.previousIndex;if(null===i)return i;let r=0;return n&&i<n.length&&(r=n[i]),i+t+r}class Md{constructor(){}supports(t){return t instanceof Map||lu(t)}create(){return new u0}}class u0{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||lu(t)))throw new Error(`Error trying to diff '${D(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(n&&n.key===r)this._maybeAddToChanges(n,i),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(r,i);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let i=n;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const i=t._prev;return n._next=t,n._prev=i,t._prev=n,i&&(i._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,n);const s=r._prev,c=r._next;return s&&(s._next=c),c&&(c._prev=s),r._next=null,r._prev=null,r}const i=new d0(t);return this._records.set(t,i),i.currentValue=n,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(i=>n(t[i],i))}}class d0{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function Sd(){return new Tl([new wd])}let Tl=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(null!=i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Sd()),deps:[[e,new Kr,new Wr]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(null!=i)return i;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:Sd}),e})();function Id(){return new wl([new Md])}let wl=(()=>{class e{constructor(n){this.factories=n}static create(n,i){if(i){const r=i.factories.slice();n=n.concat(r)}return new e(n)}static extend(n){return{provide:e,useFactory:i=>e.create(n,i||Id()),deps:[[e,new Kr,new Wr]]}}find(n){const i=this.factories.find(r=>r.supports(n));if(i)return i;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=$({token:e,providedIn:"root",factory:Id}),e})();function Ml(e,t,n,i,r=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&i.push(v(s)),Cn(s))for(let u=10;u<s.length;u++){const y=s[u],A=y[1].firstChild;null!==A&&Ml(y[1],y,A,i)}const c=n.type;if(8&c)Ml(e,t,n.child,i);else if(32&c){const u=vc(n,t);let y;for(;y=u();)i.push(y)}else if(16&c){const u=hp(t,n);if(Array.isArray(u))i.push(...u);else{const y=Js(t[16]);Ml(y[1],y,u,i,!0)}}n=r?n.projectionNext:n.next}return i}class pa{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return Ml(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Cn(t)){const n=t[8],i=n?n.indexOf(this):-1;i>-1&&(wc(t,i),Co(n,i))}this._attachedToViewContainer=!1}ip(this._lView[1],this._lView)}onDestroy(t){jp(this._lView[1],this._lView,null,t)}markForCheck(){Kc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Qc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){me(!0);try{Qc(e,t,n)}finally{me(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Zs(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class f0 extends pa{constructor(t){super(t),this._view=t}detectChanges(){Gp(this._view)}checkNoChanges(){!function(e){me(!0);try{Gp(e)}finally{me(!1)}}(this._view)}get context(){return null}}const E_=D_,p0=E_;let Pd=(()=>{class e{}return e.__NG_ELEMENT_ID__=p0,e})();function D_(e){return function(e,t,n){if(ci(e)&&!n){const i=bn(e.index,t);return new pa(i,i)}return 47&e.type?new pa(t[16],t):null}(kn(),Mt(),16==(16&e))}const g0=[new Md],T_=new Tl([new wd]),w_=new wl(g0),M_=S_,y0=M_;let Po=(()=>{class e{}return e.__NG_ELEMENT_ID__=y0,e})();const v0=Po,b0=class extends v0{constructor(t,n,i){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=i}createEmbeddedView(t){const n=this._declarationTContainer.tViews,i=Xs(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(n)),qs(n,i,t),new pa(i)}};function S_(){return ma(kn(),Mt())}function ma(e,t){return 4&e.type?new b0(t,e,Io(e,t)):null}class uo{}class Ad{}const I_=P_,C0=I_;let ga=(()=>{class e{}return e.__NG_ELEMENT_ID__=C0,e})();function P_(){return x_(kn(),Mt())}const E0=ga,A_=class extends E0{constructor(t,n,i){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=i}get element(){return Io(this._hostTNode,this._hostLView)}get injector(){return new jo(this._hostTNode,this._hostLView)}get parentInjector(){const t=za(this._hostTNode,this._hostLView);if($h(t)){const n=Lo(t,this._hostLView),i=No(t);return new jo(n[1].data[i+8],n)}return new jo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=O_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,s){const c=i||this.parentInjector;if(!s&&null==t.ngModule&&c){const y=c.get(uo,null);y&&(s=y)}const u=t.create(c,r,void 0,s);return this.insert(u.hostView,n),u}insert(t,n){const i=t._lView,r=i[1];if(Cn(i[3])){const V=this.indexOf(t);if(-1!==V)this.detach(V);else{const ue=i[3],_e=new A_(ue,ue[6],ue[3]);_e.detach(_e.indexOf(t))}}const s=this._adjustIndex(n),c=this._lContainer;!function(e,t,n,i){const r=10+i,s=n.length;i>0&&(n[r-1][4]=t),i<s-10?(t[4]=n[r],Ya(n,10+i,t)):(n.push(t),t[4]=null),t[3]=n;const c=t[17];null!==c&&n!==c&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(c,t);const u=t[19];null!==u&&u.insertView(e),t[2]|=128}(r,i,c,s);const u=Ic(s,c),y=i[11],A=il(y,c[7]);return null!==A&&function(e,t,n,i,r,s){i[0]=r,i[6]=t,Zs(e,i,n,1,r,s)}(r,c[6],y,i,A,u),t.attachToViewContainerRef(),Ya(Od(c),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=O_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),i=wc(this._lContainer,n);i&&(Co(Od(this._lContainer),n),ip(i[1],i))}detach(t){const n=this._adjustIndex(t,-1),i=wc(this._lContainer,n);return i&&null!=Co(Od(this._lContainer),n)?new pa(i):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function O_(e){return e[8]}function Od(e){return e[8]||(e[8]=[])}function x_(e,t){let n;const i=t[e.index];if(Cn(i))n=i;else{let r;if(8&e.type)r=v(i);else{const s=t[11];r=s.createComment("");const c=St(e,t);wo(s,il(s,c),r,function(e,t){return O(e)?e.nextSibling(t):t.nextSibling}(s,c),!1)}t[e.index]=n=Kp(i,t,r,e),ul(t,n)}return new A_(n,e,t)}function R_(e,t,n,i){let r=`ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '${t}'. Current value: '${n}'.`;return i&&(r+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){const n=new Error(e);return k_(n,t),n}(r,e)}function k_(e,t){e[Vf]=t,e[Hf]=t.logError.bind(t)}function F_(e){return new Error(`ViewDestroyedError: Attempt to use a destroyed view: ${e}`)}function Sl(e,t,n){const i=e.state,r=1792&i;return r===t?(e.state=-1793&i|n,e.initIndex=-1,!0):r===n}function Il(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function _a(e,t){return e.nodes[t]}function En(e,t){return e.nodes[t]}function ho(e,t){return e.nodes[t]}function Es(e,t){return e.nodes[t]}function ya(e,t){return e.nodes[t]}class M0{}const ln={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},Yi=()=>{},xd=new Map;function ai(e){let t=xd.get(e);return t||(t=D(e)+"_"+xd.size,xd.set(e,t)),t}function S0(e,t,n,i){if(Gi.isWrapped(i)){i=Gi.unwrap(i);const r=e.def.nodes[t].bindingIndex+n,s=Gi.unwrap(e.oldValues[r]);e.oldValues[r]=new Gi(s)}return i}const N_="$$undefined",L_="$$empty";function I0(e){return{id:N_,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}let P0=0;function Ji(e,t,n,i){return!(!(2&e.state)&&Object.is(e.oldValues[t.bindingIndex+n],i))}function Nn(e,t,n,i){return!!Ji(e,t,n,i)&&(e.oldValues[t.bindingIndex+n]=i,!0)}function ur(e,t,n,i){const r=e.oldValues[t.bindingIndex+n];if(1&e.state||!au(r,i)){const s=t.bindings[n].name;throw R_(ln.createDebugContext(e,t.nodeIndex),`${s}: ${r}`,`${s}: ${i}`,0!=(1&e.state))}}function j_(e){let t=e;for(;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function O0(e,t){let n=e;for(;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function B_(e,t,n,i){try{return j_(33554432&e.def.nodes[t].flags?En(e,t).componentView:e),ln.handleEvent(e,t,n,i)}catch(r){e.root.errorHandler.handleError(r)}}function Rd(e){return e.parent?En(e.parent,e.parentNodeDef.nodeIndex):null}function Ds(e){return e.parent?e.parentNodeDef.parent:null}function va(e,t){switch(201347067&t.flags){case 1:return En(e,t.nodeIndex).renderElement;case 2:return _a(e,t.nodeIndex).renderText}}function x0(e,t){return e?`${e}:${t}`:t}function Ao(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function R0(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function V_(e){return 1<<e%32}function kd(e){const t={};let n=0;const i={};return e&&e.forEach(([r,s])=>{"number"==typeof r?(t[r]=s,n|=V_(r)):i[r]=s}),{matchedQueries:t,references:i,matchedQueryIds:n}}function ba(e,t){return e.map(n=>{let i,r;return Array.isArray(n)?[r,i]=n:(r=0,i=n),i&&("function"==typeof i||"object"==typeof i)&&t&&Object.defineProperty(i,ic,{value:t,configurable:!0}),{flags:r,token:i,tokenKey:ai(i)}})}function Fd(e,t,n){let i=n.renderParent;return i?0==(1&i.flags)||0==(33554432&i.flags)||i.element.componentRendererType&&(i.element.componentRendererType.encapsulation===re.ShadowDom||1===i.element.componentRendererType.encapsulation)?En(e,n.renderParent.nodeIndex).renderElement:void 0:t}const H_=new WeakMap;function Ts(e){let t=H_.get(e);return t||(t=e(()=>Yi),t.factory=e,H_.set(e,t)),t}function Pl(e,t,n,i,r){3===t&&(n=e.renderer.parentNode(va(e,e.def.lastRenderRootNode))),$_(e,t,0,e.def.nodes.length-1,n,i,r)}function $_(e,t,n,i,r,s,c){for(let u=n;u<=i;u++){const y=e.def.nodes[u];11&y.flags&&z_(e,y,t,r,s,c),u+=y.childCount}}function U_(e,t,n,i,r,s){let c=e;for(;c&&!Ao(c);)c=c.parent;const u=c.parent,y=Ds(c),V=y.nodeIndex+y.childCount;for(let ue=y.nodeIndex+1;ue<=V;ue++){const _e=u.def.nodes[ue];_e.ngContentIndex===t&&z_(u,_e,n,i,r,s),ue+=_e.childCount}if(!u.parent){const ue=e.root.projectableNodes[t];if(ue)for(let _e=0;_e<ue.length;_e++)Al(e,ue[_e],n,i,r,s)}}function z_(e,t,n,i,r,s){if(8&t.flags)U_(e,t.ngContent.index,n,i,r,s);else{const c=va(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&Al(e,c,n,i,r,s),32&t.bindingFlags&&Al(En(e,t.nodeIndex).componentView,c,n,i,r,s)):Al(e,c,n,i,r,s),16777216&t.flags){const u=En(e,t.nodeIndex).viewContainer._embeddedViews;for(let y=0;y<u.length;y++)Pl(u[y],n,i,r,s)}1&t.flags&&!t.element.name&&$_(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,i,r,s)}}function Al(e,t,n,i,r,s){const c=e.renderer;switch(n){case 1:c.appendChild(i,t);break;case 2:c.insertBefore(i,t,r);break;case 3:c.removeChild(i,t);break;case 0:s.push(t)}}const F0=/^:([^:]+):(.+)$/;function Nd(e){if(":"===e[0]){const t=e.match(F0);return[t[1],t[2]]}return["",e]}function Ld(e){let t=0;for(let n=0;n<e.length;n++)t|=e[n].flags;return t}function N0(e,t){let n="";for(let i=0;i<2*e;i+=2)n=n+t[i]+sn(t[i+1]);return n+t[2*e]}function L0(e,t,n,i,r,s,c,u,y,A,V,ue,_e,xe,We,ct,it,Ot,Dt,zt){switch(e){case 1:return t+sn(n)+i;case 2:return t+sn(n)+i+sn(r)+s;case 3:return t+sn(n)+i+sn(r)+s+sn(c)+u;case 4:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A;case 5:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(V)+ue;case 6:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(V)+ue+sn(_e)+xe;case 7:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(V)+ue+sn(_e)+xe+sn(We)+ct;case 8:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(V)+ue+sn(_e)+xe+sn(We)+ct+sn(it)+Ot;case 9:return t+sn(n)+i+sn(r)+s+sn(c)+u+sn(y)+A+sn(V)+ue+sn(_e)+xe+sn(We)+ct+sn(it)+Ot+sn(Dt)+zt;default:throw new Error("Does not support more than 9 expressions")}}function sn(e){return null!=e?e.toString():""}const j0={},Ca={},B0=ai(In),V0=ai(co),H0=ai(uo);function $0(e,t,n,i){return n=S(n),{index:-1,deps:ba(i,D(t)),flags:e,token:t,value:n}}function U0(e){const t={},n=[];let i=null;for(let r=0;r<e.length;r++){const s=e[r];s.token===ea&&(i=s.value),1073741824&s.flags&&n.push(s.token),s.index=r,t[ai(s.token)]=s}return{factory:null,providersByKey:t,providers:e,modules:n,scope:i}}function pi(e,t,n=In.THROW_IF_NOT_FOUND){const i=Eo(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);const r=t.tokenKey;switch(r){case B0:case V0:case H0:return e}const s=e._def.providersByKey[r];let c;if(s){let u=e._providers[s.index];return void 0===u&&(u=e._providers[s.index]=jd(e,s)),u===Ca?void 0:u}if((c=le(t.token))&&function(e,t){const n=S(t.providedIn);return null!=n&&("any"===n||n===e._def.scope||function(e,t){return e._def.modules.indexOf(t)>-1}(e,n))}(e,c)){const u=e._providers.length;return e._def.providers[u]=e._def.providersByKey[t.tokenKey]={flags:5120,value:c.factory,deps:[],index:u,token:t.token},e._providers[u]=Ca,e._providers[u]=jd(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Eo(i)}}function jd(e,t){let n;switch(201347067&t.flags){case 512:n=function(e,t,n){const i=n.length;switch(i){case 0:return new t;case 1:return new t(pi(e,n[0]));case 2:return new t(pi(e,n[0]),pi(e,n[1]));case 3:return new t(pi(e,n[0]),pi(e,n[1]),pi(e,n[2]));default:const r=[];for(let s=0;s<i;s++)r[s]=pi(e,n[s]);return new t(...r)}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){const i=n.length;switch(i){case 0:return t();case 1:return t(pi(e,n[0]));case 2:return t(pi(e,n[0]),pi(e,n[1]));case 3:return t(pi(e,n[0]),pi(e,n[1]),pi(e,n[2]));default:const r=[];for(let s=0;s<i;s++)r[s]=pi(e,n[s]);return t(...r)}}(e,t.value,t.deps);break;case 2048:n=pi(e,t.deps[0]);break;case 256:n=t.value}return n!==Ca&&null!==n&&"object"==typeof n&&!(131072&t.flags)&&"function"==typeof n.ngOnDestroy&&(t.flags|=131072),void 0===n?Ca:n}function Bd(e,t){const n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;const i=n[t];return i.viewContainerParent=null,Co(n,t),ln.dirtyParentQueries(i),Vd(i),i}function W_(e,t,n){const i=t?va(t,t.def.lastRenderRootNode):e.renderElement,r=n.renderer.parentNode(i),s=n.renderer.nextSibling(i);Pl(n,2,r,s,void 0)}function Vd(e){Pl(e,3,null,null,void 0)}const tw={};function nw(e,t,n,i,r,s){return new iw(e,t,n,i,r,s)}function K_(e){return e.viewDefFactory}class iw extends bs{constructor(t,n,i,r,s,c){super(),this.selector=t,this.componentType=n,this._inputs=r,this._outputs=s,this.ngContentSelectors=c,this.viewDefFactory=i}get inputs(){const t=[],n=this._inputs;for(let i in n)t.push({propName:i,templateName:n[i]});return t}get outputs(){const t=[];for(let n in this._outputs)t.push({propName:n,templateName:this._outputs[n]});return t}create(t,n,i,r){if(!r)throw new Error("ngModule should be provided");const s=Ts(this.viewDefFactory),c=s.nodes[0].element.componentProvider.nodeIndex,u=ln.createRootView(t,n||[],i,s,r,tw),y=ho(u,c).instance;return i&&u.renderer.setAttribute(En(u,0).renderElement,"ng-version",Td.full),new rw(u,new Ea(u),y)}}class rw extends Cd{constructor(t,n,i){super(),this._view=t,this._viewRef=n,this._component=i,this._elDef=this._view.def.nodes[0],this.hostView=n,this.changeDetectorRef=n,this.instance=i}get location(){return new cr(En(this._view,this._elDef.nodeIndex).renderElement)}get injector(){return new Da(this._view,this._elDef)}get componentType(){return this._component.constructor}destroy(){this._viewRef.destroy()}onDestroy(t){this._viewRef.onDestroy(t)}}function ow(e,t,n){return new sw(e,t,n)}class sw{constructor(t,n,i){this._view=t,this._elDef=n,this._data=i,this._embeddedViews=[]}get element(){return new cr(this._data.renderElement)}get injector(){return new Da(this._view,this._elDef)}get parentInjector(){let t=this._view,n=this._elDef.parent;for(;!n&&t;)n=Ds(t),t=t.parent;return t?new Da(t,n):new Da(this._view,null)}clear(){for(let n=this._embeddedViews.length-1;n>=0;n--){const i=Bd(this._data,n);ln.destroyView(i)}}get(t){const n=this._embeddedViews[t];if(n){const i=new Ea(n);return i.attachToViewContainerRef(this),i}return null}get length(){return this._embeddedViews.length}createEmbeddedView(t,n,i){const r=t.createEmbeddedView(n||{});return this.insert(r,i),r}createComponent(t,n,i,r,s){const c=i||this.parentInjector;!s&&!(t instanceof Ed)&&(s=c.get(uo));const u=t.create(c,r,void 0,s);return this.insert(u.hostView,n),u}insert(t,n){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");const i=t;return function(e,t,n,i){let r=t.viewContainer._embeddedViews;null==n&&(n=r.length),i.viewContainerParent=e,Ya(r,n,i),function(e,t){const n=Rd(t);if(!n||n===e||16&t.state)return;t.state|=16;let i=n.template._projectedViews;i||(i=n.template._projectedViews=[]),i.push(t),function(e,t){if(4&t.flags)return;e.nodeFlags|=4,t.flags|=4;let n=t.parent;for(;n;)n.childFlags|=4,n=n.parent}(t.parent.def,t.parentNodeDef)}(t,i),ln.dirtyParentQueries(i),W_(t,n>0?r[n-1]:null,i)}(this._view,this._data,n,i._view),i.attachToViewContainerRef(this),t}move(t,n){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");const i=this._embeddedViews.indexOf(t._view);return function(e,t,n){const i=e.viewContainer._embeddedViews,r=i[t];Co(i,t),null==n&&(n=i.length),Ya(i,n,r),ln.dirtyParentQueries(r),Vd(r),W_(e,n>0?i[n-1]:null,r)}(this._data,i,n),t}indexOf(t){return this._embeddedViews.indexOf(t._view)}remove(t){const n=Bd(this._data,t);n&&ln.destroyView(n)}detach(t){const n=Bd(this._data,t);return n?new Ea(n):null}}function aw(e){return new Ea(e)}class Ea{constructor(t){this._view=t,this._viewContainerRef=null,this._appRef=null}get rootNodes(){return function(e){const t=[];return Pl(e,0,void 0,void 0,t),t}(this._view)}get context(){return this._view.context}set context(t){this._view.context=t}get destroyed(){return 0!=(128&this._view.state)}markForCheck(){j_(this._view)}detach(){this._view.state&=-5}detectChanges(){const t=this._view.root.rendererFactory;t.begin&&t.begin();try{ln.checkAndUpdateView(this._view)}finally{t.end&&t.end()}}checkNoChanges(){ln.checkNoChangesView(this._view)}reattach(){this._view.state|=4}onDestroy(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)}destroy(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ln.destroyView(this._view)}detachFromAppRef(){this._appRef=null,Vd(this._view),ln.dirtyParentQueries(this._view)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}}function lw(e,t){return new cw(e,t)}class cw extends Po{constructor(t,n){super(),this._parentView=t,this._def=n}createEmbeddedView(t){return new Ea(ln.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))}get elementRef(){return new cr(En(this._parentView,this._def.nodeIndex).renderElement)}}function G_(e,t){return new Da(e,t)}class Da{constructor(t,n){this.view=t,this.elDef=n}get(t,n=In.THROW_IF_NOT_FOUND){return ln.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:ai(t)},n)}}function uw(e,t){const n=e.def.nodes[t];if(1&n.flags){const i=En(e,n.nodeIndex);return n.element.template?i.template:i.renderElement}if(2&n.flags)return _a(e,n.nodeIndex).renderText;if(20240&n.flags)return ho(e,n.nodeIndex).instance;throw new Error(`Illegal state: read nodeValue for node index ${t}`)}function Q_(e,t,n,i){return new dw(e,t,n,i)}class dw{constructor(t,n,i,r){this._moduleType=t,this._parent=n,this._bootstrapComponents=i,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){const t=e._def,n=e._providers=oo(t.providers.length);for(let i=0;i<t.providers.length;i++){const r=t.providers[i];4096&r.flags||void 0===n[i]&&(n[i]=jd(e,r))}}(this)}get(t,n=In.THROW_IF_NOT_FOUND,i=q.Default){let r=0;return i&q.SkipSelf?r|=1:i&q.Self&&(r|=4),pi(this,{token:t,tokenKey:ai(t),flags:r},n)}get instance(){return this.get(this._moduleType)}get componentFactoryResolver(){return this.get(Cs)}destroy(){if(this._destroyed)throw new Error(`The ng module ${D(this.instance.constructor)} has already been destroyed.`);this._destroyed=!0,function(e,t){const n=e._def,i=new Set;for(let r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){const c=e._providers[r];if(c&&c!==Ca){const u=c.ngOnDestroy;"function"==typeof u&&!i.has(c)&&(u.apply(c),i.add(c))}}}(this),this._destroyListeners.forEach(t=>t())}onDestroy(t){this._destroyListeners.push(t)}}const hw=ai(m_),fw=ai(cr),pw=ai(ga),mw=ai(Po),Y_=ai(Pd),gw=ai(In),_w=ai(co);function yw(e,t,n,i,r,s,c,u){const y=[];if(c)for(let V in c){const[ue,_e]=c[V];y[ue]={flags:8,name:V,nonMinifiedName:_e,ns:null,securityContext:null,suffix:null}}const A=[];if(u)for(let V in u)A.push({type:1,propName:V,target:null,eventName:u[V]});return Ol(e,t|=16384,n,i,r,r,s,y,A)}function vw(e,t,n){return Ol(-1,e|=16,null,0,t,t,n)}function bw(e,t,n,i,r){return Ol(-1,e,t,0,n,i,r)}function Ol(e,t,n,i,r,s,c,u,y){const{matchedQueries:A,references:V,matchedQueryIds:ue}=kd(n);y||(y=[]),u||(u=[]),s=S(s);const _e=ba(c,D(r));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:A,matchedQueryIds:ue,references:V,ngContentIndex:-1,childCount:i,bindings:u,bindingFlags:Ld(u),outputs:y,element:null,provider:{token:r,value:s,deps:_e},text:null,query:null,ngContent:null}}function Cw(e,t){return J_(e,t)}function Ew(e,t){let n=e;for(;n.parent&&!Ao(n);)n=n.parent;return Hd(n.parent,Ds(n),!0,t.provider.value,t.provider.deps)}function Dw(e,t){const i=Hd(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(let r=0;r<t.outputs.length;r++){const s=t.outputs[r],c=i[s.propName];if(!Pu(c))throw new Error(`@Output ${s.propName} not initialized in '${i.constructor.name}'.`);{const u=c.subscribe(Tw(e,t.parent.nodeIndex,s.eventName));e.disposables[t.outputIndex+r]=u.unsubscribe.bind(u)}}return i}function Tw(e,t,n){return i=>B_(e,t,n,i)}function J_(e,t){const n=(8192&t.flags)>0,i=t.provider;switch(201347067&t.flags){case 512:return Hd(e,t.parent,n,i.value,i.deps);case 1024:return function(e,t,n,i,r){const s=r.length;switch(s){case 0:return i();case 1:return i(mi(e,t,n,r[0]));case 2:return i(mi(e,t,n,r[0]),mi(e,t,n,r[1]));case 3:return i(mi(e,t,n,r[0]),mi(e,t,n,r[1]),mi(e,t,n,r[2]));default:const c=[];for(let u=0;u<s;u++)c.push(mi(e,t,n,r[u]));return i(...c)}}(e,t.parent,n,i.value,i.deps);case 2048:return mi(e,t.parent,n,i.deps[0]);case 256:return i.value}}function Hd(e,t,n,i,r){const s=r.length;switch(s){case 0:return new i;case 1:return new i(mi(e,t,n,r[0]));case 2:return new i(mi(e,t,n,r[0]),mi(e,t,n,r[1]));case 3:return new i(mi(e,t,n,r[0]),mi(e,t,n,r[1]),mi(e,t,n,r[2]));default:const c=[];for(let u=0;u<s;u++)c.push(mi(e,t,n,r[u]));return new i(...c)}}const Oo={};function mi(e,t,n,i,r=In.THROW_IF_NOT_FOUND){if(8&i.flags)return i.token;const s=e;2&i.flags&&(r=null);const c=i.tokenKey;c===Y_&&(n=!(!t||!t.element.componentView)),t&&1&i.flags&&(n=!1,t=t.parent);let u=e;for(;u;){if(t)switch(c){case hw:return Z_(u,t,n).renderer;case fw:return new cr(En(u,t.nodeIndex).renderElement);case pw:return En(u,t.nodeIndex).viewContainer;case mw:if(t.element.template)return En(u,t.nodeIndex).template;break;case Y_:return aw(Z_(u,t,n));case gw:case _w:return G_(u,t);default:const A=(n?t.element.allProviders:t.element.publicProviders)[c];if(A){let V=ho(u,A.nodeIndex);return V||(V={instance:J_(u,A)},u.nodes[A.nodeIndex]=V),V.instance}}n=Ao(u),t=Ds(u),u=u.parent,4&i.flags&&(u=null)}const y=s.root.injector.get(i.token,Oo);return y!==Oo||r===Oo?y:s.root.ngModule.injector.get(i.token,r)}function Z_(e,t,n){let i;if(n)i=En(e,t.nodeIndex).componentView;else for(i=e;i.parent&&!Ao(i);)i=i.parent;return i}function dr(e,t,n,i,r,s){if(32768&n.flags){const y=En(e,n.parent.nodeIndex).componentView;2&y.def.flags&&(y.state|=8)}if(t.instance[n.bindings[i].name]=r,524288&n.flags){s=s||{};const y=Gi.unwrap(e.oldValues[n.bindingIndex+i]);s[n.bindings[i].nonMinifiedName]=new er(y,r,0!=(2&e.state))}return e.oldValues[n.bindingIndex+i]=r,s}function $d(e,t){if(!(e.def.nodeFlags&t))return;const n=e.def.nodes;let i=0;for(let r=0;r<n.length;r++){const s=n[r];let c=s.parent;for(!c&&s.flags&t&&X_(e,r,s.flags&t,i++),0==(s.childFlags&t)&&(r+=s.childCount);c&&1&c.flags&&r===c.nodeIndex+c.childCount;)c.directChildFlags&t&&(i=Iw(e,c,t,i)),c=c.parent}}function Iw(e,t,n,i){for(let r=t.nodeIndex+1;r<=t.nodeIndex+t.childCount;r++){const s=e.def.nodes[r];s.flags&n&&X_(e,r,s.flags&n,i++),r+=s.childCount}return i}function X_(e,t,n,i){const r=ho(e,t);if(!r)return;const s=r.instance;!s||(ln.setCurrentNode(e,t),1048576&n&&Il(e,512,i)&&s.ngAfterContentInit(),2097152&n&&s.ngAfterContentChecked(),4194304&n&&Il(e,768,i)&&s.ngAfterViewInit(),8388608&n&&s.ngAfterViewChecked(),131072&n&&s.ngOnDestroy())}class q_ extends Cs{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=an(t);return new Ud(n,this.ngModule)}}function ey(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const ty=new jn("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Gf});class Ud extends bs{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(JC).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return ey(this.componentDef.inputs)}get outputs(){return ey(this.componentDef.outputs)}create(t,n,i,r){const s=(r=r||this.ngModule)?function(e,t){return{get:(n,i,r)=>{const s=e.get(n,Oo,r);return s!==Oo||i===Oo?s:t.get(n,i,r)}}}(t,r.injector):t,c=s.get(Dl,k),u=s.get(Dd,null),y=c.createRenderer(null,this.componentDef),A=this.componentDef.selectors[0][0]||"div",V=i?Lp(y,i,this.componentDef.encapsulation):Tc(c.createRenderer(null,this.componentDef),A,function(e){const t=e.toLowerCase();return"svg"===t?Cr:"math"===t?no:null}(A)),ue=this.componentDef.onPush?576:528,_e=Em(),xe=cl(0,null,null,1,0,null,null,null,null,null),We=Xs(null,xe,_e,ue,null,null,c,y,u,s);let ct,it;nr(We);try{const Ot=bm(V,this.componentDef,We,c,y);if(V)if(i)Ha(y,V,["ng-version",Td.full]);else{const{attrs:Dt,classes:zt}=function(e){const t=[],n=[];let i=1,r=2;for(;i<e.length;){let s=e[i];if("string"==typeof s)2===r?""!==s&&t.push(s,e[++i]):8===r&&n.push(s);else{if(!rr(r))break;r=s}i++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);Dt&&Ha(y,V,Dt),zt&&zt.length>0&&Ac(y,V,zt.join(" "))}if(it=fn(xe,20),void 0!==n){const Dt=it.projection=[];for(let zt=0;zt<this.ngContentSelectors.length;zt++){const Xt=n[zt];Dt.push(null!=Xt?Array.from(Xt):null)}}ct=Cm(Ot,this.componentDef,We,_e,[Dm]),qs(xe,We,null)}finally{Ei()}return new ny(this.componentType,ct,Io(it,We),We,it)}}class ny extends Cd{constructor(t,n,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new f0(r),this.componentType=t}get injector(){return new jo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function iy(e,t,n,i){return F(()=>{const r=e;null!==t&&(r.hasOwnProperty("decorators")&&void 0!==r.decorators?r.decorators.push(...t):r.decorators=t),null!==n&&(r.ctorParameters=n),null!==i&&(r.propDecorators=r.hasOwnProperty("propDecorators")&&void 0!==r.propDecorators?Object.assign(Object.assign({},r.propDecorators),i):i)})}const ws=new Map;function xw(e,t){const n=ws.get(e);ry(e,n&&n.moduleType,t.moduleType),ws.set(e,t)}function ry(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${D(t)} vs ${D(t.name)}`)}function oy(e){const t=new Set;!function n(i){const r=yn(i,!0),s=r.id;if(null!==s){ry(s,ws.get(s),i),ws.set(s,i)}const c=Sr(r.imports);for(const u of c)t.has(u)||(t.add(u),n(u))}(e)}function sy(e){return ws.get(e)||oe[e]}class ay extends uo{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new q_(this);const i=yn(t),r=t[B]||null;r&&vl(r),this._bootstrapComponents=Sr(i.bootstrap),this._r3Injector=im(t,n,[{provide:uo,useValue:this},{provide:Cs,useValue:this.componentFactoryResolver}],D(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=In.THROW_IF_NOT_FOUND,i=q.Default){return t===In||t===uo||t===co?this:this._r3Injector.get(t,n,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class xl extends Ad{constructor(t){super(),this.moduleType=t,null!==yn(t)&&oy(t)}create(t){return new ay(this.moduleType,t)}}function ly(e,t,n){const i=Te()+e,r=Mt();return r[i]===on?Ar(r,i,n?t.call(n):t()):ra(r,i)}function cy(e,t,n,i){return zd(Mt(),Te(),e,t,n,i)}function uy(e,t,n,i,r){return Wd(Mt(),Te(),e,t,n,i,r)}function dy(e,t,n,i,r,s){return Kd(Mt(),Te(),e,t,n,i,r,s)}function hy(e,t,n,i,r,s,c){return Gd(Mt(),Te(),e,t,n,i,r,s,c)}function fy(e,t,n,i,r,s,c,u){const y=Te()+e,A=Mt(),V=Qi(A,y,n,i,r,s);return fi(A,y+4,c)||V?Ar(A,y+5,u?t.call(u,n,i,r,s,c):t(n,i,r,s,c)):ra(A,y+5)}function py(e,t,n,i,r,s,c,u,y){const A=Te()+e,V=Mt(),ue=Qi(V,A,n,i,r,s);return Mo(V,A+4,c,u)||ue?Ar(V,A+6,y?t.call(y,n,i,r,s,c,u):t(n,i,r,s,c,u)):ra(V,A+6)}function my(e,t,n,i,r,s,c,u,y,A){const V=Te()+e,ue=Mt();let _e=Qi(ue,V,n,i,r,s);return fl(ue,V+4,c,u,y)||_e?Ar(ue,V+7,A?t.call(A,n,i,r,s,c,u,y):t(n,i,r,s,c,u,y)):ra(ue,V+7)}function gy(e,t,n,i,r,s,c,u,y,A,V){const ue=Te()+e,_e=Mt(),xe=Qi(_e,ue,n,i,r,s);return Qi(_e,ue+4,c,u,y,A)||xe?Ar(_e,ue+8,V?t.call(V,n,i,r,s,c,u,y,A):t(n,i,r,s,c,u,y,A)):ra(_e,ue+8)}function _y(e,t,n,i){return Qd(Mt(),Te(),e,t,n,i)}function Ta(e,t){const n=e[t];return n===on?void 0:n}function zd(e,t,n,i,r,s){const c=t+n;return fi(e,c,r)?Ar(e,c+1,s?i.call(s,r):i(r)):Ta(e,c+1)}function Wd(e,t,n,i,r,s,c){const u=t+n;return Mo(e,u,r,s)?Ar(e,u+2,c?i.call(c,r,s):i(r,s)):Ta(e,u+2)}function Kd(e,t,n,i,r,s,c,u){const y=t+n;return fl(e,y,r,s,c)?Ar(e,y+3,u?i.call(u,r,s,c):i(r,s,c)):Ta(e,y+3)}function Gd(e,t,n,i,r,s,c,u,y){const A=t+n;return Qi(e,A,r,s,c,u)?Ar(e,A+4,y?i.call(y,r,s,c,u):i(r,s,c,u)):Ta(e,A+4)}function Qd(e,t,n,i,r,s){let c=t+n,u=!1;for(let y=0;y<r.length;y++)fi(e,c++,r[y])&&(u=!0);return u?Ar(e,c,i.apply(s,r)):Ta(e,c)}function yy(e,t){const n=pn();let i;const r=e+20;n.firstCreatePass?(i=function(e,t){if(t)for(let n=t.length-1;n>=0;n--){const i=t[n];if(e===i.name)return i}throw new j("302",`The pipe '${e}' could not be found!`)}(t,n.pipeRegistry),n.data[r]=i,i.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(r,i.onDestroy)):i=n.data[r];const s=i.factory||(i.factory=yi(i.type)),c=vt(aa);try{const u=Ua(!1),y=s();return Ua(u),Sm(n,Mt(),r,y),y}finally{vt(c)}}function vy(e,t,n){const i=e+20,r=Mt(),s=rn(r,i);return Ma(r,wa(r,i)?zd(r,Te(),t,s.transform,n,s):s.transform(n))}function by(e,t,n,i){const r=e+20,s=Mt(),c=rn(s,r);return Ma(s,wa(s,r)?Wd(s,Te(),t,c.transform,n,i,c):c.transform(n,i))}function Cy(e,t,n,i,r){const s=e+20,c=Mt(),u=rn(c,s);return Ma(c,wa(c,s)?Kd(c,Te(),t,u.transform,n,i,r,u):u.transform(n,i,r))}function Ey(e,t,n,i,r,s){const c=e+20,u=Mt(),y=rn(u,c);return Ma(u,wa(u,c)?Gd(u,Te(),t,y.transform,n,i,r,s,y):y.transform(n,i,r,s))}function Dy(e,t,n){const i=e+20,r=Mt(),s=rn(r,i);return Ma(r,wa(r,i)?Qd(r,Te(),t,s.transform,n,s):s.transform.apply(s,n))}function wa(e,t){return e[1].data[t].pure}function Ma(e,t){return Gi.isWrapped(t)&&(t=Gi.unwrap(t),e[Fe()]=on),t}function Yd(e){return t=>{setTimeout(e,void 0,t)}}const xr=class extends o.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,i){var r,s,c;let u=t,y=n||(()=>null),A=i;if(t&&"object"==typeof t){const ue=t;u=null===(r=ue.next)||void 0===r?void 0:r.bind(ue),y=null===(s=ue.error)||void 0===s?void 0:s.bind(ue),A=null===(c=ue.complete)||void 0===c?void 0:c.bind(ue)}this.__isAsync&&(y=Yd(y),u&&(u=Yd(u)),A&&(A=Yd(A)));const V=super.subscribe({next:u,error:y,complete:A});return t instanceof l.w&&t.add(V),V}};function Fw(){return this._results[ss()]()}class Sa{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=ss(),i=Sa.prototype;i[n]||(i[n]=Fw)}get changes(){return this._changes||(this._changes=new xr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const i=this;i.dirty=!1;const r=zi(t);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++){let r=e[i],s=t[i];if(n&&(r=n(r),s=n(s)),s!==r)return!1}return!0}(i._results,r,n))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;class Jd{constructor(t){this.queryList=t,this.matches=null}clone(){return new Jd(this.queryList)}setDirty(){this.queryList.setDirty()}}class Zd{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const i=null!==t.contentQueries?t.contentQueries[0]:n.length,r=[];for(let s=0;s<i;s++){const c=n.getByIndex(s);r.push(this.queries[c.indexInDeclarationView].clone())}return new Zd(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==xy(t,n).matches&&this.queries[n].setDirty()}}class Ty{constructor(t,n,i=null){this.predicate=t,this.flags=n,this.read=i}}class Xd{constructor(t=[]){this.queries=t}elementStart(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let i=0;i<this.length;i++){const r=null!==n?n.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==n?n.push(s):n=[s])}return null!==n?new Xd(n):null}template(t,n){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class qd{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new qd(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==n;)i=i.parent;return n===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,n,jw(n,s)),this.matchTNodeWithReadOption(t,n,Ka(n,t,s,!1,!1))}else i===Po?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Ka(n,t,i,!1,!1))}matchTNodeWithReadOption(t,n,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===cr||r===ga||r===Po&&4&n.type)this.addMatch(n.index,-2);else{const s=Ka(n,t,r,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,i)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function jw(e,t){const n=e.localNames;if(null!==n)for(let i=0;i<n.length;i+=2)if(n[i]===t)return n[i+1];return null}function Vw(e,t,n,i){return-1===n?function(e,t){return 11&e.type?Io(e,t):4&e.type?ma(e,t):null}(t,e):-2===n?function(e,t,n){return n===cr?Io(t,e):n===Po?ma(t,e):n===ga?x_(t,e):void 0}(e,t,i):$s(e,e[1],n,t)}function wy(e,t,n,i){const r=t[19].queries[i];if(null===r.matches){const s=e.data,c=n.matches,u=[];for(let y=0;y<c.length;y+=2){const A=c[y];u.push(A<0?null:Vw(t,s[A],c[y+1],n.metadata.read))}r.matches=u}return r.matches}function eh(e,t,n,i){const r=e.queries.getByIndex(n),s=r.matches;if(null!==s){const c=wy(e,t,r,n);for(let u=0;u<s.length;u+=2){const y=s[u];if(y>0)i.push(c[u/2]);else{const A=s[u+1],V=t[-y];for(let ue=10;ue<V.length;ue++){const _e=V[ue];_e[17]===_e[3]&&eh(_e[1],_e,A,i)}if(null!==V[9]){const ue=V[9];for(let _e=0;_e<ue.length;_e++){const xe=ue[_e];eh(xe[1],xe,A,i)}}}}}return i}function My(e){const t=Mt(),n=pn(),i=Pn();An(i+1);const r=xy(n,i);if(e.dirty&&Tn(t)===(2==(2&r.metadata.flags))){if(null===r.matches)e.reset([]);else{const s=r.crossesNgTemplate?eh(n,t,i,[]):wy(n,t,r,i);e.reset(s,p_),e.notifyOnChanges()}return!0}return!1}function Sy(e,t,n){const i=pn();i.firstCreatePass&&(Oy(i,new Ty(e,t,n),-1),2==(2&t)&&(i.staticViewQueries=!0)),Ay(i,Mt(),t)}function Iy(e,t,n,i){const r=pn();if(r.firstCreatePass){const s=kn();Oy(r,new Ty(t,n,i),s.index),function(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(r,e),2==(2&n)&&(r.staticContentQueries=!0)}Ay(r,Mt(),n)}function Py(){return e=Mt(),t=Pn(),e[19].queries[t].queryList;var e,t}function Ay(e,t,n){const i=new Sa(4==(4&n));jp(e,t,i,i.destroy),null===t[19]&&(t[19]=new Zd),t[19].queries.push(new Jd(i))}function Oy(e,t,n){null===e.queries&&(e.queries=new Xd),e.queries.track(new qd(t,n))}function xy(e,t){return e.queries.getByIndex(t)}function Ry(e,t){return ma(e,t)}const vi=(()=>({\u0275\u0275attribute:cu,\u0275\u0275attributeInterpolate1:uu,\u0275\u0275attributeInterpolate2:du,\u0275\u0275attributeInterpolate3:hu,\u0275\u0275attributeInterpolate4:fu,\u0275\u0275attributeInterpolate5:pu,\u0275\u0275attributeInterpolate6:mu,\u0275\u0275attributeInterpolate7:gu,\u0275\u0275attributeInterpolate8:_u,\u0275\u0275attributeInterpolateV:yu,\u0275\u0275defineComponent:Ee,\u0275\u0275defineDirective:dn,\u0275\u0275defineInjectable:$,\u0275\u0275defineInjector:H,\u0275\u0275defineNgModule:st,\u0275\u0275definePipe:cn,\u0275\u0275directiveInject:aa,\u0275\u0275getInheritedFactory:Xh,\u0275\u0275inject:$n,\u0275\u0275injectAttribute:Xl,\u0275\u0275invalidFactory:zm,\u0275\u0275invalidFactoryDep:oc,\u0275\u0275templateRefExtractor:Ry,\u0275\u0275NgOnChangesFeature:Mi,\u0275\u0275ProvidersFeature:c_,\u0275\u0275CopyDefinitionFeature:wm,\u0275\u0275InheritDefinitionFeature:ou,\u0275\u0275nextContext:Zm,\u0275\u0275namespaceHTML:tn,\u0275\u0275namespaceMathML:Kt,\u0275\u0275namespaceSVG:Bt,\u0275\u0275enableBindings:ks,\u0275\u0275disableBindings:Fs,\u0275\u0275elementStart:Tu,\u0275\u0275elementEnd:wu,\u0275\u0275element:Wm,\u0275\u0275elementContainerStart:Mu,\u0275\u0275elementContainerEnd:Su,\u0275\u0275elementContainer:Km,\u0275\u0275pureFunction0:ly,\u0275\u0275pureFunction1:cy,\u0275\u0275pureFunction2:uy,\u0275\u0275pureFunction3:dy,\u0275\u0275pureFunction4:hy,\u0275\u0275pureFunction5:fy,\u0275\u0275pureFunction6:py,\u0275\u0275pureFunction7:my,\u0275\u0275pureFunction8:gy,\u0275\u0275pureFunctionV:_y,\u0275\u0275getCurrentView:Gm,\u0275\u0275restoreView:Ns,\u0275\u0275listener:Au,\u0275\u0275projection:qm,\u0275\u0275syntheticHostProperty:ud,\u0275\u0275syntheticHostListener:Ou,\u0275\u0275pipeBind1:vy,\u0275\u0275pipeBind2:by,\u0275\u0275pipeBind3:Cy,\u0275\u0275pipeBind4:Ey,\u0275\u0275pipeBindV:Dy,\u0275\u0275projectionDef:Xm,\u0275\u0275hostProperty:cd,\u0275\u0275property:Eu,\u0275\u0275propertyInterpolate:Ru,\u0275\u0275propertyInterpolate1:pl,\u0275\u0275propertyInterpolate2:ku,\u0275\u0275propertyInterpolate3:Fu,\u0275\u0275propertyInterpolate4:Nu,\u0275\u0275propertyInterpolate5:Lu,\u0275\u0275propertyInterpolate6:ju,\u0275\u0275propertyInterpolate7:Bu,\u0275\u0275propertyInterpolate8:Vu,\u0275\u0275propertyInterpolateV:Hu,\u0275\u0275pipe:yy,\u0275\u0275queryRefresh:My,\u0275\u0275viewQuery:Sy,\u0275\u0275loadQuery:Py,\u0275\u0275contentQuery:Iy,\u0275\u0275reference:Im,\u0275\u0275classMap:ag,\u0275\u0275classMapInterpolate1:mg,\u0275\u0275classMapInterpolate2:gg,\u0275\u0275classMapInterpolate3:_g,\u0275\u0275classMapInterpolate4:yg,\u0275\u0275classMapInterpolate5:vg,\u0275\u0275classMapInterpolate6:bg,\u0275\u0275classMapInterpolate7:Cg,\u0275\u0275classMapInterpolate8:Eg,\u0275\u0275classMapInterpolateV:Dg,\u0275\u0275styleMap:sr,\u0275\u0275styleMapInterpolate1:Tg,\u0275\u0275styleMapInterpolate2:wg,\u0275\u0275styleMapInterpolate3:Mg,\u0275\u0275styleMapInterpolate4:Sg,\u0275\u0275styleMapInterpolate5:Ig,\u0275\u0275styleMapInterpolate6:Pg,\u0275\u0275styleMapInterpolate7:Ag,\u0275\u0275styleMapInterpolate8:Og,\u0275\u0275styleMapInterpolateV:xg,\u0275\u0275styleProp:$u,\u0275\u0275stylePropInterpolate1:ed,\u0275\u0275stylePropInterpolate2:td,\u0275\u0275stylePropInterpolate3:nd,\u0275\u0275stylePropInterpolate4:id,\u0275\u0275stylePropInterpolate5:rd,\u0275\u0275stylePropInterpolate6:od,\u0275\u0275stylePropInterpolate7:sd,\u0275\u0275stylePropInterpolate8:ad,\u0275\u0275stylePropInterpolateV:ld,\u0275\u0275classProp:Uu,\u0275\u0275advance:Cp,\u0275\u0275template:Mm,\u0275\u0275text:pg,\u0275\u0275textInterpolate:Wu,\u0275\u0275textInterpolate1:gl,\u0275\u0275textInterpolate2:Ku,\u0275\u0275textInterpolate3:Gu,\u0275\u0275textInterpolate4:Qu,\u0275\u0275textInterpolate5:Yu,\u0275\u0275textInterpolate6:Ju,\u0275\u0275textInterpolate7:Zu,\u0275\u0275textInterpolate8:Xu,\u0275\u0275textInterpolateV:qu,\u0275\u0275i18n:r_,\u0275\u0275i18nAttributes:o_,\u0275\u0275i18nExp:gd,\u0275\u0275i18nStart:pd,\u0275\u0275i18nEnd:md,\u0275\u0275i18nApply:s_,\u0275\u0275i18nPostprocess:a_,\u0275\u0275resolveWindow:Qf,\u0275\u0275resolveDocument:Yf,\u0275\u0275resolveBody:Jf,\u0275\u0275setComponentScope:Q,\u0275\u0275setNgModuleScope:_t,\u0275\u0275sanitizeHtml:If,\u0275\u0275sanitizeStyle:Pf,\u0275\u0275sanitizeResourceUrl:pc,\u0275\u0275sanitizeScript:Af,\u0275\u0275sanitizeUrl:fc,\u0275\u0275sanitizeUrlOrResourceUrl:kf,\u0275\u0275trustConstantHtml:Of,\u0275\u0275trustConstantResourceUrl:xf,forwardRef:M,resolveForwardRef:S}))();let Ms=null;function Kw(){Ms=null}const Ia=[];let th=!1;function ky(){if(!th){th=!0;try{for(let e=Ia.length-1;e>=0;e--){const{moduleType:t,ngModule:n}=Ia[e];n.declarations&&n.declarations.every(Fy)&&(Ia.splice(e,1),Yw(t,n))}}finally{th=!1}}}function Fy(e){return Array.isArray(e)?e.every(Fy):!!S(e)}function Ny(e,t={}){Ly(e,t),function(e,t){Ia.push({moduleType:e,ngModule:t})}(e,t)}function Ly(e,t,n=!1){const i=zi(t.declarations||Lt);let r=null;Object.defineProperty(e,Pt,{configurable:!0,get:()=>(null===r&&(r=Qn().compileNgModule(vi,`ng:///${e.name}/\u0275mod.js`,{type:e,bootstrap:zi(t.bootstrap||Lt).map(S),declarations:i.map(S),imports:zi(t.imports||Lt).map(S).map(Hy),exports:zi(t.exports||Lt).map(S).map(Hy),schemas:t.schemas?zi(t.schemas):null,id:t.id||null}),r.schemas||(r.schemas=[])),r)});let s=null;Object.defineProperty(e,K,{get:()=>{if(null===s){const u=Qn();s=u.compileFactory(vi,`ng:///${e.name}/\u0275fac.js`,{name:e.name,type:e,deps:Za(e),target:u.FactoryTarget.NgModule,typeArgumentCount:0})}return s},configurable:!1});let c=null;Object.defineProperty(e,Je,{get:()=>{if(null===c){const u={name:e.name,type:e,providers:t.providers||Lt,imports:[(t.imports||Lt).map(S),(t.exports||Lt).map(S)]};c=Qn().compileInjector(vi,`ng:///${e.name}/\u0275inj.js`,u)}return c},configurable:!1})}let Rl=new WeakMap,ih=new WeakMap;function Qw(){Rl=new WeakMap,ih=new WeakMap,Ia.length=0}function Yw(e,t){const n=zi(t.declarations||Lt),i=Pa(e);n.forEach(r=>{r.hasOwnProperty(jt)?rh(an(r),i):!r.hasOwnProperty(_n)&&!r.hasOwnProperty(qe)&&(r.ngSelectorScope=e)})}function rh(e,t){e.directiveDefs=()=>Array.from(t.compilation.directives).map(n=>n.hasOwnProperty(jt)?an(n):un(n)).filter(n=>!!n),e.pipeDefs=()=>Array.from(t.compilation.pipes).map(n=>wn(n)),e.schemas=t.schemas,e.tView=null}function Pa(e){if(!oh(e))throw new Error(`${e.name} does not have a module def (\u0275mod property)`);const t=yn(e);if(null!==t.transitiveCompileScopes)return t.transitiveCompileScopes;const n={schemas:t.schemas||null,compilation:{directives:new Set,pipes:new Set},exported:{directives:new Set,pipes:new Set}};return Sr(t.imports).forEach(i=>{const r=i;if(!oh(r))throw new Error(`Importing ${r.name} which does not have a \u0275mod property`);const s=Pa(r);s.exported.directives.forEach(c=>n.compilation.directives.add(c)),s.exported.pipes.forEach(c=>n.compilation.pipes.add(c))}),Sr(t.declarations).forEach(i=>{wn(i)?n.compilation.pipes.add(i):n.compilation.directives.add(i)}),Sr(t.exports).forEach(i=>{const r=i;if(oh(r)){const s=Pa(r);s.exported.directives.forEach(c=>{n.compilation.directives.add(c),n.exported.directives.add(c)}),s.exported.pipes.forEach(c=>{n.compilation.pipes.add(c),n.exported.pipes.add(c)})}else wn(r)?n.exported.pipes.add(r):n.exported.directives.add(r)}),t.transitiveCompileScopes=n,n}function Hy(e){return function(e){return void 0!==e.ngModule}(e)?e.ngModule:e}function oh(e){return!!yn(e)}let sh=0;function $y(e,t){let n=null;(function(e,t){pf(t)&&(Yo.set(e,t),Ws.add(e))})(e,t),zy(e,t),Object.defineProperty(e,jt,{get:()=>{if(null===n){const i=Qn();if(pf(t)){const A=[`Component '${e.name}' is not resolved:`];throw t.templateUrl&&A.push(` - templateUrl: ${t.templateUrl}`),t.styleUrls&&t.styleUrls.length&&A.push(` - styleUrls: ${JSON.stringify(t.styleUrls)}`),A.push("Did you run and wait for 'resolveComponentResources()'?"),new Error(A.join("\n"))}const r=Ms;let s=t.preserveWhitespaces;void 0===s&&(s=null!==r&&void 0!==r.preserveWhitespaces&&r.preserveWhitespaces);let c=t.encapsulation;void 0===c&&(c=null!==r&&void 0!==r.defaultEncapsulation?r.defaultEncapsulation:re.Emulated);const u=t.templateUrl||`ng:///${e.name}/template.html`,y=Object.assign(Object.assign({},Wy(e,t)),{typeSourceSpan:i.createParseSourceSpan("Component",e.name,u),template:t.template||"",preserveWhitespaces:s,styles:t.styles||Lt,animations:t.animations,directives:[],changeDetection:t.changeDetection,pipes:new Map,encapsulation:c,interpolation:t.interpolation,viewProviders:t.viewProviders||null});sh++;try{y.usesInheritance&&Ky(e),n=i.compileComponent(vi,u,y)}finally{sh--}if(0===sh&&ky(),function(e){return void 0!==e.ngSelectorScope}(e)){const A=Pa(e.ngSelectorScope);rh(n,A)}}return n},configurable:!1})}function ah(e,t){let n=null;zy(e,t||{}),Object.defineProperty(e,_n,{get:()=>{if(null===n){const i=Uy(e,t||{});n=Qn().compileDirective(vi,i.sourceMapUrl,i.metadata)}return n},configurable:!1})}function Uy(e,t){const n=e&&e.name,i=`ng:///${n}/\u0275dir.js`,r=Qn(),s=Wy(e,t);return s.typeSourceSpan=r.createParseSourceSpan("Directive",n,i),s.usesInheritance&&Ky(e),{metadata:s,sourceMapUrl:i}}function zy(e,t){let n=null;Object.defineProperty(e,K,{get:()=>{if(null===n){const i=Uy(e,t),r=Qn();n=r.compileFactory(vi,`ng:///${e.name}/\u0275fac.js`,{name:i.metadata.name,type:i.metadata.type,typeArgumentCount:0,deps:Za(e),target:r.FactoryTarget.Directive})}return n},configurable:!1})}function Xw(e){return Object.getPrototypeOf(e.prototype)===Object.prototype}function Wy(e,t){const n=sc(),i=n.ownPropMetadata(e);return{name:e.name,type:e,selector:void 0!==t.selector?t.selector:null,host:t.host||At,propMetadata:i,inputs:t.inputs||Lt,outputs:t.outputs||Lt,queries:Gy(e,i,Qy),lifecycle:{usesOnChanges:n.hasLifecycleHook(e,"ngOnChanges")},typeSourceSpan:null,usesInheritance:!Xw(e),exportAs:tM(t.exportAs),providers:t.providers||null,viewQueries:Gy(e,i,Yy)}}function Ky(e){const t=Object.prototype;let n=Object.getPrototypeOf(e.prototype).constructor;for(;n&&n!==t;)!un(n)&&!an(n)&&iM(n)&&ah(n,null),n=Object.getPrototypeOf(n)}function qw(e){return"string"==typeof e?Zy(e):S(e)}function eM(e,t){return{propertyName:e,predicate:qw(t.selector),descendants:t.descendants,first:t.first,read:t.read?t.read:null,static:!!t.static,emitDistinctChangesOnly:!!t.emitDistinctChangesOnly}}function Gy(e,t,n){const i=[];for(const r in t)if(t.hasOwnProperty(r)){const s=t[r];s.forEach(c=>{if(n(c)){if(!c.selector)throw new Error(`Can't construct a query for the property "${r}" of "${$e(e)}" since the query selector wasn't defined.`);if(s.some(Jy))throw new Error("Cannot combine @Input decorators with query decorators");i.push(eM(r,c))}})}return i}function tM(e){return void 0===e?null:Zy(e)}function Qy(e){const t=e.ngMetadataName;return"ContentChild"===t||"ContentChildren"===t}function Yy(e){const t=e.ngMetadataName;return"ViewChild"===t||"ViewChildren"===t}function Jy(e){return"Input"===e.ngMetadataName}function Zy(e){return e.split(",").map(t=>t.trim())}const nM=["ngOnChanges","ngOnInit","ngOnDestroy","ngDoCheck","ngAfterViewInit","ngAfterViewChecked","ngAfterContentInit","ngAfterContentChecked"];function iM(e){const t=sc();if(nM.some(i=>t.hasLifecycleHook(e,i)))return!0;const n=t.propMetadata(e);for(const i in n){const r=n[i];for(let s=0;s<r.length;s++){const c=r[s],u=c.ngMetadataName;if(Jy(c)||Qy(c)||Yy(c)||"Output"===u||"HostBinding"===u||"HostListener"===u)return!0}}return!1}function Xy(e,t){let n=null,i=null;Object.defineProperty(e,K,{get:()=>{if(null===i){const r=qy(e,t),s=Qn();i=s.compileFactory(vi,`ng:///${r.name}/\u0275fac.js`,{name:r.name,type:r.type,typeArgumentCount:0,deps:Za(e),target:s.FactoryTarget.Pipe})}return i},configurable:!1}),Object.defineProperty(e,qe,{get:()=>{if(null===n){const r=qy(e,t);n=Qn().compilePipe(vi,`ng:///${r.name}/\u0275pipe.js`,r)}return n},configurable:!1})}function qy(e,t){return{type:e,name:e.name,pipeName:t.name,pure:void 0===t.pure||t.pure}}const ev=$o("Directive",(e={})=>e,void 0,void 0,(e,t)=>dM(e,t)),rM=$o("Component",(e={})=>Object.assign({changeDetection:R.Default},e),ev,void 0,(e,t)=>uM(e,t)),oM=$o("Pipe",e=>Object.assign({pure:!0},e),void 0,void 0,(e,t)=>hM(e,t)),sM=zr("Input",e=>({bindingPropertyName:e})),aM=zr("Output",e=>({bindingPropertyName:e})),lM=zr("HostBinding",e=>({hostPropertyName:e})),cM=zr("HostListener",(e,t)=>({eventName:e,args:t})),tv=$y,nv=ah,iv=Xy,uM=tv,dM=nv,hM=iv,fM=$o("NgModule",e=>e,void 0,void 0,(e,t)=>pM(e,t)),rv=Ny,pM=rv,lh=new jn("Application Initializer");let Ss=(()=>{class e{constructor(n){this.appInits=n,this.resolve=El,this.reject=El,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const n=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(Iu(s))n.push(s);else if(Pu(s)){const c=new Promise((u,y)=>{s.subscribe({complete:u,error:y})});n.push(c)}}Promise.all(n).then(()=>{i()}).catch(r=>{this.reject(r)}),0===n.length&&i(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)($n(lh,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const ov=new jn("AppId");function sv(){return`${ch()}${ch()}${ch()}`}const av={provide:ov,useFactory:sv,deps:[]};function ch(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const lv=new jn("Platform Initializer"),cv=new jn("Platform ID"),uv=new jn("appBootstrapListener"),mM=new jn("Application Packages Root URL");let dv=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const kl=new jn("LocaleId"),hv=new jn("DefaultCurrencyCode"),gM=new jn("Translations"),_M=new jn("TranslationsFormat");var Rr=(()=>((Rr=Rr||{})[Rr.Error=0]="Error",Rr[Rr.Warning=1]="Warning",Rr[Rr.Ignore=2]="Ignore",Rr))();const fv=!0,Aa=fv;class pv{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const Fl=function(e){return new xl(e)},yM=Fl,mv=function(e){return Promise.resolve(Fl(e))},vM=mv,uh=function(e){const t=Fl(e),i=Sr(yn(e).declarations).reduce((r,s)=>{const c=an(s);return c&&r.push(new Ud(c)),r},[]);return new pv(t,i)},bM=uh,gv=function(e){return Promise.resolve(uh(e))},CM=gv;let Oa=(()=>{class e{constructor(){this.compileModuleSync=yM,this.compileModuleAsync=vM,this.compileModuleAndAllComponentsSync=bM,this.compileModuleAndAllComponentsAsync=CM}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();const _v=new jn("compilerOptions");class yv{}const EM=(()=>Promise.resolve(0))();function dh(e){"undefined"==typeof Zone?EM.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Ni{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new xr(!1),this.onMicrotaskEmpty=new xr(!1),this.onStable=new xr(!1),this.onError=new xr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&n,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function(){let e=Nt.requestAnimationFrame,t=Nt.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Nt,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,fh(e),e.isCheckStableRunning=!0,hh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),fh(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,i,r,s,c,u)=>{try{return vv(e),n.invokeTask(r,s,c,u)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),bv(e)}},onInvoke:(n,i,r,s,c,u,y)=>{try{return vv(e),n.invoke(r,s,c,u,y)}finally{e.shouldCoalesceRunChangeDetection&&t(),bv(e)}},onHasTask:(n,i,r,s)=>{n.hasTask(r,s),i===r&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,fh(e),hh(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,i,r,s)=>(n.handleError(r,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ni.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ni.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,i){return this._inner.run(t,n,i)}runTask(t,n,i,r){const s=this._inner,c=s.scheduleEventTask("NgZoneEvent: "+r,t,TM,El,El);try{return s.runTask(c,n,i)}finally{s.cancelTask(c)}}runGuarded(t,n,i){return this._inner.runGuarded(t,n,i)}runOutsideAngular(t){return this._outer.run(t)}}const TM={};function hh(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function fh(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function vv(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function bv(e){e._nesting--,hh(e)}class Cv{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new xr,this.onMicrotaskEmpty=new xr,this.onStable=new xr,this.onError=new xr}run(t,n,i){return t.apply(n,i)}runGuarded(t,n,i){return t.apply(n,i)}runOutsideAngular(t){return t()}runTask(t,n,i,r){return t.apply(n,i)}}let Ev=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ni.assertNotInAngularZone(),dh(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())dh(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(n)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(c=>c.timeoutId!==s),n(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:r})}whenStable(n,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,i,r){return[]}}return e.\u0275fac=function(n){return new(n||e)($n(Ni))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})(),ph=(()=>{class e{constructor(){this._applications=new Map,mh.addToWindow(this)}registerApplication(n,i){this._applications.set(n,i)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,i=!0){return mh.findTestabilityInTree(this,n,i)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();class SM{addToWindow(t){}findTestabilityInTree(t,n,i){return null}}function IM(e){mh=e}let mh=new SM,Dv=!0,Tv=!1;function gh(){return Tv=!0,Dv}function PM(){if(Tv)throw new Error("Cannot enable prod mode after platform setup.");Dv=!1}let hr,AM=wv;function wv(e,t,n){const i=new xl(n);return Promise.resolve(i)}let RM=Mv;function Mv(e){return e.isBoundToModule}const _h=new jn("AllowMultipleToken");class kM{constructor(t,n){this.name=t,this.token=n}}function Sv(e){if(hr&&!hr.destroyed&&!hr.injector.get(_h,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");hr=e.get(vh);const t=e.get(lv,null);return t&&t.forEach(n=>n()),hr}function Iv(e,t,n=[]){const i=`Platform: ${t}`,r=new jn(i);return(s=[])=>{let c=yh();if(!c||c.injector.get(_h,!1))if(e)e(n.concat(s).concat({provide:r,useValue:!0}));else{const u=n.concat(s).concat({provide:r,useValue:!0},{provide:ea,useValue:"platform"});Sv(In.create({providers:u,name:i}))}return Pv(r)}}function Pv(e){const t=yh();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function FM(){hr&&!hr.destroyed&&hr.destroy()}function yh(){return hr&&!hr.destroyed?hr:null}let vh=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,i){const u=function(e,t){let n;return n="noop"===e?new Cv:("zone.js"===e?void 0:e)||new Ni({enableLongStackTrace:gh(),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),y=[{provide:Ni,useValue:u}];return u.run(()=>{const A=In.create({providers:y,parent:this.injector,name:n.moduleType.name}),V=n.create(A),ue=V.injector.get(Xo,null);if(!ue)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return u.runOutsideAngular(()=>{const _e=u.onError.subscribe({next:xe=>{ue.handleError(xe)}});V.onDestroy(()=>{bh(this._modules,V),_e.unsubscribe()})}),function(e,t,n){try{const i=n();return Iu(i)?i.catch(r=>{throw t.runOutsideAngular(()=>e.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>e.handleError(i)),i}}(ue,u,()=>{const _e=V.injector.get(Ss);return _e.runInitializers(),_e.donePromise.then(()=>(Aa&&vl(V.injector.get(kl,ca)||ca),this._moduleDoBootstrap(V),V))})})}bootstrapModule(n,i=[]){const r=Av({},i);return AM(this.injector,r,n).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(n){const i=n.injector.get(xa);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${D(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(i)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)($n(In))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function Av(e,t){return Array.isArray(t)?t.reduce(Av,e):Object.assign(Object.assign({},e),t)}let xa=(()=>{class e{constructor(n,i,r,s,c){this._zone=n,this._injector=i,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new h.y(A=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{A.next(this._stable),A.complete()})}),y=new h.y(A=>{let V;this._zone.runOutsideAngular(()=>{V=this._zone.onStable.subscribe(()=>{Ni.assertNotInAngularZone(),dh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,A.next(!0))})})});const ue=this._zone.onUnstable.subscribe(()=>{Ni.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{A.next(!1)}))});return()=>{V.unsubscribe(),ue.unsubscribe()}});this.isStable=(0,_.T)(u,y.pipe((0,a.B)()))}bootstrap(n,i){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let r;r=n instanceof bs?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(r.componentType);const s=RM(r)?void 0:this._injector.get(uo),u=r.create(In.NULL,[],i||r.selector,s),y=u.location.nativeElement,A=u.injector.get(Ev,null),V=A&&u.injector.get(ph);return A&&V&&V.registerApplication(y,A),u.onDestroy(()=>{this.detachView(u.hostView),bh(this.components,u),V&&V.unregisterApplication(y)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const i=n;this._views.push(i),i.attachToAppRef(this)}detachView(n){const i=n;bh(this._views,i),i.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(uv,[]).concat(this._bootstrapListeners).forEach(r=>r(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)($n(Ni),$n(In),$n(Xo),$n(Cs),$n(Ss))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function bh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class BM{}function VM(e){const t=sy(e);if(!t)throw Rv(e);return t}function xv(e){const t=sy(e);if(!t)throw Rv(e);return new xl(t)}const HM=xv;function Rv(e){return new Error(`No module with ID ${e} loaded`)}class Fv{}const UM={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let zM=(()=>{class e{constructor(n,i){this._compiler=n,this._config=i||UM}load(n){return!Aa&&this._compiler instanceof Oa?this.loadFactory(n):this.loadAndCompile(n)}loadAndCompile(n){let[i,r]=n.split("#");return void 0===r&&(r="default"),d(8255)(i).then(s=>s[r]).then(s=>Nv(s,i,r)).then(s=>this._compiler.compileModuleAsync(s))}loadFactory(n){let[i,r]=n.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),d(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(c=>c[r+s]).then(c=>Nv(c,i,r))}}return e.\u0275fac=function(n){return new(n||e)($n(Oa),$n(Fv,8))},e.\u0275prov=$({token:e,factory:e.\u0275fac}),e})();function Nv(e,t,n){if(!e)throw new Error(`Cannot find '${n}' in '${t}'`);return e}class Lv extends Pd{}class WM extends Lv{}class jv{constructor(t,n){this.name=t,this.callback=n}}class Ra{constructor(t,n,i){this.listeners=[],this.parent=null,this._debugContext=i,this.nativeNode=t,n&&n instanceof Jn&&n.addChild(this)}get injector(){return this._debugContext.injector}get componentInstance(){return this._debugContext.component}get context(){return this._debugContext.context}get references(){return this._debugContext.references}get providerTokens(){return this._debugContext.providerTokens}}class Jn extends Ra{constructor(t,n,i){super(t,n,i),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}addChild(t){t&&(this.childNodes.push(t),t.parent=this)}removeChild(t){const n=this.childNodes.indexOf(t);-1!==n&&(t.parent=null,this.childNodes.splice(n,1))}insertChildrenAfter(t,n){const i=this.childNodes.indexOf(t);-1!==i&&(this.childNodes.splice(i+1,0,...n),n.forEach(r=>{r.parent&&r.parent.removeChild(r),t.parent=this}))}insertBefore(t,n){const i=this.childNodes.indexOf(t);-1===i?this.addChild(n):(n.parent&&n.parent.removeChild(n),n.parent=this,this.childNodes.splice(i,0,n))}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Bv(this,t,n),n}queryAllNodes(t){const n=[];return Vv(this,t,n),n}get children(){return this.childNodes.filter(t=>t instanceof Jn)}triggerEventHandler(t,n){this.listeners.forEach(i=>{i.name==t&&i.callback(n)})}}function KM(e){return e.map(t=>t.nativeElement)}function Bv(e,t,n){e.childNodes.forEach(i=>{i instanceof Jn&&(t(i)&&n.push(i),Bv(i,t,n))})}function Vv(e,t,n){e instanceof Jn&&e.childNodes.forEach(i=>{t(i)&&n.push(i),i instanceof Jn&&Vv(i,t,n)})}class Ch{constructor(t){this.nativeNode=t}get parent(){const t=this.nativeNode.parentNode;return t?new ka(t):null}get injector(){return mm(this.nativeNode)}get componentInstance(){const t=this.nativeNode;return t&&(nu(t)||fm(t))}get context(){return nu(this.nativeNode)||hm(this.nativeNode)}get listeners(){return _m(this.nativeNode).filter(t=>"dom"===t.type)}get references(){return function(e){const t=di(e);return null===t?{}:(void 0===t.localRefs&&(t.localRefs=function(e,t){const n=e[1].data[t];if(n&&n.localNames){const i={};let r=n.index+1;for(let s=0;s<n.localNames.length;s+=2)i[n.localNames[s]]=e[r],r++;return i}return null}(t.lView,t.nodeIndex)),t.localRefs||{})}(this.nativeNode)}get providerTokens(){return function(e){const t=di(e);if(null===t)return[];const i=t.lView[1],r=i.data[t.nodeIndex],s=[],u=r.directiveEnd;for(let y=1048575&r.providerIndexes;y<u;y++){let A=i.data[y];qE(A)&&(A=A.type),s.push(A)}return s}(this.nativeNode)}}class ka extends Ch{constructor(t){super(t)}get nativeElement(){return this.nativeNode.nodeType==Node.ELEMENT_NODE?this.nativeNode:null}get name(){const t=di(this.nativeNode);return null!==t?t.lView[1].data[t.nodeIndex].value:this.nativeNode.nodeName}get properties(){const t=di(this.nativeNode);if(null===t)return{};const n=t.lView,i=n[1].data,r=i[t.nodeIndex],s={};return function(e,t){if(e){let n=Object.getPrototypeOf(e);const i=Node.prototype;for(;null!==n&&n!==i;){const r=Object.getOwnPropertyDescriptors(n);for(let s in r)if(!s.startsWith("__")&&!s.startsWith("on")){const c=e[s];QM(c)&&(t[s]=c)}n=Object.getPrototypeOf(n)}}}(this.nativeElement,s),function(e,t,n,i){let r=t.propertyBindings;if(null!==r)for(let s=0;s<r.length;s++){const c=r[s],y=i[c].split("\ufffd"),A=y[0];if(y.length>1){let V=y[1];for(let ue=1;ue<y.length-1;ue++)V+=ye(n[c+ue-1])+y[ue+1];e[A]=V}else e[A]=n[c]}}(s,r,n,i),s}get attributes(){const t={},n=this.nativeElement;if(!n)return t;const i=di(n);if(null===i)return{};const s=i.lView[1].data[i.nodeIndex].attrs,c=[];if(s){let y=0;for(;y<s.length;){const A=s[y];if("string"!=typeof A)break;t[A]=s[y+1],c.push(A.toLowerCase()),y+=2}}const u=n.attributes;for(let y=0;y<u.length;y++){const A=u[y],V=A.name.toLowerCase();-1===c.indexOf(V)&&(t[V]=A.value)}return t}get styles(){return this.nativeElement&&this.nativeElement.style?this.nativeElement.style:{}}get classes(){const t={},i=this.nativeElement.className;return(i&&"string"!=typeof i?i.baseVal.split(" "):i.split(" ")).forEach(s=>t[s]=!0),t}get childNodes(){const t=this.nativeNode.childNodes,n=[];for(let i=0;i<t.length;i++)n.push(Ll(t[i]));return n}get children(){const t=this.nativeElement;if(!t)return[];const n=t.children,i=[];for(let r=0;r<n.length;r++)i.push(Ll(n[r]));return i}query(t){return this.queryAll(t)[0]||null}queryAll(t){const n=[];return Hv(this,t,n,!0),n}queryAllNodes(t){const n=[];return Hv(this,t,n,!1),n}triggerEventHandler(t,n){const i=this.nativeNode,r=[];this.listeners.forEach(s=>{if(s.name===t){const c=s.callback;c.call(i,n),r.push(c)}}),"function"==typeof i.eventListeners&&i.eventListeners(t).forEach(s=>{if(-1!==s.toString().indexOf("__ngUnwrap__")){const c=s("__ngUnwrap__");return-1===r.indexOf(c)&&c.call(i,n)}})}}function QM(e){return"string"==typeof e||"boolean"==typeof e||"number"==typeof e||null===e}function Hv(e,t,n,i){const r=di(e.nativeNode);null!==r?xo(r.lView[1].data[r.nodeIndex],r.lView,t,n,i,e.nativeNode):Dh(e.nativeNode,t,n,i)}function xo(e,t,n,i,r,s){const c=function(e,t){const n=null===e?-1:e.index;return-1!==n?v(t[n]):null}(e,t);if(11&e.type){if(Eh(c,n,i,r,s),ci(e)){const y=bn(e.index,t);y&&y[1].firstChild&&xo(y[1].firstChild,y,n,i,r,s)}else e.child&&xo(e.child,t,n,i,r,s),c&&Dh(c,n,i,r);const u=t[e.index];Cn(u)&&$v(u,n,i,r,s)}else if(4&e.type){const u=t[e.index];Eh(u[7],n,i,r,s),$v(u,n,i,r,s)}else if(16&e.type){const u=t[16],A=u[6].projection[e.projection];if(Array.isArray(A))for(let V of A)Eh(V,n,i,r,s);else if(A){const V=u[3];xo(V[1].data[A.index],V,n,i,r,s)}}else e.child&&xo(e.child,t,n,i,r,s);if(s!==c){const u=4&e.flags?e.projectionNext:e.next;u&&xo(u,t,n,i,r,s)}}function $v(e,t,n,i,r){for(let s=10;s<e.length;s++){const c=e[s],u=c[1].firstChild;u&&xo(u,c,t,n,i,r)}}function Eh(e,t,n,i,r){if(r!==e){const s=Zn(e);if(!s)return;(i&&s instanceof ka&&t(s)&&-1===n.indexOf(s)||!i&&t(s)&&-1===n.indexOf(s))&&n.push(s)}}function Dh(e,t,n,i){const r=e.childNodes,s=r.length;for(let c=0;c<s;c++){const u=r[c],y=Zn(u);y&&((i&&y instanceof ka&&t(y)&&-1===n.indexOf(y)||!i&&t(y)&&-1===n.indexOf(y))&&n.push(y),Dh(u,t,n,i))}}const Nl=new Map,Th="__ng_debug__";function Ll(e){return e instanceof Node?(e.hasOwnProperty(Th)||(e[Th]=e.nodeType==Node.ELEMENT_NODE?new ka(e):new Ch(e)),e[Th]):null}const Zn=Ll;function ZM(e){return function(e){return Nl.get(e)||null}(e)}const qM=function(e){return null};function jl(e){Nl.set(e.nativeNode,e)}const tS=Ch,nS=ka,iS=Iv(null,"core",[{provide:cv,useValue:"unknown"},{provide:vh,deps:[In]},{provide:ph,deps:[]},{provide:dv,deps:[]}]);function Uv(){return T_}function zv(){return w_}function Wv(e){return e=e||Aa&&"undefined"!=typeof $localize&&$localize.locale||ca,Aa&&vl(e),e}const Kv=[{provide:xa,useClass:xa,deps:[Ni,In,Xo,Cs,Ss]},{provide:ty,deps:[Ni],useFactory:Gv},{provide:Ss,useClass:Ss,deps:[[new Wr,lh]]},{provide:Oa,useClass:Oa,deps:[]},av,{provide:Tl,useFactory:Uv,deps:[]},{provide:wl,useFactory:zv,deps:[]},{provide:kl,useFactory:Wv,deps:[[new Go(kl),new Wr,new Kr]]},{provide:hv,useValue:Fg}];function Gv(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}let oS=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)($n(xa))},e.\u0275mod=st({type:e}),e.\u0275inj=H({providers:Kv}),e})();function sS(e,t,n,i,r,s){e|=1;const{matchedQueries:c,references:u,matchedQueryIds:y}=kd(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:y,references:u,ngContentIndex:n,childCount:i,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:s?Ts(s):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:r||Yi},provider:null,text:null,query:null,ngContent:null}}function aS(e,t,n,i,r,s,c=[],u,y,A,V,ue){A||(A=Yi);const{matchedQueries:_e,references:xe,matchedQueryIds:We}=kd(n);let ct=null,it=null;s&&([ct,it]=Nd(s)),u=u||[];const Ot=[];for(let Xt=0;Xt<u.length;Xt++){const[gn,Xn,Zi]=u[Xt],[Va,As]=Nd(Xn);let Os,xs;switch(15&gn){case 4:xs=Zi;break;case 1:case 8:Os=Zi}Ot[Xt]={flags:gn,ns:Va,name:As,nonMinifiedName:As,securityContext:Os,suffix:xs}}y=y||[];const Dt=[];for(let Xt=0;Xt<y.length;Xt++){const[gn,Xn]=y[Xt];Dt[Xt]={type:0,target:gn,eventName:Xn,propName:null}}const zt=(c=c||[]).map(([Xt,gn])=>{const[Xn,Zi]=Nd(Xt);return[Xn,Zi,gn]});return ue=function(e){return e&&e.id===N_&&(e.id=null!=e.encapsulation&&e.encapsulation!==re.None||e.styles.length||Object.keys(e.data).length?"c"+P0++:L_),e&&e.id===L_&&(e=null),e||null}(ue),V&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:_e,matchedQueryIds:We,references:xe,ngContentIndex:i,childCount:r,bindings:Ot,bindingFlags:Ld(Ot),outputs:Dt,element:{ns:ct,name:it,attrs:zt,template:null,componentProvider:null,componentView:V||null,componentRendererType:ue,publicProviders:null,allProviders:null,handleEvent:A||Yi},provider:null,text:null,query:null,ngContent:null}}function lS(e,t,n){const i=n.element,r=e.root.selectorOrNode,s=e.renderer;let c;if(e.parent||!r){c=i.name?s.createElement(i.name,i.ns):s.createComment("");const u=Fd(e,t,n);u&&s.appendChild(u,c)}else c=s.selectRootElement(r,!!i.componentRendererType&&i.componentRendererType.encapsulation===re.ShadowDom);if(i.attrs)for(let u=0;u<i.attrs.length;u++){const[y,A,V]=i.attrs[u];s.setAttribute(c,A,V,y)}return c}function cS(e,t,n,i){for(let r=0;r<n.outputs.length;r++){const s=n.outputs[r],c=uS(e,n.nodeIndex,x0(s.target,s.eventName));let u=s.target,y=e;"component"===s.target&&(u=null,y=t);const A=y.renderer.listen(u||i,s.eventName,c);e.disposables[n.outputIndex+r]=A}}function uS(e,t,n){return i=>B_(e,t,n,i)}function fr(e,t,n,i){if(!Nn(e,t,n,i))return!1;const r=t.bindings[n],s=En(e,t.nodeIndex),c=s.renderElement,u=r.name;switch(15&r.flags){case 1:!function(e,t,n,i,r,s){const c=t.securityContext;let u=c?e.root.sanitizer.sanitize(c,s):s;u=null!=u?u.toString():null;const y=e.renderer;null!=s?y.setAttribute(n,r,u,i):y.removeAttribute(n,r,i)}(e,r,c,r.ns,u,i);break;case 2:!function(e,t,n,i){const r=e.renderer;i?r.addClass(t,n):r.removeClass(t,n)}(e,c,u,i);break;case 4:!function(e,t,n,i,r){let s=e.root.sanitizer.sanitize(Bn.STYLE,r);if(null!=s){s=s.toString();const u=t.suffix;null!=u&&(s+=u)}else s=null;const c=e.renderer;null!=s?c.setStyle(n,i,s):c.removeStyle(n,i)}(e,r,c,u,i);break;case 8:!function(e,t,n,i,r){const s=t.securityContext;let c=s?e.root.sanitizer.sanitize(s,r):r;e.renderer.setProperty(n,i,c)}(33554432&t.flags&&32&r.flags?s.componentView:e,r,c,u,i)}return!0}function _S(e,t,n){let i=[];for(let r in n)i.push({propName:r,bindingType:n[r]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:V_(t),bindings:i},ngContent:null}}function yS(e){return new Sa(e)}function vS(e){const t=e.def.nodeMatchedQueries;for(;e.parent&&R0(e);){let n=e.parentNodeDef;e=e.parent;const i=n.nodeIndex+n.childCount;for(let r=0;r<=i;r++){const s=e.def.nodes[r];67108864&s.flags&&536870912&s.flags&&(s.query.filterId&t)===s.query.filterId&&ya(e,r).setDirty(),(1&s.flags&&r+s.childCount<n.nodeIndex||!(67108864&s.childFlags)||!(536870912&s.childFlags))&&(r+=s.childCount)}}if(134217728&e.def.nodeFlags)for(let n=0;n<e.def.nodes.length;n++){const i=e.def.nodes[n];134217728&i.flags&&536870912&i.flags&&ya(e,n).setDirty(),n+=i.childCount}}function bS(e,t){const n=ya(e,t.nodeIndex);if(!n.dirty)return;let i,r;if(67108864&t.flags){const u=t.parent.parent;r=Fa(e,u.nodeIndex,u.nodeIndex+u.childCount,t.query,[]),i=ho(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(r=Fa(e,0,e.def.nodes.length-1,t.query,[]),i=e.component);n.reset(r,p_);const s=t.query.bindings;let c=!1;for(let u=0;u<s.length;u++){const y=s[u];let A;switch(y.bindingType){case 0:A=n.first;break;case 1:A=n,c=!0}i[y.propName]=A}c&&n.notifyOnChanges()}function Fa(e,t,n,i,r){for(let s=t;s<=n;s++){const c=e.def.nodes[s],u=c.matchedQueries[i.id];if(null!=u&&r.push(Qv(e,c,u)),1&c.flags&&c.element.template&&(c.element.template.nodeMatchedQueries&i.filterId)===i.filterId){const y=En(e,s);if((c.childMatchedQueries&i.filterId)===i.filterId&&(Fa(e,s+1,s+c.childCount,i,r),s+=c.childCount),16777216&c.flags){const V=y.viewContainer._embeddedViews;for(let ue=0;ue<V.length;ue++){const _e=V[ue],xe=Rd(_e);xe&&xe===y&&Fa(_e,0,_e.def.nodes.length-1,i,r)}}const A=y.template._projectedViews;if(A)for(let V=0;V<A.length;V++){const ue=A[V];Fa(ue,0,ue.def.nodes.length-1,i,r)}}(c.childMatchedQueries&i.filterId)!==i.filterId&&(s+=c.childCount)}return r}function Qv(e,t,n){if(null!=n)switch(n){case 1:return En(e,t.nodeIndex).renderElement;case 0:return new cr(En(e,t.nodeIndex).renderElement);case 2:return En(e,t.nodeIndex).template;case 3:return En(e,t.nodeIndex).viewContainer;case 4:return ho(e,t.nodeIndex).instance}}function CS(e,t){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:t}}}function ES(e,t,n){const i=Fd(e,t,n);i&&U_(e,n.ngContent.index,1,i,null,void 0)}function DS(e,t){return wh(128,e,oo(t+1))}function TS(e,t){return wh(32,e,oo(t))}function wS(e,t){const n=Object.keys(t),i=n.length,r=[];for(let s=0;s<i;s++){r.push(n[s])}return wh(64,e,r)}function wh(e,t,n){const i=[];for(let r=0;r<n.length;r++){const s=n[r];i.push({flags:8,name:s,ns:null,nonMinifiedName:s,securityContext:null,suffix:null})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:i,bindingFlags:Ld(i),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function PS(e,t,n){const i=[];for(let r=1;r<n.length;r++)i[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[r]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:i,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function AS(e,t,n){let i;const r=e.renderer;i=r.createText(n.text.prefix);const s=Fd(e,t,n);return s&&r.appendChild(s,i),{renderText:i}}function pr(e,t){return(null!=e?e.toString():"")+t.suffix}function RS(e,t,n,i){let r=0,s=0,c=0,u=0,y=0,A=null,V=null,ue=!1,_e=!1,xe=null;for(let ct=0;ct<t.length;ct++){const it=t[ct];if(it.nodeIndex=ct,it.parent=A,it.bindingIndex=r,it.outputIndex=s,it.renderParent=V,c|=it.flags,y|=it.matchedQueryIds,it.element){const Ot=it.element;Ot.publicProviders=A?A.element.publicProviders:Object.create(null),Ot.allProviders=Ot.publicProviders,ue=!1,_e=!1,it.element.template&&(y|=it.element.template.nodeMatchedQueries)}if(kS(A,it,t.length),r+=it.bindings.length,s+=it.outputs.length,!V&&3&it.flags&&(xe=it),20224&it.flags){ue||(ue=!0,A.element.publicProviders=Object.create(A.element.publicProviders),A.element.allProviders=A.element.publicProviders);const Dt=0!=(32768&it.flags);0==(8192&it.flags)||Dt?A.element.publicProviders[ai(it.provider.token)]=it:(_e||(_e=!0,A.element.allProviders=Object.create(A.element.publicProviders)),A.element.allProviders[ai(it.provider.token)]=it),Dt&&(A.element.componentProvider=it)}if(A?(A.childFlags|=it.flags,A.directChildFlags|=it.flags,A.childMatchedQueries|=it.matchedQueryIds,it.element&&it.element.template&&(A.childMatchedQueries|=it.element.template.nodeMatchedQueries)):u|=it.flags,it.childCount>0)A=it,Yv(it)||(V=it);else for(;A&&ct===A.nodeIndex+A.childCount;){const Ot=A.parent;Ot&&(Ot.childFlags|=A.childFlags,Ot.childMatchedQueries|=A.childMatchedQueries),A=Ot,V=A&&Yv(A)?A.renderParent:A}}return{factory:null,nodeFlags:c,rootNodeFlags:u,nodeMatchedQueries:y,flags:e,nodes:t,updateDirectives:n||Yi,updateRenderer:i||Yi,handleEvent:(ct,it,Ot,Dt)=>t[it].element.handleEvent(ct,Ot,Dt),bindingCount:r,outputCount:s,lastRenderRootNode:xe}}function Yv(e){return 0!=(1&e.flags)&&null===e.element.name}function kS(e,t,n){const i=t.element&&t.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error(`Illegal State: Last root node of a template can't have embedded views, at index ${t.nodeIndex}!`)}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error(`Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index ${t.nodeIndex}!`);if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error(`Illegal State: Content Query nodes need to be children of directives, at index ${t.nodeIndex}!`);if(134217728&t.flags&&e)throw new Error(`Illegal State: View Query nodes have to be top level nodes, at index ${t.nodeIndex}!`)}if(t.childCount){const r=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=r&&t.nodeIndex+t.childCount>r)throw new Error(`Illegal State: childCount of node leads outside of parent, at index ${t.nodeIndex}!`)}}function Jv(e,t,n,i){const r=Mh(e.root,e.renderer,e,t,n);return Sh(r,e.component,i),Ih(r),r}function Zv(e,t,n){const i=Mh(e,e.renderer,null,null,t);return Sh(i,n,n),Ih(i),i}function Xv(e,t,n,i){const r=t.element.componentRendererType;let s;return s=r?e.root.rendererFactory.createRenderer(i,r):e.root.renderer,Mh(e.root,s,e,t.element.componentProvider,n)}function Mh(e,t,n,i,r){const s=new Array(r.nodes.length),c=r.outputCount?new Array(r.outputCount):null;return{def:r,parent:n,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:s,state:13,root:e,renderer:t,oldValues:new Array(r.bindingCount),disposables:c,initIndex:-1}}function Sh(e,t,n){e.component=t,e.context=n}function Ih(e){let t;Ao(e)&&(t=En(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);const n=e.def,i=e.nodes;for(let r=0;r<n.nodes.length;r++){const s=n.nodes[r];let c;switch(ln.setCurrentNode(e,r),201347067&s.flags){case 1:const u=lS(e,t,s);let y;if(33554432&s.flags){const A=Ts(s.element.componentView);y=ln.createComponentView(e,s,A,u)}cS(e,y,s,u),c={renderElement:u,componentView:y,viewContainer:null,template:s.element.template?lw(e,s):void 0},16777216&s.flags&&(c.viewContainer=ow(e,s,c));break;case 2:c=AS(e,t,s);break;case 512:case 1024:case 2048:case 256:c=i[r],!c&&!(4096&s.flags)&&(c={instance:Cw(e,s)});break;case 16:c={instance:Ew(e,s)};break;case 16384:c=i[r],c||(c={instance:Dw(e,s)}),32768&s.flags&&Sh(En(e,s.parent.nodeIndex).componentView,c.instance,c.instance);break;case 32:case 64:case 128:c={value:void 0};break;case 67108864:case 134217728:c=yS(-2147483648==(-2147483648&s.flags));break;case 8:ES(e,t,s),c=void 0}i[r]=c}Na(e,Dn.CreateViewNodes),Ah(e,201326592,268435456,0)}function Bl(e){eb(e),ln.updateDirectives(e,1),Hl(e,Dn.CheckNoChanges),ln.updateRenderer(e,1),Na(e,Dn.CheckNoChanges),e.state&=-97}function Vl(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Sl(e,0,256),eb(e),ln.updateDirectives(e,0),Hl(e,Dn.CheckAndUpdate),Ah(e,67108864,536870912,0);let t=Sl(e,256,512);$d(e,2097152|(t?1048576:0)),ln.updateRenderer(e,0),Na(e,Dn.CheckAndUpdate),Ah(e,134217728,536870912,0),t=Sl(e,512,768),$d(e,8388608|(t?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Sl(e,768,1024)}function qv(e,t,n,i,r,s,c,u,y,A,V,ue,_e){return 0===n?function(e,t,n,i,r,s,c,u,y,A,V,ue){switch(201347067&t.flags){case 1:return function(e,t,n,i,r,s,c,u,y,A,V,ue){const _e=t.bindings.length;let xe=!1;return _e>0&&fr(e,t,0,n)&&(xe=!0),_e>1&&fr(e,t,1,i)&&(xe=!0),_e>2&&fr(e,t,2,r)&&(xe=!0),_e>3&&fr(e,t,3,s)&&(xe=!0),_e>4&&fr(e,t,4,c)&&(xe=!0),_e>5&&fr(e,t,5,u)&&(xe=!0),_e>6&&fr(e,t,6,y)&&(xe=!0),_e>7&&fr(e,t,7,A)&&(xe=!0),_e>8&&fr(e,t,8,V)&&(xe=!0),_e>9&&fr(e,t,9,ue)&&(xe=!0),xe}(e,t,n,i,r,s,c,u,y,A,V,ue);case 2:return function(e,t,n,i,r,s,c,u,y,A,V,ue){let _e=!1;const xe=t.bindings,We=xe.length;if(We>0&&Nn(e,t,0,n)&&(_e=!0),We>1&&Nn(e,t,1,i)&&(_e=!0),We>2&&Nn(e,t,2,r)&&(_e=!0),We>3&&Nn(e,t,3,s)&&(_e=!0),We>4&&Nn(e,t,4,c)&&(_e=!0),We>5&&Nn(e,t,5,u)&&(_e=!0),We>6&&Nn(e,t,6,y)&&(_e=!0),We>7&&Nn(e,t,7,A)&&(_e=!0),We>8&&Nn(e,t,8,V)&&(_e=!0),We>9&&Nn(e,t,9,ue)&&(_e=!0),_e){let ct=t.text.prefix;We>0&&(ct+=pr(n,xe[0])),We>1&&(ct+=pr(i,xe[1])),We>2&&(ct+=pr(r,xe[2])),We>3&&(ct+=pr(s,xe[3])),We>4&&(ct+=pr(c,xe[4])),We>5&&(ct+=pr(u,xe[5])),We>6&&(ct+=pr(y,xe[6])),We>7&&(ct+=pr(A,xe[7])),We>8&&(ct+=pr(V,xe[8])),We>9&&(ct+=pr(ue,xe[9]));const it=_a(e,t.nodeIndex).renderText;e.renderer.setValue(it,ct)}return _e}(e,t,n,i,r,s,c,u,y,A,V,ue);case 16384:return function(e,t,n,i,r,s,c,u,y,A,V,ue){const _e=ho(e,t.nodeIndex),xe=_e.instance;let ct,We=!1;const it=t.bindings.length;return it>0&&Ji(e,t,0,n)&&(We=!0,ct=dr(e,_e,t,0,n,ct)),it>1&&Ji(e,t,1,i)&&(We=!0,ct=dr(e,_e,t,1,i,ct)),it>2&&Ji(e,t,2,r)&&(We=!0,ct=dr(e,_e,t,2,r,ct)),it>3&&Ji(e,t,3,s)&&(We=!0,ct=dr(e,_e,t,3,s,ct)),it>4&&Ji(e,t,4,c)&&(We=!0,ct=dr(e,_e,t,4,c,ct)),it>5&&Ji(e,t,5,u)&&(We=!0,ct=dr(e,_e,t,5,u,ct)),it>6&&Ji(e,t,6,y)&&(We=!0,ct=dr(e,_e,t,6,y,ct)),it>7&&Ji(e,t,7,A)&&(We=!0,ct=dr(e,_e,t,7,A,ct)),it>8&&Ji(e,t,8,V)&&(We=!0,ct=dr(e,_e,t,8,V,ct)),it>9&&Ji(e,t,9,ue)&&(We=!0,ct=dr(e,_e,t,9,ue,ct)),ct&&xe.ngOnChanges(ct),65536&t.flags&&Il(e,256,t.nodeIndex)&&xe.ngOnInit(),262144&t.flags&&xe.ngDoCheck(),We}(e,t,n,i,r,s,c,u,y,A,V,ue);case 32:case 64:case 128:return function(e,t,n,i,r,s,c,u,y,A,V,ue){const _e=t.bindings;let xe=!1;const We=_e.length;if(We>0&&Nn(e,t,0,n)&&(xe=!0),We>1&&Nn(e,t,1,i)&&(xe=!0),We>2&&Nn(e,t,2,r)&&(xe=!0),We>3&&Nn(e,t,3,s)&&(xe=!0),We>4&&Nn(e,t,4,c)&&(xe=!0),We>5&&Nn(e,t,5,u)&&(xe=!0),We>6&&Nn(e,t,6,y)&&(xe=!0),We>7&&Nn(e,t,7,A)&&(xe=!0),We>8&&Nn(e,t,8,V)&&(xe=!0),We>9&&Nn(e,t,9,ue)&&(xe=!0),xe){const ct=Es(e,t.nodeIndex);let it;switch(201347067&t.flags){case 32:it=[],We>0&&it.push(n),We>1&&it.push(i),We>2&&it.push(r),We>3&&it.push(s),We>4&&it.push(c),We>5&&it.push(u),We>6&&it.push(y),We>7&&it.push(A),We>8&&it.push(V),We>9&&it.push(ue);break;case 64:it={},We>0&&(it[_e[0].name]=n),We>1&&(it[_e[1].name]=i),We>2&&(it[_e[2].name]=r),We>3&&(it[_e[3].name]=s),We>4&&(it[_e[4].name]=c),We>5&&(it[_e[5].name]=u),We>6&&(it[_e[6].name]=y),We>7&&(it[_e[7].name]=A),We>8&&(it[_e[8].name]=V),We>9&&(it[_e[9].name]=ue);break;case 128:const Ot=n;switch(We){case 1:it=Ot.transform(n);break;case 2:it=Ot.transform(i);break;case 3:it=Ot.transform(i,r);break;case 4:it=Ot.transform(i,r,s);break;case 5:it=Ot.transform(i,r,s,c);break;case 6:it=Ot.transform(i,r,s,c,u);break;case 7:it=Ot.transform(i,r,s,c,u,y);break;case 8:it=Ot.transform(i,r,s,c,u,y,A);break;case 9:it=Ot.transform(i,r,s,c,u,y,A,V);break;case 10:it=Ot.transform(i,r,s,c,u,y,A,V,ue)}}ct.value=it}return xe}(e,t,n,i,r,s,c,u,y,A,V,ue);default:throw"unreachable"}}(e,t,i,r,s,c,u,y,A,V,ue,_e):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){let i=!1;for(let r=0;r<n.length;r++)fr(e,t,r,n[r])&&(i=!0);return i}(e,t,n);case 2:return function(e,t,n){const i=t.bindings;let r=!1;for(let s=0;s<n.length;s++)Nn(e,t,s,n[s])&&(r=!0);if(r){let s="";for(let u=0;u<n.length;u++)s+=pr(n[u],i[u]);s=t.text.prefix+s;const c=_a(e,t.nodeIndex).renderText;e.renderer.setValue(c,s)}return r}(e,t,n);case 16384:return function(e,t,n){const i=ho(e,t.nodeIndex),r=i.instance;let c,s=!1;for(let u=0;u<n.length;u++)Ji(e,t,u,n[u])&&(s=!0,c=dr(e,i,t,u,n[u],c));return c&&r.ngOnChanges(c),65536&t.flags&&Il(e,256,t.nodeIndex)&&r.ngOnInit(),262144&t.flags&&r.ngDoCheck(),s}(e,t,n);case 32:case 64:case 128:return function(e,t,n){const i=t.bindings;let r=!1;for(let s=0;s<n.length;s++)Nn(e,t,s,n[s])&&(r=!0);if(r){const s=Es(e,t.nodeIndex);let c;switch(201347067&t.flags){case 32:c=n;break;case 64:c={};for(let A=0;A<n.length;A++)c[i[A].name]=n[A];break;case 128:const u=n[0],y=n.slice(1);c=u.transform(...y)}s.value=c}return r}(e,t,n);default:throw"unreachable"}}(e,t,i)}function eb(e){const t=e.def;if(4&t.nodeFlags)for(let n=0;n<t.nodes.length;n++){const i=t.nodes[n];if(4&i.flags){const r=En(e,n).template._projectedViews;if(r)for(let s=0;s<r.length;s++){const c=r[s];c.state|=32,O0(c,e)}}else 0==(4&i.childFlags)&&(n+=i.childCount)}}function tb(e,t,n,i,r,s,c,u,y,A,V,ue,_e){return 0===n?function(e,t,n,i,r,s,c,u,y,A,V,ue){const _e=t.bindings.length;_e>0&&ur(e,t,0,n),_e>1&&ur(e,t,1,i),_e>2&&ur(e,t,2,r),_e>3&&ur(e,t,3,s),_e>4&&ur(e,t,4,c),_e>5&&ur(e,t,5,u),_e>6&&ur(e,t,6,y),_e>7&&ur(e,t,7,A),_e>8&&ur(e,t,8,V),_e>9&&ur(e,t,9,ue)}(e,t,i,r,s,c,u,y,A,V,ue,_e):function(e,t,n){for(let i=0;i<n.length;i++)ur(e,t,i,n[i])}(e,t,i),!1}function BS(e,t){if(ya(e,t.nodeIndex).dirty)throw R_(ln.createDebugContext(e,t.nodeIndex),`Query ${t.query.id} not dirty`,`Query ${t.query.id} dirty`,0!=(1&e.state))}function Ph(e){if(!(128&e.state)){if(Hl(e,Dn.Destroy),Na(e,Dn.Destroy),$d(e,131072),e.disposables)for(let t=0;t<e.disposables.length;t++)e.disposables[t]();(function(e){if(!(16&e.state))return;const t=Rd(e);if(t){const n=t.template._projectedViews;n&&(Co(n,n.indexOf(e)),ln.dirtyParentQueries(e))}})(e),e.renderer.destroyNode&&function(e){const t=e.def.nodes.length;for(let n=0;n<t;n++){const i=e.def.nodes[n];1&i.flags?e.renderer.destroyNode(En(e,n).renderElement):2&i.flags?e.renderer.destroyNode(_a(e,n).renderText):(67108864&i.flags||134217728&i.flags)&&ya(e,n).destroy()}}(e),Ao(e)&&e.renderer.destroy(),e.state|=128}}var Dn=(()=>((Dn=Dn||{})[Dn.CreateViewNodes=0]="CreateViewNodes",Dn[Dn.CheckNoChanges=1]="CheckNoChanges",Dn[Dn.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",Dn[Dn.CheckAndUpdate=3]="CheckAndUpdate",Dn[Dn.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",Dn[Dn.Destroy=5]="Destroy",Dn))();function Na(e,t){const n=e.def;if(33554432&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const r=n.nodes[i];33554432&r.flags?nb(En(e,i).componentView,t):0==(33554432&r.childFlags)&&(i+=r.childCount)}}function Hl(e,t){const n=e.def;if(16777216&n.nodeFlags)for(let i=0;i<n.nodes.length;i++){const r=n.nodes[i];if(16777216&r.flags){const s=En(e,i).viewContainer._embeddedViews;for(let c=0;c<s.length;c++)nb(s[c],t)}else 0==(16777216&r.childFlags)&&(i+=r.childCount)}}function nb(e,t){const n=e.state;switch(t){case Dn.CheckNoChanges:0==(128&n)&&(12==(12&n)?Bl(e):64&n&&$l(e,Dn.CheckNoChangesProjectedViews));break;case Dn.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Bl(e):64&n&&$l(e,t));break;case Dn.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Vl(e):64&n&&$l(e,Dn.CheckAndUpdateProjectedViews));break;case Dn.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Vl(e):64&n&&$l(e,t));break;case Dn.Destroy:Ph(e);break;case Dn.CreateViewNodes:Ih(e)}}function $l(e,t){Hl(e,t),Na(e,t)}function Ah(e,t,n,i){if(!(e.def.nodeFlags&t&&e.def.nodeFlags&n))return;const r=e.def.nodes.length;for(let s=0;s<r;s++){const c=e.def.nodes[s];if(c.flags&t&&c.flags&n)switch(ln.setCurrentNode(e,c.nodeIndex),i){case 0:bS(e,c);break;case 1:BS(e,c)}(!(c.childFlags&t)||!(c.childFlags&n))&&(s+=c.childCount)}}let ib=!1;function La(){if(ib)return;ib=!0;const e=gh()?{setCurrentNode:Ps,createRootView:zS,createEmbeddedView:WS,createComponentView:KS,createNgModuleRef:GS,overrideProvider:QS,overrideComponentView:YS,clearOverrides:JS,checkAndUpdateView:XS,checkNoChangesView:qS,destroyView:eI,createDebugContext:(e,t)=>new Rh(e,t),handleEvent:tI,updateDirectives:nI,updateRenderer:iI}:{setCurrentNode:()=>{},createRootView:US,createEmbeddedView:Jv,createComponentView:Xv,createNgModuleRef:Q_,overrideProvider:Yi,overrideComponentView:Yi,clearOverrides:Yi,checkAndUpdateView:Vl,checkNoChangesView:Bl,destroyView:Ph,createDebugContext:(e,t)=>new Rh(e,t),handleEvent:(e,t,n,i)=>e.def.handleEvent(e,t,n,i),updateDirectives:(e,t)=>e.def.updateDirectives(0===t?ob:sb,e),updateRenderer:(e,t)=>e.def.updateRenderer(0===t?ob:sb,e)};ln.setCurrentNode=e.setCurrentNode,ln.createRootView=e.createRootView,ln.createEmbeddedView=e.createEmbeddedView,ln.createComponentView=e.createComponentView,ln.createNgModuleRef=e.createNgModuleRef,ln.overrideProvider=e.overrideProvider,ln.overrideComponentView=e.overrideComponentView,ln.clearOverrides=e.clearOverrides,ln.checkAndUpdateView=e.checkAndUpdateView,ln.checkNoChangesView=e.checkNoChangesView,ln.destroyView=e.destroyView,ln.resolveDep=mi,ln.createDebugContext=e.createDebugContext,ln.handleEvent=e.handleEvent,ln.updateDirectives=e.updateDirectives,ln.updateRenderer=e.updateRenderer,ln.dirtyParentQueries=vS}function US(e,t,n,i,r,s){const c=r.injector.get(Dl);return Zv(rb(e,r,c,t,n),i,s)}function zS(e,t,n,i,r,s){const c=r.injector.get(Dl),u=rb(e,r,new sI(c),t,n),y=xh(i);return Ro(Hn.create,Zv,null,[u,y,s])}function rb(e,t,n,i,r){const s=t.injector.get(Dd),c=t.injector.get(Xo),u=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:i,selectorOrNode:r,sanitizer:s,rendererFactory:n,renderer:u,errorHandler:c}}function WS(e,t,n,i){const r=xh(n);return Ro(Hn.create,Jv,null,[e,t,r,i])}function KS(e,t,n,i){return n=Oh.get(t.element.componentProvider.provider.token)||xh(n),Ro(Hn.create,Xv,null,[e,t,n,i])}function GS(e,t,n,i){const r=function(e){const{hasOverrides:t,hasDeprecatedOverrides:n}=function(s){let c=!1,u=!1;return 0===fo.size||(s.providers.forEach(y=>{const A=fo.get(y.token);3840&y.flags&&A&&(c=!0,u=u||A.deprecatedBehavior)}),s.modules.forEach(y=>{ja.forEach((A,V)=>{S(le(V).providedIn)===y&&(c=!0,u=u||A.deprecatedBehavior)})})),{hasOverrides:c,hasDeprecatedOverrides:u}}(e);return t?(function(s){for(let c=0;c<s.providers.length;c++){const u=s.providers[c];n&&(u.flags|=4096);const y=fo.get(u.token);y&&(u.flags=-3841&u.flags|y.flags,u.deps=ba(y.deps),u.value=y.value)}if(ja.size>0){let c=new Set(s.modules);ja.forEach((u,y)=>{if(c.has(S(le(y).providedIn))){let A={token:y,flags:u.flags|(n?4096:0),deps:ba(u.deps),value:u.value,index:s.providers.length};s.providers.push(A),s.providersByKey[ai(y)]=A}})}}(e=e.factory(()=>Yi)),e):e}(i);return Q_(e,t,n,r)}const fo=new Map,ja=new Map,Oh=new Map;function QS(e){let t;fo.set(e.token,e),"function"==typeof e.token&&(t=le(e.token))&&"function"==typeof t.providedIn&&ja.set(e.token,e)}function YS(e,t){const n=Ts(K_(t)),i=Ts(n.nodes[0].element.componentView);Oh.set(e,i)}function JS(){fo.clear(),ja.clear(),Oh.clear()}function xh(e){if(0===fo.size)return e;const t=function(r){const s=[];let c=null;for(let u=0;u<r.nodes.length;u++){const y=r.nodes[u];1&y.flags&&(c=y),c&&3840&y.flags&&fo.has(y.provider.token)&&(s.push(c.nodeIndex),c=null)}return s}(e);if(0===t.length)return e;e=e.factory(()=>Yi);for(let r=0;r<t.length;r++)i(e,t[r]);return e;function i(r,s){for(let c=s+1;c<r.nodes.length;c++){const u=r.nodes[c];if(1&u.flags)return;if(3840&u.flags){const y=u.provider,A=fo.get(y.token);A&&(u.flags=-3841&u.flags|A.flags,y.deps=ba(A.deps),y.value=A.value)}}}}function ob(e,t,n,i,r,s,c,u,y,A,V,ue,_e){const xe=e.def.nodes[t];return qv(e,xe,n,i,r,s,c,u,y,A,V,ue,_e),224&xe.flags?Es(e,t).value:void 0}function sb(e,t,n,i,r,s,c,u,y,A,V,ue,_e){const xe=e.def.nodes[t];return tb(e,xe,n,i,r,s,c,u,y,A,V,ue,_e),224&xe.flags?Es(e,t).value:void 0}function XS(e){return Ro(Hn.detectChanges,Vl,null,[e])}function qS(e){return Ro(Hn.checkNoChanges,Bl,null,[e])}function eI(e){return Ro(Hn.destroy,Ph,null,[e])}var Hn=(()=>((Hn=Hn||{})[Hn.create=0]="create",Hn[Hn.detectChanges=1]="detectChanges",Hn[Hn.checkNoChanges=2]="checkNoChanges",Hn[Hn.destroy=3]="destroy",Hn[Hn.handleEvent=4]="handleEvent",Hn))();let Ba,Is,Ul;function Ps(e,t){Is=e,Ul=t}function tI(e,t,n,i){return Ps(e,t),Ro(Hn.handleEvent,e.def.handleEvent,null,[e,t,n,i])}function nI(e,t){if(128&e.state)throw F_(Hn[Ba]);return Ps(e,cb(e,0)),e.def.updateDirectives(function(i,r,s,...c){const u=i.def.nodes[r];return 0===t?ab(i,u,s,c):lb(i,u,s,c),16384&u.flags&&Ps(i,cb(i,r)),224&u.flags?Es(i,u.nodeIndex).value:void 0},e)}function iI(e,t){if(128&e.state)throw F_(Hn[Ba]);return Ps(e,ub(e,0)),e.def.updateRenderer(function(i,r,s,...c){const u=i.def.nodes[r];return 0===t?ab(i,u,s,c):lb(i,u,s,c),3&u.flags&&Ps(i,ub(i,r)),224&u.flags?Es(i,u.nodeIndex).value:void 0},e)}function ab(e,t,n,i){if(qv(e,t,n,...i)){const s=1===n?i[0]:i;if(16384&t.flags){const c={};for(let A=0;A<t.bindings.length;A++){const V=t.bindings[A],ue=s[A];8&V.flags&&(c[Wf(V.nonMinifiedName)]=Kf(ue))}const u=t.parent,y=En(e,u.nodeIndex).renderElement;if(u.element.name)for(let A in c){const V=c[A];null!=V?e.renderer.setAttribute(y,A,V):e.renderer.removeAttribute(y,A)}else e.renderer.setValue(y,nl(`bindings=${JSON.stringify(c,null,2)}`))}}}function lb(e,t,n,i){tb(e,t,n,...i)}function cb(e,t){for(let n=t;n<e.def.nodes.length;n++){const i=e.def.nodes[n];if(16384&i.flags&&i.bindings&&i.bindings.length)return n}return null}function ub(e,t){for(let n=t;n<e.def.nodes.length;n++){const i=e.def.nodes[n];if(3&i.flags&&i.bindings&&i.bindings.length)return n}return null}class Rh{constructor(t,n){this.view=t,this.nodeIndex=n,null==n&&(this.nodeIndex=n=0),this.nodeDef=t.def.nodes[n];let i=this.nodeDef,r=t;for(;i&&0==(1&i.flags);)i=i.parent;if(!i)for(;!i&&r;)i=Ds(r),r=r.parent;this.elDef=i,this.elView=r}get elOrCompView(){return En(this.elView,this.elDef.nodeIndex).componentView||this.view}get injector(){return G_(this.elView,this.elDef)}get component(){return this.elOrCompView.component}get context(){return this.elOrCompView.context}get providerTokens(){const t=[];if(this.elDef)for(let n=this.elDef.nodeIndex+1;n<=this.elDef.nodeIndex+this.elDef.childCount;n++){const i=this.elView.def.nodes[n];20224&i.flags&&t.push(i.provider.token),n+=i.childCount}return t}get references(){const t={};if(this.elDef){db(this.elView,this.elDef,t);for(let n=this.elDef.nodeIndex+1;n<=this.elDef.nodeIndex+this.elDef.childCount;n++){const i=this.elView.def.nodes[n];20224&i.flags&&db(this.elView,i,t),n+=i.childCount}}return t}get componentRenderElement(){const t=function(e){for(;e&&!Ao(e);)e=e.parent;return e.parent?En(e.parent,Ds(e).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0}get renderNode(){return 2&this.nodeDef.flags?va(this.view,this.nodeDef):va(this.elView,this.elDef)}logError(t,...n){let i,r;2&this.nodeDef.flags?(i=this.view.def,r=this.nodeDef.nodeIndex):(i=this.elView.def,r=this.elDef.nodeIndex);const s=function(e,t){let n=-1;for(let i=0;i<=t;i++)3&e.nodes[i].flags&&n++;return n}(i,r);let c=-1;i.factory(()=>(c++,c===s?t.error.bind(t,...n):Yi)),c<s&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error(...n))}}function db(e,t,n){for(let i in t.references)n[i]=Qv(e,t,t.references[i])}function Ro(e,t,n,i){const r=Ba,s=Is,c=Ul;try{Ba=e;const u=t.apply(n,i);return Is=s,Ul=c,Ba=r,u}catch(u){throw function(e){return!!$f(e)}(u)||!Is?u:function(e,t){return e instanceof Error||(e=new Error(e.toString())),k_(e,t),e}(u,kh())}}function kh(){return Is?new Rh(Is,Ul):null}class sI{constructor(t){this.delegate=t}createRenderer(t,n){return new aI(this.delegate.createRenderer(t,n))}begin(){this.delegate.begin&&this.delegate.begin()}end(){this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)}}class aI{constructor(t){this.delegate=t,this.debugContextFactory=kh,this.data=this.delegate.data}createDebugContext(t){return this.debugContextFactory(t)}destroyNode(t){const n=Zn(t);n&&(Nl.delete(n.nativeNode),n instanceof Ra&&(n.listeners.length=0)),this.delegate.destroyNode&&this.delegate.destroyNode(t)}destroy(){this.delegate.destroy()}createElement(t,n){const i=this.delegate.createElement(t,n),r=this.createDebugContext(i);if(r){const s=new Jn(i,null,r);s.name=t,jl(s)}return i}createComment(t){const n=this.delegate.createComment(nl(t)),i=this.createDebugContext(n);return i&&jl(new Ra(n,null,i)),n}createText(t){const n=this.delegate.createText(t),i=this.createDebugContext(n);return i&&jl(new Ra(n,null,i)),n}appendChild(t,n){const i=Zn(t),r=Zn(n);i&&r&&i instanceof Jn&&i.addChild(r),this.delegate.appendChild(t,n)}insertBefore(t,n,i,r){const s=Zn(t),c=Zn(n),u=Zn(i);s&&c&&s instanceof Jn&&s.insertBefore(u,c),this.delegate.insertBefore(t,n,i,r)}removeChild(t,n){const i=Zn(t),r=Zn(n);i&&r&&i instanceof Jn&&i.removeChild(r),this.delegate.removeChild(t,n)}selectRootElement(t,n){const i=this.delegate.selectRootElement(t,n),r=kh();return r&&jl(new Jn(i,null,r)),i}setAttribute(t,n,i,r){const s=Zn(t);s&&s instanceof Jn&&(s.attributes[r?r+":"+n:n]=i),this.delegate.setAttribute(t,n,i,r)}removeAttribute(t,n,i){const r=Zn(t);r&&r instanceof Jn&&(r.attributes[i?i+":"+n:n]=null),this.delegate.removeAttribute(t,n,i)}addClass(t,n){const i=Zn(t);i&&i instanceof Jn&&(i.classes[n]=!0),this.delegate.addClass(t,n)}removeClass(t,n){const i=Zn(t);i&&i instanceof Jn&&(i.classes[n]=!1),this.delegate.removeClass(t,n)}setStyle(t,n,i,r){const s=Zn(t);s&&s instanceof Jn&&(s.styles[n]=i),this.delegate.setStyle(t,n,i,r)}removeStyle(t,n,i){const r=Zn(t);r&&r instanceof Jn&&(r.styles[n]=null),this.delegate.removeStyle(t,n,i)}setProperty(t,n,i){const r=Zn(t);r&&r instanceof Jn&&(r.properties[n]=i),this.delegate.setProperty(t,n,i)}listen(t,n,i){if("string"!=typeof t){const r=Zn(t);r&&r.listeners.push(new jv(n,i))}return this.delegate.listen(t,n,i)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setValue(t,n){return this.delegate.setValue(t,n)}}function lI(e){return La(),ln.overrideProvider(e)}function cI(e,t){return La(),ln.overrideComponentView(e,t)}function uI(){return La(),ln.clearOverrides()}function dI(e,t,n){return new fI(e,t,n)}class fI extends Ad{constructor(t,n,i){super(),this.moduleType=t,this._bootstrapComponents=n,this._ngModuleDefFactory=i}create(t){La();const n=function(e){const t=Array.from(e.providers),n=Array.from(e.modules),i={};for(const r in e.providersByKey)i[r]=e.providersByKey[r];return{factory:e.factory,scope:e.scope,providers:t,modules:n,providersByKey:i}}(Ts(this._ngModuleDefFactory));return ln.createNgModuleRef(this.moduleType,t||In.NULL,this._bootstrapComponents,n)}}function pI(e){return Qn().compileDirectiveDeclaration(vi,`ng:///${e.type.name}/\u0275fac.js`,e)}function mI(e){var t,n;iy(e.type,e.decorators,null!==(t=e.ctorParameters)&&void 0!==t?t:null,null!==(n=e.propDecorators)&&void 0!==n?n:null)}function gI(e){return Qn().compileComponentDeclaration(vi,`ng:///${e.type.name}/\u0275cmp.js`,e)}function _I(e){return Qn(function(e){switch(e){case Gn.Directive:return"directive";case Gn.Component:return"component";case Gn.Injectable:return"injectable";case Gn.Pipe:return"pipe";case Gn.NgModule:;}}(e.target)).compileFactoryDeclaration(vi,`ng:///${e.type.name}/\u0275fac.js`,e)}function vI(e){return Qn().compileInjectableDeclaration(vi,`ng:///${e.type.name}/\u0275prov.js`,e)}function bI(e){return Qn().compileInjectorDeclaration(vi,`ng:///${e.type.name}/\u0275inj.js`,e)}function CI(e){return Qn().compileNgModuleDeclaration(vi,`ng:///${e.type.name}/\u0275mod.js`,e)}function EI(e){return Qn().compilePipeDeclaration(vi,`ng:///${e.type.name}/\u0275pipe.js`,e)}},3679:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{AbstractControl:()=>Se,AbstractControlDirective:()=>fe,AbstractFormGroupDirective:()=>Ke,COMPOSITION_BUFFER_MODE:()=>P,CheckboxControlValueAccessor:()=>E,CheckboxRequiredValidator:()=>ji,ControlContainer:()=>Oe,DefaultValueAccessor:()=>L,EmailValidator:()=>tr,FormArray:()=>Rt,FormArrayName:()=>mr,FormBuilder:()=>ie,FormControl:()=>nt,FormControlDirective:()=>Ci,FormControlName:()=>Fr,FormGroup:()=>ht,FormGroupDirective:()=>ui,FormGroupName:()=>Un,FormsModule:()=>Tr,MaxLengthValidator:()=>Si,MaxValidator:()=>Br,MinLengthValidator:()=>br,MinValidator:()=>yr,NG_ASYNC_VALIDATORS:()=>ye,NG_VALIDATORS:()=>he,NG_VALUE_ACCESSOR:()=>D,NgControl:()=>rt,NgControlStatus:()=>He,NgControlStatusGroup:()=>q,NgForm:()=>ve,NgModel:()=>qt,NgModelGroup:()=>Ve,NgSelectOption:()=>po,NumberValueAccessor:()=>gi,PatternValidator:()=>Rn,RadioControlValueAccessor:()=>ei,RangeValueAccessor:()=>Xi,ReactiveFormsModule:()=>go,RequiredValidator:()=>Mi,SelectControlValueAccessor:()=>Di,SelectMultipleControlValueAccessor:()=>_r,VERSION:()=>k,Validators:()=>at,\u0275InternalFormsSharedModule:()=>Dr,\u0275NgNoValidate:()=>Wt,\u0275NgSelectMultipleOption:()=>Lr,\u0275angular_packages_forms_forms_a:()=>Cr,\u0275angular_packages_forms_forms_b:()=>no,\u0275angular_packages_forms_forms_ba:()=>ii,\u0275angular_packages_forms_forms_bb:()=>Lr,\u0275angular_packages_forms_forms_bc:()=>Wt,\u0275angular_packages_forms_forms_bd:()=>Li,\u0275angular_packages_forms_forms_be:()=>qi,\u0275angular_packages_forms_forms_bf:()=>yi,\u0275angular_packages_forms_forms_bg:()=>er,\u0275angular_packages_forms_forms_bh:()=>Vr,\u0275angular_packages_forms_forms_bi:()=>vr,\u0275angular_packages_forms_forms_bj:()=>Hr,\u0275angular_packages_forms_forms_bk:()=>$r,\u0275angular_packages_forms_forms_bl:()=>Ze,\u0275angular_packages_forms_forms_bm:()=>Me,\u0275angular_packages_forms_forms_bn:()=>Re,\u0275angular_packages_forms_forms_bo:()=>Pe,\u0275angular_packages_forms_forms_bp:()=>Ne,\u0275angular_packages_forms_forms_bq:()=>Ct,\u0275angular_packages_forms_forms_br:()=>te,\u0275angular_packages_forms_forms_bs:()=>ge,\u0275angular_packages_forms_forms_bt:()=>X,\u0275angular_packages_forms_forms_c:()=>Er,\u0275angular_packages_forms_forms_d:()=>Dr,\u0275angular_packages_forms_forms_e:()=>g,\u0275angular_packages_forms_forms_f:()=>C,\u0275angular_packages_forms_forms_g:()=>w,\u0275angular_packages_forms_forms_h:()=>M,\u0275angular_packages_forms_forms_i:()=>wt,\u0275angular_packages_forms_forms_j:()=>Je,\u0275angular_packages_forms_forms_k:()=>ze,\u0275angular_packages_forms_forms_l:()=>ee,\u0275angular_packages_forms_forms_m:()=>lt,\u0275angular_packages_forms_forms_n:()=>pe,\u0275angular_packages_forms_forms_o:()=>Mn,\u0275angular_packages_forms_forms_p:()=>bi,\u0275angular_packages_forms_forms_q:()=>qn,\u0275angular_packages_forms_forms_r:()=>_i,\u0275angular_packages_forms_forms_s:()=>xn,\u0275angular_packages_forms_forms_t:()=>ti,\u0275angular_packages_forms_forms_u:()=>Cn,\u0275angular_packages_forms_forms_v:()=>gr,\u0275angular_packages_forms_forms_w:()=>ci,\u0275angular_packages_forms_forms_x:()=>ni,\u0275angular_packages_forms_forms_y:()=>kr,\u0275angular_packages_forms_forms_z:()=>Nr});var o=d(7716),l=d(8583),h=d(9412),_=d(5758),a=d(8002);let C=(()=>{class m{constructor(b,U){this._renderer=b,this._elementRef=U,this.onChange=Qe=>{},this.onTouched=()=>{}}setProperty(b,U){this._renderer.setProperty(this._elementRef.nativeElement,b,U)}registerOnTouched(b){this.onTouched=b}registerOnChange(b){this.onChange=b}setDisabledState(b){this.setProperty("disabled",b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m}),m})(),w=(()=>{class m extends C{}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();const D=new o.InjectionToken("NgValueAccessor"),g={provide:D,useExisting:(0,o.forwardRef)(()=>E),multi:!0};let E=(()=>{class m extends w{writeValue(b){this.setProperty("checked",b)}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target.checked)})("blur",function(){return U.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([g]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const M={provide:D,useExisting:(0,o.forwardRef)(()=>L),multi:!0},P=new o.InjectionToken("CompositionEventMode");let L=(()=>{class m extends C{constructor(b,U,Qe){super(b,U),this._compositionMode=Qe,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const m=(0,l.\u0275getDOM)()?(0,l.\u0275getDOM)().getUserAgent():"";return/android (\d+)/.test(m.toLowerCase())}())}writeValue(b){this.setProperty("value",null==b?"":b)}_handleInput(b){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(b)}_compositionStart(){this._composing=!0}_compositionEnd(b){this._composing=!1,this._compositionMode&&this.onChange(b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(P,8))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("input",function(St){return U._handleInput(St.target.value)})("blur",function(){return U.onTouched()})("compositionstart",function(){return U._compositionStart()})("compositionend",function(St){return U._compositionEnd(St.target.value)})},features:[o.\u0275\u0275ProvidersFeature([M]),o.\u0275\u0275InheritDefinitionFeature]}),m})();function j(m){return null==m||0===m.length}function ae(m){return null!=m&&"number"==typeof m.length}const he=new o.InjectionToken("NgValidators"),ye=new o.InjectionToken("NgAsyncValidators"),$e=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class at{static min(v){return Ze(v)}static max(v){return Me(v)}static required(v){return Re(v)}static requiredTrue(v){return Pe(v)}static email(v){return Ne(v)}static minLength(v){return Ct(v)}static maxLength(v){return te(v)}static pattern(v){return ge(v)}static nullValidator(v){return null}static compose(v){return je(v)}static composeAsync(v){return ut(v)}}function Ze(m){return v=>{if(j(v.value)||j(m))return null;const b=parseFloat(v.value);return!isNaN(b)&&b<m?{min:{min:m,actual:v.value}}:null}}function Me(m){return v=>{if(j(v.value)||j(m))return null;const b=parseFloat(v.value);return!isNaN(b)&&b>m?{max:{max:m,actual:v.value}}:null}}function Re(m){return j(m.value)?{required:!0}:null}function Pe(m){return!0===m.value?null:{required:!0}}function Ne(m){return j(m.value)||$e.test(m.value)?null:{email:!0}}function Ct(m){return v=>j(v.value)||!ae(v.value)?null:v.value.length<m?{minlength:{requiredLength:m,actualLength:v.value.length}}:null}function te(m){return v=>ae(v.value)&&v.value.length>m?{maxlength:{requiredLength:m,actualLength:v.value.length}}:null}function ge(m){if(!m)return X;let v,b;return"string"==typeof m?(b="","^"!==m.charAt(0)&&(b+="^"),b+=m,"$"!==m.charAt(m.length-1)&&(b+="$"),v=new RegExp(b)):(b=m.toString(),v=m),U=>{if(j(U.value))return null;const Qe=U.value;return v.test(Qe)?null:{pattern:{requiredPattern:b,actualValue:Qe}}}}function X(m){return null}function ce(m){return null!=m}function Ae(m){const v=(0,o.\u0275isPromise)(m)?(0,h.D)(m):m;return(0,o.\u0275isObservable)(v),v}function Ce(m){let v={};return m.forEach(b=>{v=null!=b?Object.assign(Object.assign({},v),b):v}),0===Object.keys(v).length?null:v}function Ue(m,v){return v.map(b=>b(m))}function pt(m){return m.map(v=>function(m){return!m.validate}(v)?v:b=>v.validate(b))}function je(m){if(!m)return null;const v=m.filter(ce);return 0==v.length?null:function(b){return Ce(Ue(b,v))}}function tt(m){return null!=m?je(pt(m)):null}function ut(m){if(!m)return null;const v=m.filter(ce);return 0==v.length?null:function(b){const U=Ue(b,v).map(Ae);return(0,_.D)(U).pipe((0,a.U)(Ce))}}function It(m){return null!=m?ut(pt(m)):null}function Xe(m,v){return null===m?[v]:Array.isArray(m)?[...m,v]:[m,v]}function dt(m){return m._rawValidators}function $(m){return m._rawAsyncValidators}function se(m){return m?Array.isArray(m)?m:[m]:[]}function H(m,v){return Array.isArray(m)?m.includes(v):m===v}function le(m,v){const b=se(v);return se(m).forEach(Qe=>{H(b,Qe)||b.push(Qe)}),b}function ne(m,v){return se(v).filter(b=>!H(m,b))}let fe=(()=>{class m{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(b){this._rawValidators=b||[],this._composedValidatorFn=tt(this._rawValidators)}_setAsyncValidators(b){this._rawAsyncValidators=b||[],this._composedAsyncValidatorFn=It(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(b){this._onDestroyCallbacks.push(b)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(b=>b()),this._onDestroyCallbacks=[]}reset(b){this.control&&this.control.reset(b)}hasError(b,U){return!!this.control&&this.control.hasError(b,U)}getError(b,U){return this.control?this.control.getError(b,U):null}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m}),m})(),Oe=(()=>{class m extends fe{get formDirective(){return null}get path(){return null}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();class rt extends fe{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class wt{constructor(v){this._cd=v}is(v){var b,U,Qe;return"submitted"===v?!!(null===(b=this._cd)||void 0===b?void 0:b.submitted):!!(null===(Qe=null===(U=this._cd)||void 0===U?void 0:U.control)||void 0===Qe?void 0:Qe[v])}}const Je={"[class.ng-untouched]":'is("untouched")',"[class.ng-touched]":'is("touched")',"[class.ng-pristine]":'is("pristine")',"[class.ng-dirty]":'is("dirty")',"[class.ng-valid]":'is("valid")',"[class.ng-invalid]":'is("invalid")',"[class.ng-pending]":'is("pending")'},ze={"[class.ng-untouched]":'is("untouched")',"[class.ng-touched]":'is("touched")',"[class.ng-pristine]":'is("pristine")',"[class.ng-dirty]":'is("dirty")',"[class.ng-valid]":'is("valid")',"[class.ng-invalid]":'is("invalid")',"[class.ng-pending]":'is("pending")',"[class.ng-submitted]":'is("submitted")'};let He=(()=>{class m extends wt{constructor(b){super(b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(rt,2))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(b,U){2&b&&o.\u0275\u0275classProp("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))},features:[o.\u0275\u0275InheritDefinitionFeature]}),m})(),q=(()=>{class m extends wt{constructor(b){super(b)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Oe,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(b,U){2&b&&o.\u0275\u0275classProp("ng-untouched",U.is("untouched"))("ng-touched",U.is("touched"))("ng-pristine",U.is("pristine"))("ng-dirty",U.is("dirty"))("ng-valid",U.is("valid"))("ng-invalid",U.is("invalid"))("ng-pending",U.is("pending"))("ng-submitted",U.is("submitted"))},features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();function Et(m,v){return[...v.path,m]}function xt(m,v){At(m,v),v.valueAccessor.writeValue(m.value),function(m,v){v.valueAccessor.registerOnChange(b=>{m._pendingValue=b,m._pendingChange=!0,m._pendingDirty=!0,"change"===m.updateOn&&qe(m,v)})}(m,v),function(m,v){const b=(U,Qe)=>{v.valueAccessor.writeValue(U),Qe&&v.viewToModelUpdate(U)};m.registerOnChange(b),v._registerOnDestroy(()=>{m._unregisterOnChange(b)})}(m,v),function(m,v){v.valueAccessor.registerOnTouched(()=>{m._pendingTouched=!0,"blur"===m.updateOn&&m._pendingChange&&qe(m,v),"submit"!==m.updateOn&&m.markAsTouched()})}(m,v),function(m,v){if(v.valueAccessor.setDisabledState){const b=U=>{v.valueAccessor.setDisabledState(U)};m.registerOnDisabledChange(b),v._registerOnDestroy(()=>{m._unregisterOnDisabledChange(b)})}}(m,v)}function Nt(m,v,b=!0){const U=()=>{};v.valueAccessor&&(v.valueAccessor.registerOnChange(U),v.valueAccessor.registerOnTouched(U)),Lt(m,v),m&&(v._invokeOnDestroyCallbacks(),m._registerOnCollectionChange(()=>{}))}function Ut(m,v){m.forEach(b=>{b.registerOnValidatorChange&&b.registerOnValidatorChange(v)})}function At(m,v){const b=dt(m);null!==v.validator?m.setValidators(Xe(b,v.validator)):"function"==typeof b&&m.setValidators([b]);const U=$(m);null!==v.asyncValidator?m.setAsyncValidators(Xe(U,v.asyncValidator)):"function"==typeof U&&m.setAsyncValidators([U]);const Qe=()=>m.updateValueAndValidity();Ut(v._rawValidators,Qe),Ut(v._rawAsyncValidators,Qe)}function Lt(m,v){let b=!1;if(null!==m){if(null!==v.validator){const Qe=dt(m);if(Array.isArray(Qe)&&Qe.length>0){const St=Qe.filter(Zt=>Zt!==v.validator);St.length!==Qe.length&&(b=!0,m.setValidators(St))}}if(null!==v.asyncValidator){const Qe=$(m);if(Array.isArray(Qe)&&Qe.length>0){const St=Qe.filter(Zt=>Zt!==v.asyncValidator);St.length!==Qe.length&&(b=!0,m.setAsyncValidators(St))}}}const U=()=>{};return Ut(v._rawValidators,U),Ut(v._rawAsyncValidators,U),b}function qe(m,v){m._pendingDirty&&m.markAsDirty(),m.setValue(m._pendingValue,{emitModelToViewChange:!1}),v.viewToModelUpdate(m._pendingValue),m._pendingChange=!1}function B(m,v){At(m,v)}function Ee(m,v){if(!m.hasOwnProperty("model"))return!1;const b=m.model;return!!b.isFirstChange()||!Object.is(v,b.currentValue)}function J(m,v){m._syncPendingControls(),v.forEach(b=>{const U=b.control;"submit"===U.updateOn&&U._pendingChange&&(b.viewToModelUpdate(U._pendingValue),U._pendingChange=!1)})}function N(m,v){if(!v)return null;let b,U,Qe;return Array.isArray(v),v.forEach(St=>{St.constructor===L?b=St:function(m){return Object.getPrototypeOf(m.constructor)===w}(St)?U=St:Qe=St}),Qe||U||b||null}function oe(m,v){const b=m.indexOf(v);b>-1&&m.splice(b,1)}const _t="VALID",Ht="INVALID",dn="PENDING",cn="DISABLED";function un(m){return(ke(m)?m.validators:m)||null}function wn(m){return Array.isArray(m)?tt(m):m||null}function yn(m,v){return(ke(v)?v.asyncValidators:m)||null}function mt(m){return Array.isArray(m)?It(m):m||null}function ke(m){return null!=m&&!Array.isArray(m)&&"object"==typeof m}class Se{constructor(v,b){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=v,this._rawAsyncValidators=b,this._composedValidatorFn=wn(this._rawValidators),this._composedAsyncValidatorFn=mt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(v){this._rawValidators=this._composedValidatorFn=v}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(v){this._rawAsyncValidators=this._composedAsyncValidatorFn=v}get parent(){return this._parent}get valid(){return this.status===_t}get invalid(){return this.status===Ht}get pending(){return this.status==dn}get disabled(){return this.status===cn}get enabled(){return this.status!==cn}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(v){this._rawValidators=v,this._composedValidatorFn=wn(v)}setAsyncValidators(v){this._rawAsyncValidators=v,this._composedAsyncValidatorFn=mt(v)}addValidators(v){this.setValidators(le(v,this._rawValidators))}addAsyncValidators(v){this.setAsyncValidators(le(v,this._rawAsyncValidators))}removeValidators(v){this.setValidators(ne(v,this._rawValidators))}removeAsyncValidators(v){this.setAsyncValidators(ne(v,this._rawAsyncValidators))}hasValidator(v){return H(this._rawValidators,v)}hasAsyncValidator(v){return H(this._rawAsyncValidators,v)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(v={}){this.touched=!0,this._parent&&!v.onlySelf&&this._parent.markAsTouched(v)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(v=>v.markAllAsTouched())}markAsUntouched(v={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(b=>{b.markAsUntouched({onlySelf:!0})}),this._parent&&!v.onlySelf&&this._parent._updateTouched(v)}markAsDirty(v={}){this.pristine=!1,this._parent&&!v.onlySelf&&this._parent.markAsDirty(v)}markAsPristine(v={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(b=>{b.markAsPristine({onlySelf:!0})}),this._parent&&!v.onlySelf&&this._parent._updatePristine(v)}markAsPending(v={}){this.status=dn,!1!==v.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!v.onlySelf&&this._parent.markAsPending(v)}disable(v={}){const b=this._parentMarkedDirty(v.onlySelf);this.status=cn,this.errors=null,this._forEachChild(U=>{U.disable(Object.assign(Object.assign({},v),{onlySelf:!0}))}),this._updateValue(),!1!==v.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},v),{skipPristineCheck:b})),this._onDisabledChange.forEach(U=>U(!0))}enable(v={}){const b=this._parentMarkedDirty(v.onlySelf);this.status=_t,this._forEachChild(U=>{U.enable(Object.assign(Object.assign({},v),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:v.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},v),{skipPristineCheck:b})),this._onDisabledChange.forEach(U=>U(!1))}_updateAncestors(v){this._parent&&!v.onlySelf&&(this._parent.updateValueAndValidity(v),v.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(v){this._parent=v}updateValueAndValidity(v={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===_t||this.status===dn)&&this._runAsyncValidator(v.emitEvent)),!1!==v.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!v.onlySelf&&this._parent.updateValueAndValidity(v)}_updateTreeValidity(v={emitEvent:!0}){this._forEachChild(b=>b._updateTreeValidity(v)),this.updateValueAndValidity({onlySelf:!0,emitEvent:v.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?cn:_t}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(v){if(this.asyncValidator){this.status=dn,this._hasOwnPendingAsyncValidator=!0;const b=Ae(this.asyncValidator(this));this._asyncValidationSubscription=b.subscribe(U=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(U,{emitEvent:v})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(v,b={}){this.errors=v,this._updateControlsErrors(!1!==b.emitEvent)}get(v){return function(m,v,b){if(null==v||(Array.isArray(v)||(v=v.split(".")),Array.isArray(v)&&0===v.length))return null;let U=m;return v.forEach(Qe=>{U=U instanceof ht?U.controls.hasOwnProperty(Qe)?U.controls[Qe]:null:U instanceof Rt&&U.at(Qe)||null}),U}(this,v)}getError(v,b){const U=b?this.get(b):this;return U&&U.errors?U.errors[v]:null}hasError(v,b){return!!this.getError(v,b)}get root(){let v=this;for(;v._parent;)v=v._parent;return v}_updateControlsErrors(v){this.status=this._calculateStatus(),v&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(v)}_initObservables(){this.valueChanges=new o.EventEmitter,this.statusChanges=new o.EventEmitter}_calculateStatus(){return this._allControlsDisabled()?cn:this.errors?Ht:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(dn)?dn:this._anyControlsHaveStatus(Ht)?Ht:_t}_anyControlsHaveStatus(v){return this._anyControls(b=>b.status===v)}_anyControlsDirty(){return this._anyControls(v=>v.dirty)}_anyControlsTouched(){return this._anyControls(v=>v.touched)}_updatePristine(v={}){this.pristine=!this._anyControlsDirty(),this._parent&&!v.onlySelf&&this._parent._updatePristine(v)}_updateTouched(v={}){this.touched=this._anyControlsTouched(),this._parent&&!v.onlySelf&&this._parent._updateTouched(v)}_isBoxedValue(v){return"object"==typeof v&&null!==v&&2===Object.keys(v).length&&"value"in v&&"disabled"in v}_registerOnCollectionChange(v){this._onCollectionChange=v}_setUpdateStrategy(v){ke(v)&&null!=v.updateOn&&(this._updateOn=v.updateOn)}_parentMarkedDirty(v){return!v&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class nt extends Se{constructor(v=null,b,U){super(un(b),yn(U,b)),this._onChange=[],this._applyFormState(v),this._setUpdateStrategy(b),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(v,b={}){this.value=this._pendingValue=v,this._onChange.length&&!1!==b.emitModelToViewChange&&this._onChange.forEach(U=>U(this.value,!1!==b.emitViewToModelChange)),this.updateValueAndValidity(b)}patchValue(v,b={}){this.setValue(v,b)}reset(v=null,b={}){this._applyFormState(v),this.markAsPristine(b),this.markAsUntouched(b),this.setValue(this.value,b),this._pendingChange=!1}_updateValue(){}_anyControls(v){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(v){this._onChange.push(v)}_unregisterOnChange(v){oe(this._onChange,v)}registerOnDisabledChange(v){this._onDisabledChange.push(v)}_unregisterOnDisabledChange(v){oe(this._onDisabledChange,v)}_forEachChild(v){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(v){this._isBoxedValue(v)?(this.value=this._pendingValue=v.value,v.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=v}}class ht extends Se{constructor(v,b,U){super(un(b),yn(U,b)),this.controls=v,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(v,b){return this.controls[v]?this.controls[v]:(this.controls[v]=b,b.setParent(this),b._registerOnCollectionChange(this._onCollectionChange),b)}addControl(v,b,U={}){this.registerControl(v,b),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}removeControl(v,b={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),delete this.controls[v],this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}setControl(v,b,U={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),delete this.controls[v],b&&this.registerControl(v,b),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}contains(v){return this.controls.hasOwnProperty(v)&&this.controls[v].enabled}setValue(v,b={}){this._checkAllValuesPresent(v),Object.keys(v).forEach(U=>{this._throwIfControlMissing(U),this.controls[U].setValue(v[U],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(v,b={}){null!=v&&(Object.keys(v).forEach(U=>{this.controls[U]&&this.controls[U].patchValue(v[U],{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(v={},b={}){this._forEachChild((U,Qe)=>{U.reset(v[Qe],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this._reduceChildren({},(v,b,U)=>(v[U]=b instanceof nt?b.value:b.getRawValue(),v))}_syncPendingControls(){let v=this._reduceChildren(!1,(b,U)=>!!U._syncPendingControls()||b);return v&&this.updateValueAndValidity({onlySelf:!0}),v}_throwIfControlMissing(v){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[v])throw new Error(`Cannot find form control with name: ${v}.`)}_forEachChild(v){Object.keys(this.controls).forEach(b=>{const U=this.controls[b];U&&v(U,b)})}_setUpControls(){this._forEachChild(v=>{v.setParent(this),v._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(v){for(const b of Object.keys(this.controls)){const U=this.controls[b];if(this.contains(b)&&v(U))return!0}return!1}_reduceValue(){return this._reduceChildren({},(v,b,U)=>((b.enabled||this.disabled)&&(v[U]=b.value),v))}_reduceChildren(v,b){let U=v;return this._forEachChild((Qe,St)=>{U=b(U,Qe,St)}),U}_allControlsDisabled(){for(const v of Object.keys(this.controls))if(this.controls[v].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(v){this._forEachChild((b,U)=>{if(void 0===v[U])throw new Error(`Must supply a value for form control with name: '${U}'.`)})}}class Rt extends Se{constructor(v,b,U){super(un(b),yn(U,b)),this.controls=v,this._initObservables(),this._setUpdateStrategy(b),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(v){return this.controls[v]}push(v,b={}){this.controls.push(v),this._registerControl(v),this.updateValueAndValidity({emitEvent:b.emitEvent}),this._onCollectionChange()}insert(v,b,U={}){this.controls.splice(v,0,b),this._registerControl(b),this.updateValueAndValidity({emitEvent:U.emitEvent})}removeAt(v,b={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),this.controls.splice(v,1),this.updateValueAndValidity({emitEvent:b.emitEvent})}setControl(v,b,U={}){this.controls[v]&&this.controls[v]._registerOnCollectionChange(()=>{}),this.controls.splice(v,1),b&&(this.controls.splice(v,0,b),this._registerControl(b)),this.updateValueAndValidity({emitEvent:U.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(v,b={}){this._checkAllValuesPresent(v),v.forEach((U,Qe)=>{this._throwIfControlMissing(Qe),this.at(Qe).setValue(U,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b)}patchValue(v,b={}){null!=v&&(v.forEach((U,Qe)=>{this.at(Qe)&&this.at(Qe).patchValue(U,{onlySelf:!0,emitEvent:b.emitEvent})}),this.updateValueAndValidity(b))}reset(v=[],b={}){this._forEachChild((U,Qe)=>{U.reset(v[Qe],{onlySelf:!0,emitEvent:b.emitEvent})}),this._updatePristine(b),this._updateTouched(b),this.updateValueAndValidity(b)}getRawValue(){return this.controls.map(v=>v instanceof nt?v.value:v.getRawValue())}clear(v={}){this.controls.length<1||(this._forEachChild(b=>b._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:v.emitEvent}))}_syncPendingControls(){let v=this.controls.reduce((b,U)=>!!U._syncPendingControls()||b,!1);return v&&this.updateValueAndValidity({onlySelf:!0}),v}_throwIfControlMissing(v){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(v))throw new Error(`Cannot find form control at index ${v}`)}_forEachChild(v){this.controls.forEach((b,U)=>{v(b,U)})}_updateValue(){this.value=this.controls.filter(v=>v.enabled||this.disabled).map(v=>v.value)}_anyControls(v){return this.controls.some(b=>b.enabled&&v(b))}_setUpControls(){this._forEachChild(v=>this._registerControl(v))}_checkAllValuesPresent(v){this._forEachChild((b,U)=>{if(void 0===v[U])throw new Error(`Must supply a value for form control at index: ${U}.`)})}_allControlsDisabled(){for(const v of this.controls)if(v.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(v){v.setParent(this),v._registerOnCollectionChange(this._onCollectionChange)}}const ee={provide:Oe,useExisting:(0,o.forwardRef)(()=>ve)},Y=(()=>Promise.resolve(null))();let ve=(()=>{class m extends Oe{constructor(b,U){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new o.EventEmitter,this.form=new ht({},tt(b),It(U))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(b){Y.then(()=>{const U=this._findContainer(b.path);b.control=U.registerControl(b.name,b.control),xt(b.control,b),b.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(b)})}getControl(b){return this.form.get(b.path)}removeControl(b){Y.then(()=>{const U=this._findContainer(b.path);U&&U.removeControl(b.name),oe(this._directives,b)})}addFormGroup(b){Y.then(()=>{const U=this._findContainer(b.path),Qe=new ht({});B(Qe,b),U.registerControl(b.name,Qe),Qe.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(b){Y.then(()=>{const U=this._findContainer(b.path);U&&U.removeControl(b.name)})}getFormGroup(b){return this.form.get(b.path)}updateModel(b,U){Y.then(()=>{this.form.get(b.path).setValue(U)})}setValue(b){this.control.setValue(b)}onSubmit(b){return this.submitted=!0,J(this.form,this._directives),this.ngSubmit.emit(b),!1}onReset(){this.resetForm()}resetForm(b){this.form.reset(b),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(b){return b.pop(),b.length?this.form.get(b):this.form}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(he,10),o.\u0275\u0275directiveInject(ye,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("submit",function(St){return U.onSubmit(St)})("reset",function(){return U.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([ee]),o.\u0275\u0275InheritDefinitionFeature]}),m})(),Ke=(()=>{class m extends Oe{ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Et(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,features:[o.\u0275\u0275InheritDefinitionFeature]}),m})();const pe={provide:Oe,useExisting:(0,o.forwardRef)(()=>Ve)};let Ve=(()=>{class m extends Ke{constructor(b,U,Qe){super(),this._parent=b,this._setValidators(U),this._setAsyncValidators(Qe)}_checkParentType(){}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Oe,5),o.\u0275\u0275directiveInject(he,10),o.\u0275\u0275directiveInject(ye,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[o.\u0275\u0275ProvidersFeature([pe]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const lt={provide:rt,useExisting:(0,o.forwardRef)(()=>qt)},$t=(()=>Promise.resolve(null))();let qt=(()=>{class m extends rt{constructor(b,U,Qe,St){super(),this.control=new nt,this._registered=!1,this.update=new o.EventEmitter,this._parent=b,this._setValidators(U),this._setAsyncValidators(Qe),this.valueAccessor=N(0,St)}ngOnChanges(b){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in b&&this._updateDisabled(b),Ee(b,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?Et(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){xt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(b){$t.then(()=>{this.control.setValue(b,{emitViewToModelChange:!1})})}_updateDisabled(b){const U=b.isDisabled.currentValue,Qe=""===U||U&&"false"!==U;$t.then(()=>{Qe&&!this.control.disabled?this.control.disable():!Qe&&this.control.disabled&&this.control.enable()})}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Oe,9),o.\u0275\u0275directiveInject(he,10),o.\u0275\u0275directiveInject(ye,10),o.\u0275\u0275directiveInject(D,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o.\u0275\u0275ProvidersFeature([lt]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})(),Wt=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),m})();const Mn={provide:D,useExisting:(0,o.forwardRef)(()=>gi),multi:!0};let gi=(()=>{class m extends w{writeValue(b){this.setProperty("value",null==b?"":b)}registerOnChange(b){this.onChange=U=>{b(""==U?null:parseFloat(U))}}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("input",function(St){return U.onChange(St.target.value)})("blur",function(){return U.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([Mn]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const bi={provide:D,useExisting:(0,o.forwardRef)(()=>ei),multi:!0};let qn=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({}),m})(),_i=(()=>{class m{constructor(){this._accessors=[]}add(b,U){this._accessors.push([b,U])}remove(b){for(let U=this._accessors.length-1;U>=0;--U)if(this._accessors[U][1]===b)return void this._accessors.splice(U,1)}select(b){this._accessors.forEach(U=>{this._isSameGroup(U,b)&&U[1]!==b&&U[1].fireUncheck(b.value)})}_isSameGroup(b,U){return!!b[0].control&&b[0]._parent===U._control._parent&&b[1].name===U.name}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:function(){return new m},token:m,providedIn:qn}),m})(),ei=(()=>{class m extends w{constructor(b,U,Qe,St){super(b,U),this._registry=Qe,this._injector=St,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(rt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(b){this._state=b===this.value,this.setProperty("checked",this._state)}registerOnChange(b){this._fn=b,this.onChange=()=>{b(this.value),this._registry.select(this)}}fireUncheck(b){this.writeValue(b)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(_i),o.\u0275\u0275directiveInject(o.Injector))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(){return U.onChange()})("blur",function(){return U.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[o.\u0275\u0275ProvidersFeature([bi]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const xn={provide:D,useExisting:(0,o.forwardRef)(()=>Xi),multi:!0};let Xi=(()=>{class m extends w{writeValue(b){this.setProperty("value",parseFloat(b))}registerOnChange(b){this.onChange=U=>{b(""==U?null:parseFloat(U))}}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target.value)})("input",function(St){return U.onChange(St.target.value)})("blur",function(){return U.onTouched()})},features:[o.\u0275\u0275ProvidersFeature([xn]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const ti=new o.InjectionToken("NgModelWithFormControlWarning"),Cn={provide:rt,useExisting:(0,o.forwardRef)(()=>Ci)};let Ci=(()=>{class m extends rt{constructor(b,U,Qe,St){super(),this._ngModelWarningConfig=St,this.update=new o.EventEmitter,this._ngModelWarningSent=!1,this._setValidators(b),this._setAsyncValidators(U),this.valueAccessor=N(0,Qe)}set isDisabled(b){}ngOnChanges(b){if(this._isControlChanged(b)){const U=b.form.previousValue;U&&Nt(U,this,!1),xt(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ee(b,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Nt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}_isControlChanged(b){return b.hasOwnProperty("form")}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(he,10),o.\u0275\u0275directiveInject(ye,10),o.\u0275\u0275directiveInject(D,10),o.\u0275\u0275directiveInject(ti,8))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([Cn]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m._ngModelWarningSentOnce=!1,m})();const ci={provide:Oe,useExisting:(0,o.forwardRef)(()=>ui)};let ui=(()=>{class m extends Oe{constructor(b,U){super(),this.validators=b,this.asyncValidators=U,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new o.EventEmitter,this._setValidators(b),this._setAsyncValidators(U)}ngOnChanges(b){this._checkFormPresent(),b.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Lt(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(b){const U=this.form.get(b.path);return xt(U,b),U.updateValueAndValidity({emitEvent:!1}),this.directives.push(b),U}getControl(b){return this.form.get(b.path)}removeControl(b){Nt(b.control||null,b,!1),oe(this.directives,b)}addFormGroup(b){this._setUpFormContainer(b)}removeFormGroup(b){this._cleanUpFormContainer(b)}getFormGroup(b){return this.form.get(b.path)}addFormArray(b){this._setUpFormContainer(b)}removeFormArray(b){this._cleanUpFormContainer(b)}getFormArray(b){return this.form.get(b.path)}updateModel(b,U){this.form.get(b.path).setValue(U)}onSubmit(b){return this.submitted=!0,J(this.form,this.directives),this.ngSubmit.emit(b),!1}onReset(){this.resetForm()}resetForm(b){this.form.reset(b),this.submitted=!1}_updateDomValue(){this.directives.forEach(b=>{const U=b.control,Qe=this.form.get(b.path);U!==Qe&&(Nt(U||null,b),Qe instanceof nt&&(xt(Qe,b),b.control=Qe))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(b){const U=this.form.get(b.path);B(U,b),U.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(b){if(this.form){const U=this.form.get(b.path);U&&function(m,v){return Lt(m,v)}(U,b)&&U.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){At(this.form,this),this._oldForm&&Lt(this._oldForm,this)}_checkFormPresent(){}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(he,10),o.\u0275\u0275directiveInject(ye,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formGroup",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("submit",function(St){return U.onSubmit(St)})("reset",function(){return U.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o.\u0275\u0275ProvidersFeature([ci]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})();const ni={provide:Oe,useExisting:(0,o.forwardRef)(()=>Un)};let Un=(()=>{class m extends Ke{constructor(b,U,Qe){super(),this._parent=b,this._setValidators(U),this._setAsyncValidators(Qe)}_checkParentType(){qr(this._parent)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Oe,13),o.\u0275\u0275directiveInject(he,10),o.\u0275\u0275directiveInject(ye,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[o.\u0275\u0275ProvidersFeature([ni]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const kr={provide:Oe,useExisting:(0,o.forwardRef)(()=>mr)};let mr=(()=>{class m extends Oe{constructor(b,U,Qe){super(),this._parent=b,this._setValidators(U),this._setAsyncValidators(Qe)}ngOnInit(){this._checkParentType(),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Et(null==this.name?this.name:this.name.toString(),this._parent)}_checkParentType(){qr(this._parent)}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Oe,13),o.\u0275\u0275directiveInject(he,10),o.\u0275\u0275directiveInject(ye,10))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[o.\u0275\u0275ProvidersFeature([kr]),o.\u0275\u0275InheritDefinitionFeature]}),m})();function qr(m){return!(m instanceof Un||m instanceof ui||m instanceof mr)}const gr={provide:rt,useExisting:(0,o.forwardRef)(()=>Fr)};let Fr=(()=>{class m extends rt{constructor(b,U,Qe,St,Zt){super(),this._ngModelWarningConfig=Zt,this._added=!1,this.update=new o.EventEmitter,this._ngModelWarningSent=!1,this._parent=b,this._setValidators(U),this._setAsyncValidators(Qe),this.valueAccessor=N(0,St)}set isDisabled(b){}ngOnChanges(b){this._added||this._setUpControl(),Ee(b,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(b){this.viewModel=b,this.update.emit(b)}get path(){return Et(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(Oe,13),o.\u0275\u0275directiveInject(he,10),o.\u0275\u0275directiveInject(ye,10),o.\u0275\u0275directiveInject(D,10),o.\u0275\u0275directiveInject(ti,8))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[o.\u0275\u0275ProvidersFeature([gr]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m._ngModelWarningSentOnce=!1,m})();const Nr={provide:D,useExisting:(0,o.forwardRef)(()=>Di),multi:!0};function eo(m,v){return null==m?`${v}`:(v&&"object"==typeof v&&(v="Object"),`${m}: ${v}`.slice(0,50))}let Di=(()=>{class m extends w{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(b){this._compareWith=b}writeValue(b){this.value=b;const U=this._getOptionId(b);null==U&&this.setProperty("selectedIndex",-1);const Qe=eo(U,b);this.setProperty("value",Qe)}registerOnChange(b){this.onChange=U=>{this.value=this._getOptionValue(U),b(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(b){for(const U of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(U),b))return U;return null}_getOptionValue(b){const U=function(m){return m.split(":")[0]}(b);return this._optionMap.has(U)?this._optionMap.get(U):b}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target.value)})("blur",function(){return U.onTouched()})},inputs:{compareWith:"compareWith"},features:[o.\u0275\u0275ProvidersFeature([Nr]),o.\u0275\u0275InheritDefinitionFeature]}),m})(),po=(()=>{class m{constructor(b,U,Qe){this._element=b,this._renderer=U,this._select=Qe,this._select&&(this.id=this._select._registerOption())}set ngValue(b){null!=this._select&&(this._select._optionMap.set(this.id,b),this._setElementValue(eo(this.id,b)),this._select.writeValue(this._select.value))}set value(b){this._setElementValue(b),this._select&&this._select.writeValue(this._select.value)}_setElementValue(b){this._renderer.setProperty(this._element.nativeElement,"value",b)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(Di,9))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),m})();const ii={provide:D,useExisting:(0,o.forwardRef)(()=>_r),multi:!0};function Ti(m,v){return null==m?`${v}`:("string"==typeof v&&(v=`'${v}'`),v&&"object"==typeof v&&(v="Object"),`${m}: ${v}`.slice(0,50))}let _r=(()=>{class m extends w{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(b){this._compareWith=b}writeValue(b){let U;if(this.value=b,Array.isArray(b)){const Qe=b.map(St=>this._getOptionId(St));U=(St,Zt)=>{St._setSelected(Qe.indexOf(Zt.toString())>-1)}}else U=(Qe,St)=>{Qe._setSelected(!1)};this._optionMap.forEach(U)}registerOnChange(b){this.onChange=U=>{const Qe=[];if(void 0!==U.selectedOptions){const St=U.selectedOptions;for(let Zt=0;Zt<St.length;Zt++){const fn=St.item(Zt),rn=this._getOptionValue(fn.value);Qe.push(rn)}}else{const St=U.options;for(let Zt=0;Zt<St.length;Zt++){const fn=St.item(Zt);if(fn.selected){const rn=this._getOptionValue(fn.value);Qe.push(rn)}}}this.value=Qe,b(Qe)}}_registerOption(b){const U=(this._idCounter++).toString();return this._optionMap.set(U,b),U}_getOptionId(b){for(const U of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(U)._value,b))return U;return null}_getOptionValue(b){const U=function(m){return m.split(":")[0]}(b);return this._optionMap.has(U)?this._optionMap.get(U)._value:b}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(b,U){1&b&&o.\u0275\u0275listener("change",function(St){return U.onChange(St.target)})("blur",function(){return U.onTouched()})},inputs:{compareWith:"compareWith"},features:[o.\u0275\u0275ProvidersFeature([ii]),o.\u0275\u0275InheritDefinitionFeature]}),m})(),Lr=(()=>{class m{constructor(b,U,Qe){this._element=b,this._renderer=U,this._select=Qe,this._select&&(this.id=this._select._registerOption(this))}set ngValue(b){null!=this._select&&(this._value=b,this._setElementValue(Ti(this.id,b)),this._select.writeValue(this._select.value))}set value(b){this._select?(this._value=b,this._setElementValue(Ti(this.id,b)),this._select.writeValue(this._select.value)):this._setElementValue(b)}_setElementValue(b){this._renderer.setProperty(this._element.nativeElement,"value",b)}_setSelected(b){this._renderer.setProperty(this._element.nativeElement,"selected",b)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return m.\u0275fac=function(b){return new(b||m)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(_r,9))},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),m})();function jr(m){return"number"==typeof m?m:parseInt(m,10)}let wi=(()=>{class m{constructor(){this._validator=X}handleChanges(b){if(this.inputName in b){const U=this.normalizeInput(b[this.inputName].currentValue);this._validator=this.createValidator(U),this._onChange&&this._onChange()}}validate(b){return this._validator(b)}registerOnValidatorChange(b){this._onChange=b}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m}),m})();const Li={provide:he,useExisting:(0,o.forwardRef)(()=>Br),multi:!0};let Br=(()=>{class m extends wi{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=b=>parseFloat(b),this.createValidator=b=>Me(b)}ngOnChanges(b){this.handleChanges(b)}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(b,U){if(2&b){let Qe;o.\u0275\u0275attribute("max",null!==(Qe=U.max)&&void 0!==Qe?Qe:null)}},inputs:{max:"max"},features:[o.\u0275\u0275ProvidersFeature([Li]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})();const qi={provide:he,useExisting:(0,o.forwardRef)(()=>yr),multi:!0};let yr=(()=>{class m extends wi{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=b=>parseFloat(b),this.createValidator=b=>Ze(b)}ngOnChanges(b){this.handleChanges(b)}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(b,U){if(2&b){let Qe;o.\u0275\u0275attribute("min",null!==(Qe=U.min)&&void 0!==Qe?Qe:null)}},inputs:{min:"min"},features:[o.\u0275\u0275ProvidersFeature([qi]),o.\u0275\u0275InheritDefinitionFeature,o.\u0275\u0275NgOnChangesFeature]}),m})();const yi={provide:he,useExisting:(0,o.forwardRef)(()=>Mi),multi:!0},er={provide:he,useExisting:(0,o.forwardRef)(()=>ji),multi:!0};let Mi=(()=>{class m{constructor(){this._required=!1}get required(){return this._required}set required(b){this._required=null!=b&&!1!==b&&"false"!=`${b}`,this._onChange&&this._onChange()}validate(b){return this.required?Re(b):null}registerOnValidatorChange(b){this._onChange=b}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("required",U.required?"":null)},inputs:{required:"required"},features:[o.\u0275\u0275ProvidersFeature([yi])]}),m})(),ji=(()=>{class m extends Mi{validate(b){return this.required?Pe(b):null}}return m.\u0275fac=function(){let v;return function(U){return(v||(v=o.\u0275\u0275getInheritedFactory(m)))(U||m)}}(),m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("required",U.required?"":null)},features:[o.\u0275\u0275ProvidersFeature([er]),o.\u0275\u0275InheritDefinitionFeature]}),m})();const Vr={provide:he,useExisting:(0,o.forwardRef)(()=>tr),multi:!0};let tr=(()=>{class m{constructor(){this._enabled=!1}set email(b){this._enabled=""===b||!0===b||"true"===b,this._onChange&&this._onChange()}validate(b){return this._enabled?Ne(b):null}registerOnValidatorChange(b){this._onChange=b}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[o.\u0275\u0275ProvidersFeature([Vr])]}),m})();const vr={provide:he,useExisting:(0,o.forwardRef)(()=>br),multi:!0};let br=(()=>{class m{constructor(){this._validator=X}ngOnChanges(b){"minlength"in b&&(this._createValidator(),this._onChange&&this._onChange())}validate(b){return this.enabled()?this._validator(b):null}registerOnValidatorChange(b){this._onChange=b}_createValidator(){this._validator=this.enabled()?Ct(jr(this.minlength)):X}enabled(){return null!=this.minlength}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("minlength",U.enabled()?U.minlength:null)},inputs:{minlength:"minlength"},features:[o.\u0275\u0275ProvidersFeature([vr]),o.\u0275\u0275NgOnChangesFeature]}),m})();const Hr={provide:he,useExisting:(0,o.forwardRef)(()=>Si),multi:!0};let Si=(()=>{class m{constructor(){this._validator=X}ngOnChanges(b){"maxlength"in b&&(this._createValidator(),this._onChange&&this._onChange())}validate(b){return this.enabled()?this._validator(b):null}registerOnValidatorChange(b){this._onChange=b}_createValidator(){this._validator=this.enabled()?te(jr(this.maxlength)):X}enabled(){return null!=this.maxlength}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("maxlength",U.enabled()?U.maxlength:null)},inputs:{maxlength:"maxlength"},features:[o.\u0275\u0275ProvidersFeature([Hr]),o.\u0275\u0275NgOnChangesFeature]}),m})();const $r={provide:he,useExisting:(0,o.forwardRef)(()=>Rn),multi:!0};let Rn=(()=>{class m{constructor(){this._validator=X}ngOnChanges(b){"pattern"in b&&(this._createValidator(),this._onChange&&this._onChange())}validate(b){return this._validator(b)}registerOnValidatorChange(b){this._onChange=b}_createValidator(){this._validator=ge(this.pattern)}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275dir=o.\u0275\u0275defineDirective({type:m,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(b,U){2&b&&o.\u0275\u0275attribute("pattern",U.pattern?U.pattern:null)},inputs:{pattern:"pattern"},features:[o.\u0275\u0275ProvidersFeature([$r]),o.\u0275\u0275NgOnChangesFeature]}),m})();const Cr=[Wt,po,Lr,L,gi,Xi,E,Di,_r,ei,He,q,Mi,br,Si,Rn,ji,tr,yr,Br],no=[qt,Ve,ve],Er=[Ci,ui,Fr,Un,mr];let Dr=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({imports:[[qn]]}),m})(),Tr=(()=>{class m{}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({imports:[Dr]}),m})(),go=(()=>{class m{static withConfig(b){return{ngModule:m,providers:[{provide:ti,useValue:b.warnOnNgModelWithFormControl}]}}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275mod=o.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=o.\u0275\u0275defineInjector({imports:[Dr]}),m})(),ie=(()=>{class m{group(b,U=null){const Qe=this._reduceControls(b);let fn,St=null,Zt=null;return null!=U&&(function(m){return void 0!==m.asyncValidators||void 0!==m.validators||void 0!==m.updateOn}(U)?(St=null!=U.validators?U.validators:null,Zt=null!=U.asyncValidators?U.asyncValidators:null,fn=null!=U.updateOn?U.updateOn:void 0):(St=null!=U.validator?U.validator:null,Zt=null!=U.asyncValidator?U.asyncValidator:null)),new ht(Qe,{asyncValidators:Zt,updateOn:fn,validators:St})}control(b,U,Qe){return new nt(b,U,Qe)}array(b,U,Qe){const St=b.map(Zt=>this._createControl(Zt));return new Rt(St,U,Qe)}_reduceControls(b){const U={};return Object.keys(b).forEach(Qe=>{U[Qe]=this._createControl(b[Qe])}),U}_createControl(b){return b instanceof nt||b instanceof ht||b instanceof Rt?b:Array.isArray(b)?this.control(b[0],b.length>1?b[1]:null,b.length>2?b[2]:null):this.control(b)}}return m.\u0275fac=function(b){return new(b||m)},m.\u0275prov=(0,o.\u0275\u0275defineInjectable)({factory:function(){return new m},token:m,providedIn:go}),m})();const k=new o.Version("12.2.15")},1095:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MatAnchor:()=>S,MatButton:()=>M,MatButtonModule:()=>P});var o=d(2458),l=d(6237),h=d(7716),_=d(9238);const a=["mat-button",""],C=["*"],w=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",g=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],E=(0,o.pj)((0,o.Id)((0,o.Kr)(class{constructor(L){this._elementRef=L}})));let M=(()=>{class L extends E{constructor(ae,he,ye){super(ae),this._focusMonitor=he,this._animationMode=ye,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const $e of g)this._hasHostAttributes($e)&&this._getHostElement().classList.add($e);ae.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(ae,he){ae?this._focusMonitor.focusVia(this._getHostElement(),ae,he):this._getHostElement().focus(he)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...ae){return ae.some(he=>this._getHostElement().hasAttribute(he))}}return L.\u0275fac=function(ae){return new(ae||L)(h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(_.tE),h.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},L.\u0275cmp=h.\u0275\u0275defineComponent({type:L,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(ae,he){if(1&ae&&h.\u0275\u0275viewQuery(o.wG,5),2&ae){let ye;h.\u0275\u0275queryRefresh(ye=h.\u0275\u0275loadQuery())&&(he.ripple=ye.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(ae,he){2&ae&&(h.\u0275\u0275attribute("disabled",he.disabled||null),h.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===he._animationMode)("mat-button-disabled",he.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[h.\u0275\u0275InheritDefinitionFeature],attrs:a,ngContentSelectors:C,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ae,he){1&ae&&(h.\u0275\u0275projectionDef(),h.\u0275\u0275elementStart(0,"span",0),h.\u0275\u0275projection(1),h.\u0275\u0275elementEnd(),h.\u0275\u0275element(2,"span",1),h.\u0275\u0275element(3,"span",2)),2&ae&&(h.\u0275\u0275advance(2),h.\u0275\u0275classProp("mat-button-ripple-round",he.isRoundButton||he.isIconButton),h.\u0275\u0275property("matRippleDisabled",he._isRippleDisabled())("matRippleCentered",he.isIconButton)("matRippleTrigger",he._getHostElement()))},directives:[o.wG],styles:[w],encapsulation:2,changeDetection:0}),L})(),S=(()=>{class L extends M{constructor(ae,he,ye){super(he,ae,ye)}_haltDisabledEvents(ae){this.disabled&&(ae.preventDefault(),ae.stopImmediatePropagation())}}return L.\u0275fac=function(ae){return new(ae||L)(h.\u0275\u0275directiveInject(_.tE),h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(l.ANIMATION_MODULE_TYPE,8))},L.\u0275cmp=h.\u0275\u0275defineComponent({type:L,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(ae,he){1&ae&&h.\u0275\u0275listener("click",function($e){return he._haltDisabledEvents($e)}),2&ae&&(h.\u0275\u0275attribute("tabindex",he.disabled?-1:he.tabIndex||0)("disabled",he.disabled||null)("aria-disabled",he.disabled.toString()),h.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===he._animationMode)("mat-button-disabled",he.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[h.\u0275\u0275InheritDefinitionFeature],attrs:a,ngContentSelectors:C,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(ae,he){1&ae&&(h.\u0275\u0275projectionDef(),h.\u0275\u0275elementStart(0,"span",0),h.\u0275\u0275projection(1),h.\u0275\u0275elementEnd(),h.\u0275\u0275element(2,"span",1),h.\u0275\u0275element(3,"span",2)),2&ae&&(h.\u0275\u0275advance(2),h.\u0275\u0275classProp("mat-button-ripple-round",he.isRoundButton||he.isIconButton),h.\u0275\u0275property("matRippleDisabled",he._isRippleDisabled())("matRippleCentered",he.isIconButton)("matRippleTrigger",he._getHostElement()))},directives:[o.wG],styles:[w],encapsulation:2,changeDetection:0}),L})(),P=(()=>{class L{}return L.\u0275fac=function(ae){return new(ae||L)},L.\u0275mod=h.\u0275\u0275defineNgModule({type:L}),L.\u0275inj=h.\u0275\u0275defineInjector({imports:[[o.si,o.BQ],o.BQ]}),L})()},2675:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_CHIPS_DEFAULT_OPTIONS:()=>Lt,MAT_CHIP_AVATAR:()=>Be,MAT_CHIP_REMOVE:()=>re,MAT_CHIP_TRAILING_ICON:()=>gt,MatChip:()=>Qt,MatChipAvatar:()=>Nt,MatChipInput:()=>K,MatChipList:()=>Pt,MatChipListChange:()=>qe,MatChipRemove:()=>At,MatChipSelectionChange:()=>z,MatChipTrailingIcon:()=>Ut,MatChipsModule:()=>Ee,\u02750:()=>De});var o=d(6461),l=d(7716),h=d(2458),_=d(9490),a=d(8583),C=d(6237),w=d(9765),D=d(6682),g=d(5257),E=d(6782),M=d(9761),S=d(9238),P=d(8345),he=(d(8553),d(2759),d(7238),d(946)),ye=d(521);let Xe=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q}),Q})();var R=d(3679);const de=["*"];class z{constructor(J,N,oe=!1){this.source=J,this.selected=N,this.isUserInput=oe}}const re=new l.InjectionToken("MatChipRemove"),Be=new l.InjectionToken("MatChipAvatar"),gt=new l.InjectionToken("MatChipTrailingIcon");class Et{constructor(J){this._elementRef=J}}const xt=(0,h.sb)((0,h.pj)((0,h.Kr)(Et),"primary"),-1);let Nt=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"],features:[l.\u0275\u0275ProvidersFeature([{provide:Be,useExisting:Q}])]}),Q})(),Ut=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"],features:[l.\u0275\u0275ProvidersFeature([{provide:gt,useExisting:Q}])]}),Q})(),Qt=(()=>{class Q extends xt{constructor(N,oe,st,_t,Ht,dn,cn,an){super(N),this._ngZone=oe,this._changeDetectorRef=Ht,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new w.xQ,this._onBlur=new w.xQ,this.selectionChange=new l.EventEmitter,this.destroyed=new l.EventEmitter,this.removed=new l.EventEmitter,this._addHostClassName(),this._chipRippleTarget=dn.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new h.IR(this,oe,this._chipRippleTarget,st),this._chipRipple.setupTriggerEvents(N),this.rippleConfig=_t||{},this._animationsDisabled="NoopAnimations"===cn,this.tabIndex=null!=an&&parseInt(an)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(N){const oe=(0,_.Ig)(N);oe!==this._selected&&(this._selected=oe,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(N){this._value=N}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(N){this._selectable=(0,_.Ig)(N)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(N){this._disabled=(0,_.Ig)(N)}get removable(){return this._removable}set removable(N){this._removable=(0,_.Ig)(N)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const N="mat-basic-chip",oe=this._elementRef.nativeElement;oe.hasAttribute(N)||oe.tagName.toLowerCase()===N?oe.classList.add(N):oe.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(N=!1){return this._selected=!this.selected,this._dispatchSelectionChange(N),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(N){this.disabled?N.preventDefault():N.stopPropagation()}_handleKeydown(N){if(!this.disabled)switch(N.keyCode){case o.yY:case o.ZH:this.remove(),N.preventDefault();break;case o.L_:this.selectable&&this.toggleSelected(!0),N.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,g.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(N=!1){this.selectionChange.emit({source:this,isUserInput:N,selected:this._selected})}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.NgZone),l.\u0275\u0275directiveInject(ye.t4),l.\u0275\u0275directiveInject(h.Y2,8),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(a.DOCUMENT),l.\u0275\u0275directiveInject(C.ANIMATION_MODULE_TYPE,8),l.\u0275\u0275injectAttribute("tabindex"))},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(N,oe,st){if(1&N&&(l.\u0275\u0275contentQuery(st,Be,5),l.\u0275\u0275contentQuery(st,gt,5),l.\u0275\u0275contentQuery(st,re,5)),2&N){let _t;l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(oe.avatar=_t.first),l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(oe.trailingIcon=_t.first),l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(oe.removeIcon=_t.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(N,oe){1&N&&l.\u0275\u0275listener("click",function(_t){return oe._handleClick(_t)})("keydown",function(_t){return oe._handleKeydown(_t)})("focus",function(){return oe.focus()})("blur",function(){return oe._blur()}),2&N&&(l.\u0275\u0275attribute("tabindex",oe.disabled?null:oe.tabIndex)("disabled",oe.disabled||null)("aria-disabled",oe.disabled.toString())("aria-selected",oe.ariaSelected),l.\u0275\u0275classProp("mat-chip-selected",oe.selected)("mat-chip-with-avatar",oe.avatar)("mat-chip-with-trailing-icon",oe.trailingIcon||oe.removeIcon)("mat-chip-disabled",oe.disabled)("_mat-animation-noopable",oe._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[l.\u0275\u0275InheritDefinitionFeature]}),Q})(),At=(()=>{class Q{constructor(N,oe){this._parentChip=N,"BUTTON"===oe.nativeElement.nodeName&&oe.nativeElement.setAttribute("type","button")}_handleClick(N){const oe=this._parentChip;oe.removable&&!oe.disabled&&oe.remove(),N.stopPropagation()}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(Qt),l.\u0275\u0275directiveInject(l.ElementRef))},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(N,oe){1&N&&l.\u0275\u0275listener("click",function(_t){return oe._handleClick(_t)})},features:[l.\u0275\u0275ProvidersFeature([{provide:re,useExisting:Q}])]}),Q})();const Lt=new l.InjectionToken("mat-chips-default-options"),jt=(0,h.FD)(class{constructor(Q,J,N,oe){this._defaultErrorStateMatcher=Q,this._parentForm=J,this._parentFormGroup=N,this.ngControl=oe}});let _n=0;class qe{constructor(J,N){this.source=J,this.value=N}}let Pt=(()=>{class Q extends jt{constructor(N,oe,st,_t,Ht,dn,cn){super(dn,_t,Ht,cn),this._elementRef=N,this._changeDetectorRef=oe,this._dir=st,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new w.xQ,this._uid="mat-chip-list-"+_n++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(an,un)=>an===un,this._required=!1,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new l.EventEmitter,this.valueChange=new l.EventEmitter,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var N,oe;return this.multiple?(null===(N=this._selectionModel)||void 0===N?void 0:N.selected)||[]:null===(oe=this._selectionModel)||void 0===oe?void 0:oe.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(N){this._multiple=(0,_.Ig)(N),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(N){this._compareWith=N,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(N){this.writeValue(N),this._value=N}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){return this._required}set required(N){this._required=(0,_.Ig)(N),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(N){this._placeholder=N,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(N){this._disabled=(0,_.Ig)(N),this._syncChipsState()}get selectable(){return this._selectable}set selectable(N){this._selectable=(0,_.Ig)(N),this.chips&&this.chips.forEach(oe=>oe.chipListSelectable=this._selectable)}set tabIndex(N){this._userTabIndex=N,this._tabIndex=N}get chipSelectionChanges(){return(0,D.T)(...this.chips.map(N=>N.selectionChange))}get chipFocusChanges(){return(0,D.T)(...this.chips.map(N=>N._onFocus))}get chipBlurChanges(){return(0,D.T)(...this.chips.map(N=>N._onBlur))}get chipRemoveChanges(){return(0,D.T)(...this.chips.map(N=>N.destroyed))}ngAfterContentInit(){this._keyManager=new S.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,E.R)(this._destroyed)).subscribe(N=>this._keyManager.withHorizontalOrientation(N)),this._keyManager.tabOut.pipe((0,E.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,M.O)(null),(0,E.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new P.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(N){this._chipInput=N,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",N.id)}setDescribedByIds(N){this._ariaDescribedby=N.join(" ")}writeValue(N){this.chips&&this._setSelectionByValue(N,!1)}registerOnChange(N){this._onChange=N}registerOnTouched(N){this._onTouched=N}setDisabledState(N){this.disabled=N,this.stateChanges.next()}onContainerClick(N){this._originatesFromChip(N)||this.focus()}focus(N){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(N),this.stateChanges.next()))}_focusInput(N){this._chipInput&&this._chipInput.focus(N)}_keydown(N){const oe=N.target;oe&&oe.classList.contains("mat-chip")&&(this._keyManager.onKeydown(N),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const N=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(N)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(N){return N>=0&&N<this.chips.length}_setSelectionByValue(N,oe=!0){if(this._clearSelection(),this.chips.forEach(st=>st.deselect()),Array.isArray(N))N.forEach(st=>this._selectValue(st,oe)),this._sortValues();else{const st=this._selectValue(N,oe);st&&oe&&this._keyManager.setActiveItem(st)}}_selectValue(N,oe=!0){const st=this.chips.find(_t=>null!=_t.value&&this._compareWith(_t.value,N));return st&&(oe?st.selectViaInteraction():st.select(),this._selectionModel.select(st)),st}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(N){this._selectionModel.clear(),this.chips.forEach(oe=>{oe!==N&&oe.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(N=>{N.selected&&this._selectionModel.select(N)}),this.stateChanges.next())}_propagateChanges(N){let oe=null;oe=Array.isArray(this.selected)?this.selected.map(st=>st.value):this.selected?this.selected.value:N,this._value=oe,this.change.emit(new qe(this,oe)),this.valueChange.emit(oe),this._onChange(oe),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(N=>{N.source.selected?this._selectionModel.select(N.source):this._selectionModel.deselect(N.source),this.multiple||this.chips.forEach(oe=>{!this._selectionModel.isSelected(oe)&&oe.selected&&oe.deselect()}),N.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(N=>{let oe=this.chips.toArray().indexOf(N.chip);this._isValidIndex(oe)&&this._keyManager.updateActiveItem(oe),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(N=>{const oe=N.chip,st=this.chips.toArray().indexOf(N.chip);this._isValidIndex(st)&&oe._hasFocus&&(this._lastDestroyedChipIndex=st)})}_originatesFromChip(N){let oe=N.target;for(;oe&&oe!==this._elementRef.nativeElement;){if(oe.classList.contains("mat-chip"))return!0;oe=oe.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(N=>N._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(N=>{N._chipListDisabled=this._disabled,N._chipListMultiple=this.multiple})}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(l.ChangeDetectorRef),l.\u0275\u0275directiveInject(he.Is,8),l.\u0275\u0275directiveInject(R.NgForm,8),l.\u0275\u0275directiveInject(R.FormGroupDirective,8),l.\u0275\u0275directiveInject(h.rD),l.\u0275\u0275directiveInject(R.NgControl,10))},Q.\u0275cmp=l.\u0275\u0275defineComponent({type:Q,selectors:[["mat-chip-list"]],contentQueries:function(N,oe,st){if(1&N&&l.\u0275\u0275contentQuery(st,Qt,5),2&N){let _t;l.\u0275\u0275queryRefresh(_t=l.\u0275\u0275loadQuery())&&(oe.chips=_t)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(N,oe){1&N&&l.\u0275\u0275listener("focus",function(){return oe.focus()})("blur",function(){return oe._blur()})("keydown",function(_t){return oe._keydown(_t)}),2&N&&(l.\u0275\u0275hostProperty("id",oe._uid),l.\u0275\u0275attribute("tabindex",oe.disabled?null:oe._tabIndex)("aria-describedby",oe._ariaDescribedby||null)("aria-required",oe.role?oe.required:null)("aria-disabled",oe.disabled.toString())("aria-invalid",oe.errorState)("aria-multiselectable",oe.multiple)("role",oe.role)("aria-orientation",oe.ariaOrientation),l.\u0275\u0275classProp("mat-chip-list-disabled",oe.disabled)("mat-chip-list-invalid",oe.errorState)("mat-chip-list-required",oe.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[l.\u0275\u0275ProvidersFeature([{provide:Xe,useExisting:Q}]),l.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:de,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(N,oe){1&N&&(l.\u0275\u0275projectionDef(),l.\u0275\u0275elementStart(0,"div",0),l.\u0275\u0275projection(1),l.\u0275\u0275elementEnd())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),Q})(),B=0,K=(()=>{class Q{constructor(N,oe){this._elementRef=N,this._defaultOptions=oe,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new l.EventEmitter,this.placeholder="",this.id="mat-chip-list-input-"+B++,this._disabled=!1,this.inputElement=this._elementRef.nativeElement}set chipList(N){N&&(this._chipList=N,this._chipList.registerInput(this))}get addOnBlur(){return this._addOnBlur}set addOnBlur(N){this._addOnBlur=(0,_.Ig)(N)}get disabled(){return this._disabled||this._chipList&&this._chipList.disabled}set disabled(N){this._disabled=(0,_.Ig)(N)}get empty(){return!this.inputElement.value}ngOnChanges(){this._chipList.stateChanges.next()}ngOnDestroy(){this.chipEnd.complete()}ngAfterContentInit(){this._focusLastChipOnBackspace=this.empty}_keydown(N){if(N){if(N.keyCode===o.Mf&&!(0,o.Vb)(N,"shiftKey")&&this._chipList._allowFocusEscape(),N.keyCode===o.ZH&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void N.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(N)}_keyup(N){!this._focusLastChipOnBackspace&&N.keyCode===o.ZH&&this.empty&&(this._focusLastChipOnBackspace=!0,N.preventDefault())}_blur(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}_focus(){this.focused=!0,this._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}_emitChipEnd(N){!this.inputElement.value&&!!N&&this._chipList._keydown(N),(!N||this._isSeparatorKey(N))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==N||N.preventDefault())}_onInput(){this._chipList.stateChanges.next()}focus(N){this.inputElement.focus(N)}clear(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}_isSeparatorKey(N){return!(0,o.Vb)(N)&&new Set(this.separatorKeyCodes).has(N.keyCode)}}return Q.\u0275fac=function(N){return new(N||Q)(l.\u0275\u0275directiveInject(l.ElementRef),l.\u0275\u0275directiveInject(Lt))},Q.\u0275dir=l.\u0275\u0275defineDirective({type:Q,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(N,oe){1&N&&l.\u0275\u0275listener("keydown",function(_t){return oe._keydown(_t)})("keyup",function(_t){return oe._keyup(_t)})("blur",function(){return oe._blur()})("focus",function(){return oe._focus()})("input",function(){return oe._onInput()}),2&N&&(l.\u0275\u0275hostProperty("id",oe.id),l.\u0275\u0275attribute("disabled",oe.disabled||null)("placeholder",oe.placeholder||null)("aria-invalid",oe._chipList&&oe._chipList.ngControl?oe._chipList.ngControl.invalid:null)("aria-required",oe._chipList&&oe._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[l.\u0275\u0275NgOnChangesFeature]}),Q})();const De={separatorKeyCodes:[o.K5]};let Ee=(()=>{class Q{}return Q.\u0275fac=function(N){return new(N||Q)},Q.\u0275mod=l.\u0275\u0275defineNgModule({type:Q}),Q.\u0275inj=l.\u0275\u0275defineInjector({providers:[h.rD,{provide:Lt,useValue:De}],imports:[[h.BQ]]}),Q})()},2458:(Le,T,d)=>{"use strict";d.d(T,{rD:()=>ne,Y2:()=>F,BQ:()=>Me,wG:()=>R,si:()=>de,IR:()=>vt,pj:()=>Pe,Kr:()=>Ne,Id:()=>Re,FD:()=>te,sb:()=>Ct});var o=d(7716),l=d(9238),h=d(946);const _=new o.Version("12.2.13");var a=d(8583),C=d(521),w=d(9490),D=d(9765),g=d(6237);d(6461);const $e=new o.Version("12.2.13"),Ze=new o.InjectionToken("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ue,Me=(()=>{class B{constructor(W,De,Ee){this._hasDoneGlobalChecks=!1,this._document=Ee,W._applyBodyHighContrastModeCssClasses(),this._sanityChecks=De,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_checkIsEnabled(W){return!(!(0,o.isDevMode)()||(0,C.Oy)())&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[W])}_checkDoctypeIsDefined(){this._checkIsEnabled("doctype")&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checkIsEnabled("theme")||!this._document.body||"function"!=typeof getComputedStyle)return;const W=this._document.createElement("div");W.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(W);const De=getComputedStyle(W);De&&"none"!==De.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(W)}_checkCdkVersionMatch(){this._checkIsEnabled("version")&&$e.full!==_.full&&console.warn("The Angular Material version ("+$e.full+") does not match the Angular CDK version ("+_.full+").\nPlease ensure the versions of these two packages exactly match.")}}return B.\u0275fac=function(W){return new(W||B)(o.\u0275\u0275inject(l.qm),o.\u0275\u0275inject(Ze,8),o.\u0275\u0275inject(a.DOCUMENT))},B.\u0275mod=o.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=o.\u0275\u0275defineInjector({imports:[[h.vT],h.vT]}),B})();function Re(B){return class extends B{constructor(...K){super(...K),this._disabled=!1}get disabled(){return this._disabled}set disabled(K){this._disabled=(0,w.Ig)(K)}}}function Pe(B,K){return class extends B{constructor(...W){super(...W),this.defaultColor=K,this.color=K}get color(){return this._color}set color(W){const De=W||this.defaultColor;De!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),De&&this._elementRef.nativeElement.classList.add(`mat-${De}`),this._color=De)}}}function Ne(B){return class extends B{constructor(...K){super(...K),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(K){this._disableRipple=(0,w.Ig)(K)}}}function Ct(B,K=0){return class extends B{constructor(...W){super(...W),this._tabIndex=K,this.defaultTabIndex=K}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(W){this._tabIndex=null!=W?(0,w.su)(W):this.defaultTabIndex}}}function te(B){return class extends B{constructor(...K){super(...K),this.stateChanges=new D.xQ,this.errorState=!1}updateErrorState(){const K=this.errorState,Q=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);Q!==K&&(this.errorState=Q,this.stateChanges.next())}}}try{Ue="undefined"!=typeof Intl}catch(B){Ue=!1}let ne=(()=>{class B{isErrorState(W,De){return!!(W&&W.invalid&&(W.touched||De&&De.submitted))}}return B.\u0275fac=function(W){return new(W||B)},B.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new B},token:B,providedIn:"root"}),B})();class Je{constructor(K,W,De){this._renderer=K,this.element=W,this.config=De,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ze={enterDuration:225,exitDuration:150},q=(0,C.i$)({passive:!0}),Ge=["mousedown","touchstart"],ft=["mouseup","mouseleave","touchend","touchcancel"];class vt{constructor(K,W,De,Ee){this._target=K,this._ngZone=W,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,Ee.isBrowser&&(this._containerElement=(0,w.fI)(De))}fadeInRipple(K,W,De={}){const Ee=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),Q=Object.assign(Object.assign({},ze),De.animation);De.centered&&(K=Ee.left+Ee.width/2,W=Ee.top+Ee.height/2);const J=De.radius||function(B,K,W){const De=Math.max(Math.abs(B-W.left),Math.abs(B-W.right)),Ee=Math.max(Math.abs(K-W.top),Math.abs(K-W.bottom));return Math.sqrt(De*De+Ee*Ee)}(K,W,Ee),N=K-Ee.left,oe=W-Ee.top,st=Q.enterDuration,_t=document.createElement("div");_t.classList.add("mat-ripple-element"),_t.style.left=N-J+"px",_t.style.top=oe-J+"px",_t.style.height=2*J+"px",_t.style.width=2*J+"px",null!=De.color&&(_t.style.backgroundColor=De.color),_t.style.transitionDuration=`${st}ms`,this._containerElement.appendChild(_t),window.getComputedStyle(_t).getPropertyValue("opacity"),_t.style.transform="scale(1)";const Ht=new Je(this,_t,De);return Ht.state=0,this._activeRipples.add(Ht),De.persistent||(this._mostRecentTransientRipple=Ht),this._runTimeoutOutsideZone(()=>{const dn=Ht===this._mostRecentTransientRipple;Ht.state=1,!De.persistent&&(!dn||!this._isPointerDown)&&Ht.fadeOut()},st),Ht}fadeOutRipple(K){const W=this._activeRipples.delete(K);if(K===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!W)return;const De=K.element,Ee=Object.assign(Object.assign({},ze),K.config.animation);De.style.transitionDuration=`${Ee.exitDuration}ms`,De.style.opacity="0",K.state=2,this._runTimeoutOutsideZone(()=>{K.state=3,De.parentNode.removeChild(De)},Ee.exitDuration)}fadeOutAll(){this._activeRipples.forEach(K=>K.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(K=>{K.config.persistent||K.fadeOut()})}setupTriggerEvents(K){const W=(0,w.fI)(K);!W||W===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=W,this._registerEvents(Ge))}handleEvent(K){"mousedown"===K.type?this._onMousedown(K):"touchstart"===K.type?this._onTouchStart(K):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ft),this._pointerUpEventsRegistered=!0)}_onMousedown(K){const W=(0,l.X6)(K),De=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!W&&!De&&(this._isPointerDown=!0,this.fadeInRipple(K.clientX,K.clientY,this._target.rippleConfig))}_onTouchStart(K){if(!this._target.rippleDisabled&&!(0,l.yG)(K)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const W=K.changedTouches;for(let De=0;De<W.length;De++)this.fadeInRipple(W[De].clientX,W[De].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(K=>{!K.config.persistent&&(1===K.state||K.config.terminateOnPointerUp&&0===K.state)&&K.fadeOut()}))}_runTimeoutOutsideZone(K,W=0){this._ngZone.runOutsideAngular(()=>setTimeout(K,W))}_registerEvents(K){this._ngZone.runOutsideAngular(()=>{K.forEach(W=>{this._triggerElement.addEventListener(W,this,q)})})}_removeTriggerEvents(){this._triggerElement&&(Ge.forEach(K=>{this._triggerElement.removeEventListener(K,this,q)}),this._pointerUpEventsRegistered&&ft.forEach(K=>{this._triggerElement.removeEventListener(K,this,q)}))}}const F=new o.InjectionToken("mat-ripple-global-options");let R=(()=>{class B{constructor(W,De,Ee,Q,J){this._elementRef=W,this._animationMode=J,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=Q||{},this._rippleRenderer=new vt(this,De,W,Ee)}get disabled(){return this._disabled}set disabled(W){W&&this.fadeOutAllNonPersistent(),this._disabled=W,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(W){this._trigger=W,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(W,De=0,Ee){return"number"==typeof W?this._rippleRenderer.fadeInRipple(W,De,Object.assign(Object.assign({},this.rippleConfig),Ee)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),W))}}return B.\u0275fac=function(W){return new(W||B)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(C.t4),o.\u0275\u0275directiveInject(F,8),o.\u0275\u0275directiveInject(g.ANIMATION_MODULE_TYPE,8))},B.\u0275dir=o.\u0275\u0275defineDirective({type:B,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(W,De){2&W&&o.\u0275\u0275classProp("mat-ripple-unbounded",De.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),B})(),de=(()=>{class B{}return B.\u0275fac=function(W){return new(W||B)},B.\u0275mod=o.\u0275\u0275defineNgModule({type:B}),B.\u0275inj=o.\u0275\u0275defineInjector({imports:[[Me,C.ud],Me]}),B})()},2238:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_DIALOG_DATA:()=>Ct,MAT_DIALOG_DEFAULT_OPTIONS:()=>te,MAT_DIALOG_SCROLL_STRATEGY:()=>ge,MAT_DIALOG_SCROLL_STRATEGY_FACTORY:()=>X,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER:()=>Ae,MAT_DIALOG_SCROLL_STRATEGY_PROVIDER_FACTORY:()=>ce,MatDialog:()=>Ue,MatDialogActions:()=>It,MatDialogClose:()=>je,MatDialogConfig:()=>ye,MatDialogContainer:()=>Me,MatDialogContent:()=>ut,MatDialogModule:()=>dt,MatDialogRef:()=>Pe,MatDialogTitle:()=>tt,_MatDialogBase:()=>Ce,_MatDialogContainerBase:()=>Ze,_closeDialogVia:()=>Ne,matDialogAnimations:()=>$e,throwMatDialogContentAlreadyAttachedError:()=>at});var o=d(625),l=d(7636),h=d(7716),_=d(2458),a=d(946),C=d(8583),w=d(9765),D=d(1439),g=d(5917),E=d(5435),M=d(5257),S=d(9761),P=d(521),L=d(7238),j=d(6461),ae=d(9238);function he($,se){}class ye{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}const $e={dialogContainer:(0,L.X$)("dialogContainer",[(0,L.SB)("void, exit",(0,L.oB)({opacity:0,transform:"scale(0.7)"})),(0,L.SB)("enter",(0,L.oB)({transform:"none"})),(0,L.eR)("* => enter",(0,L.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,L.oB)({transform:"none",opacity:1}))),(0,L.eR)("* => void, * => exit",(0,L.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,L.oB)({opacity:0})))])};function at(){throw Error("Attempting to attach dialog content after content is already attached")}let Ze=(()=>{class $ extends l.en{constructor(H,le,ne,fe,Oe,rt){super(),this._elementRef=H,this._focusTrapFactory=le,this._changeDetectorRef=ne,this._config=Oe,this._focusMonitor=rt,this._animationStateChanged=new h.EventEmitter,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=wt=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(wt)),this._ariaLabelledBy=Oe.ariaLabelledBy||null,this._document=fe}_initializeWithAttachedContent(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}attachComponentPortal(H){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(H)}attachTemplatePortal(H){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(H)}_recaptureFocus(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}_trapFocus(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}_restoreFocus(){const H=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&H&&"function"==typeof H.focus){const le=(0,P.ht)(),ne=this._elementRef.nativeElement;(!le||le===this._document.body||le===ne||ne.contains(le))&&(this._focusMonitor?(this._focusMonitor.focusVia(H,this._closeInteractionType),this._closeInteractionType=null):H.focus())}this._focusTrap&&this._focusTrap.destroy()}_setupFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}_capturePreviouslyFocusedElement(){this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,P.ht)())}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const H=this._elementRef.nativeElement,le=(0,P.ht)();return H===le||H.contains(le)}}return $.\u0275fac=function(H){return new(H||$)(h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(ae.qV),h.\u0275\u0275directiveInject(h.ChangeDetectorRef),h.\u0275\u0275directiveInject(C.DOCUMENT,8),h.\u0275\u0275directiveInject(ye),h.\u0275\u0275directiveInject(ae.tE))},$.\u0275dir=h.\u0275\u0275defineDirective({type:$,viewQuery:function(H,le){if(1&H&&h.\u0275\u0275viewQuery(l.Pl,7),2&H){let ne;h.\u0275\u0275queryRefresh(ne=h.\u0275\u0275loadQuery())&&(le._portalOutlet=ne.first)}},features:[h.\u0275\u0275InheritDefinitionFeature]}),$})(),Me=(()=>{class $ extends Ze{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:H,totalTime:le}){"enter"===H?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:le})):"exit"===H&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:le}))}_onAnimationStart({toState:H,totalTime:le}){"enter"===H?this._animationStateChanged.next({state:"opening",totalTime:le}):("exit"===H||"void"===H)&&this._animationStateChanged.next({state:"closing",totalTime:le})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}}return $.\u0275fac=function(){let se;return function(le){return(se||(se=h.\u0275\u0275getInheritedFactory($)))(le||$)}}(),$.\u0275cmp=h.\u0275\u0275defineComponent({type:$,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(H,le){1&H&&h.\u0275\u0275syntheticHostListener("@dialogContainer.start",function(fe){return le._onAnimationStart(fe)})("@dialogContainer.done",function(fe){return le._onAnimationDone(fe)}),2&H&&(h.\u0275\u0275hostProperty("id",le._id),h.\u0275\u0275attribute("role",le._config.role)("aria-labelledby",le._config.ariaLabel?null:le._ariaLabelledBy)("aria-label",le._config.ariaLabel)("aria-describedby",le._config.ariaDescribedBy||null),h.\u0275\u0275syntheticHostProperty("@dialogContainer",le._state))},features:[h.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(H,le){1&H&&h.\u0275\u0275template(0,he,0,0,"ng-template",0)},directives:[l.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[$e.dialogContainer]}}),$})(),Re=0;class Pe{constructor(se,H,le="mat-dialog-"+Re++){this._overlayRef=se,this._containerInstance=H,this.id=le,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new w.xQ,this._afterClosed=new w.xQ,this._beforeClosed=new w.xQ,this._state=0,H._id=le,H._animationStateChanged.pipe((0,E.h)(ne=>"opened"===ne.state),(0,M.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),H._animationStateChanged.pipe((0,E.h)(ne=>"closed"===ne.state),(0,M.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),se.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),se.keydownEvents().pipe((0,E.h)(ne=>ne.keyCode===j.hY&&!this.disableClose&&!(0,j.Vb)(ne))).subscribe(ne=>{ne.preventDefault(),Ne(this,"keyboard")}),se.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():Ne(this,"mouse")})}close(se){this._result=se,this._containerInstance._animationStateChanged.pipe((0,E.h)(H=>"closing"===H.state),(0,M.q)(1)).subscribe(H=>{this._beforeClosed.next(se),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),H.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._afterClosed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._overlayRef.backdropClick()}keydownEvents(){return this._overlayRef.keydownEvents()}updatePosition(se){let H=this._getPositionStrategy();return se&&(se.left||se.right)?se.left?H.left(se.left):H.right(se.right):H.centerHorizontally(),se&&(se.top||se.bottom)?se.top?H.top(se.top):H.bottom(se.bottom):H.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(se="",H=""){return this._overlayRef.updateSize({width:se,height:H}),this._overlayRef.updatePosition(),this}addPanelClass(se){return this._overlayRef.addPanelClass(se),this}removePanelClass(se){return this._overlayRef.removePanelClass(se),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function Ne($,se,H){return void 0!==$._containerInstance&&($._containerInstance._closeInteractionType=se),$.close(H)}const Ct=new h.InjectionToken("MatDialogData"),te=new h.InjectionToken("mat-dialog-default-options"),ge=new h.InjectionToken("mat-dialog-scroll-strategy");function X($){return()=>$.scrollStrategies.block()}function ce($){return()=>$.scrollStrategies.block()}const Ae={provide:ge,deps:[o.aV],useFactory:ce};let Ce=(()=>{class ${constructor(H,le,ne,fe,Oe,rt,wt,Je,ze){this._overlay=H,this._injector=le,this._defaultOptions=ne,this._parentDialog=fe,this._overlayContainer=Oe,this._dialogRefConstructor=wt,this._dialogContainerType=Je,this._dialogDataToken=ze,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new w.xQ,this._afterOpenedAtThisLevel=new w.xQ,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,D.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,S.O)(void 0))),this._scrollStrategy=rt}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const H=this._parentDialog;return H?H._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(H,le){(le=function($,se){return Object.assign(Object.assign({},se),$)}(le,this._defaultOptions||new ye)).id&&this.getDialogById(le.id);const ne=this._createOverlay(le),fe=this._attachDialogContainer(ne,le),Oe=this._attachDialogContent(H,fe,ne,le);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(Oe),Oe.afterClosed().subscribe(()=>this._removeOpenDialog(Oe)),this.afterOpened.next(Oe),fe._initializeWithAttachedContent(),Oe}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(H){return this.openDialogs.find(le=>le.id===H)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(H){const le=this._getOverlayConfig(H);return this._overlay.create(le)}_getOverlayConfig(H){const le=new o.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:H.scrollStrategy||this._scrollStrategy(),panelClass:H.panelClass,hasBackdrop:H.hasBackdrop,direction:H.direction,minWidth:H.minWidth,minHeight:H.minHeight,maxWidth:H.maxWidth,maxHeight:H.maxHeight,disposeOnNavigation:H.closeOnNavigation});return H.backdropClass&&(le.backdropClass=H.backdropClass),le}_attachDialogContainer(H,le){const fe=h.Injector.create({parent:le&&le.viewContainerRef&&le.viewContainerRef.injector||this._injector,providers:[{provide:ye,useValue:le}]}),Oe=new l.C5(this._dialogContainerType,le.viewContainerRef,fe,le.componentFactoryResolver);return H.attach(Oe).instance}_attachDialogContent(H,le,ne,fe){const Oe=new this._dialogRefConstructor(ne,le,fe.id);if(H instanceof h.TemplateRef)le.attachTemplatePortal(new l.UE(H,null,{$implicit:fe.data,dialogRef:Oe}));else{const rt=this._createInjector(fe,Oe,le),wt=le.attachComponentPortal(new l.C5(H,fe.viewContainerRef,rt));Oe.componentInstance=wt.instance}return Oe.updateSize(fe.width,fe.height).updatePosition(fe.position),Oe}_createInjector(H,le,ne){const fe=H&&H.viewContainerRef&&H.viewContainerRef.injector,Oe=[{provide:this._dialogContainerType,useValue:ne},{provide:this._dialogDataToken,useValue:H.data},{provide:this._dialogRefConstructor,useValue:le}];return H.direction&&(!fe||!fe.get(a.Is,null,h.InjectFlags.Optional))&&Oe.push({provide:a.Is,useValue:{value:H.direction,change:(0,g.of)()}}),h.Injector.create({parent:fe||this._injector,providers:Oe})}_removeOpenDialog(H){const le=this.openDialogs.indexOf(H);le>-1&&(this.openDialogs.splice(le,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((ne,fe)=>{ne?fe.setAttribute("aria-hidden",ne):fe.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const H=this._overlayContainer.getContainerElement();if(H.parentElement){const le=H.parentElement.children;for(let ne=le.length-1;ne>-1;ne--){let fe=le[ne];fe!==H&&"SCRIPT"!==fe.nodeName&&"STYLE"!==fe.nodeName&&!fe.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(fe,fe.getAttribute("aria-hidden")),fe.setAttribute("aria-hidden","true"))}}}_closeDialogs(H){let le=H.length;for(;le--;)H[le].close()}}return $.\u0275fac=function(H){return new(H||$)(h.\u0275\u0275directiveInject(o.aV),h.\u0275\u0275directiveInject(h.Injector),h.\u0275\u0275directiveInject(void 0),h.\u0275\u0275directiveInject(void 0),h.\u0275\u0275directiveInject(o.Xj),h.\u0275\u0275directiveInject(void 0),h.\u0275\u0275directiveInject(h.Type),h.\u0275\u0275directiveInject(h.Type),h.\u0275\u0275directiveInject(h.InjectionToken))},$.\u0275dir=h.\u0275\u0275defineDirective({type:$}),$})(),Ue=(()=>{class $ extends Ce{constructor(H,le,ne,fe,Oe,rt,wt){super(H,le,fe,rt,wt,Oe,Pe,Me,Ct)}}return $.\u0275fac=function(H){return new(H||$)(h.\u0275\u0275inject(o.aV),h.\u0275\u0275inject(h.Injector),h.\u0275\u0275inject(C.Location,8),h.\u0275\u0275inject(te,8),h.\u0275\u0275inject(ge),h.\u0275\u0275inject($,12),h.\u0275\u0275inject(o.Xj))},$.\u0275prov=h.\u0275\u0275defineInjectable({token:$,factory:$.\u0275fac}),$})(),pt=0,je=(()=>{class ${constructor(H,le,ne){this.dialogRef=H,this._elementRef=le,this._dialog=ne,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=Xe(this._elementRef,this._dialog.openDialogs))}ngOnChanges(H){const le=H._matDialogClose||H._matDialogCloseResult;le&&(this.dialogResult=le.currentValue)}_onButtonClick(H){Ne(this.dialogRef,0===H.screenX&&0===H.screenY?"keyboard":"mouse",this.dialogResult)}}return $.\u0275fac=function(H){return new(H||$)(h.\u0275\u0275directiveInject(Pe,8),h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(Ue))},$.\u0275dir=h.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(H,le){1&H&&h.\u0275\u0275listener("click",function(fe){return le._onButtonClick(fe)}),2&H&&h.\u0275\u0275attribute("aria-label",le.ariaLabel||null)("type",le.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[h.\u0275\u0275NgOnChangesFeature]}),$})(),tt=(()=>{class ${constructor(H,le,ne){this._dialogRef=H,this._elementRef=le,this._dialog=ne,this.id="mat-dialog-title-"+pt++}ngOnInit(){this._dialogRef||(this._dialogRef=Xe(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{const H=this._dialogRef._containerInstance;H&&!H._ariaLabelledBy&&(H._ariaLabelledBy=this.id)})}}return $.\u0275fac=function(H){return new(H||$)(h.\u0275\u0275directiveInject(Pe,8),h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275directiveInject(Ue))},$.\u0275dir=h.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(H,le){2&H&&h.\u0275\u0275hostProperty("id",le.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),$})(),ut=(()=>{class ${}return $.\u0275fac=function(H){return new(H||$)},$.\u0275dir=h.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),$})(),It=(()=>{class ${}return $.\u0275fac=function(H){return new(H||$)},$.\u0275dir=h.\u0275\u0275defineDirective({type:$,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),$})();function Xe($,se){let H=$.nativeElement.parentElement;for(;H&&!H.classList.contains("mat-dialog-container");)H=H.parentElement;return H?se.find(le=>le.id===H.id):null}let dt=(()=>{class ${}return $.\u0275fac=function(H){return new(H||$)},$.\u0275mod=h.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=h.\u0275\u0275defineInjector({providers:[Ue,Ae],imports:[[o.U8,l.eL,_.BQ],_.BQ]}),$})()},2421:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{ICON_REGISTRY_PROVIDER:()=>Ae,ICON_REGISTRY_PROVIDER_FACTORY:()=>ce,MAT_ICON_LOCATION:()=>je,MAT_ICON_LOCATION_FACTORY:()=>tt,MatIcon:()=>$,MatIconModule:()=>se,MatIconRegistry:()=>X,getMatIconFailedToSanitizeLiteralError:()=>te,getMatIconFailedToSanitizeUrlError:()=>Ct,getMatIconNameNotFoundError:()=>Pe,getMatIconNoHttpProviderError:()=>Ne,\u02750:()=>It});var o=d(7716),l=d(2458),h=d(9490),_=d(8583),a=d(5917),C=d(205),w=d(5758),D=d(826),g=d(5345);class M{constructor(le){this.selector=le}call(le,ne){return ne.subscribe(new S(le,this.selector,this.caught))}}class S extends g.Ds{constructor(le,ne,fe){super(le),this.selector=ne,this.caught=fe}error(le){if(!this.isStopped){let ne;try{ne=this.selector(le,this.caught)}catch(rt){return void super.error(rt)}this._unsubscribeAndRecycle();const fe=new g.IY(this);this.add(fe);const Oe=(0,g.ft)(ne,fe);Oe!==fe&&this.add(Oe)}}}var P=d(7393);class j{constructor(le){this.callback=le}call(le,ne){return ne.subscribe(new ae(le,this.callback))}}class ae extends P.L{constructor(le,ne){super(le),this.add(new D.w(ne))}}var he=d(8307),ye=d(8002),$e=d(8819),at=d(5257),Ze=d(6820),Me=d(9075);const Re=["*"];function Pe(H){return Error(`Unable to find icon with the name "${H}"`)}function Ne(){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 Ct(H){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${H}".`)}function te(H){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${H}".`)}class ge{constructor(le,ne,fe){this.url=le,this.svgText=ne,this.options=fe}}let X=(()=>{class H{constructor(ne,fe,Oe,rt){this._httpClient=ne,this._sanitizer=fe,this._errorHandler=rt,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass="material-icons",this._document=Oe}addSvgIcon(ne,fe,Oe){return this.addSvgIconInNamespace("",ne,fe,Oe)}addSvgIconLiteral(ne,fe,Oe){return this.addSvgIconLiteralInNamespace("",ne,fe,Oe)}addSvgIconInNamespace(ne,fe,Oe,rt){return this._addSvgIconConfig(ne,fe,new ge(Oe,null,rt))}addSvgIconResolver(ne){return this._resolvers.push(ne),this}addSvgIconLiteralInNamespace(ne,fe,Oe,rt){const wt=this._sanitizer.sanitize(o.SecurityContext.HTML,Oe);if(!wt)throw te(Oe);return this._addSvgIconConfig(ne,fe,new ge("",wt,rt))}addSvgIconSet(ne,fe){return this.addSvgIconSetInNamespace("",ne,fe)}addSvgIconSetLiteral(ne,fe){return this.addSvgIconSetLiteralInNamespace("",ne,fe)}addSvgIconSetInNamespace(ne,fe,Oe){return this._addSvgIconSetConfig(ne,new ge(fe,null,Oe))}addSvgIconSetLiteralInNamespace(ne,fe,Oe){const rt=this._sanitizer.sanitize(o.SecurityContext.HTML,fe);if(!rt)throw te(fe);return this._addSvgIconSetConfig(ne,new ge("",rt,Oe))}registerFontClassAlias(ne,fe=ne){return this._fontCssClassesByAlias.set(ne,fe),this}classNameForFontAlias(ne){return this._fontCssClassesByAlias.get(ne)||ne}setDefaultFontSetClass(ne){return this._defaultFontSetClass=ne,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ne){const fe=this._sanitizer.sanitize(o.SecurityContext.RESOURCE_URL,ne);if(!fe)throw Ct(ne);const Oe=this._cachedIconsByUrl.get(fe);return Oe?(0,a.of)(Ce(Oe)):this._loadSvgIconFromConfig(new ge(ne,null)).pipe((0,he.b)(rt=>this._cachedIconsByUrl.set(fe,rt)),(0,ye.U)(rt=>Ce(rt)))}getNamedSvgIcon(ne,fe=""){const Oe=Ue(fe,ne);let rt=this._svgIconConfigs.get(Oe);if(rt)return this._getSvgFromConfig(rt);if(rt=this._getIconConfigFromResolvers(fe,ne),rt)return this._svgIconConfigs.set(Oe,rt),this._getSvgFromConfig(rt);const wt=this._iconSetConfigs.get(fe);return wt?this._getSvgFromIconSetConfigs(ne,wt):(0,C._)(Pe(Oe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ne){return ne.svgText?(0,a.of)(Ce(this._svgElementFromConfig(ne))):this._loadSvgIconFromConfig(ne).pipe((0,ye.U)(fe=>Ce(fe)))}_getSvgFromIconSetConfigs(ne,fe){const Oe=this._extractIconWithNameFromAnySet(ne,fe);if(Oe)return(0,a.of)(Oe);const rt=fe.filter(wt=>!wt.svgText).map(wt=>this._loadSvgIconSetFromConfig(wt).pipe(function(H){return function(ne){const fe=new M(H),Oe=ne.lift(fe);return fe.caught=Oe}}(Je=>{const He=`Loading icon set URL: ${this._sanitizer.sanitize(o.SecurityContext.RESOURCE_URL,wt.url)} failed: ${Je.message}`;return this._errorHandler.handleError(new Error(He)),(0,a.of)(null)})));return(0,w.D)(rt).pipe((0,ye.U)(()=>{const wt=this._extractIconWithNameFromAnySet(ne,fe);if(!wt)throw Pe(ne);return wt}))}_extractIconWithNameFromAnySet(ne,fe){for(let Oe=fe.length-1;Oe>=0;Oe--){const rt=fe[Oe];if(rt.svgText&&rt.svgText.indexOf(ne)>-1){const wt=this._svgElementFromConfig(rt),Je=this._extractSvgIconFromSet(wt,ne,rt.options);if(Je)return Je}}return null}_loadSvgIconFromConfig(ne){return this._fetchIcon(ne).pipe((0,he.b)(fe=>ne.svgText=fe),(0,ye.U)(()=>this._svgElementFromConfig(ne)))}_loadSvgIconSetFromConfig(ne){return ne.svgText?(0,a.of)(null):this._fetchIcon(ne).pipe((0,he.b)(fe=>ne.svgText=fe))}_extractSvgIconFromSet(ne,fe,Oe){const rt=ne.querySelector(`[id="${fe}"]`);if(!rt)return null;const wt=rt.cloneNode(!0);if(wt.removeAttribute("id"),"svg"===wt.nodeName.toLowerCase())return this._setSvgAttributes(wt,Oe);if("symbol"===wt.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(wt),Oe);const Je=this._svgElementFromString("<svg></svg>");return Je.appendChild(wt),this._setSvgAttributes(Je,Oe)}_svgElementFromString(ne){const fe=this._document.createElement("DIV");fe.innerHTML=ne;const Oe=fe.querySelector("svg");if(!Oe)throw Error("<svg> tag not found");return Oe}_toSvgElement(ne){const fe=this._svgElementFromString("<svg></svg>"),Oe=ne.attributes;for(let rt=0;rt<Oe.length;rt++){const{name:wt,value:Je}=Oe[rt];"id"!==wt&&fe.setAttribute(wt,Je)}for(let rt=0;rt<ne.childNodes.length;rt++)ne.childNodes[rt].nodeType===this._document.ELEMENT_NODE&&fe.appendChild(ne.childNodes[rt].cloneNode(!0));return fe}_setSvgAttributes(ne,fe){return ne.setAttribute("fit",""),ne.setAttribute("height","100%"),ne.setAttribute("width","100%"),ne.setAttribute("preserveAspectRatio","xMidYMid meet"),ne.setAttribute("focusable","false"),fe&&fe.viewBox&&ne.setAttribute("viewBox",fe.viewBox),ne}_fetchIcon(ne){var fe;const{url:Oe,options:rt}=ne,wt=null!==(fe=null==rt?void 0:rt.withCredentials)&&void 0!==fe&&fe;if(!this._httpClient)throw Ne();if(null==Oe)throw Error(`Cannot fetch icon from URL "${Oe}".`);const Je=this._sanitizer.sanitize(o.SecurityContext.RESOURCE_URL,Oe);if(!Je)throw Ct(Oe);const ze=this._inProgressUrlFetches.get(Je);if(ze)return ze;const He=this._httpClient.get(Je,{responseType:"text",withCredentials:wt}).pipe(function(H){return le=>le.lift(new j(H))}(()=>this._inProgressUrlFetches.delete(Je)),(0,$e.B)());return this._inProgressUrlFetches.set(Je,He),He}_addSvgIconConfig(ne,fe,Oe){return this._svgIconConfigs.set(Ue(ne,fe),Oe),this}_addSvgIconSetConfig(ne,fe){const Oe=this._iconSetConfigs.get(ne);return Oe?Oe.push(fe):this._iconSetConfigs.set(ne,[fe]),this}_svgElementFromConfig(ne){if(!ne.svgElement){const fe=this._svgElementFromString(ne.svgText);this._setSvgAttributes(fe,ne.options),ne.svgElement=fe}return ne.svgElement}_getIconConfigFromResolvers(ne,fe){for(let Oe=0;Oe<this._resolvers.length;Oe++){const rt=this._resolvers[Oe](fe,ne);if(rt)return et(rt)?new ge(rt.url,null,rt.options):new ge(rt,null)}}}return H.\u0275fac=function(ne){return new(ne||H)(o.\u0275\u0275inject(Ze.HttpClient,8),o.\u0275\u0275inject(Me.DomSanitizer),o.\u0275\u0275inject(_.DOCUMENT,8),o.\u0275\u0275inject(o.ErrorHandler))},H.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new H(o.\u0275\u0275inject(Ze.HttpClient,8),o.\u0275\u0275inject(Me.DomSanitizer),o.\u0275\u0275inject(_.DOCUMENT,8),o.\u0275\u0275inject(o.ErrorHandler))},token:H,providedIn:"root"}),H})();function ce(H,le,ne,fe,Oe){return H||new X(le,ne,Oe,fe)}const Ae={provide:X,deps:[[new o.Optional,new o.SkipSelf,X],[new o.Optional,Ze.HttpClient],Me.DomSanitizer,o.ErrorHandler,[new o.Optional,_.DOCUMENT]],useFactory:ce};function Ce(H){return H.cloneNode(!0)}function Ue(H,le){return H+":"+le}function et(H){return!(!H.url||!H.options)}const pt=(0,l.pj)(class{constructor(H){this._elementRef=H}}),je=new o.InjectionToken("mat-icon-location",{providedIn:"root",factory:tt});function tt(){const H=(0,o.inject)(_.DOCUMENT),le=H?H.location:null;return{getPathname:()=>le?le.pathname+le.search:""}}const ut=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],It=H=>`[${H}]`,Xe=ut.map(It).join(", "),dt=/^url\(['"]?#(.*?)['"]?\)$/;let $=(()=>{class H extends pt{constructor(ne,fe,Oe,rt,wt){super(ne),this._iconRegistry=fe,this._location=rt,this._errorHandler=wt,this._inline=!1,this._currentIconFetch=D.w.EMPTY,Oe||ne.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(ne){this._inline=(0,h.Ig)(ne)}get svgIcon(){return this._svgIcon}set svgIcon(ne){ne!==this._svgIcon&&(ne?this._updateSvgIcon(ne):this._svgIcon&&this._clearSvgElement(),this._svgIcon=ne)}get fontSet(){return this._fontSet}set fontSet(ne){const fe=this._cleanupFontValue(ne);fe!==this._fontSet&&(this._fontSet=fe,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ne){const fe=this._cleanupFontValue(ne);fe!==this._fontIcon&&(this._fontIcon=fe,this._updateFontIconClasses())}_splitIconName(ne){if(!ne)return["",""];const fe=ne.split(":");switch(fe.length){case 1:return["",fe[0]];case 2:return fe;default:throw Error(`Invalid icon name: "${ne}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ne=this._elementsWithExternalReferences;if(ne&&ne.size){const fe=this._location.getPathname();fe!==this._previousPath&&(this._previousPath=fe,this._prependPathToReferences(fe))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ne){this._clearSvgElement();const fe=ne.querySelectorAll("style");for(let rt=0;rt<fe.length;rt++)fe[rt].textContent+=" ";const Oe=this._location.getPathname();this._previousPath=Oe,this._cacheChildrenWithExternalReferences(ne),this._prependPathToReferences(Oe),this._elementRef.nativeElement.appendChild(ne)}_clearSvgElement(){const ne=this._elementRef.nativeElement;let fe=ne.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();fe--;){const Oe=ne.childNodes[fe];(1!==Oe.nodeType||"svg"===Oe.nodeName.toLowerCase())&&ne.removeChild(Oe)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ne=this._elementRef.nativeElement,fe=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();fe!=this._previousFontSetClass&&(this._previousFontSetClass&&ne.classList.remove(this._previousFontSetClass),fe&&ne.classList.add(fe),this._previousFontSetClass=fe),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&ne.classList.remove(this._previousFontIconClass),this.fontIcon&&ne.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(ne){return"string"==typeof ne?ne.trim().split(" ")[0]:ne}_prependPathToReferences(ne){const fe=this._elementsWithExternalReferences;fe&&fe.forEach((Oe,rt)=>{Oe.forEach(wt=>{rt.setAttribute(wt.name,`url('${ne}#${wt.value}')`)})})}_cacheChildrenWithExternalReferences(ne){const fe=ne.querySelectorAll(Xe),Oe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let rt=0;rt<fe.length;rt++)ut.forEach(wt=>{const Je=fe[rt],ze=Je.getAttribute(wt),He=ze?ze.match(dt):null;if(He){let q=Oe.get(Je);q||(q=[],Oe.set(Je,q)),q.push({name:wt,value:He[1]})}})}_updateSvgIcon(ne){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ne){const[fe,Oe]=this._splitIconName(ne);fe&&(this._svgNamespace=fe),Oe&&(this._svgName=Oe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Oe,fe).pipe((0,at.q)(1)).subscribe(rt=>this._setSvgElement(rt),rt=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${fe}:${Oe}! ${rt.message}`))})}}}return H.\u0275fac=function(ne){return new(ne||H)(o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(X),o.\u0275\u0275injectAttribute("aria-hidden"),o.\u0275\u0275directiveInject(je),o.\u0275\u0275directiveInject(o.ErrorHandler))},H.\u0275cmp=o.\u0275\u0275defineComponent({type:H,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(ne,fe){2&ne&&(o.\u0275\u0275attribute("data-mat-icon-type",fe._usingFontIcon()?"font":"svg")("data-mat-icon-name",fe._svgName||fe.fontIcon)("data-mat-icon-namespace",fe._svgNamespace||fe.fontSet),o.\u0275\u0275classProp("mat-icon-inline",fe.inline)("mat-icon-no-color","primary"!==fe.color&&"accent"!==fe.color&&"warn"!==fe.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[o.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Re,decls:1,vars:0,template:function(ne,fe){1&ne&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0))},styles:[".mat-icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),H})(),se=(()=>{class H{}return H.\u0275fac=function(ne){return new(ne||H)},H.\u0275mod=o.\u0275\u0275defineNgModule({type:H}),H.\u0275inj=o.\u0275\u0275defineInjector({imports:[[l.BQ],l.BQ]}),H})()},5384:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_MENU_CONTENT:()=>ut,MAT_MENU_DEFAULT_OPTIONS:()=>Oe,MAT_MENU_PANEL:()=>le,MAT_MENU_SCROLL_STRATEGY:()=>He,MatMenu:()=>ze,MatMenuContent:()=>Xe,MatMenuItem:()=>fe,MatMenuModule:()=>F,MatMenuTrigger:()=>x,_MatMenuBase:()=>Je,_MatMenuContentBase:()=>It,_MatMenuTriggerBase:()=>Ye,fadeInItems:()=>je,matMenuAnimations:()=>pt,transformMenu:()=>tt,\u0275angular_material_src_material_menu_menu_a:()=>rt,\u0275angular_material_src_material_menu_menu_b:()=>q,\u0275angular_material_src_material_menu_menu_c:()=>Ge});var o=d(9238),l=d(9490),h=d(6461),_=d(7716),a=d(9765),C=d(826),w=d(6682),D=d(5917),g=d(4581),E=d(3637),S=d(7393),P=d(3098);function L(R,de=E.P){const re=function(R){return R instanceof Date&&!isNaN(+R)}(R)?+R-de.now():Math.abs(R);return Be=>Be.lift(new j(re,de))}class j{constructor(de,z){this.delay=de,this.scheduler=z}call(de,z){return z.subscribe(new ae(de,this.delay,this.scheduler))}}class ae extends S.L{constructor(de,z,re){super(de),this.delay=z,this.scheduler=re,this.queue=[],this.active=!1,this.errored=!1}static dispatch(de){const z=de.source,re=z.queue,Be=de.scheduler,gt=de.destination;for(;re.length>0&&re[0].time-Be.now()<=0;)re.shift().notification.observe(gt);if(re.length>0){const Et=Math.max(0,re[0].time-Be.now());this.schedule(de,Et)}else this.unsubscribe(),z.active=!1}_schedule(de){this.active=!0,this.destination.add(de.schedule(ae.dispatch,this.delay,{source:this,destination:this.destination,scheduler:de}))}scheduleNotification(de){if(!0===this.errored)return;const z=this.scheduler,re=new he(z.now()+this.delay,de);this.queue.push(re),!1===this.active&&this._schedule(z)}_next(de){this.scheduleNotification(P.P.createNext(de))}_error(de){this.errored=!0,this.queue=[],this.destination.error(de),this.unsubscribe()}_complete(){this.scheduleNotification(P.P.createComplete()),this.unsubscribe()}}class he{constructor(de,z){this.time=de,this.notification=z}}var ye=d(9761),$e=d(3190),at=d(5257),Ze=d(5435),Me=d(6782),Re=d(7238),Pe=d(7636),Ne=d(8583),Ct=d(2458),te=d(625),ge=d(521),X=d(5197),ce=d(946);const Ae=["mat-menu-item",""];function Ce(R,de){1&R&&(_.\u0275\u0275namespaceSVG(),_.\u0275\u0275elementStart(0,"svg",2),_.\u0275\u0275element(1,"polygon",3),_.\u0275\u0275elementEnd())}const Ue=["*"];function et(R,de){if(1&R){const z=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275listener("keydown",function(Be){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext()._handleKeydown(Be)})("click",function(){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext().closed.emit("click")})("@transformMenu.start",function(Be){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext()._onAnimationStart(Be)})("@transformMenu.done",function(Be){return _.\u0275\u0275restoreView(z),_.\u0275\u0275nextContext()._onAnimationDone(Be)}),_.\u0275\u0275elementStart(1,"div",1),_.\u0275\u0275projection(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()}if(2&R){const z=_.\u0275\u0275nextContext();_.\u0275\u0275property("id",z.panelId)("ngClass",z._classList)("@transformMenu",z._panelAnimationState),_.\u0275\u0275attribute("aria-label",z.ariaLabel||null)("aria-labelledby",z.ariaLabelledby||null)("aria-describedby",z.ariaDescribedby||null)}}const pt={transformMenu:(0,Re.X$)("transformMenu",[(0,Re.SB)("void",(0,Re.oB)({opacity:0,transform:"scale(0.8)"})),(0,Re.eR)("void => enter",(0,Re.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,Re.oB)({opacity:1,transform:"scale(1)"}))),(0,Re.eR)("* => void",(0,Re.jt)("100ms 25ms linear",(0,Re.oB)({opacity:0})))]),fadeInItems:(0,Re.X$)("fadeInItems",[(0,Re.SB)("showing",(0,Re.oB)({opacity:1})),(0,Re.eR)("void => *",[(0,Re.oB)({opacity:0}),(0,Re.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},je=pt.fadeInItems,tt=pt.transformMenu,ut=new _.InjectionToken("MatMenuContent");let It=(()=>{class R{constructor(z,re,Be,gt,Et,xt,Nt){this._template=z,this._componentFactoryResolver=re,this._appRef=Be,this._injector=gt,this._viewContainerRef=Et,this._document=xt,this._changeDetectorRef=Nt,this._attached=new a.xQ}attach(z={}){this._portal||(this._portal=new Pe.UE(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Pe.u0(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));const re=this._template.elementRef.nativeElement;re.parentNode.insertBefore(this._outlet.outletElement,re),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,z),this._attached.next()}detach(){this._portal.isAttached&&this._portal.detach()}ngOnDestroy(){this._outlet&&this._outlet.dispose()}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.TemplateRef),_.\u0275\u0275directiveInject(_.ComponentFactoryResolver),_.\u0275\u0275directiveInject(_.ApplicationRef),_.\u0275\u0275directiveInject(_.Injector),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(Ne.DOCUMENT),_.\u0275\u0275directiveInject(_.ChangeDetectorRef))},R.\u0275dir=_.\u0275\u0275defineDirective({type:R}),R})(),Xe=(()=>{class R extends It{}return R.\u0275fac=function(){let de;return function(re){return(de||(de=_.\u0275\u0275getInheritedFactory(R)))(re||R)}}(),R.\u0275dir=_.\u0275\u0275defineDirective({type:R,selectors:[["ng-template","matMenuContent",""]],features:[_.\u0275\u0275ProvidersFeature([{provide:ut,useExisting:R}]),_.\u0275\u0275InheritDefinitionFeature]}),R})();const le=new _.InjectionToken("MAT_MENU_PANEL"),ne=(0,Ct.Kr)((0,Ct.Id)(class{}));let fe=(()=>{class R extends ne{constructor(z,re,Be,gt,Et){super(),this._elementRef=z,this._focusMonitor=Be,this._parentMenu=gt,this._changeDetectorRef=Et,this.role="menuitem",this._hovered=new a.xQ,this._focused=new a.xQ,this._highlighted=!1,this._triggersSubmenu=!1,gt&&gt.addItem&&gt.addItem(this)}focus(z,re){this._focusMonitor&&z?this._focusMonitor.focusVia(this._getHostElement(),z,re):this._getHostElement().focus(re),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(z){this.disabled&&(z.preventDefault(),z.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var z,re;const Be=this._elementRef.nativeElement.cloneNode(!0),gt=Be.querySelectorAll("mat-icon, .material-icons");for(let Et=0;Et<gt.length;Et++){const xt=gt[Et];null===(z=xt.parentNode)||void 0===z||z.removeChild(xt)}return(null===(re=Be.textContent)||void 0===re?void 0:re.trim())||""}_setHighlighted(z){var re;this._highlighted=z,null===(re=this._changeDetectorRef)||void 0===re||re.markForCheck()}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(Ne.DOCUMENT),_.\u0275\u0275directiveInject(o.tE),_.\u0275\u0275directiveInject(le,8),_.\u0275\u0275directiveInject(_.ChangeDetectorRef))},R.\u0275cmp=_.\u0275\u0275defineComponent({type:R,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(z,re){1&z&&_.\u0275\u0275listener("click",function(gt){return re._checkDisabled(gt)})("mouseenter",function(){return re._handleMouseEnter()}),2&z&&(_.\u0275\u0275attribute("role",re.role)("tabindex",re._getTabIndex())("aria-disabled",re.disabled.toString())("disabled",re.disabled||null),_.\u0275\u0275classProp("mat-menu-item",!0)("mat-menu-item-highlighted",re._highlighted)("mat-menu-item-submenu-trigger",re._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[_.\u0275\u0275InheritDefinitionFeature],attrs:Ae,ngContentSelectors:Ue,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(z,re){1&z&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275projection(0),_.\u0275\u0275element(1,"div",0),_.\u0275\u0275template(2,Ce,2,0,"svg",1)),2&z&&(_.\u0275\u0275advance(1),_.\u0275\u0275property("matRippleDisabled",re.disableRipple||re.disabled)("matRippleTrigger",re._getHostElement()),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",re._triggersSubmenu))},directives:[Ct.wG,Ne.NgIf],encapsulation:2,changeDetection:0}),R})();const Oe=new _.InjectionToken("mat-menu-default-options",{providedIn:"root",factory:rt});function rt(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}let wt=0,Je=(()=>{class R{constructor(z,re,Be){this._elementRef=z,this._ngZone=re,this._defaultOptions=Be,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new _.QueryList,this._tabSubscription=C.w.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new a.xQ,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new _.EventEmitter,this.close=this.closed,this.panelId="mat-menu-panel-"+wt++}get xPosition(){return this._xPosition}set xPosition(z){this._xPosition=z,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(z){this._yPosition=z,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(z){this._overlapTrigger=(0,l.Ig)(z)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(z){this._hasBackdrop=(0,l.Ig)(z)}set panelClass(z){const re=this._previousPanelClass;re&&re.length&&re.split(" ").forEach(Be=>{this._classList[Be]=!1}),this._previousPanelClass=z,z&&z.length&&(z.split(" ").forEach(Be=>{this._classList[Be]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(z){this.panelClass=z}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new o.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,ye.O)(this._directDescendantItems),(0,$e.w)(z=>(0,w.T)(...z.map(re=>re._focused)))).subscribe(z=>this._keyManager.updateActiveItem(z))}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,ye.O)(this._directDescendantItems),(0,$e.w)(re=>(0,w.T)(...re.map(Be=>Be._hovered))))}addItem(z){}removeItem(z){}_handleKeydown(z){const re=z.keyCode,Be=this._keyManager;switch(re){case h.hY:(0,h.Vb)(z)||(z.preventDefault(),this.closed.emit("keydown"));break;case h.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case h.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:(re===h.LH||re===h.JH)&&Be.setFocusOrigin("keyboard"),Be.onKeydown(z)}}focusFirstItem(z="program"){this.lazyContent?this._ngZone.onStable.pipe((0,at.q)(1)).subscribe(()=>this._focusFirstItem(z)):this._focusFirstItem(z)}_focusFirstItem(z){const re=this._keyManager;if(re.setFocusOrigin(z).setFirstItemActive(),!re.activeItem&&this._directDescendantItems.length){let Be=this._directDescendantItems.first._getHostElement().parentElement;for(;Be;){if("menu"===Be.getAttribute("role")){Be.focus();break}Be=Be.parentElement}}}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(z){const re=Math.min(this._baseElevation+z,24),Be=`${this._elevationPrefix}${re}`,gt=Object.keys(this._classList).find(Et=>Et.startsWith(this._elevationPrefix));(!gt||gt===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[Be]=!0,this._previousElevation=Be)}setPositionClasses(z=this.xPosition,re=this.yPosition){const Be=this._classList;Be["mat-menu-before"]="before"===z,Be["mat-menu-after"]="after"===z,Be["mat-menu-above"]="above"===re,Be["mat-menu-below"]="below"===re}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(z){this._animationDone.next(z),this._isAnimating=!1}_onAnimationStart(z){this._isAnimating=!0,"enter"===z.toState&&0===this._keyManager.activeItemIndex&&(z.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,ye.O)(this._allItems)).subscribe(z=>{this._directDescendantItems.reset(z.filter(re=>re._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(Oe))},R.\u0275dir=_.\u0275\u0275defineDirective({type:R,contentQueries:function(z,re,Be){if(1&z&&(_.\u0275\u0275contentQuery(Be,ut,5),_.\u0275\u0275contentQuery(Be,fe,5),_.\u0275\u0275contentQuery(Be,fe,4)),2&z){let gt;_.\u0275\u0275queryRefresh(gt=_.\u0275\u0275loadQuery())&&(re.lazyContent=gt.first),_.\u0275\u0275queryRefresh(gt=_.\u0275\u0275loadQuery())&&(re._allItems=gt),_.\u0275\u0275queryRefresh(gt=_.\u0275\u0275loadQuery())&&(re.items=gt)}},viewQuery:function(z,re){if(1&z&&_.\u0275\u0275viewQuery(_.TemplateRef,5),2&z){let Be;_.\u0275\u0275queryRefresh(Be=_.\u0275\u0275loadQuery())&&(re.templateRef=Be.first)}},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),R})(),ze=(()=>{class R extends Je{constructor(z,re,Be){super(z,re,Be),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(Oe))},R.\u0275cmp=_.\u0275\u0275defineComponent({type:R,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(z,re){2&z&&_.\u0275\u0275attribute("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[_.\u0275\u0275ProvidersFeature([{provide:le,useExisting:R}]),_.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Ue,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(z,re){1&z&&(_.\u0275\u0275projectionDef(),_.\u0275\u0275template(0,et,3,6,"ng-template"))},directives:[Ne.NgClass],styles:["mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n"],encapsulation:2,data:{animation:[pt.transformMenu,pt.fadeInItems]},changeDetection:0}),R})();const He=new _.InjectionToken("mat-menu-scroll-strategy");function q(R){return()=>R.scrollStrategies.reposition()}const Ge={provide:He,deps:[te.aV],useFactory:q},vt=(0,ge.i$)({passive:!0});let Ye=(()=>{class R{constructor(z,re,Be,gt,Et,xt,Nt,Ut){this._overlay=z,this._element=re,this._viewContainerRef=Be,this._menuItemInstance=xt,this._dir=Nt,this._focusMonitor=Ut,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=C.w.EMPTY,this._hoverSubscription=C.w.EMPTY,this._menuCloseSubscription=C.w.EMPTY,this._handleTouchStart=Qt=>{(0,o.yG)(Qt)||(this._openedBy="touch")},this._openedBy=void 0,this._ariaHaspopup=!0,this.restoreFocus=!0,this.menuOpened=new _.EventEmitter,this.onMenuOpen=this.menuOpened,this.menuClosed=new _.EventEmitter,this.onMenuClose=this.menuClosed,this._scrollStrategy=gt,this._parentMaterialMenu=Et instanceof Je?Et:void 0,re.nativeElement.addEventListener("touchstart",this._handleTouchStart,vt),xt&&(xt._triggersSubmenu=this.triggersSubmenu())}get _ariaExpanded(){return this.menuOpen||null}get _ariaControl(){return this.menuOpen?this.menu.panelId:null}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(z){this.menu=z}get menu(){return this._menu}set menu(z){z!==this._menu&&(this._menu=z,this._menuCloseSubscription.unsubscribe(),z&&(this._menuCloseSubscription=z.close.subscribe(re=>{this._destroyMenu(re),("click"===re||"tab"===re)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(re)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,vt),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const z=this._createOverlay(),re=z.getConfig();this._setPosition(re.positionStrategy),re.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,z.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Je&&this.menu._startAnimation()}closeMenu(){this.menu.close.emit()}focus(z,re){this._focusMonitor&&z?this._focusMonitor.focusVia(this._element,z,re):this._element.nativeElement.focus(re)}updatePosition(){var z;null===(z=this._overlayRef)||void 0===z||z.updatePosition()}_destroyMenu(z){if(!this._overlayRef||!this.menuOpen)return;const re=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===z||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,re instanceof Je?(re._resetAnimation(),re.lazyContent?re._animationDone.pipe((0,Ze.h)(Be=>"void"===Be.toState),(0,at.q)(1),(0,Me.R)(re.lazyContent._attached)).subscribe({next:()=>re.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),re.lazyContent&&re.lazyContent.detach())}_initMenu(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(){if(this.menu.setElevation){let z=0,re=this.menu.parentMenu;for(;re;)z++,re=re.parentMenu;this.menu.setElevation(z)}}_setIsMenuOpen(z){this._menuOpen=z,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(z)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const z=this._getOverlayConfig();this._subscribeToPositions(z.positionStrategy),this._overlayRef=this._overlay.create(z),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new te.X_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(z){this.menu.setPositionClasses&&z.positionChanges.subscribe(re=>{this.menu.setPositionClasses("start"===re.connectionPair.overlayX?"after":"before","top"===re.connectionPair.overlayY?"below":"above")})}_setPosition(z){let[re,Be]="before"===this.menu.xPosition?["end","start"]:["start","end"],[gt,Et]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[xt,Nt]=[gt,Et],[Ut,Qt]=[re,Be],At=0;this.triggersSubmenu()?(Qt=re="before"===this.menu.xPosition?"start":"end",Be=Ut="end"===re?"start":"end",At="bottom"===gt?8:-8):this.menu.overlapTrigger||(xt="top"===gt?"bottom":"top",Nt="top"===Et?"bottom":"top"),z.withPositions([{originX:re,originY:xt,overlayX:Ut,overlayY:gt,offsetY:At},{originX:Be,originY:xt,overlayX:Qt,overlayY:gt,offsetY:At},{originX:re,originY:Nt,overlayX:Ut,overlayY:Et,offsetY:-At},{originX:Be,originY:Nt,overlayX:Qt,overlayY:Et,offsetY:-At}])}_menuClosingActions(){const z=this._overlayRef.backdropClick(),re=this._overlayRef.detachments(),Be=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,D.of)(),gt=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,Ze.h)(Et=>Et!==this._menuItemInstance),(0,Ze.h)(()=>this._menuOpen)):(0,D.of)();return(0,w.T)(z,Be,gt,re)}_handleMousedown(z){(0,o.X6)(z)||(this._openedBy=0===z.button?"mouse":void 0,this.triggersSubmenu()&&z.preventDefault())}_handleKeydown(z){const re=z.keyCode;(re===h.K5||re===h.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(re===h.SV&&"ltr"===this.dir||re===h.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(z){this.triggersSubmenu()?(z.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,Ze.h)(z=>z===this._menuItemInstance&&!z.disabled),L(0,g.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Je&&this.menu._isAnimating?this.menu._animationDone.pipe((0,at.q)(1),L(0,g.E),(0,Me.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Pe.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return R.\u0275fac=function(z){return new(z||R)(_.\u0275\u0275directiveInject(te.aV),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(He),_.\u0275\u0275directiveInject(le,8),_.\u0275\u0275directiveInject(fe,10),_.\u0275\u0275directiveInject(ce.Is,8),_.\u0275\u0275directiveInject(o.tE))},R.\u0275dir=_.\u0275\u0275defineDirective({type:R,hostVars:3,hostBindings:function(z,re){1&z&&_.\u0275\u0275listener("mousedown",function(gt){return re._handleMousedown(gt)})("keydown",function(gt){return re._handleKeydown(gt)})("click",function(gt){return re._handleClick(gt)}),2&z&&_.\u0275\u0275attribute("aria-haspopup",re._ariaHaspopup)("aria-expanded",re._ariaExpanded)("aria-controls",re._ariaControl)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),R})(),x=(()=>{class R extends Ye{}return R.\u0275fac=function(){let de;return function(re){return(de||(de=_.\u0275\u0275getInheritedFactory(R)))(re||R)}}(),R.\u0275dir=_.\u0275\u0275defineDirective({type:R,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[_.\u0275\u0275InheritDefinitionFeature]}),R})(),F=(()=>{class R{}return R.\u0275fac=function(z){return new(z||R)},R.\u0275mod=_.\u0275\u0275defineNgModule({type:R}),R.\u0275inj=_.\u0275\u0275defineInjector({providers:[Ge],imports:[[Ne.CommonModule,Ct.BQ,Ct.si,te.U8],X.ZD,Ct.BQ]}),R})()},2789:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MatCell:()=>_t,MatCellDef:()=>Ee,MatColumnDef:()=>N,MatFooterCell:()=>st,MatFooterCellDef:()=>J,MatFooterRow:()=>un,MatFooterRowDef:()=>dn,MatHeaderCell:()=>oe,MatHeaderCellDef:()=>Q,MatHeaderRow:()=>an,MatHeaderRowDef:()=>Ht,MatNoDataRow:()=>yn,MatRecycleRows:()=>W,MatRow:()=>wn,MatRowDef:()=>cn,MatTable:()=>De,MatTableDataSource:()=>Rt,MatTableModule:()=>Se,MatTextColumn:()=>mt,_MatTableDataSource:()=>ht});var o=d(9490),l=d(8345),h=d(7716),_=d(946),a=d(521),C=d(5197),w=d(8583),D=d(9765),g=d(9412),E=d(6215),M=d(5639),S=d(5917),P=d(6782),L=d(5257);const j=[[["caption"]],[["colgroup"],["col"]]],ae=["caption","colgroup, col"];function he(ee,be){if(1&ee&&(h.\u0275\u0275elementStart(0,"th",3),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ee){const Y=h.\u0275\u0275nextContext();h.\u0275\u0275styleProp("text-align",Y.justify),h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate1(" ",Y.headerText," ")}}function ye(ee,be){if(1&ee&&(h.\u0275\u0275elementStart(0,"td",4),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ee){const Y=be.$implicit,ve=h.\u0275\u0275nextContext();h.\u0275\u0275styleProp("text-align",ve.justify),h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate1(" ",ve.dataAccessor(Y,ve.name)," ")}}function $e(ee){return class extends ee{constructor(...be){super(...be),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(be){const Y=this._sticky;this._sticky=(0,o.Ig)(be),this._hasStickyChanged=Y!==this._sticky}hasStickyChanged(){const be=this._hasStickyChanged;return this._hasStickyChanged=!1,be}resetStickyChanged(){this._hasStickyChanged=!1}}}const at=new h.InjectionToken("CDK_TABLE"),Ze=new h.InjectionToken("text-column-options");let Me=(()=>{class ee{constructor(Y){this.template=Y}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.TemplateRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkCellDef",""]]}),ee})(),Re=(()=>{class ee{constructor(Y){this.template=Y}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.TemplateRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkHeaderCellDef",""]]}),ee})(),Pe=(()=>{class ee{constructor(Y){this.template=Y}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.TemplateRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkFooterCellDef",""]]}),ee})();class Ne{}const Ct=$e(Ne);let te=(()=>{class ee extends Ct{constructor(Y){super(),this._table=Y,this._stickyEnd=!1}get name(){return this._name}set name(Y){this._setNameInput(Y)}get stickyEnd(){return this._stickyEnd}set stickyEnd(Y){const ve=this._stickyEnd;this._stickyEnd=(0,o.Ig)(Y),this._hasStickyChanged=ve!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(Y){Y&&(this._name=Y,this.cssClassFriendlyName=Y.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(at,8))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkColumnDef",""]],contentQueries:function(Y,ve,Ke){if(1&Y&&(h.\u0275\u0275contentQuery(Ke,Me,5),h.\u0275\u0275contentQuery(Ke,Re,5),h.\u0275\u0275contentQuery(Ke,Pe,5)),2&Y){let yt;h.\u0275\u0275queryRefresh(yt=h.\u0275\u0275loadQuery())&&(ve.cell=yt.first),h.\u0275\u0275queryRefresh(yt=h.\u0275\u0275loadQuery())&&(ve.headerCell=yt.first),h.\u0275\u0275queryRefresh(yt=h.\u0275\u0275loadQuery())&&(ve.footerCell=yt.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[h.\u0275\u0275ProvidersFeature([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature]}),ee})();class ge{constructor(be,Y){const ve=Y.nativeElement.classList;for(const Ke of be._columnCssClassName)ve.add(Ke)}}let X=(()=>{class ee extends ge{constructor(Y,ve){super(Y,ve)}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(te),h.\u0275\u0275directiveInject(h.ElementRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[h.\u0275\u0275InheritDefinitionFeature]}),ee})(),ce=(()=>{class ee extends ge{constructor(Y,ve){var Ke;if(super(Y,ve),1===(null===(Ke=Y._table)||void 0===Ke?void 0:Ke._elementRef.nativeElement.nodeType)){const yt=Y._table._elementRef.nativeElement.getAttribute("role");ve.nativeElement.setAttribute("role","grid"===yt||"treegrid"===yt?"gridcell":"cell")}}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(te),h.\u0275\u0275directiveInject(h.ElementRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[h.\u0275\u0275InheritDefinitionFeature]}),ee})(),Ae=(()=>{class ee extends ge{constructor(Y,ve){var Ke;if(super(Y,ve),1===(null===(Ke=Y._table)||void 0===Ke?void 0:Ke._elementRef.nativeElement.nodeType)){const yt=Y._table._elementRef.nativeElement.getAttribute("role");ve.nativeElement.setAttribute("role","grid"===yt||"treegrid"===yt?"gridcell":"cell")}}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(te),h.\u0275\u0275directiveInject(h.ElementRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[h.\u0275\u0275InheritDefinitionFeature]}),ee})();class Ce{constructor(){this.tasks=[],this.endTasks=[]}}const Ue=new h.InjectionToken("_COALESCED_STYLE_SCHEDULER");let et=(()=>{class ee{constructor(Y){this._ngZone=Y,this._currentSchedule=null,this._destroyed=new D.xQ}schedule(Y){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(Y)}scheduleEnd(Y){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(Y)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Ce,this._getScheduleObservable().pipe((0,P.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const Y=this._currentSchedule;this._currentSchedule=new Ce;for(const ve of Y.tasks)ve();for(const ve of Y.endTasks)ve()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,g.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,L.q)(1))}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275inject(h.NgZone))},ee.\u0275prov=h.\u0275\u0275defineInjectable({token:ee,factory:ee.\u0275fac}),ee})(),je=(()=>{class ee{constructor(Y,ve){this.template=Y,this._differs=ve}ngOnChanges(Y){if(!this._columnsDiffer){const ve=Y.columns&&Y.columns.currentValue||[];this._columnsDiffer=this._differs.find(ve).create(),this._columnsDiffer.diff(ve)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(Y){return this instanceof It?Y.headerCell.template:this instanceof $?Y.footerCell.template:Y.cell.template}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.TemplateRef),h.\u0275\u0275directiveInject(h.IterableDiffers))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,features:[h.\u0275\u0275NgOnChangesFeature]}),ee})();class tt extends je{}const ut=$e(tt);let It=(()=>{class ee extends ut{constructor(Y,ve,Ke){super(Y,ve),this._table=Ke}ngOnChanges(Y){super.ngOnChanges(Y)}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.TemplateRef),h.\u0275\u0275directiveInject(h.IterableDiffers),h.\u0275\u0275directiveInject(at,8))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[h.\u0275\u0275InheritDefinitionFeature,h.\u0275\u0275NgOnChangesFeature]}),ee})();class Xe extends je{}const dt=$e(Xe);let $=(()=>{class ee extends dt{constructor(Y,ve,Ke){super(Y,ve),this._table=Ke}ngOnChanges(Y){super.ngOnChanges(Y)}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.TemplateRef),h.\u0275\u0275directiveInject(h.IterableDiffers),h.\u0275\u0275directiveInject(at,8))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[h.\u0275\u0275InheritDefinitionFeature,h.\u0275\u0275NgOnChangesFeature]}),ee})(),se=(()=>{class ee extends je{constructor(Y,ve,Ke){super(Y,ve),this._table=Ke}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.TemplateRef),h.\u0275\u0275directiveInject(h.IterableDiffers),h.\u0275\u0275directiveInject(at,8))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[h.\u0275\u0275InheritDefinitionFeature]}),ee})(),H=(()=>{class ee{constructor(Y){this._viewContainer=Y,ee.mostRecentCellOutlet=this}ngOnDestroy(){ee.mostRecentCellOutlet===this&&(ee.mostRecentCellOutlet=null)}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.ViewContainerRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","cdkCellOutlet",""]]}),ee.mostRecentCellOutlet=null,ee})(),le=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275cmp=h.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ve){1&Y&&h.\u0275\u0275elementContainer(0,0)},directives:[H],encapsulation:2}),ee})(),ne=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275cmp=h.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ve){1&Y&&h.\u0275\u0275elementContainer(0,0)},directives:[H],encapsulation:2}),ee})(),fe=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275cmp=h.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ve){1&Y&&h.\u0275\u0275elementContainer(0,0)},directives:[H],encapsulation:2}),ee})(),Oe=(()=>{class ee{constructor(Y){this.templateRef=Y}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.TemplateRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["ng-template","cdkNoDataRow",""]]}),ee})();const rt=["top","bottom","left","right"];class wt{constructor(be,Y,ve,Ke,yt=!0,Tt=!0,we){this._isNativeHtmlTable=be,this._stickCellCss=Y,this.direction=ve,this._coalescedStyleScheduler=Ke,this._isBrowser=yt,this._needsPositionStickyOnElement=Tt,this._positionListener=we,this._cachedCellWidths=[],this._borderCellCss={top:`${Y}-border-elem-top`,bottom:`${Y}-border-elem-bottom`,left:`${Y}-border-elem-left`,right:`${Y}-border-elem-right`}}clearStickyPositioning(be,Y){const ve=[];for(const Ke of be)if(Ke.nodeType===Ke.ELEMENT_NODE){ve.push(Ke);for(let yt=0;yt<Ke.children.length;yt++)ve.push(Ke.children[yt])}this._coalescedStyleScheduler.schedule(()=>{for(const Ke of ve)this._removeStickyStyle(Ke,Y)})}updateStickyColumns(be,Y,ve,Ke=!0){if(!be.length||!this._isBrowser||!Y.some(Ft=>Ft)&&!ve.some(Ft=>Ft))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const yt=be[0],Tt=yt.children.length,we=this._getCellWidths(yt,Ke),Ie=this._getStickyStartColumnPositions(we,Y),pe=this._getStickyEndColumnPositions(we,ve),Ve=Y.lastIndexOf(!0),lt=ve.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Ft="rtl"===this.direction,$t=Ft?"right":"left",qt=Ft?"left":"right";for(const Wt of be)for(let Mn=0;Mn<Tt;Mn++){const gi=Wt.children[Mn];Y[Mn]&&this._addStickyStyle(gi,$t,Ie[Mn],Mn===Ve),ve[Mn]&&this._addStickyStyle(gi,qt,pe[Mn],Mn===lt)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Ve?[]:we.slice(0,Ve+1).map((Wt,Mn)=>Y[Mn]?Wt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===lt?[]:we.slice(lt).map((Wt,Mn)=>ve[Mn+lt]?Wt:null).reverse()}))})}stickRows(be,Y,ve){if(!this._isBrowser)return;const Ke="bottom"===ve?be.slice().reverse():be,yt="bottom"===ve?Y.slice().reverse():Y,Tt=[],we=[],Ie=[];for(let Ve=0,lt=0;Ve<Ke.length;Ve++){if(!yt[Ve])continue;Tt[Ve]=lt;const Ft=Ke[Ve];Ie[Ve]=this._isNativeHtmlTable?Array.from(Ft.children):[Ft];const $t=Ft.getBoundingClientRect().height;lt+=$t,we[Ve]=$t}const pe=yt.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Ve,lt;for(let Ft=0;Ft<Ke.length;Ft++){if(!yt[Ft])continue;const $t=Tt[Ft],qt=Ft===pe;for(const Wt of Ie[Ft])this._addStickyStyle(Wt,ve,$t,qt)}"top"===ve?null===(Ve=this._positionListener)||void 0===Ve||Ve.stickyHeaderRowsUpdated({sizes:we,offsets:Tt,elements:Ie}):null===(lt=this._positionListener)||void 0===lt||lt.stickyFooterRowsUpdated({sizes:we,offsets:Tt,elements:Ie})})}updateStickyFooterContainer(be,Y){if(!this._isNativeHtmlTable)return;const ve=be.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{Y.some(Ke=>!Ke)?this._removeStickyStyle(ve,["bottom"]):this._addStickyStyle(ve,"bottom",0,!1)})}_removeStickyStyle(be,Y){for(const Ke of Y)be.style[Ke]="",be.classList.remove(this._borderCellCss[Ke]);rt.some(Ke=>-1===Y.indexOf(Ke)&&be.style[Ke])?be.style.zIndex=this._getCalculatedZIndex(be):(be.style.zIndex="",this._needsPositionStickyOnElement&&(be.style.position=""),be.classList.remove(this._stickCellCss))}_addStickyStyle(be,Y,ve,Ke){be.classList.add(this._stickCellCss),Ke&&be.classList.add(this._borderCellCss[Y]),be.style[Y]=`${ve}px`,be.style.zIndex=this._getCalculatedZIndex(be),this._needsPositionStickyOnElement&&(be.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(be){const Y={top:100,bottom:10,left:1,right:1};let ve=0;for(const Ke of rt)be.style[Ke]&&(ve+=Y[Ke]);return ve?`${ve}`:""}_getCellWidths(be,Y=!0){if(!Y&&this._cachedCellWidths.length)return this._cachedCellWidths;const ve=[],Ke=be.children;for(let yt=0;yt<Ke.length;yt++)ve.push(Ke[yt].getBoundingClientRect().width);return this._cachedCellWidths=ve,ve}_getStickyStartColumnPositions(be,Y){const ve=[];let Ke=0;for(let yt=0;yt<be.length;yt++)Y[yt]&&(ve[yt]=Ke,Ke+=be[yt]);return ve}_getStickyEndColumnPositions(be,Y){const ve=[];let Ke=0;for(let yt=be.length;yt>0;yt--)Y[yt]&&(ve[yt]=Ke,Ke+=be[yt]);return ve}}const x=new h.InjectionToken("CDK_SPL");let R=(()=>{class ee{constructor(Y,ve){this.viewContainer=Y,this.elementRef=ve}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.ViewContainerRef),h.\u0275\u0275directiveInject(h.ElementRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","rowOutlet",""]]}),ee})(),de=(()=>{class ee{constructor(Y,ve){this.viewContainer=Y,this.elementRef=ve}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.ViewContainerRef),h.\u0275\u0275directiveInject(h.ElementRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","headerRowOutlet",""]]}),ee})(),z=(()=>{class ee{constructor(Y,ve){this.viewContainer=Y,this.elementRef=ve}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.ViewContainerRef),h.\u0275\u0275directiveInject(h.ElementRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","footerRowOutlet",""]]}),ee})(),re=(()=>{class ee{constructor(Y,ve){this.viewContainer=Y,this.elementRef=ve}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.ViewContainerRef),h.\u0275\u0275directiveInject(h.ElementRef))},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","noDataRowOutlet",""]]}),ee})(),Et=(()=>{class ee{constructor(Y,ve,Ke,yt,Tt,we,Ie,pe,Ve,lt,Ft){this._differs=Y,this._changeDetectorRef=ve,this._elementRef=Ke,this._dir=Tt,this._platform=Ie,this._viewRepeater=pe,this._coalescedStyleScheduler=Ve,this._viewportRuler=lt,this._stickyPositioningListener=Ft,this._onDestroy=new D.xQ,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new h.EventEmitter,this.viewChange=new E.X({start:0,end:Number.MAX_VALUE}),yt||this._elementRef.nativeElement.setAttribute("role","table"),this._document=we,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(Y){this._trackByFn=Y}get dataSource(){return this._dataSource}set dataSource(Y){this._dataSource!==Y&&this._switchDataSource(Y)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(Y){this._multiTemplateDataRows=(0,o.Ig)(Y),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(Y){this._fixedLayout=(0,o.Ig)(Y),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((Y,ve)=>this.trackBy?this.trackBy(ve.dataIndex,ve.data):ve),this._viewportRuler.change().pipe((0,P.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const ve=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||ve,this._forceRecalculateCellWidths=ve,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),(0,l.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const Y=this._dataDiffer.diff(this._renderRows);if(!Y)return this._updateNoDataRow(),void this.contentChanged.next();const ve=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(Y,ve,(Ke,yt,Tt)=>this._getEmbeddedViewArgs(Ke.item,Tt),Ke=>Ke.item.data,Ke=>{1===Ke.operation&&Ke.context&&this._renderCellTemplateForItem(Ke.record.item.rowDef,Ke.context)}),this._updateRowIndexContext(),Y.forEachIdentityChange(Ke=>{ve.get(Ke.currentIndex).context.$implicit=Ke.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(Y){this._customColumnDefs.add(Y)}removeColumnDef(Y){this._customColumnDefs.delete(Y)}addRowDef(Y){this._customRowDefs.add(Y)}removeRowDef(Y){this._customRowDefs.delete(Y)}addHeaderRowDef(Y){this._customHeaderRowDefs.add(Y),this._headerRowDefChanged=!0}removeHeaderRowDef(Y){this._customHeaderRowDefs.delete(Y),this._headerRowDefChanged=!0}addFooterRowDef(Y){this._customFooterRowDefs.add(Y),this._footerRowDefChanged=!0}removeFooterRowDef(Y){this._customFooterRowDefs.delete(Y),this._footerRowDefChanged=!0}setNoDataRow(Y){this._customNoDataRow=Y}updateStickyHeaderRowStyles(){const Y=this._getRenderedRows(this._headerRowOutlet),Ke=this._elementRef.nativeElement.querySelector("thead");Ke&&(Ke.style.display=Y.length?"":"none");const yt=this._headerRowDefs.map(Tt=>Tt.sticky);this._stickyStyler.clearStickyPositioning(Y,["top"]),this._stickyStyler.stickRows(Y,yt,"top"),this._headerRowDefs.forEach(Tt=>Tt.resetStickyChanged())}updateStickyFooterRowStyles(){const Y=this._getRenderedRows(this._footerRowOutlet),Ke=this._elementRef.nativeElement.querySelector("tfoot");Ke&&(Ke.style.display=Y.length?"":"none");const yt=this._footerRowDefs.map(Tt=>Tt.sticky);this._stickyStyler.clearStickyPositioning(Y,["bottom"]),this._stickyStyler.stickRows(Y,yt,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,yt),this._footerRowDefs.forEach(Tt=>Tt.resetStickyChanged())}updateStickyColumnStyles(){const Y=this._getRenderedRows(this._headerRowOutlet),ve=this._getRenderedRows(this._rowOutlet),Ke=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...Y,...ve,...Ke],["left","right"]),this._stickyColumnStylesNeedReset=!1),Y.forEach((yt,Tt)=>{this._addStickyColumnStyles([yt],this._headerRowDefs[Tt])}),this._rowDefs.forEach(yt=>{const Tt=[];for(let we=0;we<ve.length;we++)this._renderRows[we].rowDef===yt&&Tt.push(ve[we]);this._addStickyColumnStyles(Tt,yt)}),Ke.forEach((yt,Tt)=>{this._addStickyColumnStyles([yt],this._footerRowDefs[Tt])}),Array.from(this._columnDefsByName.values()).forEach(yt=>yt.resetStickyChanged())}_getAllRenderRows(){const Y=[],ve=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let Ke=0;Ke<this._data.length;Ke++){let yt=this._data[Ke];const Tt=this._getRenderRowsForData(yt,Ke,ve.get(yt));this._cachedRenderRowsMap.has(yt)||this._cachedRenderRowsMap.set(yt,new WeakMap);for(let we=0;we<Tt.length;we++){let Ie=Tt[we];const pe=this._cachedRenderRowsMap.get(Ie.data);pe.has(Ie.rowDef)?pe.get(Ie.rowDef).push(Ie):pe.set(Ie.rowDef,[Ie]),Y.push(Ie)}}return Y}_getRenderRowsForData(Y,ve,Ke){return this._getRowDefs(Y,ve).map(Tt=>{const we=Ke&&Ke.has(Tt)?Ke.get(Tt):[];if(we.length){const Ie=we.shift();return Ie.dataIndex=ve,Ie}return{data:Y,rowDef:Tt,dataIndex:ve}})}_cacheColumnDefs(){this._columnDefsByName.clear(),xt(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(ve=>{this._columnDefsByName.has(ve.name),this._columnDefsByName.set(ve.name,ve)})}_cacheRowDefs(){this._headerRowDefs=xt(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=xt(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=xt(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const Y=this._rowDefs.filter(ve=>!ve.when);this._defaultRowDef=Y[0]}_renderUpdatedColumns(){const Y=(Tt,we)=>Tt||!!we.getColumnsDiff(),ve=this._rowDefs.reduce(Y,!1);ve&&this._forceRenderDataRows();const Ke=this._headerRowDefs.reduce(Y,!1);Ke&&this._forceRenderHeaderRows();const yt=this._footerRowDefs.reduce(Y,!1);return yt&&this._forceRenderFooterRows(),ve||Ke||yt}_switchDataSource(Y){this._data=[],(0,l.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),Y||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=Y}_observeRenderChanges(){if(!this.dataSource)return;let Y;(0,l.Z9)(this.dataSource)?Y=this.dataSource.connect(this):(0,M.b)(this.dataSource)?Y=this.dataSource:Array.isArray(this.dataSource)&&(Y=(0,S.of)(this.dataSource)),this._renderChangeSubscription=Y.pipe((0,P.R)(this._onDestroy)).subscribe(ve=>{this._data=ve||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((Y,ve)=>this._renderRow(this._headerRowOutlet,Y,ve)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((Y,ve)=>this._renderRow(this._footerRowOutlet,Y,ve)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(Y,ve){const Ke=Array.from(ve.columns||[]).map(we=>this._columnDefsByName.get(we)),yt=Ke.map(we=>we.sticky),Tt=Ke.map(we=>we.stickyEnd);this._stickyStyler.updateStickyColumns(Y,yt,Tt,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(Y){const ve=[];for(let Ke=0;Ke<Y.viewContainer.length;Ke++){const yt=Y.viewContainer.get(Ke);ve.push(yt.rootNodes[0])}return ve}_getRowDefs(Y,ve){if(1==this._rowDefs.length)return[this._rowDefs[0]];let Ke=[];if(this.multiTemplateDataRows)Ke=this._rowDefs.filter(yt=>!yt.when||yt.when(ve,Y));else{let yt=this._rowDefs.find(Tt=>Tt.when&&Tt.when(ve,Y))||this._defaultRowDef;yt&&Ke.push(yt)}return Ke}_getEmbeddedViewArgs(Y,ve){return{templateRef:Y.rowDef.template,context:{$implicit:Y.data},index:ve}}_renderRow(Y,ve,Ke,yt={}){const Tt=Y.viewContainer.createEmbeddedView(ve.template,yt,Ke);return this._renderCellTemplateForItem(ve,yt),Tt}_renderCellTemplateForItem(Y,ve){for(let Ke of this._getCellTemplates(Y))H.mostRecentCellOutlet&&H.mostRecentCellOutlet._viewContainer.createEmbeddedView(Ke,ve);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const Y=this._rowOutlet.viewContainer;for(let ve=0,Ke=Y.length;ve<Ke;ve++){const Tt=Y.get(ve).context;Tt.count=Ke,Tt.first=0===ve,Tt.last=ve===Ke-1,Tt.even=ve%2==0,Tt.odd=!Tt.even,this.multiTemplateDataRows?(Tt.dataIndex=this._renderRows[ve].dataIndex,Tt.renderIndex=ve):Tt.index=this._renderRows[ve].dataIndex}}_getCellTemplates(Y){return Y&&Y.columns?Array.from(Y.columns,ve=>{const Ke=this._columnDefsByName.get(ve);return Y.extractCellTemplate(Ke)}):[]}_applyNativeTableSections(){const Y=this._document.createDocumentFragment(),ve=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const Ke of ve){const yt=this._document.createElement(Ke.tag);yt.setAttribute("role","rowgroup");for(const Tt of Ke.outlets)yt.appendChild(Tt.elementRef.nativeElement);Y.appendChild(yt)}this._elementRef.nativeElement.appendChild(Y)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const Y=(ve,Ke)=>ve||Ke.hasStickyChanged();this._headerRowDefs.reduce(Y,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(Y,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(Y,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new wt(this._isNativeHtmlTable,this.stickyCssClass,this._dir?this._dir.value:"ltr",this._coalescedStyleScheduler,this._platform.isBrowser,this.needsPositionStickyOnElement,this._stickyPositioningListener),(this._dir?this._dir.change:(0,S.of)()).pipe((0,P.R)(this._onDestroy)).subscribe(ve=>{this._stickyStyler.direction=ve,this.updateStickyColumnStyles()})}_getOwnDefs(Y){return Y.filter(ve=>!ve._table||ve._table===this)}_updateNoDataRow(){const Y=this._customNoDataRow||this._noDataRow;if(Y){const ve=0===this._rowOutlet.viewContainer.length;if(ve!==this._isShowingNoDataRow){const Ke=this._noDataRowOutlet.viewContainer;ve?Ke.createEmbeddedView(Y.templateRef):Ke.clear(),this._isShowingNoDataRow=ve}}}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(h.IterableDiffers),h.\u0275\u0275directiveInject(h.ChangeDetectorRef),h.\u0275\u0275directiveInject(h.ElementRef),h.\u0275\u0275injectAttribute("role"),h.\u0275\u0275directiveInject(_.Is,8),h.\u0275\u0275directiveInject(w.DOCUMENT),h.\u0275\u0275directiveInject(a.t4),h.\u0275\u0275directiveInject(l.k),h.\u0275\u0275directiveInject(Ue),h.\u0275\u0275directiveInject(C.rL),h.\u0275\u0275directiveInject(x,12))},ee.\u0275cmp=h.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(Y,ve,Ke){if(1&Y&&(h.\u0275\u0275contentQuery(Ke,Oe,5),h.\u0275\u0275contentQuery(Ke,te,5),h.\u0275\u0275contentQuery(Ke,se,5),h.\u0275\u0275contentQuery(Ke,It,5),h.\u0275\u0275contentQuery(Ke,$,5)),2&Y){let yt;h.\u0275\u0275queryRefresh(yt=h.\u0275\u0275loadQuery())&&(ve._noDataRow=yt.first),h.\u0275\u0275queryRefresh(yt=h.\u0275\u0275loadQuery())&&(ve._contentColumnDefs=yt),h.\u0275\u0275queryRefresh(yt=h.\u0275\u0275loadQuery())&&(ve._contentRowDefs=yt),h.\u0275\u0275queryRefresh(yt=h.\u0275\u0275loadQuery())&&(ve._contentHeaderRowDefs=yt),h.\u0275\u0275queryRefresh(yt=h.\u0275\u0275loadQuery())&&(ve._contentFooterRowDefs=yt)}},viewQuery:function(Y,ve){if(1&Y&&(h.\u0275\u0275viewQuery(R,7),h.\u0275\u0275viewQuery(de,7),h.\u0275\u0275viewQuery(z,7),h.\u0275\u0275viewQuery(re,7)),2&Y){let Ke;h.\u0275\u0275queryRefresh(Ke=h.\u0275\u0275loadQuery())&&(ve._rowOutlet=Ke.first),h.\u0275\u0275queryRefresh(Ke=h.\u0275\u0275loadQuery())&&(ve._headerRowOutlet=Ke.first),h.\u0275\u0275queryRefresh(Ke=h.\u0275\u0275loadQuery())&&(ve._footerRowOutlet=Ke.first),h.\u0275\u0275queryRefresh(Ke=h.\u0275\u0275loadQuery())&&(ve._noDataRowOutlet=Ke.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(Y,ve){2&Y&&h.\u0275\u0275classProp("cdk-table-fixed-layout",ve.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[h.\u0275\u0275ProvidersFeature([{provide:at,useExisting:ee},{provide:l.k,useClass:l.yy},{provide:Ue,useClass:et},{provide:x,useValue:null}])],ngContentSelectors:ae,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Y,ve){1&Y&&(h.\u0275\u0275projectionDef(j),h.\u0275\u0275projection(0),h.\u0275\u0275projection(1,1),h.\u0275\u0275elementContainer(2,0),h.\u0275\u0275elementContainer(3,1),h.\u0275\u0275elementContainer(4,2),h.\u0275\u0275elementContainer(5,3))},directives:[de,R,re,z],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),ee})();function xt(ee,be){return ee.concat(Array.from(be))}let Nt=(()=>{class ee{constructor(Y,ve){this._table=Y,this._options=ve,this.justify="start",this._options=ve||{}}get name(){return this._name}set name(Y){this._name=Y,this._syncColumnDefName()}ngOnInit(){this._syncColumnDefName(),void 0===this.headerText&&(this.headerText=this._createDefaultHeaderText()),this.dataAccessor||(this.dataAccessor=this._options.defaultDataAccessor||((Y,ve)=>Y[ve])),this._table&&(this.columnDef.cell=this.cell,this.columnDef.headerCell=this.headerCell,this._table.addColumnDef(this.columnDef))}ngOnDestroy(){this._table&&this._table.removeColumnDef(this.columnDef)}_createDefaultHeaderText(){const Y=this.name;return this._options&&this._options.defaultHeaderTextTransform?this._options.defaultHeaderTextTransform(Y):Y[0].toUpperCase()+Y.slice(1)}_syncColumnDefName(){this.columnDef&&(this.columnDef.name=this.name)}}return ee.\u0275fac=function(Y){return new(Y||ee)(h.\u0275\u0275directiveInject(Et,8),h.\u0275\u0275directiveInject(Ze,8))},ee.\u0275cmp=h.\u0275\u0275defineComponent({type:ee,selectors:[["cdk-text-column"]],viewQuery:function(Y,ve){if(1&Y&&(h.\u0275\u0275viewQuery(te,7),h.\u0275\u0275viewQuery(Me,7),h.\u0275\u0275viewQuery(Re,7)),2&Y){let Ke;h.\u0275\u0275queryRefresh(Ke=h.\u0275\u0275loadQuery())&&(ve.columnDef=Ke.first),h.\u0275\u0275queryRefresh(Ke=h.\u0275\u0275loadQuery())&&(ve.cell=Ke.first),h.\u0275\u0275queryRefresh(Ke=h.\u0275\u0275loadQuery())&&(ve.headerCell=Ke.first)}},inputs:{justify:"justify",name:"name",headerText:"headerText",dataAccessor:"dataAccessor"},decls:3,vars:0,consts:[["cdkColumnDef",""],["cdk-header-cell","",3,"text-align",4,"cdkHeaderCellDef"],["cdk-cell","",3,"text-align",4,"cdkCellDef"],["cdk-header-cell",""],["cdk-cell",""]],template:function(Y,ve){1&Y&&(h.\u0275\u0275elementContainerStart(0,0),h.\u0275\u0275template(1,he,2,3,"th",1),h.\u0275\u0275template(2,ye,2,3,"td",2),h.\u0275\u0275elementContainerEnd())},directives:[te,Re,Me,X,Ae],encapsulation:2}),ee})(),Qt=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275mod=h.\u0275\u0275defineNgModule({type:ee}),ee.\u0275inj=h.\u0275\u0275defineInjector({imports:[[C.Cl]]}),ee})();var At=d(2458),Lt=d(6682),jt=d(9112),_n=d(8002);const qe=[[["caption"]],[["colgroup"],["col"]]],Pt=["caption","colgroup, col"];function B(ee,be){if(1&ee&&(h.\u0275\u0275elementStart(0,"th",3),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ee){const Y=h.\u0275\u0275nextContext();h.\u0275\u0275styleProp("text-align",Y.justify),h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate1(" ",Y.headerText," ")}}function K(ee,be){if(1&ee&&(h.\u0275\u0275elementStart(0,"td",4),h.\u0275\u0275text(1),h.\u0275\u0275elementEnd()),2&ee){const Y=be.$implicit,ve=h.\u0275\u0275nextContext();h.\u0275\u0275styleProp("text-align",ve.justify),h.\u0275\u0275advance(1),h.\u0275\u0275textInterpolate1(" ",ve.dataAccessor(Y,ve.name)," ")}}let W=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["mat-table","recycleRows",""],["table","mat-table","","recycleRows",""]],features:[h.\u0275\u0275ProvidersFeature([{provide:l.k,useClass:l.eX}])]}),ee})(),De=(()=>{class ee extends Et{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275cmp=h.\u0275\u0275defineComponent({type:ee,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(Y,ve){2&Y&&h.\u0275\u0275classProp("mat-table-fixed-layout",ve.fixedLayout)},exportAs:["matTable"],features:[h.\u0275\u0275ProvidersFeature([{provide:l.k,useClass:l.yy},{provide:Et,useExisting:ee},{provide:at,useExisting:ee},{provide:Ue,useClass:et},{provide:x,useValue:null}]),h.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Pt,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(Y,ve){1&Y&&(h.\u0275\u0275projectionDef(qe),h.\u0275\u0275projection(0),h.\u0275\u0275projection(1,1),h.\u0275\u0275elementContainer(2,0),h.\u0275\u0275elementContainer(3,1),h.\u0275\u0275elementContainer(4,2),h.\u0275\u0275elementContainer(5,3))},directives:[de,R,re,z],styles:['mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-row::after,mat-header-row::after,mat-footer-row::after{display:inline-block;min-height:inherit;content:""}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}table.mat-table{border-spacing:0}tr.mat-header-row{height:56px}tr.mat-row,tr.mat-footer-row{height:48px}th.mat-header-cell{text-align:left}[dir=rtl] th.mat-header-cell{text-align:right}th.mat-header-cell,td.mat-cell,td.mat-footer-cell{padding:0;border-bottom-width:1px;border-bottom-style:solid}th.mat-header-cell:first-of-type,td.mat-cell:first-of-type,td.mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] th.mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:first-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}th.mat-header-cell:last-of-type,td.mat-cell:last-of-type,td.mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] th.mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-cell:last-of-type:not(:only-of-type),[dir=rtl] td.mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}.mat-table-sticky{position:-webkit-sticky !important;position:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n'],encapsulation:2}),ee})(),Ee=(()=>{class ee extends Me{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","matCellDef",""]],features:[h.\u0275\u0275ProvidersFeature([{provide:Me,useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature]}),ee})(),Q=(()=>{class ee extends Re{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","matHeaderCellDef",""]],features:[h.\u0275\u0275ProvidersFeature([{provide:Re,useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature]}),ee})(),J=(()=>{class ee extends Pe{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","matFooterCellDef",""]],features:[h.\u0275\u0275ProvidersFeature([{provide:Pe,useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature]}),ee})(),N=(()=>{class ee extends te{get name(){return this._name}set name(Y){this._setNameInput(Y)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[h.\u0275\u0275ProvidersFeature([{provide:te,useExisting:ee},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature]}),ee})(),oe=(()=>{class ee extends X{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[h.\u0275\u0275InheritDefinitionFeature]}),ee})(),st=(()=>{class ee extends ce{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[h.\u0275\u0275InheritDefinitionFeature]}),ee})(),_t=(()=>{class ee extends Ae{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[h.\u0275\u0275InheritDefinitionFeature]}),ee})(),Ht=(()=>{class ee extends It{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[h.\u0275\u0275ProvidersFeature([{provide:It,useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature]}),ee})(),dn=(()=>{class ee extends ${}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[h.\u0275\u0275ProvidersFeature([{provide:$,useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature]}),ee})(),cn=(()=>{class ee extends se{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[h.\u0275\u0275ProvidersFeature([{provide:se,useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature]}),ee})(),an=(()=>{class ee extends le{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275cmp=h.\u0275\u0275defineComponent({type:ee,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[h.\u0275\u0275ProvidersFeature([{provide:le,useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ve){1&Y&&h.\u0275\u0275elementContainer(0,0)},directives:[H],encapsulation:2}),ee})(),un=(()=>{class ee extends ne{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275cmp=h.\u0275\u0275defineComponent({type:ee,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[h.\u0275\u0275ProvidersFeature([{provide:ne,useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ve){1&Y&&h.\u0275\u0275elementContainer(0,0)},directives:[H],encapsulation:2}),ee})(),wn=(()=>{class ee extends fe{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275cmp=h.\u0275\u0275defineComponent({type:ee,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[h.\u0275\u0275ProvidersFeature([{provide:fe,useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(Y,ve){1&Y&&h.\u0275\u0275elementContainer(0,0)},directives:[H],encapsulation:2}),ee})(),yn=(()=>{class ee extends Oe{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275dir=h.\u0275\u0275defineDirective({type:ee,selectors:[["ng-template","matNoDataRow",""]],features:[h.\u0275\u0275ProvidersFeature([{provide:Oe,useExisting:ee}]),h.\u0275\u0275InheritDefinitionFeature]}),ee})(),mt=(()=>{class ee extends Nt{}return ee.\u0275fac=function(){let be;return function(ve){return(be||(be=h.\u0275\u0275getInheritedFactory(ee)))(ve||ee)}}(),ee.\u0275cmp=h.\u0275\u0275defineComponent({type:ee,selectors:[["mat-text-column"]],features:[h.\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(Y,ve){1&Y&&(h.\u0275\u0275elementContainerStart(0,0),h.\u0275\u0275template(1,B,2,3,"th",1),h.\u0275\u0275template(2,K,2,3,"td",2),h.\u0275\u0275elementContainerEnd())},directives:[N,Q,Ee,oe,_t],encapsulation:2}),ee})(),Se=(()=>{class ee{}return ee.\u0275fac=function(Y){return new(Y||ee)},ee.\u0275mod=h.\u0275\u0275defineNgModule({type:ee}),ee.\u0275inj=h.\u0275\u0275defineInjector({imports:[[Qt,At.BQ],At.BQ]}),ee})();class ht extends l.o2{constructor(be=[]){super(),this._renderData=new E.X([]),this._filter=new E.X(""),this._internalPageChanges=new D.xQ,this._renderChangesSubscription=null,this.sortingDataAccessor=(Y,ve)=>{const Ke=Y[ve];if((0,o.t6)(Ke)){const yt=Number(Ke);return yt<9007199254740991?yt:Ke}return Ke},this.sortData=(Y,ve)=>{const Ke=ve.active,yt=ve.direction;return Ke&&""!=yt?Y.sort((Tt,we)=>{let Ie=this.sortingDataAccessor(Tt,Ke),pe=this.sortingDataAccessor(we,Ke);const Ve=typeof Ie,lt=typeof pe;Ve!==lt&&("number"===Ve&&(Ie+=""),"number"===lt&&(pe+=""));let Ft=0;return null!=Ie&&null!=pe?Ie>pe?Ft=1:Ie<pe&&(Ft=-1):null!=Ie?Ft=1:null!=pe&&(Ft=-1),Ft*("asc"==yt?1:-1)}):Y},this.filterPredicate=(Y,ve)=>{const Ke=Object.keys(Y).reduce((Tt,we)=>Tt+Y[we]+"\u25ec","").toLowerCase(),yt=ve.trim().toLowerCase();return-1!=Ke.indexOf(yt)},this._data=new E.X(be),this._updateChangeSubscription()}get data(){return this._data.value}set data(be){this._data.next(be),this._renderChangesSubscription||this._filterData(be)}get filter(){return this._filter.value}set filter(be){this._filter.next(be),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(be){this._sort=be,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(be){this._paginator=be,this._updateChangeSubscription()}_updateChangeSubscription(){var be;const Y=this._sort?(0,Lt.T)(this._sort.sortChange,this._sort.initialized):(0,S.of)(null),ve=this._paginator?(0,Lt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,S.of)(null),yt=(0,jt.aj)([this._data,this._filter]).pipe((0,_n.U)(([Ie])=>this._filterData(Ie))),Tt=(0,jt.aj)([yt,Y]).pipe((0,_n.U)(([Ie])=>this._orderData(Ie))),we=(0,jt.aj)([Tt,ve]).pipe((0,_n.U)(([Ie])=>this._pageData(Ie)));null===(be=this._renderChangesSubscription)||void 0===be||be.unsubscribe(),this._renderChangesSubscription=we.subscribe(Ie=>this._renderData.next(Ie))}_filterData(be){return this.filteredData=null==this.filter||""===this.filter?be:be.filter(Y=>this.filterPredicate(Y,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(be){return this.sort?this.sortData(be.slice(),this.sort):be}_pageData(be){if(!this.paginator)return be;const Y=this.paginator.pageIndex*this.paginator.pageSize;return be.slice(Y,Y+this.paginator.pageSize)}_updatePaginator(be){Promise.resolve().then(()=>{const Y=this.paginator;if(Y&&(Y.length=be,Y.pageIndex>0)){const ve=Math.ceil(Y.length/Y.pageSize)-1||0,Ke=Math.min(Y.pageIndex,ve);Ke!==Y.pageIndex&&(Y.pageIndex=Ke,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var be;null===(be=this._renderChangesSubscription)||void 0===be||be.unsubscribe(),this._renderChangesSubscription=null}}class Rt extends ht{}},5939:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_TAB:()=>ne,MAT_TABS_CONFIG:()=>Ge,MAT_TAB_GROUP:()=>rt,MatInkBar:()=>$,MatTab:()=>wt,MatTabBody:()=>q,MatTabBodyPortal:()=>ze,MatTabChangeEvent:()=>vt,MatTabContent:()=>H,MatTabGroup:()=>F,MatTabHeader:()=>Nt,MatTabLabel:()=>fe,MatTabLabelWrapper:()=>de,MatTabLink:()=>jt,MatTabNav:()=>Qt,MatTabsModule:()=>_n,_MAT_INK_BAR_POSITIONER:()=>Xe,_MatTabBodyBase:()=>He,_MatTabGroupBase:()=>x,_MatTabHeaderBase:()=>xt,_MatTabLinkBase:()=>Lt,_MatTabNavBase:()=>Ut,matTabsAnimations:()=>Je,\u0275angular_material_src_material_tabs_tabs_a:()=>dt,\u0275angular_material_src_material_tabs_tabs_b:()=>le,\u0275angular_material_src_material_tabs_tabs_c:()=>se,\u0275angular_material_src_material_tabs_tabs_d:()=>Et});var o=d(9238),l=d(8553),h=d(7636),_=d(8583),a=d(7716),C=d(2458),w=d(6237),D=d(9765),g=d(826),E=d(6682),M=d(2759),S=d(5917),P=d(6797),L=d(7238),j=d(9761),ae=d(7519),he=d(6782),ye=d(9490),$e=d(521),at=d(6461),Ze=d(946),Me=d(5197);function Re(qe,Pt){1&qe&&a.\u0275\u0275projection(0)}const Pe=["*"];function Ne(qe,Pt){}const Ct=function(qe){return{animationDuration:qe}},te=function(qe,Pt){return{value:qe,params:Pt}},ge=["tabBodyWrapper"],X=["tabHeader"];function ce(qe,Pt){}function Ae(qe,Pt){if(1&qe&&a.\u0275\u0275template(0,ce,0,0,"ng-template",9),2&qe){const B=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275property("cdkPortalOutlet",B.templateLabel)}}function Ce(qe,Pt){if(1&qe&&a.\u0275\u0275text(0),2&qe){const B=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275textInterpolate(B.textLabel)}}function Ue(qe,Pt){if(1&qe){const B=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"div",6),a.\u0275\u0275listener("click",function(){const W=a.\u0275\u0275restoreView(B),De=W.$implicit,Ee=W.index,Q=a.\u0275\u0275nextContext(),J=a.\u0275\u0275reference(1);return Q._handleClick(De,J,Ee)})("cdkFocusChange",function(W){const Ee=a.\u0275\u0275restoreView(B).index;return a.\u0275\u0275nextContext()._tabFocusChanged(W,Ee)}),a.\u0275\u0275elementStart(1,"div",7),a.\u0275\u0275template(2,Ae,1,1,"ng-template",8),a.\u0275\u0275template(3,Ce,1,1,"ng-template",8),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()}if(2&qe){const B=Pt.$implicit,K=Pt.index,W=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("mat-tab-label-active",W.selectedIndex==K),a.\u0275\u0275property("id",W._getTabLabelId(K))("disabled",B.disabled)("matRippleDisabled",B.disabled||W.disableRipple),a.\u0275\u0275attribute("tabIndex",W._getTabIndex(B,K))("aria-posinset",K+1)("aria-setsize",W._tabs.length)("aria-controls",W._getTabContentId(K))("aria-selected",W.selectedIndex==K)("aria-label",B.ariaLabel||null)("aria-labelledby",!B.ariaLabel&&B.ariaLabelledby?B.ariaLabelledby:null),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngIf",B.templateLabel),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",!B.templateLabel)}}function et(qe,Pt){if(1&qe){const B=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"mat-tab-body",10),a.\u0275\u0275listener("_onCentered",function(){return a.\u0275\u0275restoreView(B),a.\u0275\u0275nextContext()._removeTabBodyWrapperHeight()})("_onCentering",function(W){return a.\u0275\u0275restoreView(B),a.\u0275\u0275nextContext()._setTabBodyWrapperHeight(W)}),a.\u0275\u0275elementEnd()}if(2&qe){const B=Pt.$implicit,K=Pt.index,W=a.\u0275\u0275nextContext();a.\u0275\u0275classProp("mat-tab-body-active",W.selectedIndex===K),a.\u0275\u0275property("id",W._getTabContentId(K))("content",B.content)("position",B.position)("origin",B.origin)("animationDuration",W.animationDuration),a.\u0275\u0275attribute("tabindex",null!=W.contentTabIndex&&W.selectedIndex===K?W.contentTabIndex:null)("aria-labelledby",W._getTabLabelId(K))}}const pt=["tabListContainer"],je=["tabList"],tt=["nextPaginator"],ut=["previousPaginator"],It=["mat-tab-nav-bar",""],Xe=new a.InjectionToken("MatInkBarPositioner",{providedIn:"root",factory:dt});function dt(){return Pt=>({left:Pt?(Pt.offsetLeft||0)+"px":"0",width:Pt?(Pt.offsetWidth||0)+"px":"0"})}let $=(()=>{class qe{constructor(B,K,W,De){this._elementRef=B,this._ngZone=K,this._inkBarPositioner=W,this._animationMode=De}alignToElement(B){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(B))}):this._setStyles(B)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(B){const K=this._inkBarPositioner(B),W=this._elementRef.nativeElement;W.style.left=K.left,W.style.width=K.width}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(Xe),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(B,K){2&B&&a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode)}}),qe})();const se=new a.InjectionToken("MatTabContent");let H=(()=>{class qe{constructor(B){this.template=B}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.TemplateRef))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["","matTabContent",""]],features:[a.\u0275\u0275ProvidersFeature([{provide:se,useExisting:qe}])]}),qe})();const le=new a.InjectionToken("MatTabLabel"),ne=new a.InjectionToken("MAT_TAB");let fe=(()=>{class qe extends h.ig{constructor(B,K,W){super(B,K),this._closestTab=W}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.TemplateRef),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(ne,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a.\u0275\u0275ProvidersFeature([{provide:le,useExisting:qe}]),a.\u0275\u0275InheritDefinitionFeature]}),qe})();const Oe=(0,C.Id)(class{}),rt=new a.InjectionToken("MAT_TAB_GROUP");let wt=(()=>{class qe extends Oe{constructor(B,K){super(),this._viewContainerRef=B,this._closestTabGroup=K,this.textLabel="",this._contentPortal=null,this._stateChanges=new D.xQ,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(B){this._setTemplateLabelInput(B)}get content(){return this._contentPortal}ngOnChanges(B){(B.hasOwnProperty("textLabel")||B.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new h.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(B){B&&B._closestTab===this&&(this._templateLabel=B)}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject(rt,8))},qe.\u0275cmp=a.\u0275\u0275defineComponent({type:qe,selectors:[["mat-tab"]],contentQueries:function(B,K,W){if(1&B&&(a.\u0275\u0275contentQuery(W,le,5),a.\u0275\u0275contentQuery(W,se,7,a.TemplateRef)),2&B){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K.templateLabel=De.first),a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._explicitContent=De.first)}},viewQuery:function(B,K){if(1&B&&a.\u0275\u0275viewQuery(a.TemplateRef,7),2&B){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._implicitContent=W.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[a.\u0275\u0275ProvidersFeature([{provide:ne,useExisting:qe}]),a.\u0275\u0275InheritDefinitionFeature,a.\u0275\u0275NgOnChangesFeature],ngContentSelectors:Pe,decls:1,vars:0,template:function(B,K){1&B&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275template(0,Re,1,0,"ng-template"))},encapsulation:2}),qe})();const Je={translateTab:(0,L.X$)("translateTab",[(0,L.SB)("center, void, left-origin-center, right-origin-center",(0,L.oB)({transform:"none"})),(0,L.SB)("left",(0,L.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,L.SB)("right",(0,L.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,L.eR)("* => left, * => right, left => center, right => center",(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,L.eR)("void => left-origin-center",[(0,L.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,L.eR)("void => right-origin-center",[(0,L.oB)({transform:"translate3d(100%, 0, 0)"}),(0,L.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let ze=(()=>{class qe extends h.Pl{constructor(B,K,W,De){super(B,K,De),this._host=W,this._centeringSub=g.w.EMPTY,this._leavingSub=g.w.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,j.O)(this._host._isCenterPosition(this._host._position))).subscribe(B=>{B&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ComponentFactoryResolver),a.\u0275\u0275directiveInject(a.ViewContainerRef),a.\u0275\u0275directiveInject((0,a.forwardRef)(()=>q)),a.\u0275\u0275directiveInject(_.DOCUMENT))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["","matTabBodyHost",""]],features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),He=(()=>{class qe{constructor(B,K,W){this._elementRef=B,this._dir=K,this._dirChangeSubscription=g.w.EMPTY,this._translateTabComplete=new D.xQ,this._onCentering=new a.EventEmitter,this._beforeCentering=new a.EventEmitter,this._afterLeavingCenter=new a.EventEmitter,this._onCentered=new a.EventEmitter(!0),this.animationDuration="500ms",K&&(this._dirChangeSubscription=K.change.subscribe(De=>{this._computePositionAnimationState(De),W.markForCheck()})),this._translateTabComplete.pipe((0,ae.x)((De,Ee)=>De.fromState===Ee.fromState&&De.toState===Ee.toState)).subscribe(De=>{this._isCenterPosition(De.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(De.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(B){this._positionIndex=B,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(B){const K=this._isCenterPosition(B.toState);this._beforeCentering.emit(K),K&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(B){return"center"==B||"left-origin-center"==B||"right-origin-center"==B}_computePositionAnimationState(B=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==B?"left":"right":this._positionIndex>0?"ltr"==B?"right":"left":"center"}_computePositionFromOrigin(B){const K=this._getLayoutDirection();return"ltr"==K&&B<=0||"rtl"==K&&B>0?"left-origin-center":"right-origin-center"}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Ze.Is,8),a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),qe})(),q=(()=>{class qe extends He{constructor(B,K,W){super(B,K,W)}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Ze.Is,8),a.\u0275\u0275directiveInject(a.ChangeDetectorRef))},qe.\u0275cmp=a.\u0275\u0275defineComponent({type:qe,selectors:[["mat-tab-body"]],viewQuery:function(B,K){if(1&B&&a.\u0275\u0275viewQuery(h.Pl,5),2&B){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._portalHost=W.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(B,K){1&B&&(a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("@translateTab.start",function(De){return K._onTranslateTabStarted(De)})("@translateTab.done",function(De){return K._translateTabComplete.next(De)}),a.\u0275\u0275template(2,Ne,0,0,"ng-template",2),a.\u0275\u0275elementEnd()),2&B&&a.\u0275\u0275property("@translateTab",a.\u0275\u0275pureFunction2(3,te,K._position,a.\u0275\u0275pureFunction1(1,Ct,K.animationDuration)))},directives:[ze],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[Je.translateTab]}}),qe})();const Ge=new a.InjectionToken("MAT_TABS_CONFIG");let ft=0;class vt{}const Ye=(0,C.pj)((0,C.Kr)(class{constructor(qe){this._elementRef=qe}}),"primary");let x=(()=>{class qe extends Ye{constructor(B,K,W,De){var Ee;super(B),this._changeDetectorRef=K,this._animationMode=De,this._tabs=new a.QueryList,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=g.w.EMPTY,this._tabLabelSubscription=g.w.EMPTY,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new a.EventEmitter,this.focusChange=new a.EventEmitter,this.animationDone=new a.EventEmitter,this.selectedTabChange=new a.EventEmitter(!0),this._groupId=ft++,this.animationDuration=W&&W.animationDuration?W.animationDuration:"500ms",this.disablePagination=!(!W||null==W.disablePagination)&&W.disablePagination,this.dynamicHeight=!(!W||null==W.dynamicHeight)&&W.dynamicHeight,this.contentTabIndex=null!==(Ee=null==W?void 0:W.contentTabIndex)&&void 0!==Ee?Ee:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(B){this._dynamicHeight=(0,ye.Ig)(B)}get selectedIndex(){return this._selectedIndex}set selectedIndex(B){this._indexToSelect=(0,ye.su)(B,null)}get animationDuration(){return this._animationDuration}set animationDuration(B){this._animationDuration=/^\d+$/.test(B)?B+"ms":B}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(B){this._contentTabIndex=(0,ye.su)(B,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(B){const K=this._elementRef.nativeElement;K.classList.remove(`mat-background-${this.backgroundColor}`),B&&K.classList.add(`mat-background-${B}`),this._backgroundColor=B}ngAfterContentChecked(){const B=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=B){const K=null==this._selectedIndex;if(!K){this.selectedTabChange.emit(this._createChangeEvent(B));const W=this._tabBodyWrapper.nativeElement;W.style.minHeight=W.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((W,De)=>W.isActive=De===B),K||(this.selectedIndexChange.emit(B),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((K,W)=>{K.position=W-B,null!=this._selectedIndex&&0==K.position&&!K.origin&&(K.origin=B-this._selectedIndex)}),this._selectedIndex!==B&&(this._selectedIndex=B,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const K=this._tabs.toArray();for(let W=0;W<K.length;W++)if(K[W].isActive){this._indexToSelect=this._selectedIndex=W;break}}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,j.O)(this._allTabs)).subscribe(B=>{this._tabs.reset(B.filter(K=>K._closestTabGroup===this||!K._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}focusTab(B){const K=this._tabHeader;K&&(K.focusIndex=B)}_focusChanged(B){this.focusChange.emit(this._createChangeEvent(B))}_createChangeEvent(B){const K=new vt;return K.index=B,this._tabs&&this._tabs.length&&(K.tab=this._tabs.toArray()[B]),K}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,E.T)(...this._tabs.map(B=>B._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(B){return Math.min(this._tabs.length-1,Math.max(B||0,0))}_getTabLabelId(B){return`mat-tab-label-${this._groupId}-${B}`}_getTabContentId(B){return`mat-tab-content-${this._groupId}-${B}`}_setTabBodyWrapperHeight(B){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const K=this._tabBodyWrapper.nativeElement;K.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(K.style.height=B+"px")}_removeTabBodyWrapperHeight(){const B=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=B.clientHeight,B.style.height="",this.animationDone.emit()}_handleClick(B,K,W){B.disabled||(this.selectedIndex=K.focusIndex=W)}_getTabIndex(B,K){return B.disabled?null:this.selectedIndex===K?0:-1}_tabFocusChanged(B,K){B&&"mouse"!==B&&"touch"!==B&&(this._tabHeader.focusIndex=K)}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Ge,8),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",contentTabIndex:"contentTabIndex",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),F=(()=>{class qe extends x{constructor(B,K,W,De){super(B,K,W,De)}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Ge,8),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275cmp=a.\u0275\u0275defineComponent({type:qe,selectors:[["mat-tab-group"]],contentQueries:function(B,K,W){if(1&B&&a.\u0275\u0275contentQuery(W,wt,5),2&B){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._allTabs=De)}},viewQuery:function(B,K){if(1&B&&(a.\u0275\u0275viewQuery(ge,5),a.\u0275\u0275viewQuery(X,5)),2&B){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabBodyWrapper=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabHeader=W.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(B,K){2&B&&a.\u0275\u0275classProp("mat-tab-group-dynamic-height",K.dynamicHeight)("mat-tab-group-inverted-header","below"===K.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a.\u0275\u0275ProvidersFeature([{provide:rt,useExisting:qe}]),a.\u0275\u0275InheritDefinitionFeature],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(B,K){1&B&&(a.\u0275\u0275elementStart(0,"mat-tab-header",0,1),a.\u0275\u0275listener("indexFocused",function(De){return K._focusChanged(De)})("selectFocusedIndex",function(De){return K.selectedIndex=De}),a.\u0275\u0275template(2,Ue,4,14,"div",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3,4),a.\u0275\u0275template(5,et,1,9,"mat-tab-body",5),a.\u0275\u0275elementEnd()),2&B&&(a.\u0275\u0275property("selectedIndex",K.selectedIndex||0)("disableRipple",K.disableRipple)("disablePagination",K.disablePagination),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",K._tabs),a.\u0275\u0275advance(1),a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",K._tabs))},directives:function(){return[Nt,_.NgForOf,de,C.wG,o.kH,_.NgIf,h.Pl,q]},styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),qe})();const R=(0,C.Id)(class{});let de=(()=>{class qe extends R{constructor(B){super(),this.elementRef=B}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ElementRef))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(B,K){2&B&&(a.\u0275\u0275attribute("aria-disabled",!!K.disabled),a.\u0275\u0275classProp("mat-tab-disabled",K.disabled))},inputs:{disabled:"disabled"},features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})();const z=(0,$e.i$)({passive:!0});let Et=(()=>{class qe{constructor(B,K,W,De,Ee,Q,J){this._elementRef=B,this._changeDetectorRef=K,this._viewportRuler=W,this._dir=De,this._ngZone=Ee,this._platform=Q,this._animationMode=J,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new D.xQ,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new D.xQ,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.EventEmitter,this.indexFocused=new a.EventEmitter,Ee.runOutsideAngular(()=>{(0,M.R)(B.nativeElement,"mouseleave").pipe((0,he.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(B){B=(0,ye.su)(B),this._selectedIndex!=B&&(this._selectedIndexChanged=!0,this._selectedIndex=B,this._keyManager&&this._keyManager.updateActiveItem(B))}ngAfterViewInit(){(0,M.R)(this._previousPaginator.nativeElement,"touchstart",z).pipe((0,he.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,M.R)(this._nextPaginator.nativeElement,"touchstart",z).pipe((0,he.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const B=this._dir?this._dir.change:(0,S.of)("ltr"),K=this._viewportRuler.change(150),W=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new o.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(W):W(),(0,E.T)(B,K,this._items.changes).pipe((0,he.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>Promise.resolve().then(W)),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,he.R)(this._destroyed)).subscribe(De=>{this.indexFocused.emit(De),this._setTabFocus(De)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(B){if(!(0,at.Vb)(B))switch(B.keyCode){case at.K5:case at.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(B));break;default:this._keyManager.onKeydown(B)}}_onContentChanges(){const B=this._elementRef.nativeElement.textContent;B!==this._currentTextContent&&(this._currentTextContent=B||"",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(B){!this._isValidIndex(B)||this.focusIndex===B||!this._keyManager||this._keyManager.setActiveItem(B)}_isValidIndex(B){if(!this._items)return!0;const K=this._items?this._items.toArray()[B]:null;return!!K&&!K.disabled}_setTabFocus(B){if(this._showPaginationControls&&this._scrollToLabel(B),this._items&&this._items.length){this._items.toArray()[B].focus();const K=this._tabListContainer.nativeElement;K.scrollLeft="ltr"==this._getLayoutDirection()?0:K.scrollWidth-K.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const B=this.scrollDistance,K="ltr"===this._getLayoutDirection()?-B:B;this._tabList.nativeElement.style.transform=`translateX(${Math.round(K)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(B){this._scrollTo(B)}_scrollHeader(B){return this._scrollTo(this._scrollDistance+("before"==B?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(B){this._stopInterval(),this._scrollHeader(B)}_scrollToLabel(B){if(this.disablePagination)return;const K=this._items?this._items.toArray()[B]:null;if(!K)return;const W=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:De,offsetWidth:Ee}=K.elementRef.nativeElement;let Q,J;"ltr"==this._getLayoutDirection()?(Q=De,J=Q+Ee):(J=this._tabList.nativeElement.offsetWidth-De,Q=J-Ee);const N=this.scrollDistance,oe=this.scrollDistance+W;Q<N?this.scrollDistance-=N-Q+60:J>oe&&(this.scrollDistance+=J-oe+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const B=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;B||(this.scrollDistance=0),B!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=B}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const B=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,K=B?B.elementRef.nativeElement:null;K?this._inkBar.alignToElement(K):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(B,K){K&&null!=K.button&&0!==K.button||(this._stopInterval(),(0,P.H)(650,100).pipe((0,he.R)((0,E.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:W,distance:De}=this._scrollHeader(B);(0===De||De>=W)&&this._stopInterval()}))}_scrollTo(B){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const K=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(K,B)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:K,distance:this._scrollDistance}}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject(Ze.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{disablePagination:"disablePagination"}}),qe})(),xt=(()=>{class qe extends Et{constructor(B,K,W,De,Ee,Q,J){super(B,K,W,De,Ee,Q,J),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(B){this._disableRipple=(0,ye.Ig)(B)}_itemSelected(B){B.preventDefault()}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject(Ze.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{disableRipple:"disableRipple"},features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),Nt=(()=>{class qe extends xt{constructor(B,K,W,De,Ee,Q,J){super(B,K,W,De,Ee,Q,J)}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject(Ze.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275cmp=a.\u0275\u0275defineComponent({type:qe,selectors:[["mat-tab-header"]],contentQueries:function(B,K,W){if(1&B&&a.\u0275\u0275contentQuery(W,de,4),2&B){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._items=De)}},viewQuery:function(B,K){if(1&B&&(a.\u0275\u0275viewQuery($,7),a.\u0275\u0275viewQuery(pt,7),a.\u0275\u0275viewQuery(je,7),a.\u0275\u0275viewQuery(tt,5),a.\u0275\u0275viewQuery(ut,5)),2&B){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._inkBar=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabListContainer=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabList=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._nextPaginator=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._previousPaginator=W.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(B,K){2&B&&a.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",K._showPaginationControls)("mat-tab-header-rtl","rtl"==K._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:Pe,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(B,K){1&B&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("click",function(){return K._handlePaginatorClick("before")})("mousedown",function(De){return K._handlePaginatorPress("before",De)})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3,4),a.\u0275\u0275listener("keydown",function(De){return K._handleKeydown(De)}),a.\u0275\u0275elementStart(5,"div",5,6),a.\u0275\u0275listener("cdkObserveContent",function(){return K._onContentChanges()}),a.\u0275\u0275elementStart(7,"div",7),a.\u0275\u0275projection(8),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(9,"mat-ink-bar"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(10,"div",8,9),a.\u0275\u0275listener("mousedown",function(De){return K._handlePaginatorPress("after",De)})("click",function(){return K._handlePaginatorClick("after")})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(12,"div",2),a.\u0275\u0275elementEnd()),2&B&&(a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollBefore),a.\u0275\u0275property("matRippleDisabled",K._disableScrollBefore||K.disableRipple),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollAfter),a.\u0275\u0275property("matRippleDisabled",K._disableScrollAfter||K.disableRipple))},directives:[C.wG,l.wD,$],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),qe})(),Ut=(()=>{class qe extends Et{constructor(B,K,W,De,Ee,Q,J){super(B,De,Ee,K,W,Q,J),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(B){const K=this._elementRef.nativeElement.classList;K.remove(`mat-background-${this.backgroundColor}`),B&&K.add(`mat-background-${B}`),this._backgroundColor=B}get disableRipple(){return this._disableRipple}set disableRipple(B){this._disableRipple=(0,ye.Ig)(B)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,j.O)(null),(0,he.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const B=this._items.toArray();for(let K=0;K<B.length;K++)if(B[K].active)return this.selectedIndex=K,void this._changeDetectorRef.markForCheck();this.selectedIndex=-1,this._inkBar.hide()}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Ze.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{color:"color",backgroundColor:"backgroundColor",disableRipple:"disableRipple"},features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),Qt=(()=>{class qe extends Ut{constructor(B,K,W,De,Ee,Q,J){super(B,K,W,De,Ee,Q,J)}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(Ze.Is,8),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject(a.ChangeDetectorRef),a.\u0275\u0275directiveInject(Me.rL),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275cmp=a.\u0275\u0275defineComponent({type:qe,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(B,K,W){if(1&B&&a.\u0275\u0275contentQuery(W,jt,5),2&B){let De;a.\u0275\u0275queryRefresh(De=a.\u0275\u0275loadQuery())&&(K._items=De)}},viewQuery:function(B,K){if(1&B&&(a.\u0275\u0275viewQuery($,7),a.\u0275\u0275viewQuery(pt,7),a.\u0275\u0275viewQuery(je,7),a.\u0275\u0275viewQuery(tt,5),a.\u0275\u0275viewQuery(ut,5)),2&B){let W;a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._inkBar=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabListContainer=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._tabList=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._nextPaginator=W.first),a.\u0275\u0275queryRefresh(W=a.\u0275\u0275loadQuery())&&(K._previousPaginator=W.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:10,hostBindings:function(B,K){2&B&&a.\u0275\u0275classProp("mat-tab-header-pagination-controls-enabled",K._showPaginationControls)("mat-tab-header-rtl","rtl"==K._getLayoutDirection())("mat-primary","warn"!==K.color&&"accent"!==K.color)("mat-accent","accent"===K.color)("mat-warn","warn"===K.color)},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.\u0275\u0275InheritDefinitionFeature],attrs:It,ngContentSelectors:Pe,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-link-container",3,"keydown"],["tabListContainer",""],[1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-links"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(B,K){1&B&&(a.\u0275\u0275projectionDef(),a.\u0275\u0275elementStart(0,"div",0,1),a.\u0275\u0275listener("click",function(){return K._handlePaginatorClick("before")})("mousedown",function(De){return K._handlePaginatorPress("before",De)})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(2,"div",2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(3,"div",3,4),a.\u0275\u0275listener("keydown",function(De){return K._handleKeydown(De)}),a.\u0275\u0275elementStart(5,"div",5,6),a.\u0275\u0275listener("cdkObserveContent",function(){return K._onContentChanges()}),a.\u0275\u0275elementStart(7,"div",7),a.\u0275\u0275projection(8),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(9,"mat-ink-bar"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(10,"div",8,9),a.\u0275\u0275listener("mousedown",function(De){return K._handlePaginatorPress("after",De)})("click",function(){return K._handlePaginatorClick("after")})("touchend",function(){return K._stopInterval()}),a.\u0275\u0275element(12,"div",2),a.\u0275\u0275elementEnd()),2&B&&(a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollBefore),a.\u0275\u0275property("matRippleDisabled",K._disableScrollBefore||K.disableRipple),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("_mat-animation-noopable","NoopAnimations"===K._animationMode),a.\u0275\u0275advance(5),a.\u0275\u0275classProp("mat-tab-header-pagination-disabled",K._disableScrollAfter),a.\u0275\u0275property("matRippleDisabled",K._disableScrollAfter||K.disableRipple))},directives:[C.wG,l.wD,$],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-tab-links{display:flex}[mat-align-tabs=center]>.mat-tab-link-container .mat-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-tab-link-container .mat-tab-links{justify-content:flex-end}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-link{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;vertical-align:top;text-decoration:none;position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent}.mat-tab-link:focus{outline:none}.mat-tab-link:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-link:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-link.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-link.mat-tab-disabled{opacity:.5}.mat-tab-link .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-link{opacity:1}[mat-stretch-tabs] .mat-tab-link{flex-basis:0;flex-grow:1}.mat-tab-link.mat-tab-disabled{pointer-events:none}@media(max-width: 599px){.mat-tab-link{min-width:72px}}\n'],encapsulation:2}),qe})();const At=(0,C.sb)((0,C.Kr)((0,C.Id)(class{})));let Lt=(()=>{class qe extends At{constructor(B,K,W,De,Ee,Q){super(),this._tabNavBar=B,this.elementRef=K,this._focusMonitor=Ee,this._isActive=!1,this.rippleConfig=W||{},this.tabIndex=parseInt(De)||0,"NoopAnimations"===Q&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(B){(0,ye.Ig)(B)!==this._isActive&&(this._isActive=B,this._tabNavBar.updateActiveLink())}get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(Ut),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(C.Y2,8),a.\u0275\u0275injectAttribute("tabindex"),a.\u0275\u0275directiveInject(o.tE),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,inputs:{active:"active"},features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),jt=(()=>{class qe extends Lt{constructor(B,K,W,De,Ee,Q,J,N){super(B,K,Ee,Q,J,N),this._tabLinkRipple=new C.IR(this,W,K,De),this._tabLinkRipple.setupTriggerEvents(K.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return qe.\u0275fac=function(B){return new(B||qe)(a.\u0275\u0275directiveInject(Qt),a.\u0275\u0275directiveInject(a.ElementRef),a.\u0275\u0275directiveInject(a.NgZone),a.\u0275\u0275directiveInject($e.t4),a.\u0275\u0275directiveInject(C.Y2,8),a.\u0275\u0275injectAttribute("tabindex"),a.\u0275\u0275directiveInject(o.tE),a.\u0275\u0275directiveInject(w.ANIMATION_MODULE_TYPE,8))},qe.\u0275dir=a.\u0275\u0275defineDirective({type:qe,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:7,hostBindings:function(B,K){1&B&&a.\u0275\u0275listener("focus",function(){return K._handleFocus()}),2&B&&(a.\u0275\u0275attribute("aria-current",K.active?"page":null)("aria-disabled",K.disabled)("tabIndex",K.tabIndex),a.\u0275\u0275classProp("mat-tab-disabled",K.disabled)("mat-tab-label-active",K.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.\u0275\u0275InheritDefinitionFeature]}),qe})(),_n=(()=>{class qe{}return qe.\u0275fac=function(B){return new(B||qe)},qe.\u0275mod=a.\u0275\u0275defineNgModule({type:qe}),qe.\u0275inj=a.\u0275\u0275defineInjector({imports:[[_.CommonModule,C.BQ,h.eL,C.si,l.Q8,o.rt],C.BQ]}),qe})()},1436:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{MAT_TOOLTIP_DEFAULT_OPTIONS:()=>te,MAT_TOOLTIP_DEFAULT_OPTIONS_FACTORY:()=>ge,MAT_TOOLTIP_SCROLL_STRATEGY:()=>Pe,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY:()=>Ne,MAT_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER:()=>Ct,MatTooltip:()=>ce,MatTooltipModule:()=>Ue,SCROLL_THROTTLE_MS:()=>ye,TOOLTIP_PANEL_CLASS:()=>$e,TooltipComponent:()=>Ce,_MatTooltipBase:()=>X,_TooltipComponentBase:()=>Ae,getMatTooltipInvalidPositionError:()=>Re,matTooltipAnimations:()=>he});var o=d(625),l=d(9238),h=d(8583),_=d(7716),a=d(2458),C=d(5197),w=d(9490),D=d(6461),g=d(5072),E=d(521),M=d(7636),S=d(9765),P=d(6782),L=d(5257),j=d(7238),ae=d(946);const he={tooltipState:(0,j.X$)("state",[(0,j.SB)("initial, void, hidden",(0,j.oB)({opacity:0,transform:"scale(0)"})),(0,j.SB)("visible",(0,j.oB)({transform:"scale(1)"})),(0,j.eR)("* => visible",(0,j.jt)("200ms cubic-bezier(0, 0, 0.2, 1)",(0,j.F4)([(0,j.oB)({opacity:0,transform:"scale(0)",offset:0}),(0,j.oB)({opacity:.5,transform:"scale(0.99)",offset:.5}),(0,j.oB)({opacity:1,transform:"scale(1)",offset:1})]))),(0,j.eR)("* => hidden",(0,j.jt)("100ms cubic-bezier(0, 0, 0.2, 1)",(0,j.oB)({opacity:0})))])},ye=20,$e="mat-tooltip-panel",at="tooltip-panel",Ze=(0,E.i$)({passive:!0});function Re(et){return Error(`Tooltip position "${et}" is invalid.`)}const Pe=new _.InjectionToken("mat-tooltip-scroll-strategy");function Ne(et){return()=>et.scrollStrategies.reposition({scrollThrottle:ye})}const Ct={provide:Pe,deps:[o.aV],useFactory:Ne},te=new _.InjectionToken("mat-tooltip-default-options",{providedIn:"root",factory:ge});function ge(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}let X=(()=>{class et{constructor(je,tt,ut,It,Xe,dt,$,se,H,le,ne,fe){this._overlay=je,this._elementRef=tt,this._scrollDispatcher=ut,this._viewContainerRef=It,this._ngZone=Xe,this._platform=dt,this._ariaDescriber=$,this._focusMonitor=se,this._dir=le,this._defaultOptions=ne,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new S.xQ,this._handleKeydown=Oe=>{this._isTooltipVisible()&&Oe.keyCode===D.hY&&!(0,D.Vb)(Oe)&&(Oe.preventDefault(),Oe.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=H,this._document=fe,ne&&(ne.position&&(this.position=ne.position),ne.touchGestures&&(this.touchGestures=ne.touchGestures)),le.change.pipe((0,P.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),Xe.runOutsideAngular(()=>{tt.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(je){var tt;je!==this._position&&(this._position=je,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(tt=this._tooltipInstance)||void 0===tt||tt.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(je){this._disabled=(0,w.Ig)(je),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(je){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=je?String(je).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(je){this._tooltipClass=je,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,P.R)(this._destroyed)).subscribe(je=>{je?"keyboard"===je&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const je=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),je.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([tt,ut])=>{je.removeEventListener(tt,ut,Ze)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(je,this.message,"tooltip"),this._focusMonitor.stopMonitoring(je)}show(je=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const tt=this._createOverlay();this._detach(),this._portal=this._portal||new M.C5(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=tt.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe((0,P.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(je)}hide(je=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(je)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const je=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),tt=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(je);return tt.positionChanges.pipe((0,P.R)(this._destroyed)).subscribe(ut=>{this._updateCurrentPositionClass(ut.connectionPair),this._tooltipInstance&&ut.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:tt,panelClass:`${this._cssClassPrefix}-${at}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,P.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,P.R)(this._destroyed)).subscribe(()=>{var ut;return null===(ut=this._tooltipInstance)||void 0===ut?void 0:ut._handleBodyInteraction()}),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(je){const tt=je.getConfig().positionStrategy,ut=this._getOrigin(),It=this._getOverlayPosition();tt.withPositions([this._addOffset(Object.assign(Object.assign({},ut.main),It.main)),this._addOffset(Object.assign(Object.assign({},ut.fallback),It.fallback))])}_addOffset(je){return je}_getOrigin(){const je=!this._dir||"ltr"==this._dir.value,tt=this.position;let ut;"above"==tt||"below"==tt?ut={originX:"center",originY:"above"==tt?"top":"bottom"}:"before"==tt||"left"==tt&&je||"right"==tt&&!je?ut={originX:"start",originY:"center"}:("after"==tt||"right"==tt&&je||"left"==tt&&!je)&&(ut={originX:"end",originY:"center"});const{x:It,y:Xe}=this._invertPosition(ut.originX,ut.originY);return{main:ut,fallback:{originX:It,originY:Xe}}}_getOverlayPosition(){const je=!this._dir||"ltr"==this._dir.value,tt=this.position;let ut;"above"==tt?ut={overlayX:"center",overlayY:"bottom"}:"below"==tt?ut={overlayX:"center",overlayY:"top"}:"before"==tt||"left"==tt&&je||"right"==tt&&!je?ut={overlayX:"end",overlayY:"center"}:("after"==tt||"right"==tt&&je||"left"==tt&&!je)&&(ut={overlayX:"start",overlayY:"center"});const{x:It,y:Xe}=this._invertPosition(ut.overlayX,ut.overlayY);return{main:ut,fallback:{overlayX:It,overlayY:Xe}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,L.q)(1),(0,P.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(je){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=je,this._tooltipInstance._markForCheck())}_invertPosition(je,tt){return"above"===this.position||"below"===this.position?"top"===tt?tt="bottom":"bottom"===tt&&(tt="top"):"end"===je?je="start":"start"===je&&(je="end"),{x:je,y:tt}}_updateCurrentPositionClass(je){const{overlayY:tt,originX:ut,originY:It}=je;let Xe;if(Xe="center"===tt?this._dir&&"rtl"===this._dir.value?"end"===ut?"left":"right":"start"===ut?"left":"right":"bottom"===tt&&"top"===It?"above":"below",Xe!==this._currentPosition){const dt=this._overlayRef;if(dt){const $=`${this._cssClassPrefix}-${at}-`;dt.removePanelClass($+this._currentPosition),dt.addPanelClass($+Xe)}this._currentPosition=Xe}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const je=[];if(this._platformSupportsMouseEvents())je.push(["mouseleave",()=>this.hide()],["wheel",tt=>this._wheelListener(tt)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const tt=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};je.push(["touchend",tt],["touchcancel",tt])}this._addListeners(je),this._passiveListeners.push(...je)}_addListeners(je){je.forEach(([tt,ut])=>{this._elementRef.nativeElement.addEventListener(tt,ut,Ze)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(je){if(this._isTooltipVisible()){const tt=this._document.elementFromPoint(je.clientX,je.clientY),ut=this._elementRef.nativeElement;tt!==ut&&!ut.contains(tt)&&this.hide()}}_disableNativeGesturesIfNecessary(){const je=this.touchGestures;if("off"!==je){const tt=this._elementRef.nativeElement,ut=tt.style;("on"===je||"INPUT"!==tt.nodeName&&"TEXTAREA"!==tt.nodeName)&&(ut.userSelect=ut.msUserSelect=ut.webkitUserSelect=ut.MozUserSelect="none"),("on"===je||!tt.draggable)&&(ut.webkitUserDrag="none"),ut.touchAction="none",ut.webkitTapHighlightColor="transparent"}}}return et.\u0275fac=function(je){return new(je||et)(_.\u0275\u0275directiveInject(o.aV),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(C.mF),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(E.t4),_.\u0275\u0275directiveInject(l.$s),_.\u0275\u0275directiveInject(l.tE),_.\u0275\u0275directiveInject(void 0),_.\u0275\u0275directiveInject(ae.Is),_.\u0275\u0275directiveInject(void 0),_.\u0275\u0275directiveInject(h.DOCUMENT))},et.\u0275dir=_.\u0275\u0275defineDirective({type:et,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),et})(),ce=(()=>{class et extends X{constructor(je,tt,ut,It,Xe,dt,$,se,H,le,ne,fe){super(je,tt,ut,It,Xe,dt,$,se,H,le,ne,fe),this._tooltipComponent=Ce}}return et.\u0275fac=function(je){return new(je||et)(_.\u0275\u0275directiveInject(o.aV),_.\u0275\u0275directiveInject(_.ElementRef),_.\u0275\u0275directiveInject(C.mF),_.\u0275\u0275directiveInject(_.ViewContainerRef),_.\u0275\u0275directiveInject(_.NgZone),_.\u0275\u0275directiveInject(E.t4),_.\u0275\u0275directiveInject(l.$s),_.\u0275\u0275directiveInject(l.tE),_.\u0275\u0275directiveInject(Pe),_.\u0275\u0275directiveInject(ae.Is,8),_.\u0275\u0275directiveInject(te,8),_.\u0275\u0275directiveInject(h.DOCUMENT))},et.\u0275dir=_.\u0275\u0275defineDirective({type:et,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[_.\u0275\u0275InheritDefinitionFeature]}),et})(),Ae=(()=>{class et{constructor(je){this._changeDetectorRef=je,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new S.xQ}show(je){clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=void 0,this._onShow(),this._markForCheck()},je)}hide(je){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=void 0,this._markForCheck()},je)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(je){const tt=je.toState;"hidden"===tt&&!this.isVisible()&&this._onHide.next(),("visible"===tt||"hidden"===tt)&&(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_onShow(){}}return et.\u0275fac=function(je){return new(je||et)(_.\u0275\u0275directiveInject(_.ChangeDetectorRef))},et.\u0275dir=_.\u0275\u0275defineDirective({type:et}),et})(),Ce=(()=>{class et extends Ae{constructor(je,tt){super(je),this._breakpointObserver=tt,this._isHandset=this._breakpointObserver.observe(g.Breakpoints.Handset)}}return et.\u0275fac=function(je){return new(je||et)(_.\u0275\u0275directiveInject(_.ChangeDetectorRef),_.\u0275\u0275directiveInject(g.BreakpointObserver))},et.\u0275cmp=_.\u0275\u0275defineComponent({type:et,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(je,tt){2&je&&_.\u0275\u0275styleProp("zoom","visible"===tt._visibility?1:null)},features:[_.\u0275\u0275InheritDefinitionFeature],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(je,tt){if(1&je&&(_.\u0275\u0275elementStart(0,"div",0),_.\u0275\u0275listener("@state.start",function(){return tt._animationStart()})("@state.done",function(It){return tt._animationDone(It)}),_.\u0275\u0275pipe(1,"async"),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd()),2&je){let ut;_.\u0275\u0275classProp("mat-tooltip-handset",null==(ut=_.\u0275\u0275pipeBind1(1,5,tt._isHandset))?null:ut.matches),_.\u0275\u0275property("ngClass",tt.tooltipClass)("@state",tt._visibility),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(tt.message)}},directives:[h.NgClass],pipes:[h.AsyncPipe],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[he.tooltipState]},changeDetection:0}),et})(),Ue=(()=>{class et{}return et.\u0275fac=function(je){return new(je||et)},et.\u0275mod=_.\u0275\u0275defineNgModule({type:et}),et.\u0275inj=_.\u0275\u0275defineInjector({providers:[Ct],imports:[[l.rt,h.CommonModule,o.U8,a.BQ],a.BQ,C.ZD]}),et})()},6237:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{ANIMATION_MODULE_TYPE:()=>pn,BrowserAnimationsModule:()=>yo,NoopAnimationsModule:()=>Vi,\u0275AnimationRenderer:()=>_o,\u0275AnimationRendererFactory:()=>Yt,\u0275BrowserAnimationBuilder:()=>Tn,\u0275BrowserAnimationFactory:()=>Ln,\u0275InjectableAnimationEngine:()=>Rs,\u0275angular_packages_platform_browser_animations_animations_a:()=>ks,\u0275angular_packages_platform_browser_animations_animations_b:()=>Fs,\u0275angular_packages_platform_browser_animations_animations_c:()=>Mt,\u0275angular_packages_platform_browser_animations_animations_d:()=>kn,\u0275angular_packages_platform_browser_animations_animations_e:()=>Fo,\u0275angular_packages_platform_browser_animations_animations_f:()=>io});var o=d(7716),l=d(9075),h=d(7238);function _(){return"undefined"!=typeof window&&void 0!==window.document}function a(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function C(G){switch(G.length){case 0:return new h.ZN;case 1:return G[0];default:return new h.ZE(G)}}function w(G,f,p,I,Z={},me={}){const Te=[],Fe=[];let ot=-1,bt=null;if(I.forEach(kt=>{const Vt=kt.offset,nn=Vt==ot,mn=nn&&bt||{};Object.keys(kt).forEach(Gt=>{let en=Gt,hn=kt[Gt];if("offset"!==Gt)switch(en=f.normalizePropertyName(en,Te),hn){case h.k1:hn=Z[Gt];break;case h.l3:hn=me[Gt];break;default:hn=f.normalizeStyleValue(Gt,en,hn,Te)}mn[en]=hn}),nn||Fe.push(mn),bt=mn,ot=Vt}),Te.length){const kt="\n - ";throw new Error(`Unable to animate due to the following errors:${kt}${Te.join(kt)}`)}return Fe}function D(G,f,p,I){switch(f){case"start":G.onStart(()=>I(p&&g(p,"start",G)));break;case"done":G.onDone(()=>I(p&&g(p,"done",G)));break;case"destroy":G.onDestroy(()=>I(p&&g(p,"destroy",G)))}}function g(G,f,p){const I=p.totalTime,me=E(G.element,G.triggerName,G.fromState,G.toState,f||G.phaseName,null==I?G.totalTime:I,!!p.disabled),Te=G._data;return null!=Te&&(me._data=Te),me}function E(G,f,p,I,Z="",me=0,Te){return{element:G,triggerName:f,fromState:p,toState:I,phaseName:Z,totalTime:me,disabled:!!Te}}function M(G,f,p){let I;return G instanceof Map?(I=G.get(f),I||G.set(f,I=p)):(I=G[f],I||(I=G[f]=p)),I}function S(G){const f=G.indexOf(":");return[G.substring(1,f),G.substr(f+1)]}let P=(G,f)=>!1,j=(G,f)=>!1,he=(G,f,p)=>[];const $e=a();($e||"undefined"!=typeof Element)&&(P=_()?(G,f)=>{for(;f&&f!==document.documentElement;){if(f===G)return!0;f=f.parentNode||f.host}return!1}:(G,f)=>G.contains(f),j=(()=>{if($e||Element.prototype.matches)return(G,f)=>G.matches(f);{const G=Element.prototype,f=G.matchesSelector||G.mozMatchesSelector||G.msMatchesSelector||G.oMatchesSelector||G.webkitMatchesSelector;return f?(p,I)=>f.apply(p,[I]):j}})(),he=(G,f,p)=>{let I=[];if(p){const Z=G.querySelectorAll(f);for(let me=0;me<Z.length;me++)I.push(Z[me])}else{const Z=G.querySelector(f);Z&&I.push(Z)}return I});let Ze=null,Me=!1;function Re(G){Ze||(Ze=("undefined"!=typeof document?document.body:null)||{},Me=!!Ze.style&&"WebkitAppearance"in Ze.style);let f=!0;return Ze.style&&!function(G){return"ebkit"==G.substring(1,6)}(G)&&(f=G in Ze.style,!f&&Me&&(f="Webkit"+G.charAt(0).toUpperCase()+G.substr(1)in Ze.style)),f}const Ne=j,Ct=P,te=he;function ge(G){const f={};return Object.keys(G).forEach(p=>{const I=p.replace(/([a-z])([A-Z])/g,"$1-$2");f[I]=G[p]}),f}let X=(()=>{class G{validateStyleProperty(p){return Re(p)}matchesElement(p,I){return Ne(p,I)}containsElement(p,I){return Ct(p,I)}query(p,I,Z){return te(p,I,Z)}computeStyle(p,I,Z){return Z||""}animate(p,I,Z,me,Te,Fe=[],ot){return new h.ZN(Z,me)}}return G.\u0275fac=function(p){return new(p||G)},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})(),ce=(()=>{class G{}return G.NOOP=new X,G})();const et="ng-enter",pt="ng-leave",ut="ng-trigger",It=".ng-trigger",Xe="ng-animating",dt=".ng-animating";function $(G){if("number"==typeof G)return G;const f=G.match(/^(-?[\.\d]+)(m?s)/);return!f||f.length<2?0:se(parseFloat(f[1]),f[2])}function se(G,f){switch(f){case"s":return 1e3*G;default:return G}}function H(G,f,p){return G.hasOwnProperty("duration")?G:function(G,f,p){let Z,me=0,Te="";if("string"==typeof G){const Fe=G.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===Fe)return f.push(`The provided timing value "${G}" is invalid.`),{duration:0,delay:0,easing:""};Z=se(parseFloat(Fe[1]),Fe[2]);const ot=Fe[3];null!=ot&&(me=se(parseFloat(ot),Fe[4]));const bt=Fe[5];bt&&(Te=bt)}else Z=G;if(!p){let Fe=!1,ot=f.length;Z<0&&(f.push("Duration values below 0 are not allowed for this animation step."),Fe=!0),me<0&&(f.push("Delay values below 0 are not allowed for this animation step."),Fe=!0),Fe&&f.splice(ot,0,`The provided timing value "${G}" is invalid.`)}return{duration:Z,delay:me,easing:Te}}(G,f,p)}function ne(G,f={}){return Object.keys(G).forEach(p=>{f[p]=G[p]}),f}function Oe(G,f,p={}){if(f)for(let I in G)p[I]=G[I];else ne(G,p);return p}function rt(G,f,p){return p?f+":"+p+";":""}function wt(G){let f="";for(let p=0;p<G.style.length;p++){const I=G.style.item(p);f+=rt(0,I,G.style.getPropertyValue(I))}for(const p in G.style)G.style.hasOwnProperty(p)&&!p.startsWith("_")&&(f+=rt(0,R(p),G.style[p]));G.setAttribute("style",f)}function Je(G,f,p){G.style&&(Object.keys(f).forEach(I=>{const Z=F(I);p&&!p.hasOwnProperty(I)&&(p[I]=G.style[Z]),G.style[Z]=f[I]}),a()&&wt(G))}function ze(G,f){G.style&&(Object.keys(f).forEach(p=>{const I=F(p);G.style[I]=""}),a()&&wt(G))}function He(G){return Array.isArray(G)?1==G.length?G[0]:(0,h.vP)(G):G}const Ge=new RegExp("{{\\s*(.+?)\\s*}}","g");function ft(G){let f=[];if("string"==typeof G){let p;for(;p=Ge.exec(G);)f.push(p[1]);Ge.lastIndex=0}return f}function vt(G,f,p){const I=G.toString(),Z=I.replace(Ge,(me,Te)=>{let Fe=f[Te];return f.hasOwnProperty(Te)||(p.push(`Please provide a value for the animation param ${Te}`),Fe=""),Fe.toString()});return Z==I?G:Z}function Ye(G){const f=[];let p=G.next();for(;!p.done;)f.push(p.value),p=G.next();return f}const x=/-+([a-z0-9])/g;function F(G){return G.replace(x,(...f)=>f[1].toUpperCase())}function R(G){return G.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function de(G,f){return 0===G||0===f}function z(G,f,p){const I=Object.keys(p);if(I.length&&f.length){let me=f[0],Te=[];if(I.forEach(Fe=>{me.hasOwnProperty(Fe)||Te.push(Fe),me[Fe]=p[Fe]}),Te.length)for(var Z=1;Z<f.length;Z++){let Fe=f[Z];Te.forEach(function(ot){Fe[ot]=Be(G,ot)})}}return f}function re(G,f,p){switch(f.type){case 7:return G.visitTrigger(f,p);case 0:return G.visitState(f,p);case 1:return G.visitTransition(f,p);case 2:return G.visitSequence(f,p);case 3:return G.visitGroup(f,p);case 4:return G.visitAnimate(f,p);case 5:return G.visitKeyframes(f,p);case 6:return G.visitStyle(f,p);case 8:return G.visitReference(f,p);case 9:return G.visitAnimateChild(f,p);case 10:return G.visitAnimateRef(f,p);case 11:return G.visitQuery(f,p);case 12:return G.visitStagger(f,p);default:throw new Error(`Unable to resolve animation metadata node #${f.type}`)}}function Be(G,f){return window.getComputedStyle(G)[f]}function Et(G,f){const p=[];return"string"==typeof G?G.split(/\s*,\s*/).forEach(I=>function(G,f,p){if(":"==G[0]){const ot=function(G,f){switch(G){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(p,I)=>parseFloat(I)>parseFloat(p);case":decrement":return(p,I)=>parseFloat(I)<parseFloat(p);default:return f.push(`The transition alias value "${G}" is not supported`),"* => *"}}(G,p);if("function"==typeof ot)return void f.push(ot);G=ot}const I=G.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==I||I.length<4)return p.push(`The provided transition expression "${G}" is not supported`),f;const Z=I[1],me=I[2],Te=I[3];f.push(At(Z,Te));"<"==me[0]&&!("*"==Z&&"*"==Te)&&f.push(At(Te,Z))}(I,p,f)):p.push(G),p}const Ut=new Set(["true","1"]),Qt=new Set(["false","0"]);function At(G,f){const p=Ut.has(G)||Qt.has(G),I=Ut.has(f)||Qt.has(f);return(Z,me)=>{let Te="*"==G||G==Z,Fe="*"==f||f==me;return!Te&&p&&"boolean"==typeof Z&&(Te=Z?Ut.has(G):Qt.has(G)),!Fe&&I&&"boolean"==typeof me&&(Fe=me?Ut.has(f):Qt.has(f)),Te&&Fe}}const jt=new RegExp("s*:selfs*,?","g");function _n(G,f,p){return new Pt(G).build(f,p)}class Pt{constructor(f){this._driver=f}build(f,p){const I=new W(p);return this._resetContextStyleTimingState(I),re(this,He(f),I)}_resetContextStyleTimingState(f){f.currentQuerySelector="",f.collectedStyles={},f.collectedStyles[""]={},f.currentTime=0}visitTrigger(f,p){let I=p.queryCount=0,Z=p.depCount=0;const me=[],Te=[];return"@"==f.name.charAt(0)&&p.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),f.definitions.forEach(Fe=>{if(this._resetContextStyleTimingState(p),0==Fe.type){const ot=Fe,bt=ot.name;bt.toString().split(/\s*,\s*/).forEach(kt=>{ot.name=kt,me.push(this.visitState(ot,p))}),ot.name=bt}else if(1==Fe.type){const ot=this.visitTransition(Fe,p);I+=ot.queryCount,Z+=ot.depCount,Te.push(ot)}else p.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:f.name,states:me,transitions:Te,queryCount:I,depCount:Z,options:null}}visitState(f,p){const I=this.visitStyle(f.styles,p),Z=f.options&&f.options.params||null;if(I.containsDynamicStyles){const me=new Set,Te=Z||{};if(I.styles.forEach(Fe=>{if(Ee(Fe)){const ot=Fe;Object.keys(ot).forEach(bt=>{ft(ot[bt]).forEach(kt=>{Te.hasOwnProperty(kt)||me.add(kt)})})}}),me.size){const Fe=Ye(me.values());p.errors.push(`state("${f.name}", ...) must define default values for all the following style substitutions: ${Fe.join(", ")}`)}}return{type:0,name:f.name,style:I,options:Z?{params:Z}:null}}visitTransition(f,p){p.queryCount=0,p.depCount=0;const I=re(this,He(f.animation),p);return{type:1,matchers:Et(f.expr,p.errors),animation:I,queryCount:p.queryCount,depCount:p.depCount,options:J(f.options)}}visitSequence(f,p){return{type:2,steps:f.steps.map(I=>re(this,I,p)),options:J(f.options)}}visitGroup(f,p){const I=p.currentTime;let Z=0;const me=f.steps.map(Te=>{p.currentTime=I;const Fe=re(this,Te,p);return Z=Math.max(Z,p.currentTime),Fe});return p.currentTime=Z,{type:3,steps:me,options:J(f.options)}}visitAnimate(f,p){const I=function(G,f){let p=null;if(G.hasOwnProperty("duration"))p=G;else if("number"==typeof G)return N(H(G,f).duration,0,"");const I=G;if(I.split(/\s+/).some(me=>"{"==me.charAt(0)&&"{"==me.charAt(1))){const me=N(0,0,"");return me.dynamic=!0,me.strValue=I,me}return p=p||H(I,f),N(p.duration,p.delay,p.easing)}(f.timings,p.errors);p.currentAnimateTimings=I;let Z,me=f.styles?f.styles:(0,h.oB)({});if(5==me.type)Z=this.visitKeyframes(me,p);else{let Te=f.styles,Fe=!1;if(!Te){Fe=!0;const bt={};I.easing&&(bt.easing=I.easing),Te=(0,h.oB)(bt)}p.currentTime+=I.duration+I.delay;const ot=this.visitStyle(Te,p);ot.isEmptyStep=Fe,Z=ot}return p.currentAnimateTimings=null,{type:4,timings:I,style:Z,options:null}}visitStyle(f,p){const I=this._makeStyleAst(f,p);return this._validateStyleAst(I,p),I}_makeStyleAst(f,p){const I=[];Array.isArray(f.styles)?f.styles.forEach(Te=>{"string"==typeof Te?Te==h.l3?I.push(Te):p.errors.push(`The provided style string value ${Te} is not allowed.`):I.push(Te)}):I.push(f.styles);let Z=!1,me=null;return I.forEach(Te=>{if(Ee(Te)){const Fe=Te,ot=Fe.easing;if(ot&&(me=ot,delete Fe.easing),!Z)for(let bt in Fe)if(Fe[bt].toString().indexOf("{{")>=0){Z=!0;break}}}),{type:6,styles:I,easing:me,offset:f.offset,containsDynamicStyles:Z,options:null}}_validateStyleAst(f,p){const I=p.currentAnimateTimings;let Z=p.currentTime,me=p.currentTime;I&&me>0&&(me-=I.duration+I.delay),f.styles.forEach(Te=>{"string"!=typeof Te&&Object.keys(Te).forEach(Fe=>{if(!this._driver.validateStyleProperty(Fe))return void p.errors.push(`The provided animation property "${Fe}" is not a supported CSS property for animations`);const ot=p.collectedStyles[p.currentQuerySelector],bt=ot[Fe];let kt=!0;bt&&(me!=Z&&me>=bt.startTime&&Z<=bt.endTime&&(p.errors.push(`The CSS property "${Fe}" that exists between the times of "${bt.startTime}ms" and "${bt.endTime}ms" is also being animated in a parallel animation between the times of "${me}ms" and "${Z}ms"`),kt=!1),me=bt.startTime),kt&&(ot[Fe]={startTime:me,endTime:Z}),p.options&&function(G,f,p){const I=f.params||{},Z=ft(G);Z.length&&Z.forEach(me=>{I.hasOwnProperty(me)||p.push(`Unable to resolve the local animation param ${me} in the given list of values`)})}(Te[Fe],p.options,p.errors)})})}visitKeyframes(f,p){const I={type:5,styles:[],options:null};if(!p.currentAnimateTimings)return p.errors.push("keyframes() must be placed inside of a call to animate()"),I;let me=0;const Te=[];let Fe=!1,ot=!1,bt=0;const kt=f.steps.map(Pn=>{const An=this._makeStyleAst(Pn,p);let si=null!=An.offset?An.offset:function(G){if("string"==typeof G)return null;let f=null;if(Array.isArray(G))G.forEach(p=>{if(Ee(p)&&p.hasOwnProperty("offset")){const I=p;f=parseFloat(I.offset),delete I.offset}});else if(Ee(G)&&G.hasOwnProperty("offset")){const p=G;f=parseFloat(p.offset),delete p.offset}return f}(An.styles),zn=0;return null!=si&&(me++,zn=An.offset=si),ot=ot||zn<0||zn>1,Fe=Fe||zn<bt,bt=zn,Te.push(zn),An});ot&&p.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),Fe&&p.errors.push("Please ensure that all keyframe offsets are in order");const Vt=f.steps.length;let nn=0;me>0&&me<Vt?p.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==me&&(nn=1/(Vt-1));const mn=Vt-1,Gt=p.currentTime,en=p.currentAnimateTimings,hn=en.duration;return kt.forEach((Pn,An)=>{const si=nn>0?An==mn?1:nn*An:Te[An],zn=si*hn;p.currentTime=Gt+en.delay+zn,en.duration=zn,this._validateStyleAst(Pn,p),Pn.offset=si,I.styles.push(Pn)}),I}visitReference(f,p){return{type:8,animation:re(this,He(f.animation),p),options:J(f.options)}}visitAnimateChild(f,p){return p.depCount++,{type:9,options:J(f.options)}}visitAnimateRef(f,p){return{type:10,animation:this.visitReference(f.animation,p),options:J(f.options)}}visitQuery(f,p){const I=p.currentQuerySelector,Z=f.options||{};p.queryCount++,p.currentQuery=f;const[me,Te]=function(G){const f=!!G.split(/\s*,\s*/).find(p=>":self"==p);return f&&(G=G.replace(jt,"")),[G=G.replace(/@\*/g,It).replace(/@\w+/g,p=>It+"-"+p.substr(1)).replace(/:animating/g,dt),f]}(f.selector);p.currentQuerySelector=I.length?I+" "+me:me,M(p.collectedStyles,p.currentQuerySelector,{});const Fe=re(this,He(f.animation),p);return p.currentQuery=null,p.currentQuerySelector=I,{type:11,selector:me,limit:Z.limit||0,optional:!!Z.optional,includeSelf:Te,animation:Fe,originalSelector:f.selector,options:J(f.options)}}visitStagger(f,p){p.currentQuery||p.errors.push("stagger() can only be used inside of query()");const I="full"===f.timings?{duration:0,delay:0,easing:"full"}:H(f.timings,p.errors,!0);return{type:12,animation:re(this,He(f.animation),p),timings:I,options:null}}}class W{constructor(f){this.errors=f,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Ee(G){return!Array.isArray(G)&&"object"==typeof G}function J(G){return G?(G=ne(G)).params&&(G.params=function(G){return G?ne(G):null}(G.params)):G={},G}function N(G,f,p){return{duration:G,delay:f,easing:p}}function oe(G,f,p,I,Z,me,Te=null,Fe=!1){return{type:1,element:G,keyframes:f,preStyleProps:p,postStyleProps:I,duration:Z,delay:me,totalTime:Z+me,easing:Te,subTimeline:Fe}}class st{constructor(){this._map=new Map}consume(f){let p=this._map.get(f);return p?this._map.delete(f):p=[],p}append(f,p){let I=this._map.get(f);I||this._map.set(f,I=[]),I.push(...p)}has(f){return this._map.has(f)}clear(){this._map.clear()}}const dn=new RegExp(":enter","g"),an=new RegExp(":leave","g");function un(G,f,p,I,Z,me={},Te={},Fe,ot,bt=[]){return(new wn).buildKeyframes(G,f,p,I,Z,me,Te,Fe,ot,bt)}class wn{buildKeyframes(f,p,I,Z,me,Te,Fe,ot,bt,kt=[]){bt=bt||new st;const Vt=new mt(f,p,bt,Z,me,kt,[]);Vt.options=ot,Vt.currentTimeline.setStyles([Te],null,Vt.errors,ot),re(this,I,Vt);const nn=Vt.timelines.filter(mn=>mn.containsAnimation());if(nn.length&&Object.keys(Fe).length){const mn=nn[nn.length-1];mn.allowOnlyTimelineStyles()||mn.setStyles([Fe],null,Vt.errors,ot)}return nn.length?nn.map(mn=>mn.buildKeyframes()):[oe(p,[],[],[],0,0,"",!1)]}visitTrigger(f,p){}visitState(f,p){}visitTransition(f,p){}visitAnimateChild(f,p){const I=p.subInstructions.consume(p.element);if(I){const Z=p.createSubContext(f.options),me=p.currentTimeline.currentTime,Te=this._visitSubInstructions(I,Z,Z.options);me!=Te&&p.transformIntoNewTimeline(Te)}p.previousNode=f}visitAnimateRef(f,p){const I=p.createSubContext(f.options);I.transformIntoNewTimeline(),this.visitReference(f.animation,I),p.transformIntoNewTimeline(I.currentTimeline.currentTime),p.previousNode=f}_visitSubInstructions(f,p,I){let me=p.currentTimeline.currentTime;const Te=null!=I.duration?$(I.duration):null,Fe=null!=I.delay?$(I.delay):null;return 0!==Te&&f.forEach(ot=>{const bt=p.appendInstructionToTimeline(ot,Te,Fe);me=Math.max(me,bt.duration+bt.delay)}),me}visitReference(f,p){p.updateOptions(f.options,!0),re(this,f.animation,p),p.previousNode=f}visitSequence(f,p){const I=p.subContextCount;let Z=p;const me=f.options;if(me&&(me.params||me.delay)&&(Z=p.createSubContext(me),Z.transformIntoNewTimeline(),null!=me.delay)){6==Z.previousNode.type&&(Z.currentTimeline.snapshotCurrentStyles(),Z.previousNode=yn);const Te=$(me.delay);Z.delayNextStep(Te)}f.steps.length&&(f.steps.forEach(Te=>re(this,Te,Z)),Z.currentTimeline.applyStylesToKeyframe(),Z.subContextCount>I&&Z.transformIntoNewTimeline()),p.previousNode=f}visitGroup(f,p){const I=[];let Z=p.currentTimeline.currentTime;const me=f.options&&f.options.delay?$(f.options.delay):0;f.steps.forEach(Te=>{const Fe=p.createSubContext(f.options);me&&Fe.delayNextStep(me),re(this,Te,Fe),Z=Math.max(Z,Fe.currentTimeline.currentTime),I.push(Fe.currentTimeline)}),I.forEach(Te=>p.currentTimeline.mergeTimelineCollectedStyles(Te)),p.transformIntoNewTimeline(Z),p.previousNode=f}_visitTiming(f,p){if(f.dynamic){const I=f.strValue;return H(p.params?vt(I,p.params,p.errors):I,p.errors)}return{duration:f.duration,delay:f.delay,easing:f.easing}}visitAnimate(f,p){const I=p.currentAnimateTimings=this._visitTiming(f.timings,p),Z=p.currentTimeline;I.delay&&(p.incrementTime(I.delay),Z.snapshotCurrentStyles());const me=f.style;5==me.type?this.visitKeyframes(me,p):(p.incrementTime(I.duration),this.visitStyle(me,p),Z.applyStylesToKeyframe()),p.currentAnimateTimings=null,p.previousNode=f}visitStyle(f,p){const I=p.currentTimeline,Z=p.currentAnimateTimings;!Z&&I.getCurrentStyleProperties().length&&I.forwardFrame();const me=Z&&Z.easing||f.easing;f.isEmptyStep?I.applyEmptyStep(me):I.setStyles(f.styles,me,p.errors,p.options),p.previousNode=f}visitKeyframes(f,p){const I=p.currentAnimateTimings,Z=p.currentTimeline.duration,me=I.duration,Fe=p.createSubContext().currentTimeline;Fe.easing=I.easing,f.styles.forEach(ot=>{Fe.forwardTime((ot.offset||0)*me),Fe.setStyles(ot.styles,ot.easing,p.errors,p.options),Fe.applyStylesToKeyframe()}),p.currentTimeline.mergeTimelineCollectedStyles(Fe),p.transformIntoNewTimeline(Z+me),p.previousNode=f}visitQuery(f,p){const I=p.currentTimeline.currentTime,Z=f.options||{},me=Z.delay?$(Z.delay):0;me&&(6===p.previousNode.type||0==I&&p.currentTimeline.getCurrentStyleProperties().length)&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=yn);let Te=I;const Fe=p.invokeQuery(f.selector,f.originalSelector,f.limit,f.includeSelf,!!Z.optional,p.errors);p.currentQueryTotal=Fe.length;let ot=null;Fe.forEach((bt,kt)=>{p.currentQueryIndex=kt;const Vt=p.createSubContext(f.options,bt);me&&Vt.delayNextStep(me),bt===p.element&&(ot=Vt.currentTimeline),re(this,f.animation,Vt),Vt.currentTimeline.applyStylesToKeyframe(),Te=Math.max(Te,Vt.currentTimeline.currentTime)}),p.currentQueryIndex=0,p.currentQueryTotal=0,p.transformIntoNewTimeline(Te),ot&&(p.currentTimeline.mergeTimelineCollectedStyles(ot),p.currentTimeline.snapshotCurrentStyles()),p.previousNode=f}visitStagger(f,p){const I=p.parentContext,Z=p.currentTimeline,me=f.timings,Te=Math.abs(me.duration),Fe=Te*(p.currentQueryTotal-1);let ot=Te*p.currentQueryIndex;switch(me.duration<0?"reverse":me.easing){case"reverse":ot=Fe-ot;break;case"full":ot=I.currentStaggerTime}const kt=p.currentTimeline;ot&&kt.delayNextStep(ot);const Vt=kt.currentTime;re(this,f.animation,p),p.previousNode=f,I.currentStaggerTime=Z.currentTime-Vt+(Z.startTime-I.currentTimeline.startTime)}}const yn={};class mt{constructor(f,p,I,Z,me,Te,Fe,ot){this._driver=f,this.element=p,this.subInstructions=I,this._enterClassName=Z,this._leaveClassName=me,this.errors=Te,this.timelines=Fe,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=ot||new ke(this._driver,p,0),Fe.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(f,p){if(!f)return;const I=f;let Z=this.options;null!=I.duration&&(Z.duration=$(I.duration)),null!=I.delay&&(Z.delay=$(I.delay));const me=I.params;if(me){let Te=Z.params;Te||(Te=this.options.params={}),Object.keys(me).forEach(Fe=>{(!p||!Te.hasOwnProperty(Fe))&&(Te[Fe]=vt(me[Fe],Te,this.errors))})}}_copyOptions(){const f={};if(this.options){const p=this.options.params;if(p){const I=f.params={};Object.keys(p).forEach(Z=>{I[Z]=p[Z]})}}return f}createSubContext(f=null,p,I){const Z=p||this.element,me=new mt(this._driver,Z,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Z,I||0));return me.previousNode=this.previousNode,me.currentAnimateTimings=this.currentAnimateTimings,me.options=this._copyOptions(),me.updateOptions(f),me.currentQueryIndex=this.currentQueryIndex,me.currentQueryTotal=this.currentQueryTotal,me.parentContext=this,this.subContextCount++,me}transformIntoNewTimeline(f){return this.previousNode=yn,this.currentTimeline=this.currentTimeline.fork(this.element,f),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(f,p,I){const Z={duration:null!=p?p:f.duration,delay:this.currentTimeline.currentTime+(null!=I?I:0)+f.delay,easing:""},me=new Se(this._driver,f.element,f.keyframes,f.preStyleProps,f.postStyleProps,Z,f.stretchStartingKeyframe);return this.timelines.push(me),Z}incrementTime(f){this.currentTimeline.forwardTime(this.currentTimeline.duration+f)}delayNextStep(f){f>0&&this.currentTimeline.delayNextStep(f)}invokeQuery(f,p,I,Z,me,Te){let Fe=[];if(Z&&Fe.push(this.element),f.length>0){f=(f=f.replace(dn,"."+this._enterClassName)).replace(an,"."+this._leaveClassName);let bt=this._driver.query(this.element,f,1!=I);0!==I&&(bt=I<0?bt.slice(bt.length+I,bt.length):bt.slice(0,I)),Fe.push(...bt)}return!me&&0==Fe.length&&Te.push(`\`query("${p}")\` returned zero elements. (Use \`query("${p}", { optional: true })\` if you wish to allow this.)`),Fe}}class ke{constructor(f,p,I,Z){this._driver=f,this.element=p,this.startTime=I,this._elementTimelineStylesLookup=Z,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(p),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(p,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(f){const p=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||p?(this.forwardTime(this.currentTime+f),p&&this.snapshotCurrentStyles()):this.startTime+=f}fork(f,p){return this.applyStylesToKeyframe(),new ke(this._driver,f,p||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(f){this.applyStylesToKeyframe(),this.duration=f,this._loadKeyframe()}_updateStyle(f,p){this._localTimelineStyles[f]=p,this._globalTimelineStyles[f]=p,this._styleSummary[f]={time:this.currentTime,value:p}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(f){f&&(this._previousKeyframe.easing=f),Object.keys(this._globalTimelineStyles).forEach(p=>{this._backFill[p]=this._globalTimelineStyles[p]||h.l3,this._currentKeyframe[p]=h.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(f,p,I,Z){p&&(this._previousKeyframe.easing=p);const me=Z&&Z.params||{},Te=function(G,f){const p={};let I;return G.forEach(Z=>{"*"===Z?(I=I||Object.keys(f),I.forEach(me=>{p[me]=h.l3})):Oe(Z,!1,p)}),p}(f,this._globalTimelineStyles);Object.keys(Te).forEach(Fe=>{const ot=vt(Te[Fe],me,I);this._pendingStyles[Fe]=ot,this._localTimelineStyles.hasOwnProperty(Fe)||(this._backFill[Fe]=this._globalTimelineStyles.hasOwnProperty(Fe)?this._globalTimelineStyles[Fe]:h.l3),this._updateStyle(Fe,ot)})}applyStylesToKeyframe(){const f=this._pendingStyles,p=Object.keys(f);0!=p.length&&(this._pendingStyles={},p.forEach(I=>{this._currentKeyframe[I]=f[I]}),Object.keys(this._localTimelineStyles).forEach(I=>{this._currentKeyframe.hasOwnProperty(I)||(this._currentKeyframe[I]=this._localTimelineStyles[I])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(f=>{const p=this._localTimelineStyles[f];this._pendingStyles[f]=p,this._updateStyle(f,p)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const f=[];for(let p in this._currentKeyframe)f.push(p);return f}mergeTimelineCollectedStyles(f){Object.keys(f._styleSummary).forEach(p=>{const I=this._styleSummary[p],Z=f._styleSummary[p];(!I||Z.time>I.time)&&this._updateStyle(p,Z.value)})}buildKeyframes(){this.applyStylesToKeyframe();const f=new Set,p=new Set,I=1===this._keyframes.size&&0===this.duration;let Z=[];this._keyframes.forEach((Fe,ot)=>{const bt=Oe(Fe,!0);Object.keys(bt).forEach(kt=>{const Vt=bt[kt];Vt==h.k1?f.add(kt):Vt==h.l3&&p.add(kt)}),I||(bt.offset=ot/this.duration),Z.push(bt)});const me=f.size?Ye(f.values()):[],Te=p.size?Ye(p.values()):[];if(I){const Fe=Z[0],ot=ne(Fe);Fe.offset=0,ot.offset=1,Z=[Fe,ot]}return oe(this.element,Z,me,Te,this.duration,this.startTime,this.easing,!1)}}class Se extends ke{constructor(f,p,I,Z,me,Te,Fe=!1){super(f,p,Te.delay),this.keyframes=I,this.preStyleProps=Z,this.postStyleProps=me,this._stretchStartingKeyframe=Fe,this.timings={duration:Te.duration,delay:Te.delay,easing:Te.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let f=this.keyframes,{delay:p,duration:I,easing:Z}=this.timings;if(this._stretchStartingKeyframe&&p){const me=[],Te=I+p,Fe=p/Te,ot=Oe(f[0],!1);ot.offset=0,me.push(ot);const bt=Oe(f[0],!1);bt.offset=nt(Fe),me.push(bt);const kt=f.length-1;for(let Vt=1;Vt<=kt;Vt++){let nn=Oe(f[Vt],!1);nn.offset=nt((p+nn.offset*I)/Te),me.push(nn)}I=Te,p=0,Z="",f=me}return oe(this.element,f,this.preStyleProps,this.postStyleProps,I,p,Z,!0)}}function nt(G,f=3){const p=Math.pow(10,f-1);return Math.round(G*p)/p}class ee{}class Y extends ee{normalizePropertyName(f,p){return F(f)}normalizeStyleValue(f,p,I,Z){let me="";const Te=I.toString().trim();if(Ke[p]&&0!==I&&"0"!==I)if("number"==typeof I)me="px";else{const Fe=I.match(/^[+-]?[\d\.]+([a-z]*)$/);Fe&&0==Fe[1].length&&Z.push(`Please provide a CSS unit value for ${f}:${I}`)}return Te+me}}const Ke=(()=>function(G){const f={};return G.forEach(p=>f[p]=!0),f}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Tt(G,f,p,I,Z,me,Te,Fe,ot,bt,kt,Vt,nn){return{type:0,element:G,triggerName:f,isRemovalTransition:Z,fromState:p,fromStyles:me,toState:I,toStyles:Te,timelines:Fe,queriedElements:ot,preStyleProps:bt,postStyleProps:kt,totalTime:Vt,errors:nn}}const we={};class Ie{constructor(f,p,I){this._triggerName=f,this.ast=p,this._stateStyles=I}match(f,p,I,Z){return function(G,f,p,I,Z){return G.some(me=>me(f,p,I,Z))}(this.ast.matchers,f,p,I,Z)}buildStyles(f,p,I){const Z=this._stateStyles["*"],me=this._stateStyles[f],Te=Z?Z.buildStyles(p,I):{};return me?me.buildStyles(p,I):Te}build(f,p,I,Z,me,Te,Fe,ot,bt,kt){const Vt=[],nn=this.ast.options&&this.ast.options.params||we,Gt=this.buildStyles(I,Fe&&Fe.params||we,Vt),en=ot&&ot.params||we,hn=this.buildStyles(Z,en,Vt),Pn=new Set,An=new Map,si=new Map,zn="void"===Z,nr={params:Object.assign(Object.assign({},nn),en)},Pi=kt?[]:un(f,p,this.ast.animation,me,Te,Gt,hn,nr,bt,Vt);let ri=0;if(Pi.forEach($i=>{ri=Math.max($i.duration+$i.delay,ri)}),Vt.length)return Tt(p,this._triggerName,I,Z,zn,Gt,hn,[],[],An,si,ri,Vt);Pi.forEach($i=>{const Ei=$i.element,Ls=M(An,Ei,{});$i.preStyleProps.forEach(Fn=>Ls[Fn]=!0);const vo=M(si,Ei,{});$i.postStyleProps.forEach(Fn=>vo[Fn]=!0),Ei!==p&&Pn.add(Ei)});const Hi=Ye(Pn.values());return Tt(p,this._triggerName,I,Z,zn,Gt,hn,Pi,Hi,An,si,ri)}}class Ve{constructor(f,p,I){this.styles=f,this.defaultParams=p,this.normalizer=I}buildStyles(f,p){const I={},Z=ne(this.defaultParams);return Object.keys(f).forEach(me=>{const Te=f[me];null!=Te&&(Z[me]=Te)}),this.styles.styles.forEach(me=>{if("string"!=typeof me){const Te=me;Object.keys(Te).forEach(Fe=>{let ot=Te[Fe];ot.length>1&&(ot=vt(ot,Z,p));const bt=this.normalizer.normalizePropertyName(Fe,p);ot=this.normalizer.normalizeStyleValue(Fe,bt,ot,p),I[bt]=ot})}}),I}}class Ft{constructor(f,p,I){this.name=f,this.ast=p,this._normalizer=I,this.transitionFactories=[],this.states={},p.states.forEach(Z=>{this.states[Z.name]=new Ve(Z.style,Z.options&&Z.options.params||{},I)}),qt(this.states,"true","1"),qt(this.states,"false","0"),p.transitions.forEach(Z=>{this.transitionFactories.push(new Ie(f,Z,this.states))}),this.fallbackTransition=function(G,f,p){return new Ie(G,{type:1,animation:{type:2,steps:[],options:null},matchers:[(Te,Fe)=>!0],options:null,queryCount:0,depCount:0},f)}(f,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(f,p,I,Z){return this.transitionFactories.find(Te=>Te.match(f,p,I,Z))||null}matchStyles(f,p,I){return this.fallbackTransition.buildStyles(f,p,I)}}function qt(G,f,p){G.hasOwnProperty(f)?G.hasOwnProperty(p)||(G[p]=G[f]):G.hasOwnProperty(p)&&(G[f]=G[p])}const Wt=new st;class Mn{constructor(f,p,I){this.bodyNode=f,this._driver=p,this._normalizer=I,this._animations={},this._playersById={},this.players=[]}register(f,p){const I=[],Z=_n(this._driver,p,I);if(I.length)throw new Error(`Unable to build the animation due to the following errors: ${I.join("\n")}`);this._animations[f]=Z}_buildPlayer(f,p,I){const Z=f.element,me=w(0,this._normalizer,0,f.keyframes,p,I);return this._driver.animate(Z,me,f.duration,f.delay,f.easing,[],!0)}create(f,p,I={}){const Z=[],me=this._animations[f];let Te;const Fe=new Map;if(me?(Te=un(this._driver,p,me,et,pt,{},{},I,Wt,Z),Te.forEach(kt=>{const Vt=M(Fe,kt.element,{});kt.postStyleProps.forEach(nn=>Vt[nn]=null)})):(Z.push("The requested animation doesn't exist or has already been destroyed"),Te=[]),Z.length)throw new Error(`Unable to create the animation due to the following errors: ${Z.join("\n")}`);Fe.forEach((kt,Vt)=>{Object.keys(kt).forEach(nn=>{kt[nn]=this._driver.computeStyle(Vt,nn,h.l3)})});const bt=C(Te.map(kt=>{const Vt=Fe.get(kt.element);return this._buildPlayer(kt,{},Vt)}));return this._playersById[f]=bt,bt.onDestroy(()=>this.destroy(f)),this.players.push(bt),bt}destroy(f){const p=this._getPlayer(f);p.destroy(),delete this._playersById[f];const I=this.players.indexOf(p);I>=0&&this.players.splice(I,1)}_getPlayer(f){const p=this._playersById[f];if(!p)throw new Error(`Unable to find the timeline player referenced by ${f}`);return p}listen(f,p,I,Z){const me=E(p,"","","");return D(this._getPlayer(f),I,me,Z),()=>{}}command(f,p,I,Z){if("register"==I)return void this.register(f,Z[0]);if("create"==I)return void this.create(f,p,Z[0]||{});const me=this._getPlayer(f);switch(I){case"play":me.play();break;case"pause":me.pause();break;case"reset":me.reset();break;case"restart":me.restart();break;case"finish":me.finish();break;case"init":me.init();break;case"setPosition":me.setPosition(parseFloat(Z[0]));break;case"destroy":this.destroy(f)}}}const gi="ng-animate-queued",li="ng-animate-disabled",qn=".ng-animate-disabled",xn=[],Xi={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ti={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Cn="__ng_removed";class Ci{constructor(f,p=""){this.namespaceId=p;const I=f&&f.hasOwnProperty("value");if(this.value=null!=(G=I?f.value:f)?G:null,I){const me=ne(f);delete me.value,this.options=me}else this.options={};var G;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(f){const p=f.params;if(p){const I=this.options.params;Object.keys(p).forEach(Z=>{null==I[Z]&&(I[Z]=p[Z])})}}}const ci="void",ui=new Ci(ci);class ni{constructor(f,p,I){this.id=f,this.hostElement=p,this._engine=I,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+f,ii(p,this._hostClassName)}listen(f,p,I,Z){if(!this._triggers.hasOwnProperty(p))throw new Error(`Unable to listen on the animation trigger event "${I}" because the animation trigger "${p}" doesn't exist!`);if(null==I||0==I.length)throw new Error(`Unable to listen on the animation trigger "${p}" because the provided event is undefined!`);if("start"!=(G=I)&&"done"!=G)throw new Error(`The provided animation trigger event "${I}" for the animation trigger "${p}" is not supported!`);var G;const me=M(this._elementListeners,f,[]),Te={name:p,phase:I,callback:Z};me.push(Te);const Fe=M(this._engine.statesByElement,f,{});return Fe.hasOwnProperty(p)||(ii(f,ut),ii(f,ut+"-"+p),Fe[p]=ui),()=>{this._engine.afterFlush(()=>{const ot=me.indexOf(Te);ot>=0&&me.splice(ot,1),this._triggers[p]||delete Fe[p]})}}register(f,p){return!this._triggers[f]&&(this._triggers[f]=p,!0)}_getTrigger(f){const p=this._triggers[f];if(!p)throw new Error(`The provided animation trigger "${f}" has not been registered!`);return p}trigger(f,p,I,Z=!0){const me=this._getTrigger(p),Te=new kr(this.id,p,f);let Fe=this._engine.statesByElement.get(f);Fe||(ii(f,ut),ii(f,ut+"-"+p),this._engine.statesByElement.set(f,Fe={}));let ot=Fe[p];const bt=new Ci(I,this.id);if(!(I&&I.hasOwnProperty("value"))&&ot&&bt.absorbOptions(ot.options),Fe[p]=bt,ot||(ot=ui),bt.value!==ci&&ot.value===bt.value){if(!function(G,f){const p=Object.keys(G),I=Object.keys(f);if(p.length!=I.length)return!1;for(let Z=0;Z<p.length;Z++){const me=p[Z];if(!f.hasOwnProperty(me)||G[me]!==f[me])return!1}return!0}(ot.params,bt.params)){const en=[],hn=me.matchStyles(ot.value,ot.params,en),Pn=me.matchStyles(bt.value,bt.params,en);en.length?this._engine.reportError(en):this._engine.afterFlush(()=>{ze(f,hn),Je(f,Pn)})}return}const nn=M(this._engine.playersByElement,f,[]);nn.forEach(en=>{en.namespaceId==this.id&&en.triggerName==p&&en.queued&&en.destroy()});let mn=me.matchTransition(ot.value,bt.value,f,bt.params),Gt=!1;if(!mn){if(!Z)return;mn=me.fallbackTransition,Gt=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:f,triggerName:p,transition:mn,fromState:ot,toState:bt,player:Te,isFallbackTransition:Gt}),Gt||(ii(f,gi),Te.onStart(()=>{Ti(f,gi)})),Te.onDone(()=>{let en=this.players.indexOf(Te);en>=0&&this.players.splice(en,1);const hn=this._engine.playersByElement.get(f);if(hn){let Pn=hn.indexOf(Te);Pn>=0&&hn.splice(Pn,1)}}),this.players.push(Te),nn.push(Te),Te}deregister(f){delete this._triggers[f],this._engine.statesByElement.forEach((p,I)=>{delete p[f]}),this._elementListeners.forEach((p,I)=>{this._elementListeners.set(I,p.filter(Z=>Z.name!=f))})}clearElementCache(f){this._engine.statesByElement.delete(f),this._elementListeners.delete(f);const p=this._engine.playersByElement.get(f);p&&(p.forEach(I=>I.destroy()),this._engine.playersByElement.delete(f))}_signalRemovalForInnerTriggers(f,p){const I=this._engine.driver.query(f,It,!0);I.forEach(Z=>{if(Z[Cn])return;const me=this._engine.fetchNamespacesByElement(Z);me.size?me.forEach(Te=>Te.triggerLeaveAnimation(Z,p,!1,!0)):this.clearElementCache(Z)}),this._engine.afterFlushAnimationsDone(()=>I.forEach(Z=>this.clearElementCache(Z)))}triggerLeaveAnimation(f,p,I,Z){const me=this._engine.statesByElement.get(f);if(me){const Te=[];if(Object.keys(me).forEach(Fe=>{if(this._triggers[Fe]){const ot=this.trigger(f,Fe,ci,Z);ot&&Te.push(ot)}}),Te.length)return this._engine.markElementAsRemoved(this.id,f,!0,p),I&&C(Te).onDone(()=>this._engine.processLeaveNode(f)),!0}return!1}prepareLeaveAnimationListeners(f){const p=this._elementListeners.get(f),I=this._engine.statesByElement.get(f);if(p&&I){const Z=new Set;p.forEach(me=>{const Te=me.name;if(Z.has(Te))return;Z.add(Te);const ot=this._triggers[Te].fallbackTransition,bt=I[Te]||ui,kt=new Ci(ci),Vt=new kr(this.id,Te,f);this._engine.totalQueuedPlayers++,this._queue.push({element:f,triggerName:Te,transition:ot,fromState:bt,toState:kt,player:Vt,isFallbackTransition:!0})})}}removeNode(f,p){const I=this._engine;if(f.childElementCount&&this._signalRemovalForInnerTriggers(f,p),this.triggerLeaveAnimation(f,p,!0))return;let Z=!1;if(I.totalAnimations){const me=I.players.length?I.playersByQueriedElement.get(f):[];if(me&&me.length)Z=!0;else{let Te=f;for(;Te=Te.parentNode;)if(I.statesByElement.get(Te)){Z=!0;break}}}if(this.prepareLeaveAnimationListeners(f),Z)I.markElementAsRemoved(this.id,f,!1,p);else{const me=f[Cn];(!me||me===Xi)&&(I.afterFlush(()=>this.clearElementCache(f)),I.destroyInnerAnimations(f),I._onRemovalComplete(f,p))}}insertNode(f,p){ii(f,this._hostClassName)}drainQueuedTransitions(f){const p=[];return this._queue.forEach(I=>{const Z=I.player;if(Z.destroyed)return;const me=I.element,Te=this._elementListeners.get(me);Te&&Te.forEach(Fe=>{if(Fe.name==I.triggerName){const ot=E(me,I.triggerName,I.fromState.value,I.toState.value);ot._data=f,D(I.player,Fe.phase,ot,Fe.callback)}}),Z.markedForDestroy?this._engine.afterFlush(()=>{Z.destroy()}):p.push(I)}),this._queue=[],p.sort((I,Z)=>{const me=I.transition.ast.depCount,Te=Z.transition.ast.depCount;return 0==me||0==Te?me-Te:this._engine.driver.containsElement(I.element,Z.element)?1:-1})}destroy(f){this.players.forEach(p=>p.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,f)}elementContainsData(f){let p=!1;return this._elementListeners.has(f)&&(p=!0),p=!!this._queue.find(I=>I.element===f)||p,p}}class Un{constructor(f,p,I){this.bodyNode=f,this.driver=p,this._normalizer=I,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(Z,me)=>{}}_onRemovalComplete(f,p){this.onRemovalComplete(f,p)}get queuedPlayers(){const f=[];return this._namespaceList.forEach(p=>{p.players.forEach(I=>{I.queued&&f.push(I)})}),f}createNamespace(f,p){const I=new ni(f,p,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,p)?this._balanceNamespaceList(I,p):(this.newHostElements.set(p,I),this.collectEnterElement(p)),this._namespaceLookup[f]=I}_balanceNamespaceList(f,p){const I=this._namespaceList.length-1;if(I>=0){let Z=!1;for(let me=I;me>=0;me--)if(this.driver.containsElement(this._namespaceList[me].hostElement,p)){this._namespaceList.splice(me+1,0,f),Z=!0;break}Z||this._namespaceList.splice(0,0,f)}else this._namespaceList.push(f);return this.namespacesByHostElement.set(p,f),f}register(f,p){let I=this._namespaceLookup[f];return I||(I=this.createNamespace(f,p)),I}registerTrigger(f,p,I){let Z=this._namespaceLookup[f];Z&&Z.register(p,I)&&this.totalAnimations++}destroy(f,p){if(!f)return;const I=this._fetchNamespace(f);this.afterFlush(()=>{this.namespacesByHostElement.delete(I.hostElement),delete this._namespaceLookup[f];const Z=this._namespaceList.indexOf(I);Z>=0&&this._namespaceList.splice(Z,1)}),this.afterFlushAnimationsDone(()=>I.destroy(p))}_fetchNamespace(f){return this._namespaceLookup[f]}fetchNamespacesByElement(f){const p=new Set,I=this.statesByElement.get(f);if(I){const Z=Object.keys(I);for(let me=0;me<Z.length;me++){const Te=I[Z[me]].namespaceId;if(Te){const Fe=this._fetchNamespace(Te);Fe&&p.add(Fe)}}}return p}trigger(f,p,I,Z){if(gr(p)){const me=this._fetchNamespace(f);if(me)return me.trigger(p,I,Z),!0}return!1}insertNode(f,p,I,Z){if(!gr(p))return;const me=p[Cn];if(me&&me.setForRemoval){me.setForRemoval=!1,me.setForMove=!0;const Te=this.collectedLeaveElements.indexOf(p);Te>=0&&this.collectedLeaveElements.splice(Te,1)}if(f){const Te=this._fetchNamespace(f);Te&&Te.insertNode(p,I)}Z&&this.collectEnterElement(p)}collectEnterElement(f){this.collectedEnterElements.push(f)}markElementAsDisabled(f,p){p?this.disabledNodes.has(f)||(this.disabledNodes.add(f),ii(f,li)):this.disabledNodes.has(f)&&(this.disabledNodes.delete(f),Ti(f,li))}removeNode(f,p,I,Z){if(gr(p)){const me=f?this._fetchNamespace(f):null;if(me?me.removeNode(p,Z):this.markElementAsRemoved(f,p,!1,Z),I){const Te=this.namespacesByHostElement.get(p);Te&&Te.id!==f&&Te.removeNode(p,Z)}}else this._onRemovalComplete(p,Z)}markElementAsRemoved(f,p,I,Z){this.collectedLeaveElements.push(p),p[Cn]={namespaceId:f,setForRemoval:Z,hasAnimation:I,removedBeforeQueried:!1}}listen(f,p,I,Z,me){return gr(p)?this._fetchNamespace(f).listen(p,I,Z,me):()=>{}}_buildInstruction(f,p,I,Z,me){return f.transition.build(this.driver,f.element,f.fromState.value,f.toState.value,I,Z,f.fromState.options,f.toState.options,p,me)}destroyInnerAnimations(f){let p=this.driver.query(f,It,!0);p.forEach(I=>this.destroyActiveAnimationsForElement(I)),0!=this.playersByQueriedElement.size&&(p=this.driver.query(f,dt,!0),p.forEach(I=>this.finishActiveQueriedAnimationOnElement(I)))}destroyActiveAnimationsForElement(f){const p=this.playersByElement.get(f);p&&p.forEach(I=>{I.queued?I.markedForDestroy=!0:I.destroy()})}finishActiveQueriedAnimationOnElement(f){const p=this.playersByQueriedElement.get(f);p&&p.forEach(I=>I.finish())}whenRenderingDone(){return new Promise(f=>{if(this.players.length)return C(this.players).onDone(()=>f());f()})}processLeaveNode(f){const p=f[Cn];if(p&&p.setForRemoval){if(f[Cn]=Xi,p.namespaceId){this.destroyInnerAnimations(f);const I=this._fetchNamespace(p.namespaceId);I&&I.clearElementCache(f)}this._onRemovalComplete(f,p.setForRemoval)}this.driver.matchesElement(f,qn)&&this.markElementAsDisabled(f,!1),this.driver.query(f,qn,!0).forEach(I=>{this.markElementAsDisabled(I,!1)})}flush(f=-1){let p=[];if(this.newHostElements.size&&(this.newHostElements.forEach((I,Z)=>this._balanceNamespaceList(I,Z)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let I=0;I<this.collectedEnterElements.length;I++)ii(this.collectedEnterElements[I],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const I=[];try{p=this._flushAnimations(I,f)}finally{for(let Z=0;Z<I.length;Z++)I[Z]()}}else for(let I=0;I<this.collectedLeaveElements.length;I++)this.processLeaveNode(this.collectedLeaveElements[I]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(I=>I()),this._flushFns=[],this._whenQuietFns.length){const I=this._whenQuietFns;this._whenQuietFns=[],p.length?C(p).onDone(()=>{I.forEach(Z=>Z())}):I.forEach(Z=>Z())}}reportError(f){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${f.join("\n")}`)}_flushAnimations(f,p){const I=new st,Z=[],me=new Map,Te=[],Fe=new Map,ot=new Map,bt=new Map,kt=new Set;this.disabledNodes.forEach(Bt=>{kt.add(Bt);const Kt=this.driver.query(Bt,".ng-animate-queued",!0);for(let tn=0;tn<Kt.length;tn++)kt.add(Kt[tn])});const Vt=this.bodyNode,nn=Array.from(this.statesByElement.keys()),mn=to(nn,this.collectedEnterElements),Gt=new Map;let en=0;mn.forEach((Bt,Kt)=>{const tn=et+en++;Gt.set(Kt,tn),Bt.forEach(vn=>ii(vn,tn))});const hn=[],Pn=new Set,An=new Set;for(let Bt=0;Bt<this.collectedLeaveElements.length;Bt++){const Kt=this.collectedLeaveElements[Bt],tn=Kt[Cn];tn&&tn.setForRemoval&&(hn.push(Kt),Pn.add(Kt),tn.hasAnimation?this.driver.query(Kt,".ng-star-inserted",!0).forEach(vn=>Pn.add(vn)):An.add(Kt))}const si=new Map,zn=to(nn,Array.from(Pn));zn.forEach((Bt,Kt)=>{const tn=pt+en++;si.set(Kt,tn),Bt.forEach(vn=>ii(vn,tn))}),f.push(()=>{mn.forEach((Bt,Kt)=>{const tn=Gt.get(Kt);Bt.forEach(vn=>Ti(vn,tn))}),zn.forEach((Bt,Kt)=>{const tn=si.get(Kt);Bt.forEach(vn=>Ti(vn,tn))}),hn.forEach(Bt=>{this.processLeaveNode(Bt)})});const nr=[],Pi=[];for(let Bt=this._namespaceList.length-1;Bt>=0;Bt--)this._namespaceList[Bt].drainQueuedTransitions(p).forEach(tn=>{const vn=tn.player,Wn=tn.element;if(nr.push(vn),this.collectedEnterElements.length){const Oi=Wn[Cn];if(Oi&&Oi.setForMove)return void vn.destroy()}const Ui=!Vt||!this.driver.containsElement(Vt,Wn),oi=si.get(Wn),Ai=Gt.get(Wn),Sn=this._buildInstruction(tn,I,Ai,oi,Ui);if(Sn.errors&&Sn.errors.length)Pi.push(Sn);else{if(Ui)return vn.onStart(()=>ze(Wn,Sn.fromStyles)),vn.onDestroy(()=>Je(Wn,Sn.toStyles)),void Z.push(vn);if(tn.isFallbackTransition)return vn.onStart(()=>ze(Wn,Sn.fromStyles)),vn.onDestroy(()=>Je(Wn,Sn.toStyles)),void Z.push(vn);Sn.timelines.forEach(Oi=>Oi.stretchStartingKeyframe=!0),I.append(Wn,Sn.timelines),Te.push({instruction:Sn,player:vn,element:Wn}),Sn.queriedElements.forEach(Oi=>M(Fe,Oi,[]).push(vn)),Sn.preStyleProps.forEach((Oi,bo)=>{const xi=Object.keys(Oi);if(xi.length){let Ri=ot.get(bo);Ri||ot.set(bo,Ri=new Set),xi.forEach(Bs=>Ri.add(Bs))}}),Sn.postStyleProps.forEach((Oi,bo)=>{const xi=Object.keys(Oi);let Ri=bt.get(bo);Ri||bt.set(bo,Ri=new Set),xi.forEach(Bs=>Ri.add(Bs))})}});if(Pi.length){const Bt=[];Pi.forEach(Kt=>{Bt.push(`@${Kt.triggerName} has failed due to:\n`),Kt.errors.forEach(tn=>Bt.push(`- ${tn}\n`))}),nr.forEach(Kt=>Kt.destroy()),this.reportError(Bt)}const ri=new Map,Hi=new Map;Te.forEach(Bt=>{const Kt=Bt.element;I.has(Kt)&&(Hi.set(Kt,Kt),this._beforeAnimationBuild(Bt.player.namespaceId,Bt.instruction,ri))}),Z.forEach(Bt=>{const Kt=Bt.element;this._getPreviousPlayers(Kt,!1,Bt.namespaceId,Bt.triggerName,null).forEach(vn=>{M(ri,Kt,[]).push(vn),vn.destroy()})});const $i=hn.filter(Bt=>jr(Bt,ot,bt)),Ei=new Map;eo(Ei,this.driver,An,bt,h.l3).forEach(Bt=>{jr(Bt,ot,bt)&&$i.push(Bt)});const vo=new Map;mn.forEach((Bt,Kt)=>{eo(vo,this.driver,new Set(Bt),ot,h.k1)}),$i.forEach(Bt=>{const Kt=Ei.get(Bt),tn=vo.get(Bt);Ei.set(Bt,Object.assign(Object.assign({},Kt),tn))});const Fn=[],ir=[],On={};Te.forEach(Bt=>{const{element:Kt,player:tn,instruction:vn}=Bt;if(I.has(Kt)){if(kt.has(Kt))return tn.onDestroy(()=>Je(Kt,vn.toStyles)),tn.disabled=!0,tn.overrideTotalTime(vn.totalTime),void Z.push(tn);let Wn=On;if(Hi.size>1){let oi=Kt;const Ai=[];for(;oi=oi.parentNode;){const Sn=Hi.get(oi);if(Sn){Wn=Sn;break}Ai.push(oi)}Ai.forEach(Sn=>Hi.set(Sn,Wn))}const Ui=this._buildAnimation(tn.namespaceId,vn,ri,me,vo,Ei);if(tn.setRealPlayer(Ui),Wn===On)Fn.push(tn);else{const oi=this.playersByElement.get(Wn);oi&&oi.length&&(tn.parentPlayer=C(oi)),Z.push(tn)}}else ze(Kt,vn.fromStyles),tn.onDestroy(()=>Je(Kt,vn.toStyles)),ir.push(tn),kt.has(Kt)&&Z.push(tn)}),ir.forEach(Bt=>{const Kt=me.get(Bt.element);if(Kt&&Kt.length){const tn=C(Kt);Bt.setRealPlayer(tn)}}),Z.forEach(Bt=>{Bt.parentPlayer?Bt.syncPlayerEvents(Bt.parentPlayer):Bt.destroy()});for(let Bt=0;Bt<hn.length;Bt++){const Kt=hn[Bt],tn=Kt[Cn];if(Ti(Kt,pt),tn&&tn.hasAnimation)continue;let vn=[];if(Fe.size){let Ui=Fe.get(Kt);Ui&&Ui.length&&vn.push(...Ui);let oi=this.driver.query(Kt,dt,!0);for(let Ai=0;Ai<oi.length;Ai++){let Sn=Fe.get(oi[Ai]);Sn&&Sn.length&&vn.push(...Sn)}}const Wn=vn.filter(Ui=>!Ui.destroyed);Wn.length?mo(this,Kt,Wn):this.processLeaveNode(Kt)}return hn.length=0,Fn.forEach(Bt=>{this.players.push(Bt),Bt.onDone(()=>{Bt.destroy();const Kt=this.players.indexOf(Bt);this.players.splice(Kt,1)}),Bt.play()}),Fn}elementContainsData(f,p){let I=!1;const Z=p[Cn];return Z&&Z.setForRemoval&&(I=!0),this.playersByElement.has(p)&&(I=!0),this.playersByQueriedElement.has(p)&&(I=!0),this.statesByElement.has(p)&&(I=!0),this._fetchNamespace(f).elementContainsData(p)||I}afterFlush(f){this._flushFns.push(f)}afterFlushAnimationsDone(f){this._whenQuietFns.push(f)}_getPreviousPlayers(f,p,I,Z,me){let Te=[];if(p){const Fe=this.playersByQueriedElement.get(f);Fe&&(Te=Fe)}else{const Fe=this.playersByElement.get(f);if(Fe){const ot=!me||me==ci;Fe.forEach(bt=>{bt.queued||!ot&&bt.triggerName!=Z||Te.push(bt)})}}return(I||Z)&&(Te=Te.filter(Fe=>!(I&&I!=Fe.namespaceId||Z&&Z!=Fe.triggerName))),Te}_beforeAnimationBuild(f,p,I){const me=p.element,Te=p.isRemovalTransition?void 0:f,Fe=p.isRemovalTransition?void 0:p.triggerName;for(const ot of p.timelines){const bt=ot.element,kt=bt!==me,Vt=M(I,bt,[]);this._getPreviousPlayers(bt,kt,Te,Fe,p.toState).forEach(mn=>{const Gt=mn.getRealPlayer();Gt.beforeDestroy&&Gt.beforeDestroy(),mn.destroy(),Vt.push(mn)})}ze(me,p.fromStyles)}_buildAnimation(f,p,I,Z,me,Te){const Fe=p.triggerName,ot=p.element,bt=[],kt=new Set,Vt=new Set,nn=p.timelines.map(Gt=>{const en=Gt.element;kt.add(en);const hn=en[Cn];if(hn&&hn.removedBeforeQueried)return new h.ZN(Gt.duration,Gt.delay);const Pn=en!==ot,An=function(G){const f=[];return _r(G,f),f}((I.get(en)||xn).map(ri=>ri.getRealPlayer())).filter(ri=>!!ri.element&&ri.element===en),si=me.get(en),zn=Te.get(en),nr=w(0,this._normalizer,0,Gt.keyframes,si,zn),Pi=this._buildPlayer(Gt,nr,An);if(Gt.subTimeline&&Z&&Vt.add(en),Pn){const ri=new kr(f,Fe,en);ri.setRealPlayer(Pi),bt.push(ri)}return Pi});bt.forEach(Gt=>{M(this.playersByQueriedElement,Gt.element,[]).push(Gt),Gt.onDone(()=>function(G,f,p){let I;if(G instanceof Map){if(I=G.get(f),I){if(I.length){const Z=I.indexOf(p);I.splice(Z,1)}0==I.length&&G.delete(f)}}else if(I=G[f],I){if(I.length){const Z=I.indexOf(p);I.splice(Z,1)}0==I.length&&delete G[f]}return I}(this.playersByQueriedElement,Gt.element,Gt))}),kt.forEach(Gt=>ii(Gt,Xe));const mn=C(nn);return mn.onDestroy(()=>{kt.forEach(Gt=>Ti(Gt,Xe)),Je(ot,p.toStyles)}),Vt.forEach(Gt=>{M(Z,Gt,[]).push(mn)}),mn}_buildPlayer(f,p,I){return p.length>0?this.driver.animate(f.element,p,f.duration,f.delay,f.easing,I):new h.ZN(f.duration,f.delay)}}class kr{constructor(f,p,I){this.namespaceId=f,this.triggerName=p,this.element=I,this._player=new h.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(f){this._containsRealPlayer||(this._player=f,Object.keys(this._queuedCallbacks).forEach(p=>{this._queuedCallbacks[p].forEach(I=>D(f,p,void 0,I))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(f.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(f){this.totalTime=f}syncPlayerEvents(f){const p=this._player;p.triggerCallback&&f.onStart(()=>p.triggerCallback("start")),f.onDone(()=>this.finish()),f.onDestroy(()=>this.destroy())}_queueEvent(f,p){M(this._queuedCallbacks,f,[]).push(p)}onDone(f){this.queued&&this._queueEvent("done",f),this._player.onDone(f)}onStart(f){this.queued&&this._queueEvent("start",f),this._player.onStart(f)}onDestroy(f){this.queued&&this._queueEvent("destroy",f),this._player.onDestroy(f)}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(f){this.queued||this._player.setPosition(f)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(f){const p=this._player;p.triggerCallback&&p.triggerCallback(f)}}function gr(G){return G&&1===G.nodeType}function Nr(G,f){const p=G.style.display;return G.style.display=null!=f?f:"none",p}function eo(G,f,p,I,Z){const me=[];p.forEach(ot=>me.push(Nr(ot)));const Te=[];I.forEach((ot,bt)=>{const kt={};ot.forEach(Vt=>{const nn=kt[Vt]=f.computeStyle(bt,Vt,Z);(!nn||0==nn.length)&&(bt[Cn]=ti,Te.push(bt))}),G.set(bt,kt)});let Fe=0;return p.forEach(ot=>Nr(ot,me[Fe++])),Te}function to(G,f){const p=new Map;if(G.forEach(Fe=>p.set(Fe,[])),0==f.length)return p;const Z=new Set(f),me=new Map;function Te(Fe){if(!Fe)return 1;let ot=me.get(Fe);if(ot)return ot;const bt=Fe.parentNode;return ot=p.has(bt)?bt:Z.has(bt)?1:Te(bt),me.set(Fe,ot),ot}return f.forEach(Fe=>{const ot=Te(Fe);1!==ot&&p.get(ot).push(Fe)}),p}const Di="$$classes";function ii(G,f){if(G.classList)G.classList.add(f);else{let p=G[Di];p||(p=G[Di]={}),p[f]=!0}}function Ti(G,f){if(G.classList)G.classList.remove(f);else{let p=G[Di];p&&delete p[f]}}function mo(G,f,p){C(p).onDone(()=>G.processLeaveNode(f))}function _r(G,f){for(let p=0;p<G.length;p++){const I=G[p];I instanceof h.ZE?_r(I.players,f):f.push(I)}}function jr(G,f,p){const I=p.get(G);if(!I)return!1;let Z=f.get(G);return Z?I.forEach(me=>Z.add(me)):f.set(G,I),p.delete(G),!0}class wi{constructor(f,p,I){this.bodyNode=f,this._driver=p,this._normalizer=I,this._triggerCache={},this.onRemovalComplete=(Z,me)=>{},this._transitionEngine=new Un(f,p,I),this._timelineEngine=new Mn(f,p,I),this._transitionEngine.onRemovalComplete=(Z,me)=>this.onRemovalComplete(Z,me)}registerTrigger(f,p,I,Z,me){const Te=f+"-"+Z;let Fe=this._triggerCache[Te];if(!Fe){const ot=[],bt=_n(this._driver,me,ot);if(ot.length)throw new Error(`The animation trigger "${Z}" has failed to build due to the following errors:\n - ${ot.join("\n - ")}`);Fe=function(G,f,p){return new Ft(G,f,p)}(Z,bt,this._normalizer),this._triggerCache[Te]=Fe}this._transitionEngine.registerTrigger(p,Z,Fe)}register(f,p){this._transitionEngine.register(f,p)}destroy(f,p){this._transitionEngine.destroy(f,p)}onInsert(f,p,I,Z){this._transitionEngine.insertNode(f,p,I,Z)}onRemove(f,p,I,Z){this._transitionEngine.removeNode(f,p,Z||!1,I)}disableAnimations(f,p){this._transitionEngine.markElementAsDisabled(f,p)}process(f,p,I,Z){if("@"==I.charAt(0)){const[me,Te]=S(I);this._timelineEngine.command(me,p,Te,Z)}else this._transitionEngine.trigger(f,p,I,Z)}listen(f,p,I,Z,me){if("@"==I.charAt(0)){const[Te,Fe]=S(I);return this._timelineEngine.listen(Te,p,Fe,me)}return this._transitionEngine.listen(f,p,I,Z,me)}flush(f=-1){this._transitionEngine.flush(f)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Li(G,f){let p=null,I=null;return Array.isArray(f)&&f.length?(p=qi(f[0]),f.length>1&&(I=qi(f[f.length-1]))):f&&(p=qi(f)),p||I?new Br(G,p,I):null}let Br=(()=>{class G{constructor(p,I,Z){this._element=p,this._startStyles=I,this._endStyles=Z,this._state=0;let me=G.initialStylesByElement.get(p);me||G.initialStylesByElement.set(p,me={}),this._initialStyles=me}start(){this._state<1&&(this._startStyles&&Je(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Je(this._element,this._initialStyles),this._endStyles&&(Je(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(G.initialStylesByElement.delete(this._element),this._startStyles&&(ze(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ze(this._element,this._endStyles),this._endStyles=null),Je(this._element,this._initialStyles),this._state=3)}}return G.initialStylesByElement=new WeakMap,G})();function qi(G){let f=null;const p=Object.keys(G);for(let I=0;I<p.length;I++){const Z=p[I];yr(Z)&&(f=f||{},f[Z]=G[Z])}return f}function yr(G){return"display"===G||"position"===G}const er="animation",Mi="animationend";class Vr{constructor(f,p,I,Z,me,Te,Fe){this._element=f,this._name=p,this._duration=I,this._delay=Z,this._easing=me,this._fillMode=Te,this._onDoneFn=Fe,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=ot=>this._handleCallback(ot)}apply(){(function(G,f){const p=Cr(G,"").trim();let I=0;p.length&&(function(G,f){let p=0;for(let I=0;I<G.length;I++)","===G.charAt(I)&&p++;return p}(p)+1,f=`${p}, ${f}`),Rn(G,"",f)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),$r(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){tr(this._element,this._name,"paused")}resume(){tr(this._element,this._name,"running")}setPosition(f){const p=Hr(this._element,this._name);this._position=f*this._duration,Rn(this._element,"Delay",`-${this._position}ms`,p)}getPosition(){return this._position}_handleCallback(f){const p=f._ngTestManualTimestamp||Date.now(),I=1e3*parseFloat(f.elapsedTime.toFixed(3));f.animationName==this._name&&Math.max(p-this._startTime,0)>=this._delay&&I>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),$r(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(G,f){const I=Cr(G,"").split(","),Z=Si(I,f);Z>=0&&(I.splice(Z,1),Rn(G,"",I.join(",")))}(this._element,this._name))}}function tr(G,f,p){Rn(G,"PlayState",p,Hr(G,f))}function Hr(G,f){const p=Cr(G,"");return p.indexOf(",")>0?Si(p.split(","),f):Si([p],f)}function Si(G,f){for(let p=0;p<G.length;p++)if(G[p].indexOf(f)>=0)return p;return-1}function $r(G,f,p){p?G.removeEventListener(Mi,f):G.addEventListener(Mi,f)}function Rn(G,f,p,I){const Z=er+f;if(null!=I){const me=G.style[Z];if(me.length){const Te=me.split(",");Te[I]=p,p=Te.join(",")}}G.style[Z]=p}function Cr(G,f){return G.style[er+f]||""}class Tr{constructor(f,p,I,Z,me,Te,Fe,ot){this.element=f,this.keyframes=p,this.animationName=I,this._duration=Z,this._delay=me,this._finalStyles=Fe,this._specialStyles=ot,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=Te||"linear",this.totalTime=Z+me,this._buildStyler()}onStart(f){this._onStartFns.push(f)}onDone(f){this._onDoneFns.push(f)}onDestroy(f){this._onDestroyFns.push(f)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(f=>f()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(f=>f()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(f=>f()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(f){this._styler.setPosition(f)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Vr(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(f){const p="start"==f?this._onStartFns:this._onDoneFns;p.forEach(I=>I()),p.length=0}beforeDestroy(){this.init();const f={};if(this.hasStarted()){const p=this._state>=3;Object.keys(this._finalStyles).forEach(I=>{"offset"!=I&&(f[I]=p?this._finalStyles[I]:Be(this.element,I))})}this.currentSnapshot=f}}class go extends h.ZN{constructor(f,p){super(),this.element=f,this._startingStyles={},this.__initialized=!1,this._styles=ge(p)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(f=>{this._startingStyles[f]=this.element.style[f]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(f=>this.element.style.setProperty(f,this._styles[f])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(f=>{const p=this._startingStyles[f];p?this.element.style.setProperty(f,p):this.element.style.removeProperty(f)}),this._startingStyles=null,super.destroy())}}class k{constructor(){this._count=0}validateStyleProperty(f){return Re(f)}matchesElement(f,p){return Ne(f,p)}containsElement(f,p){return Ct(f,p)}query(f,p,I){return te(f,p,I)}computeStyle(f,p,I){return window.getComputedStyle(f)[p]}buildKeyframeElement(f,p,I){I=I.map(Fe=>ge(Fe));let Z=`@keyframes ${p} {\n`,me="";I.forEach(Fe=>{me=" ";const ot=parseFloat(Fe.offset);Z+=`${me}${100*ot}% {\n`,me+=" ",Object.keys(Fe).forEach(bt=>{const kt=Fe[bt];switch(bt){case"offset":return;case"easing":return void(kt&&(Z+=`${me}animation-timing-function: ${kt};\n`));default:return void(Z+=`${me}${bt}: ${kt};\n`)}}),Z+=`${me}}\n`}),Z+="}\n";const Te=document.createElement("style");return Te.textContent=Z,Te}animate(f,p,I,Z,me,Te=[],Fe){const ot=Te.filter(hn=>hn instanceof Tr),bt={};de(I,Z)&&ot.forEach(hn=>{let Pn=hn.currentSnapshot;Object.keys(Pn).forEach(An=>bt[An]=Pn[An])});const kt=function(G){let f={};return G&&(Array.isArray(G)?G:[G]).forEach(I=>{Object.keys(I).forEach(Z=>{"offset"==Z||"easing"==Z||(f[Z]=I[Z])})}),f}(p=z(f,p,bt));if(0==I)return new go(f,kt);const Vt="gen_css_kf_"+this._count++,nn=this.buildKeyframeElement(f,Vt,p);(function(G){var f;const p=null===(f=G.getRootNode)||void 0===f?void 0:f.call(G);return"undefined"!=typeof ShadowRoot&&p instanceof ShadowRoot?p:document.head})(f).appendChild(nn);const Gt=Li(f,p),en=new Tr(f,p,Vt,I,Z,me,kt,Gt);return en.onDestroy(()=>{var G;(G=nn).parentNode.removeChild(G)}),en}}class St{constructor(f,p,I,Z){this.element=f,this.keyframes=p,this.options=I,this._specialStyles=Z,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=I.duration,this._delay=I.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(f=>f()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const f=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,f,this.options),this._finalKeyframe=f.length?f[f.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(f,p,I){return f.animate(p,I)}onStart(f){this._onStartFns.push(f)}onDone(f){this._onDoneFns.push(f)}onDestroy(f){this._onDestroyFns.push(f)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(f=>f()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(f=>f()),this._onDestroyFns=[])}setPosition(f){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=f*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const f={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(p=>{"offset"!=p&&(f[p]=this._finished?this._finalKeyframe[p]:Be(this.element,p))}),this.currentSnapshot=f}triggerCallback(f){const p="start"==f?this._onStartFns:this._onDoneFns;p.forEach(I=>I()),p.length=0}}class Zt{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(rn().toString()),this._cssKeyframesDriver=new k}validateStyleProperty(f){return Re(f)}matchesElement(f,p){return Ne(f,p)}containsElement(f,p){return Ct(f,p)}query(f,p,I){return te(f,p,I)}computeStyle(f,p,I){return window.getComputedStyle(f)[p]}overrideWebAnimationsSupport(f){this._isNativeImpl=f}animate(f,p,I,Z,me,Te=[],Fe){if(!Fe&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(f,p,I,Z,me,Te);const kt={duration:I,delay:Z,fill:0==Z?"both":"forwards"};me&&(kt.easing=me);const Vt={},nn=Te.filter(Gt=>Gt instanceof St);de(I,Z)&&nn.forEach(Gt=>{let en=Gt.currentSnapshot;Object.keys(en).forEach(hn=>Vt[hn]=en[hn])});const mn=Li(f,p=z(f,p=p.map(Gt=>Oe(Gt,!1)),Vt));return new St(f,p,kt,mn)}}function rn(){return _()&&Element.prototype.animate||{}}var bn=d(8583);let Tn=(()=>{class G extends h._j{constructor(p,I){super(),this._nextAnimationId=0,this._renderer=p.createRenderer(I.body,{id:"0",encapsulation:o.ViewEncapsulation.None,styles:[],data:{animation:[]}})}build(p){const I=this._nextAnimationId.toString();this._nextAnimationId++;const Z=Array.isArray(p)?(0,h.vP)(p):p;return Kn(this._renderer,null,I,"register",[Z]),new Ln(I,this._renderer)}}return G.\u0275fac=function(p){return new(p||G)(o.\u0275\u0275inject(o.RendererFactory2),o.\u0275\u0275inject(bn.DOCUMENT))},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();class Ln extends h.LC{constructor(f,p){super(),this._id=f,this._renderer=p}create(f,p){return new Ur(this._id,f,p||{},this._renderer)}}class Ur{constructor(f,p,I,Z){this.id=f,this.element=p,this._renderer=Z,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",I)}_listen(f,p){return this._renderer.listen(this.element,`@@${this.id}:${f}`,p)}_command(f,...p){return Kn(this._renderer,this.element,this.id,f,p)}onDone(f){this._listen("done",f)}onStart(f){this._listen("start",f)}onDestroy(f){this._listen("destroy",f)}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(f){this._command("setPosition",f)}getPosition(){var f,p;return null!==(p=null===(f=this._renderer.engine.players[+this.id])||void 0===f?void 0:f.getPosition())&&void 0!==p?p:0}}function Kn(G,f,p,I,Z){return G.setProperty(f,`@@${p}:${I}`,Z)}const Ii="@.disabled";let Yt=(()=>{class G{constructor(p,I,Z){this.delegate=p,this.engine=I,this._zone=Z,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),I.onRemovalComplete=(me,Te)=>{Te&&Te.parentNode(me)&&Te.removeChild(me.parentNode,me)}}createRenderer(p,I){const me=this.delegate.createRenderer(p,I);if(!(p&&I&&I.data&&I.data.animation)){let kt=this._rendererCache.get(me);return kt||(kt=new io("",me,this.engine),this._rendererCache.set(me,kt)),kt}const Te=I.id,Fe=I.id+"-"+this._currentId;this._currentId++,this.engine.register(Fe,p);const ot=kt=>{Array.isArray(kt)?kt.forEach(ot):this.engine.registerTrigger(Te,Fe,p,kt.name,kt)};return I.data.animation.forEach(ot),new _o(this,Fe,me,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(p,I,Z){p>=0&&p<this._microtaskId?this._zone.run(()=>I(Z)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(me=>{const[Te,Fe]=me;Te(Fe)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([I,Z]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return G.\u0275fac=function(p){return new(p||G)(o.\u0275\u0275inject(o.RendererFactory2),o.\u0275\u0275inject(wi),o.\u0275\u0275inject(o.NgZone))},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();class io{constructor(f,p,I){this.namespaceId=f,this.delegate=p,this.engine=I,this.destroyNode=this.delegate.destroyNode?Z=>p.destroyNode(Z):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(f,p){return this.delegate.createElement(f,p)}createComment(f){return this.delegate.createComment(f)}createText(f){return this.delegate.createText(f)}appendChild(f,p){this.delegate.appendChild(f,p),this.engine.onInsert(this.namespaceId,p,f,!1)}insertBefore(f,p,I,Z=!0){this.delegate.insertBefore(f,p,I),this.engine.onInsert(this.namespaceId,p,f,Z)}removeChild(f,p,I){this.engine.onRemove(this.namespaceId,p,this.delegate,I)}selectRootElement(f,p){return this.delegate.selectRootElement(f,p)}parentNode(f){return this.delegate.parentNode(f)}nextSibling(f){return this.delegate.nextSibling(f)}setAttribute(f,p,I,Z){this.delegate.setAttribute(f,p,I,Z)}removeAttribute(f,p,I){this.delegate.removeAttribute(f,p,I)}addClass(f,p){this.delegate.addClass(f,p)}removeClass(f,p){this.delegate.removeClass(f,p)}setStyle(f,p,I,Z){this.delegate.setStyle(f,p,I,Z)}removeStyle(f,p,I){this.delegate.removeStyle(f,p,I)}setProperty(f,p,I){"@"==p.charAt(0)&&p==Ii?this.disableAnimations(f,!!I):this.delegate.setProperty(f,p,I)}setValue(f,p){this.delegate.setValue(f,p)}listen(f,p,I){return this.delegate.listen(f,p,I)}disableAnimations(f,p){this.engine.disableAnimations(f,p)}}class _o extends io{constructor(f,p,I,Z){super(p,I,Z),this.factory=f,this.namespaceId=p}setProperty(f,p,I){"@"==p.charAt(0)?"."==p.charAt(1)&&p==Ii?this.disableAnimations(f,I=void 0===I||!!I):this.engine.process(this.namespaceId,f,p.substr(1),I):this.delegate.setProperty(f,p,I)}listen(f,p,I){if("@"==p.charAt(0)){const Z=function(G){switch(G){case"body":return document.body;case"document":return document;case"window":return window;default:return G}}(f);let me=p.substr(1),Te="";return"@"!=me.charAt(0)&&([me,Te]=function(G){const f=G.indexOf(".");return[G.substring(0,f),G.substr(f+1)]}(me)),this.engine.listen(this.namespaceId,Z,me,Te,Fe=>{this.factory.scheduleListenerCallback(Fe._data||-1,I,Fe)})}return this.delegate.listen(f,p,I)}}let Rs=(()=>{class G extends wi{constructor(p,I,Z){super(p.body,I,Z)}ngOnDestroy(){this.flush()}}return G.\u0275fac=function(p){return new(p||G)(o.\u0275\u0275inject(bn.DOCUMENT),o.\u0275\u0275inject(ce),o.\u0275\u0275inject(ee))},G.\u0275prov=o.\u0275\u0275defineInjectable({token:G,factory:G.\u0275fac}),G})();function ks(){return"function"==typeof rn()?new Zt:new k}function Fs(){return new Y}function Mt(G,f,p){return new Yt(G,f,p)}const pn=new o.InjectionToken("AnimationModuleType"),Ns=[{provide:h._j,useClass:Tn},{provide:ee,useFactory:Fs},{provide:wi,useClass:Rs},{provide:o.RendererFactory2,useFactory:Mt,deps:[l.\u0275DomRendererFactory2,wi,o.NgZone]}],kn=[{provide:ce,useFactory:ks},{provide:pn,useValue:"BrowserAnimations"},...Ns],Fo=[{provide:ce,useClass:X},{provide:pn,useValue:"NoopAnimations"},...Ns];let yo=(()=>{class G{static withConfig(p){return{ngModule:G,providers:p.disableAnimations?Fo:kn}}}return G.\u0275fac=function(p){return new(p||G)},G.\u0275mod=o.\u0275\u0275defineNgModule({type:G}),G.\u0275inj=o.\u0275\u0275defineInjector({providers:kn,imports:[l.BrowserModule]}),G})(),Vi=(()=>{class G{}return G.\u0275fac=function(p){return new(p||G)},G.\u0275mod=o.\u0275\u0275defineNgModule({type:G}),G.\u0275inj=o.\u0275\u0275defineInjector({providers:Fo,imports:[l.BrowserModule]}),G})()},9075:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{\u0275getDOM:()=>o.\u0275getDOM,BrowserModule:()=>st,BrowserTransferStateModule:()=>ve,By:()=>Ke,DomSanitizer:()=>jt,EVENT_MANAGER_PLUGINS:()=>X,EventManager:()=>ce,HAMMER_GESTURE_CONFIG:()=>Ge,HAMMER_LOADER:()=>ft,HammerGestureConfig:()=>vt,HammerModule:()=>de,Meta:()=>Ht,Title:()=>an,TransferState:()=>be,VERSION:()=>Tt,disableDebugTools:()=>nt,enableDebugTools:()=>Se,makeStateKey:()=>ee,platformBrowser:()=>N,\u0275BROWSER_SANITIZATION_PROVIDERS:()=>J,\u0275BROWSER_SANITIZATION_PROVIDERS__POST_R3__:()=>Q,\u0275BrowserDomAdapter:()=>_,\u0275BrowserGetTestability:()=>S,\u0275DomEventsPlugin:()=>He,\u0275DomRendererFactory2:()=>ne,\u0275DomSanitizerImpl:()=>qe,\u0275DomSharedStylesHost:()=>Ue,\u0275ELEMENT_PROBE_PROVIDERS:()=>ge,\u0275ELEMENT_PROBE_PROVIDERS__POST_R3__:()=>Ct,\u0275HAMMER_PROVIDERS__POST_R3__:()=>x,\u0275HammerGesturesPlugin:()=>Ye,\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS:()=>De,\u0275KeyEventsPlugin:()=>At,\u0275NAMESPACE_URIS:()=>pt,\u0275SharedStylesHost:()=>Ce,\u0275TRANSITION_ID:()=>g,\u0275angular_packages_platform_browser_platform_browser_a:()=>B,\u0275angular_packages_platform_browser_platform_browser_b:()=>K,\u0275angular_packages_platform_browser_platform_browser_c:()=>oe,\u0275angular_packages_platform_browser_platform_browser_d:()=>_t,\u0275angular_packages_platform_browser_platform_browser_e:()=>cn,\u0275angular_packages_platform_browser_platform_browser_f:()=>Y,\u0275angular_packages_platform_browser_platform_browser_g:()=>Ae,\u0275angular_packages_platform_browser_platform_browser_h:()=>F,\u0275angular_packages_platform_browser_platform_browser_i:()=>R,\u0275angular_packages_platform_browser_platform_browser_j:()=>_n,\u0275angular_packages_platform_browser_platform_browser_k:()=>E,\u0275angular_packages_platform_browser_platform_browser_l:()=>M,\u0275angular_packages_platform_browser_platform_browser_m:()=>Pe,\u0275angular_packages_platform_browser_platform_browser_n:()=>te,\u0275angular_packages_platform_browser_platform_browser_o:()=>P,\u0275angular_packages_platform_browser_platform_browser_p:()=>h,\u0275escapeHtml:()=>ht,\u0275flattenStyles:()=>se,\u0275initDomAdapter:()=>Pt,\u0275shimContentAttribute:()=>dt,\u0275shimHostAttribute:()=>$});var o=d(8583),l=d(7716);class h extends o.\u0275DomAdapter{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class _ extends h{static makeCurrent(){(0,o.\u0275setRootDomAdapter)(new _)}onAndCancel(Ie,pe,Ve){return Ie.addEventListener(pe,Ve,!1),()=>{Ie.removeEventListener(pe,Ve,!1)}}dispatchEvent(Ie,pe){Ie.dispatchEvent(pe)}remove(Ie){Ie.parentNode&&Ie.parentNode.removeChild(Ie)}createElement(Ie,pe){return(pe=pe||this.getDefaultDocument()).createElement(Ie)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ie){return Ie.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ie){return Ie instanceof DocumentFragment}getGlobalEventTarget(Ie,pe){return"window"===pe?window:"document"===pe?Ie:"body"===pe?Ie.body:null}getBaseHref(Ie){const pe=(a=a||document.querySelector("base"),a?a.getAttribute("href"):null);return null==pe?null:function(we){w=w||document.createElement("a"),w.setAttribute("href",we);const Ie=w.pathname;return"/"===Ie.charAt(0)?Ie:`/${Ie}`}(pe)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ie){return(0,o.\u0275parseCookieValue)(document.cookie,Ie)}}let w,a=null;const g=new l.InjectionToken("TRANSITION_ID");function E(we,Ie,pe){return()=>{pe.get(l.ApplicationInitStatus).donePromise.then(()=>{const Ve=(0,o.\u0275getDOM)(),lt=Ie.querySelectorAll(`style[ng-transition="${we}"]`);for(let Ft=0;Ft<lt.length;Ft++)Ve.remove(lt[Ft])})}}const M=[{provide:l.APP_INITIALIZER,useFactory:E,deps:[g,o.DOCUMENT,l.Injector],multi:!0}];class S{static init(){(0,l.setTestabilityGetter)(new S)}addToWindow(Ie){l.\u0275global.getAngularTestability=(Ve,lt=!0)=>{const Ft=Ie.findTestabilityInTree(Ve,lt);if(null==Ft)throw new Error("Could not find testability for element.");return Ft},l.\u0275global.getAllAngularTestabilities=()=>Ie.getAllTestabilities(),l.\u0275global.getAllAngularRootElements=()=>Ie.getAllRootElements(),l.\u0275global.frameworkStabilizers||(l.\u0275global.frameworkStabilizers=[]),l.\u0275global.frameworkStabilizers.push(Ve=>{const lt=l.\u0275global.getAllAngularTestabilities();let Ft=lt.length,$t=!1;const qt=function(Wt){$t=$t||Wt,Ft--,0==Ft&&Ve($t)};lt.forEach(function(Wt){Wt.whenStable(qt)})})}findTestabilityInTree(Ie,pe,Ve){if(null==pe)return null;const lt=Ie.getTestability(pe);return null!=lt?lt:Ve?(0,o.\u0275getDOM)().isShadowRoot(pe)?this.findTestabilityInTree(Ie,pe.host,!0):this.findTestabilityInTree(Ie,pe.parentElement,!0):null}}let P=(()=>{class we{build(){return new XMLHttpRequest}}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();function ye(we,Ie){"undefined"!=typeof COMPILED&&COMPILED||((l.\u0275global.ng=l.\u0275global.ng||{})[we]=Ie)}const at=(()=>({ApplicationRef:l.ApplicationRef,NgZone:l.NgZone}))();function Re(we){return(0,l.\u0275getDebugNodeR2)(we)}function Pe(we){return ye("probe",Re),ye("coreTokens",Object.assign(Object.assign({},at),function(we){return we.reduce((Ie,pe)=>(Ie[pe.name]=pe.token,Ie),{})}(we||[]))),()=>Re}const Ct=[],te=[{provide:l.APP_INITIALIZER,useFactory:Pe,deps:[[l.NgProbeToken,new l.Optional]],multi:!0}],ge=Ct,X=new l.InjectionToken("EventManagerPlugins");let ce=(()=>{class we{constructor(pe,Ve){this._zone=Ve,this._eventNameToPlugin=new Map,pe.forEach(lt=>lt.manager=this),this._plugins=pe.slice().reverse()}addEventListener(pe,Ve,lt){return this._findPluginFor(Ve).addEventListener(pe,Ve,lt)}addGlobalEventListener(pe,Ve,lt){return this._findPluginFor(Ve).addGlobalEventListener(pe,Ve,lt)}getZone(){return this._zone}_findPluginFor(pe){const Ve=this._eventNameToPlugin.get(pe);if(Ve)return Ve;const lt=this._plugins;for(let Ft=0;Ft<lt.length;Ft++){const $t=lt[Ft];if($t.supports(pe))return this._eventNameToPlugin.set(pe,$t),$t}throw new Error(`No event manager plugin found for event ${pe}`)}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(X),l.\u0275\u0275inject(l.NgZone))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class Ae{constructor(Ie){this._doc=Ie}addGlobalEventListener(Ie,pe,Ve){const lt=(0,o.\u0275getDOM)().getGlobalEventTarget(this._doc,Ie);if(!lt)throw new Error(`Unsupported event target ${lt} for event ${pe}`);return this.addEventListener(lt,pe,Ve)}}let Ce=(()=>{class we{constructor(){this._stylesSet=new Set}addStyles(pe){const Ve=new Set;pe.forEach(lt=>{this._stylesSet.has(lt)||(this._stylesSet.add(lt),Ve.add(lt))}),this.onStylesAdded(Ve)}onStylesAdded(pe){}getAllStyles(){return Array.from(this._stylesSet)}}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),Ue=(()=>{class we extends Ce{constructor(pe){super(),this._doc=pe,this._hostNodes=new Map,this._hostNodes.set(pe.head,[])}_addStylesToHost(pe,Ve,lt){pe.forEach(Ft=>{const $t=this._doc.createElement("style");$t.textContent=Ft,lt.push(Ve.appendChild($t))})}addHost(pe){const Ve=[];this._addStylesToHost(this._stylesSet,pe,Ve),this._hostNodes.set(pe,Ve)}removeHost(pe){const Ve=this._hostNodes.get(pe);Ve&&Ve.forEach(et),this._hostNodes.delete(pe)}onStylesAdded(pe){this._hostNodes.forEach((Ve,lt)=>{this._addStylesToHost(pe,lt,Ve)})}ngOnDestroy(){this._hostNodes.forEach(pe=>pe.forEach(et))}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();function et(we){(0,o.\u0275getDOM)().remove(we)}const pt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},je=/%COMP%/g;function dt(we){return"_ngcontent-%COMP%".replace(je,we)}function $(we){return"_nghost-%COMP%".replace(je,we)}function se(we,Ie,pe){for(let Ve=0;Ve<Ie.length;Ve++){let lt=Ie[Ve];Array.isArray(lt)?se(we,lt,pe):(lt=lt.replace(je,we),pe.push(lt))}return pe}function H(we){return Ie=>{if("__ngUnwrap__"===Ie)return we;!1===we(Ie)&&(Ie.preventDefault(),Ie.returnValue=!1)}}let ne=(()=>{class we{constructor(pe,Ve,lt){this.eventManager=pe,this.sharedStylesHost=Ve,this.appId=lt,this.rendererByCompId=new Map,this.defaultRenderer=new fe(pe)}createRenderer(pe,Ve){if(!pe||!Ve)return this.defaultRenderer;switch(Ve.encapsulation){case l.ViewEncapsulation.Emulated:{let lt=this.rendererByCompId.get(Ve.id);return lt||(lt=new Je(this.eventManager,this.sharedStylesHost,Ve,this.appId),this.rendererByCompId.set(Ve.id,lt)),lt.applyToHost(pe),lt}case 1:case l.ViewEncapsulation.ShadowDom:return new ze(this.eventManager,this.sharedStylesHost,pe,Ve);default:if(!this.rendererByCompId.has(Ve.id)){const lt=se(Ve.id,Ve.styles,[]);this.sharedStylesHost.addStyles(lt),this.rendererByCompId.set(Ve.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(ce),l.\u0275\u0275inject(Ue),l.\u0275\u0275inject(l.APP_ID))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();class fe{constructor(Ie){this.eventManager=Ie,this.data=Object.create(null)}destroy(){}createElement(Ie,pe){return pe?document.createElementNS(pt[pe]||pe,Ie):document.createElement(Ie)}createComment(Ie){return document.createComment(Ie)}createText(Ie){return document.createTextNode(Ie)}appendChild(Ie,pe){Ie.appendChild(pe)}insertBefore(Ie,pe,Ve){Ie&&Ie.insertBefore(pe,Ve)}removeChild(Ie,pe){Ie&&Ie.removeChild(pe)}selectRootElement(Ie,pe){let Ve="string"==typeof Ie?document.querySelector(Ie):Ie;if(!Ve)throw new Error(`The selector "${Ie}" did not match any elements`);return pe||(Ve.textContent=""),Ve}parentNode(Ie){return Ie.parentNode}nextSibling(Ie){return Ie.nextSibling}setAttribute(Ie,pe,Ve,lt){if(lt){pe=lt+":"+pe;const Ft=pt[lt];Ft?Ie.setAttributeNS(Ft,pe,Ve):Ie.setAttribute(pe,Ve)}else Ie.setAttribute(pe,Ve)}removeAttribute(Ie,pe,Ve){if(Ve){const lt=pt[Ve];lt?Ie.removeAttributeNS(lt,pe):Ie.removeAttribute(`${Ve}:${pe}`)}else Ie.removeAttribute(pe)}addClass(Ie,pe){Ie.classList.add(pe)}removeClass(Ie,pe){Ie.classList.remove(pe)}setStyle(Ie,pe,Ve,lt){lt&(l.RendererStyleFlags2.DashCase|l.RendererStyleFlags2.Important)?Ie.style.setProperty(pe,Ve,lt&l.RendererStyleFlags2.Important?"important":""):Ie.style[pe]=Ve}removeStyle(Ie,pe,Ve){Ve&l.RendererStyleFlags2.DashCase?Ie.style.removeProperty(pe):Ie.style[pe]=""}setProperty(Ie,pe,Ve){Ie[pe]=Ve}setValue(Ie,pe){Ie.nodeValue=pe}listen(Ie,pe,Ve){return"string"==typeof Ie?this.eventManager.addGlobalEventListener(Ie,pe,H(Ve)):this.eventManager.addEventListener(Ie,pe,H(Ve))}}class Je extends fe{constructor(Ie,pe,Ve,lt){super(Ie),this.component=Ve;const Ft=se(lt+"-"+Ve.id,Ve.styles,[]);pe.addStyles(Ft),this.contentAttr=dt(lt+"-"+Ve.id),this.hostAttr=$(lt+"-"+Ve.id)}applyToHost(Ie){super.setAttribute(Ie,this.hostAttr,"")}createElement(Ie,pe){const Ve=super.createElement(Ie,pe);return super.setAttribute(Ve,this.contentAttr,""),Ve}}class ze extends fe{constructor(Ie,pe,Ve,lt){super(Ie),this.sharedStylesHost=pe,this.hostEl=Ve,this.shadowRoot=Ve.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ft=se(lt.id,lt.styles,[]);for(let $t=0;$t<Ft.length;$t++){const qt=document.createElement("style");qt.textContent=Ft[$t],this.shadowRoot.appendChild(qt)}}nodeOrShadowRoot(Ie){return Ie===this.hostEl?this.shadowRoot:Ie}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(Ie,pe){return super.appendChild(this.nodeOrShadowRoot(Ie),pe)}insertBefore(Ie,pe,Ve){return super.insertBefore(this.nodeOrShadowRoot(Ie),pe,Ve)}removeChild(Ie,pe){return super.removeChild(this.nodeOrShadowRoot(Ie),pe)}parentNode(Ie){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Ie)))}}let He=(()=>{class we extends Ae{constructor(pe){super(pe)}supports(pe){return!0}addEventListener(pe,Ve,lt){return pe.addEventListener(Ve,lt,!1),()=>this.removeEventListener(pe,Ve,lt)}removeEventListener(pe,Ve,lt){return pe.removeEventListener(Ve,lt)}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();const q={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Ge=new l.InjectionToken("HammerGestureConfig"),ft=new l.InjectionToken("HammerLoader");let vt=(()=>{class we{constructor(){this.events=[],this.overrides={}}buildHammer(pe){const Ve=new Hammer(pe,this.options);Ve.get("pinch").set({enable:!0}),Ve.get("rotate").set({enable:!0});for(const lt in this.overrides)Ve.get(lt).set(this.overrides[lt]);return Ve}}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),Ye=(()=>{class we extends Ae{constructor(pe,Ve,lt,Ft){super(pe),this._config=Ve,this.console=lt,this.loader=Ft,this._loaderPromise=null}supports(pe){return!(!q.hasOwnProperty(pe.toLowerCase())&&!this.isCustomEvent(pe)||!window.Hammer&&!this.loader)}addEventListener(pe,Ve,lt){const Ft=this.manager.getZone();if(Ve=Ve.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let $t=!1,qt=()=>{$t=!0};return this._loaderPromise.then(()=>{window.Hammer?$t||(qt=this.addEventListener(pe,Ve,lt)):qt=()=>{}}).catch(()=>{qt=()=>{}}),()=>{qt()}}return Ft.runOutsideAngular(()=>{const $t=this._config.buildHammer(pe),qt=function(Wt){Ft.runGuarded(function(){lt(Wt)})};return $t.on(Ve,qt),()=>{$t.off(Ve,qt),"function"==typeof $t.destroy&&$t.destroy()}})}isCustomEvent(pe){return this._config.events.indexOf(pe)>-1}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT),l.\u0275\u0275inject(Ge),l.\u0275\u0275inject(l.\u0275Console),l.\u0275\u0275inject(ft,8))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();const x=[],F=[{provide:X,useClass:Ye,multi:!0,deps:[o.DOCUMENT,Ge,l.\u0275Console,[new l.Optional,ft]]},{provide:Ge,useClass:vt,deps:[]}],R=x;let de=(()=>{class we{}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275mod=l.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=l.\u0275\u0275defineInjector({providers:F}),we})();const z=["alt","control","meta","shift"],Be={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},gt={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Qt={alt:we=>we.altKey,control:we=>we.ctrlKey,meta:we=>we.metaKey,shift:we=>we.shiftKey};let At=(()=>{class we extends Ae{constructor(pe){super(pe)}supports(pe){return null!=we.parseEventName(pe)}addEventListener(pe,Ve,lt){const Ft=we.parseEventName(Ve),$t=we.eventCallback(Ft.fullKey,lt,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.\u0275getDOM)().onAndCancel(pe,Ft.domEventName,$t))}static parseEventName(pe){const Ve=pe.toLowerCase().split("."),lt=Ve.shift();if(0===Ve.length||"keydown"!==lt&&"keyup"!==lt)return null;const Ft=we._normalizeKey(Ve.pop());let $t="";if(z.forEach(Wt=>{const Mn=Ve.indexOf(Wt);Mn>-1&&(Ve.splice(Mn,1),$t+=Wt+".")}),$t+=Ft,0!=Ve.length||0===Ft.length)return null;const qt={};return qt.domEventName=lt,qt.fullKey=$t,qt}static getEventFullKey(pe){let Ve="",lt=function(we){let Ie=we.key;if(null==Ie){if(Ie=we.keyIdentifier,null==Ie)return"Unidentified";Ie.startsWith("U+")&&(Ie=String.fromCharCode(parseInt(Ie.substring(2),16)),3===we.location&&gt.hasOwnProperty(Ie)&&(Ie=gt[Ie]))}return Be[Ie]||Ie}(pe);return lt=lt.toLowerCase()," "===lt?lt="space":"."===lt&&(lt="dot"),z.forEach(Ft=>{Ft!=lt&&Qt[Ft](pe)&&(Ve+=Ft+".")}),Ve+=lt,Ve}static eventCallback(pe,Ve,lt){return Ft=>{we.getEventFullKey(Ft)===pe&&lt.runGuarded(()=>Ve(Ft))}}static _normalizeKey(pe){switch(pe){case"esc":return"escape";default:return pe}}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})(),jt=(()=>{class we{}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:function(){return(0,l.\u0275\u0275inject)(qe)},token:we,providedIn:"root"}),we})();function _n(we){return new qe(we.get(o.DOCUMENT))}let qe=(()=>{class we extends jt{constructor(pe){super(),this._doc=pe}sanitize(pe,Ve){if(null==Ve)return null;switch(pe){case l.SecurityContext.NONE:return Ve;case l.SecurityContext.HTML:return(0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"HTML")?(0,l.\u0275unwrapSafeValue)(Ve):(0,l.\u0275_sanitizeHtml)(this._doc,String(Ve)).toString();case l.SecurityContext.STYLE:return(0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"Style")?(0,l.\u0275unwrapSafeValue)(Ve):Ve;case l.SecurityContext.SCRIPT:if((0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"Script"))return(0,l.\u0275unwrapSafeValue)(Ve);throw new Error("unsafe value used in a script context");case l.SecurityContext.URL:return(0,l.\u0275getSanitizationBypassType)(Ve),(0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"URL")?(0,l.\u0275unwrapSafeValue)(Ve):(0,l.\u0275_sanitizeUrl)(String(Ve));case l.SecurityContext.RESOURCE_URL:if((0,l.\u0275allowSanitizationBypassAndThrow)(Ve,"ResourceURL"))return(0,l.\u0275unwrapSafeValue)(Ve);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${pe} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(pe){return(0,l.\u0275bypassSanitizationTrustHtml)(pe)}bypassSecurityTrustStyle(pe){return(0,l.\u0275bypassSanitizationTrustStyle)(pe)}bypassSecurityTrustScript(pe){return(0,l.\u0275bypassSanitizationTrustScript)(pe)}bypassSecurityTrustUrl(pe){return(0,l.\u0275bypassSanitizationTrustUrl)(pe)}bypassSecurityTrustResourceUrl(pe){return(0,l.\u0275bypassSanitizationTrustResourceUrl)(pe)}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:function(){return _n((0,l.\u0275\u0275inject)(l.INJECTOR))},token:we,providedIn:"root"}),we})();function Pt(){_.makeCurrent(),S.init()}function B(){return new l.ErrorHandler}function K(){return(0,l.\u0275setDocument)(document),document}const De=[{provide:l.PLATFORM_ID,useValue:o.\u0275PLATFORM_BROWSER_ID},{provide:l.PLATFORM_INITIALIZER,useValue:Pt,multi:!0},{provide:o.DOCUMENT,useFactory:K,deps:[]}],Q=[],J=Q,N=(0,l.createPlatformFactory)(l.platformCore,"browser",De),oe=[J,{provide:l.\u0275INJECTOR_SCOPE,useValue:"root"},{provide:l.ErrorHandler,useFactory:B,deps:[]},{provide:X,useClass:He,multi:!0,deps:[o.DOCUMENT,l.NgZone,l.PLATFORM_ID]},{provide:X,useClass:At,multi:!0,deps:[o.DOCUMENT]},R,{provide:ne,useClass:ne,deps:[ce,Ue,l.APP_ID]},{provide:l.RendererFactory2,useExisting:ne},{provide:Ce,useExisting:Ue},{provide:Ue,useClass:Ue,deps:[o.DOCUMENT]},{provide:l.Testability,useClass:l.Testability,deps:[l.NgZone]},{provide:ce,useClass:ce,deps:[X,l.NgZone]},{provide:o.XhrFactory,useClass:P,deps:[]},ge];let st=(()=>{class we{constructor(pe){if(pe)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(pe){return{ngModule:we,providers:[{provide:l.APP_ID,useValue:pe.appId},{provide:g,useExisting:l.APP_ID},M]}}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(we,12))},we.\u0275mod=l.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=l.\u0275\u0275defineInjector({providers:oe,imports:[o.CommonModule,l.ApplicationModule]}),we})();function _t(){return new Ht((0,l.\u0275\u0275inject)(o.DOCUMENT))}let Ht=(()=>{class we{constructor(pe){this._doc=pe,this._dom=(0,o.\u0275getDOM)()}addTag(pe,Ve=!1){return pe?this._getOrCreateElement(pe,Ve):null}addTags(pe,Ve=!1){return pe?pe.reduce((lt,Ft)=>(Ft&&lt.push(this._getOrCreateElement(Ft,Ve)),lt),[]):[]}getTag(pe){return pe&&this._doc.querySelector(`meta[${pe}]`)||null}getTags(pe){if(!pe)return[];const Ve=this._doc.querySelectorAll(`meta[${pe}]`);return Ve?[].slice.call(Ve):[]}updateTag(pe,Ve){if(!pe)return null;Ve=Ve||this._parseSelector(pe);const lt=this.getTag(Ve);return lt?this._setMetaElementAttributes(pe,lt):this._getOrCreateElement(pe,!0)}removeTag(pe){this.removeTagElement(this.getTag(pe))}removeTagElement(pe){pe&&this._dom.remove(pe)}_getOrCreateElement(pe,Ve=!1){if(!Ve){const $t=this._parseSelector(pe),qt=this.getTags($t).filter(Wt=>this._containsAttributes(pe,Wt))[0];if(void 0!==qt)return qt}const lt=this._dom.createElement("meta");return this._setMetaElementAttributes(pe,lt),this._doc.getElementsByTagName("head")[0].appendChild(lt),lt}_setMetaElementAttributes(pe,Ve){return Object.keys(pe).forEach(lt=>Ve.setAttribute(this._getMetaKeyMap(lt),pe[lt])),Ve}_parseSelector(pe){const Ve=pe.name?"name":"property";return`${Ve}="${pe[Ve]}"`}_containsAttributes(pe,Ve){return Object.keys(pe).every(lt=>Ve.getAttribute(this._getMetaKeyMap(lt))===pe[lt])}_getMetaKeyMap(pe){return dn[pe]||pe}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:_t,token:we,providedIn:"root"}),we})();const dn={httpEquiv:"http-equiv"};function cn(){return new an((0,l.\u0275\u0275inject)(o.DOCUMENT))}let an=(()=>{class we{constructor(pe){this._doc=pe}getTitle(){return this._doc.title}setTitle(pe){this._doc.title=pe||""}}return we.\u0275fac=function(pe){return new(pe||we)(l.\u0275\u0275inject(o.DOCUMENT))},we.\u0275prov=(0,l.\u0275\u0275defineInjectable)({factory:cn,token:we,providedIn:"root"}),we})();const un="undefined"!=typeof window&&window||{};class wn{constructor(Ie,pe){this.msPerTick=Ie,this.numTicks=pe}}class yn{constructor(Ie){this.appRef=Ie.injector.get(l.ApplicationRef)}timeChangeDetection(Ie){const pe=Ie&&Ie.record,Ve="Change Detection",lt=null!=un.console.profile;pe&&lt&&un.console.profile(Ve);const Ft=mt();let $t=0;for(;$t<5||mt()-Ft<500;)this.appRef.tick(),$t++;const qt=mt();pe&&lt&&un.console.profileEnd(Ve);const Wt=(qt-Ft)/$t;return un.console.log(`ran ${$t} change detection cycles`),un.console.log(`${Wt.toFixed(2)} ms per check`),new wn(Wt,$t)}}function mt(){return un.performance&&un.performance.now?un.performance.now():(new Date).getTime()}const ke="profiler";function Se(we){return ye(ke,new yn(we)),we}function nt(){ye(ke,null)}function ht(we){const Ie={"&":"&a;",'"':"&q;","'":"&s;","<":"&l;",">":"&g;"};return we.replace(/[&"'<>]/g,pe=>Ie[pe])}function ee(we){return we}let be=(()=>{class we{constructor(){this.store={},this.onSerializeCallbacks={}}static init(pe){const Ve=new we;return Ve.store=pe,Ve}get(pe,Ve){return void 0!==this.store[pe]?this.store[pe]:Ve}set(pe,Ve){this.store[pe]=Ve}remove(pe){delete this.store[pe]}hasKey(pe){return this.store.hasOwnProperty(pe)}onSerialize(pe,Ve){this.onSerializeCallbacks[pe]=Ve}toJson(){for(const pe in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(pe))try{this.store[pe]=this.onSerializeCallbacks[pe]()}catch(Ve){console.warn("Exception in onSerialize callback: ",Ve)}return JSON.stringify(this.store)}}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275prov=l.\u0275\u0275defineInjectable({token:we,factory:we.\u0275fac}),we})();function Y(we,Ie){const pe=we.getElementById(Ie+"-state");let Ve={};if(pe&&pe.textContent)try{Ve=JSON.parse(function(we){const Ie={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return we.replace(/&[^;]+;/g,pe=>Ie[pe])}(pe.textContent))}catch(lt){console.warn("Exception while restoring TransferState for app "+Ie,lt)}return be.init(Ve)}let ve=(()=>{class we{}return we.\u0275fac=function(pe){return new(pe||we)},we.\u0275mod=l.\u0275\u0275defineNgModule({type:we}),we.\u0275inj=l.\u0275\u0275defineInjector({providers:[{provide:be,useFactory:Y,deps:[o.DOCUMENT,l.APP_ID]}]}),we})();class Ke{static all(){return()=>!0}static css(Ie){return pe=>null!=pe.nativeElement&&function(we,Ie){return!!(0,o.\u0275getDOM)().isElementNode(we)&&(we.matches&&we.matches(Ie)||we.msMatchesSelector&&we.msMatchesSelector(Ie)||we.webkitMatchesSelector&&we.webkitMatchesSelector(Ie))}(pe.nativeElement,Ie)}static directive(Ie){return pe=>-1!==pe.providerTokens.indexOf(Ie)}}const Tt=new l.Version("12.2.15")},5151:(Le,T,d)=>{"use strict";function a($,se,H,le){var Oe,ne=arguments.length,fe=ne<3?se:null===le?le=Object.getOwnPropertyDescriptor(se,H):le;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)fe=Reflect.decorate($,se,H,le);else for(var rt=$.length-1;rt>=0;rt--)(Oe=$[rt])&&(fe=(ne<3?Oe(fe):ne>3?Oe(se,H,fe):Oe(se,H))||fe);return ne>3&&fe&&Object.defineProperty(se,H,fe),fe}function C($,se){return function(H,le){se(H,le,$)}}function w($,se){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata($,se)}d.r(T),d.d(T,{MONACO_PATH:()=>pt,MonacoDiffEditorComponent:()=>Xe,MonacoEditorComponent:()=>It,MonacoEditorLoaderDirective:()=>tt,MonacoEditorLoaderService:()=>je,MonacoEditorModule:()=>dt});var Ne=d(7716),Ct=d(6215),te=d(9765),ge=d(6782),X=d(5435),ce=d(5257),Ae=d(3679);const Ce=["editor"],Ue=["diffEditor"],et=".monaco-editor[_ngcontent-%COMP%] {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n\n}\n.editor-container[_ngcontent-%COMP%] {\n\toverflow: hidden;\n\tposition: relative;\n\tdisplay: table;\n\twidth: 100%;\n height: 100%;\n min-width: 0;\n}",pt="MONACO_PATH";let je=(()=>{let $=class{constructor(H,le){this.ngZone=H,this.monacoPathConfig=le,this.isMonacoLoaded$=new Ct.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?H.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(H){H&&(this._monacoPath=H)}loadMonaco(){const H=()=>{let Oe=this._monacoPath;window.amdRequire=window.require;const rt=!!this.nodeRequire,wt=Oe.includes("http");rt&&(window.require=this.nodeRequire,wt||(Oe=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:Oe}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},Je=>console.error("Error loading monaco-editor: ",Je))};if(window.amdRequire)return H();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const fe=document.createElement("script");fe.type="text/javascript",fe.src=`${this._monacoPath}/loader.js`,fe.addEventListener("load",H),document.body.appendChild(fe)}addElectronFixScripts(){const H=document.createElement("script"),le=document.createTextNode("self.module = undefined;"),ne=document.createTextNode("self.process.browser = true;");H.appendChild(le),H.appendChild(ne),document.body.appendChild(H)}};return $.\u0275fac=function(H){return new(H||$)(Ne.\u0275\u0275inject(Ne.NgZone),Ne.\u0275\u0275inject(pt,8))},$.\u0275prov=(0,Ne.\u0275\u0275defineInjectable)({factory:function(){return new $((0,Ne.\u0275\u0275inject)(Ne.NgZone),(0,Ne.\u0275\u0275inject)("MONACO_PATH",8))},token:$,providedIn:"root"}),$=a([C(1,(0,Ne.Optional)()),C(1,(0,Ne.Inject)(pt)),w("design:paramtypes",[Ne.NgZone,String])],$),$})(),tt=(()=>{let $=class{constructor(H,le,ne){this.templateRef=H,this.viewContainer=le,this.monacoEditorLoaderService=ne,this.isMonacoLoaded$=this.monacoEditorLoaderService.isMonacoLoaded$.asObservable(),this.destroyed$=new te.xQ}ngOnInit(){this.isMonacoLoaded$.pipe((0,ge.R)(this.destroyed$)).subscribe(H=>{if(!H)return this.viewContainer.clear();this.viewContainer.createEmbeddedView(this.templateRef)})}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}};return $.\u0275fac=function(H){return new(H||$)(Ne.\u0275\u0275directiveInject(Ne.TemplateRef),Ne.\u0275\u0275directiveInject(Ne.ViewContainerRef),Ne.\u0275\u0275directiveInject(je))},$.\u0275dir=Ne.\u0275\u0275defineDirective({type:$,selectors:[["","ngxLoadMonacoEditor",""]]}),$=a([w("design:paramtypes",[Ne.TemplateRef,Ne.ViewContainerRef,je])],$),$})();var ut;let It=ut=class{constructor(se){this.monacoLoader=se,this.init=new Ne.EventEmitter,this.propagateChange=H=>{}}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,X.h)(se=>se),(0,ce.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(se){if(this.editor&&se.options&&!se.options.firstChange){const H=se.options.currentValue,{language:le,theme:ne}=H,fe=function($,se){var H={};for(var le in $)Object.prototype.hasOwnProperty.call($,le)&&se.indexOf(le)<0&&(H[le]=$[le]);if(null!=$&&"function"==typeof Object.getOwnPropertySymbols){var ne=0;for(le=Object.getOwnPropertySymbols($);ne<le.length;ne++)se.indexOf(le[ne])<0&&Object.prototype.propertyIsEnumerable.call($,le[ne])&&(H[le[ne]]=$[le[ne]])}return H}(H,["language","theme"]),{language:Oe,theme:rt}=se.options.previousValue;Oe!==le&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),rt!==ne&&monaco.editor.setTheme(ne),this.editor.updateOptions(fe)}if(this.editor&&se.uri){const H=se.uri.currentValue,le=se.uri.previousValue;if(le&&!H||!le&&H||H&&le&&H.path!==le.path){const ne=this.editor.getValue();let fe;this.modelUriInstance&&this.modelUriInstance.dispose(),H&&(fe=monaco.editor.getModels().find(Oe=>Oe.uri.path===H.path)),this.modelUriInstance=fe||monaco.editor.createModel(ne,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(se){this.value=se,this.editor&&se?this.editor.setValue(se):this.editor&&this.editor.setValue("")}registerOnChange(se){this.propagateChange=se}registerOnTouched(se){this.onTouched=se}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(se){this.onErrorStatusChange=se}initEditor(){const se={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({},se),this.options):se),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const se=this.modelMarkers.map(({message:le})=>le).join("|");this.parsedError!==se&&(this.parsedError=se,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}};It.\u0275fac=function(se){return new(se||It)(Ne.\u0275\u0275directiveInject(je))},It.\u0275cmp=Ne.\u0275\u0275defineComponent({type:It,selectors:[["ngx-monaco-editor"]],viewQuery:function(se,H){if(1&se&&Ne.\u0275\u0275viewQuery(Ce,7),2&se){let le;Ne.\u0275\u0275queryRefresh(le=Ne.\u0275\u0275loadQuery())&&(H.editorContent=le.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[Ne.\u0275\u0275ProvidersFeature([{provide:Ae.NG_VALUE_ACCESSOR,useExisting:(0,Ne.forwardRef)(()=>ut),multi:!0},{provide:Ae.NG_VALIDATORS,useExisting:(0,Ne.forwardRef)(()=>ut),multi:!0}]),Ne.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(se,H){1&se&&(Ne.\u0275\u0275elementStart(0,"div",0,1),Ne.\u0275\u0275element(2,"div",2,3),Ne.\u0275\u0275elementEnd())},styles:[et],changeDetection:0}),It.ctorParameters=()=>[{type:je}],a([(0,Ne.Input)(),w("design:type",Object)],It.prototype,"options",void 0),a([(0,Ne.Input)(),w("design:type",Object)],It.prototype,"uri",void 0),a([(0,Ne.Output)(),w("design:type",Ne.EventEmitter)],It.prototype,"init",void 0),a([(0,Ne.ViewChild)("editor",{static:!0}),w("design:type",Ne.ElementRef)],It.prototype,"editorContent",void 0),It=ut=a([w("design:paramtypes",[je])],It);let Xe=(()=>{let $=class{constructor(H){this.monacoLoader=H,this.init=new Ne.EventEmitter}ngOnInit(){this.container=this.editorContent.nativeElement,this.monacoLoader.isMonacoLoaded$.pipe((0,X.h)(H=>H),(0,ce.q)(1)).subscribe(()=>{this.initMonaco()})}ngOnChanges(H){if(this.editor&&(H.code&&!H.code.firstChange||H.modified&&!H.modified.firstChange)){const le=monaco.editor.createModel(this.modified),ne=monaco.editor.createModel(this.original);this.editor.setModel({original:ne,modified:le})}this.editor&&H.options&&!H.options.firstChange&&(H.options.previousValue.theme!==H.options.currentValue.theme&&monaco.editor.setTheme(H.options.currentValue.theme),this.editor.updateOptions(H.options.currentValue))}initMonaco(){let H={readOnly:!0,automaticLayout:!0,theme:"vc"};this.options&&(H=Object.assign({},H,this.options)),this.editor=monaco.editor.createDiffEditor(this.container,H);const le=monaco.editor.createModel(this.original),ne=monaco.editor.createModel(this.modified);this.editor.setModel({original:le,modified:ne}),this.editor.layout(),this.init.emit(this.editor)}ngOnDestroy(){this.editor&&this.editor.dispose()}};return $.\u0275fac=function(H){return new(H||$)(Ne.\u0275\u0275directiveInject(je))},$.\u0275cmp=Ne.\u0275\u0275defineComponent({type:$,selectors:[["ngx-monaco-diff-editor"]],viewQuery:function(H,le){if(1&H&&Ne.\u0275\u0275viewQuery(Ue,7),2&H){let ne;Ne.\u0275\u0275queryRefresh(ne=Ne.\u0275\u0275loadQuery())&&(le.editorContent=ne.first)}},inputs:{original:"original",modified:"modified",options:"options"},outputs:{init:"init"},features:[Ne.\u0275\u0275NgOnChangesFeature],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["diffEditor",""]],template:function(H,le){1&H&&(Ne.\u0275\u0275elementStart(0,"div",0,1),Ne.\u0275\u0275element(2,"div",2,3),Ne.\u0275\u0275elementEnd())},styles:[et],changeDetection:0}),a([(0,Ne.Input)(),w("design:type",String)],$.prototype,"original",void 0),a([(0,Ne.Input)(),w("design:type",String)],$.prototype,"modified",void 0),a([(0,Ne.Input)(),w("design:type",Object)],$.prototype,"options",void 0),a([(0,Ne.Output)(),w("design:type",Ne.EventEmitter)],$.prototype,"init",void 0),a([(0,Ne.ViewChild)("diffEditor",{static:!0}),w("design:type",Ne.ElementRef)],$.prototype,"editorContent",void 0),$=a([w("design:paramtypes",[je])],$),$})(),dt=(()=>{let $=class{};return $.\u0275fac=function(H){return new(H||$)},$.\u0275mod=Ne.\u0275\u0275defineNgModule({type:$}),$.\u0275inj=Ne.\u0275\u0275defineInjector({imports:[[]]}),$})()},9457:function(Le,T){var d,l;void 0!==(l="function"==typeof(d=function(){"use strict";function _(E,M,S){var P=new XMLHttpRequest;P.open("GET",E),P.responseType="blob",P.onload=function(){g(P.response,M,S)},P.onerror=function(){console.error("could not download file")},P.send()}function a(E){var M=new XMLHttpRequest;M.open("HEAD",E,!1);try{M.send()}catch(S){}return 200<=M.status&&299>=M.status}function C(E){try{E.dispatchEvent(new MouseEvent("click"))}catch(S){var M=document.createEvent("MouseEvents");M.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),E.dispatchEvent(M)}}var w="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,D=w.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=w.saveAs||("object"!=typeof window||window!==w?function(){}:"download"in HTMLAnchorElement.prototype&&!D?function(E,M,S){var P=w.URL||w.webkitURL,L=document.createElement("a");L.download=M=M||E.name||"download",L.rel="noopener","string"==typeof E?(L.href=E,L.origin===location.origin?C(L):a(L.href)?_(E,M,S):C(L,L.target="_blank")):(L.href=P.createObjectURL(E),setTimeout(function(){P.revokeObjectURL(L.href)},4e4),setTimeout(function(){C(L)},0))}:"msSaveOrOpenBlob"in navigator?function(E,M,S){if(M=M||E.name||"download","string"!=typeof E)navigator.msSaveOrOpenBlob(function(E,M){return void 0===M?M={autoBom:!1}:"object"!=typeof M&&(console.warn("Deprecated: Expected third argument to be a object"),M={autoBom:!M}),M.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(E.type)?new Blob(["\ufeff",E],{type:E.type}):E}(E,S),M);else if(a(E))_(E,M,S);else{var P=document.createElement("a");P.href=E,P.target="_blank",setTimeout(function(){C(P)})}}:function(E,M,S,P){if((P=P||open("","_blank"))&&(P.document.title=P.document.body.innerText="downloading..."),"string"==typeof E)return _(E,M,S);var L="application/octet-stream"===E.type,j=/constructor/i.test(w.HTMLElement)||w.safari,ae=/CriOS\/[\d]+/.test(navigator.userAgent);if((ae||L&&j||D)&&"undefined"!=typeof FileReader){var he=new FileReader;he.onloadend=function(){var at=he.result;at=ae?at:at.replace(/^data:[^;]*;/,"data:attachment/file;"),P?P.location.href=at:location=at,P=null},he.readAsDataURL(E)}else{var ye=w.URL||w.webkitURL,$e=ye.createObjectURL(E);P?P.location=$e:location.href=$e,P=null,setTimeout(function(){ye.revokeObjectURL($e)},4e4)}});w.saveAs=g.saveAs=g,Le.exports=g})?d.apply(T,[]):d)&&(Le.exports=l)},1103:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{NgxJsonViewerComponent:()=>g,NgxJsonViewerModule:()=>E});var o=d(8583),l=d(7716);function h(M,S){1&M&&l.\u0275\u0275element(0,"div",9)}function _(M,S){if(1&M&&(l.\u0275\u0275elementStart(0,"span",10),l.\u0275\u0275text(1),l.\u0275\u0275elementEnd()),2&M){const P=l.\u0275\u0275nextContext().$implicit;l.\u0275\u0275advance(1),l.\u0275\u0275textInterpolate(P.description)}}function a(M,S){if(1&M&&(l.\u0275\u0275elementStart(0,"section",11),l.\u0275\u0275element(1,"ngx-json-viewer",12),l.\u0275\u0275elementEnd()),2&M){const P=l.\u0275\u0275nextContext().$implicit,L=l.\u0275\u0275nextContext();l.\u0275\u0275advance(1),l.\u0275\u0275property("json",P.value)("expanded",L.expanded)("depth",L.depth)("_currentDepth",L._currentDepth)}}const C=function(M){return["segment",M]},w=function(M,S){return{"segment-main":!0,expandable:M,expanded:S}};function D(M,S){if(1&M){const P=l.\u0275\u0275getCurrentView();l.\u0275\u0275elementStart(0,"section",2),l.\u0275\u0275elementStart(1,"section",3),l.\u0275\u0275listener("click",function(){const ae=l.\u0275\u0275restoreView(P).$implicit;return l.\u0275\u0275nextContext().toggle(ae)}),l.\u0275\u0275template(2,h,1,0,"div",4),l.\u0275\u0275elementStart(3,"span",5),l.\u0275\u0275text(4),l.\u0275\u0275elementEnd(),l.\u0275\u0275elementStart(5,"span",6),l.\u0275\u0275text(6,": "),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(7,_,2,1,"span",7),l.\u0275\u0275elementEnd(),l.\u0275\u0275template(8,a,2,4,"section",8),l.\u0275\u0275elementEnd()}if(2&M){const P=S.$implicit,L=l.\u0275\u0275nextContext();l.\u0275\u0275property("ngClass",l.\u0275\u0275pureFunction1(6,C,"segment-type-"+P.type)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngClass",l.\u0275\u0275pureFunction2(8,w,L.isExpandable(P),P.expanded)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",L.isExpandable(P)),l.\u0275\u0275advance(2),l.\u0275\u0275textInterpolate(P.key),l.\u0275\u0275advance(3),l.\u0275\u0275property("ngIf",!P.expanded||!L.isExpandable(P)),l.\u0275\u0275advance(1),l.\u0275\u0275property("ngIf",P.expanded&&L.isExpandable(P))}}let g=(()=>{class M{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=-1,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),this._currentDepth++,"object"==typeof this.json?Object.keys(this.json).forEach(P=>{this.segments.push(this.parseKeyValue(P,this.json[P]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(P){return"object"===P.type||"array"===P.type}toggle(P){this.isExpandable(P)&&(P.expanded=!P.expanded)}parseKeyValue(P,L){const j={key:P,value:L,type:void 0,description:""+L,expanded:this.isExpanded()};switch(typeof j.value){case"number":j.type="number";break;case"boolean":j.type="boolean";break;case"function":j.type="function";break;case"string":j.type="string",j.description='"'+j.value+'"';break;case"undefined":j.type="undefined",j.description="undefined";break;case"object":null===j.value?(j.type="null",j.description="null"):Array.isArray(j.value)?(j.type="array",j.description="Array["+j.value.length+"] "+JSON.stringify(j.value)):j.value instanceof Date?j.type="date":(j.type="object",j.description="Object "+JSON.stringify(j.value))}return j}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(P){const L=new WeakMap;return function j(ae,he){let ye,$e;return"object"!=typeof ae||null===ae||ae instanceof Boolean||ae instanceof Date||ae instanceof Number||ae instanceof RegExp||ae instanceof String?ae:(ye=L.get(ae),void 0!==ye?{$ref:ye}:(L.set(ae,he),Array.isArray(ae)?($e=[],ae.forEach(function(at,Ze){$e[Ze]=j(at,he+"["+Ze+"]")})):($e={},Object.keys(ae).forEach(function(at){$e[at]=j(ae[at],he+"["+JSON.stringify(at)+"]")})),$e))}(P,"$")}}return M.\u0275fac=function(P){return new(P||M)},M.\u0275cmp=l.\u0275\u0275defineComponent({type:M,selectors:[["ngx-json-viewer"]],inputs:{expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth",json:"json"},features:[l.\u0275\u0275NgOnChangesFeature],decls:2,vars:1,consts:[[1,"ngx-json-viewer"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[3,"ngClass","click"],["class","toggler",4,"ngIf"],[1,"segment-key"],[1,"segment-separator"],["class","segment-value",4,"ngIf"],["class","children",4,"ngIf"],[1,"toggler"],[1,"segment-value"],[1,"children"],[3,"json","expanded","depth","_currentDepth"]],template:function(P,L){1&P&&(l.\u0275\u0275elementStart(0,"section",0),l.\u0275\u0275template(1,D,9,11,"section",1),l.\u0275\u0275elementEnd()),2&P&&(l.\u0275\u0275advance(1),l.\u0275\u0275property("ngForOf",L.segments))},directives:[o.NgForOf,o.NgClass,o.NgIf,M],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:monospace;font-size:1em;height:100%;overflow:hidden;position:relative;width:100%}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{margin:1px 1px 1px 12px;padding:2px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{color:#787878;font-size:.8em;line-height:1.2em;margin-left:-14px;margin-top:3px;position:absolute;vertical-align:middle}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{content:"\u25ba";display:inline-block;transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:#4e187c}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:#000}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .children[_ngcontent-%COMP%]{margin-left:12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-string[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#ff6b6b}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#009688}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#b938a4}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#05668d}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:#fff}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:red}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:#999}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),M})(),E=(()=>{class M{}return M.\u0275fac=function(P){return new(P||M)},M.\u0275mod=l.\u0275\u0275defineNgModule({type:M}),M.\u0275inj=l.\u0275\u0275defineInjector({imports:[[o.CommonModule]]}),M})()},9344:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{BasePortalHost:()=>Ne,ComponentPortal:()=>Pe,DefaultGlobalConfig:()=>et,DefaultNoAnimationsGlobalConfig:()=>ut,DefaultNoComponentGlobalConfig:()=>Me,Overlay:()=>X,OverlayContainer:()=>te,OverlayRef:()=>ge,TOAST_CONFIG:()=>Re,Toast:()=>Ue,ToastContainerDirective:()=>$e,ToastContainerModule:()=>at,ToastInjector:()=>Ae,ToastNoAnimation:()=>tt,ToastNoAnimationModule:()=>It,ToastPackage:()=>Ze,ToastRef:()=>ce,ToastrComponentlessModule:()=>je,ToastrModule:()=>pt,ToastrService:()=>Ce});var o=d(7716),l=d(7238),h=d(9765),_=d(9075),a=d(8583);const C=["toast-component",""];function w(Xe,dt){if(1&Xe){const $=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",5),o.\u0275\u0275listener("click",function(){return o.\u0275\u0275restoreView($),o.\u0275\u0275nextContext().remove()}),o.\u0275\u0275elementStart(1,"span",6),o.\u0275\u0275text(2,"\xd7"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()}}function D(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275text(1),o.\u0275\u0275elementContainerEnd()),2&Xe){const $=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1("[",$.duplicatesCount+1,"]")}}function g(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275text(1),o.\u0275\u0275template(2,D,2,1,"ng-container",4),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.titleClass),o.\u0275\u0275attribute("aria-label",$.title),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.title," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",$.duplicatesCount)}}function E(Xe,dt){if(1&Xe&&o.\u0275\u0275element(0,"div",7),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275property("innerHTML",$.message,o.\u0275\u0275sanitizeHtml)}}function M(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div",8),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275attribute("aria-label",$.message),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.message," ")}}function S(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"div",9),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275styleProp("width",$.width+"%")}}function P(Xe,dt){if(1&Xe){const $=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"button",5),o.\u0275\u0275listener("click",function(){return o.\u0275\u0275restoreView($),o.\u0275\u0275nextContext().remove()}),o.\u0275\u0275elementStart(1,"span",6),o.\u0275\u0275text(2,"\xd7"),o.\u0275\u0275elementEnd(),o.\u0275\u0275elementEnd()}}function L(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementContainerStart(0),o.\u0275\u0275text(1),o.\u0275\u0275elementContainerEnd()),2&Xe){const $=o.\u0275\u0275nextContext(2);o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1("[",$.duplicatesCount+1,"]")}}function j(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275text(1),o.\u0275\u0275template(2,L,2,1,"ng-container",4),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.titleClass),o.\u0275\u0275attribute("aria-label",$.title),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.title," "),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",$.duplicatesCount)}}function ae(Xe,dt){if(1&Xe&&o.\u0275\u0275element(0,"div",7),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275property("innerHTML",$.message,o.\u0275\u0275sanitizeHtml)}}function he(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div",8),o.\u0275\u0275text(1),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275classMap($.options.messageClass),o.\u0275\u0275attribute("aria-label",$.message),o.\u0275\u0275advance(1),o.\u0275\u0275textInterpolate1(" ",$.message," ")}}function ye(Xe,dt){if(1&Xe&&(o.\u0275\u0275elementStart(0,"div"),o.\u0275\u0275element(1,"div",9),o.\u0275\u0275elementEnd()),2&Xe){const $=o.\u0275\u0275nextContext();o.\u0275\u0275advance(1),o.\u0275\u0275styleProp("width",$.width+"%")}}let $e=(()=>{class Xe{constructor($){this.el=$}getContainerElement(){return this.el.nativeElement}}return Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275directiveInject(o.ElementRef))},Xe.\u0275dir=o.\u0275\u0275defineDirective({type:Xe,selectors:[["","toastContainer",""]],exportAs:["toastContainer"]}),Xe})(),at=(()=>{class Xe{}return Xe.\u0275fac=function($){return new($||Xe)},Xe.\u0275mod=o.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=o.\u0275\u0275defineInjector({}),Xe})();class Ze{constructor(dt,$,se,H,le,ne){this.toastId=dt,this.config=$,this.message=se,this.title=H,this.toastType=le,this.toastRef=ne,this._onTap=new h.xQ,this._onAction=new h.xQ,this.toastRef.afterClosed().subscribe(()=>{this._onAction.complete(),this._onTap.complete()})}triggerTap(){this._onTap.next(),this.config.tapToDismiss&&this._onTap.complete()}onTap(){return this._onTap.asObservable()}triggerAction(dt){this._onAction.next(dt)}onAction(){return this._onAction.asObservable()}}const Me={maxOpened:0,autoDismiss:!1,newestOnTop:!0,preventDuplicates:!1,countDuplicates:!1,resetTimeoutOnDuplicate:!1,includeTitleDuplicates:!1,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},closeButton:!1,disableTimeOut:!1,timeOut:5e3,extendedTimeOut:1e3,enableHtml:!1,progressBar:!1,toastClass:"ngx-toastr",positionClass:"toast-top-right",titleClass:"toast-title",messageClass:"toast-message",easing:"ease-in",easeTime:300,tapToDismiss:!0,onActivateTick:!1,progressAnimation:"decreasing",payload:null},Re=new o.InjectionToken("ToastConfig");class Pe{constructor(dt,$){this.component=dt,this.injector=$}attach(dt,$){return this._attachedHost=dt,dt.attach(this,$)}detach(){const dt=this._attachedHost;if(dt)return this._attachedHost=void 0,dt.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(dt){this._attachedHost=dt}}class Ne{attach(dt,$){return this._attachedPortal=dt,this.attachComponentPortal(dt,$)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(dt){this._disposeFn=dt}}class Ct extends Ne{constructor(dt,$,se){super(),this._hostDomElement=dt,this._componentFactoryResolver=$,this._appRef=se}attachComponentPortal(dt,$){const se=this._componentFactoryResolver.resolveComponentFactory(dt.component);let H;return H=se.create(dt.injector),this._appRef.attachView(H.hostView),this.setDisposeFn(()=>{this._appRef.detachView(H.hostView),H.destroy()}),$?this._hostDomElement.insertBefore(this._getComponentRootNode(H),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(H)),H}_getComponentRootNode(dt){return dt.hostView.rootNodes[0]}}let te=(()=>{class Xe{constructor($){this._document=$}ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const $=this._document.createElement("div");$.classList.add("overlay-container"),this._document.body.appendChild($),this._containerElement=$}}return Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275inject(a.DOCUMENT))},Xe.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Xe(o.\u0275\u0275inject(a.DOCUMENT))},token:Xe,providedIn:"root"}),Xe})();class ge{constructor(dt){this._portalHost=dt}attach(dt,$=!0){return this._portalHost.attach(dt,$)}detach(){return this._portalHost.detach()}}let X=(()=>{class Xe{constructor($,se,H,le){this._overlayContainer=$,this._componentFactoryResolver=se,this._appRef=H,this._document=le,this._paneElements=new Map}create($,se){return this._createOverlayRef(this.getPaneElement($,se))}getPaneElement($="",se){return this._paneElements.get(se)||this._paneElements.set(se,{}),this._paneElements.get(se)[$]||(this._paneElements.get(se)[$]=this._createPaneElement($,se)),this._paneElements.get(se)[$]}_createPaneElement($,se){const H=this._document.createElement("div");return H.id="toast-container",H.classList.add($),H.classList.add("toast-container"),se?se.getContainerElement().appendChild(H):this._overlayContainer.getContainerElement().appendChild(H),H}_createPortalHost($){return new Ct($,this._componentFactoryResolver,this._appRef)}_createOverlayRef($){return new ge(this._createPortalHost($))}}return Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275inject(te),o.\u0275\u0275inject(o.ComponentFactoryResolver),o.\u0275\u0275inject(o.ApplicationRef),o.\u0275\u0275inject(a.DOCUMENT))},Xe.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Xe(o.\u0275\u0275inject(te),o.\u0275\u0275inject(o.ComponentFactoryResolver),o.\u0275\u0275inject(o.ApplicationRef),o.\u0275\u0275inject(a.DOCUMENT))},token:Xe,providedIn:"root"}),Xe})();class ce{constructor(dt){this._overlayRef=dt,this.duplicatesCount=0,this._afterClosed=new h.xQ,this._activate=new h.xQ,this._manualClose=new h.xQ,this._resetTimeout=new h.xQ,this._countDuplicate=new h.xQ}manualClose(){this._manualClose.next(),this._manualClose.complete()}manualClosed(){return this._manualClose.asObservable()}timeoutReset(){return this._resetTimeout.asObservable()}countDuplicate(){return this._countDuplicate.asObservable()}close(){this._overlayRef.detach(),this._afterClosed.next(),this._manualClose.next(),this._afterClosed.complete(),this._manualClose.complete(),this._activate.complete(),this._resetTimeout.complete(),this._countDuplicate.complete()}afterClosed(){return this._afterClosed.asObservable()}isInactive(){return this._activate.isStopped}activate(){this._activate.next(),this._activate.complete()}afterActivate(){return this._activate.asObservable()}onDuplicate(dt,$){dt&&this._resetTimeout.next(),$&&this._countDuplicate.next(++this.duplicatesCount)}}class Ae{constructor(dt,$){this._toastPackage=dt,this._parentInjector=$}get(dt,$,se){return dt===Ze?this._toastPackage:this._parentInjector.get(dt,$,se)}}let Ce=(()=>{class Xe{constructor($,se,H,le,ne){this.overlay=se,this._injector=H,this.sanitizer=le,this.ngZone=ne,this.currentlyActive=0,this.toasts=[],this.index=0,this.toastrConfig=Object.assign(Object.assign({},$.default),$.config),$.config.iconClasses&&(this.toastrConfig.iconClasses=Object.assign(Object.assign({},$.default.iconClasses),$.config.iconClasses))}show($,se,H={},le=""){return this._preBuildNotification(le,$,se,this.applyConfig(H))}success($,se,H={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",$,se,this.applyConfig(H))}error($,se,H={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",$,se,this.applyConfig(H))}info($,se,H={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",$,se,this.applyConfig(H))}warning($,se,H={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",$,se,this.applyConfig(H))}clear($){for(const se of this.toasts)if(void 0!==$){if(se.toastId===$)return void se.toastRef.manualClose()}else se.toastRef.manualClose()}remove($){const se=this._findToast($);if(!se||(se.activeToast.toastRef.close(),this.toasts.splice(se.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 H=this.toasts[this.currentlyActive].toastRef;H.isInactive()||(this.currentlyActive=this.currentlyActive+1,H.activate())}return!0}findDuplicate($="",se="",H,le){const{includeTitleDuplicates:ne}=this.toastrConfig;for(const fe of this.toasts){const Oe=ne&&fe.title===$;if((!ne||Oe)&&fe.message===se)return fe.toastRef.onDuplicate(H,le),fe}return null}applyConfig($={}){return Object.assign(Object.assign({},this.toastrConfig),$)}_findToast($){for(let se=0;se<this.toasts.length;se++)if(this.toasts[se].toastId===$)return{index:se,activeToast:this.toasts[se]};return null}_preBuildNotification($,se,H,le){return le.onActivateTick?this.ngZone.run(()=>this._buildNotification($,se,H,le)):this._buildNotification($,se,H,le)}_buildNotification($,se,H,le){if(!le.toastComponent)throw new Error("toastComponent required");const ne=this.findDuplicate(H,se,this.toastrConfig.resetTimeoutOnDuplicate&&le.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&H||se)&&this.toastrConfig.preventDuplicates&&null!==ne)return ne;this.previousToastMessage=se;let fe=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(fe=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const Oe=this.overlay.create(le.positionClass,this.overlayContainer);this.index=this.index+1;let rt=se;se&&le.enableHtml&&(rt=this.sanitizer.sanitize(o.SecurityContext.HTML,se));const wt=new ce(Oe),Je=new Ze(this.index,le,rt,H,$,wt),ze=new Ae(Je,this._injector),He=new Pe(le.toastComponent,ze),q=Oe.attach(He,this.toastrConfig.newestOnTop);wt.componentInstance=q.instance;const Ge={toastId:this.index,title:H||"",message:se||"",toastRef:wt,onShown:wt.afterActivate(),onHidden:wt.afterClosed(),onTap:Je.onTap(),onAction:Je.onAction(),portal:q};return fe||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Ge.toastRef.activate()})),this.toasts.push(Ge),Ge}}return Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275inject(Re),o.\u0275\u0275inject(X),o.\u0275\u0275inject(o.Injector),o.\u0275\u0275inject(_.DomSanitizer),o.\u0275\u0275inject(o.NgZone))},Xe.\u0275prov=o.\u0275\u0275defineInjectable({factory:function(){return new Xe(o.\u0275\u0275inject(Re),o.\u0275\u0275inject(X),o.\u0275\u0275inject(o.INJECTOR),o.\u0275\u0275inject(_.DomSanitizer),o.\u0275\u0275inject(o.NgZone))},token:Xe,providedIn:"root"}),Xe})(),Ue=(()=>{class Xe{constructor($,se,H){this.toastrService=$,this.toastPackage=se,this.ngZone=H,this.width=-1,this.toastClasses="",this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}},this.message=se.message,this.title=se.title,this.options=se.config,this.originalTimeout=se.config.timeOut,this.toastClasses=`${se.toastType} ${se.config.toastClass}`,this.sub=se.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=se.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=se.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=se.toastRef.countDuplicate().subscribe(le=>{this.duplicatesCount=le})}get displayStyle(){if("inactive"===this.state.value)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state=Object.assign(Object.assign({},this.state),{value:"active"}),!0!==this.options.disableTimeOut&&"timeOut"!==this.options.disableTimeOut&&this.options.timeOut&&(this.outsideTimeout(()=>this.remove(),this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const $=(new Date).getTime();this.width=(this.hideTime-$)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state=Object.assign(Object.assign({},this.state),{value:"active"}),this.outsideTimeout(()=>this.remove(),this.originalTimeout),this.options.timeOut=this.originalTimeout,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10)}remove(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.state=Object.assign(Object.assign({},this.state),{value:"removed"}),this.outsideTimeout(()=>this.toastrService.remove(this.toastPackage.toastId),+this.toastPackage.config.easeTime))}tapToast(){"removed"!==this.state.value&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state.value&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state.value||(this.outsideTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&this.outsideInterval(()=>this.updateProgress(),10))}outsideTimeout($,se){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular($),se)):this.timeout=setTimeout(()=>$(),se)}outsideInterval($,se){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular($),se)):this.intervalId=setInterval(()=>$(),se)}runInsideAngular($){this.ngZone?this.ngZone.run(()=>$()):$()}}return Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275directiveInject(Ce),o.\u0275\u0275directiveInject(Ze),o.\u0275\u0275directiveInject(o.NgZone))},Xe.\u0275cmp=o.\u0275\u0275defineComponent({type:Xe,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function($,se){1&$&&o.\u0275\u0275listener("click",function(){return se.tapToast()})("mouseenter",function(){return se.stickAround()})("mouseleave",function(){return se.delayedHideToast()}),2&$&&(o.\u0275\u0275syntheticHostProperty("@flyInOut",se.state),o.\u0275\u0275classMap(se.toastClasses),o.\u0275\u0275styleProp("display",se.displayStyle))},attrs:C,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alertdialog","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alertdialog","aria-live","polite",3,"innerHTML"],["role","alertdialog","aria-live","polite"],[1,"toast-progress"]],template:function($,se){1&$&&(o.\u0275\u0275template(0,w,3,0,"button",0),o.\u0275\u0275template(1,g,3,5,"div",1),o.\u0275\u0275template(2,E,1,3,"div",2),o.\u0275\u0275template(3,M,2,4,"div",3),o.\u0275\u0275template(4,S,2,2,"div",4)),2&$&&(o.\u0275\u0275property("ngIf",se.options.closeButton),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",se.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",se.message&&se.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",se.message&&!se.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",se.options.progressBar))},directives:[a.NgIf],encapsulation:2,data:{animation:[(0,l.X$)("flyInOut",[(0,l.SB)("inactive",(0,l.oB)({opacity:0})),(0,l.SB)("active",(0,l.oB)({opacity:1})),(0,l.SB)("removed",(0,l.oB)({opacity:0})),(0,l.eR)("inactive => active",(0,l.jt)("{{ easeTime }}ms {{ easing }}")),(0,l.eR)("active => removed",(0,l.jt)("{{ easeTime }}ms {{ easing }}"))])]}}),Xe})();const et=Object.assign(Object.assign({},Me),{toastComponent:Ue});let pt=(()=>{class Xe{static forRoot($={}){return{ngModule:Xe,providers:[{provide:Re,useValue:{default:et,config:$}}]}}}return Xe.\u0275fac=function($){return new($||Xe)},Xe.\u0275mod=o.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=o.\u0275\u0275defineInjector({imports:[[a.CommonModule]]}),Xe})(),je=(()=>{class Xe{static forRoot($={}){return{ngModule:pt,providers:[{provide:Re,useValue:{default:Me,config:$}}]}}}return Xe.\u0275fac=function($){return new($||Xe)},Xe.\u0275mod=o.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=o.\u0275\u0275defineInjector({imports:[[a.CommonModule]]}),Xe})(),tt=(()=>{class Xe{constructor($,se,H){this.toastrService=$,this.toastPackage=se,this.appRef=H,this.width=-1,this.toastClasses="",this.state="inactive",this.message=se.message,this.title=se.title,this.options=se.config,this.originalTimeout=se.config.timeOut,this.toastClasses=`${se.toastType} ${se.config.toastClass}`,this.sub=se.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=se.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=se.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=se.toastRef.countDuplicate().subscribe(le=>{this.duplicatesCount=le})}get displayStyle(){if("inactive"===this.state)return"none"}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state="active",!(!0===this.options.disableTimeOut||"timeOut"===this.options.disableTimeOut)&&this.options.timeOut&&(this.timeout=setTimeout(()=>{this.remove()},this.options.timeOut),this.hideTime=(new Date).getTime()+this.options.timeOut,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))),this.options.onActivateTick&&this.appRef.tick()}updateProgress(){if(0===this.width||100===this.width||!this.options.timeOut)return;const $=(new Date).getTime();this.width=(this.hideTime-$)/this.options.timeOut*100,"increasing"===this.options.progressAnimation&&(this.width=100-this.width),this.width<=0&&(this.width=0),this.width>=100&&(this.width=100)}resetTimeout(){clearTimeout(this.timeout),clearInterval(this.intervalId),this.state="active",this.options.timeOut=this.originalTimeout,this.timeout=setTimeout(()=>this.remove(),this.originalTimeout),this.hideTime=(new Date).getTime()+(this.originalTimeout||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10))}remove(){"removed"!==this.state&&(clearTimeout(this.timeout),this.state="removed",this.timeout=setTimeout(()=>this.toastrService.remove(this.toastPackage.toastId)))}tapToast(){"removed"!==this.state&&(this.toastPackage.triggerTap(),this.options.tapToDismiss&&this.remove())}stickAround(){"removed"!==this.state&&(clearTimeout(this.timeout),this.options.timeOut=0,this.hideTime=0,clearInterval(this.intervalId),this.width=0)}delayedHideToast(){!0===this.options.disableTimeOut||"extendedTimeOut"===this.options.disableTimeOut||0===this.options.extendedTimeOut||"removed"===this.state||(this.timeout=setTimeout(()=>this.remove(),this.options.extendedTimeOut),this.options.timeOut=this.options.extendedTimeOut,this.hideTime=(new Date).getTime()+(this.options.timeOut||0),this.width=-1,this.options.progressBar&&(this.intervalId=setInterval(()=>this.updateProgress(),10)))}}return Xe.\u0275fac=function($){return new($||Xe)(o.\u0275\u0275directiveInject(Ce),o.\u0275\u0275directiveInject(Ze),o.\u0275\u0275directiveInject(o.ApplicationRef))},Xe.\u0275cmp=o.\u0275\u0275defineComponent({type:Xe,selectors:[["","toast-component",""]],hostVars:4,hostBindings:function($,se){1&$&&o.\u0275\u0275listener("click",function(){return se.tapToast()})("mouseenter",function(){return se.stickAround()})("mouseleave",function(){return se.delayedHideToast()}),2&$&&(o.\u0275\u0275classMap(se.toastClasses),o.\u0275\u0275styleProp("display",se.displayStyle))},attrs:C,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert","aria-live","polite",3,"class","innerHTML",4,"ngIf"],["role","alert","aria-live","polite",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert","aria-live","polite",3,"innerHTML"],["role","alert","aria-live","polite"],[1,"toast-progress"]],template:function($,se){1&$&&(o.\u0275\u0275template(0,P,3,0,"button",0),o.\u0275\u0275template(1,j,3,5,"div",1),o.\u0275\u0275template(2,ae,1,3,"div",2),o.\u0275\u0275template(3,he,2,4,"div",3),o.\u0275\u0275template(4,ye,2,2,"div",4)),2&$&&(o.\u0275\u0275property("ngIf",se.options.closeButton),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",se.title),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",se.message&&se.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",se.message&&!se.options.enableHtml),o.\u0275\u0275advance(1),o.\u0275\u0275property("ngIf",se.options.progressBar))},directives:[a.NgIf],encapsulation:2}),Xe})();const ut=Object.assign(Object.assign({},Me),{toastComponent:tt});let It=(()=>{class Xe{static forRoot($={}){return{ngModule:Xe,providers:[{provide:Re,useValue:{default:ut,config:$}}]}}}return Xe.\u0275fac=function($){return new($||Xe)},Xe.\u0275mod=o.\u0275\u0275defineNgModule({type:Xe}),Xe.\u0275inj=o.\u0275\u0275defineInjector({imports:[[a.CommonModule]]}),Xe})()},4813:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{ArgumentOutOfRangeError:()=>ce.W,AsyncSubject:()=>L,BehaviorSubject:()=>S.X,ConnectableObservable:()=>l.c,EMPTY:()=>ze.E,EmptyError:()=>Ce,GroupedObservable:()=>D,NEVER:()=>Be,Notification:()=>Ne.P,NotificationKind:()=>Ne.W,ObjectUnsubscribedError:()=>Ue.N,Observable:()=>o.y,ReplaySubject:()=>P.t,Scheduler:()=>Re.b,Subject:()=>M.xQ,Subscriber:()=>Pe.L,Subscription:()=>h.w,TimeoutError:()=>je,UnsubscriptionError:()=>et.B,VirtualAction:()=>Me,VirtualTimeScheduler:()=>Ze,animationFrame:()=>ye.r,animationFrameScheduler:()=>ye.Z,asap:()=>j.e,asapScheduler:()=>j.E,async:()=>ae.P,asyncScheduler:()=>ae.z,bindCallback:()=>dt,bindNodeCallback:()=>le,combineLatest:()=>rt.aj,concat:()=>wt.z,config:()=>yn.v,defer:()=>Je.P,empty:()=>ze.c,forkJoin:()=>He.D,from:()=>q.D,fromEvent:()=>Ge.R,fromEventPattern:()=>vt,generate:()=>Ye,identity:()=>ge.y,iif:()=>F,interval:()=>de,isObservable:()=>X.b,merge:()=>re.T,never:()=>gt,noop:()=>te.Z,observable:()=>E.L,of:()=>Et.of,onErrorResumeNext:()=>xt,pairs:()=>Nt,partition:()=>jt,pipe:()=>Ct.z,queue:()=>he.c,queueScheduler:()=>he.N,race:()=>B,range:()=>De,scheduled:()=>wn.x,throwError:()=>Q._,timer:()=>J.H,using:()=>N,zip:()=>_t});var o=d(9897),l=d(2441),h=d(826);class D extends o.y{constructor(ke,Se,nt){super(),this.key=ke,this.groupSubject=Se,this.refCountSubscription=nt}_subscribe(ke){const Se=new h.w,{refCountSubscription:nt,groupSubject:ht}=this;return nt&&!nt.closed&&Se.add(new g(nt)),Se.add(ht.subscribe(ke)),Se}}class g extends h.w{constructor(ke){super(),this.parent=ke,ke.count++}unsubscribe(){const ke=this.parent;!ke.closed&&!this.closed&&(super.unsubscribe(),ke.count-=1,0===ke.count&&ke.attemptedToUnsubscribe&&ke.unsubscribe())}}var E=d(6554),M=d(9765),S=d(6215),P=d(4448);class L extends M.xQ{constructor(){super(...arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}_subscribe(ke){return this.hasError?(ke.error(this.thrownError),h.w.EMPTY):this.hasCompleted&&this.hasNext?(ke.next(this.value),ke.complete(),h.w.EMPTY):super._subscribe(ke)}next(ke){this.hasCompleted||(this.value=ke,this.hasNext=!0)}error(ke){this.hasCompleted||super.error(ke)}complete(){this.hasCompleted=!0,this.hasNext&&super.next(this.value),super.complete()}}var j=d(4581),ae=d(3637),he=d(7771),ye=d(1927),$e=d(6465),at=d(4548);let Ze=(()=>{class mt extends at.v{constructor(Se=Me,nt=Number.POSITIVE_INFINITY){super(Se,()=>this.frame),this.maxFrames=nt,this.frame=0,this.index=-1}flush(){const{actions:Se,maxFrames:nt}=this;let ht,Rt;for(;(Rt=Se[0])&&Rt.delay<=nt&&(Se.shift(),this.frame=Rt.delay,!(ht=Rt.execute(Rt.state,Rt.delay))););if(ht){for(;Rt=Se.shift();)Rt.unsubscribe();throw ht}}}return mt.frameTimeFactor=10,mt})();class Me extends $e.o{constructor(ke,Se,nt=(ke.index+=1)){super(ke,Se),this.scheduler=ke,this.work=Se,this.index=nt,this.active=!0,this.index=ke.index=nt}schedule(ke,Se=0){if(!this.id)return super.schedule(ke,Se);this.active=!1;const nt=new Me(this.scheduler,this.work);return this.add(nt),nt.schedule(ke,Se)}requestAsyncId(ke,Se,nt=0){this.delay=ke.frame+nt;const{actions:ht}=ke;return ht.push(this),ht.sort(Me.sortActions),!0}recycleAsyncId(ke,Se,nt=0){}_execute(ke,Se){if(!0===this.active)return super._execute(ke,Se)}static sortActions(ke,Se){return ke.delay===Se.delay?ke.index===Se.index?0:ke.index>Se.index?1:-1:ke.delay>Se.delay?1:-1}}var Re=d(2217),Pe=d(7393),Ne=d(3098),Ct=d(4022),te=d(8640),ge=d(4487),X=d(5639),ce=d(7108);const Ce=(()=>{function mt(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return mt.prototype=Object.create(Error.prototype),mt})();var Ue=d(7971),et=d(7744);const je=(()=>{function mt(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return mt.prototype=Object.create(Error.prototype),mt})();var tt=d(8002),ut=d(3179),It=d(9796),Xe=d(4869);function dt(mt,ke,Se){if(ke){if(!(0,Xe.K)(ke))return(...nt)=>dt(mt,Se)(...nt).pipe((0,tt.U)(ht=>(0,It.k)(ht)?ke(...ht):ke(ht)));Se=ke}return function(...nt){const ht=this;let Rt;const ee={context:ht,subject:Rt,callbackFunc:mt,scheduler:Se};return new o.y(be=>{if(Se)return Se.schedule($,0,{args:nt,subscriber:be,params:ee});if(!Rt){Rt=new L;const Y=(...ve)=>{Rt.next(ve.length<=1?ve[0]:ve),Rt.complete()};try{mt.apply(ht,[...nt,Y])}catch(ve){(0,ut._)(Rt)?Rt.error(ve):console.warn(ve)}}return Rt.subscribe(be)})}}function $(mt){const{args:Se,subscriber:nt,params:ht}=mt,{callbackFunc:Rt,context:ee,scheduler:be}=ht;let{subject:Y}=ht;if(!Y){Y=ht.subject=new L;const ve=(...Ke)=>{this.add(be.schedule(se,0,{value:Ke.length<=1?Ke[0]:Ke,subject:Y}))};try{Rt.apply(ee,[...Se,ve])}catch(Ke){Y.error(Ke)}}this.add(Y.subscribe(nt))}function se(mt){const{value:ke,subject:Se}=mt;Se.next(ke),Se.complete()}function le(mt,ke,Se){if(ke){if(!(0,Xe.K)(ke))return(...nt)=>le(mt,Se)(...nt).pipe((0,tt.U)(ht=>(0,It.k)(ht)?ke(...ht):ke(ht)));Se=ke}return function(...nt){const ht={subject:void 0,args:nt,callbackFunc:mt,scheduler:Se,context:this};return new o.y(Rt=>{const{context:ee}=ht;let{subject:be}=ht;if(Se)return Se.schedule(ne,0,{params:ht,subscriber:Rt,context:ee});if(!be){be=ht.subject=new L;const Y=(...ve)=>{const Ke=ve.shift();Ke?be.error(Ke):(be.next(ve.length<=1?ve[0]:ve),be.complete())};try{mt.apply(ee,[...nt,Y])}catch(ve){(0,ut._)(be)?be.error(ve):console.warn(ve)}}return be.subscribe(Rt)})}}function ne(mt){const{params:ke,subscriber:Se,context:nt}=mt,{callbackFunc:ht,args:Rt,scheduler:ee}=ke;let be=ke.subject;if(!be){be=ke.subject=new L;const Y=(...ve)=>{const Ke=ve.shift();this.add(Ke?ee.schedule(Oe,0,{err:Ke,subject:be}):ee.schedule(fe,0,{value:ve.length<=1?ve[0]:ve,subject:be}))};try{ht.apply(nt,[...Rt,Y])}catch(ve){this.add(ee.schedule(Oe,0,{err:ve,subject:be}))}}this.add(be.subscribe(Se))}function fe(mt){const{value:ke,subject:Se}=mt;Se.next(ke),Se.complete()}function Oe(mt){const{err:ke,subject:Se}=mt;Se.error(ke)}var rt=d(9112),wt=d(8071),Je=d(1439),ze=d(9193),He=d(5758),q=d(9412),Ge=d(2759),ft=d(9105);function vt(mt,ke,Se){return Se?vt(mt,ke).pipe((0,tt.U)(nt=>(0,It.k)(nt)?Se(...nt):Se(nt))):new o.y(nt=>{const ht=(...ee)=>nt.next(1===ee.length?ee[0]:ee);let Rt;try{Rt=mt(ht)}catch(ee){return void nt.error(ee)}if((0,ft.m)(ke))return()=>ke(ht,Rt)})}function Ye(mt,ke,Se,nt,ht){let Rt,ee;return 1==arguments.length?(ee=mt.initialState,ke=mt.condition,Se=mt.iterate,Rt=mt.resultSelector||ge.y,ht=mt.scheduler):void 0===nt||(0,Xe.K)(nt)?(ee=mt,Rt=ge.y,ht=nt):(ee=mt,Rt=nt),new o.y(be=>{let Y=ee;if(ht)return ht.schedule(x,0,{subscriber:be,iterate:Se,condition:ke,resultSelector:Rt,state:Y});for(;;){if(ke){let Ke;try{Ke=ke(Y)}catch(yt){return void be.error(yt)}if(!Ke){be.complete();break}}let ve;try{ve=Rt(Y)}catch(Ke){return void be.error(Ke)}if(be.next(ve),be.closed)break;try{Y=Se(Y)}catch(Ke){return void be.error(Ke)}}})}function x(mt){const{subscriber:ke,condition:Se}=mt;if(ke.closed)return;if(mt.needIterate)try{mt.state=mt.iterate(mt.state)}catch(ht){return void ke.error(ht)}else mt.needIterate=!0;if(Se){let ht;try{ht=Se(mt.state)}catch(Rt){return void ke.error(Rt)}if(!ht)return void ke.complete();if(ke.closed)return}let nt;try{nt=mt.resultSelector(mt.state)}catch(ht){return void ke.error(ht)}return ke.closed||(ke.next(nt),ke.closed)?void 0:this.schedule(mt)}function F(mt,ke=ze.E,Se=ze.E){return(0,Je.P)(()=>mt()?ke:Se)}var R=d(6561);function de(mt=0,ke=ae.P){return(!(0,R.k)(mt)||mt<0)&&(mt=0),(!ke||"function"!=typeof ke.schedule)&&(ke=ae.P),new o.y(Se=>(Se.add(ke.schedule(z,mt,{subscriber:Se,counter:0,period:mt})),Se))}function z(mt){const{subscriber:ke,counter:Se,period:nt}=mt;ke.next(Se),this.schedule({subscriber:ke,counter:Se+1,period:nt},nt)}var re=d(6682);const Be=new o.y(te.Z);function gt(){return Be}var Et=d(5917);function xt(...mt){if(0===mt.length)return ze.E;const[ke,...Se]=mt;return 1===mt.length&&(0,It.k)(ke)?xt(...ke):new o.y(nt=>{const ht=()=>nt.add(xt(...Se).subscribe(nt));return(0,q.D)(ke).subscribe({next(Rt){nt.next(Rt)},error:ht,complete:ht})})}function Nt(mt,ke){return new o.y(ke?Se=>{const nt=Object.keys(mt),ht=new h.w;return ht.add(ke.schedule(Ut,0,{keys:nt,index:0,subscriber:Se,subscription:ht,obj:mt})),ht}:Se=>{const nt=Object.keys(mt);for(let ht=0;ht<nt.length&&!Se.closed;ht++){const Rt=nt[ht];mt.hasOwnProperty(Rt)&&Se.next([Rt,mt[Rt]])}Se.complete()})}function Ut(mt){const{keys:ke,index:Se,subscriber:nt,subscription:ht,obj:Rt}=mt;if(!nt.closed)if(Se<ke.length){const ee=ke[Se];nt.next([ee,Rt[ee]]),ht.add(this.schedule({keys:ke,index:Se+1,subscriber:nt,subscription:ht,obj:Rt}))}else nt.complete()}function Qt(mt,ke){function Se(){return!Se.pred.apply(Se.thisArg,arguments)}return Se.pred=mt,Se.thisArg=ke,Se}var At=d(7444),Lt=d(5435);function jt(mt,ke,Se){return[(0,Lt.h)(ke,Se)(new o.y((0,At.s)(mt))),(0,Lt.h)(Qt(ke,Se))(new o.y((0,At.s)(mt)))]}var _n=d(6693),qe=d(5866),Pt=d(509);function B(...mt){if(1===mt.length){if(!(0,It.k)(mt[0]))return mt[0];mt=mt[0]}return(0,_n.n)(mt,void 0).lift(new K)}class K{call(ke,Se){return Se.subscribe(new W(ke))}}class W extends qe.L{constructor(ke){super(ke),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(ke){this.observables.push(ke)}_complete(){const ke=this.observables,Se=ke.length;if(0===Se)this.destination.complete();else{for(let nt=0;nt<Se&&!this.hasFirst;nt++){const Rt=(0,Pt.D)(this,ke[nt],void 0,nt);this.subscriptions&&this.subscriptions.push(Rt),this.add(Rt)}this.observables=null}}notifyNext(ke,Se,nt){if(!this.hasFirst){this.hasFirst=!0;for(let ht=0;ht<this.subscriptions.length;ht++)if(ht!==nt){let Rt=this.subscriptions[ht];Rt.unsubscribe(),this.remove(Rt)}this.subscriptions=null}this.destination.next(Se)}}function De(mt=0,ke,Se){return new o.y(nt=>{void 0===ke&&(ke=mt,mt=0);let ht=0,Rt=mt;if(Se)return Se.schedule(Ee,0,{index:ht,count:ke,start:mt,subscriber:nt});for(;;){if(ht++>=ke){nt.complete();break}if(nt.next(Rt++),nt.closed)break}})}function Ee(mt){const{start:ke,index:Se,count:nt,subscriber:ht}=mt;Se>=nt?ht.complete():(ht.next(ke),!ht.closed&&(mt.index=Se+1,mt.start=ke+1,this.schedule(mt)))}var Q=d(205),J=d(6797);function N(mt,ke){return new o.y(Se=>{let nt,ht;try{nt=mt()}catch(be){return void Se.error(be)}try{ht=ke(nt)}catch(be){return void Se.error(be)}const ee=(ht?(0,q.D)(ht):ze.E).subscribe(Se);return()=>{ee.unsubscribe(),nt&&nt.unsubscribe()}})}var oe=d(377),st=d(5345);function _t(...mt){const ke=mt[mt.length-1];return"function"==typeof ke&&mt.pop(),(0,_n.n)(mt,void 0).lift(new Ht(ke))}class Ht{constructor(ke){this.resultSelector=ke}call(ke,Se){return Se.subscribe(new dn(ke,this.resultSelector))}}class dn extends Pe.L{constructor(ke,Se,nt=Object.create(null)){super(ke),this.resultSelector=Se,this.iterators=[],this.active=0,this.resultSelector="function"==typeof Se?Se:void 0}_next(ke){const Se=this.iterators;(0,It.k)(ke)?Se.push(new an(ke)):Se.push("function"==typeof ke[oe.hZ]?new cn(ke[oe.hZ]()):new un(this.destination,this,ke))}_complete(){const ke=this.iterators,Se=ke.length;if(this.unsubscribe(),0!==Se){this.active=Se;for(let nt=0;nt<Se;nt++){let ht=ke[nt];ht.stillUnsubscribed?this.destination.add(ht.subscribe()):this.active--}}else this.destination.complete()}notifyInactive(){this.active--,0===this.active&&this.destination.complete()}checkIterators(){const ke=this.iterators,Se=ke.length,nt=this.destination;for(let ee=0;ee<Se;ee++){let be=ke[ee];if("function"==typeof be.hasValue&&!be.hasValue())return}let ht=!1;const Rt=[];for(let ee=0;ee<Se;ee++){let be=ke[ee],Y=be.next();if(be.hasCompleted()&&(ht=!0),Y.done)return void nt.complete();Rt.push(Y.value)}this.resultSelector?this._tryresultSelector(Rt):nt.next(Rt),ht&&nt.complete()}_tryresultSelector(ke){let Se;try{Se=this.resultSelector.apply(this,ke)}catch(nt){return void this.destination.error(nt)}this.destination.next(Se)}}class cn{constructor(ke){this.iterator=ke,this.nextResult=ke.next()}hasValue(){return!0}next(){const ke=this.nextResult;return this.nextResult=this.iterator.next(),ke}hasCompleted(){const ke=this.nextResult;return Boolean(ke&&ke.done)}}class an{constructor(ke){this.array=ke,this.index=0,this.length=0,this.length=ke.length}[oe.hZ](){return this}next(ke){const Se=this.index++;return Se<this.length?{value:this.array[Se],done:!1}:{value:null,done:!0}}hasValue(){return this.array.length>this.index}hasCompleted(){return this.array.length===this.index}}class un extends st.Ds{constructor(ke,Se,nt){super(ke),this.parent=Se,this.observable=nt,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[oe.hZ](){return this}next(){const ke=this.buffer;return 0===ke.length&&this.isComplete?{value:null,done:!0}:{value:ke.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(ke){this.buffer.push(ke),this.parent.checkIterators()}subscribe(){return(0,st.ft)(this.observable,new st.IY(this))}}var wn=d(1115),yn=d(2494)},6215:(Le,T,d)=>{"use strict";d.d(T,{X:()=>h});var o=d(9765),l=d(7971);class h extends o.xQ{constructor(a){super(),this._value=a}get value(){return this.getValue()}_subscribe(a){const C=super._subscribe(a);return C&&!C.closed&&a.next(this._value),C}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new l.N;return this._value}next(a){super.next(this._value=a)}}},3098:(Le,T,d)=>{"use strict";d.d(T,{W:()=>_,P:()=>a});var o=d(9193),l=d(5917),h=d(205),_=(()=>{return(C=_||(_={})).NEXT="N",C.ERROR="E",C.COMPLETE="C",_;var C})();class a{constructor(w,D,g){this.kind=w,this.value=D,this.error=g,this.hasValue="N"===w}observe(w){switch(this.kind){case"N":return w.next&&w.next(this.value);case"E":return w.error&&w.error(this.error);case"C":return w.complete&&w.complete()}}do(w,D,g){switch(this.kind){case"N":return w&&w(this.value);case"E":return D&&D(this.error);case"C":return g&&g()}}accept(w,D,g){return w&&"function"==typeof w.next?this.observe(w):this.do(w,D,g)}toObservable(){switch(this.kind){case"N":return(0,l.of)(this.value);case"E":return(0,h._)(this.error);case"C":return(0,o.c)()}throw new Error("unexpected notification kind value")}static createNext(w){return void 0!==w?new a("N",w):a.undefinedValueNotification}static createError(w){return new a("E",void 0,w)}static createComplete(){return a.completeNotification}}a.completeNotification=new a("C"),a.undefinedValueNotification=new a("N",void 0)},9897:(Le,T,d)=>{"use strict";d.d(T,{y:()=>g});var o=d(3179),l=d(7393),h=d(9181),_=d(6490),C=d(6554),w=d(4022),D=d(2494);let g=(()=>{class M{constructor(P){this._isScalar=!1,P&&(this._subscribe=P)}lift(P){const L=new M;return L.source=this,L.operator=P,L}subscribe(P,L,j){const{operator:ae}=this,he=function(M,S,P){if(M){if(M instanceof l.L)return M;if(M[h.b])return M[h.b]()}return M||S||P?new l.L(M,S,P):new l.L(_.c)}(P,L,j);if(he.add(ae?ae.call(he,this.source):this.source||D.v.useDeprecatedSynchronousErrorHandling&&!he.syncErrorThrowable?this._subscribe(he):this._trySubscribe(he)),D.v.useDeprecatedSynchronousErrorHandling&&he.syncErrorThrowable&&(he.syncErrorThrowable=!1,he.syncErrorThrown))throw he.syncErrorValue;return he}_trySubscribe(P){try{return this._subscribe(P)}catch(L){D.v.useDeprecatedSynchronousErrorHandling&&(P.syncErrorThrown=!0,P.syncErrorValue=L),(0,o._)(P)?P.error(L):console.warn(L)}}forEach(P,L){return new(L=E(L))((j,ae)=>{let he;he=this.subscribe(ye=>{try{P(ye)}catch($e){ae($e),he&&he.unsubscribe()}},ae,j)})}_subscribe(P){const{source:L}=this;return L&&L.subscribe(P)}[C.L](){return this}pipe(...P){return 0===P.length?this:(0,w.U)(P)(this)}toPromise(P){return new(P=E(P))((L,j)=>{let ae;this.subscribe(he=>ae=he,he=>j(he),()=>L(ae))})}}return M.create=S=>new M(S),M})();function E(M){if(M||(M=D.v.Promise||Promise),!M)throw new Error("no Promise impl found");return M}},6490:(Le,T,d)=>{"use strict";d.d(T,{c:()=>h});var o=d(2494),l=d(4449);const h={closed:!0,next(_){},error(_){if(o.v.useDeprecatedSynchronousErrorHandling)throw _;(0,l.z)(_)},complete(){}}},5866:(Le,T,d)=>{"use strict";d.d(T,{L:()=>l});var o=d(7393);class l extends o.L{notifyNext(_,a,C,w,D){this.destination.next(a)}notifyError(_,a){this.destination.error(_)}notifyComplete(_){this.destination.complete()}}},4448:(Le,T,d)=>{"use strict";d.d(T,{t:()=>S});var o=d(9765),l=d(7771),h=d(826),_=d(7393),a=d(3098);class D extends _.L{constructor(j,ae,he=0){super(j),this.scheduler=ae,this.delay=he}static dispatch(j){const{notification:ae,destination:he}=j;ae.observe(he),this.unsubscribe()}scheduleMessage(j){this.destination.add(this.scheduler.schedule(D.dispatch,this.delay,new g(j,this.destination)))}_next(j){this.scheduleMessage(a.P.createNext(j))}_error(j){this.scheduleMessage(a.P.createError(j)),this.unsubscribe()}_complete(){this.scheduleMessage(a.P.createComplete()),this.unsubscribe()}}class g{constructor(j,ae){this.notification=j,this.destination=ae}}var E=d(7971),M=d(8858);class S extends o.xQ{constructor(j=Number.POSITIVE_INFINITY,ae=Number.POSITIVE_INFINITY,he){super(),this.scheduler=he,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=j<1?1:j,this._windowTime=ae<1?1:ae,ae===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(j){if(!this.isStopped){const ae=this._events;ae.push(j),ae.length>this._bufferSize&&ae.shift()}super.next(j)}nextTimeWindow(j){this.isStopped||(this._events.push(new P(this._getNow(),j)),this._trimBufferThenGetEvents()),super.next(j)}_subscribe(j){const ae=this._infiniteTimeWindow,he=ae?this._events:this._trimBufferThenGetEvents(),ye=this.scheduler,$e=he.length;let at;if(this.closed)throw new E.N;if(this.isStopped||this.hasError?at=h.w.EMPTY:(this.observers.push(j),at=new M.W(this,j)),ye&&j.add(j=new D(j,ye)),ae)for(let Ze=0;Ze<$e&&!j.closed;Ze++)j.next(he[Ze]);else for(let Ze=0;Ze<$e&&!j.closed;Ze++)j.next(he[Ze].value);return this.hasError?j.error(this.thrownError):this.isStopped&&j.complete(),at}_getNow(){return(this.scheduler||l.c).now()}_trimBufferThenGetEvents(){const j=this._getNow(),ae=this._bufferSize,he=this._windowTime,ye=this._events,$e=ye.length;let at=0;for(;at<$e&&!(j-ye[at].time<he);)at++;return $e>ae&&(at=Math.max(at,$e-ae)),at>0&&ye.splice(0,at),ye}}class P{constructor(j,ae){this.time=j,this.value=ae}}},2217:(Le,T,d)=>{"use strict";d.d(T,{b:()=>o});let o=(()=>{class l{constructor(_,a=l.now){this.SchedulerAction=_,this.now=a}schedule(_,a=0,C){return new this.SchedulerAction(this,_).schedule(C,a)}}return l.now=()=>Date.now(),l})()},9765:(Le,T,d)=>{"use strict";d.d(T,{Yc:()=>w,xQ:()=>D});var o=d(9897),l=d(7393),h=d(826),_=d(7971),a=d(8858),C=d(9181);class w extends l.L{constructor(M){super(M),this.destination=M}}let D=(()=>{class E extends o.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[C.b](){return new w(this)}lift(S){const P=new g(this,this);return P.operator=S,P}next(S){if(this.closed)throw new _.N;if(!this.isStopped){const{observers:P}=this,L=P.length,j=P.slice();for(let ae=0;ae<L;ae++)j[ae].next(S)}}error(S){if(this.closed)throw new _.N;this.hasError=!0,this.thrownError=S,this.isStopped=!0;const{observers:P}=this,L=P.length,j=P.slice();for(let ae=0;ae<L;ae++)j[ae].error(S);this.observers.length=0}complete(){if(this.closed)throw new _.N;this.isStopped=!0;const{observers:S}=this,P=S.length,L=S.slice();for(let j=0;j<P;j++)L[j].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(S){if(this.closed)throw new _.N;return super._trySubscribe(S)}_subscribe(S){if(this.closed)throw new _.N;return this.hasError?(S.error(this.thrownError),h.w.EMPTY):this.isStopped?(S.complete(),h.w.EMPTY):(this.observers.push(S),new a.W(this,S))}asObservable(){const S=new o.y;return S.source=this,S}}return E.create=(M,S)=>new g(M,S),E})();class g extends D{constructor(M,S){super(),this.destination=M,this.source=S}next(M){const{destination:S}=this;S&&S.next&&S.next(M)}error(M){const{destination:S}=this;S&&S.error&&this.destination.error(M)}complete(){const{destination:M}=this;M&&M.complete&&this.destination.complete()}_subscribe(M){const{source:S}=this;return S?this.source.subscribe(M):h.w.EMPTY}}},8858:(Le,T,d)=>{"use strict";d.d(T,{W:()=>l});var o=d(826);class l extends o.w{constructor(_,a){super(),this.subject=_,this.subscriber=a,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const _=this.subject,a=_.observers;if(this.subject=null,!a||0===a.length||_.isStopped||_.closed)return;const C=a.indexOf(this.subscriber);-1!==C&&a.splice(C,1)}}},7393:(Le,T,d)=>{"use strict";d.d(T,{L:()=>w});var o=d(9105),l=d(6490),h=d(826),_=d(9181),a=d(2494),C=d(4449);class w extends h.w{constructor(E,M,S){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l.c;break;case 1:if(!E){this.destination=l.c;break}if("object"==typeof E){E instanceof w?(this.syncErrorThrowable=E.syncErrorThrowable,this.destination=E,E.add(this)):(this.syncErrorThrowable=!0,this.destination=new D(this,E));break}default:this.syncErrorThrowable=!0,this.destination=new D(this,E,M,S)}}[_.b](){return this}static create(E,M,S){const P=new w(E,M,S);return P.syncErrorThrowable=!1,P}next(E){this.isStopped||this._next(E)}error(E){this.isStopped||(this.isStopped=!0,this._error(E))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(E){this.destination.next(E)}_error(E){this.destination.error(E),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:E}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=E,this}}class D extends w{constructor(E,M,S,P){super(),this._parentSubscriber=E;let L,j=this;(0,o.m)(M)?L=M:M&&(L=M.next,S=M.error,P=M.complete,M!==l.c&&(j=Object.create(M),(0,o.m)(j.unsubscribe)&&this.add(j.unsubscribe.bind(j)),j.unsubscribe=this.unsubscribe.bind(this))),this._context=j,this._next=L,this._error=S,this._complete=P}next(E){if(!this.isStopped&&this._next){const{_parentSubscriber:M}=this;a.v.useDeprecatedSynchronousErrorHandling&&M.syncErrorThrowable?this.__tryOrSetError(M,this._next,E)&&this.unsubscribe():this.__tryOrUnsub(this._next,E)}}error(E){if(!this.isStopped){const{_parentSubscriber:M}=this,{useDeprecatedSynchronousErrorHandling:S}=a.v;if(this._error)S&&M.syncErrorThrowable?(this.__tryOrSetError(M,this._error,E),this.unsubscribe()):(this.__tryOrUnsub(this._error,E),this.unsubscribe());else if(M.syncErrorThrowable)S?(M.syncErrorValue=E,M.syncErrorThrown=!0):(0,C.z)(E),this.unsubscribe();else{if(this.unsubscribe(),S)throw E;(0,C.z)(E)}}}complete(){if(!this.isStopped){const{_parentSubscriber:E}=this;if(this._complete){const M=()=>this._complete.call(this._context);a.v.useDeprecatedSynchronousErrorHandling&&E.syncErrorThrowable?(this.__tryOrSetError(E,M),this.unsubscribe()):(this.__tryOrUnsub(M),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(E,M){try{E.call(this._context,M)}catch(S){if(this.unsubscribe(),a.v.useDeprecatedSynchronousErrorHandling)throw S;(0,C.z)(S)}}__tryOrSetError(E,M,S){if(!a.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{M.call(this._context,S)}catch(P){return a.v.useDeprecatedSynchronousErrorHandling?(E.syncErrorValue=P,E.syncErrorThrown=!0,!0):((0,C.z)(P),!0)}return!1}_unsubscribe(){const{_parentSubscriber:E}=this;this._context=null,this._parentSubscriber=null,E.unsubscribe()}}},826:(Le,T,d)=>{"use strict";d.d(T,{w:()=>a});var w,o=d(9796),l=d(1555),h=d(9105),_=d(7744);class a{constructor(D){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,D&&(this._ctorUnsubscribe=!0,this._unsubscribe=D)}unsubscribe(){let D;if(this.closed)return;let{_parentOrParents:g,_ctorUnsubscribe:E,_unsubscribe:M,_subscriptions:S}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,g instanceof a)g.remove(this);else if(null!==g)for(let P=0;P<g.length;++P)g[P].remove(this);if((0,h.m)(M)){E&&(this._unsubscribe=void 0);try{M.call(this)}catch(P){D=P instanceof _.B?C(P.errors):[P]}}if((0,o.k)(S)){let P=-1,L=S.length;for(;++P<L;){const j=S[P];if((0,l.K)(j))try{j.unsubscribe()}catch(ae){D=D||[],ae instanceof _.B?D=D.concat(C(ae.errors)):D.push(ae)}}}if(D)throw new _.B(D)}add(D){let g=D;if(!D)return a.EMPTY;switch(typeof D){case"function":g=new a(D);case"object":if(g===this||g.closed||"function"!=typeof g.unsubscribe)return g;if(this.closed)return g.unsubscribe(),g;if(!(g instanceof a)){const S=g;g=new a,g._subscriptions=[S]}break;default:throw new Error("unrecognized teardown "+D+" added to Subscription.")}let{_parentOrParents:E}=g;if(null===E)g._parentOrParents=this;else if(E instanceof a){if(E===this)return g;g._parentOrParents=[E,this]}else{if(-1!==E.indexOf(this))return g;E.push(this)}const M=this._subscriptions;return null===M?this._subscriptions=[g]:M.push(g),g}remove(D){const g=this._subscriptions;if(g){const E=g.indexOf(D);-1!==E&&g.splice(E,1)}}}function C(w){return w.reduce((D,g)=>D.concat(g instanceof _.B?g.errors:g),[])}a.EMPTY=((w=new a).closed=!0,w)},2494:(Le,T,d)=>{"use strict";d.d(T,{v:()=>l});let o=!1;const l={Promise:void 0,set useDeprecatedSynchronousErrorHandling(h){if(h){const _=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+_.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=h},get useDeprecatedSynchronousErrorHandling(){return o}}},5345:(Le,T,d)=>{"use strict";d.d(T,{IY:()=>_,Ds:()=>C,ft:()=>D});var o=d(7393),l=d(9897),h=d(7444);class _ extends o.L{constructor(E){super(),this.parent=E}_next(E){this.parent.notifyNext(E)}_error(E){this.parent.notifyError(E),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class C extends o.L{notifyNext(E){this.destination.next(E)}notifyError(E){this.destination.error(E)}notifyComplete(){this.destination.complete()}}function D(g,E){if(E.closed)return;if(g instanceof l.y)return g.subscribe(E);let M;try{M=(0,h.s)(g)(E)}catch(S){E.error(S)}return M}},2441:(Le,T,d)=>{"use strict";d.d(T,{c:()=>a,N:()=>C});var o=d(9765),l=d(9897),h=d(826),_=d(1307);class a extends l.y{constructor(M,S){super(),this.source=M,this.subjectFactory=S,this._refCount=0,this._isComplete=!1}_subscribe(M){return this.getSubject().subscribe(M)}getSubject(){const M=this._subject;return(!M||M.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let M=this._connection;return M||(this._isComplete=!1,M=this._connection=new h.w,M.add(this.source.subscribe(new w(this.getSubject(),this))),M.closed&&(this._connection=null,M=h.w.EMPTY)),M}refCount(){return(0,_.x)()(this)}}const C=(()=>{const E=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:E._subscribe},_isComplete:{value:E._isComplete,writable:!0},getSubject:{value:E.getSubject},connect:{value:E.connect},refCount:{value:E.refCount}}})();class w extends o.Yc{constructor(M,S){super(M),this.connectable=S}_error(M){this._unsubscribe(),super._error(M)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const M=this.connectable;if(M){this.connectable=null;const S=M._connection;M._refCount=0,M._subject=null,M._connection=null,S&&S.unsubscribe()}}}},9112:(Le,T,d)=>{"use strict";d.d(T,{aj:()=>w});var o=d(4869),l=d(9796),h=d(5866),_=d(509),a=d(6693);const C={};function w(...E){let M,S;return(0,o.K)(E[E.length-1])&&(S=E.pop()),"function"==typeof E[E.length-1]&&(M=E.pop()),1===E.length&&(0,l.k)(E[0])&&(E=E[0]),(0,a.n)(E,S).lift(new D(M))}class D{constructor(M){this.resultSelector=M}call(M,S){return S.subscribe(new g(M,this.resultSelector))}}class g extends h.L{constructor(M,S){super(M),this.resultSelector=S,this.active=0,this.values=[],this.observables=[]}_next(M){this.values.push(C),this.observables.push(M)}_complete(){const M=this.observables,S=M.length;if(0===S)this.destination.complete();else{this.active=S,this.toRespond=S;for(let P=0;P<S;P++)this.add((0,_.D)(this,M[P],void 0,P))}}notifyComplete(M){0==(this.active-=1)&&this.destination.complete()}notifyNext(M,S,P){const L=this.values,ae=this.toRespond?L[P]===C?--this.toRespond:this.toRespond:0;L[P]=S,0===ae&&(this.resultSelector?this._tryResultSelector(L):this.destination.next(L.slice()))}_tryResultSelector(M){let S;try{S=this.resultSelector.apply(this,M)}catch(P){return void this.destination.error(P)}this.destination.next(S)}}},8071:(Le,T,d)=>{"use strict";d.d(T,{z:()=>_});var o=d(5917),l=d(3282);function _(...a){return(0,l.J)(1)((0,o.of)(...a))}},1439:(Le,T,d)=>{"use strict";d.d(T,{P:()=>_});var o=d(9897),l=d(9412),h=d(9193);function _(a){return new o.y(C=>{let w;try{w=a()}catch(g){return void C.error(g)}return(w?(0,l.D)(w):(0,h.c)()).subscribe(C)})}},9193:(Le,T,d)=>{"use strict";d.d(T,{E:()=>l,c:()=>h});var o=d(9897);const l=new o.y(a=>a.complete());function h(a){return a?function(a){return new o.y(C=>a.schedule(()=>C.complete()))}(a):l}},5758:(Le,T,d)=>{"use strict";d.d(T,{D:()=>C});var o=d(9897),l=d(9796),h=d(8002),_=d(1555),a=d(9412);function C(...D){if(1===D.length){const g=D[0];if((0,l.k)(g))return w(g,null);if((0,_.K)(g)&&Object.getPrototypeOf(g)===Object.prototype){const E=Object.keys(g);return w(E.map(M=>g[M]),E)}}if("function"==typeof D[D.length-1]){const g=D.pop();return w(D=1===D.length&&(0,l.k)(D[0])?D[0]:D,null).pipe((0,h.U)(E=>g(...E)))}return w(D,null)}function w(D,g){return new o.y(E=>{const M=D.length;if(0===M)return void E.complete();const S=new Array(M);let P=0,L=0;for(let j=0;j<M;j++){const ae=(0,a.D)(D[j]);let he=!1;E.add(ae.subscribe({next:ye=>{he||(he=!0,L++),S[j]=ye},error:ye=>E.error(ye),complete:()=>{P++,(P===M||!he)&&(L===M&&E.next(g?g.reduce((ye,$e,at)=>(ye[$e]=S[at],ye),{}):S),E.complete())}}))}})}},9412:(Le,T,d)=>{"use strict";d.d(T,{D:()=>_});var o=d(9897),l=d(7444),h=d(1115);function _(a,C){return C?(0,h.x)(a,C):a instanceof o.y?a:new o.y((0,l.s)(a))}},6693:(Le,T,d)=>{"use strict";d.d(T,{n:()=>_});var o=d(9897),l=d(5015),h=d(4087);function _(a,C){return C?(0,h.r)(a,C):new o.y((0,l.V)(a))}},2759:(Le,T,d)=>{"use strict";d.d(T,{R:()=>C});var o=d(9897),l=d(9796),h=d(9105),_=d(8002);function C(M,S,P,L){return(0,h.m)(P)&&(L=P,P=void 0),L?C(M,S,P).pipe((0,_.U)(j=>(0,l.k)(j)?L(...j):L(j))):new o.y(j=>{w(M,S,function(he){j.next(arguments.length>1?Array.prototype.slice.call(arguments):he)},j,P)})}function w(M,S,P,L,j){let ae;if(function(M){return M&&"function"==typeof M.addEventListener&&"function"==typeof M.removeEventListener}(M)){const he=M;M.addEventListener(S,P,j),ae=()=>he.removeEventListener(S,P,j)}else if(function(M){return M&&"function"==typeof M.on&&"function"==typeof M.off}(M)){const he=M;M.on(S,P),ae=()=>he.off(S,P)}else if(function(M){return M&&"function"==typeof M.addListener&&"function"==typeof M.removeListener}(M)){const he=M;M.addListener(S,P),ae=()=>he.removeListener(S,P)}else{if(!M||!M.length)throw new TypeError("Invalid event target");for(let he=0,ye=M.length;he<ye;he++)w(M[he],S,P,L,j)}L.add(ae)}},6682:(Le,T,d)=>{"use strict";d.d(T,{T:()=>a});var o=d(9897),l=d(4869),h=d(3282),_=d(6693);function a(...C){let w=Number.POSITIVE_INFINITY,D=null,g=C[C.length-1];return(0,l.K)(g)?(D=C.pop(),C.length>1&&"number"==typeof C[C.length-1]&&(w=C.pop())):"number"==typeof g&&(w=C.pop()),null===D&&1===C.length&&C[0]instanceof o.y?C[0]:(0,h.J)(w)((0,_.n)(C,D))}},5917:(Le,T,d)=>{"use strict";d.d(T,{of:()=>_});var o=d(4869),l=d(6693),h=d(4087);function _(...a){let C=a[a.length-1];return(0,o.K)(C)?(a.pop(),(0,h.r)(a,C)):(0,l.n)(a)}},205:(Le,T,d)=>{"use strict";d.d(T,{_:()=>l});var o=d(9897);function l(_,a){return new o.y(a?C=>a.schedule(h,0,{error:_,subscriber:C}):C=>C.error(_))}function h({error:_,subscriber:a}){a.error(_)}},6797:(Le,T,d)=>{"use strict";d.d(T,{H:()=>a});var o=d(9897),l=d(3637),h=d(6561),_=d(4869);function a(w=0,D,g){let E=-1;return(0,h.k)(D)?E=Number(D)<1?1:Number(D):(0,_.K)(D)&&(g=D),(0,_.K)(g)||(g=l.P),new o.y(M=>{const S=(0,h.k)(w)?w:+w-g.now();return g.schedule(C,S,{index:0,period:E,subscriber:M})})}function C(w){const{index:D,period:g,subscriber:E}=w;if(E.next(D),!E.closed){if(-1===g)return E.complete();w.index=D+1,this.schedule(w,g)}}},4395:(Le,T,d)=>{"use strict";d.d(T,{b:()=>h});var o=d(7393),l=d(3637);function h(w,D=l.P){return g=>g.lift(new _(w,D))}class _{constructor(D,g){this.dueTime=D,this.scheduler=g}call(D,g){return g.subscribe(new a(D,this.dueTime,this.scheduler))}}class a extends o.L{constructor(D,g,E){super(D),this.dueTime=g,this.scheduler=E,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(D){this.clearDebounce(),this.lastValue=D,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(C,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:D}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(D)}}clearDebounce(){const D=this.debouncedSubscription;null!==D&&(this.remove(D),D.unsubscribe(),this.debouncedSubscription=null)}}function C(w){w.debouncedNext()}},7519:(Le,T,d)=>{"use strict";d.d(T,{x:()=>l});var o=d(7393);function l(a,C){return w=>w.lift(new h(a,C))}class h{constructor(C,w){this.compare=C,this.keySelector=w}call(C,w){return w.subscribe(new _(C,this.compare,this.keySelector))}}class _ extends o.L{constructor(C,w,D){super(C),this.keySelector=D,this.hasKey=!1,"function"==typeof w&&(this.compare=w)}compare(C,w){return C===w}_next(C){let w;try{const{keySelector:g}=this;w=g?g(C):C}catch(g){return this.destination.error(g)}let D=!1;if(this.hasKey)try{const{compare:g}=this;D=g(this.key,w)}catch(g){return this.destination.error(g)}else this.hasKey=!0;D||(this.key=w,this.destination.next(C))}}},5435:(Le,T,d)=>{"use strict";d.d(T,{h:()=>l});var o=d(7393);function l(a,C){return function(D){return D.lift(new h(a,C))}}class h{constructor(C,w){this.predicate=C,this.thisArg=w}call(C,w){return w.subscribe(new _(C,this.predicate,this.thisArg))}}class _ extends o.L{constructor(C,w,D){super(C),this.predicate=w,this.thisArg=D,this.count=0}_next(C){let w;try{w=this.predicate.call(this.thisArg,C,this.count++)}catch(D){return void this.destination.error(D)}w&&this.destination.next(C)}}},8002:(Le,T,d)=>{"use strict";d.d(T,{U:()=>l});var o=d(7393);function l(a,C){return function(D){if("function"!=typeof a)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return D.lift(new h(a,C))}}class h{constructor(C,w){this.project=C,this.thisArg=w}call(C,w){return w.subscribe(new _(C,this.project,this.thisArg))}}class _ extends o.L{constructor(C,w,D){super(C),this.project=w,this.count=0,this.thisArg=D||this}_next(C){let w;try{w=this.project.call(this.thisArg,C,this.count++)}catch(D){return void this.destination.error(D)}this.destination.next(w)}}},3282:(Le,T,d)=>{"use strict";d.d(T,{J:()=>h});var o=d(9773),l=d(4487);function h(_=Number.POSITIVE_INFINITY){return(0,o.zg)(l.y,_)}},9773:(Le,T,d)=>{"use strict";d.d(T,{zg:()=>_});var o=d(8002),l=d(9412),h=d(5345);function _(D,g,E=Number.POSITIVE_INFINITY){return"function"==typeof g?M=>M.pipe(_((S,P)=>(0,l.D)(D(S,P)).pipe((0,o.U)((L,j)=>g(S,L,P,j))),E)):("number"==typeof g&&(E=g),M=>M.lift(new a(D,E)))}class a{constructor(g,E=Number.POSITIVE_INFINITY){this.project=g,this.concurrent=E}call(g,E){return E.subscribe(new C(g,this.project,this.concurrent))}}class C extends h.Ds{constructor(g,E,M=Number.POSITIVE_INFINITY){super(g),this.project=E,this.concurrent=M,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(g){this.active<this.concurrent?this._tryNext(g):this.buffer.push(g)}_tryNext(g){let E;const M=this.index++;try{E=this.project(g,M)}catch(S){return void this.destination.error(S)}this.active++,this._innerSub(E)}_innerSub(g){const E=new h.IY(this),M=this.destination;M.add(E);const S=(0,h.ft)(g,E);S!==E&&M.add(S)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(g){this.destination.next(g)}notifyComplete(){const g=this.buffer;this.active--,g.length>0?this._next(g.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:(Le,T,d)=>{"use strict";d.d(T,{x:()=>l});var o=d(7393);function l(){return function(C){return C.lift(new h(C))}}class h{constructor(C){this.connectable=C}call(C,w){const{connectable:D}=this;D._refCount++;const g=new _(C,D),E=w.subscribe(g);return g.closed||(g.connection=D.connect()),E}}class _ extends o.L{constructor(C,w){super(C),this.connectable=w}_unsubscribe(){const{connectable:C}=this;if(!C)return void(this.connection=null);this.connectable=null;const w=C._refCount;if(w<=0)return void(this.connection=null);if(C._refCount=w-1,w>1)return void(this.connection=null);const{connection:D}=this,g=C._connection;this.connection=null,g&&(!D||g===D)&&g.unsubscribe()}}},8819:(Le,T,d)=>{"use strict";d.d(T,{B:()=>w});var o=d(2441);var _=d(1307),a=d(9765);function C(){return new a.xQ}function w(){return D=>(0,_.x)()(function(D,g){return function(M){let S;S="function"==typeof D?D:function(){return D};const P=Object.create(M,o.N);return P.source=M,P.subjectFactory=S,P}}(C)(D))}},3653:(Le,T,d)=>{"use strict";d.d(T,{T:()=>l});var o=d(7393);function l(a){return C=>C.lift(new h(a))}class h{constructor(C){this.total=C}call(C,w){return w.subscribe(new _(C,this.total))}}class _ extends o.L{constructor(C,w){super(C),this.total=w,this.count=0}_next(C){++this.count>this.total&&this.destination.next(C)}}},9761:(Le,T,d)=>{"use strict";d.d(T,{O:()=>h});var o=d(8071),l=d(4869);function h(..._){const a=_[_.length-1];return(0,l.K)(a)?(_.pop(),C=>(0,o.z)(_,C,a)):C=>(0,o.z)(_,C)}},3190:(Le,T,d)=>{"use strict";d.d(T,{w:()=>_});var o=d(8002),l=d(9412),h=d(5345);function _(w,D){return"function"==typeof D?g=>g.pipe(_((E,M)=>(0,l.D)(w(E,M)).pipe((0,o.U)((S,P)=>D(E,S,M,P))))):g=>g.lift(new a(w))}class a{constructor(D){this.project=D}call(D,g){return g.subscribe(new C(D,this.project))}}class C extends h.Ds{constructor(D,g){super(D),this.project=g,this.index=0}_next(D){let g;const E=this.index++;try{g=this.project(D,E)}catch(M){return void this.destination.error(M)}this._innerSub(g)}_innerSub(D){const g=this.innerSubscription;g&&g.unsubscribe();const E=new h.IY(this),M=this.destination;M.add(E),this.innerSubscription=(0,h.ft)(D,E),this.innerSubscription!==E&&M.add(this.innerSubscription)}_complete(){const{innerSubscription:D}=this;(!D||D.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(D){this.destination.next(D)}}},5257:(Le,T,d)=>{"use strict";d.d(T,{q:()=>_});var o=d(7393),l=d(7108),h=d(9193);function _(w){return D=>0===w?(0,h.c)():D.lift(new a(w))}class a{constructor(D){if(this.total=D,this.total<0)throw new l.W}call(D,g){return g.subscribe(new C(D,this.total))}}class C extends o.L{constructor(D,g){super(D),this.total=g,this.count=0}_next(D){const g=this.total,E=++this.count;E<=g&&(this.destination.next(D),E===g&&(this.destination.complete(),this.unsubscribe()))}}},6782:(Le,T,d)=>{"use strict";d.d(T,{R:()=>l});var o=d(5345);function l(a){return C=>C.lift(new h(a))}class h{constructor(C){this.notifier=C}call(C,w){const D=new _(C),g=(0,o.ft)(this.notifier,new o.IY(D));return g&&!D.seenValue?(D.add(g),w.subscribe(D)):D}}class _ extends o.Ds{constructor(C){super(C),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},8307:(Le,T,d)=>{"use strict";d.d(T,{b:()=>_});var o=d(7393),l=d(8640),h=d(9105);function _(w,D,g){return function(M){return M.lift(new a(w,D,g))}}class a{constructor(D,g,E){this.nextOrObserver=D,this.error=g,this.complete=E}call(D,g){return g.subscribe(new C(D,this.nextOrObserver,this.error,this.complete))}}class C extends o.L{constructor(D,g,E,M){super(D),this._tapNext=l.Z,this._tapError=l.Z,this._tapComplete=l.Z,this._tapError=E||l.Z,this._tapComplete=M||l.Z,(0,h.m)(g)?(this._context=this,this._tapNext=g):g&&(this._context=g,this._tapNext=g.next||l.Z,this._tapError=g.error||l.Z,this._tapComplete=g.complete||l.Z)}_next(D){try{this._tapNext.call(this._context,D)}catch(g){return void this.destination.error(g)}this.destination.next(D)}_error(D){try{this._tapError.call(this._context,D)}catch(g){return void this.destination.error(g)}this.destination.error(D)}_complete(){try{this._tapComplete.call(this._context)}catch(D){return void this.destination.error(D)}return this.destination.complete()}}},4087:(Le,T,d)=>{"use strict";d.d(T,{r:()=>h});var o=d(9897),l=d(826);function h(_,a){return new o.y(C=>{const w=new l.w;let D=0;return w.add(a.schedule(function(){D!==_.length?(C.next(_[D++]),C.closed||w.add(this.schedule())):C.complete()})),w})}},1115:(Le,T,d)=>{"use strict";d.d(T,{x:()=>P});var o=d(9897),l=d(826),h=d(6554),C=d(4087),w=d(377),E=d(4072),M=d(9489);function P(L,j){if(null!=L){if(function(L){return L&&"function"==typeof L[h.L]}(L))return function(L,j){return new o.y(ae=>{const he=new l.w;return he.add(j.schedule(()=>{const ye=L[h.L]();he.add(ye.subscribe({next($e){he.add(j.schedule(()=>ae.next($e)))},error($e){he.add(j.schedule(()=>ae.error($e)))},complete(){he.add(j.schedule(()=>ae.complete()))}}))})),he})}(L,j);if((0,E.t)(L))return function(L,j){return new o.y(ae=>{const he=new l.w;return he.add(j.schedule(()=>L.then(ye=>{he.add(j.schedule(()=>{ae.next(ye),he.add(j.schedule(()=>ae.complete()))}))},ye=>{he.add(j.schedule(()=>ae.error(ye)))}))),he})}(L,j);if((0,M.z)(L))return(0,C.r)(L,j);if(function(L){return L&&"function"==typeof L[w.hZ]}(L)||"string"==typeof L)return function(L,j){if(!L)throw new Error("Iterable cannot be null");return new o.y(ae=>{const he=new l.w;let ye;return he.add(()=>{ye&&"function"==typeof ye.return&&ye.return()}),he.add(j.schedule(()=>{ye=L[w.hZ](),he.add(j.schedule(function(){if(ae.closed)return;let $e,at;try{const Ze=ye.next();$e=Ze.value,at=Ze.done}catch(Ze){return void ae.error(Ze)}at?ae.complete():(ae.next($e),this.schedule())}))})),he})}(L,j)}throw new TypeError((null!==L&&typeof L||L)+" is not observable")}},6465:(Le,T,d)=>{"use strict";d.d(T,{o:()=>h});var o=d(826);class l extends o.w{constructor(a,C){super()}schedule(a,C=0){return this}}class h extends l{constructor(a,C){super(a,C),this.scheduler=a,this.work=C,this.pending=!1}schedule(a,C=0){if(this.closed)return this;this.state=a;const w=this.id,D=this.scheduler;return null!=w&&(this.id=this.recycleAsyncId(D,w,C)),this.pending=!0,this.delay=C,this.id=this.id||this.requestAsyncId(D,this.id,C),this}requestAsyncId(a,C,w=0){return setInterval(a.flush.bind(a,this),w)}recycleAsyncId(a,C,w=0){if(null!==w&&this.delay===w&&!1===this.pending)return C;clearInterval(C)}execute(a,C){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const w=this._execute(a,C);if(w)return w;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(a,C){let D,w=!1;try{this.work(a)}catch(g){w=!0,D=!!g&&g||new Error(g)}if(w)return this.unsubscribe(),D}_unsubscribe(){const a=this.id,C=this.scheduler,w=C.actions,D=w.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==D&&w.splice(D,1),null!=a&&(this.id=this.recycleAsyncId(C,a,null)),this.delay=null}}},4548:(Le,T,d)=>{"use strict";d.d(T,{v:()=>l});var o=d(2217);class l extends o.b{constructor(_,a=o.b.now){super(_,()=>l.delegate&&l.delegate!==this?l.delegate.now():a()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(_,a=0,C){return l.delegate&&l.delegate!==this?l.delegate.schedule(_,a,C):super.schedule(_,a,C)}flush(_){const{actions:a}=this;if(this.active)return void a.push(_);let C;this.active=!0;do{if(C=_.execute(_.state,_.delay))break}while(_=a.shift());if(this.active=!1,C){for(;_=a.shift();)_.unsubscribe();throw C}}}},1927:(Le,T,d)=>{"use strict";d.d(T,{r:()=>C,Z:()=>a});var o=d(6465),h=d(4548);const a=new class extends h.v{flush(D){this.active=!0,this.scheduled=void 0;const{actions:g}=this;let E,M=-1,S=g.length;D=D||g.shift();do{if(E=D.execute(D.state,D.delay))break}while(++M<S&&(D=g.shift()));if(this.active=!1,E){for(;++M<S&&(D=g.shift());)D.unsubscribe();throw E}}}(class extends o.o{constructor(D,g){super(D,g),this.scheduler=D,this.work=g}requestAsyncId(D,g,E=0){return null!==E&&E>0?super.requestAsyncId(D,g,E):(D.actions.push(this),D.scheduled||(D.scheduled=requestAnimationFrame(()=>D.flush(null))))}recycleAsyncId(D,g,E=0){if(null!==E&&E>0||null===E&&this.delay>0)return super.recycleAsyncId(D,g,E);0===D.actions.length&&(cancelAnimationFrame(g),D.scheduled=void 0)}}),C=a},4581:(Le,T,d)=>{"use strict";d.d(T,{e:()=>S,E:()=>M});let o=1;const l=Promise.resolve(),h={};function _(P){return P in h&&(delete h[P],!0)}const a={setImmediate(P){const L=o++;return h[L]=!0,l.then(()=>_(L)&&P()),L},clearImmediate(P){_(P)}};var w=d(6465),g=d(4548);const M=new class extends g.v{flush(L){this.active=!0,this.scheduled=void 0;const{actions:j}=this;let ae,he=-1,ye=j.length;L=L||j.shift();do{if(ae=L.execute(L.state,L.delay))break}while(++he<ye&&(L=j.shift()));if(this.active=!1,ae){for(;++he<ye&&(L=j.shift());)L.unsubscribe();throw ae}}}(class extends w.o{constructor(L,j){super(L,j),this.scheduler=L,this.work=j}requestAsyncId(L,j,ae=0){return null!==ae&&ae>0?super.requestAsyncId(L,j,ae):(L.actions.push(this),L.scheduled||(L.scheduled=a.setImmediate(L.flush.bind(L,null))))}recycleAsyncId(L,j,ae=0){if(null!==ae&&ae>0||null===ae&&this.delay>0)return super.recycleAsyncId(L,j,ae);0===L.actions.length&&(a.clearImmediate(j),L.scheduled=void 0)}}),S=M},3637:(Le,T,d)=>{"use strict";d.d(T,{z:()=>h,P:()=>_});var o=d(6465);const h=new(d(4548).v)(o.o),_=h},7771:(Le,T,d)=>{"use strict";d.d(T,{c:()=>C,N:()=>a});var o=d(6465),h=d(4548);const a=new class extends h.v{}(class extends o.o{constructor(D,g){super(D,g),this.scheduler=D,this.work=g}schedule(D,g=0){return g>0?super.schedule(D,g):(this.delay=g,this.state=D,this.scheduler.flush(this),this)}execute(D,g){return g>0||this.closed?super.execute(D,g):this._execute(D,g)}requestAsyncId(D,g,E=0){return null!==E&&E>0||null===E&&this.delay>0?super.requestAsyncId(D,g,E):D.flush(this)}}),C=a},377:(Le,T,d)=>{"use strict";d.d(T,{hZ:()=>l});const l="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},6554:(Le,T,d)=>{"use strict";d.d(T,{L:()=>o});const o="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(Le,T,d)=>{"use strict";d.d(T,{b:()=>o});const o="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(Le,T,d)=>{"use strict";d.d(T,{W:()=>l});const l=(()=>{function h(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return h.prototype=Object.create(Error.prototype),h})()},7971:(Le,T,d)=>{"use strict";d.d(T,{N:()=>l});const l=(()=>{function h(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return h.prototype=Object.create(Error.prototype),h})()},7744:(Le,T,d)=>{"use strict";d.d(T,{B:()=>l});const l=(()=>{function h(_){return Error.call(this),this.message=_?`${_.length} errors occurred during unsubscription:\n${_.map((a,C)=>`${C+1}) ${a.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=_,this}return h.prototype=Object.create(Error.prototype),h})()},3179:(Le,T,d)=>{"use strict";d.d(T,{_:()=>l});var o=d(7393);function l(h){for(;h;){const{closed:_,destination:a,isStopped:C}=h;if(_||C)return!1;h=a&&a instanceof o.L?a:null}return!0}},4449:(Le,T,d)=>{"use strict";function o(l){setTimeout(()=>{throw l},0)}d.d(T,{z:()=>o})},4487:(Le,T,d)=>{"use strict";function o(l){return l}d.d(T,{y:()=>o})},9796:(Le,T,d)=>{"use strict";d.d(T,{k:()=>o});const o=Array.isArray||(l=>l&&"number"==typeof l.length)},9489:(Le,T,d)=>{"use strict";d.d(T,{z:()=>o});const o=l=>l&&"number"==typeof l.length&&"function"!=typeof l},9105:(Le,T,d)=>{"use strict";function o(l){return"function"==typeof l}d.d(T,{m:()=>o})},6561:(Le,T,d)=>{"use strict";d.d(T,{k:()=>l});var o=d(9796);function l(h){return!(0,o.k)(h)&&h-parseFloat(h)+1>=0}},1555:(Le,T,d)=>{"use strict";function o(l){return null!==l&&"object"==typeof l}d.d(T,{K:()=>o})},5639:(Le,T,d)=>{"use strict";d.d(T,{b:()=>l});var o=d(9897);function l(h){return!!h&&(h instanceof o.y||"function"==typeof h.lift&&"function"==typeof h.subscribe)}},4072:(Le,T,d)=>{"use strict";function o(l){return!!l&&"function"!=typeof l.subscribe&&"function"==typeof l.then}d.d(T,{t:()=>o})},4869:(Le,T,d)=>{"use strict";function o(l){return l&&"function"==typeof l.schedule}d.d(T,{K:()=>o})},8640:(Le,T,d)=>{"use strict";function o(){}d.d(T,{Z:()=>o})},4022:(Le,T,d)=>{"use strict";d.d(T,{z:()=>l,U:()=>h});var o=d(4487);function l(..._){return h(_)}function h(_){return 0===_.length?o.y:1===_.length?_[0]:function(C){return _.reduce((w,D)=>D(w),C)}}},7444:(Le,T,d)=>{"use strict";d.d(T,{s:()=>M});var o=d(5015),l=d(4449),_=d(377),C=d(6554),D=d(9489),g=d(4072),E=d(1555);const M=S=>{if(S&&"function"==typeof S[C.L])return(S=>P=>{const L=S[C.L]();if("function"!=typeof L.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return L.subscribe(P)})(S);if((0,D.z)(S))return(0,o.V)(S);if((0,g.t)(S))return(S=>P=>(S.then(L=>{P.closed||(P.next(L),P.complete())},L=>P.error(L)).then(null,l.z),P))(S);if(S&&"function"==typeof S[_.hZ])return(S=>P=>{const L=S[_.hZ]();for(;;){let j;try{j=L.next()}catch(ae){return P.error(ae),P}if(j.done){P.complete();break}if(P.next(j.value),P.closed)break}return"function"==typeof L.return&&P.add(()=>{L.return&&L.return()}),P})(S);{const L=`You provided ${(0,E.K)(S)?"an invalid object":`'${S}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(L)}}},5015:(Le,T,d)=>{"use strict";d.d(T,{V:()=>o});const o=l=>h=>{for(let _=0,a=l.length;_<a&&!h.closed;_++)h.next(l[_]);h.complete()}},509:(Le,T,d)=>{"use strict";d.d(T,{D:()=>a});var o=d(7393);class l extends o.L{constructor(w,D,g){super(),this.parent=w,this.outerValue=D,this.outerIndex=g,this.index=0}_next(w){this.parent.notifyNext(this.outerValue,w,this.outerIndex,this.index++,this)}_error(w){this.parent.notifyError(w,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var h=d(7444),_=d(9897);function a(C,w,D,g,E=new l(C,D,g)){if(!E.closed)return w instanceof _.y?w.subscribe(E):(0,h.s)(w)(E)}},5041:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AppComponent=void 0;const o=d(4762),l=d(3679),h=d(4906),_=d(6988),a=d(2768),C=d(1670),w=d(282),D=d(9457),g=o.__importStar(d(7716)),E=o.__importStar(d(6395)),M=o.__importStar(d(9075)),S=o.__importStar(d(2421)),P=o.__importStar(d(5151)),L=o.__importStar(d(2665)),j=o.__importStar(d(8583)),ae=o.__importStar(d(5384)),he=o.__importStar(d(5939)),ye=o.__importStar(d(5585)),$e=o.__importStar(d(1095)),at=o.__importStar(d(1436)),Ze=o.__importStar(d(4264)),Me=o.__importStar(d(7822));function Re(Ue,et){1&Ue&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275text(1,"Editor Avan\xe7ado"),g.\u0275\u0275elementContainerEnd())}function Pe(Ue,et){if(1&Ue&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275elementStart(1,"span",20),g.\u0275\u0275text(2),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementContainerEnd()),2&Ue){const pt=g.\u0275\u0275nextContext(2).$implicit;g.\u0275\u0275advance(2),g.\u0275\u0275textInterpolate1("\u25b6\xa0",pt.function,"")}}function Ne(Ue,et){if(1&Ue){const pt=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"span",17),g.\u0275\u0275template(1,Re,2,0,"ng-container",18),g.\u0275\u0275template(2,Pe,3,1,"ng-container",18),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(3,"button",19),g.\u0275\u0275listener("click",function(){g.\u0275\u0275restoreView(pt);const tt=g.\u0275\u0275nextContext().$implicit;return g.\u0275\u0275nextContext(2).closeTab(tt)}),g.\u0275\u0275elementStart(4,"mat-icon"),g.\u0275\u0275text(5,"close"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}if(2&Ue){const pt=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275property("ngSwitch",pt.type),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","advanced"),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","simple")}}function Ct(Ue,et){1&Ue&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275element(1,"app-tab-editor"),g.\u0275\u0275elementContainerEnd())}function te(Ue,et){if(1&Ue&&(g.\u0275\u0275elementContainerStart(0),g.\u0275\u0275element(1,"app-simple-call",21),g.\u0275\u0275elementContainerEnd()),2&Ue){const pt=g.\u0275\u0275nextContext().$implicit;g.\u0275\u0275advance(1),g.\u0275\u0275property("fn",pt.function)}}function ge(Ue,et){if(1&Ue&&(g.\u0275\u0275elementStart(0,"mat-tab"),g.\u0275\u0275template(1,Ne,6,3,"ng-template",16),g.\u0275\u0275elementContainerStart(2,17),g.\u0275\u0275template(3,Ct,2,0,"ng-container",18),g.\u0275\u0275template(4,te,2,1,"ng-container",18),g.\u0275\u0275elementContainerEnd(),g.\u0275\u0275elementEnd()),2&Ue){const pt=et.$implicit;g.\u0275\u0275advance(2),g.\u0275\u0275property("ngSwitch",pt.type),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","advanced"),g.\u0275\u0275advance(1),g.\u0275\u0275property("ngSwitchCase","simple")}}function X(Ue,et){if(1&Ue){const pt=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"button",22),g.\u0275\u0275listener("click",function(){return g.\u0275\u0275restoreView(pt),g.\u0275\u0275nextContext(2).addAdvancedTab()}),g.\u0275\u0275elementStart(1,"mat-icon"),g.\u0275\u0275text(2,"add_circle"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}}function ce(Ue,et){if(1&Ue&&(g.\u0275\u0275elementStart(0,"button",23),g.\u0275\u0275elementStart(1,"mat-icon"),g.\u0275\u0275text(2,"download"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()),2&Ue){g.\u0275\u0275nextContext(2);const pt=g.\u0275\u0275reference(5);g.\u0275\u0275property("matMenuTriggerFor",pt)}}function Ae(Ue,et){if(1&Ue){const pt=g.\u0275\u0275getCurrentView();g.\u0275\u0275elementStart(0,"mat-tab-group",11),g.\u0275\u0275listener("selectedIndexChange",function(tt){return g.\u0275\u0275restoreView(pt),g.\u0275\u0275nextContext().selected.setValue(tt)}),g.\u0275\u0275elementStart(1,"mat-tab",12),g.\u0275\u0275elementStart(2,"app-tab-home",13),g.\u0275\u0275listener("runFunction",function(tt){return g.\u0275\u0275restoreView(pt),g.\u0275\u0275nextContext().addSimpleTab(tt)}),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd(),g.\u0275\u0275template(3,ge,5,3,"mat-tab",14),g.\u0275\u0275elementStart(4,"mat-tab",15),g.\u0275\u0275template(5,X,3,0,"ng-template",16),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(6,"mat-tab",15),g.\u0275\u0275template(7,ce,3,1,"ng-template",16),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()}if(2&Ue){const pt=g.\u0275\u0275nextContext();g.\u0275\u0275property("selectedIndex",pt.selected.value),g.\u0275\u0275advance(3),g.\u0275\u0275property("ngForOf",pt.tabs)}}class Ce{constructor(et,pt,je){this.sdkgen=et,this.domSanitizer=pt,this.matIconRegistry=je,this.selected=new l.FormControl(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const tt of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(tt,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${tt}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(et=>{this.state=null!=et?et:void 0})}ngOnDestroy(){var et;null===(et=this.state$)||void 0===et||et.unsubscribe()}addSimpleTab(et){this.tabs.push({id:this.tabIndex++,function:et,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(et){this.tabs.splice(this.tabs.indexOf(et),1),this.selected.setValue(0)}downloadTarget(et){if(!this.state)return;let pt,je;switch(et){case"typescript_nodeserver":pt=w.generateNodeServerSource(this.state.astRoot),je="node-server.ts";break;case"typescript_nodeclient":pt=w.generateNodeClientSource(this.state.astRoot),je="node-client.ts";break;case"typescript_web":pt=w.generateBrowserClientSource(this.state.astRoot),je="web-client.ts";break;case"typescript_interfaces":pt=w.generateTypescriptInterfaces(this.state.astRoot),je="interfaces.ts";break;case"flutter":pt=_.generateDartClientSource(this.state.astRoot),je="flutter-client.dart";break;case"csharp_server":pt=h.generateCSharpServerSource(this.state.astRoot),je="csharp-server.cs";break;case"kotlin_android":pt=a.generateAndroidClientSource(this.state.astRoot,!0),je="android-client.kt";break;case"kotlin_android_without_callbacks":pt=a.generateAndroidClientSource(this.state.astRoot,!1),je="android-client-no-callbacks.kt";break;case"swift_ios":pt=C.generateSwiftClientSource(this.state.astRoot,!1),je="ios-client.swift";break;case"rxswift_ios":pt=C.generateSwiftClientSource(this.state.astRoot,!0),je="ios-client-rx.swift"}D.saveAs(new Blob([pt],{type:"application/octet-stream"}),je)}}T.AppComponent=Ce,Ce.\u0275fac=function(et){return new(et||Ce)(g.\u0275\u0275directiveInject(E.SdkgenService),g.\u0275\u0275directiveInject(M.DomSanitizer),g.\u0275\u0275directiveInject(S.MatIconRegistry))},Ce.\u0275cmp=g.\u0275\u0275defineComponent({type:Ce,selectors:[["app-root"]],decls:43,vars:3,consts:[[2,"width","0","height","0","opacity","0","display","block"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange",4,"ngIf"],["downloadMenu","matMenu"],["id","download-menu-size-flow"],["mat-menu-item","","disabled",""],["mat-menu-item","",3,"click"],["svgIcon","typescript"],["svgIcon","dart"],["svgIcon","kotlin"],["svgIcon","swift"],["svgIcon","dot-net"],["id","main-tabs","animationDuration","150ms",3,"selectedIndex","selectedIndexChange"],["label","Documenta\xe7\xe3o"],[3,"runFunction"],[4,"ngFor","ngForOf"],["disabled",""],["mat-tab-label",""],[3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","matTooltip","Fechar aba",3,"click"],[1,"mono","tt-none"],[3,"fn"],["mat-icon-button","","matTooltip","Nova aba de editor avan\xe7ado",3,"click"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(et,pt){1&et&&(g.\u0275\u0275element(0,"ngx-monaco-editor",0),g.\u0275\u0275element(1,"app-tab-nav"),g.\u0275\u0275template(2,Ae,8,2,"mat-tab-group",1),g.\u0275\u0275pipe(3,"async"),g.\u0275\u0275elementStart(4,"mat-menu",null,2),g.\u0275\u0275element(6,"div",3),g.\u0275\u0275elementStart(7,"button",4),g.\u0275\u0275text(8,"Cliente"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(9,"button",5),g.\u0275\u0275listener("click",function(){return pt.downloadTarget("typescript_nodeclient")}),g.\u0275\u0275element(10,"mat-icon",6),g.\u0275\u0275text(11,"Node.js"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(12,"button",5),g.\u0275\u0275listener("click",function(){return pt.downloadTarget("typescript_web")}),g.\u0275\u0275element(13,"mat-icon",6),g.\u0275\u0275text(14,"Web"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(15,"button",5),g.\u0275\u0275listener("click",function(){return pt.downloadTarget("flutter")}),g.\u0275\u0275element(16,"mat-icon",7),g.\u0275\u0275text(17,"Flutter"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(18,"button",5),g.\u0275\u0275listener("click",function(){return pt.downloadTarget("kotlin_android")}),g.\u0275\u0275element(19,"mat-icon",8),g.\u0275\u0275text(20,"Android"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(21,"button",5),g.\u0275\u0275listener("click",function(){return pt.downloadTarget("kotlin_android_without_callbacks")}),g.\u0275\u0275element(22,"mat-icon",8),g.\u0275\u0275text(23,"Android (sem callbacks)"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(24,"button",5),g.\u0275\u0275listener("click",function(){return pt.downloadTarget("swift_ios")}),g.\u0275\u0275element(25,"mat-icon",9),g.\u0275\u0275text(26,"iOS"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(27,"button",5),g.\u0275\u0275listener("click",function(){return pt.downloadTarget("rxswift_ios")}),g.\u0275\u0275element(28,"mat-icon",9),g.\u0275\u0275text(29,"iOS (Rx)"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(30,"button",4),g.\u0275\u0275text(31,"Servidor"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(32,"button",5),g.\u0275\u0275listener("click",function(){return pt.downloadTarget("typescript_nodeserver")}),g.\u0275\u0275element(33,"mat-icon",6),g.\u0275\u0275text(34,"Node.js"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(35,"button",5),g.\u0275\u0275listener("click",function(){return pt.downloadTarget("csharp_server")}),g.\u0275\u0275element(36,"mat-icon",10),g.\u0275\u0275text(37,"C#"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(38,"button",4),g.\u0275\u0275text(39,"Outros"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementStart(40,"button",5),g.\u0275\u0275listener("click",function(){return pt.downloadTarget("typescript_interfaces")}),g.\u0275\u0275element(41,"mat-icon",6),g.\u0275\u0275text(42,"Interfaces"),g.\u0275\u0275elementEnd(),g.\u0275\u0275elementEnd()),2&et&&(g.\u0275\u0275advance(2),g.\u0275\u0275property("ngIf",g.\u0275\u0275pipeBind1(3,1,pt.sdkgen.state$)))},directives:[P.MonacoEditorComponent,L.TabNavComponent,j.NgIf,ae.MatMenu,ae.MatMenuItem,S.MatIcon,he.MatTabGroup,he.MatTab,ye.TabHomeComponent,j.NgForOf,he.MatTabLabel,j.NgSwitch,j.NgSwitchCase,$e.MatButton,at.MatTooltip,Ze.TabEditorComponent,Me.SimpleCallComponent,ae.MatMenuTrigger],pipes:[j.AsyncPipe],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%} #main-tabs>.mat-tab-header .mat-tab-label{text-transform:uppercase;-webkit-user-select:none;user-select:none} #main-tabs>.mat-tab-header .mat-tab-label.mat-ripple:not(#mat-tab-label-0-0){padding-right:0} #main-tabs>.mat-tab-header .mat-tab-label.mat-ripple:not(#mat-tab-label-0-0) button{border-radius:0;display:inline-block;margin-left:10px} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:nth-last-child(-n+2){min-width:0;padding:0 12px;color:unset;opacity:unset} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:nth-last-child(-n+2) button{margin-left:0!important} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:last-child{margin-left:auto} #main-tabs>.mat-tab-header .mat-tab-labels .mat-tab-label:last-child button{padding:0 5px!important;display:block;box-sizing:content-box;margin-right:5px!important} #download-menu-size-flow{width:185px;display:block;max-width:90vw}"]})},6747:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.AppModule=void 0;const o=d(4762),l=d(6820),h=d(3679),_=d(1095),a=d(2675),C=d(2238),w=d(2421),D=d(5384),g=d(2789),E=d(5939),M=d(1436),S=d(9075),P=d(6237),L=d(5151),j=d(1430),ae=d(1103),he=d(9344),ye=d(5041),$e=o.__importStar(d(7716));o.__importStar(d(9344));class Ze{}T.AppModule=Ze,Ze.\u0275fac=function(Re){return new(Re||Ze)},Ze.\u0275mod=$e.\u0275\u0275defineNgModule({type:Ze,bootstrap:[ye.AppComponent]}),Ze.\u0275inj=$e.\u0275\u0275defineInjector({providers:[{provide:L.MONACO_PATH,useValue:"assets/vs"}],imports:[[S.BrowserModule,h.FormsModule,h.ReactiveFormsModule,L.MonacoEditorModule,P.BrowserAnimationsModule,ae.NgxJsonViewerModule,he.ToastrModule.forRoot(),j.AngularSplitModule,l.HttpClientModule,_.MatButtonModule,a.MatChipsModule,C.MatDialogModule,w.MatIconModule,D.MatMenuModule,g.MatTableModule,E.MatTabsModule,M.MatTooltipModule]]})},8495:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ConsoleComponent=void 0;const o=d(4762),l=d(9972),h=o.__importStar(d(7716)),_=o.__importStar(d(1095)),a=o.__importStar(d(2421)),C=o.__importStar(d(8583)),w=o.__importStar(d(1103));function D(L,j){1&L&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275text(1,"info_outline"),h.\u0275\u0275elementContainerEnd())}function g(L,j){1&L&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275text(1,"error"),h.\u0275\u0275elementContainerEnd())}function E(L,j){1&L&&(h.\u0275\u0275elementContainerStart(0),h.\u0275\u0275text(1,"public"),h.\u0275\u0275elementContainerEnd())}function M(L,j){if(1&L&&h.\u0275\u0275element(0,"ngx-json-viewer",6),2&L){const ae=h.\u0275\u0275nextContext().$implicit;h.\u0275\u0275property("json",ae.details)("expanded",!1)}}function S(L,j){if(1&L&&(h.\u0275\u0275elementStart(0,"li",2),h.\u0275\u0275elementStart(1,"mat-icon",3),h.\u0275\u0275template(2,D,2,0,"ng-container",4),h.\u0275\u0275template(3,g,2,0,"ng-container",4),h.\u0275\u0275template(4,E,2,0,"ng-container",4),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(5,"span"),h.\u0275\u0275text(6),h.\u0275\u0275elementEnd(),h.\u0275\u0275template(7,M,1,2,"ngx-json-viewer",5),h.\u0275\u0275elementEnd()),2&L){const ae=j.$implicit,he=h.\u0275\u0275nextContext();h.\u0275\u0275property("ngClass",ae.type),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitch",ae.type)("ngClass",ae.type),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase",he.itemTypes.INFO),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase",he.itemTypes.ERROR),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngSwitchCase",he.itemTypes.NETWORK),h.\u0275\u0275advance(2),h.\u0275\u0275textInterpolate(ae.message),h.\u0275\u0275advance(1),h.\u0275\u0275property("ngIf",ae.details)}}class P{constructor(){this.itemTypes=l.ConsoleItemType,this.items=[]}}T.ConsoleComponent=P,P.\u0275fac=function(j){return new(j||P)},P.\u0275cmp=h.\u0275\u0275defineComponent({type:P,selectors:[["app-console"]],inputs:{items:"items"},decls:9,vars:1,consts:[["mat-icon-button","",3,"click"],["class","console-item",3,"ngClass",4,"ngFor","ngForOf"],[1,"console-item",3,"ngClass"],[3,"ngSwitch","ngClass"],[4,"ngSwitchCase"],[3,"json","expanded",4,"ngIf"],[3,"json","expanded"]],template:function(j,ae){1&j&&(h.\u0275\u0275elementStart(0,"header"),h.\u0275\u0275elementStart(1,"strong"),h.\u0275\u0275text(2,"CONSOLE"),h.\u0275\u0275elementEnd(),h.\u0275\u0275element(3,"s"),h.\u0275\u0275elementStart(4,"button",0),h.\u0275\u0275listener("click",function(){return ae.items.splice(0,ae.items.length)}),h.\u0275\u0275elementStart(5,"mat-icon"),h.\u0275\u0275text(6,"delete"),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementEnd(),h.\u0275\u0275elementStart(7,"ul"),h.\u0275\u0275template(8,S,8,8,"li",1),h.\u0275\u0275elementEnd()),2&j&&(h.\u0275\u0275advance(8),h.\u0275\u0275property("ngForOf",ae.items))},directives:[_.MatButton,a.MatIcon,C.NgForOf,C.NgClass,C.NgSwitch,C.NgSwitchCase,C.NgIf,w.NgxJsonViewerComponent],styles:["[_nghost-%COMP%]{display:block;height:100%;text-align:left;overflow-y:scroll;box-sizing:border-box}header[_ngcontent-%COMP%]{display:flex;flex-direction:row;position:sticky;top:0;background:#1E1E1E;border-bottom:1px solid #444444;padding:5px 0;z-index:2}header[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin:0 10px;text-transform:uppercase;font-weight:200;color:#e7e7e7;border-bottom:1px solid #e7e7e7;line-height:27px;font-size:11pt;align-self:center}header[_ngcontent-%COMP%] s[_ngcontent-%COMP%]{flex-grow:1}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 10px}ul[_ngcontent-%COMP%]{padding:0;margin:0;box-sizing:border-box}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style:none;display:block;width:100%;height:auto;padding:5px 10px;font-size:1rem;border-bottom:1px solid #444444;background-color:#111;word-break:break-all;box-sizing:border-box;word-wrap:break-word;font-family:monospace}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline;vertical-align:text-bottom}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:1rem;width:1rem;font-size:1rem;vertical-align:sub;margin-right:7.5px;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.info[_ngcontent-%COMP%]{color:#b9b9bb}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.error[_ngcontent-%COMP%]{color:#ff3b6b}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_recv[_ngcontent-%COMP%], ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_send[_ngcontent-%COMP%]{color:#939395}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#0000004d}ul[_ngcontent-%COMP%] > li.error[_ngcontent-%COMP%]{color:#e69fa3;background-color:#4b2f36}"]})},9972:(Le,T)=>{"use strict";var o;Object.defineProperty(T,"__esModule",{value:!0}),T.ConsoleItemType=void 0,(o=T.ConsoleItemType||(T.ConsoleItemType={})).INFO="info",o.ERROR="error",o.NETWORK="network"},4211:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.FilterPipe=void 0;const l=d(4762).__importStar(d(7716));class h{transform(a,C){if(!a)return[];if(!C)return a;const w=C.toLocaleLowerCase();return a.filter(D=>JSON.stringify(D).toLocaleLowerCase().includes(w))}}T.FilterPipe=h,h.\u0275fac=function(a){return new(a||h)},h.\u0275pipe=l.\u0275\u0275definePipe({name:"appFilter",type:h,pure:!0})},7120:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.ResponsiveService=void 0;const o=d(4762),l=o.__importStar(d(7716)),h=o.__importStar(d(5072));class _{constructor(C){this.observer=C}isBelowSm(){return this.observer.observe(["(max-width: 575px)"])}isBelowMd(){return this.observer.observe(["(max-width: 767px)"])}isBelowLg(){return this.observer.observe(["(max-width: 991px)"])}isBelowXl(){return this.observer.observe(["(max-width: 1199px)"])}}T.ResponsiveService=_,_.\u0275fac=function(C){return new(C||_)(l.\u0275\u0275inject(h.BreakpointObserver))},_.\u0275prov=l.\u0275\u0275defineInjectable({token:_,factory:_.\u0275fac,providedIn:"root"})},9435:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.getTypeDoc=T.getTypeLabels=T.getConstructorName=T.primitiveTypesExamples=T.primitiveTypes=void 0;const o=d(3979),l=d(6395);function h(C){switch(C.constructor){case o.StringPrimitiveType:return"StringPrimitiveType";case o.IntPrimitiveType:return"IntPrimitiveType";case o.UIntPrimitiveType:return"UIntPrimitiveType";case o.FloatPrimitiveType:return"FloatPrimitiveType";case o.BigIntPrimitiveType:return"BigIntPrimitiveType";case o.MoneyPrimitiveType:return"MoneyPrimitiveType";case o.DatePrimitiveType:return"DatePrimitiveType";case o.DateTimePrimitiveType:return"DateTimePrimitiveType";case o.BoolPrimitiveType:return"BoolPrimitiveType";case o.VoidPrimitiveType:return"VoidPrimitiveType";case o.CpfPrimitiveType:return"CpfPrimitiveType";case o.CnpjPrimitiveType:return"CnpjPrimitiveType";case o.EmailPrimitiveType:return"EmailPrimitiveType";case o.UrlPrimitiveType:return"UrlPrimitiveType";case o.UuidPrimitiveType:return"UuidPrimitiveType";case o.HexPrimitiveType:return"HexPrimitiveType";case o.HtmlPrimitiveType:return"HtmlPrimitiveType";case o.BytesPrimitiveType:return"BytesPrimitiveType";case o.Base64PrimitiveType:return"Base64PrimitiveType";case o.XmlPrimitiveType:return"XmlPrimitiveType";case o.JsonPrimitiveType:return"JsonPrimitiveType";case o.OptionalType:return"OptionalType";case o.EnumType:return"EnumType";case o.ArrayType:return"ArrayType";case o.StructType:return"StructType";default:return C.constructor.name}}T.primitiveTypes={StringPrimitiveType:"Um texto livre, potencialmente de m\xfaltiplas linhas, codificado como UTF-8.",IntPrimitiveType:"Um n\xfamero inteiro de 32 bits, no intervalo de -2147483648 at\xe9 2147483647.",UIntPrimitiveType:"Um n\xfamero inteiro n\xe3o negativo, no intervalo de 0 at\xe9 4294967295.",FloatPrimitiveType:"Um n\xfamero de ponto flutuante de 64 bits, similar ao double do C.",BigIntPrimitiveType:"Um n\xfamero inteiro sem limite de precis\xe3o. Na maioria das plataformas este tipo \xe9 mais custoso.",MoneyPrimitiveType:"Um n\xfamero inteiro com precis\xe3o estendida, mas perform\xe1tico. Est\xe1 no intervalo de -9007199254740991 a 9007199254740991. \xdatil para opera\xe7\xf5es financeiras",DatePrimitiveType:"Representa conceitualmente uma data do calend\xe1rio Gregoriano. Essa mesma data pode representar diferentes momento no tempo a depender da timezone. Para especificar um ponto no tempo utilize datetime.",DateTimePrimitiveType:"Representa um instante no tempo com precis\xe3o de milissegundos. Este instante ser\xe1 sempre traduzido para o fuso hor\xe1rio local do recebedor da mensagem.",BoolPrimitiveType:"Ou true ou false.",VoidPrimitiveType:"Tipo vazio, sem conte\xfado.",CpfPrimitiveType:"Similar a uma string, mas contendo um CPF v\xe1lido.",CnpjPrimitiveType:"Similar a uma string, mas contendo um CNPJ v\xe1lido.",EmailPrimitiveType:"Similar a uma string, mas contendo um e-mail v\xe1lido.",UrlPrimitiveType:"Similar a uma string, mas contendo uma URL v\xe1lida.",UuidPrimitiveType:"Similar a uma string, mas contendo um UUID v\xe1lido.",HexPrimitiveType:"Similar a uma string, mas contendo uma quantidade par de caracteres hexadecimais, \xfatil para representar bytes.",HtmlPrimitiveType:"Similar a uma string, mas contendo um HTML v\xe1lido.",BytesPrimitiveType:"Uma sequ\xeancia arbitr\xe1ria de bytes de qualquer comprimento. Pode ser utilizado para tr\xe1fego de dados bin\xe1rios.",Base64PrimitiveType:"Similar a uma string, mas necessariamente com uma codifica\xe7\xe3o Base 64 v\xe1lida.",XmlPrimitiveType:"Similar a uma string, mas contendo um XML v\xe1lido.",JsonPrimitiveType:"Um valor JSON qualquer, incluindo objetos, arrays, strings, n\xfameros e boleanos, em qualquer profundidade. Note que embora null possa aparecer dentro de um objeto ou array, o valor deste campo n\xe3o pode ser null diretamente. Para isso utilize json?."},T.primitiveTypesExamples={StringPrimitiveType:["","lorem ipsum","strings podem conter caracteres especiais \u{1f609}"],IntPrimitiveType:["0","6725082065","-3096576054"],UIntPrimitiveType:["0","1","340953460"],FloatPrimitiveType:["0.0","1.050654","-3454.6396854"],BigIntPrimitiveType:["87175082235506108544888893172310","0","1"],MoneyPrimitiveType:["100","-450954636342","121611633162977184630315"],DatePrimitiveType:["2020-01-01","1950-04-15","2194-12-31"],DateTimePrimitiveType:["2020-01-01T00:00:00.000","1950-04-15T02:11:58.892","2194-12-31T23:31:58.491"],BoolPrimitiveType:["true","false"],CpfPrimitiveType:["000.000.001-91","00000000191","000.000.002-72"],CnpjPrimitiveType:["00.000.000/0001-91","00000000000191","00.000.000/0002-72"],EmailPrimitiveType:["sample@example.com","root@localhost","test+label@10.0.0.5"],UrlPrimitiveType:["https://sdkgen.github.io/","https://goo.gl/maps/gUaKGTqR8BHXfX7b7","http://jobs.cubos.io"],UuidPrimitiveType:["c12c3329-c558-4c76-9a16-0efeb2b01605","00000000-0000-0000-0000-000000000000","1d5f2ef6-0def-11ec-82a8-0242ac130003"],HexPrimitiveType:["00","6375626f73","73646b67656e20706c617967726f756e64"],HtmlPrimitiveType:["<html><body><p>sdkgen</p></body></html>","<html><h1>Sdkgen","<script> alert('Hello world!'); <\/script>"],BytesPrimitiveType:[],Base64PrimitiveType:["Y3Vib3M=","c2RrZ2Vu","c2RrZ2VuIHBsYXlncm91bmQ="],XmlPrimitiveType:["<items><item>something</item></items>","<list />",'<?xml version="1.0" encoding="UTF-8"?><resposta><![CDATA[ol\xe1 <xml>]]></resposta>'],JsonPrimitiveType:["{}",'{"sdkgen":"playground"}','{"type":"json","items":[1,2,3],"some":null}']},T.getConstructorName=h,T.getTypeLabels=function _(C){const w=[];switch(C.constructor){case o.StringPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.FloatPrimitiveType:case o.BigIntPrimitiveType:case o.MoneyPrimitiveType:case o.DatePrimitiveType:case o.DateTimePrimitiveType:case o.BoolPrimitiveType:case o.VoidPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.HtmlPrimitiveType:case o.BytesPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.JsonPrimitiveType:w.push("Primitivo");break;case o.OptionalType:w.push("Opcional"),w.push(..._(C.base));break;case o.TypeReference:w.push(..._(C.type));break;case o.ArrayType:w.push("Array"),w.push(..._(C.base));break;case o.EnumType:w.push("Enum");break;default:console.error("No labels for",h(C))}return w},T.getTypeDoc=function a(C){var w,D,g;switch(C.constructor){case o.StringPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.FloatPrimitiveType:case o.BigIntPrimitiveType:case o.MoneyPrimitiveType:case o.DatePrimitiveType:case o.DateTimePrimitiveType:case o.BoolPrimitiveType:case o.VoidPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.HtmlPrimitiveType:case o.BytesPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.JsonPrimitiveType:return{longDescription:T.primitiveTypes[h(C)],shortDescription:T.primitiveTypes[h(C)],examples:T.primitiveTypesExamples[h(C)]};case o.OptionalType:{const M=a(C.base);return Object.assign(Object.assign({},M),{longDescription:M.longDescription,shortDescription:`(opcional) ${M.shortDescription}`,examples:["null",...null!==(w=M.examples)&&void 0!==w?w:[]]})}case o.TypeReference:return a(C.type);case o.ArrayType:{const M=a(C.base);return Object.assign(Object.assign({},M),{longDescription:M.longDescription,shortDescription:`(array) ${M.shortDescription}`,examples:["[]",...null!==(g=null===(D=M.examples)||void 0===D?void 0:D.map(S=>`[${S}]`))&&void 0!==g?g:[]]})}case o.EnumType:const E=C.values.map(M=>M.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${E.slice(0,3).join(", ")}${E.length>3?"\u2026":""}`,examples:E,isEnum:!0};case o.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${C.fields.slice(0,3).map(M=>M.name).join(", ")}\u2026`,isStruct:!0,structFields:C.fields.map(M=>{var S;return{name:M.name,description:null===(S=M.annotations.find(P=>P instanceof o.DescriptionAnnotation))||void 0===S?void 0:S.text,type:M.type,secret:M.secret}}),examples:[JSON.stringify((new l.SdkgenService).buildJsonObject(C.fields),null,2)]};default:return{longDescription:"BUG: Unknown Type",shortDescription:"BUG: Unknown Type",examples:[]}}}},6395:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(1052).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SdkgenService=void 0;const tslib_1=__webpack_require__(4762),browser_runtime_1=__webpack_require__(2184),parser_1=__webpack_require__(3979),rxjs_1=__webpack_require__(4813),i0=tslib_1.__importStar(__webpack_require__(7716));class SdkgenService{constructor(){this.state$=new rxjs_1.BehaviorSubject(null)}buildJsonObject(Le){const T=d=>{switch(d.constructor){case parser_1.StringPrimitiveType:return"";case parser_1.IntPrimitiveType:case parser_1.UIntPrimitiveType:case parser_1.FloatPrimitiveType:case parser_1.BigIntPrimitiveType:case parser_1.MoneyPrimitiveType:return 0;case parser_1.DatePrimitiveType:return(new Date).toJSON().substring(0,10);case parser_1.DateTimePrimitiveType:return(new Date).toJSON().substring(0,23);case parser_1.BoolPrimitiveType:return Math.random()>.5;case parser_1.VoidPrimitiveType:return null;case parser_1.CpfPrimitiveType:return"000.000.001-91";case parser_1.CnpjPrimitiveType:return"00.000.001/0001-91";case parser_1.EmailPrimitiveType:return"joao@acme.com";case parser_1.UrlPrimitiveType:return"https://www.google.com/";case parser_1.UuidPrimitiveType:return"00000000-0000-0000-0000-000000000000";case parser_1.HexPrimitiveType:return new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("");case parser_1.HtmlPrimitiveType:return"<h1>Hello world!</h1>";case parser_1.BytesPrimitiveType:case parser_1.Base64PrimitiveType:return"0a=";case parser_1.XmlPrimitiveType:return"<xml></xml>";case parser_1.JsonPrimitiveType:return{};case parser_1.StructType:return this.buildJsonObject(d.fields);case parser_1.OptionalType:return null;case parser_1.TypeReference:return T(d.type);case parser_1.ArrayType:return[T(d.base),T(d.base),T(d.base)];case parser_1.EnumType:return d.values[0].value;default:return null}};return Le.reduce((d,o)=>(d[o.name]=T(o.type),d),{})}getTypeScriptCode(Le,T){return`await client.${Le}(${JSON.stringify(T,null,2)});\n`}buildKotlinString(Le,T=0){const d=o=>{switch(o.constructor){case parser_1.StringPrimitiveType:return'""';case parser_1.IntPrimitiveType:case parser_1.UIntPrimitiveType:case parser_1.FloatPrimitiveType:case parser_1.BigIntPrimitiveType:case parser_1.MoneyPrimitiveType:return 0;case parser_1.DatePrimitiveType:case parser_1.DateTimePrimitiveType:return"Calendar.getInstance()";case parser_1.BoolPrimitiveType:return Math.random()>.5?"true":"false";case parser_1.VoidPrimitiveType:return"null";case parser_1.CpfPrimitiveType:return'"000.000.001-91"';case parser_1.CnpjPrimitiveType:return'"00.000.001/0001-91"';case parser_1.EmailPrimitiveType:return'"joao@acme.com"';case parser_1.UrlPrimitiveType:return'"https://www.google.com/"';case parser_1.UuidPrimitiveType:return'"00000000-0000-0000-0000-000000000000"';case parser_1.HexPrimitiveType:return`"${new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("")}"`;case parser_1.HtmlPrimitiveType:return'"<h1>Hello world!</h1>"';case parser_1.BytesPrimitiveType:case parser_1.Base64PrimitiveType:return'"0a="';case parser_1.XmlPrimitiveType:return'"<xml></xml>"';case parser_1.JsonPrimitiveType:return"json {}";case parser_1.StructType:return`${o.name}(\n${this.buildKotlinString(o.fields,T+1)}\n${" ".repeat(T+1)})`;case parser_1.OptionalType:return"null";case parser_1.TypeReference:return d(o.type);case parser_1.ArrayType:T++;const l=d(o.base);return T--,`arrayOf(\n${" ".repeat(T+2)}${l},\n${" ".repeat(T+2)}${l}\n${" ".repeat(T+1)})`;case parser_1.EnumType:return`"${o.values[0].value}"`;default:return"<>()"}};return Le.map(o=>`${" ".repeat(T+1)}${d(o.type)}`).join(",\n")}getKotlinCode(Le,T){return 0===T.length?`client.${Le}().await();`:`client.${Le}(\n${this.buildKotlinString(T)}\n).await();`}getDartCode(Le,T){return'print("todo");'}getSwiftCode(Le,T){return'print("todo");'}getSdkgenClient(url,ast){const errorFns=ast.errors.reduce((acc,cur)=>{function errorClass(type,base){return eval(`(\n (sup) => class ${type} extends sup {\n type = "${type}";\n message = "";\n ${base===browser_runtime_1.SdkgenErrorWithData?"data = null;":""}\n\n constructor(message${base===browser_runtime_1.SdkgenErrorWithData?", data":""}) {\n super(message${base===browser_runtime_1.SdkgenErrorWithData?", data":""});\n this.message = message;\n ${base===browser_runtime_1.SdkgenErrorWithData?"this.data = data;":""}\n this.toString = () => this.type + ": " + this.message;\n }\n }\n )`)(base)}return"string"==typeof cur?acc[cur]=errorClass(cur,browser_runtime_1.SdkgenError):acc[cur[0]]=errorClass(cur[0],browser_runtime_1.SdkgenErrorWithData),acc},{}),clientInstance=new browser_runtime_1.SdkgenHttpClient(url,ast,errorFns);return new Proxy(clientInstance,{get:(Le,T)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(T.toString())?clientInstance[T.toString()]:function(){var d=_asyncToGenerator(function*(o){return clientInstance.makeRequest(T.toString(),o)});return function(o){return d.apply(this,arguments)}}()})}}exports.SdkgenService=SdkgenService,SdkgenService.\u0275fac=function(T){return new(T||SdkgenService)},SdkgenService.\u0275prov=i0.\u0275\u0275defineInjectable({token:SdkgenService,factory:SdkgenService.\u0275fac,providedIn:"root"})},7822:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(1052).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleCallComponent=void 0;const tslib_1=__webpack_require__(4762),forms_1=__webpack_require__(3679),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=tslib_1.__importStar(__webpack_require__(7716)),i1=tslib_1.__importStar(__webpack_require__(6395)),i2=tslib_1.__importStar(__webpack_require__(1430)),i3=tslib_1.__importStar(__webpack_require__(5939)),i4=tslib_1.__importStar(__webpack_require__(1095)),i5=tslib_1.__importStar(__webpack_require__(2421)),i6=tslib_1.__importStar(__webpack_require__(5151)),i7=tslib_1.__importStar(__webpack_require__(3679)),i8=tslib_1.__importStar(__webpack_require__(1103)),i9=tslib_1.__importStar(__webpack_require__(8495));class SimpleCallComponent{constructor(Le){this.sdkgen=Le,this.editorOptions={theme:"vs-dark",language:"json"},this.code="",this.selected=new forms_1.FormControl(0),this.consoleItems=[]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Le=>{!Le||(this.generateFunctionCode(Le.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(Le.url,Le.astJson))})}ngOnDestroy(){var Le;null===(Le=this.state$)||void 0===Le||Le.unsubscribe()}run(){var _this=this;return _asyncToGenerator(function*(){{const events=_this.consoleItems;eval(code_execution_1.wrapper)}const exec=_this.client[_this.fn](JSON.parse(_this.code));try{_this.response={result:yield exec}}catch(Le){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Le.toString()}),delete Le.toString,_this.response={error:{type:Le.type,message:Le.message,data:Le.data}}}finally{eval(code_execution_1.unwrap),_this.selected.setValue(1)}})()}generateFunctionCode(Le,T){var d;const o=null===(d=Le.operations.find(l=>l.name===T))||void 0===d?void 0:d.args;o&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(o),null,2))}}exports.SimpleCallComponent=SimpleCallComponent,SimpleCallComponent.\u0275fac=function(T){return new(T||SimpleCallComponent)(i0.\u0275\u0275directiveInject(i1.SdkgenService))},SimpleCallComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:SimpleCallComponent,selectors:[["app-simple-call"]],inputs:{fn:"fn"},decls:12,vars:7,consts:[["direction","vertical"],["animationDuration","0ms",3,"selectedIndex","selectedIndexChange"],["label","Requisi\xe7\xe3o"],["mat-fab","",1,"run-fab",3,"click"],[3,"options","ngModel","ngModelChange"],["label","Resposta",3,"disabled"],[3,"json"],[3,"size"],[3,"items"]],template:function(T,d){1&T&&(i0.\u0275\u0275elementStart(0,"as-split",0),i0.\u0275\u0275elementStart(1,"as-split-area"),i0.\u0275\u0275elementStart(2,"mat-tab-group",1),i0.\u0275\u0275listener("selectedIndexChange",function(l){return d.selected.setValue(l)}),i0.\u0275\u0275elementStart(3,"mat-tab",2),i0.\u0275\u0275elementStart(4,"button",3),i0.\u0275\u0275listener("click",function(){return d.run()}),i0.\u0275\u0275elementStart(5,"mat-icon"),i0.\u0275\u0275text(6,"play_arrow"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(7,"ngx-monaco-editor",4),i0.\u0275\u0275listener("ngModelChange",function(l){return d.code=l}),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(8,"mat-tab",5),i0.\u0275\u0275element(9,"ngx-json-viewer",6),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(10,"as-split-area",7),i0.\u0275\u0275element(11,"app-console",8),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd()),2&T&&(i0.\u0275\u0275advance(2),i0.\u0275\u0275property("selectedIndex",d.selected.value),i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",d.editorOptions)("ngModel",d.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("disabled",!d.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("json",d.response),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",d.consoleItems))},directives:[i2.SplitComponent,i2.SplitAreaDirective,i3.MatTabGroup,i3.MatTab,i4.MatButton,i5.MatIcon,i6.MonacoEditorComponent,i7.NgControlStatus,i7.NgModel,i8.NgxJsonViewerComponent,i9.ConsoleComponent],styles:["[_nghost-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%]{height:100%}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden!important}mat-tab-group[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%}"]})},4264:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";var _asyncToGenerator=__webpack_require__(1052).default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.TabEditorComponent=void 0;const tslib_1=__webpack_require__(4762),typescript_generator_1=__webpack_require__(282),console_types_1=__webpack_require__(9972),code_execution_1=__webpack_require__(8227),i0=tslib_1.__importStar(__webpack_require__(7716)),i1=tslib_1.__importStar(__webpack_require__(6395)),i2=tslib_1.__importStar(__webpack_require__(1095)),i3=tslib_1.__importStar(__webpack_require__(2421)),i4=tslib_1.__importStar(__webpack_require__(1430)),i5=tslib_1.__importStar(__webpack_require__(5151)),i6=tslib_1.__importStar(__webpack_require__(3679)),i7=tslib_1.__importStar(__webpack_require__(8495));class TabEditorComponent{constructor(Le){this.sdkgen=Le,this.code="",this.editorOptions={theme:"vs-dark",language:"typescript"},this.consoleItems=[{type:console_types_1.ConsoleItemType.INFO,message:"Bem-vindo! A sa\xedda dos seus testes aparecer\xe1 aqui :)"}]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Le=>{if(!Le)return;const T=`${this.patchBrowserClientSource(typescript_generator_1.generateBrowserClientSource(Le.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(Le.url,Le.astJson),monaco.languages.typescript.typescriptDefaults.getCompilerOptions().target=monaco.languages.typescript.ScriptTarget.ESNext,monaco.languages.typescript.typescriptDefaults.getCompilerOptions().module=monaco.languages.typescript.ModuleKind.ESNext,monaco.languages.typescript.typescriptDefaults.getDiagnosticsOptions().diagnosticCodesToIgnore=[1375];const d=monaco.editor.getModels().find(l=>l.uri.toString().endsWith("client.d.ts"));d?d.setValue(T):monaco.editor.createModel(T,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[o]=Le.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(o.name,this.sdkgen.buildJsonObject(o.args))})}ngOnDestroy(){var Le;null===(Le=this.state$)||void 0===Le||Le.unsubscribe()}patchBrowserClientSource(Le){return`declare namespace sdkgen {\n${Le.substring(95,Le.indexOf("const errClasses")).replace(/ extends SdkgenError/g," extends Error").replace(/ extends SdkgenHttpClient/g,"").replace(/{ return this.makeRequest\(.*$/gm,"").replace(/ {\n {8}super\(baseUrl, astJson, errClasses\);\n {4}}/g,"").replace("constructor(","\n baseUrl: string;\n extra = new Map<string, any>();\n successHook: (result: any, name: string, args: any) => void = () => undefined;\n errorHook: (result: any, name: string, args: any) => void = () => undefined;\n async makeRequest(functionName: string, args: unknown): Promise<any>;\n \nconstructor(")}\n}\n`}run(){var _this=this;return _asyncToGenerator(function*(){try{yield eval(`\n (async (client, events) => {\n ${code_execution_1.wrapper}\n ${_this.code}\n })\n `)(_this.client,_this.consoleItems).finally(()=>eval(code_execution_1.unwrap))}catch(Le){_this.consoleItems.push({type:console_types_1.ConsoleItemType.ERROR,message:Le.toString()})}})()}}exports.TabEditorComponent=TabEditorComponent,TabEditorComponent.\u0275fac=function(T){return new(T||TabEditorComponent)(i0.\u0275\u0275directiveInject(i1.SdkgenService))},TabEditorComponent.\u0275cmp=i0.\u0275\u0275defineComponent({type:TabEditorComponent,selectors:[["app-tab-editor"]],decls:8,vars:4,consts:[["mat-fab","",1,"run-fab",3,"click"],["direction","vertical"],[1,"o-hidden"],[3,"options","ngModel","ngModelChange"],[3,"size"],[3,"items"]],template:function(T,d){1&T&&(i0.\u0275\u0275elementStart(0,"button",0),i0.\u0275\u0275listener("click",function(){return d.run()}),i0.\u0275\u0275elementStart(1,"mat-icon"),i0.\u0275\u0275text(2,"play_arrow"),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(3,"as-split",1),i0.\u0275\u0275elementStart(4,"as-split-area",2),i0.\u0275\u0275elementStart(5,"ngx-monaco-editor",3),i0.\u0275\u0275listener("ngModelChange",function(l){return d.code=l}),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementStart(6,"as-split-area",4),i0.\u0275\u0275element(7,"app-console",5),i0.\u0275\u0275elementEnd(),i0.\u0275\u0275elementEnd()),2&T&&(i0.\u0275\u0275advance(5),i0.\u0275\u0275property("options",d.editorOptions)("ngModel",d.code),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("size",30),i0.\u0275\u0275advance(1),i0.\u0275\u0275property("items",d.consoleItems))},directives:[i2.MatButton,i3.MatIcon,i4.SplitComponent,i4.SplitAreaDirective,i5.MonacoEditorComponent,i6.NgControlStatus,i6.NgModel,i7.ConsoleComponent],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:calc(100% - 4px);margin-top:4px} .scroll-decoration{display:none}.o-hidden[_ngcontent-%COMP%]{overflow:hidden!important}"]})},5585:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.TabHomeComponent=void 0;const o=d(4762),l=d(7716),h=d(9435),_=d(5281),a=o.__importStar(d(7716)),C=o.__importStar(d(6395)),w=o.__importStar(d(2238)),D=o.__importStar(d(7120)),g=o.__importStar(d(1430)),E=o.__importStar(d(3679)),M=o.__importStar(d(8583)),S=o.__importStar(d(1436)),P=o.__importStar(d(1095)),L=o.__importStar(d(2421)),j=o.__importStar(d(5939)),ae=o.__importStar(d(5151)),he=o.__importStar(d(2675)),ye=o.__importStar(d(2789)),$e=o.__importStar(d(4211));function at(Je,ze){if(1&Je&&(a.\u0275\u0275elementStart(0,"span",8),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Je){const He=a.\u0275\u0275nextContext().$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.description)}}const Ze=function(Je){return{active:Je}};function Me(Je,ze){if(1&Je){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"li",5),a.\u0275\u0275listener("click",function(){const ft=a.\u0275\u0275restoreView(He).$implicit;return a.\u0275\u0275nextContext().selectedFunction=ft}),a.\u0275\u0275elementStart(1,"span",6),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(3,at,2,1,"span",7),a.\u0275\u0275elementEnd()}if(2&Je){const He=ze.$implicit,q=a.\u0275\u0275nextContext();a.\u0275\u0275property("ngClass",a.\u0275\u0275pureFunction1(3,Ze,(null==q.selectedFunction?null:q.selectedFunction.name)===He.name)),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(He.name),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",He.description)}}function Re(Je,ze){1&Je&&a.\u0275\u0275element(0,"span")}function Pe(Je,ze){if(1&Je){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"span"),a.\u0275\u0275element(1,"br"),a.\u0275\u0275text(2,"\xa0\xa0"),a.\u0275\u0275elementStart(3,"span",37),a.\u0275\u0275text(4),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(5,"span",14),a.\u0275\u0275text(6,":"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(7,"\xa0"),a.\u0275\u0275elementStart(8,"u",15),a.\u0275\u0275listener("click",function(){const ft=a.\u0275\u0275restoreView(He).$implicit;return a.\u0275\u0275nextContext(2).showDocumentation(ft.rawType)}),a.\u0275\u0275text(9),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(10,Re,1,0,"span",38),a.\u0275\u0275elementEnd()}if(2&Je){const He=ze.$implicit,q=ze.index;a.\u0275\u0275nextContext();const Ge=a.\u0275\u0275reference(18),ft=a.\u0275\u0275reference(20),vt=a.\u0275\u0275nextContext();a.\u0275\u0275advance(4),a.\u0275\u0275textInterpolate(He.name),a.\u0275\u0275advance(4),a.\u0275\u0275property("matTooltip",vt.getTooltip(He.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.type),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",q!=vt.selectedFunction.args.length-1)("ngIfThen",Ge)("ngIfElse",ft)}}function Ne(Je,ze){1&Je&&a.\u0275\u0275text(0,",")}function Ct(Je,ze){1&Je&&a.\u0275\u0275element(0,"br")}function te(Je,ze){if(1&Je){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"u",29),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(He);const Ge=a.\u0275\u0275nextContext().$implicit;return a.\u0275\u0275nextContext(3).showDocumentation(Ge.dataType)}),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()}if(2&Je){const He=a.\u0275\u0275nextContext().$implicit,q=a.\u0275\u0275nextContext(3);a.\u0275\u0275property("matTooltip",q.getTooltip(He.dataType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate1("(",He.dataType.name,")")}}function ge(Je,ze){if(1&Je&&(a.\u0275\u0275elementStart(0,"mat-chip",42),a.\u0275\u0275elementStart(1,"span",28),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275element(3,"i"),a.\u0275\u0275elementStart(4,"span",28),a.\u0275\u0275text(5),a.\u0275\u0275template(6,te,2,2,"u",43),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&Je){const He=ze.$implicit;a.\u0275\u0275property("disableRipple",!0),a.\u0275\u0275advance(2),a.\u0275\u0275textInterpolate(He.name),a.\u0275\u0275advance(3),a.\u0275\u0275textInterpolate1("",He.type," "),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngIf",He.dataType&&"void"!==He.dataType.name)}}function X(Je,ze){if(1&Je&&(a.\u0275\u0275elementStart(0,"section",39),a.\u0275\u0275elementStart(1,"mat-chip-list",40),a.\u0275\u0275template(2,ge,7,4,"mat-chip",41),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&Je){const He=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275property("selectable",!1),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngForOf",He.selectedFunction.labels)}}function ce(Je,ze){if(1&Je&&(a.\u0275\u0275elementStart(0,"p"),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Je){const He=a.\u0275\u0275nextContext(2);a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.selectedFunction.description)}}function Ae(Je,ze){1&Je&&(a.\u0275\u0275elementStart(0,"p",44),a.\u0275\u0275text(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),a.\u0275\u0275elementEnd())}function Ce(Je,ze){1&Je&&(a.\u0275\u0275elementStart(0,"p",44),a.\u0275\u0275text(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),a.\u0275\u0275elementEnd())}function Ue(Je,ze){1&Je&&(a.\u0275\u0275elementStart(0,"th",54),a.\u0275\u0275text(1,"Nome"),a.\u0275\u0275elementEnd())}function et(Je,ze){if(1&Je&&(a.\u0275\u0275elementStart(0,"td",55),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Je){const He=ze.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.name)}}function pt(Je,ze){1&Je&&(a.\u0275\u0275elementStart(0,"th",54),a.\u0275\u0275text(1,"Tipo"),a.\u0275\u0275elementEnd())}function je(Je,ze){if(1&Je){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"td",55),a.\u0275\u0275elementStart(1,"u",29),a.\u0275\u0275listener("click",function(){const ft=a.\u0275\u0275restoreView(He).$implicit;return a.\u0275\u0275nextContext(3).showDocumentation(ft.rawType)}),a.\u0275\u0275text(2),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()}if(2&Je){const He=ze.$implicit,q=a.\u0275\u0275nextContext(3);a.\u0275\u0275advance(1),a.\u0275\u0275property("matTooltip",q.getTooltip(He.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.type)}}function tt(Je,ze){1&Je&&(a.\u0275\u0275elementStart(0,"th",54),a.\u0275\u0275text(1,"Descri\xe7\xe3o"),a.\u0275\u0275elementEnd())}function ut(Je,ze){if(1&Je&&(a.\u0275\u0275elementStart(0,"td",56),a.\u0275\u0275text(1),a.\u0275\u0275elementEnd()),2&Je){const He=ze.$implicit;a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.description||"-")}}function It(Je,ze){1&Je&&a.\u0275\u0275element(0,"tr",57)}function Xe(Je,ze){1&Je&&a.\u0275\u0275element(0,"tr",58)}function dt(Je,ze){if(1&Je&&(a.\u0275\u0275elementStart(0,"table",45),a.\u0275\u0275elementContainerStart(1,46),a.\u0275\u0275template(2,Ue,2,0,"th",47),a.\u0275\u0275template(3,et,2,1,"td",48),a.\u0275\u0275elementContainerEnd(),a.\u0275\u0275elementContainerStart(4,49),a.\u0275\u0275template(5,pt,2,0,"th",47),a.\u0275\u0275template(6,je,3,2,"td",48),a.\u0275\u0275elementContainerEnd(),a.\u0275\u0275elementContainerStart(7,50),a.\u0275\u0275template(8,tt,2,0,"th",47),a.\u0275\u0275template(9,ut,2,1,"td",51),a.\u0275\u0275elementContainerEnd(),a.\u0275\u0275template(10,It,1,0,"tr",52),a.\u0275\u0275template(11,Xe,1,0,"tr",53),a.\u0275\u0275elementEnd()),2&Je){const He=a.\u0275\u0275nextContext(2);a.\u0275\u0275property("dataSource",He.selectedFunction.args),a.\u0275\u0275advance(10),a.\u0275\u0275property("matHeaderRowDef",He.argumentsTableColumns),a.\u0275\u0275advance(1),a.\u0275\u0275property("matRowDefColumns",He.argumentsTableColumns)}}function $(Je,ze){1&Je&&(a.\u0275\u0275elementStart(0,"span",59),a.\u0275\u0275text(1,"Dart"),a.\u0275\u0275elementEnd())}function se(Je,ze){1&Je&&(a.\u0275\u0275elementStart(0,"span",59),a.\u0275\u0275text(1,"Swift"),a.\u0275\u0275elementEnd())}const H=function(){return{theme:"vs-dark",language:"javascript"}},le=function(){return{theme:"vs-dark",language:"kotlin"}},ne=function(){return{theme:"vs-dark",language:"dart"}},fe=function(){return{theme:"vs-dark",language:"swift"}};function Oe(Je,ze){if(1&Je){const He=a.\u0275\u0275getCurrentView();a.\u0275\u0275elementStart(0,"article"),a.\u0275\u0275elementStart(1,"header"),a.\u0275\u0275elementStart(2,"h1",9),a.\u0275\u0275elementStart(3,"span",10),a.\u0275\u0275elementStart(4,"span",11),a.\u0275\u0275text(5,"fn"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(6,"\xa0"),a.\u0275\u0275elementStart(7,"span",12),a.\u0275\u0275text(8),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(9,"("),a.\u0275\u0275template(10,Pe,11,6,"span",13),a.\u0275\u0275text(11,")"),a.\u0275\u0275elementStart(12,"span",14),a.\u0275\u0275text(13,":"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(14,"\xa0"),a.\u0275\u0275elementStart(15,"u",15),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(He);const Ge=a.\u0275\u0275nextContext();return Ge.showDocumentation(Ge.selectedFunction.returns.rawType)}),a.\u0275\u0275text(16),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(17,Ne,1,0,"ng-template",null,16,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275template(19,Ct,1,0,"ng-template",null,17,a.\u0275\u0275templateRefExtractor),a.\u0275\u0275element(21,"s"),a.\u0275\u0275elementStart(22,"button",18),a.\u0275\u0275listener("click",function(){return a.\u0275\u0275restoreView(He),a.\u0275\u0275nextContext().addSimpleCallTab()}),a.\u0275\u0275elementStart(23,"mat-icon"),a.\u0275\u0275text(24,"play_arrow"),a.\u0275\u0275elementEnd(),a.\u0275\u0275text(25,"\xa0EXECUTAR "),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275template(26,X,3,2,"section",19),a.\u0275\u0275elementStart(27,"section",9),a.\u0275\u0275elementStart(28,"h2",20),a.\u0275\u0275text(29,"Descri\xe7\xe3o"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(30,"div",21),a.\u0275\u0275template(31,ce,2,1,"p",22),a.\u0275\u0275template(32,Ae,2,0,"p",23),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(33,"h2",24),a.\u0275\u0275text(34,"Par\xe2metros"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(35,"div",21),a.\u0275\u0275template(36,Ce,2,0,"p",23),a.\u0275\u0275elementStart(37,"div",25),a.\u0275\u0275template(38,dt,12,3,"table",26),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(39,"h2",27),a.\u0275\u0275text(40,"Retorno"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(41,"div"),a.\u0275\u0275elementStart(42,"p",28),a.\u0275\u0275elementStart(43,"u",29),a.\u0275\u0275listener("click",function(){a.\u0275\u0275restoreView(He);const Ge=a.\u0275\u0275nextContext();return Ge.showDocumentation(Ge.selectedFunction.returns.rawType)}),a.\u0275\u0275text(44),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(45,"h2",30),a.\u0275\u0275text(46,"Exemplo de Requisi\xe7\xe3o"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(47,"mat-tab-group",31),a.\u0275\u0275elementStart(48,"mat-tab",32),a.\u0275\u0275element(49,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(50,"mat-tab",34),a.\u0275\u0275element(51,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(52,"mat-tab",35),a.\u0275\u0275template(53,$,2,0,"ng-template",36),a.\u0275\u0275element(54,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(55,"mat-tab",35),a.\u0275\u0275template(56,se,2,0,"ng-template",36),a.\u0275\u0275element(57,"ngx-monaco-editor",33),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()}if(2&Je){const He=a.\u0275\u0275nextContext();a.\u0275\u0275advance(8),a.\u0275\u0275textInterpolate(He.selectedFunction.name),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",He.selectedFunction.args),a.\u0275\u0275advance(5),a.\u0275\u0275property("matTooltip",He.getTooltip(He.selectedFunction.returns.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.selectedFunction.returns.type),a.\u0275\u0275advance(10),a.\u0275\u0275property("ngIf",He.selectedFunction.labels.length>0),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngSwitch",!!He.selectedFunction.description),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!1),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngSwitch",He.selectedFunction.args.length),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",0),a.\u0275\u0275advance(7),a.\u0275\u0275property("matTooltip",He.getTooltip(He.selectedFunction.returns.rawType)),a.\u0275\u0275advance(1),a.\u0275\u0275textInterpolate(He.selectedFunction.returns.type),a.\u0275\u0275advance(5),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(20,H))("ngModel",He.selectedFunction.examples.typeScript),a.\u0275\u0275advance(2),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(21,le))("ngModel",He.selectedFunction.examples.kotlin),a.\u0275\u0275advance(3),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(22,ne))("ngModel",He.selectedFunction.examples.dart),a.\u0275\u0275advance(3),a.\u0275\u0275property("options",a.\u0275\u0275pureFunction0(23,fe))("ngModel",He.selectedFunction.examples.swift)}}const rt=function(){return{standalone:!0}};class wt{constructor(ze,He,q){this.sdkgen=ze,this.dialog=He,this.responsive=q,this.isBelowMd=!1,this.runFunction=new l.EventEmitter,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(ze=>{!ze||(this.selectedFunction=void 0,this.fnTable=ze.astRoot.operations.sort((He,q)=>He.name.localeCompare(q.name)).map(He=>{var q,Ge,ft;const vt=ze.astJson.annotations[`fn.${He.name}`],Ye=this.sdkgen.buildJsonObject(He.args);return(null==vt?void 0:vt.find(x=>"hidden"===x.type))?null:{name:He.name,description:null===(q=null==vt?void 0:vt.find(x=>"description"===x.type))||void 0===q?void 0:q.value,args:He.args.map(({name:x,type:F})=>{var R,de,z;return{name:x,description:null===(z=[...null!==(R=ze.astJson.annotations[`type.${F}.${x}`])&&void 0!==R?R:[],...null!==(de=ze.astJson.annotations[`fn.${He.name}.${x}`])&&void 0!==de?de:[]].find(Be=>"description"===Be.type))||void 0===z?void 0:z.value,type:F.name,rawType:F}}),argsStr:He.args.map(x=>`${x.name}: ${x.type.name}`).join(", "),argsFields:He.args,returns:{type:He.returnType.name,rawType:He.returnType},labels:null!==(Ge=null==vt?void 0:vt.filter(x=>["rest","throws"].includes(x.type)).map(x=>{var F;return"rest"===x.type?{name:"REST",type:`${x.value.method} ${x.value.path}`}:"throws"===x.type?{name:"THROWS",type:x.value,dataType:null===(F=ze.astRoot.errors.find(R=>R.name===x.value))||void 0===F?void 0:F.dataType}:{name:"?",type:"?"}}))&&void 0!==Ge?Ge:[],throws:null===(ft=null==vt?void 0:vt.find(x=>"throws"===x.type))||void 0===ft?void 0:ft.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(He.name,Ye),kotlin:this.sdkgen.getKotlinCode(He.name,He.args),dart:this.sdkgen.getDartCode(He.name,Ye),swift:this.sdkgen.getSwiftCode(He.name,Ye)}}}).filter(He=>Boolean(He)))})}ngOnDestroy(){var ze,He;null===(ze=this.state$)||void 0===ze||ze.unsubscribe(),null===(He=this.responsive$)||void 0===He||He.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 h.getTypeDoc(ze).shortDescription}showDocumentation(ze){this.dialog.open(_.TypeDetailsComponent,{position:{right:"0",top:"0",bottom:"0"},data:{type:ze},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}T.TabHomeComponent=wt,wt.\u0275fac=function(ze){return new(ze||wt)(a.\u0275\u0275directiveInject(C.SdkgenService),a.\u0275\u0275directiveInject(w.MatDialog),a.\u0275\u0275directiveInject(D.ResponsiveService))},wt.\u0275cmp=a.\u0275\u0275defineComponent({type:wt,selectors:[["app-tab-home"]],outputs:{runFunction:"runFunction"},decls:11,vars:10,consts:[["unit","pixel",3,"direction"],[3,"size"],["type","search","placeholder","Buscar\u2026",3,"ngModel","ngModelOptions","ngModelChange"],[3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],[3,"ngClass","click"],[1,"fn-call"],["class","fn-description",4,"ngIf"],[1,"fn-description"],[1,"container"],[1,"mono","hide-overflow"],[1,"k-fn"],[1,"k-name"],[4,"ngFor","ngForOf"],[1,"k-sym"],[1,"k-type",3,"matTooltip","click"],["comma",""],["lineBreak",""],["mat-raised-button","","color","primary",3,"click"],["class","container","id","labels",4,"ngIf"],["id","description"],[3,"ngSwitch"],[4,"ngSwitchCase"],["class","no-content",4,"ngSwitchCase"],["id","parameters"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource",4,"ngSwitchDefault"],["id","returns"],[1,"mono"],[3,"matTooltip","click"],["id","sample-calls"],["animationDuration","0ms"],["label","TypeScript"],[3,"options","ngModel"],["label","Kotlin"],["disabled",""],["mat-tab-label",""],[1,"k-arg-name"],[4,"ngIf","ngIfThen","ngIfElse"],["id","labels",1,"container"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["color","primary",3,"disableRipple"],[3,"matTooltip","click",4,"ngIf"],[1,"no-content"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matTooltip","Em breve!"]],template:function(ze,He){1&ze&&(a.\u0275\u0275elementStart(0,"as-split",0),a.\u0275\u0275elementStart(1,"as-split-area",1),a.\u0275\u0275elementStart(2,"aside"),a.\u0275\u0275elementStart(3,"nav"),a.\u0275\u0275elementStart(4,"form"),a.\u0275\u0275elementStart(5,"input",2),a.\u0275\u0275listener("ngModelChange",function(Ge){return He.searchText=Ge}),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(6,"ul"),a.\u0275\u0275template(7,Me,4,5,"li",3),a.\u0275\u0275pipe(8,"appFilter"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementStart(9,"as-split-area"),a.\u0275\u0275template(10,Oe,58,24,"article",4),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&ze&&(a.\u0275\u0275property("direction",He.isBelowMd?"vertical":"horizontal"),a.\u0275\u0275advance(1),a.\u0275\u0275property("size",He.isBelowMd?130:350),a.\u0275\u0275advance(4),a.\u0275\u0275property("ngModel",He.searchText)("ngModelOptions",a.\u0275\u0275pureFunction0(9,rt)),a.\u0275\u0275advance(2),a.\u0275\u0275property("ngForOf",a.\u0275\u0275pipeBind2(8,6,He.fnTable,He.searchText)),a.\u0275\u0275advance(3),a.\u0275\u0275property("ngIf",He.selectedFunction))},directives:[g.SplitComponent,g.SplitAreaDirective,E.\u0275NgNoValidate,E.NgControlStatusGroup,E.NgForm,E.DefaultValueAccessor,E.NgControlStatus,E.NgModel,M.NgForOf,M.NgIf,M.NgClass,S.MatTooltip,P.MatButton,L.MatIcon,M.NgSwitch,M.NgSwitchCase,M.NgSwitchDefault,j.MatTabGroup,j.MatTab,ae.MonacoEditorComponent,j.MatTabLabel,he.MatChipList,he.MatChip,ye.MatTable,ye.MatColumnDef,ye.MatHeaderCellDef,ye.MatCellDef,ye.MatHeaderRowDef,ye.MatRowDef,ye.MatHeaderCell,ye.MatCell,ye.MatHeaderRow,ye.MatRow],pipes:[$e.FilterPipe],styles:['[_nghost-%COMP%]{display:block;width:100%;height:100%;overflow:hidden!important}aside[_ngcontent-%COMP%]{display:block;background:#2b2b2b;height:100%;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}nav[_ngcontent-%COMP%]{display:block;width:100%}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{display:block;width:100%;padding:10px;background:#2b2b2b;border-bottom:1px solid #444444;position:sticky;top:0;left:0;right:0;z-index:2}nav[_ngcontent-%COMP%] form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{display:block;background:#444444;border:0 none;color:#fff;width:100%;padding:5px}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{width:100%;padding:15px 10px;border-bottom:1px solid #444444;cursor:pointer}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.active[_ngcontent-%COMP%]{background-color:#0003}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#0000004d}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;word-break:break-all}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-call[_ngcontent-%COMP%]{font-family:"Roboto Mono",monospace}nav[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span.fn-description[_ngcontent-%COMP%]{color:#777;font-size:.9rem;margin-top:5px}u[_ngcontent-%COMP%]{-webkit-text-decoration-style:dotted;text-decoration-style:dotted;cursor:pointer;font-family:"Roboto Mono",monospace}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%]{background-color:#2b2b2b;padding:25px 20px;width:100%;position:sticky;top:0;left:0;right:0;z-index:3}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 auto;font-weight:300;line-height:36px;white-space:pre}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span.hide-overflow[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] s[_ngcontent-%COMP%]{flex-grow:1}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-fn[_ngcontent-%COMP%]{color:#c586c0}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-name[_ngcontent-%COMP%]{color:#dcdcaa}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-arg-name[_ngcontent-%COMP%]{color:#9cdcfe}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-sym[_ngcontent-%COMP%]{color:#d4d4d4}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-type[_ngcontent-%COMP%]{color:#569cd6}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:130px;align-self:center}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{display:block;padding:0 20px 15px}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%]{padding:20px 20px 0}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{overflow:hidden}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:block;width:1.3px;background:#FFF;margin:0 7.5px;border-radius:5px;height:calc(100% + 14px)}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:300;margin-top:40px;text-transform:uppercase}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .no-content[_ngcontent-%COMP%]{background-color:#383838;color:#fafafa;display:inline-block;padding:15px;border-radius:5px;margin-top:0}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] table[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .table-responsive[_ngcontent-%COMP%], article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] mat-tab-group[_ngcontent-%COMP%]{width:100%;max-width:720px}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%;min-height:300px}']})},2665:(Le,T,d)=>{"use strict";var o=d(1052).default;Object.defineProperty(T,"__esModule",{value:!0}),T.TabNavComponent=void 0;const l=d(4762),h=d(3679),_=d(3979),a=l.__importStar(d(7716)),C=l.__importStar(d(6395)),w=l.__importStar(d(9344)),D=l.__importStar(d(3679)),g=l.__importStar(d(8583)),E=l.__importStar(d(2421));function M(L,j){1&L&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"mat-icon",5),a.\u0275\u0275text(2,"loop"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd())}function S(L,j){1&L&&(a.\u0275\u0275elementContainerStart(0),a.\u0275\u0275elementStart(1,"mat-icon"),a.\u0275\u0275text(2,"arrow_forward"),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementContainerEnd())}class P{constructor(j,ae){this.sdkgen=j,this.toastr=ae,this.loading=!1,this.url=new h.FormControl("")}ngOnInit(){fetch("/ast.json").then(j=>{j.ok&&this.url.setValue(`${window.location.protocol}://${window.location.hostname}`)}).catch(()=>{})}loadUrl(j){var ae=this;return o(function*(){j.preventDefault();try{ae.loading=!0,/^https?:\/\//.test(ae.url.value)||ae.url.setValue(`https://${ae.url.value}`);const he=new URL(ae.url.value);he.pathname+=(/\/$/u.test(he.pathname)?"":"/")+"ast.json";const ye=he.toString();console.debug("astUrl",ye);const $e=yield fetch(ye).then(at=>at.ok?at.json():at);if($e instanceof Response)throw $e instanceof Error?$e:new Error($e.statusText);if(!$e.errors||!$e.functionTable||!$e.typeTable)throw new Error("Invalid AST");for(;"undefined"==typeof monaco;)yield new Promise(at=>setTimeout(at,250));console.debug("astJson",$e),ae.sdkgen.state$.next({astJson:$e,astRoot:_.jsonToAst($e),url:ae.url.value})}catch(he){ae.toastr.error(he instanceof Error?he.message:JSON.stringify(he),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{ae.loading=!1}})()}}T.TabNavComponent=P,P.\u0275fac=function(j){return new(j||P)(a.\u0275\u0275directiveInject(C.SdkgenService),a.\u0275\u0275directiveInject(w.ToastrService))},P.\u0275cmp=a.\u0275\u0275defineComponent({type:P,selectors:[["app-tab-nav"]],decls:6,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],[1,"loader"]],template:function(j,ae){1&j&&(a.\u0275\u0275element(0,"img",0),a.\u0275\u0275elementStart(1,"form",1),a.\u0275\u0275listener("submit",function(ye){return ae.loadUrl(ye)}),a.\u0275\u0275element(2,"input",2),a.\u0275\u0275elementStart(3,"button",3),a.\u0275\u0275template(4,M,3,0,"ng-container",4),a.\u0275\u0275template(5,S,3,0,"ng-container",4),a.\u0275\u0275elementEnd(),a.\u0275\u0275elementEnd()),2&j&&(a.\u0275\u0275advance(2),a.\u0275\u0275property("formControl",ae.url)("readonly",ae.loading),a.\u0275\u0275advance(1),a.\u0275\u0275property("disabled",ae.loading)("ngSwitch",ae.loading),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!0),a.\u0275\u0275advance(1),a.\u0275\u0275property("ngSwitchCase",!1))},directives:[D.\u0275NgNoValidate,D.NgControlStatusGroup,D.NgForm,D.DefaultValueAccessor,D.NgControlStatus,D.FormControlDirective,g.NgSwitch,g.NgSwitchCase,E.MatIcon],styles:["[_nghost-%COMP%]{display:flex;height:42px;background-color:#2b2b2b;box-shadow:0 0 3px #00000080}img[_ngcontent-%COMP%]{padding:5px}form[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-grow:1;box-shadow:0 0 1px #00000080;background:#383838;border:0 none;border-radius:5px;margin:5px 10vw 5px calc(10vw - 42px);overflow:hidden}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex-grow:1;padding:10px 5px;background:transparent;border:0 none;text-align:center;color:#ccc}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:transparent;color:#bfbfbf;border:0 none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#0003}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{animation:spin 2s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})},5281:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.TypeDetailsComponent=void 0;const o=d(4762),l=d(2238),h=d(9435),_=o.__importStar(d(7716)),a=o.__importStar(d(2238)),C=o.__importStar(d(8583)),w=o.__importStar(d(2675)),D=o.__importStar(d(1095)),g=o.__importStar(d(2421)),E=o.__importStar(d(2789)),M=o.__importStar(d(1436));function S(ge,X){1&ge&&(_.\u0275\u0275elementStart(0,"button",6),_.\u0275\u0275elementStart(1,"mat-icon"),_.\u0275\u0275text(2,"arrow_back"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd())}function P(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"mat-chip",7),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&ge){const ce=X.$implicit;_.\u0275\u0275property("disableRipple",!0),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(ce)}}function L(ge,X){1&ge&&(_.\u0275\u0275elementStart(0,"button",8),_.\u0275\u0275elementStart(1,"mat-icon"),_.\u0275\u0275text(2,"close"),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd())}function j(ge,X){1&ge&&(_.\u0275\u0275elementStart(0,"th",19),_.\u0275\u0275text(1,"Nome"),_.\u0275\u0275elementEnd())}function ae(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"td",20),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&ge){const ce=X.$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(ce.name)}}function he(ge,X){1&ge&&(_.\u0275\u0275elementStart(0,"th",19),_.\u0275\u0275text(1,"Tipo"),_.\u0275\u0275elementEnd())}function ye(ge,X){if(1&ge){const ce=_.\u0275\u0275getCurrentView();_.\u0275\u0275elementStart(0,"td",20),_.\u0275\u0275elementStart(1,"u",21),_.\u0275\u0275listener("click",function(){const Ue=_.\u0275\u0275restoreView(ce).$implicit;return _.\u0275\u0275nextContext(2).showDocumentation(Ue.type)}),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()}if(2&ge){const ce=X.$implicit,Ae=_.\u0275\u0275nextContext(2);_.\u0275\u0275advance(1),_.\u0275\u0275property("matTooltip",Ae.getTooltip(ce.type)),_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(ce.type.name)}}function $e(ge,X){1&ge&&(_.\u0275\u0275elementStart(0,"th",19),_.\u0275\u0275text(1,"Descri\xe7\xe3o"),_.\u0275\u0275elementEnd())}function at(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"td",22),_.\u0275\u0275text(1),_.\u0275\u0275elementEnd()),2&ge){const ce=X.$implicit;_.\u0275\u0275advance(1),_.\u0275\u0275textInterpolate(ce.description||"-")}}function Ze(ge,X){1&ge&&_.\u0275\u0275element(0,"tr",23)}function Me(ge,X){1&ge&&_.\u0275\u0275element(0,"tr",24)}const Re=function(){return[]};function Pe(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"section"),_.\u0275\u0275elementStart(1,"div",9),_.\u0275\u0275elementStart(2,"table",10),_.\u0275\u0275elementContainerStart(3,11),_.\u0275\u0275template(4,j,2,0,"th",12),_.\u0275\u0275template(5,ae,2,1,"td",13),_.\u0275\u0275elementContainerEnd(),_.\u0275\u0275elementContainerStart(6,14),_.\u0275\u0275template(7,he,2,0,"th",12),_.\u0275\u0275template(8,ye,3,2,"td",13),_.\u0275\u0275elementContainerEnd(),_.\u0275\u0275elementContainerStart(9,15),_.\u0275\u0275template(10,$e,2,0,"th",12),_.\u0275\u0275template(11,at,2,1,"td",16),_.\u0275\u0275elementContainerEnd(),_.\u0275\u0275template(12,Ze,1,0,"tr",17),_.\u0275\u0275template(13,Me,1,0,"tr",18),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&ge){const ce=_.\u0275\u0275nextContext();let Ae;_.\u0275\u0275advance(2),_.\u0275\u0275property("dataSource",null!==(Ae=null==ce.typeDoc?null:ce.typeDoc.structFields)&&void 0!==Ae?Ae:_.\u0275\u0275pureFunction0(3,Re)),_.\u0275\u0275advance(10),_.\u0275\u0275property("matHeaderRowDef",ce.argumentsTableColumns),_.\u0275\u0275advance(1),_.\u0275\u0275property("matRowDefColumns",ce.argumentsTableColumns)}}function Ne(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"li"),_.\u0275\u0275elementStart(1,"code",1),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&ge){const ce=X.$implicit;_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(ce)}}function Ct(ge,X){if(1&ge&&(_.\u0275\u0275elementStart(0,"section"),_.\u0275\u0275elementStart(1,"h3"),_.\u0275\u0275text(2),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(3,"ul"),_.\u0275\u0275template(4,Ne,3,1,"li",25),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementEnd()),2&ge){const ce=_.\u0275\u0275nextContext();_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(null!=ce.typeDoc&&ce.typeDoc.isEnum?"Valores":"Exemplos"),_.\u0275\u0275advance(2),_.\u0275\u0275property("ngForOf",null==ce.typeDoc?null:ce.typeDoc.examples)}}class te{constructor(X,ce,Ae){this.dialogRef=X,this.data=ce,this.dialog=Ae,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=h.getTypeLabels(this.data.type),this.typeDoc=h.getTypeDoc(this.data.type)}getTooltip(X){return h.getTypeDoc(X).shortDescription}showDocumentation(X){this.dialog.open(te,{position:{right:"0"},data:{type:X,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}}T.TypeDetailsComponent=te,te.\u0275fac=function(X){return new(X||te)(_.\u0275\u0275directiveInject(a.MatDialogRef),_.\u0275\u0275directiveInject(l.MAT_DIALOG_DATA),_.\u0275\u0275directiveInject(a.MatDialog))},te.\u0275cmp=_.\u0275\u0275defineComponent({type:te,selectors:[["app-type-details"]],decls:11,vars:8,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","",4,"ngIf"],[1,"mono"],[3,"selectable"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","",1,"close-button"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(X,ce){1&X&&(_.\u0275\u0275elementStart(0,"h1"),_.\u0275\u0275template(1,S,3,0,"button",0),_.\u0275\u0275elementStart(2,"span",1),_.\u0275\u0275text(3),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(4,"mat-chip-list",2),_.\u0275\u0275template(5,P,2,2,"mat-chip",3),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(6,L,3,0,"button",4),_.\u0275\u0275elementEnd(),_.\u0275\u0275elementStart(7,"p"),_.\u0275\u0275text(8),_.\u0275\u0275elementEnd(),_.\u0275\u0275template(9,Pe,14,4,"section",5),_.\u0275\u0275template(10,Ct,5,2,"section",5)),2&X&&(_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",ce.data.subdialog),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(ce.data.type.name),_.\u0275\u0275advance(1),_.\u0275\u0275property("selectable",!1),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngForOf",ce.labels),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",!ce.data.subdialog),_.\u0275\u0275advance(2),_.\u0275\u0275textInterpolate(null==ce.typeDoc?null:ce.typeDoc.longDescription),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",(null==ce.typeDoc?null:ce.typeDoc.isStruct)&&(null==ce.typeDoc?null:ce.typeDoc.structFields)),_.\u0275\u0275advance(1),_.\u0275\u0275property("ngIf",null==ce.typeDoc||null==ce.typeDoc.examples?null:ce.typeDoc.examples.length))},directives:[C.NgIf,w.MatChipList,C.NgForOf,D.MatButton,a.MatDialogClose,g.MatIcon,w.MatChip,E.MatTable,E.MatColumnDef,E.MatHeaderCellDef,E.MatCellDef,E.MatHeaderRowDef,E.MatRowDef,E.MatHeaderCell,E.MatCell,M.MatTooltip,E.MatHeaderRow,E.MatRow],styles:["h1[_ngcontent-%COMP%]{font-weight:200;word-break:break-all;word-wrap:break-word}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline-block;margin-left:10px;-webkit-user-select:none;user-select:none}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-transform:uppercase}h1[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]:focus{outline:none}h1[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{vertical-align:middle}h1[_ngcontent-%COMP%] button.back-button[_ngcontent-%COMP%]{margin-right:10px}h1[_ngcontent-%COMP%] button.close-button[_ngcontent-%COMP%]{float:right}p[_ngcontent-%COMP%]{line-height:1.5rem}section[_ngcontent-%COMP%]{margin-top:2rem}h3[_ngcontent-%COMP%]{font-weight:200;text-transform:uppercase}ul[_ngcontent-%COMP%]{padding-left:2rem}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{line-height:2rem;list-style:square}code[_ngcontent-%COMP%]{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem;white-space:pre-wrap;word-break:break-all;word-wrap:break-word}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] u[_ngcontent-%COMP%]{-webkit-text-decoration-style:dotted;text-decoration-style:dotted;cursor:pointer}"]})},8227:(Le,T)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.unwrap=T.wrapper=void 0,T.wrapper='\n window.___originalXmlHttpRequestOpen = XMLHttpRequest.prototype.open;\n XMLHttpRequest.prototype.open = function() {\n const event = { type: "network", message: `XHR: ${Array.prototype.join.call(arguments, " ")}` };\n events.push(event);\n\n const send = this.send;\n this.send = function() {\n try {\n event.details = { req: JSON.parse(arguments[0]) };\n } catch (e) {\n event.details = { req: arguments[0] };\n }\n\n const onreadystatechange = this.onreadystatechange;\n this.onreadystatechange = function() {\n const result = onreadystatechange.apply(this, arguments);\n\n if (this.readyState === 4) {\n try {\n event.details = { ...event.details, res: JSON.parse(this.responseText) };\n } catch (e) {\n event.details = { ...event.details, res: this.responseText };\n }\n }\n\n return result;\n };\n\n return send.apply(this, arguments);\n };\n\n return ___originalXmlHttpRequestOpen.apply(this, arguments);\n };\n\n window.___originalConsoleLog = console.log;\n console.log = function() {\n const event = { type: "info", message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n return ___originalConsoleLog.apply(this, arguments);\n }\n\n window.___originalConsoleError = console.error;\n console.error = function() {\n //if (typeof arguments[0] === "string") {\n const event = { type: "error", message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n //}\n return ___originalConsoleError.apply(this, arguments);\n }\n',T.unwrap="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n console.log = window.___originalConsoleLog;\n console.error = window.___originalConsoleError;\n"},2340:(Le,T)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.environment=void 0,T.environment={production:!0}},4431:(Le,T,d)=>{"use strict";const h=d(4762).__importStar(d(9075)),_=d(7716),a=d(6747);d(2340).environment.production&&_.enableProdMode(),h.platformBrowser().bootstrapModule(a.AppModule).catch(w=>console.error(w))},9043:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateRxMethod=T.generateMethodSignature=T.generateErrorClass=T.generateClass=T.generateErrorType=T.generateEnum=T.generateJsonRepresentation=T.mangle=T.generateSwiftTypeName=void 0;const o=d(3979);function l(P){switch(P.constructor){case o.IntPrimitiveType:return"Int";case o.UIntPrimitiveType:return"UInt";case o.MoneyPrimitiveType:return"Int64";case o.FloatPrimitiveType:return"Double";case o.BigIntPrimitiveType:return"Decimal";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"Date";case o.BoolPrimitiveType:return"Bool";case o.BytesPrimitiveType:return"Data";case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.UrlPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"String";case o.VoidPrimitiveType:return"Void";case o.JsonPrimitiveType:return"AnyCodable";case o.OptionalType:return`${l(P.base)}?`;case o.ArrayType:return`[${l(P.base)}]`;case o.StructType:case o.EnumType:return`API.${P.name}`;case o.TypeReference:return l(P.type);default:throw new Error(`BUG: generateSwiftTypeName with ${P.constructor.name}`)}}function h(P){return["associatedtype","deinit","extension","inout","let","in","as","break","class","continue","protocol","Protocol","rethrows","throws","static","do","else","false","for","guard","func","if","internal","struct","subscript","repeat","is","nil","Any","associativity","convenience","import","return","super","self","Self","throw","true","try","typealias","switch","case","default","defer","fallthrough","optional","var","while","catch","dynamic","didSet","Set","fileprivate","lazy","get","init","required","right","param","property","receiver","set","left","where","final","infix","indirect","open","operator","override","private","postfix","public","mutating","none","nonmutating","precedence","prefix","Type","unowned","weak","willSet"].includes(P)?`_${P}`:P}function _(P,L){switch(P.constructor){case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:case o.FloatPrimitiveType:case o.BoolPrimitiveType:return`${L}`;case o.OptionalType:return`${L} == nil ? nil : ${_(P.base,`${L}!`)}`;case o.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${L})`;case o.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${L})`;case o.EnumType:return`${L}.rawValue`;case o.TypeReference:return`${_(P.type,`${L}`)}`;case o.StructType:return`${L}.toJSON()`;case o.ArrayType:return`${L}.map({ return ${_(P.base,"$0")} })`;case o.JsonPrimitiveType:return`try? ${L}.toJson()`;case o.VoidPrimitiveType:return"nil";case o.BytesPrimitiveType:return`${L}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${P.constructor.name}`)}}T.generateSwiftTypeName=l,T.mangle=h,T.generateJsonRepresentation=_,T.generateEnum=function(P){let L=` public enum ${P.name}: String, Codable {\n`;return L+=P.values.map(j=>` case ${h(j.value)} = "${j.value}"`).join("\n"),L+="\n }\n",L},T.generateErrorType=function(P){let L=" public enum ErrorType: String, Codable {\n";return L+=P.map(j=>` case ${h(j)} = "${j}"`).join("\n"),L+="\n }\n",L},T.generateClass=function(P){return` public struct ${P.name}: Codable {\n${P.fields.map(L=>` var ${h(L.name)}: ${l(L.type)}`).join("\n")}\n\n${function(P){let L=" init(";return L+=P.fields.map(j=>`${h(j.name)}: ${l(j.type)}`).join(", "),L+=") {\n",L+=P.fields.map(j=>` self.${h(j.name)} = ${h(j.name)}`).join("\n"),L+="\n }\n",L}(P)}\n${function(P){let L=" func toJSON() -> [String: Any] {\n";return L+=" var json = [String: Any]()\n",L+=P.fields.map(j=>` json["${h(j.name)}"] = ${_(j.type,j.name)}`).join("\n"),L+="\n return json",L+="\n }\n",L}(P)}\n }\n`},T.generateErrorClass=function(){return" public class Failure: Error {\n var message: String?\n var code: Int?\n var type: ErrorType?\n \n init(message: String?, code: Int?, type: String?) {\n self.message = message\n self.code = code\n if let typeString = type {\n self.type = ErrorType(rawValue: typeString) ?? nil\n }\n }\n }\n"},T.generateMethodSignature=function(P){const L=P.args.map(j=>`${h(j.name)}: ${l(j.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${P.returnType instanceof o.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${l(P.returnType)}>`}) -> Void)?`]);return` func ${h(P.name)}(${L.join(", ")})`},T.generateRxMethod=function(P){const L=P.args.map(ae=>`${h(ae.name)}: ${l(ae.type)}`).concat(["timeoutSeconds: Double? = nil"]);let j=` static func ${h(P.name)}(${L.join(", ")}) -> ${P.returnType instanceof o.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${l(P.returnType)}>>`} {\n`;return j+=" return Observable.create { observer -> Disposable in\n",j+=` API.calls.${h(P.name)}(${P.args.map(ae=>`${h(ae.name)}: ${h(ae.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,j+=" observer.on(.next(result))\n",j+=" observer.on(.completed)\n",j+=" }\n",j+=" return Disposables.create()\n",j+=" }\n",j+=" }\n",j}},1670:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(h,_,a,C){void 0===C&&(C=a),Object.defineProperty(h,C,{enumerable:!0,get:function(){return _[a]}})}:function(h,_,a,C){void 0===C&&(C=a),h[C]=_[a]}),l=this&&this.__exportStar||function(h,_){for(var a in h)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,h,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(1966),T)},1966:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateSwiftClientSource=void 0;const o=d(3979),l=d(9043);T.generateSwiftClientSource=function(_,a){let C="import Foundation\nimport SdkgenRuntime\n";C+=a?"import RxSwift\nimport RxCocoa\n\n":"\n",C+="protocol APICallsProtocol {\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>`${(0,l.generateMethodSignature)(g)}`).join("\n"),C+="\n}\n\n",C+='class API: SdkgenResponse {\n\n static var calls: APICallsProtocol = Calls(baseUrl: "")\n static var baseUrl: String? {\n didSet {\n self.calls = Calls(baseUrl: baseUrl ?? "")\n }\n }\n \n override init() {\n super.init()\n }\n\n';for(const g of _.enumTypes)C+=(0,l.generateEnum)(g),C+="\n";for(const g of _.structTypes)C+=(0,l.generateClass)(g),C+="\n";const w=[],D=new o.ErrorNode("Connection",new o.VoidPrimitiveType);w.push(D.name);for(const g of _.errors)w.push(g.name);return w.length>0&&(C+=(0,l.generateErrorType)(w),C+="\n"),C+=(0,l.generateErrorClass)(),C+="\n",C+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",C+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>{let E="";return E+=` ${(0,l.generateMethodSignature)(g)} {\n`,g.args.length>0?(E+=" var jsonArgs = [String: Any]()\n",E+=g.args.map(M=>` jsonArgs["${(0,l.mangle)(M.name)}"] = ${(0,l.generateJsonRepresentation)(M.type,(0,l.mangle)(M.name))}`).join("\n")):E+=" let jsonArgs = [String: Any]()",E+="\n\n",E+=` request("${g.name}", jsonArgs, timeoutSeconds, completion: { (value: ${g.returnType instanceof o.VoidPrimitiveType?"API.NoReply":(0,l.generateSwiftTypeName)(g.returnType)}) in\n`,E+=" callback?(API.Result.success(value))\n",E+=" }, onError: { error in\n",E+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",E+=" })",E+="\n }\n",E}).join("\n"),C+=" }\n",C+="}\n",a&&(C+="\n",C+="extension API: ReactiveCompatible {}\n\n",C+="extension Reactive where Base: API {\n",C+=_.operations.filter(g=>g.annotations.every(E=>!(E instanceof o.HiddenAnnotation))).map(g=>`${(0,l.generateRxMethod)(g)}`).join("\n"),C+="}\n"),C}},7306:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateBrowserClientSource=void 0;const o=d(3979),l=d(760);T.generateBrowserClientSource=function(_){let a="";a+=`/* eslint-disable */\nimport { SdkgenError${_.errors.some(w=>!(w.dataType instanceof o.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n\n`;for(const w of _.enumTypes)a+=(0,l.generateTypescriptEnum)(w),a+="\n";for(const w of _.structTypes)a+=(0,l.generateTypescriptInterface)(w,!0),a+="\n";for(const w of _.errors)a+=(0,l.generateTypescriptErrorClass)(w,!0),a+="\n";return a+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${_.operations.filter(w=>w.annotations.every(D=>!(D instanceof o.HiddenAnnotation))).map(w=>`\n ${w.name}(args${0===w.args.length?"?":""}: {${w.args.map(D=>`${D.name}${D.type.name.endsWith("?")?"?":""}: ${(0,l.generateTypescriptTypeName)(D.type,!0)}`).join(", ")}}): Promise<${(0,l.generateTypescriptTypeName)(w.returnType,!0)}> { return this.makeRequest("${w.name}", args || {}); }`).join("")}\n}\n\n`,a+=`const errClasses = {\n${_.errors.map(w=>` ${w.name}`).join(",\n")}\n};\n\n`,a+=`const astJson = ${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,a}},760:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.clearForLogging=T.generateTypescriptErrorClass=T.generateTypescriptEnum=T.generateTypescriptInterface=T.generateTypescriptTypeName=void 0;const o=d(3979);function l(w,D){switch(w.constructor){case o.IntPrimitiveType:case o.UIntPrimitiveType:case o.MoneyPrimitiveType:case o.FloatPrimitiveType:return"number";case o.BigIntPrimitiveType:return"bigint";case o.DatePrimitiveType:case o.DateTimePrimitiveType:return"Date";case o.BoolPrimitiveType:return"boolean";case o.BytesPrimitiveType:return D?"ArrayBuffer":"Buffer";case o.StringPrimitiveType:case o.CpfPrimitiveType:case o.CnpjPrimitiveType:case o.EmailPrimitiveType:case o.HtmlPrimitiveType:case o.UrlPrimitiveType:case o.UuidPrimitiveType:case o.HexPrimitiveType:case o.Base64PrimitiveType:case o.XmlPrimitiveType:return"string";case o.VoidPrimitiveType:return"void";case o.JsonPrimitiveType:return"any";case o.OptionalType:return`${l(w.base,D)} | null`;case o.ArrayType:{const{base:g}=w,E=l(g,D);return g instanceof o.OptionalType?`(${E})[]`:`${E}[]`}case o.StructType:case o.EnumType:return w.name;case o.TypeReference:return l(w.type,D);default:throw new Error(`BUG: generateTypescriptTypeName with ${w.constructor.name}`)}}T.generateTypescriptTypeName=l,T.generateTypescriptInterface=function(w,D){return`export interface ${w.name} {\n${w.fields.map(g=>` ${g.name}: ${l(g.type,D)}`).join("\n")}\n}\n`},T.generateTypescriptEnum=function(w){return`export type ${w.name} = ${w.values.map(D=>`"${D.value}"`).join(" | ")};\n`},T.generateTypescriptErrorClass=function(w,D){return`export class ${w.name} extends ${w.dataType instanceof o.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${l(w.dataType,D)}>`} {}\n`},T.clearForLogging=function C(w,D){switch(D.constructor){case o.TypeReference:return C(w,D.type);case o.OptionalType:{const g=C(w,D.base);return g?`if (${w} !== null && ${w} !== undefined) { ${g} }`:""}case o.ArrayType:{const g=C("el",D.base);return g?`for (const el of ${w}) { ${g} }`:""}case o.StructType:{const g=[];for(const E of D.fields)if(E.secret)g.push(`${w}.${E.name} = "<secret>";`);else{const M=C(`${w}.${E.name}`,E.type);M&&g.push(M)}return g.join(" ")}default:return""}}},282:function(Le,T,d){"use strict";var o=this&&this.__createBinding||(Object.create?function(h,_,a,C){void 0===C&&(C=a),Object.defineProperty(h,C,{enumerable:!0,get:function(){return _[a]}})}:function(h,_,a,C){void 0===C&&(C=a),h[C]=_[a]}),l=this&&this.__exportStar||function(h,_){for(var a in h)"default"!==a&&!Object.prototype.hasOwnProperty.call(_,a)&&o(_,h,a)};Object.defineProperty(T,"__esModule",{value:!0}),l(d(7306),T),l(d(6283),T),l(d(1918),T),l(d(9847),T)},6283:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateTypescriptInterfaces=void 0;const o=d(760);T.generateTypescriptInterfaces=function(h){let _="";for(const a of h.enumTypes)_+=(0,o.generateTypescriptEnum)(a);_+="\n";for(const a of h.structTypes)_+=(0,o.generateTypescriptInterface)(a,!1),_+="\n";return _}},1918:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateNodeClientSource=void 0;const o=d(3979),l=d(760);T.generateNodeClientSource=function(_){let a="";const C=_.errors.some(D=>!(D.dataType instanceof o.VoidPrimitiveType));a+=`/* eslint-disable */\nimport { Context, Fatal${_.errors.filter(D=>"Fatal"!==D.name).some(D=>D.dataType instanceof o.VoidPrimitiveType)?", SdkgenError":""}${C?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const D of _.enumTypes)a+=(0,l.generateTypescriptEnum)(D),a+="\n";for(const D of _.structTypes)a+=(0,l.generateTypescriptInterface)(D,!1),a+="\n";for(const D of _.errors)"Fatal"!==D.name&&(a+=(0,l.generateTypescriptErrorClass)(D,!1),a+="\n");return a+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${_.operations.filter(D=>D.annotations.every(g=>!(g instanceof o.HiddenAnnotation))).map(D=>`\n ${D.name}(ctx: PartialDeep<Context> | null, args: {${D.args.map(g=>`${g.name}${g.type.name.endsWith("?")?"?":""}: ${(0,l.generateTypescriptTypeName)(g.type,!1)}`).join(", ")}}): Promise<${(0,l.generateTypescriptTypeName)(D.returnType,!1)}> { return this.makeRequest(ctx, "${D.name}", args); }`).join("")}\n}\n\n`,a+=`const errClasses = {\n${_.errors.map(D=>` ${D.name}`).join(",\n")}\n};\n\n`,a+=`const astJson = ${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,a}},9847:(Le,T,d)=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.generateNodeServerSource=void 0;const o=d(3979),l=d(760);T.generateNodeServerSource=function(_){let a="";const C=_.errors.some(D=>!(D.dataType instanceof o.VoidPrimitiveType));a+=`/* eslint-disable */\nimport { BaseApiConfig, Context, Fatal${_.errors.filter(D=>"Fatal"!==D.name).some(D=>D.dataType instanceof o.VoidPrimitiveType)?", SdkgenError":""}${C?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n\n`;for(const D of _.enumTypes)a+=(0,l.generateTypescriptEnum)(D),a+="\n";for(const D of _.structTypes)a+=(0,l.generateTypescriptInterface)(D,!1),a+="\n";for(const D of _.errors)"Fatal"!==D.name&&(a+=(0,l.generateTypescriptErrorClass)(D,!1),a+="\n");return a+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n fn!: {${_.operations.map(D=>`\n ${D.name}: (args: {${D.args.map(g=>`${g.name}: ${(0,l.generateTypescriptTypeName)(g.type,!1)}`).join(", ")}}) => Promise<${(0,l.generateTypescriptTypeName)(D.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,o.astToJson)(_),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,a}},1052:Le=>{function T(o,l,h,_,a,C,w){try{var D=o[C](w),g=D.value}catch(E){return void h(E)}D.done?l(g):Promise.resolve(g).then(_,a)}Le.exports=function(o){return function(){var l=this,h=arguments;return new Promise(function(_,a){var C=o.apply(l,h);function w(g){T(C,_,a,w,D,"next",g)}function D(g){T(C,_,a,w,D,"throw",g)}w(void 0)})}},Le.exports.default=Le.exports,Le.exports.__esModule=!0},4762:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{__extends:()=>l,__assign:()=>h,__rest:()=>_,__decorate:()=>a,__param:()=>C,__metadata:()=>w,__awaiter:()=>D,__generator:()=>g,__createBinding:()=>E,__exportStar:()=>M,__values:()=>S,__read:()=>P,__spread:()=>L,__spreadArrays:()=>j,__spreadArray:()=>ae,__await:()=>he,__asyncGenerator:()=>ye,__asyncDelegator:()=>$e,__asyncValues:()=>at,__makeTemplateObject:()=>Ze,__importStar:()=>Re,__importDefault:()=>Pe,__classPrivateFieldGet:()=>Ne,__classPrivateFieldSet:()=>Ct});var o=function(te,ge){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,ce){X.__proto__=ce}||function(X,ce){for(var Ae in ce)Object.prototype.hasOwnProperty.call(ce,Ae)&&(X[Ae]=ce[Ae])})(te,ge)};function l(te,ge){if("function"!=typeof ge&&null!==ge)throw new TypeError("Class extends value "+String(ge)+" is not a constructor or null");function X(){this.constructor=te}o(te,ge),te.prototype=null===ge?Object.create(ge):(X.prototype=ge.prototype,new X)}var h=function(){return(h=Object.assign||function(ge){for(var X,ce=1,Ae=arguments.length;ce<Ae;ce++)for(var Ce in X=arguments[ce])Object.prototype.hasOwnProperty.call(X,Ce)&&(ge[Ce]=X[Ce]);return ge}).apply(this,arguments)};function _(te,ge){var X={};for(var ce in te)Object.prototype.hasOwnProperty.call(te,ce)&&ge.indexOf(ce)<0&&(X[ce]=te[ce]);if(null!=te&&"function"==typeof Object.getOwnPropertySymbols){var Ae=0;for(ce=Object.getOwnPropertySymbols(te);Ae<ce.length;Ae++)ge.indexOf(ce[Ae])<0&&Object.prototype.propertyIsEnumerable.call(te,ce[Ae])&&(X[ce[Ae]]=te[ce[Ae]])}return X}function a(te,ge,X,ce){var Ue,Ae=arguments.length,Ce=Ae<3?ge:null===ce?ce=Object.getOwnPropertyDescriptor(ge,X):ce;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Ce=Reflect.decorate(te,ge,X,ce);else for(var et=te.length-1;et>=0;et--)(Ue=te[et])&&(Ce=(Ae<3?Ue(Ce):Ae>3?Ue(ge,X,Ce):Ue(ge,X))||Ce);return Ae>3&&Ce&&Object.defineProperty(ge,X,Ce),Ce}function C(te,ge){return function(X,ce){ge(X,ce,te)}}function w(te,ge){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(te,ge)}function D(te,ge,X,ce){return new(X||(X=Promise))(function(Ce,Ue){function et(tt){try{je(ce.next(tt))}catch(ut){Ue(ut)}}function pt(tt){try{je(ce.throw(tt))}catch(ut){Ue(ut)}}function je(tt){tt.done?Ce(tt.value):function(Ce){return Ce instanceof X?Ce:new X(function(Ue){Ue(Ce)})}(tt.value).then(et,pt)}je((ce=ce.apply(te,ge||[])).next())})}function g(te,ge){var ce,Ae,Ce,Ue,X={label:0,sent:function(){if(1&Ce[0])throw Ce[1];return Ce[1]},trys:[],ops:[]};return Ue={next:et(0),throw:et(1),return:et(2)},"function"==typeof Symbol&&(Ue[Symbol.iterator]=function(){return this}),Ue;function et(je){return function(tt){return function(je){if(ce)throw new TypeError("Generator is already executing.");for(;X;)try{if(ce=1,Ae&&(Ce=2&je[0]?Ae.return:je[0]?Ae.throw||((Ce=Ae.return)&&Ce.call(Ae),0):Ae.next)&&!(Ce=Ce.call(Ae,je[1])).done)return Ce;switch(Ae=0,Ce&&(je=[2&je[0],Ce.value]),je[0]){case 0:case 1:Ce=je;break;case 4:return X.label++,{value:je[1],done:!1};case 5:X.label++,Ae=je[1],je=[0];continue;case 7:je=X.ops.pop(),X.trys.pop();continue;default:if(!(Ce=(Ce=X.trys).length>0&&Ce[Ce.length-1])&&(6===je[0]||2===je[0])){X=0;continue}if(3===je[0]&&(!Ce||je[1]>Ce[0]&&je[1]<Ce[3])){X.label=je[1];break}if(6===je[0]&&X.label<Ce[1]){X.label=Ce[1],Ce=je;break}if(Ce&&X.label<Ce[2]){X.label=Ce[2],X.ops.push(je);break}Ce[2]&&X.ops.pop(),X.trys.pop();continue}je=ge.call(te,X)}catch(tt){je=[6,tt],Ae=0}finally{ce=Ce=0}if(5&je[0])throw je[1];return{value:je[0]?je[1]:void 0,done:!0}}([je,tt])}}}var E=Object.create?function(te,ge,X,ce){void 0===ce&&(ce=X),Object.defineProperty(te,ce,{enumerable:!0,get:function(){return ge[X]}})}:function(te,ge,X,ce){void 0===ce&&(ce=X),te[ce]=ge[X]};function M(te,ge){for(var X in te)"default"!==X&&!Object.prototype.hasOwnProperty.call(ge,X)&&E(ge,te,X)}function S(te){var ge="function"==typeof Symbol&&Symbol.iterator,X=ge&&te[ge],ce=0;if(X)return X.call(te);if(te&&"number"==typeof te.length)return{next:function(){return te&&ce>=te.length&&(te=void 0),{value:te&&te[ce++],done:!te}}};throw new TypeError(ge?"Object is not iterable.":"Symbol.iterator is not defined.")}function P(te,ge){var X="function"==typeof Symbol&&te[Symbol.iterator];if(!X)return te;var Ae,Ue,ce=X.call(te),Ce=[];try{for(;(void 0===ge||ge-- >0)&&!(Ae=ce.next()).done;)Ce.push(Ae.value)}catch(et){Ue={error:et}}finally{try{Ae&&!Ae.done&&(X=ce.return)&&X.call(ce)}finally{if(Ue)throw Ue.error}}return Ce}function L(){for(var te=[],ge=0;ge<arguments.length;ge++)te=te.concat(P(arguments[ge]));return te}function j(){for(var te=0,ge=0,X=arguments.length;ge<X;ge++)te+=arguments[ge].length;var ce=Array(te),Ae=0;for(ge=0;ge<X;ge++)for(var Ce=arguments[ge],Ue=0,et=Ce.length;Ue<et;Ue++,Ae++)ce[Ae]=Ce[Ue];return ce}function ae(te,ge,X){if(X||2===arguments.length)for(var Ce,ce=0,Ae=ge.length;ce<Ae;ce++)(Ce||!(ce in ge))&&(Ce||(Ce=Array.prototype.slice.call(ge,0,ce)),Ce[ce]=ge[ce]);return te.concat(Ce||Array.prototype.slice.call(ge))}function he(te){return this instanceof he?(this.v=te,this):new he(te)}function ye(te,ge,X){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ae,ce=X.apply(te,ge||[]),Ce=[];return Ae={},Ue("next"),Ue("throw"),Ue("return"),Ae[Symbol.asyncIterator]=function(){return this},Ae;function Ue(It){ce[It]&&(Ae[It]=function(Xe){return new Promise(function(dt,$){Ce.push([It,Xe,dt,$])>1||et(It,Xe)})})}function et(It,Xe){try{!function(It){It.value instanceof he?Promise.resolve(It.value.v).then(je,tt):ut(Ce[0][2],It)}(ce[It](Xe))}catch(dt){ut(Ce[0][3],dt)}}function je(It){et("next",It)}function tt(It){et("throw",It)}function ut(It,Xe){It(Xe),Ce.shift(),Ce.length&&et(Ce[0][0],Ce[0][1])}}function $e(te){var ge,X;return ge={},ce("next"),ce("throw",function(Ae){throw Ae}),ce("return"),ge[Symbol.iterator]=function(){return this},ge;function ce(Ae,Ce){ge[Ae]=te[Ae]?function(Ue){return(X=!X)?{value:he(te[Ae](Ue)),done:"return"===Ae}:Ce?Ce(Ue):Ue}:Ce}}function at(te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var X,ge=te[Symbol.asyncIterator];return ge?ge.call(te):(te=S(te),X={},ce("next"),ce("throw"),ce("return"),X[Symbol.asyncIterator]=function(){return this},X);function ce(Ce){X[Ce]=te[Ce]&&function(Ue){return new Promise(function(et,pt){!function(Ce,Ue,et,pt){Promise.resolve(pt).then(function(je){Ce({value:je,done:et})},Ue)}(et,pt,(Ue=te[Ce](Ue)).done,Ue.value)})}}}function Ze(te,ge){return Object.defineProperty?Object.defineProperty(te,"raw",{value:ge}):te.raw=ge,te}var Me=Object.create?function(te,ge){Object.defineProperty(te,"default",{enumerable:!0,value:ge})}:function(te,ge){te.default=ge};function Re(te){if(te&&te.__esModule)return te;var ge={};if(null!=te)for(var X in te)"default"!==X&&Object.prototype.hasOwnProperty.call(te,X)&&E(ge,te,X);return Me(ge,te),ge}function Pe(te){return te&&te.__esModule?te:{default:te}}function Ne(te,ge,X,ce){if("a"===X&&!ce)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof ge?te!==ge||!ce:!ge.has(te))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===X?ce:"a"===X?ce.call(te):ce?ce.value:ge.get(te)}function Ct(te,ge,X,ce,Ae){if("m"===ce)throw new TypeError("Private method is not writable");if("a"===ce&&!Ae)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof ge?te!==ge||!Ae:!ge.has(te))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===ce?Ae.call(te,X):Ae?Ae.value=X:ge.set(te,X),X}},1430:(Le,T,d)=>{"use strict";d.r(T),d.d(T,{ANGULAR_SPLIT_DEFAULT_OPTIONS:()=>Re,AngularSplitModule:()=>Ct,SplitAreaDirective:()=>Ne,SplitComponent:()=>Pe});var o=d(7716),l=d(8583),h=d(9765),_=d(9897),a=d(4395);const C=["gutterEls"];function w(te,ge){if(1&te){const X=o.\u0275\u0275getCurrentView();o.\u0275\u0275elementStart(0,"div",2,3),o.\u0275\u0275listener("mousedown",function(Ae){o.\u0275\u0275restoreView(X);const Ce=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().startDragging(Ae,2*Ce+1,Ce+1)})("touchstart",function(Ae){o.\u0275\u0275restoreView(X);const Ce=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().startDragging(Ae,2*Ce+1,Ce+1)})("mouseup",function(Ae){o.\u0275\u0275restoreView(X);const Ce=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().clickGutter(Ae,Ce+1)})("touchend",function(Ae){o.\u0275\u0275restoreView(X);const Ce=o.\u0275\u0275nextContext().index;return o.\u0275\u0275nextContext().clickGutter(Ae,Ce+1)}),o.\u0275\u0275element(2,"div",4),o.\u0275\u0275elementEnd()}if(2&te){const X=o.\u0275\u0275nextContext().index,ce=o.\u0275\u0275nextContext();o.\u0275\u0275styleProp("flex-basis",ce.gutterSize,"px")("order",2*X+1)}}function D(te,ge){1&te&&o.\u0275\u0275template(0,w,3,4,"div",1),2&te&&o.\u0275\u0275property("ngIf",!1===ge.last)}const g=["*"];function E(te){return void 0!==te.changedTouches&&te.changedTouches.length>0?{x:te.changedTouches[0].clientX,y:te.changedTouches[0].clientY}:void 0!==te.clientX&&void 0!==te.clientY?{x:te.clientX,y:te.clientY}:null}function M(te,ge,X){return Math.abs(te.x-ge.x)<=X&&Math.abs(te.y-ge.y)<=X}function S(te,ge){const X=te.nativeElement.getBoundingClientRect();return"horizontal"===ge?X.width:X.height}function P(te){return"boolean"==typeof te?te:"false"!==te}function L(te,ge){return null==te?ge:(te=Number(te),!isNaN(te)&&te>=0?te:ge)}function j(te,ge){if("percent"===te){const X=ge.reduce((ce,Ae)=>null!==Ae?ce+Ae:ce,0);return ge.every(ce=>null!==ce)&&X>99.9&&X<100.1}if("pixel"===te)return 1===ge.filter(X=>null===X).length}function ae(te){return null===te.size?null:!0===te.component.lockSize?te.size:null===te.component.minSize?null:te.component.minSize>te.size?te.size:te.component.minSize}function he(te){return null===te.size?null:!0===te.component.lockSize?te.size:null===te.component.maxSize?null:te.component.maxSize<te.size?te.size:te.component.maxSize}function ye(te,ge,X,ce){return ge.reduce((Ae,Ce)=>{const Ue=function(te,ge,X,ce){return 0===X?{areaSnapshot:ge,pixelAbsorb:0,percentAfterAbsorption:ge.sizePercentAtStart,pixelRemain:0}:0===ge.sizePixelAtStart&&X<0?{areaSnapshot:ge,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:X}:"percent"===te?function(te,ge,X){const Ae=(te.sizePixelAtStart+ge)/X*100;if(ge>0){if(null!==te.area.maxSize&&Ae>te.area.maxSize){const Ce=te.area.maxSize/100*X;return{areaSnapshot:te,pixelAbsorb:Ce,percentAfterAbsorption:te.area.maxSize,pixelRemain:te.sizePixelAtStart+ge-Ce}}return{areaSnapshot:te,pixelAbsorb:ge,percentAfterAbsorption:Ae>100?100:Ae,pixelRemain:0}}if(ge<0){if(null!==te.area.minSize&&Ae<te.area.minSize){const Ce=te.area.minSize/100*X;return{areaSnapshot:te,pixelAbsorb:Ce,percentAfterAbsorption:te.area.minSize,pixelRemain:te.sizePixelAtStart+ge-Ce}}return Ae<0?{areaSnapshot:te,pixelAbsorb:-te.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:ge+te.sizePixelAtStart}:{areaSnapshot:te,pixelAbsorb:ge,percentAfterAbsorption:Ae,pixelRemain:0}}}(ge,X,ce):"pixel"===te?function(te,ge,X){const ce=te.sizePixelAtStart+ge;return ge>0?null!==te.area.maxSize&&ce>te.area.maxSize?{areaSnapshot:te,pixelAbsorb:te.area.maxSize-te.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:ce-te.area.maxSize}:{areaSnapshot:te,pixelAbsorb:ge,percentAfterAbsorption:-1,pixelRemain:0}:ge<0?null!==te.area.minSize&&ce<te.area.minSize?{areaSnapshot:te,pixelAbsorb:te.area.minSize+ge-ce,percentAfterAbsorption:-1,pixelRemain:ce-te.area.minSize}:ce<0?{areaSnapshot:te,pixelAbsorb:-te.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:ge+te.sizePixelAtStart}:{areaSnapshot:te,pixelAbsorb:ge,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(ge,X):void 0}(te,Ce,Ae.remain,ce);return Ae.list.push(Ue),Ae.remain=Ue.pixelRemain,Ae},{remain:X,list:[]})}function Me(te,ge){"percent"===te?ge.areaSnapshot.area.size=ge.percentAfterAbsorption:"pixel"===te&&null!==ge.areaSnapshot.area.size&&(ge.areaSnapshot.area.size=ge.areaSnapshot.sizePixelAtStart+ge.pixelAbsorb)}const Re=new o.InjectionToken("angular-split-global-config");let Pe=(()=>{class te{constructor(X,ce,Ae,Ce,Ue){this.ngZone=X,this.elRef=ce,this.cdRef=Ae,this.renderer=Ce,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 o.EventEmitter(!1),this.dragEnd=new o.EventEmitter(!1),this.gutterClick=new o.EventEmitter(!1),this.gutterDblClick=new o.EventEmitter(!1),this.dragProgressSubject=new h.xQ,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.direction=this._direction,this._config=Ue?Object.assign(this._config,Ue):this._config,Object.keys(this._config).forEach(et=>{this[et]=this._config[et]})}set direction(X){this._direction="vertical"===X?"vertical":"horizontal",this.renderer.addClass(this.elRef.nativeElement,`as-${this._direction}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("vertical"===this._direction?"horizontal":"vertical")),this.build(!1,!1)}get direction(){return this._direction}set unit(X){this._unit="pixel"===X?"pixel":"percent",this.renderer.addClass(this.elRef.nativeElement,`as-${this._unit}`),this.renderer.removeClass(this.elRef.nativeElement,"as-"+("pixel"===this._unit?"percent":"pixel")),this.build(!1,!0)}get unit(){return this._unit}set gutterSize(X){this._gutterSize=L(X,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(X){this._gutterStep=L(X,1)}get gutterStep(){return this._gutterStep}set restrictMove(X){this._restrictMove=P(X)}get restrictMove(){return this._restrictMove}set useTransition(X){this._useTransition=P(X),this._useTransition?this.renderer.addClass(this.elRef.nativeElement,"as-transition"):this.renderer.removeClass(this.elRef.nativeElement,"as-transition")}get useTransition(){return this._useTransition}set disabled(X){this._disabled=P(X),this._disabled?this.renderer.addClass(this.elRef.nativeElement,"as-disabled"):this.renderer.removeClass(this.elRef.nativeElement,"as-disabled")}get disabled(){return this._disabled}set dir(X){this._dir="rtl"===X?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(X){this._gutterDblClickDuration=L(X,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new _.y(X=>this.transitionEndSubscriber=X).pipe((0,a.b)(20))}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{setTimeout(()=>this.renderer.addClass(this.elRef.nativeElement,"as-init"))})}getNbGutters(){return 0===this.displayedAreas.length?0:this.displayedAreas.length-1}addArea(X){const ce={component:X,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===X.visible?(this.displayedAreas.push(ce),this.build(!0,!0)):this.hiddenAreas.push(ce)}removeArea(X){if(this.displayedAreas.some(ce=>ce.component===X)){const ce=this.displayedAreas.find(Ae=>Ae.component===X);this.displayedAreas.splice(this.displayedAreas.indexOf(ce),1),this.build(!0,!0)}else if(this.hiddenAreas.some(ce=>ce.component===X)){const ce=this.hiddenAreas.find(Ae=>Ae.component===X);this.hiddenAreas.splice(this.hiddenAreas.indexOf(ce),1)}}updateArea(X,ce,Ae){!0===X.visible&&this.build(ce,Ae)}showArea(X){const ce=this.hiddenAreas.find(Ce=>Ce.component===X);if(void 0===ce)return;const Ae=this.hiddenAreas.splice(this.hiddenAreas.indexOf(ce),1);this.displayedAreas.push(...Ae),this.build(!0,!0)}hideArea(X){const ce=this.displayedAreas.find(Ce=>Ce.component===X);if(void 0===ce)return;const Ae=this.displayedAreas.splice(this.displayedAreas.indexOf(ce),1);Ae.forEach(Ce=>{Ce.order=0,Ce.size=0}),this.hiddenAreas.push(...Ae),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(X=>null===X.size?"*":X.size)}setVisibleAreaSizes(X){if(X.length!==this.displayedAreas.length)return!1;const ce=X.map(Ce=>L(Ce,null));return!1!==j(this.unit,ce)&&(this.displayedAreas.forEach((Ce,Ue)=>Ce.component._size=ce[Ue]),this.build(!1,!0),!0)}build(X,ce){if(this.stopDragging(),!0===X&&(this.displayedAreas.every(Ae=>null!==Ae.component.order)&&this.displayedAreas.sort((Ae,Ce)=>Ae.component.order-Ce.component.order),this.displayedAreas.forEach((Ae,Ce)=>{Ae.order=2*Ce,Ae.component.setStyleOrder(Ae.order)})),!0===ce){const Ae=j(this.unit,this.displayedAreas.map(Ce=>Ce.component.size));switch(this.unit){case"percent":{const Ce=100/this.displayedAreas.length;this.displayedAreas.forEach(Ue=>{Ue.size=Ae?Ue.component.size:Ce,Ue.minSize=ae(Ue),Ue.maxSize=he(Ue)});break}case"pixel":if(Ae)this.displayedAreas.forEach(Ce=>{Ce.size=Ce.component.size,Ce.minSize=ae(Ce),Ce.maxSize=he(Ce)});else{const Ce=this.displayedAreas.filter(Ue=>null===Ue.component.size);if(0===Ce.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((Ue,et)=>{Ue.size=0===et?null:Ue.component.size,Ue.minSize=0===et?null:ae(Ue),Ue.maxSize=0===et?null:he(Ue)});else if(Ce.length>1){let Ue=!1;this.displayedAreas.forEach(et=>{null===et.component.size?!1===Ue?(et.size=null,et.minSize=null,et.maxSize=null,Ue=!0):(et.size=100,et.minSize=null,et.maxSize=null):(et.size=et.component.size,et.minSize=ae(et),et.maxSize=he(et))})}}}}this.refreshStyleSizes(),this.cdRef.markForCheck()}refreshStyleSizes(){if("percent"===this.unit)if(1===this.displayedAreas.length)this.displayedAreas[0].component.setStyleFlex(0,0,"100%",!1,!1);else{const X=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(ce=>{ce.component.setStyleFlex(0,0,`calc( ${ce.size}% - ${ce.size/100*X}px )`,null!==ce.minSize&&ce.minSize===ce.size,null!==ce.maxSize&&ce.maxSize===ce.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(X=>{null===X.size?X.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?X.component.setStyleFlex(0,0,"100%",!1,!1):X.component.setStyleFlex(0,0,`${X.size}px`,null!==X.minSize&&X.minSize===X.size,null!==X.maxSize&&X.maxSize===X.size)})}clickGutter(X,ce){const Ae=E(X);this.startPoint&&M(this.startPoint,Ae,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",ce),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",ce),this.stopDragging()},this.gutterDblClickDuration))}startDragging(X,ce,Ae){X.preventDefault(),X.stopPropagation(),this.startPoint=E(X),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.snapshot={gutterNum:Ae,lastSteppedOffset:0,allAreasSizePixel:S(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(Ce=>{const Ue={area:Ce,sizePixelAtStart:S(Ce.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?Ce.size:-1};Ce.order<ce?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[Ue]:this.snapshot.areasBeforeGutter.unshift(Ue):Ce.order>ce&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[Ue]):this.snapshot.areasAfterGutter.push(Ue))}),this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((Ce,Ue)=>Ce+Ue.sizePercentAtStart,0),0!==this.snapshot.areasBeforeGutter.length&&0!==this.snapshot.areasAfterGutter.length&&(this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.dragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.dragEvent.bind(this)))}),this.displayedAreas.forEach(Ce=>Ce.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0))}dragEvent(X){X.preventDefault(),X.stopPropagation();const ce=E(X);if(null!==this._clickTimeout&&!M(this.startPoint,ce,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1===this.isDragging||(this.endPoint=E(X),null===this.endPoint))return;if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.renderer.addClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.notify("start",this.snapshot.gutterNum)})}let Ae="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&(Ae=-Ae);const Ce=Math.round(Ae/this.gutterStep)*this.gutterStep;if(Ce===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=Ce;let Ue=ye(this.unit,this.snapshot.areasBeforeGutter,-Ce,this.snapshot.allAreasSizePixel),et=ye(this.unit,this.snapshot.areasAfterGutter,Ce,this.snapshot.allAreasSizePixel);if(0!==Ue.remain&&0!==et.remain?Math.abs(Ue.remain)===Math.abs(et.remain)||(Math.abs(Ue.remain)>Math.abs(et.remain)?et=ye(this.unit,this.snapshot.areasAfterGutter,Ce+Ue.remain,this.snapshot.allAreasSizePixel):Ue=ye(this.unit,this.snapshot.areasBeforeGutter,-(Ce-et.remain),this.snapshot.allAreasSizePixel)):0!==Ue.remain?et=ye(this.unit,this.snapshot.areasAfterGutter,Ce+Ue.remain,this.snapshot.allAreasSizePixel):0!==et.remain&&(Ue=ye(this.unit,this.snapshot.areasBeforeGutter,-(Ce-et.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const pt=[...Ue.list,...et.list],je=pt.find(tt=>0!==tt.percentAfterAbsorption&&tt.percentAfterAbsorption!==tt.areaSnapshot.area.minSize&&tt.percentAfterAbsorption!==tt.areaSnapshot.area.maxSize);je&&(je.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-pt.filter(tt=>tt!==je).reduce((tt,ut)=>tt+ut.percentAfterAbsorption,0))}Ue.list.forEach(pt=>Me(this.unit,pt)),et.list.forEach(pt=>Me(this.unit,pt)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(X){if(X&&(X.preventDefault(),X.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(ce=>ce.component.unlockEvents());this.dragListeners.length>0;){const ce=this.dragListeners.pop();ce&&ce()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.renderer.removeClass(this.gutterEls.toArray()[this.snapshot.gutterNum-1].nativeElement,"as-dragged"),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(X,ce){const Ae=this.getVisibleAreaSizes();"start"===X?this.dragStart.emit({gutterNum:ce,sizes:Ae}):"end"===X?this.dragEnd.emit({gutterNum:ce,sizes:Ae}):"click"===X?this.gutterClick.emit({gutterNum:ce,sizes:Ae}):"dblclick"===X?this.gutterDblClick.emit({gutterNum:ce,sizes:Ae}):"transitionEnd"===X?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(Ae)):"progress"===X&&this.dragProgressSubject.next({gutterNum:ce,sizes:Ae})}ngOnDestroy(){this.stopDragging()}collapseArea(X,ce,Ae){const Ce=this.displayedAreas.find(pt=>pt.component===X);if(void 0===Ce)return;const Ue="right"===Ae?1:-1;Ce.sizeBeforeCollapse||(Ce.sizeBeforeCollapse=Ce.size,Ce.gutterBeforeCollapse=Ue),Ce.size=ce;const et=this.gutterEls.find(pt=>pt.nativeElement.style.order===`${Ce.order+Ue}`);et&&this.renderer.addClass(et.nativeElement,"as-split-gutter-collapsed"),this.updateArea(X,!1,!1)}expandArea(X){const ce=this.displayedAreas.find(Ce=>Ce.component===X);if(void 0===ce||!ce.sizeBeforeCollapse)return;ce.size=ce.sizeBeforeCollapse,ce.sizeBeforeCollapse=null;const Ae=this.gutterEls.find(Ce=>Ce.nativeElement.style.order===`${ce.order+ce.gutterBeforeCollapse}`);Ae&&this.renderer.removeClass(Ae.nativeElement,"as-split-gutter-collapsed"),this.updateArea(X,!1,!1)}}return te.\u0275fac=function(X){return new(X||te)(o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.ChangeDetectorRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(Re,8))},te.\u0275cmp=o.\u0275\u0275defineComponent({type:te,selectors:[["as-split"]],viewQuery:function(X,ce){if(1&X&&o.\u0275\u0275viewQuery(C,5),2&X){let Ae;o.\u0275\u0275queryRefresh(Ae=o.\u0275\u0275loadQuery())&&(ce.gutterEls=Ae)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:g,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["class","as-split-gutter",3,"flex-basis","order","mousedown","touchstart","mouseup","touchend",4,"ngIf"],[1,"as-split-gutter",3,"mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[1,"as-split-gutter-icon"]],template:function(X,ce){1&X&&(o.\u0275\u0275projectionDef(),o.\u0275\u0275projection(0),o.\u0275\u0275template(1,D,1,1,"ng-template",0)),2&X&&(o.\u0275\u0275advance(1),o.\u0275\u0275property("ngForOf",ce.displayedAreas))},directives:[l.NgForOf,l.NgIf],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}.as-horizontal[_nghost-%COMP%]{flex-direction:row}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:row;cursor:col-resize;height:100%}.as-horizontal[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.as-horizontal[_nghost-%COMP%] >.as-split-area{height:100%}.as-vertical[_nghost-%COMP%]{flex-direction:column}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{flex-direction:column;cursor:row-resize;width:100%}.as-vertical[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}.as-vertical[_nghost-%COMP%] >.as-split-area{width:100%}.as-vertical[_nghost-%COMP%] >.as-split-area.as-hidden{max-width:0}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{cursor:default}.as-disabled[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] .as-split-gutter-icon[_ngcontent-%COMP%]{background-image:url()}.as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) > .as-split-gutter[_ngcontent-%COMP%], .as-transition.as-init[_nghost-%COMP%]:not(.as-dragging) >.as-split-area{transition:flex-basis .3s}"],changeDetection:0}),te})(),Ne=(()=>{class te{constructor(X,ce,Ae,Ce){this.ngZone=X,this.elRef=ce,this.renderer=Ae,this.split=Ce,this._order=null,this._size=null,this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}set order(X){this._order=L(X,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(X){this._size=L(X,null),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(X){this._minSize=L(X,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(X){this._maxSize=L(X,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(X){this._lockSize=P(X),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(X){this._visible=P(X),this._visible?(this.split.showArea(this),this.renderer.removeClass(this.elRef.nativeElement,"as-hidden")):(this.split.hideArea(this),this.renderer.addClass(this.elRef.nativeElement,"as-hidden"))}get visible(){return this._visible}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",X=>{"flex-basis"===X.propertyName&&this.split.notify("transitionEnd",-1)})})}setStyleOrder(X){this.renderer.setStyle(this.elRef.nativeElement,"order",X)}setStyleFlex(X,ce,Ae,Ce,Ue){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",X),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",ce),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",Ae),!0===Ce?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===Ue?this.renderer.addClass(this.elRef.nativeElement,"as-max"):this.renderer.removeClass(this.elRef.nativeElement,"as-max")}lockEvents(){this.ngZone.runOutsideAngular(()=>{this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"selectstart",()=>!1)),this.lockListeners.push(this.renderer.listen(this.elRef.nativeElement,"dragstart",()=>!1))})}unlockEvents(){for(;this.lockListeners.length>0;){const X=this.lockListeners.pop();X&&X()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.split.removeArea(this)}collapse(X=0,ce="right"){this.split.collapseArea(this,X,ce)}expand(){this.split.expandArea(this)}}return te.\u0275fac=function(X){return new(X||te)(o.\u0275\u0275directiveInject(o.NgZone),o.\u0275\u0275directiveInject(o.ElementRef),o.\u0275\u0275directiveInject(o.Renderer2),o.\u0275\u0275directiveInject(Pe))},te.\u0275dir=o.\u0275\u0275defineDirective({type:te,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]}),te})(),Ct=(()=>{class te{static forRoot(){return console.warn("AngularSplitModule.forRoot() is deprecated and will be removed in v6"),{ngModule:te,providers:[]}}static forChild(){return console.warn("AngularSplitModule.forChild() is deprecated and will be removed in v6"),{ngModule:te,providers:[]}}}return te.\u0275fac=function(X){return new(X||te)},te.\u0275mod=o.\u0275\u0275defineNgModule({type:te}),te.\u0275inj=o.\u0275\u0275defineInjector({imports:[[l.CommonModule]]}),te})()}},Le=>{Le(Le.s=4431)}]);