@sdkgen/playground 2.3.1 → 2.4.0

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 (126) hide show
  1. package/angular.json +5 -5
  2. package/dist/assets/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
  3. package/dist/assets/vs/base/common/worker/simpleWorker.nls.de.js +1 -1
  4. package/dist/assets/vs/base/common/worker/simpleWorker.nls.es.js +1 -1
  5. package/dist/assets/vs/base/common/worker/simpleWorker.nls.fr.js +1 -1
  6. package/dist/assets/vs/base/common/worker/simpleWorker.nls.it.js +1 -1
  7. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ja.js +1 -1
  8. package/dist/assets/vs/base/common/worker/simpleWorker.nls.js +1 -1
  9. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ko.js +1 -1
  10. package/dist/assets/vs/base/common/worker/simpleWorker.nls.ru.js +1 -1
  11. package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-cn.js +1 -1
  12. package/dist/assets/vs/base/common/worker/simpleWorker.nls.zh-tw.js +1 -1
  13. package/dist/assets/vs/base/worker/workerMain.js +18 -18
  14. package/dist/assets/vs/basic-languages/abap/abap.js +1 -1
  15. package/dist/assets/vs/basic-languages/apex/apex.js +1 -1
  16. package/dist/assets/vs/basic-languages/azcli/azcli.js +1 -1
  17. package/dist/assets/vs/basic-languages/bat/bat.js +1 -1
  18. package/dist/assets/vs/basic-languages/bicep/bicep.js +1 -1
  19. package/dist/assets/vs/basic-languages/cameligo/cameligo.js +1 -1
  20. package/dist/assets/vs/basic-languages/clojure/clojure.js +1 -1
  21. package/dist/assets/vs/basic-languages/coffee/coffee.js +1 -1
  22. package/dist/assets/vs/basic-languages/cpp/cpp.js +1 -1
  23. package/dist/assets/vs/basic-languages/csharp/csharp.js +1 -1
  24. package/dist/assets/vs/basic-languages/csp/csp.js +1 -1
  25. package/dist/assets/vs/basic-languages/css/css.js +1 -1
  26. package/dist/assets/vs/basic-languages/cypher/cypher.js +1 -1
  27. package/dist/assets/vs/basic-languages/dart/dart.js +1 -1
  28. package/dist/assets/vs/basic-languages/dockerfile/dockerfile.js +1 -1
  29. package/dist/assets/vs/basic-languages/ecl/ecl.js +1 -1
  30. package/dist/assets/vs/basic-languages/elixir/elixir.js +1 -1
  31. package/dist/assets/vs/basic-languages/flow9/flow9.js +1 -1
  32. package/dist/assets/vs/basic-languages/freemarker2/freemarker2.js +1 -1
  33. package/dist/assets/vs/basic-languages/fsharp/fsharp.js +1 -1
  34. package/dist/assets/vs/basic-languages/go/go.js +1 -1
  35. package/dist/assets/vs/basic-languages/graphql/graphql.js +1 -1
  36. package/dist/assets/vs/basic-languages/handlebars/handlebars.js +1 -1
  37. package/dist/assets/vs/basic-languages/hcl/hcl.js +1 -1
  38. package/dist/assets/vs/basic-languages/html/html.js +1 -1
  39. package/dist/assets/vs/basic-languages/ini/ini.js +1 -1
  40. package/dist/assets/vs/basic-languages/java/java.js +1 -1
  41. package/dist/assets/vs/basic-languages/javascript/javascript.js +1 -1
  42. package/dist/assets/vs/basic-languages/julia/julia.js +1 -1
  43. package/dist/assets/vs/basic-languages/kotlin/kotlin.js +1 -1
  44. package/dist/assets/vs/basic-languages/less/less.js +1 -1
  45. package/dist/assets/vs/basic-languages/lexon/lexon.js +1 -1
  46. package/dist/assets/vs/basic-languages/liquid/liquid.js +1 -1
  47. package/dist/assets/vs/basic-languages/lua/lua.js +1 -1
  48. package/dist/assets/vs/basic-languages/m3/m3.js +1 -1
  49. package/dist/assets/vs/basic-languages/markdown/markdown.js +1 -1
  50. package/dist/assets/vs/basic-languages/mdx/mdx.js +1 -1
  51. package/dist/assets/vs/basic-languages/mips/mips.js +1 -1
  52. package/dist/assets/vs/basic-languages/msdax/msdax.js +1 -1
  53. package/dist/assets/vs/basic-languages/mysql/mysql.js +1 -1
  54. package/dist/assets/vs/basic-languages/objective-c/objective-c.js +1 -1
  55. package/dist/assets/vs/basic-languages/pascal/pascal.js +1 -1
  56. package/dist/assets/vs/basic-languages/pascaligo/pascaligo.js +1 -1
  57. package/dist/assets/vs/basic-languages/perl/perl.js +1 -1
  58. package/dist/assets/vs/basic-languages/pgsql/pgsql.js +1 -1
  59. package/dist/assets/vs/basic-languages/php/php.js +1 -1
  60. package/dist/assets/vs/basic-languages/pla/pla.js +1 -1
  61. package/dist/assets/vs/basic-languages/postiats/postiats.js +1 -1
  62. package/dist/assets/vs/basic-languages/powerquery/powerquery.js +1 -1
  63. package/dist/assets/vs/basic-languages/powershell/powershell.js +1 -1
  64. package/dist/assets/vs/basic-languages/protobuf/protobuf.js +1 -1
  65. package/dist/assets/vs/basic-languages/pug/pug.js +1 -1
  66. package/dist/assets/vs/basic-languages/python/python.js +1 -1
  67. package/dist/assets/vs/basic-languages/qsharp/qsharp.js +1 -1
  68. package/dist/assets/vs/basic-languages/r/r.js +1 -1
  69. package/dist/assets/vs/basic-languages/razor/razor.js +1 -1
  70. package/dist/assets/vs/basic-languages/redis/redis.js +1 -1
  71. package/dist/assets/vs/basic-languages/redshift/redshift.js +1 -1
  72. package/dist/assets/vs/basic-languages/restructuredtext/restructuredtext.js +1 -1
  73. package/dist/assets/vs/basic-languages/ruby/ruby.js +1 -1
  74. package/dist/assets/vs/basic-languages/rust/rust.js +1 -1
  75. package/dist/assets/vs/basic-languages/sb/sb.js +1 -1
  76. package/dist/assets/vs/basic-languages/scala/scala.js +1 -1
  77. package/dist/assets/vs/basic-languages/scheme/scheme.js +1 -1
  78. package/dist/assets/vs/basic-languages/scss/scss.js +1 -1
  79. package/dist/assets/vs/basic-languages/shell/shell.js +1 -1
  80. package/dist/assets/vs/basic-languages/solidity/solidity.js +1 -1
  81. package/dist/assets/vs/basic-languages/sophia/sophia.js +1 -1
  82. package/dist/assets/vs/basic-languages/sparql/sparql.js +1 -1
  83. package/dist/assets/vs/basic-languages/sql/sql.js +1 -1
  84. package/dist/assets/vs/basic-languages/st/st.js +1 -1
  85. package/dist/assets/vs/basic-languages/swift/swift.js +1 -1
  86. package/dist/assets/vs/basic-languages/systemverilog/systemverilog.js +1 -1
  87. package/dist/assets/vs/basic-languages/tcl/tcl.js +1 -1
  88. package/dist/assets/vs/basic-languages/twig/twig.js +1 -1
  89. package/dist/assets/vs/basic-languages/typescript/typescript.js +1 -1
  90. package/dist/assets/vs/basic-languages/vb/vb.js +1 -1
  91. package/dist/assets/vs/basic-languages/wgsl/wgsl.js +1 -1
  92. package/dist/assets/vs/basic-languages/xml/xml.js +1 -1
  93. package/dist/assets/vs/basic-languages/yaml/yaml.js +1 -1
  94. package/dist/assets/vs/editor/editor.main.css +2 -2
  95. package/dist/assets/vs/editor/editor.main.js +227 -240
  96. package/dist/assets/vs/editor/editor.main.nls.de.js +7 -7
  97. package/dist/assets/vs/editor/editor.main.nls.es.js +7 -7
  98. package/dist/assets/vs/editor/editor.main.nls.fr.js +6 -6
  99. package/dist/assets/vs/editor/editor.main.nls.it.js +6 -6
  100. package/dist/assets/vs/editor/editor.main.nls.ja.js +7 -7
  101. package/dist/assets/vs/editor/editor.main.nls.js +6 -6
  102. package/dist/assets/vs/editor/editor.main.nls.ko.js +6 -6
  103. package/dist/assets/vs/editor/editor.main.nls.ru.js +7 -7
  104. package/dist/assets/vs/editor/editor.main.nls.zh-cn.js +7 -7
  105. package/dist/assets/vs/editor/editor.main.nls.zh-tw.js +6 -6
  106. package/dist/assets/vs/language/css/cssMode.js +1 -1
  107. package/dist/assets/vs/language/css/cssWorker.js +1 -1
  108. package/dist/assets/vs/language/html/htmlMode.js +1 -1
  109. package/dist/assets/vs/language/html/htmlWorker.js +1 -1
  110. package/dist/assets/vs/language/json/jsonMode.js +1 -1
  111. package/dist/assets/vs/language/json/jsonWorker.js +1 -1
  112. package/dist/assets/vs/language/typescript/tsMode.js +1 -1
  113. package/dist/assets/vs/language/typescript/tsWorker.js +1 -1
  114. package/dist/assets/vs/loader.js +1 -1
  115. package/dist/index.html +5 -5
  116. package/dist/main.66ecc36b4938c46d.js +1 -0
  117. package/dist/polyfills.981a2f9bf2cad977.js +1 -0
  118. package/dist/runtime.67b659409970ebc5.js +1 -0
  119. package/dist/styles.a1d0dc6411b2ac4b.css +1 -0
  120. package/package.json +34 -33
  121. package/tsconfig.app.json +3 -7
  122. package/dist/main.7dac5238eda4e77b.js +0 -1
  123. package/dist/polyfills.2deed7bc292b0032.js +0 -1
  124. package/dist/runtime.f0f049cf108c7905.js +0 -1
  125. package/dist/styles.9f4ce55a5b1e052d.css +0 -1
  126. package/tsconfig.json +0 -34
@@ -0,0 +1 @@
1
+ (self.webpackChunksdkgen_playground=self.webpackChunksdkgen_playground||[]).push([[179],{3661:(Ee,w,b)=>{"use strict";b.d(w,{m:()=>O});var a=b(7481),i=b(1322),te=b(9462),Q=b(6086),v=b(7950),y=b(1238);function T(R,ie){1&R&&(i.ynx(0),i._uU(1,"info_outline"),i.BQk())}function S(R,ie){1&R&&(i.ynx(0),i._uU(1,"error"),i.BQk())}function N(R,ie){1&R&&(i.ynx(0),i._uU(1,"public"),i.BQk())}function k(R,ie){1&R&&(i.ynx(0),i._uU(1,"warning"),i.BQk())}function W(R,ie){1&R&&(i.ynx(0),i._uU(1,"bug_report"),i.BQk())}function A(R,ie){if(1&R&&i._UZ(0,"ngx-json-viewer",6),2&R){const J=i.oxw().$implicit;i.Q6J("json",J.details)("expanded",!1)}}function C(R,ie){if(1&R&&(i.TgZ(0,"li",2)(1,"mat-icon",3),i.YNc(2,T,2,0,"ng-container",4)(3,S,2,0,"ng-container",4)(4,N,2,0,"ng-container",4)(5,k,2,0,"ng-container",4)(6,W,2,0,"ng-container",4),i.qZA(),i.TgZ(7,"span"),i._uU(8),i.qZA(),i.YNc(9,A,1,2,"ngx-json-viewer",5),i.qZA()),2&R){const J=ie.$implicit,ce=i.oxw();i.Q6J("ngClass",J.type),i.xp6(1),i.Q6J("ngSwitch",J.type)("ngClass",J.type),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.INFO),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.ERROR),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.NETWORK),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.WARN),i.xp6(1),i.Q6J("ngSwitchCase",ce.itemTypes.DEBUG),i.xp6(2),i.Oqu(J.message),i.xp6(1),i.Q6J("ngIf",J.details)}}let O=(()=>{class R{constructor(){this.itemTypes=a.p,this.items=[]}static#e=this.\u0275fac=function(ce){return new(ce||R)};static#t=this.\u0275cmp=i.Xpm({type:R,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(ce,Fe){1&ce&&(i.TgZ(0,"header")(1,"strong"),i._uU(2,"CONSOLE"),i.qZA(),i._UZ(3,"s"),i.TgZ(4,"button",0),i.NdJ("click",function(){return Fe.items.splice(0,Fe.items.length)}),i.TgZ(5,"mat-icon"),i._uU(6,"delete"),i.qZA()()(),i.TgZ(7,"ul"),i.YNc(8,C,10,10,"li",1),i.qZA()),2&ce&&(i.xp6(8),i.Q6J("ngForOf",Fe.items))},dependencies:[te.mk,te.sg,te.O5,te.RF,te.n9,Q.Y,v.RK,y.Hw],styles:["[_nghost-%COMP%]{display:block;height:100%;text-align:left;overflow-y:scroll;box-sizing:border-box}header[_ngcontent-%COMP%]{display:flex;flex-direction:row;position:sticky;top:0;background:#1E1E1E;border-bottom:1px solid #444444;padding:5px 0;z-index:2}header[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{margin:0 10px;text-transform:uppercase;font-weight:200;color:#e7e7e7;border-bottom:1px solid rgb(231,231,231);line-height:27px;font-size:11pt;align-self:center}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 10px}ul[_ngcontent-%COMP%]{padding:0;margin:0;box-sizing:border-box}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{list-style:none;display:block;width:100%;height:auto;padding:5px 10px;font-size:1rem;border-bottom:1px solid #444444;background-color:#111;word-break:break-all;box-sizing:border-box;word-wrap:break-word;font-family:monospace}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline;vertical-align:text-bottom}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{height:1rem;width:1rem;font-size:1rem;vertical-align:sub;margin-right:7.5px;-webkit-user-select:none;user-select:none}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.info[_ngcontent-%COMP%]{color:#b9b9bb}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.error[_ngcontent-%COMP%]{color:#ff3b6b}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_recv[_ngcontent-%COMP%], ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] mat-icon.network_send[_ngcontent-%COMP%]{color:#939395}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#0000004d}ul[_ngcontent-%COMP%] > li.error[_ngcontent-%COMP%]{color:#e69fa3;background-color:#4b2f36}"]})}return R})()},7481:(Ee,w,b)=>{"use strict";b.d(w,{p:()=>a});var a=function(i){return i.INFO="info",i.ERROR="error",i.WARN="warn",i.DEBUG="debug",i.NETWORK="network",i}(a||{})},3855:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{G:()=>SdkgenService});var _home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5861),_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1611),_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__),_sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(6068),_sdkgen_parser__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1625),_angular_core__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(1322);let SdkgenService=(()=>{class SdkgenService{constructor(){this.state$=new rxjs__WEBPACK_IMPORTED_MODULE_2__.X(null)}buildJsonObject(Ee,w=new Set){const b=a=>{switch(a.constructor){case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StringPrimitiveType:return"";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.IntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.FloatPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BigIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.MoneyPrimitiveType:return 0;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DecimalPrimitiveType:return"0.00";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DatePrimitiveType:return(new Date).toJSON().substring(0,10);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DateTimePrimitiveType:return(new Date).toJSON().substring(0,23);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BoolPrimitiveType:return Math.random()>.5;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.VoidPrimitiveType:return null;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CpfPrimitiveType:return"000.000.001-91";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CnpjPrimitiveType:return"00.000.001/0001-91";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EmailPrimitiveType:return"joao@acme.com";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UrlPrimitiveType:return"https://www.google.com/";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UuidPrimitiveType:return"00000000-0000-0000-0000-000000000000";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HexPrimitiveType:return new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("");case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HtmlPrimitiveType:return"<h1>Hello world!</h1>";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BytesPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.Base64PrimitiveType:return"0a=";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.XmlPrimitiveType:return"<xml></xml>";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.JsonPrimitiveType:return{};case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StructType:return w.has(a.name)?{}:this.buildJsonObject(a.fields,new Set([...w,a.name]));case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.OptionalType:return null;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.TypeReference:return b(a.type);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.ArrayType:return[b(a.base),b(a.base),b(a.base)];case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EnumType:return a.values[0].value;default:return null}};return Ee.reduce((a,i)=>(a[i.name]=b(i.type),a),{})}getTypeScriptCode(Ee,w){return`await client.${Ee}(${JSON.stringify(w,null,2)});\n`}buildKotlinString(Ee,w=0){const b=a=>{switch(a.constructor){case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StringPrimitiveType:return'""';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.IntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.FloatPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BigIntPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.MoneyPrimitiveType:return 0;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DecimalPrimitiveType:return'BigDecimal("0.00")';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DatePrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.DateTimePrimitiveType:return"Calendar.getInstance()";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BoolPrimitiveType:return Math.random()>.5?"true":"false";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.VoidPrimitiveType:return"null";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CpfPrimitiveType:return'"000.000.001-91"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.CnpjPrimitiveType:return'"00.000.001/0001-91"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EmailPrimitiveType:return'"joao@acme.com"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UrlPrimitiveType:return'"https://www.google.com/"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.UuidPrimitiveType:return'"00000000-0000-0000-0000-000000000000"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HexPrimitiveType:return`"${new Array(32).fill(0).map(()=>"0123456789abcdef"[Math.floor(16*Math.random())]).join("")}"`;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.HtmlPrimitiveType:return'"<h1>Hello world!</h1>"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.BytesPrimitiveType:case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.Base64PrimitiveType:return'"0a="';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.XmlPrimitiveType:return'"<xml></xml>"';case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.JsonPrimitiveType:return"json {}";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.StructType:return`${a.name}(\n${this.buildKotlinString(a.fields,w+1)}\n${" ".repeat(w+1)})`;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.OptionalType:return"null";case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.TypeReference:return b(a.type);case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.ArrayType:w++;const i=b(a.base);return w--,`arrayOf(\n${" ".repeat(w+2)}${i},\n${" ".repeat(w+2)}${i}\n${" ".repeat(w+1)})`;case _sdkgen_parser__WEBPACK_IMPORTED_MODULE_1__.EnumType:return`"${a.values[0].value}"`;default:return"<>()"}};return Ee.map(a=>`${" ".repeat(w+1)}${b(a.type)}`).join(",\n")}getKotlinCode(Ee,w){return 0===w.length?`client.${Ee}().await();`:`client.${Ee}(\n${this.buildKotlinString(w)}\n).await();`}getDartCode(Ee,w){return'print("todo");'}getSwiftCode(Ee,w){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===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?"data = null;":""}\n\n constructor(message${base===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?", data":""}) {\n super(message${base===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?", data":""});\n this.message = message;\n ${base===_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData?"this.data = data;":""}\n this.toString = () => this.type + ": " + this.message;\n }\n }\n )`)(base)}return"string"==typeof cur?acc[cur]=errorClass(cur,_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenError):acc[cur[0]]=errorClass(cur[0],_sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenErrorWithData),acc},{}),clientInstance=new _sdkgen_browser_runtime__WEBPACK_IMPORTED_MODULE_0__.SdkgenHttpClient(url,ast,errorFns);return new Proxy(clientInstance,{get:(Ee,w)=>["baseUrl","extra","successHook","errorHook","makeRequest"].includes(w.toString())?clientInstance[w.toString()]:function(){var b=(0,_home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__.Z)(function*(a){return clientInstance.makeRequest(w.toString(),a)});return function(a){return b.apply(this,arguments)}}()})}static#_=this.\u0275fac=function Ee(w){return new(w||SdkgenService)};static#_2=this.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_4__.Yz7({token:SdkgenService,factory:SdkgenService.\u0275fac,providedIn:"root"})}return SdkgenService})()},2311:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>SimpleCallComponent});var _home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5861),_angular_forms__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8832),_console_console_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7481),_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9086),_angular_core__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1322),_sdkgen_service__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3855),_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9309),ngx_json_viewer__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6086),angular_split__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(534),_angular_material_button__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7950),_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(1238),_angular_material_tabs__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(7361),_console_console_component__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3661);let SimpleCallComponent=(()=>{class SimpleCallComponent{constructor(Ee){this.sdkgen=Ee,this.editorOptions={theme:"vs-dark",language:"json"},this.code="",this.initialExtras='{\n "key": "value"\n}\n',this.extras=this.initialExtras,this.busy=!1,this.selected=new _angular_forms__WEBPACK_IMPORTED_MODULE_3__.NI(0),this.consoleItems=[]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ee=>{Ee&&(this.generateFunctionCode(Ee.astRoot,this.fn),this.client=this.sdkgen.getSdkgenClient(Ee.url,Ee.astJson))})}ngOnDestroy(){this.state$?.unsubscribe()}run(){var _this=this;return(0,_home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__.Z)(function*(){try{_this.busy=!0;{const events=_this.consoleItems;eval(_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.Y)}if(_this.extras&&_this.extras!==_this.initialExtras){const Ee=JSON.parse(_this.extras),w=Object.keys(Ee);for(const b of w)_this.client?.extra.set(b,Ee[b])}const exec=_this.client[_this.fn](JSON.parse(_this.code));_this.response={result:yield exec}}catch(Ee){_this.consoleItems.push({type:_console_console_types__WEBPACK_IMPORTED_MODULE_0__.p.ERROR,message:Ee.toString()}),delete Ee.toString,_this.response={error:{type:Ee.type,message:Ee.message,data:Ee.data}}}finally{eval(_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.W),_this.selected.setValue(2),_this.busy=!1}})()}generateFunctionCode(Ee,w){const b=Ee.operations.find(a=>a.name===w)?.args;b&&(this.code=JSON.stringify(this.sdkgen.buildJsonObject(b),null,2))}static#_=this.\u0275fac=function Ee(w){return new(w||SimpleCallComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__.Y36(_sdkgen_service__WEBPACK_IMPORTED_MODULE_1__.G))};static#_2=this.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Xpm({type:SimpleCallComponent,selectors:[["app-simple-call"]],inputs:{fn:"fn"},decls:14,vars:10,consts:[["direction","vertical"],["animationDuration","0ms","mat-stretch-tabs","false",3,"selectedIndex","selectedIndexChange"],["label","Requisi\xe7\xe3o"],["mat-fab","",1,"run-fab",3,"disabled","click"],[3,"options","ngModel","ngModelChange"],["label","Extras"],["label","Resposta",3,"disabled"],[3,"json"],[3,"size"],[3,"items"]],template:function Ee(w,b){1&w&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(0,"as-split",0)(1,"as-split-area")(2,"mat-tab-group",1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("selectedIndexChange",function(i){return b.selected.setValue(i)}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(3,"mat-tab",2)(4,"button",3),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("click",function(){return b.run()}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(5,"mat-icon"),_angular_core__WEBPACK_IMPORTED_MODULE_6__._uU(6,"play_arrow"),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(7,"ngx-monaco-editor",4),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("ngModelChange",function(i){return b.code=i}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(8,"mat-tab",5)(9,"ngx-monaco-editor",4),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("ngModelChange",function(i){return b.extras=i}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(10,"mat-tab",6),_angular_core__WEBPACK_IMPORTED_MODULE_6__._UZ(11,"ngx-json-viewer",7),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(12,"as-split-area",8),_angular_core__WEBPACK_IMPORTED_MODULE_6__._UZ(13,"app-console",9),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()()),2&w&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("selectedIndex",b.selected.value),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("disabled",b.busy),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(3),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("options",b.editorOptions)("ngModel",b.code),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(2),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("options",b.editorOptions)("ngModel",b.extras),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("disabled",!b.response),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("json",b.response),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("size",30),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("items",b.consoleItems))},dependencies:[_angular_forms__WEBPACK_IMPORTED_MODULE_3__.JJ,_angular_forms__WEBPACK_IMPORTED_MODULE_3__.On,_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_7__.T2,ngx_json_viewer__WEBPACK_IMPORTED_MODULE_8__.Y,angular_split__WEBPACK_IMPORTED_MODULE_9__.Mq,angular_split__WEBPACK_IMPORTED_MODULE_9__.zE,_angular_material_button__WEBPACK_IMPORTED_MODULE_10__.cs,_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__.Hw,_angular_material_tabs__WEBPACK_IMPORTED_MODULE_12__.uX,_angular_material_tabs__WEBPACK_IMPORTED_MODULE_12__.SP,_console_console_component__WEBPACK_IMPORTED_MODULE_2__.m],styles:["[_nghost-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%]{height:100%}mat-tab-group[_ngcontent-%COMP%] .ngx-json-viewer{overflow:inherit!important}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-wrapper{height:100%}mat-tab-group[_ngcontent-%COMP%] .mat-tab-body-content{overflow-y:hidden!important}mat-tab-group[_ngcontent-%COMP%] ngx-monaco-editor[_ngcontent-%COMP%]{display:block;height:100%}mat-tab-group[_ngcontent-%COMP%] ngx-json-viewer[_ngcontent-%COMP%]{display:block;height:100%;width:100%;overflow-y:auto;scrollbar-width:thin}"]})}return SimpleCallComponent})()},3101:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{I:()=>TabEditorComponent});var _home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5861),_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5747),_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0__),_console_console_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7481),_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9086),_angular_core__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(1322),_sdkgen_service__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3855),_angular_forms__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(8832),_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(9309),angular_split__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(534),_angular_material_button__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(7950),_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(1238),_console_console_component__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3661);let TabEditorComponent=(()=>{class TabEditorComponent{constructor(Ee){this.sdkgen=Ee,this.code="",this.busy=!1,this.editorOptions={theme:"vs-dark",language:"typescript"},this.consoleItems=[{type:_console_console_types__WEBPACK_IMPORTED_MODULE_1__.p.INFO,message:"Bem-vindo! A sa\xedda dos seus testes aparecer\xe1 aqui :)"}]}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(Ee=>{if(!Ee)return;const w=`${this.patchBrowserClientSource((0,_sdkgen_typescript_generator__WEBPACK_IMPORTED_MODULE_0__.generateBrowserClientSource)(Ee.astRoot))}\n\ndeclare const client: sdkgen.ApiClient;\n\n`;this.client=this.sdkgen.getSdkgenClient(Ee.url,Ee.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 b=monaco.editor.getModels().find(i=>i.uri.toString().endsWith("client.d.ts"));b?b.setValue(w):monaco.editor.createModel(w,"typescript",monaco.Uri.parse("ts:filename/client.d.ts"));const[a]=Ee.astRoot.operations;this.code=this.sdkgen.getTypeScriptCode(a.name,this.sdkgen.buildJsonObject(a.args))})}ngOnDestroy(){this.state$?.unsubscribe()}patchBrowserClientSource(Ee){return`declare namespace sdkgen {\n${Ee.substring(95,Ee.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(0,_home_runner_work_sdkgen_sdkgen_packages_playground_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__.Z)(function*(){try{_this.busy=!0,yield eval(`\n (async (client, events) => {\n ${_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.Y}\n ${_this.code}\n })\n `)(_this.client,_this.consoleItems).finally(()=>eval(_utils_code_execution__WEBPACK_IMPORTED_MODULE_5__.W))}catch(Ee){_this.consoleItems.push({type:_console_console_types__WEBPACK_IMPORTED_MODULE_1__.p.ERROR,message:Ee.toString()})}_this.busy=!1})()}static#_=this.\u0275fac=function Ee(w){return new(w||TabEditorComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_6__.Y36(_sdkgen_service__WEBPACK_IMPORTED_MODULE_2__.G))};static#_2=this.\u0275cmp=_angular_core__WEBPACK_IMPORTED_MODULE_6__.Xpm({type:TabEditorComponent,selectors:[["app-tab-editor"]],decls:8,vars:5,consts:[["mat-fab","",1,"run-fab",3,"disabled","click"],["direction","vertical"],[1,"o-hidden"],[3,"options","ngModel","ngModelChange"],[3,"size"],[3,"items"]],template:function Ee(w,b){1&w&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(0,"button",0),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("click",function(){return b.run()}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(1,"mat-icon"),_angular_core__WEBPACK_IMPORTED_MODULE_6__._uU(2,"play_arrow"),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(3,"as-split",1)(4,"as-split-area",2)(5,"ngx-monaco-editor",3),_angular_core__WEBPACK_IMPORTED_MODULE_6__.NdJ("ngModelChange",function(i){return b.code=i}),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()(),_angular_core__WEBPACK_IMPORTED_MODULE_6__.TgZ(6,"as-split-area",4),_angular_core__WEBPACK_IMPORTED_MODULE_6__._UZ(7,"app-console",5),_angular_core__WEBPACK_IMPORTED_MODULE_6__.qZA()()),2&w&&(_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("disabled",b.busy),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(5),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("options",b.editorOptions)("ngModel",b.code),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("size",30),_angular_core__WEBPACK_IMPORTED_MODULE_6__.xp6(1),_angular_core__WEBPACK_IMPORTED_MODULE_6__.Q6J("items",b.consoleItems))},dependencies:[_angular_forms__WEBPACK_IMPORTED_MODULE_7__.JJ,_angular_forms__WEBPACK_IMPORTED_MODULE_7__.On,_materia_ui_ngx_monaco_editor__WEBPACK_IMPORTED_MODULE_8__.T2,angular_split__WEBPACK_IMPORTED_MODULE_9__.Mq,angular_split__WEBPACK_IMPORTED_MODULE_9__.zE,_angular_material_button__WEBPACK_IMPORTED_MODULE_10__.cs,_angular_material_icon__WEBPACK_IMPORTED_MODULE_11__.Hw,_console_console_component__WEBPACK_IMPORTED_MODULE_3__.m],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}"]})}return TabEditorComponent})()},9086:(Ee,w,b)=>{"use strict";b.d(w,{W:()=>i,Y:()=>a});const a='\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.__originalConsole = [console.log, console.error, console.warn, console.debug, console.info];\n\n for (const method of window.__originalConsole) {\n console[method.name] = function() {\n const event = { type: method.name === "log" ? "info" : method.name, message: Array.prototype.map.call(arguments, x => typeof x === "object" ? JSON.stringify(x) : x.toString()).join(" ") };\n events.push(event);\n return method.apply(this, arguments);\n }\n }\n',i="\n XMLHttpRequest.prototype.open = window.___originalXmlHttpRequestOpen;\n for (const method of window.__originalConsole) {\n console[method.name] = method;\n }\n"},4301:(Ee,w,b)=>{"use strict";var a=b(4707),i=b(1322),te=b(9272),Q=b(8832),v=b(7950),y=b(5988),T=b(9462),S=b(9021),N=b(8654),k=b(9453),W=b(4991),A=b(3581),C=b(5779),O=b(19),R=b(2835),ie=b(7605),J=b(4877),ce=b(6e3);function On(h,l){1&h&&(i.TgZ(0,"span",7),i.Hsn(1,1),i.qZA())}function Bn(h,l){1&h&&(i.TgZ(0,"span",8),i.Hsn(1,2),i.qZA())}const Vn=["*",[["mat-chip-avatar"],["","matChipAvatar",""]],[["mat-chip-trailing-icon"],["","matChipRemove",""],["","matChipTrailingIcon",""]]],We=["*","mat-chip-avatar, [matChipAvatar]","mat-chip-trailing-icon,[matChipRemove],[matChipTrailingIcon]"],Rt=["*"],gn=new i.OlP("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[ie.K5]})}),qt=new i.OlP("MatChipAvatar"),xt=new i.OlP("MatChipTrailingIcon"),Ci=new i.OlP("MatChipRemove"),gi=new i.OlP("MatChip");class so{}const ir=(0,S.sb)(so,-1);let Qt=(()=>{class h extends ir{get disabled(){return this._disabled||this._parentChip.disabled}set disabled(o){this._disabled=(0,y.Ig)(o)}_getDisabledAttribute(){return this.disabled&&!this._allowFocusWhenDisabled?"":null}_getTabindex(){return this.disabled&&!this._allowFocusWhenDisabled||!this.isInteractive?null:this.tabIndex.toString()}constructor(o,c){super(),this._elementRef=o,this._parentChip=c,this.isInteractive=!0,this._isPrimary=!0,this._disabled=!1,this._allowFocusWhenDisabled=!1,"BUTTON"===o.nativeElement.nodeName&&o.nativeElement.setAttribute("type","button")}focus(){this._elementRef.nativeElement.focus()}_handleClick(o){!this.disabled&&this.isInteractive&&this._isPrimary&&(o.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}_handleKeydown(o){(o.keyCode===ie.K5||o.keyCode===ie.L_)&&!this.disabled&&this.isInteractive&&this._isPrimary&&!this._parentChip._isEditing&&(o.preventDefault(),this._parentChip._handlePrimaryActionInteraction())}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(gi))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matChipAction",""]],hostAttrs:[1,"mdc-evolution-chip__action","mat-mdc-chip-action"],hostVars:9,hostBindings:function(c,u){1&c&&i.NdJ("click",function(D){return u._handleClick(D)})("keydown",function(D){return u._handleKeydown(D)}),2&c&&(i.uIk("tabindex",u._getTabindex())("disabled",u._getDisabledAttribute())("aria-disabled",u.disabled),i.ekj("mdc-evolution-chip__action--primary",u._isPrimary)("mdc-evolution-chip__action--presentational",!u.isInteractive)("mdc-evolution-chip__action--trailing",!u._isPrimary))},inputs:{disabled:"disabled",tabIndex:"tabIndex",isInteractive:"isInteractive",_allowFocusWhenDisabled:"_allowFocusWhenDisabled"},features:[i.qOj]})}return h})(),Vo=0;const yo=(0,S.sb)((0,S.pj)((0,S.Kr)((0,S.Id)(class{constructor(h){this._elementRef=h}})),"primary"),-1);let hi=(()=>{class h extends yo{_hasFocus(){return this._hasFocusInternal}get value(){return void 0!==this._value?this._value:this._textElement.textContent.trim()}set value(o){this._value=o}get removable(){return this._removable}set removable(o){this._removable=(0,y.Ig)(o)}get highlighted(){return this._highlighted}set highlighted(o){this._highlighted=(0,y.Ig)(o)}get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(o){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,o)}constructor(o,c,u,p,D,q,fe,ye){super(c),this._changeDetectorRef=o,this._ngZone=u,this._focusMonitor=p,this._globalRippleOptions=fe,this._onFocus=new k.x,this._onBlur=new k.x,this.role=null,this._hasFocusInternal=!1,this.id="mat-mdc-chip-"+Vo++,this.ariaLabel=null,this.ariaDescription=null,this._ariaDescriptionId=`${this.id}-aria-description`,this._removable=!0,this._highlighted=!1,this.removed=new i.vpe,this.destroyed=new i.vpe,this.basicChipAttrName="mat-basic-chip",this._rippleLoader=(0,i.f3M)(S.Fq),this._document=D,this._animationsDisabled="NoopAnimations"===q,null!=ye&&(this.tabIndex=parseInt(ye)??this.defaultTabIndex),this._monitorFocus(),this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-chip-ripple",disabled:this._isRippleDisabled()})}ngOnInit(){const o=this._elementRef.nativeElement;this._isBasicChip=o.hasAttribute(this.basicChipAttrName)||o.tagName.toLowerCase()===this.basicChipAttrName}ngAfterViewInit(){this._textElement=this._elementRef.nativeElement.querySelector(".mat-mdc-chip-action-label"),this._pendingFocus&&(this._pendingFocus=!1,this.focus())}ngAfterContentInit(){this._actionChanges=(0,W.T)(this._allLeadingIcons.changes,this._allTrailingIcons.changes,this._allRemoveIcons.changes).subscribe(()=>this._changeDetectorRef.markForCheck())}ngDoCheck(){this._rippleLoader.setDisabled(this._elementRef.nativeElement,this._isRippleDisabled())}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement),this._actionChanges?.unsubscribe(),this.destroyed.emit({chip:this}),this.destroyed.complete()}remove(){this.removable&&this.removed.emit({chip:this})}_isRippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||this._isBasicChip||!!this._globalRippleOptions?.disabled}_hasTrailingIcon(){return!(!this.trailingIcon&&!this.removeIcon)}_handleKeydown(o){(o.keyCode===ie.ZH||o.keyCode===ie.yY)&&(o.preventDefault(),this.remove())}focus(){this.disabled||(this.primaryAction?this.primaryAction.focus():this._pendingFocus=!0)}_getSourceAction(o){return this._getActions().find(c=>{const u=c._elementRef.nativeElement;return u===o||u.contains(o)})}_getActions(){const o=[];return this.primaryAction&&o.push(this.primaryAction),this.removeIcon&&o.push(this.removeIcon),this.trailingIcon&&o.push(this.trailingIcon),o}_handlePrimaryActionInteraction(){}_monitorFocus(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(o=>{const c=null!==o;c!==this._hasFocusInternal&&(this._hasFocusInternal=c,c?this._onFocus.next({chip:this}):this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>this._ngZone.run(()=>this._onBlur.next({chip:this}))))})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(N.tE),i.Y36(T.K0),i.Y36(i.QbO,8),i.Y36(S.Y2,8),i.$8M("tabindex"))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,qt,5),i.Suo(p,xt,5),i.Suo(p,Ci,5),i.Suo(p,qt,5),i.Suo(p,xt,5),i.Suo(p,Ci,5)),2&c){let D;i.iGM(D=i.CRH())&&(u.leadingIcon=D.first),i.iGM(D=i.CRH())&&(u.trailingIcon=D.first),i.iGM(D=i.CRH())&&(u.removeIcon=D.first),i.iGM(D=i.CRH())&&(u._allLeadingIcons=D),i.iGM(D=i.CRH())&&(u._allTrailingIcons=D),i.iGM(D=i.CRH())&&(u._allRemoveIcons=D)}},viewQuery:function(c,u){if(1&c&&i.Gf(Qt,5),2&c){let p;i.iGM(p=i.CRH())&&(u.primaryAction=p.first)}},hostAttrs:[1,"mat-mdc-chip"],hostVars:30,hostBindings:function(c,u){1&c&&i.NdJ("keydown",function(D){return u._handleKeydown(D)}),2&c&&(i.Ikx("id",u.id),i.uIk("role",u.role)("tabindex",u.role?u.tabIndex:null)("aria-label",u.ariaLabel),i.ekj("mdc-evolution-chip",!u._isBasicChip)("mdc-evolution-chip--disabled",u.disabled)("mdc-evolution-chip--with-trailing-action",u._hasTrailingIcon())("mdc-evolution-chip--with-primary-graphic",u.leadingIcon)("mdc-evolution-chip--with-primary-icon",u.leadingIcon)("mdc-evolution-chip--with-avatar",u.leadingIcon)("mat-mdc-chip-with-avatar",u.leadingIcon)("mat-mdc-chip-highlighted",u.highlighted)("mat-mdc-chip-disabled",u.disabled)("mat-mdc-basic-chip",u._isBasicChip)("mat-mdc-standard-chip",!u._isBasicChip)("mat-mdc-chip-with-trailing-icon",u._hasTrailingIcon())("_mat-animation-noopable",u._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",role:"role",id:"id",ariaLabel:["aria-label","ariaLabel"],ariaDescription:["aria-description","ariaDescription"],value:"value",removable:"removable",highlighted:"highlighted"},outputs:{removed:"removed",destroyed:"destroyed"},exportAs:["matChip"],features:[i._Bn([{provide:gi,useExisting:h}]),i.qOj],ngContentSelectors:We,decls:8,vars:3,consts:[[1,"mat-mdc-chip-focus-overlay"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--primary"],["matChipAction","",3,"isInteractive"],["class","mdc-evolution-chip__graphic mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__text-label","mat-mdc-chip-action-label"],[1,"mat-mdc-chip-primary-focus-indicator","mat-mdc-focus-indicator"],["class","mdc-evolution-chip__cell mdc-evolution-chip__cell--trailing"],[1,"mdc-evolution-chip__graphic","mat-mdc-chip-graphic"],[1,"mdc-evolution-chip__cell","mdc-evolution-chip__cell--trailing"]],template:function(c,u){1&c&&(i.F$t(Vn),i._UZ(0,"span",0),i.TgZ(1,"span",1)(2,"span",2),i.YNc(3,On,2,0,"span",3),i.TgZ(4,"span",4),i.Hsn(5),i._UZ(6,"span",5),i.qZA()()(),i.YNc(7,Bn,2,0,"span",6)),2&c&&(i.xp6(2),i.Q6J("isInteractive",!1),i.xp6(1),i.um2(3,u.leadingIcon?3:-1),i.xp6(4),i.um2(7,u._hasTrailingIcon()?7:-1))},dependencies:[Qt],styles:['.mdc-evolution-chip,.mdc-evolution-chip__cell,.mdc-evolution-chip__action{display:inline-flex;align-items:center}.mdc-evolution-chip{position:relative;max-width:100%}.mdc-evolution-chip .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-evolution-chip__cell,.mdc-evolution-chip__action{height:100%}.mdc-evolution-chip__cell--primary{overflow-x:hidden}.mdc-evolution-chip__cell--trailing{flex:1 0 auto}.mdc-evolution-chip__action{align-items:center;background:none;border:none;box-sizing:content-box;cursor:pointer;display:inline-flex;justify-content:center;outline:none;padding:0;text-decoration:none;color:inherit}.mdc-evolution-chip__action--presentational{cursor:auto}.mdc-evolution-chip--disabled,.mdc-evolution-chip__action:disabled{pointer-events:none}.mdc-evolution-chip__action--primary{overflow-x:hidden}.mdc-evolution-chip__action--trailing{position:relative;overflow:visible}.mdc-evolution-chip__action--primary:before{box-sizing:border-box;content:"";height:100%;left:0;position:absolute;pointer-events:none;top:0;width:100%;z-index:1}.mdc-evolution-chip--touch{margin-top:8px;margin-bottom:8px}.mdc-evolution-chip__action-touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-evolution-chip__text-label{white-space:nowrap;user-select:none;text-overflow:ellipsis;overflow:hidden}.mdc-evolution-chip__graphic{align-items:center;display:inline-flex;justify-content:center;overflow:hidden;pointer-events:none;position:relative;flex:1 0 auto}.mdc-evolution-chip__checkmark{position:absolute;opacity:0;top:50%;left:50%}.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--selected):not(.mdc-evolution-chip--with-primary-icon) .mdc-evolution-chip__graphic{width:0}.mdc-evolution-chip__checkmark-background{opacity:0}.mdc-evolution-chip__checkmark-svg{display:block}.mdc-evolution-chip__checkmark-path{stroke-width:2px;stroke-dasharray:29.7833385;stroke-dashoffset:29.7833385;stroke:currentColor}.mdc-evolution-chip--selecting .mdc-evolution-chip__graphic{transition:width 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark{transition:transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--selecting .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__graphic{transition:width 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark{transition:opacity 50ms 0ms linear,transform 100ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-75%, -50%)}.mdc-evolution-chip--deselecting .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--selecting-with-primary-icon .mdc-evolution-chip__checkmark-path{transition:stroke-dashoffset 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__icon--primary{transition:opacity 150ms 75ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);transform:translate(-50%, -50%)}.mdc-evolution-chip--deselecting-with-primary-icon .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}.mdc-evolution-chip--selected .mdc-evolution-chip__icon--primary{opacity:0}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark{transform:translate(-50%, -50%);opacity:1}.mdc-evolution-chip--selected .mdc-evolution-chip__checkmark-path{stroke-dashoffset:0}@keyframes mdc-evolution-chip-enter{from{transform:scale(0.8);opacity:.4}to{transform:scale(1);opacity:1}}.mdc-evolution-chip--enter{animation:mdc-evolution-chip-enter 100ms 0ms cubic-bezier(0, 0, 0.2, 1)}@keyframes mdc-evolution-chip-exit{from{opacity:1}to{opacity:0}}.mdc-evolution-chip--exit{animation:mdc-evolution-chip-exit 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-evolution-chip--hidden{opacity:0;pointer-events:none;transition:width 150ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-standard-chip{border-radius:var(--mdc-chip-container-shape-radius);height:var(--mdc-chip-container-height)}.mat-mdc-standard-chip .mdc-evolution-chip__ripple{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:before{border-radius:var(--mdc-chip-container-shape-radius)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{border-radius:var(--mdc-chip-with-avatar-avatar-shape-radius)}.mat-mdc-standard-chip.mdc-evolution-chip--selectable:not(.mdc-evolution-chip--with-primary-icon){--mdc-chip-graphic-selected-width:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip .mdc-evolution-chip__graphic{height:var(--mdc-chip-with-avatar-avatar-size);width:var(--mdc-chip-with-avatar-avatar-size);font-size:var(--mdc-chip-with-avatar-avatar-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled){background-color:var(--mdc-chip-elevated-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled{background-color:var(--mdc-chip-elevated-disabled-container-color)}.mat-mdc-standard-chip .mdc-evolution-chip__text-label{font-family:var(--mdc-chip-label-text-font);line-height:var(--mdc-chip-label-text-line-height);font-size:var(--mdc-chip-label-text-size);font-weight:var(--mdc-chip-label-text-weight);letter-spacing:var(--mdc-chip-label-text-tracking)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__text-label{color:var(--mdc-chip-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip.mdc-evolution-chip--selected.mdc-evolution-chip--disabled .mdc-evolution-chip__text-label{color:var(--mdc-chip-disabled-label-text-color)}.mat-mdc-standard-chip .mdc-evolution-chip__icon--primary{height:var(--mdc-chip-with-icon-icon-size);width:var(--mdc-chip-with-icon-icon-size);font-size:var(--mdc-chip-with-icon-icon-size)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--primary{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-disabled-icon-color)}.mat-mdc-standard-chip:not(.mdc-evolution-chip--disabled) .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-trailing-icon-color)}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__icon--trailing{color:var(--mdc-chip-with-trailing-icon-disabled-trailing-icon-color)}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary.mdc-ripple-upgraded--background-focused .mdc-evolution-chip__ripple::before,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary:not(.mdc-ripple-upgraded):focus .mdc-evolution-chip__ripple::before{transition-duration:75ms;opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-chip-focus-overlay{background:var(--mdc-chip-focus-state-layer-color);opacity:var(--mdc-chip-focus-state-layer-opacity)}.mat-mdc-standard-chip .mdc-evolution-chip__checkmark{height:20px;width:20px}.mat-mdc-standard-chip .mdc-evolution-chip__icon--trailing{height:18px;width:18px;font-size:18px}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:12px;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:12px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:6px;padding-right:6px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:6px;padding-right:6px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip.mdc-evolution-chip--disabled .mdc-evolution-chip__checkmark{color:var(--mdc-chip-with-icon-selected-icon-color, currentColor)}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary{padding-left:0;padding-right:12px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:12px;padding-right:0}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic{padding-left:4px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__graphic[dir=rtl]{padding-left:8px;padding-right:4px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing{padding-left:8px;padding-right:8px}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--trailing[dir=rtl]{padding-left:8px;padding-right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing{left:8px;right:initial}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__ripple--trailing[dir=rtl]{left:initial;right:8px}.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary{padding-left:0;padding-right:0}[dir=rtl] .mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary,.mdc-evolution-chip--with-avatar.mdc-evolution-chip--with-primary-graphic.mdc-evolution-chip--with-trailing-action .mdc-evolution-chip__action--primary[dir=rtl]{padding-left:0;padding-right:0}.mat-mdc-standard-chip{-webkit-tap-highlight-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-mdc-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-mdc-standard-chip .mdc-evolution-chip__checkmark-path{stroke:CanvasText !important}.mat-mdc-standard-chip.mdc-evolution-chip--disabled{opacity:.4}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary,.mat-mdc-standard-chip .mdc-evolution-chip__action--primary,.mat-mdc-standard-chip .mat-mdc-chip-action-label{overflow:visible}.mat-mdc-standard-chip .mdc-evolution-chip__cell--primary{flex-basis:100%}.mat-mdc-standard-chip .mdc-evolution-chip__action--primary{font:inherit;letter-spacing:inherit;white-space:inherit}.mat-mdc-standard-chip .mat-mdc-chip-graphic,.mat-mdc-standard-chip .mat-mdc-chip-trailing-icon{box-sizing:content-box}.mat-mdc-standard-chip._mat-animation-noopable,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__graphic,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark,.mat-mdc-standard-chip._mat-animation-noopable .mdc-evolution-chip__checkmark-path{transition-duration:1ms;animation-duration:1ms}.mat-mdc-basic-chip .mdc-evolution-chip__action--primary{font:inherit}.mat-mdc-chip-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;opacity:0;border-radius:inherit;transition:opacity 150ms linear}._mat-animation-noopable .mat-mdc-chip-focus-overlay{transition:none}.mat-mdc-basic-chip .mat-mdc-chip-focus-overlay{display:none}.mat-mdc-chip:hover .mat-mdc-chip-focus-overlay{opacity:.04}.mat-mdc-chip.cdk-focused .mat-mdc-chip-focus-overlay{opacity:.12}.mat-mdc-chip .mat-ripple.mat-mdc-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-chip-avatar{text-align:center;line-height:1;color:var(--mdc-chip-with-icon-icon-color, currentColor)}.mat-mdc-chip{position:relative;z-index:0}.mat-mdc-chip-action-label{text-align:left;z-index:1}[dir=rtl] .mat-mdc-chip-action-label{text-align:right}.mat-mdc-chip.mdc-evolution-chip--with-trailing-action .mat-mdc-chip-action-label{position:relative}.mat-mdc-chip-action-label .mat-mdc-chip-primary-focus-indicator{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.mat-mdc-chip-action-label .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-chip-remove{opacity:.54}.mat-mdc-chip-remove:focus{opacity:1}.mat-mdc-chip-remove::before{margin:calc(var(--mat-mdc-focus-indicator-border-width, 3px)*-1);left:8px;right:8px}.mat-mdc-chip-remove .mat-icon{width:inherit;height:inherit;font-size:inherit;box-sizing:content-box}.mat-chip-edit-input{cursor:text;display:inline-block;color:inherit;outline:0}.cdk-high-contrast-active .mat-mdc-chip-selected:not(.mat-mdc-chip-multiple){outline-width:3px}.mat-mdc-chip-action:focus .mat-mdc-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0})}return h})();class ve{constructor(l){}}const Re=(0,S.sb)(ve);let qe=(()=>{class h extends Re{get chipFocusChanges(){return this._getChipStream(o=>o._onFocus)}get chipDestroyedChanges(){return this._getChipStream(o=>o.destroyed)}get disabled(){return this._disabled}set disabled(o){this._disabled=(0,y.Ig)(o),this._syncChipsState()}get empty(){return!this._chips||0===this._chips.length}get role(){return this._explicitRole?this._explicitRole:this.empty?null:this._defaultRole}set role(o){this._explicitRole=o}get focused(){return this._hasFocusedChip()}constructor(o,c,u){super(o),this._elementRef=o,this._changeDetectorRef=c,this._dir=u,this._lastDestroyedFocusedChipIndex=null,this._destroyed=new k.x,this._defaultRole="presentation",this._disabled=!1,this._explicitRole=null,this._chipActions=new i.n_E}ngAfterViewInit(){this._setUpFocusManagement(),this._trackChipSetChanges(),this._trackDestroyedFocusedChip()}ngOnDestroy(){this._keyManager?.destroy(),this._chipActions.destroy(),this._destroyed.next(),this._destroyed.complete()}_hasFocusedChip(){return this._chips&&this._chips.some(o=>o._hasFocus())}_syncChipsState(){this._chips&&this._chips.forEach(o=>{o.disabled=this._disabled,o._changeDetectorRef.markForCheck()})}focus(){}_handleKeydown(o){this._originatesFromChip(o)&&this._keyManager.onKeydown(o)}_isValidIndex(o){return o>=0&&o<this._chips.length}_allowFocusEscape(){if(-1!==this.tabIndex){const o=this.tabIndex;this.tabIndex=-1,setTimeout(()=>this.tabIndex=o)}}_getChipStream(o){return this._chips.changes.pipe((0,O.O)(null),(0,R.w)(()=>(0,W.T)(...this._chips.map(o))))}_originatesFromChip(o){let c=o.target;for(;c&&c!==this._elementRef.nativeElement;){if(c.classList.contains("mat-mdc-chip"))return!0;c=c.parentElement}return!1}_setUpFocusManagement(){this._chips.changes.pipe((0,O.O)(this._chips)).subscribe(o=>{const c=[];o.forEach(u=>u._getActions().forEach(p=>c.push(p))),this._chipActions.reset(c),this._chipActions.notifyOnChanges()}),this._keyManager=new N.Em(this._chipActions).withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr").withHomeAndEnd().skipPredicate(o=>this._skipPredicate(o)),this.chipFocusChanges.pipe((0,C.R)(this._destroyed)).subscribe(({chip:o})=>{const c=o._getSourceAction(document.activeElement);c&&this._keyManager.updateActiveItem(c)}),this._dir?.change.pipe((0,C.R)(this._destroyed)).subscribe(o=>this._keyManager.withHorizontalOrientation(o))}_skipPredicate(o){return!o.isInteractive||o.disabled}_trackChipSetChanges(){this._chips.changes.pipe((0,O.O)(null),(0,C.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>this._syncChipsState()),this._redirectDestroyedChipFocus()})}_trackDestroyedFocusedChip(){this.chipDestroyedChanges.pipe((0,C.R)(this._destroyed)).subscribe(o=>{const u=this._chips.toArray().indexOf(o.chip);this._isValidIndex(u)&&o.chip._hasFocus()&&(this._lastDestroyedFocusedChipIndex=u)})}_redirectDestroyedChipFocus(){if(null!=this._lastDestroyedFocusedChipIndex){if(this._chips.length){const o=Math.min(this._lastDestroyedFocusedChipIndex,this._chips.length-1),c=this._chips.toArray()[o];c.disabled?1===this._chips.length?this.focus():this._keyManager.setPreviousItemActive():c.focus()}else this.focus();this._lastDestroyedFocusedChipIndex=null}}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(J.Is,8))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-chip-set"]],contentQueries:function(c,u,p){if(1&c&&i.Suo(p,hi,5),2&c){let D;i.iGM(D=i.CRH())&&(u._chips=D)}},hostAttrs:[1,"mat-mdc-chip-set","mdc-evolution-chip-set"],hostVars:1,hostBindings:function(c,u){1&c&&i.NdJ("keydown",function(D){return u._handleKeydown(D)}),2&c&&i.uIk("role",u.role)},inputs:{disabled:"disabled",role:"role"},features:[i.qOj],ngContentSelectors:Rt,decls:2,vars:0,consts:[["role","presentation",1,"mdc-evolution-chip-set__chips"]],template:function(c,u){1&c&&(i.F$t(),i.TgZ(0,"div",0),i.Hsn(1),i.qZA())},styles:[".mdc-evolution-chip-set{display:flex}.mdc-evolution-chip-set:focus{outline:none}.mdc-evolution-chip-set__chips{display:flex;flex-flow:wrap;min-width:0}.mdc-evolution-chip-set--overflow .mdc-evolution-chip-set__chips{flex-flow:nowrap}.mdc-evolution-chip-set .mdc-evolution-chip-set__chips{margin-left:-8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip-set__chips,.mdc-evolution-chip-set .mdc-evolution-chip-set__chips[dir=rtl]{margin-left:0;margin-right:-8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-left:8px;margin-right:0}[dir=rtl] .mdc-evolution-chip-set .mdc-evolution-chip,.mdc-evolution-chip-set .mdc-evolution-chip[dir=rtl]{margin-left:0;margin-right:8px}.mdc-evolution-chip-set .mdc-evolution-chip{margin-top:4px;margin-bottom:4px}.mat-mdc-chip-set .mdc-evolution-chip-set__chips{min-width:100%}.mat-mdc-chip-set-stacked{flex-direction:column;align-items:flex-start}.mat-mdc-chip-set-stacked .mat-mdc-chip{width:100%}.mat-mdc-chip-set-stacked .mdc-evolution-chip__graphic{flex-grow:0}.mat-mdc-chip-set-stacked .mdc-evolution-chip__action--primary{flex-basis:100%;justify-content:start}input.mat-mdc-chip-input{flex:1 0 150px;margin-left:8px}[dir=rtl] input.mat-mdc-chip-input{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0})}return h})(),en=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[S.rD,{provide:gn,useValue:{separatorKeyCodes:[ie.K5]}}],imports:[S.BQ,S.si,S.BQ]})}return h})();var Zt=b(9467),pn=b(3844),ei=b(1497),on=b(6512),ti=b(9592);const wo=(0,pn.Mq)();class Ki{constructor(l,o){this._viewportRuler=l,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=o}attach(){}enable(){if(this._canBeEnabled()){const l=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=l.style.left||"",this._previousHTMLStyles.top=l.style.top||"",l.style.left=(0,y.HM)(-this._previousScrollPosition.left),l.style.top=(0,y.HM)(-this._previousScrollPosition.top),l.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const l=this._document.documentElement,c=l.style,u=this._document.body.style,p=c.scrollBehavior||"",D=u.scrollBehavior||"";this._isEnabled=!1,c.left=this._previousHTMLStyles.left,c.top=this._previousHTMLStyles.top,l.classList.remove("cdk-global-scrollblock"),wo&&(c.scrollBehavior=u.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),wo&&(c.scrollBehavior=p,u.scrollBehavior=D)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const o=this._document.body,c=this._viewportRuler.getViewportSize();return o.scrollHeight>c.height||o.scrollWidth>c.width}}class ki{constructor(l,o,c,u){this._scrollDispatcher=l,this._ngZone=o,this._viewportRuler=c,this._config=u,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(l){this._overlayRef=l}enable(){if(this._scrollSubscription)return;const l=this._scrollDispatcher.scrolled(0).pipe((0,ei.h)(o=>!o||!this._overlayRef.overlayElement.contains(o.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=l.subscribe(()=>{const o=this._viewportRuler.getViewportScrollPosition().top;Math.abs(o-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=l.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Kn{enable(){}disable(){}attach(){}}function Co(h,l){return l.some(o=>h.bottom<o.top||h.top>o.bottom||h.right<o.left||h.left>o.right)}function Er(h,l){return l.some(o=>h.top<o.top||h.bottom>o.bottom||h.left<o.left||h.right>o.right)}class Hs{constructor(l,o,c,u){this._scrollDispatcher=l,this._viewportRuler=o,this._ngZone=c,this._config=u,this._scrollSubscription=null}attach(l){this._overlayRef=l}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 o=this._overlayRef.overlayElement.getBoundingClientRect(),{width:c,height:u}=this._viewportRuler.getViewportSize();Co(o,[{width:c,height:u,bottom:u,right:c,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 Ya=(()=>{class h{constructor(o,c,u,p){this._scrollDispatcher=o,this._viewportRuler=c,this._ngZone=u,this.noop=()=>new Kn,this.close=D=>new ki(this._scrollDispatcher,this._ngZone,this._viewportRuler,D),this.block=()=>new Ki(this._viewportRuler,this._document),this.reposition=D=>new Hs(this._scrollDispatcher,this._viewportRuler,this._ngZone,D),this._document=p}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Zt.mF),i.LFG(Zt.rL),i.LFG(i.R0b),i.LFG(T.K0))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();class xo{constructor(l){if(this.scrollStrategy=new Kn,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,l){const o=Object.keys(l);for(const c of o)void 0!==l[c]&&(this[c]=l[c])}}}class Zi{constructor(l,o){this.connectionPair=l,this.scrollableViewProperties=o}}let Mr=(()=>{class h{constructor(o){this._attachedOverlays=[],this._document=o}ngOnDestroy(){this.detach()}add(o){this.remove(o),this._attachedOverlays.push(o)}remove(o){const c=this._attachedOverlays.indexOf(o);c>-1&&this._attachedOverlays.splice(c,1),0===this._attachedOverlays.length&&this.detach()}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(T.K0))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),tn=(()=>{class h extends Mr{constructor(o,c){super(o),this._ngZone=c,this._keydownListener=u=>{const p=this._attachedOverlays;for(let D=p.length-1;D>-1;D--)if(p[D]._keydownEvents.observers.length>0){const q=p[D]._keydownEvents;this._ngZone?this._ngZone.run(()=>q.next(u)):q.next(u);break}}}add(o){super.add(o),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(T.K0),i.LFG(i.R0b,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),or=(()=>{class h extends Mr{constructor(o,c,u){super(o),this._platform=c,this._ngZone=u,this._cursorStyleIsSet=!1,this._pointerDownListener=p=>{this._pointerDownEventTarget=(0,pn.sA)(p)},this._clickListener=p=>{const D=(0,pn.sA)(p),q="click"===p.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:D;this._pointerDownEventTarget=null;const fe=this._attachedOverlays.slice();for(let ye=fe.length-1;ye>-1;ye--){const Le=fe[ye];if(Le._outsidePointerEvents.observers.length<1||!Le.hasAttached())continue;if(Le.overlayElement.contains(D)||Le.overlayElement.contains(q))break;const Ye=Le._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ye.next(p)):Ye.next(p)}}}add(o){if(super.add(o),!this._isAttached){const c=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(c)):this._addEventListeners(c),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=c.style.cursor,c.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const o=this._document.body;o.removeEventListener("pointerdown",this._pointerDownListener,!0),o.removeEventListener("click",this._clickListener,!0),o.removeEventListener("auxclick",this._clickListener,!0),o.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(o.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(o){o.addEventListener("pointerdown",this._pointerDownListener,!0),o.addEventListener("click",this._clickListener,!0),o.addEventListener("auxclick",this._clickListener,!0),o.addEventListener("contextmenu",this._clickListener,!0)}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(T.K0),i.LFG(pn.t4),i.LFG(i.R0b,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Ri=(()=>{class h{constructor(o,c){this._platform=c,this._document=o}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const o="cdk-overlay-container";if(this._platform.isBrowser||(0,pn.Oy)()){const u=this._document.querySelectorAll(`.${o}[platform="server"], .${o}[platform="test"]`);for(let p=0;p<u.length;p++)u[p].remove()}const c=this._document.createElement("div");c.classList.add(o),(0,pn.Oy)()?c.setAttribute("platform","test"):this._platform.isBrowser||c.setAttribute("platform","server"),this._document.body.appendChild(c),this._containerElement=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(T.K0),i.LFG(pn.t4))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();class qi{constructor(l,o,c,u,p,D,q,fe,ye,Le=!1){this._portalOutlet=l,this._host=o,this._pane=c,this._config=u,this._ngZone=p,this._keyboardDispatcher=D,this._document=q,this._location=fe,this._outsideClickDispatcher=ye,this._animationsDisabled=Le,this._backdropElement=null,this._backdropClick=new k.x,this._attachments=new k.x,this._detachments=new k.x,this._locationChanges=ti.w0.EMPTY,this._backdropClickHandler=Ye=>this._backdropClick.next(Ye),this._backdropTransitionendHandler=Ye=>{this._disposeBackdrop(Ye.target)},this._keydownEvents=new k.x,this._outsidePointerEvents=new k.x,u.scrollStrategy&&(this._scrollStrategy=u.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=u.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(l){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const o=this._portalOutlet.attach(l);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),"function"==typeof o?.onDestroy&&o.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),o}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const l=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),l}dispose(){const l=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?.remove(),this._previousHostParent=this._pane=this._host=null,l&&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(l){l!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=l,this.hasAttached()&&(l.attach(this),this.updatePosition()))}updateSize(l){this._config={...this._config,...l},this._updateElementSize()}setDirection(l){this._config={...this._config,direction:l},this._updateElementDirection()}addPanelClass(l){this._pane&&this._toggleClasses(this._pane,l,!0)}removePanelClass(l){this._pane&&this._toggleClasses(this._pane,l,!1)}getDirection(){const l=this._config.direction;return l?"string"==typeof l?l:l.value:"ltr"}updateScrollStrategy(l){l!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=l,this.hasAttached()&&(l.attach(this),l.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const l=this._pane.style;l.width=(0,y.HM)(this._config.width),l.height=(0,y.HM)(this._config.height),l.minWidth=(0,y.HM)(this._config.minWidth),l.minHeight=(0,y.HM)(this._config.minHeight),l.maxWidth=(0,y.HM)(this._config.maxWidth),l.maxHeight=(0,y.HM)(this._config.maxHeight)}_togglePointerEvents(l){this._pane.style.pointerEvents=l?"":"none"}_attachBackdrop(){const l="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(l)})}):this._backdropElement.classList.add(l)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const l=this._backdropElement;if(l){if(this._animationsDisabled)return void this._disposeBackdrop(l);l.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{l.addEventListener("transitionend",this._backdropTransitionendHandler)}),l.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(l)},500))}}_toggleClasses(l,o,c){const u=(0,y.Eq)(o||[]).filter(p=>!!p);u.length&&(c?l.classList.add(...u):l.classList.remove(...u))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const l=this._ngZone.onStable.pipe((0,C.R)((0,W.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),l.unsubscribe())})})}_disposeScrollStrategy(){const l=this._scrollStrategy;l&&(l.disable(),l.detach&&l.detach())}_disposeBackdrop(l){l&&(l.removeEventListener("click",this._backdropClickHandler),l.removeEventListener("transitionend",this._backdropTransitionendHandler),l.remove(),this._backdropElement===l&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const rr="cdk-overlay-connected-position-bounding-box",zs=/([A-Za-z%]+)$/;class Sr{get positions(){return this._preferredPositions}constructor(l,o,c,u,p){this._viewportRuler=o,this._document=c,this._platform=u,this._overlayContainer=p,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 k.x,this._resizeSubscription=ti.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(l)}attach(l){this._validatePositions(),l.hostElement.classList.add(rr),this._overlayRef=l,this._boundingBox=l.hostElement,this._pane=l.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const l=this._originRect,o=this._overlayRect,c=this._viewportRect,u=this._containerRect,p=[];let D;for(let q of this._preferredPositions){let fe=this._getOriginPoint(l,u,q),ye=this._getOverlayPoint(fe,o,q),Le=this._getOverlayFit(ye,o,c,q);if(Le.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(q,fe);this._canFitWithFlexibleDimensions(Le,ye,c)?p.push({position:q,origin:fe,overlayRect:o,boundingBoxRect:this._calculateBoundingBoxRect(fe,q)}):(!D||D.overlayFit.visibleArea<Le.visibleArea)&&(D={overlayFit:Le,overlayPoint:ye,originPoint:fe,position:q,overlayRect:o})}if(p.length){let q=null,fe=-1;for(const ye of p){const Le=ye.boundingBoxRect.width*ye.boundingBoxRect.height*(ye.position.weight||1);Le>fe&&(fe=Le,q=ye)}return this._isPushed=!1,void this._applyPosition(q.position,q.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(D.position,D.originPoint);this._applyPosition(D.position,D.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&zn(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(rr),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const l=this._lastPosition;if(l){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const o=this._getOriginPoint(this._originRect,this._containerRect,l);this._applyPosition(l,o)}else this.apply()}withScrollableContainers(l){return this._scrollables=l,this}withPositions(l){return this._preferredPositions=l,-1===l.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(l){return this._viewportMargin=l,this}withFlexibleDimensions(l=!0){return this._hasFlexibleDimensions=l,this}withGrowAfterOpen(l=!0){return this._growAfterOpen=l,this}withPush(l=!0){return this._canPush=l,this}withLockedPosition(l=!0){return this._positionLocked=l,this}setOrigin(l){return this._origin=l,this}withDefaultOffsetX(l){return this._offsetX=l,this}withDefaultOffsetY(l){return this._offsetY=l,this}withTransformOriginOn(l){return this._transformOriginSelector=l,this}_getOriginPoint(l,o,c){let u,p;if("center"==c.originX)u=l.left+l.width/2;else{const D=this._isRtl()?l.right:l.left,q=this._isRtl()?l.left:l.right;u="start"==c.originX?D:q}return o.left<0&&(u-=o.left),p="center"==c.originY?l.top+l.height/2:"top"==c.originY?l.top:l.bottom,o.top<0&&(p-=o.top),{x:u,y:p}}_getOverlayPoint(l,o,c){let u,p;return u="center"==c.overlayX?-o.width/2:"start"===c.overlayX?this._isRtl()?-o.width:0:this._isRtl()?0:-o.width,p="center"==c.overlayY?-o.height/2:"top"==c.overlayY?0:-o.height,{x:l.x+u,y:l.y+p}}_getOverlayFit(l,o,c,u){const p=Mi(o);let{x:D,y:q}=l,fe=this._getOffset(u,"x"),ye=this._getOffset(u,"y");fe&&(D+=fe),ye&&(q+=ye);let ut=0-q,pt=q+p.height-c.height,_t=this._subtractOverflows(p.width,0-D,D+p.width-c.width),Dt=this._subtractOverflows(p.height,ut,pt),Gt=_t*Dt;return{visibleArea:Gt,isCompletelyWithinViewport:p.width*p.height===Gt,fitsInViewportVertically:Dt===p.height,fitsInViewportHorizontally:_t==p.width}}_canFitWithFlexibleDimensions(l,o,c){if(this._hasFlexibleDimensions){const u=c.bottom-o.y,p=c.right-o.x,D=Do(this._overlayRef.getConfig().minHeight),q=Do(this._overlayRef.getConfig().minWidth);return(l.fitsInViewportVertically||null!=D&&D<=u)&&(l.fitsInViewportHorizontally||null!=q&&q<=p)}return!1}_pushOverlayOnScreen(l,o,c){if(this._previousPushAmount&&this._positionLocked)return{x:l.x+this._previousPushAmount.x,y:l.y+this._previousPushAmount.y};const u=Mi(o),p=this._viewportRect,D=Math.max(l.x+u.width-p.width,0),q=Math.max(l.y+u.height-p.height,0),fe=Math.max(p.top-c.top-l.y,0),ye=Math.max(p.left-c.left-l.x,0);let Le=0,Ye=0;return Le=u.width<=p.width?ye||-D:l.x<this._viewportMargin?p.left-c.left-l.x:0,Ye=u.height<=p.height?fe||-q:l.y<this._viewportMargin?p.top-c.top-l.y:0,this._previousPushAmount={x:Le,y:Ye},{x:l.x+Le,y:l.y+Ye}}_applyPosition(l,o){if(this._setTransformOrigin(l),this._setOverlayElementStyles(o,l),this._setBoundingBoxStyles(o,l),l.panelClass&&this._addPanelClasses(l.panelClass),this._lastPosition=l,this._positionChanges.observers.length){const c=this._getScrollVisibility(),u=new Zi(l,c);this._positionChanges.next(u)}this._isInitialRender=!1}_setTransformOrigin(l){if(!this._transformOriginSelector)return;const o=this._boundingBox.querySelectorAll(this._transformOriginSelector);let c,u=l.overlayY;c="center"===l.overlayX?"center":this._isRtl()?"start"===l.overlayX?"right":"left":"start"===l.overlayX?"left":"right";for(let p=0;p<o.length;p++)o[p].style.transformOrigin=`${c} ${u}`}_calculateBoundingBoxRect(l,o){const c=this._viewportRect,u=this._isRtl();let p,D,q,Le,Ye,ut;if("top"===o.overlayY)D=l.y,p=c.height-D+this._viewportMargin;else if("bottom"===o.overlayY)q=c.height-l.y+2*this._viewportMargin,p=c.height-q+this._viewportMargin;else{const pt=Math.min(c.bottom-l.y+c.top,l.y),_t=this._lastBoundingBoxSize.height;p=2*pt,D=l.y-pt,p>_t&&!this._isInitialRender&&!this._growAfterOpen&&(D=l.y-_t/2)}if("end"===o.overlayX&&!u||"start"===o.overlayX&&u)ut=c.width-l.x+this._viewportMargin,Le=l.x-this._viewportMargin;else if("start"===o.overlayX&&!u||"end"===o.overlayX&&u)Ye=l.x,Le=c.right-l.x;else{const pt=Math.min(c.right-l.x+c.left,l.x),_t=this._lastBoundingBoxSize.width;Le=2*pt,Ye=l.x-pt,Le>_t&&!this._isInitialRender&&!this._growAfterOpen&&(Ye=l.x-_t/2)}return{top:D,left:Ye,bottom:q,right:ut,width:Le,height:p}}_setBoundingBoxStyles(l,o){const c=this._calculateBoundingBoxRect(l,o);!this._isInitialRender&&!this._growAfterOpen&&(c.height=Math.min(c.height,this._lastBoundingBoxSize.height),c.width=Math.min(c.width,this._lastBoundingBoxSize.width));const u={};if(this._hasExactPosition())u.top=u.left="0",u.bottom=u.right=u.maxHeight=u.maxWidth="",u.width=u.height="100%";else{const p=this._overlayRef.getConfig().maxHeight,D=this._overlayRef.getConfig().maxWidth;u.height=(0,y.HM)(c.height),u.top=(0,y.HM)(c.top),u.bottom=(0,y.HM)(c.bottom),u.width=(0,y.HM)(c.width),u.left=(0,y.HM)(c.left),u.right=(0,y.HM)(c.right),u.alignItems="center"===o.overlayX?"center":"end"===o.overlayX?"flex-end":"flex-start",u.justifyContent="center"===o.overlayY?"center":"bottom"===o.overlayY?"flex-end":"flex-start",p&&(u.maxHeight=(0,y.HM)(p)),D&&(u.maxWidth=(0,y.HM)(D))}this._lastBoundingBoxSize=c,zn(this._boundingBox.style,u)}_resetBoundingBoxStyles(){zn(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){zn(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(l,o){const c={},u=this._hasExactPosition(),p=this._hasFlexibleDimensions,D=this._overlayRef.getConfig();if(u){const Le=this._viewportRuler.getViewportScrollPosition();zn(c,this._getExactOverlayY(o,l,Le)),zn(c,this._getExactOverlayX(o,l,Le))}else c.position="static";let q="",fe=this._getOffset(o,"x"),ye=this._getOffset(o,"y");fe&&(q+=`translateX(${fe}px) `),ye&&(q+=`translateY(${ye}px)`),c.transform=q.trim(),D.maxHeight&&(u?c.maxHeight=(0,y.HM)(D.maxHeight):p&&(c.maxHeight="")),D.maxWidth&&(u?c.maxWidth=(0,y.HM)(D.maxWidth):p&&(c.maxWidth="")),zn(this._pane.style,c)}_getExactOverlayY(l,o,c){let u={top:"",bottom:""},p=this._getOverlayPoint(o,this._overlayRect,l);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,c)),"bottom"===l.overlayY?u.bottom=this._document.documentElement.clientHeight-(p.y+this._overlayRect.height)+"px":u.top=(0,y.HM)(p.y),u}_getExactOverlayX(l,o,c){let D,u={left:"",right:""},p=this._getOverlayPoint(o,this._overlayRect,l);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,c)),D=this._isRtl()?"end"===l.overlayX?"left":"right":"end"===l.overlayX?"right":"left","right"===D?u.right=this._document.documentElement.clientWidth-(p.x+this._overlayRect.width)+"px":u.left=(0,y.HM)(p.x),u}_getScrollVisibility(){const l=this._getOriginRect(),o=this._pane.getBoundingClientRect(),c=this._scrollables.map(u=>u.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:Er(l,c),isOriginOutsideView:Co(l,c),isOverlayClipped:Er(o,c),isOverlayOutsideView:Co(o,c)}}_subtractOverflows(l,...o){return o.reduce((c,u)=>c-Math.max(u,0),l)}_getNarrowedViewportRect(){const l=this._document.documentElement.clientWidth,o=this._document.documentElement.clientHeight,c=this._viewportRuler.getViewportScrollPosition();return{top:c.top+this._viewportMargin,left:c.left+this._viewportMargin,right:c.left+l-this._viewportMargin,bottom:c.top+o-this._viewportMargin,width:l-2*this._viewportMargin,height:o-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(l,o){return"x"===o?null==l.offsetX?this._offsetX:l.offsetX:null==l.offsetY?this._offsetY:l.offsetY}_validatePositions(){}_addPanelClasses(l){this._pane&&(0,y.Eq)(l).forEach(o=>{""!==o&&-1===this._appliedPanelClasses.indexOf(o)&&(this._appliedPanelClasses.push(o),this._pane.classList.add(o))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(l=>{this._pane.classList.remove(l)}),this._appliedPanelClasses=[])}_getOriginRect(){const l=this._origin;if(l instanceof i.SBq)return l.nativeElement.getBoundingClientRect();if(l instanceof Element)return l.getBoundingClientRect();const o=l.width||0,c=l.height||0;return{top:l.y,bottom:l.y+c,left:l.x,right:l.x+o,height:c,width:o}}}function zn(h,l){for(let o in l)l.hasOwnProperty(o)&&(h[o]=l[o]);return h}function Do(h){if("number"!=typeof h&&null!=h){const[l,o]=h.split(zs);return o&&"px"!==o?null:parseFloat(l)}return h||null}function Mi(h){return{top:Math.floor(h.top),right:Math.floor(h.right),bottom:Math.floor(h.bottom),left:Math.floor(h.left),width:Math.floor(h.width),height:Math.floor(h.height)}}const Uo="cdk-global-overlay-wrapper";class uo{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(l){const o=l.getConfig();this._overlayRef=l,this._width&&!o.width&&l.updateSize({width:this._width}),this._height&&!o.height&&l.updateSize({height:this._height}),l.hostElement.classList.add(Uo),this._isDisposed=!1}top(l=""){return this._bottomOffset="",this._topOffset=l,this._alignItems="flex-start",this}left(l=""){return this._xOffset=l,this._xPosition="left",this}bottom(l=""){return this._topOffset="",this._bottomOffset=l,this._alignItems="flex-end",this}right(l=""){return this._xOffset=l,this._xPosition="right",this}start(l=""){return this._xOffset=l,this._xPosition="start",this}end(l=""){return this._xOffset=l,this._xPosition="end",this}width(l=""){return this._overlayRef?this._overlayRef.updateSize({width:l}):this._width=l,this}height(l=""){return this._overlayRef?this._overlayRef.updateSize({height:l}):this._height=l,this}centerHorizontally(l=""){return this.left(l),this._xPosition="center",this}centerVertically(l=""){return this.top(l),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const l=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement.style,c=this._overlayRef.getConfig(),{width:u,height:p,maxWidth:D,maxHeight:q}=c,fe=!("100%"!==u&&"100vw"!==u||D&&"100%"!==D&&"100vw"!==D),ye=!("100%"!==p&&"100vh"!==p||q&&"100%"!==q&&"100vh"!==q),Le=this._xPosition,Ye=this._xOffset,ut="rtl"===this._overlayRef.getConfig().direction;let pt="",_t="",Dt="";fe?Dt="flex-start":"center"===Le?(Dt="center",ut?_t=Ye:pt=Ye):ut?"left"===Le||"end"===Le?(Dt="flex-end",pt=Ye):("right"===Le||"start"===Le)&&(Dt="flex-start",_t=Ye):"left"===Le||"start"===Le?(Dt="flex-start",pt=Ye):("right"===Le||"end"===Le)&&(Dt="flex-end",_t=Ye),l.position=this._cssPosition,l.marginLeft=fe?"0":pt,l.marginTop=ye?"0":this._topOffset,l.marginBottom=this._bottomOffset,l.marginRight=fe?"0":_t,o.justifyContent=Dt,o.alignItems=ye?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const l=this._overlayRef.overlayElement.style,o=this._overlayRef.hostElement,c=o.style;o.classList.remove(Uo),c.justifyContent=c.alignItems=l.marginTop=l.marginBottom=l.marginLeft=l.marginRight=l.position="",this._overlayRef=null,this._isDisposed=!0}}let Gs=(()=>{class h{constructor(o,c,u,p){this._viewportRuler=o,this._document=c,this._platform=u,this._overlayContainer=p}global(){return new uo}flexibleConnectedTo(o){return new Sr(o,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Zt.rL),i.LFG(T.K0),i.LFG(pn.t4),i.LFG(Ri))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Ws=0,Pn=(()=>{class h{constructor(o,c,u,p,D,q,fe,ye,Le,Ye,ut,pt){this.scrollStrategies=o,this._overlayContainer=c,this._componentFactoryResolver=u,this._positionBuilder=p,this._keyboardDispatcher=D,this._injector=q,this._ngZone=fe,this._document=ye,this._directionality=Le,this._location=Ye,this._outsideClickDispatcher=ut,this._animationsModuleType=pt}create(o){const c=this._createHostElement(),u=this._createPaneElement(c),p=this._createPortalOutlet(u),D=new xo(o);return D.direction=D.direction||this._directionality.value,new qi(p,c,u,D,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(o){const c=this._document.createElement("div");return c.id="cdk-overlay-"+Ws++,c.classList.add("cdk-overlay-pane"),o.appendChild(c),c}_createHostElement(){const o=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(o),o}_createPortalOutlet(o){return this._appRef||(this._appRef=this._injector.get(i.z2F)),new on.u0(o,this._componentFactoryResolver,this._appRef,this._injector,this._document)}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Ya),i.LFG(Ri),i.LFG(i._Vd),i.LFG(Gs),i.LFG(tn),i.LFG(i.zs3),i.LFG(i.R0b),i.LFG(T.K0),i.LFG(J.Is),i.LFG(T.Ye),i.LFG(or),i.LFG(i.QbO,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();const ts={provide:new i.OlP("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(Pn);return()=>h.scrollStrategies.reposition()}}),deps:[Pn],useFactory:function es(h){return()=>h.scrollStrategies.reposition()}};let Rn=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[Pn,ts],imports:[J.vT,on.eL,Zt.Cl,Zt.Cl]})}return h})();var sr=b(7371),Zs=b(8299);function ns(h){return new sr.y(l=>{(0,Zs.Xf)(h()).subscribe(l)})}var zo=b(9627);function Ka(h,l){}class ho{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0,this.closeOnOverlayDetachments=!0}}let Go=(()=>{class h extends on.en{constructor(o,c,u,p,D,q,fe,ye){super(),this._elementRef=o,this._focusTrapFactory=c,this._config=p,this._interactivityChecker=D,this._ngZone=q,this._overlayRef=fe,this._focusMonitor=ye,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this._ariaLabelledByQueue=[],this.attachDomPortal=Le=>{this._portalOutlet.hasAttached();const Ye=this._portalOutlet.attachDomPortal(Le);return this._contentAttached(),Ye},this._document=u,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(o){this._portalOutlet.hasAttached();const c=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),c}attachTemplatePortal(o){this._portalOutlet.hasAttached();const c=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),c}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(o,c){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const u=()=>{o.removeEventListener("blur",u),o.removeEventListener("mousedown",u),o.removeAttribute("tabindex")};o.addEventListener("blur",u),o.addEventListener("mousedown",u)})),o.focus(c)}_focusByCssSelector(o,c){let u=this._elementRef.nativeElement.querySelector(o);u&&this._forceFocus(u,c)}_trapFocus(){const o=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(c=>{c||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const o=this._config.restoreFocus;let c=null;if("string"==typeof o?c=this._document.querySelector(o):"boolean"==typeof o?c=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(c=o),this._config.restoreFocus&&c&&"function"==typeof c.focus){const u=(0,pn.ht)(),p=this._elementRef.nativeElement;(!u||u===this._document.body||u===p||p.contains(u))&&(this._focusMonitor?(this._focusMonitor.focusVia(c,this._closeInteractionType),this._closeInteractionType=null):c.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const o=this._elementRef.nativeElement,c=(0,pn.ht)();return o===c||o.contains(c)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,pn.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(N.qV),i.Y36(T.K0,8),i.Y36(ho),i.Y36(N.ic),i.Y36(i.R0b),i.Y36(qi),i.Y36(N.tE))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-dialog-container"]],viewQuery:function(c,u){if(1&c&&i.Gf(on.Pl,7),2&c){let p;i.iGM(p=i.CRH())&&(u._portalOutlet=p.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(c,u){2&c&&i.uIk("id",u._config.id||null)("role",u._config.role)("aria-modal",u._config.ariaModal)("aria-labelledby",u._config.ariaLabel?null:u._ariaLabelledByQueue[0])("aria-label",u._config.ariaLabel)("aria-describedby",u._config.ariaDescribedBy||null)},standalone:!0,features:[i.qOj,i.jDz],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(c,u){1&c&&i.YNc(0,Ka,0,0,"ng-template",0)},dependencies:[on.eL,on.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2})}return h})();class Ar{constructor(l,o){this.overlayRef=l,this.config=o,this.closed=new k.x,this.disableClose=o.disableClose,this.backdropClick=l.backdropClick(),this.keydownEvents=l.keydownEvents(),this.outsidePointerEvents=l.outsidePointerEvents(),this.id=o.id,this.keydownEvents.subscribe(c=>{c.keyCode===ie.hY&&!this.disableClose&&!(0,ie.Vb)(c)&&(c.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=l.detachments().subscribe(()=>{!1!==o.closeOnOverlayDetachments&&this.close()})}close(l,o){if(this.containerInstance){const c=this.closed;this.containerInstance._closeInteractionType=o?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),c.next(l),c.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(l="",o=""){return this.overlayRef.updateSize({width:l,height:o}),this}addPanelClass(l){return this.overlayRef.addPanelClass(l),this}removePanelClass(l){return this.overlayRef.removePanelClass(l),this}}const Ir=new i.OlP("DialogScrollStrategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(Pn);return()=>h.scrollStrategies.block()}}),is=new i.OlP("DialogData"),qs=new i.OlP("DefaultDialogConfig");let os=0,rs=(()=>{class h{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}constructor(o,c,u,p,D,q){this._overlay=o,this._injector=c,this._defaultOptions=u,this._parentDialog=p,this._overlayContainer=D,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k.x,this._afterOpenedAtThisLevel=new k.x,this._ariaHiddenElements=new Map,this.afterAllClosed=ns(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,O.O)(void 0))),this._scrollStrategy=q}open(o,c){(c={...this._defaultOptions||new ho,...c}).id=c.id||"cdk-dialog-"+os++,c.id&&this.getDialogById(c.id);const p=this._getOverlayConfig(c),D=this._overlay.create(p),q=new Ar(D,c),fe=this._attachContainer(D,q,c);return q.containerInstance=fe,this._attachDialogContent(o,q,fe,c),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(q),q.closed.subscribe(()=>this._removeOpenDialog(q,!0)),this.afterOpened.next(q),q}closeAll(){Yt(this.openDialogs,o=>o.close())}getDialogById(o){return this.openDialogs.find(c=>c.id===o)}ngOnDestroy(){Yt(this._openDialogsAtThisLevel,o=>{!1===o.config.closeOnDestroy&&this._removeOpenDialog(o,!1)}),Yt(this._openDialogsAtThisLevel,o=>o.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(o){const c=new xo({positionStrategy:o.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:o.scrollStrategy||this._scrollStrategy(),panelClass:o.panelClass,hasBackdrop:o.hasBackdrop,direction:o.direction,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,width:o.width,height:o.height,disposeOnNavigation:o.closeOnNavigation});return o.backdropClass&&(c.backdropClass=o.backdropClass),c}_attachContainer(o,c,u){const p=u.injector||u.viewContainerRef?.injector,D=[{provide:ho,useValue:u},{provide:Ar,useValue:c},{provide:qi,useValue:o}];let q;u.container?"function"==typeof u.container?q=u.container:(q=u.container.type,D.push(...u.container.providers(u))):q=Go;const fe=new on.C5(q,u.viewContainerRef,i.zs3.create({parent:p||this._injector,providers:D}),u.componentFactoryResolver);return o.attach(fe).instance}_attachDialogContent(o,c,u,p){if(o instanceof i.Rgc){const D=this._createInjector(p,c,u,void 0);let q={$implicit:p.data,dialogRef:c};p.templateContext&&(q={...q,..."function"==typeof p.templateContext?p.templateContext():p.templateContext}),u.attachTemplatePortal(new on.UE(o,null,q,D))}else{const D=this._createInjector(p,c,u,this._injector),q=u.attachComponentPortal(new on.C5(o,p.viewContainerRef,D,p.componentFactoryResolver));c.componentRef=q,c.componentInstance=q.instance}}_createInjector(o,c,u,p){const D=o.injector||o.viewContainerRef?.injector,q=[{provide:is,useValue:o.data},{provide:Ar,useValue:c}];return o.providers&&("function"==typeof o.providers?q.push(...o.providers(c,o,u)):q.push(...o.providers)),o.direction&&(!D||!D.get(J.Is,null,{optional:!0}))&&q.push({provide:J.Is,useValue:{value:o.direction,change:(0,zo.of)()}}),i.zs3.create({parent:D||p,providers:q})}_removeOpenDialog(o,c){const u=this.openDialogs.indexOf(o);u>-1&&(this.openDialogs.splice(u,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((p,D)=>{p?D.setAttribute("aria-hidden",p):D.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),c&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const o=this._overlayContainer.getContainerElement();if(o.parentElement){const c=o.parentElement.children;for(let u=c.length-1;u>-1;u--){const p=c[u];p!==o&&"SCRIPT"!==p.nodeName&&"STYLE"!==p.nodeName&&!p.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(p,p.getAttribute("aria-hidden")),p.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Pn),i.LFG(i.zs3),i.LFG(qs,8),i.LFG(h,12),i.LFG(Ri),i.LFG(Ir))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();function Yt(h,l){let o=h.length;for(;o--;)l(h[o])}let Hn=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[rs],imports:[Rn,on.eL,N.rt,Go,on.eL]})}return h})();function jn(h,l){}class Ni{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.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const Un="mdc-dialog--open",ss="mdc-dialog--opening",Qs="mdc-dialog--closing";let cs=(()=>{class h extends Go{constructor(o,c,u,p,D,q,fe,ye,Le){super(o,c,u,p,D,q,fe,Le),this._animationMode=ye,this._animationStateChanged=new i.vpe,this._animationsEnabled="NoopAnimations"!==this._animationMode,this._hostElement=this._elementRef.nativeElement,this._enterAnimationDuration=this._animationsEnabled?at(this._config.enterAnimationDuration)??150:0,this._exitAnimationDuration=this._animationsEnabled?at(this._config.exitAnimationDuration)??75:0,this._animationTimer=null,this._finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)},this._finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})}}_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(En,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ss,Un)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Un),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Un),this._animationsEnabled?(this._hostElement.style.setProperty(En,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Qs)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_clearAnimationClasses(){this._hostElement.classList.remove(ss,Qs)}_waitForAnimationToComplete(o,c){null!==this._animationTimer&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(c,o)}_requestAnimationFrame(o){this._ngZone.runOutsideAngular(()=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(o):o()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}ngOnDestroy(){super.ngOnDestroy(),null!==this._animationTimer&&clearTimeout(this._animationTimer)}attachComponentPortal(o){const c=super.attachComponentPortal(o);return c.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(N.qV),i.Y36(T.K0,8),i.Y36(Ni),i.Y36(N.ic),i.Y36(i.R0b),i.Y36(qi),i.Y36(i.QbO,8),i.Y36(N.tE))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:8,hostBindings:function(c,u){2&c&&(i.Ikx("id",u._config.id),i.uIk("aria-modal",u._config.ariaModal)("role",u._config.role)("aria-labelledby",u._config.ariaLabel?null:u._ariaLabelledByQueue[0])("aria-label",u._config.ariaLabel)("aria-describedby",u._config.ariaDescribedBy||null),i.ekj("_mat-animation-noopable",!u._animationsEnabled))},standalone:!0,features:[i.qOj,i.jDz],decls:3,vars:0,consts:[[1,"mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(c,u){1&c&&(i.TgZ(0,"div",0)(1,"div",1),i.YNc(2,jn,0,0,"ng-template",2),i.qZA()())},dependencies:[on.eL,on.Pl],styles:['.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-dialog,.mdc-dialog__scrim{position:fixed;top:0;left:0;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.mdc-dialog{display:none;z-index:var(--mdc-dialog-z-index, 7)}.mdc-dialog .mdc-dialog__content{padding:20px 24px 20px 24px}.mdc-dialog .mdc-dialog__surface{min-width:280px}@media(max-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:calc(100vw - 32px)}}@media(min-width: 592px){.mdc-dialog .mdc-dialog__surface{max-width:560px}}.mdc-dialog .mdc-dialog__surface{max-height:calc(100% - 32px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-width:none}@media(max-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px;width:560px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 112px)}}@media(max-width: 720px)and (min-width: 672px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:560px}}@media(max-width: 720px)and (max-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:calc(100vh - 160px)}}@media(max-width: 720px)and (min-height: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{max-height:560px}}@media(max-width: 720px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}@media(max-width: 720px)and (max-height: 400px),(max-width: 600px),(min-width: 720px)and (max-height: 400px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{height:100%;max-height:100vh;max-width:100vw;width:100vw;border-radius:0}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{order:-1;left:-12px}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__header{padding:0 16px 9px;justify-content:flex-start}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__title{margin-left:calc(16px - 2 * 12px)}}@media(min-width: 960px){.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface{width:calc(100vw - 400px)}.mdc-dialog.mdc-dialog--fullscreen .mdc-dialog__surface .mdc-dialog__close{right:-12px}}.mdc-dialog.mdc-dialog__scrim--hidden .mdc-dialog__scrim{opacity:0}.mdc-dialog__scrim{opacity:0;z-index:-1}.mdc-dialog__container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;transform:scale(0.8);opacity:0;pointer-events:none}.mdc-dialog__surface{position:relative;display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;max-width:100%;max-height:100%;pointer-events:auto;overflow-y:auto;outline:0}.mdc-dialog__surface .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}[dir=rtl] .mdc-dialog__surface,.mdc-dialog__surface[dir=rtl]{text-align:right}@media screen and (forced-colors: active),(-ms-high-contrast: active){.mdc-dialog__surface{outline:2px solid windowText}}.mdc-dialog__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-dialog__surface::before{border-color:CanvasText}}@media screen and (-ms-high-contrast: active),screen and (-ms-high-contrast: none){.mdc-dialog__surface::before{content:none}}.mdc-dialog__title{display:block;margin-top:0;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:0 24px 9px}.mdc-dialog__title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mdc-dialog__title,.mdc-dialog__title[dir=rtl]{text-align:right}.mdc-dialog--scrollable .mdc-dialog__title{margin-bottom:1px;padding-bottom:15px}.mdc-dialog--fullscreen .mdc-dialog__header{align-items:baseline;border-bottom:1px solid rgba(0,0,0,0);display:inline-flex;justify-content:space-between;padding:0 24px 9px;z-index:1}@media screen and (forced-colors: active){.mdc-dialog--fullscreen .mdc-dialog__header{border-bottom-color:CanvasText}}.mdc-dialog--fullscreen .mdc-dialog__header .mdc-dialog__close{right:-12px}.mdc-dialog--fullscreen .mdc-dialog__title{margin-bottom:0;padding:0;border-bottom:0}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__title{border-bottom:0;margin-bottom:0}.mdc-dialog--fullscreen .mdc-dialog__close{top:5px}.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog--fullscreen.mdc-dialog--scrollable .mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--fullscreen--titleless .mdc-dialog__close{margin-top:4px}.mdc-dialog--fullscreen--titleless.mdc-dialog--scrollable .mdc-dialog__close{margin-top:0}.mdc-dialog__content{flex-grow:1;box-sizing:border-box;margin:0;overflow:auto}.mdc-dialog__content>:first-child{margin-top:0}.mdc-dialog__content>:last-child{margin-bottom:0}.mdc-dialog__title+.mdc-dialog__content,.mdc-dialog__header+.mdc-dialog__content{padding-top:0}.mdc-dialog--scrollable .mdc-dialog__title+.mdc-dialog__content{padding-top:8px;padding-bottom:8px}.mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:6px 0 0}.mdc-dialog--scrollable .mdc-dialog__content .mdc-deprecated-list:first-child:last-child{padding:0}.mdc-dialog__actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0)}@media screen and (forced-colors: active){.mdc-dialog__actions{border-top-color:CanvasText}}.mdc-dialog--stacked .mdc-dialog__actions{flex-direction:column;align-items:flex-end}.mdc-dialog__button{margin-left:8px;margin-right:0;max-width:100%;text-align:right}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{margin-left:0;margin-right:8px}.mdc-dialog__button:first-child{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button:first-child,.mdc-dialog__button:first-child[dir=rtl]{margin-left:0;margin-right:0}[dir=rtl] .mdc-dialog__button,.mdc-dialog__button[dir=rtl]{text-align:left}.mdc-dialog--stacked .mdc-dialog__button:not(:first-child){margin-top:12px}.mdc-dialog--open,.mdc-dialog--opening,.mdc-dialog--closing{display:flex}.mdc-dialog--opening .mdc-dialog__scrim{transition:opacity 150ms linear}.mdc-dialog--opening .mdc-dialog__container{transition:opacity 75ms linear,transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-dialog--closing .mdc-dialog__scrim,.mdc-dialog--closing .mdc-dialog__container{transition:opacity 75ms linear}.mdc-dialog--closing .mdc-dialog__container{transform:none}.mdc-dialog--open .mdc-dialog__scrim{opacity:1}.mdc-dialog--open .mdc-dialog__container{transform:none;opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim{opacity:1}.mdc-dialog--open.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{transition:opacity 75ms linear}.mdc-dialog--open.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim{transition:opacity 150ms linear}.mdc-dialog__surface-scrim{display:none;opacity:0;position:absolute;width:100%;height:100%;z-index:1}.mdc-dialog__surface-scrim--shown .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--showing .mdc-dialog__surface-scrim,.mdc-dialog__surface-scrim--hiding .mdc-dialog__surface-scrim{display:block}.mdc-dialog-scroll-lock{overflow:hidden}.mdc-dialog--no-content-padding .mdc-dialog__content{padding:0}.mdc-dialog--sheet .mdc-dialog__container .mdc-dialog__close{right:12px;top:9px;position:absolute;z-index:1}.mdc-dialog__scrim--removed{pointer-events:none}.mdc-dialog__scrim--removed .mdc-dialog__scrim,.mdc-dialog__scrim--removed .mdc-dialog__surface-scrim{display:none}.mat-mdc-dialog-content{max-height:65vh}.mat-mdc-dialog-container{position:static;display:block}.mat-mdc-dialog-container,.mat-mdc-dialog-container .mdc-dialog__container,.mat-mdc-dialog-container .mdc-dialog__surface{max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mat-mdc-dialog-container .mdc-dialog__surface{width:100%;height:100%}.mat-mdc-dialog-component-host{display:contents}.mat-mdc-dialog-container{--mdc-dialog-container-elevation: var(--mdc-dialog-container-elevation-shadow);outline:0}.mat-mdc-dialog-container .mdc-dialog__surface{background-color:var(--mdc-dialog-container-color, white)}.mat-mdc-dialog-container .mdc-dialog__surface{box-shadow:var(--mdc-dialog-container-elevation, 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12))}.mat-mdc-dialog-container .mdc-dialog__surface{border-radius:var(--mdc-dialog-container-shape, 4px)}.mat-mdc-dialog-container .mdc-dialog__title{font-family:var(--mdc-dialog-subhead-font, Roboto, sans-serif);line-height:var(--mdc-dialog-subhead-line-height, 1.5rem);font-size:var(--mdc-dialog-subhead-size, 1rem);font-weight:var(--mdc-dialog-subhead-weight, 400);letter-spacing:var(--mdc-dialog-subhead-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__title{color:var(--mdc-dialog-subhead-color, rgba(0, 0, 0, 0.87))}.mat-mdc-dialog-container .mdc-dialog__content{font-family:var(--mdc-dialog-supporting-text-font, Roboto, sans-serif);line-height:var(--mdc-dialog-supporting-text-line-height, 1.5rem);font-size:var(--mdc-dialog-supporting-text-size, 1rem);font-weight:var(--mdc-dialog-supporting-text-weight, 400);letter-spacing:var(--mdc-dialog-supporting-text-tracking, 0.03125em)}.mat-mdc-dialog-container .mdc-dialog__content{color:var(--mdc-dialog-supporting-text-color, rgba(0, 0, 0, 0.6))}.mat-mdc-dialog-container .mdc-dialog__container{transition-duration:var(--mat-dialog-transition-duration, 0ms)}.mat-mdc-dialog-container._mat-animation-noopable .mdc-dialog__container{transition:none}.mat-mdc-dialog-content{display:block}.mat-mdc-dialog-actions{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2})}return h})();const En="--mat-dialog-transition-duration";function at(h){return null==h?null:"number"==typeof h?h:h.endsWith("ms")?(0,y.su)(h.substring(0,h.length-2)):h.endsWith("s")?1e3*(0,y.su)(h.substring(0,h.length-1)):"0"===h?0:null}class It{constructor(l,o,c){this._ref=l,this._containerInstance=c,this._afterOpened=new k.x,this._beforeClosed=new k.x,this._state=0,this.disableClose=o.disableClose,this.id=l.id,c._animationStateChanged.pipe((0,ei.h)(u=>"opened"===u.state),(0,A.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),c._animationStateChanged.pipe((0,ei.h)(u=>"closed"===u.state),(0,A.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),l.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,W.T)(this.backdropClick(),this.keydownEvents().pipe((0,ei.h)(u=>u.keyCode===ie.hY&&!this.disableClose&&!(0,ie.Vb)(u)))).subscribe(u=>{this.disableClose||(u.preventDefault(),P(this,"keydown"===u.type?"keyboard":"mouse"))})}close(l){this._result=l,this._containerInstance._animationStateChanged.pipe((0,ei.h)(o=>"closing"===o.state),(0,A.q)(1)).subscribe(o=>{this._beforeClosed.next(l),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(l){let o=this._ref.config.positionStrategy;return l&&(l.left||l.right)?l.left?o.left(l.left):o.right(l.right):o.centerHorizontally(),l&&(l.top||l.bottom)?l.top?o.top(l.top):o.bottom(l.bottom):o.centerVertically(),this._ref.updatePosition(),this}updateSize(l="",o=""){return this._ref.updateSize(l,o),this}addPanelClass(l){return this._ref.addPanelClass(l),this}removePanelClass(l){return this._ref.removePanelClass(l),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}function P(h,l,o){return h._closeInteractionType=l,h.close(o)}const L=new i.OlP("MatMdcDialogData"),x=new i.OlP("mat-mdc-dialog-default-options"),ee=new i.OlP("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(Pn);return()=>h.scrollStrategies.block()}});let Ft=0,Sn=(()=>{class h{get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}constructor(o,c,u,p,D,q,fe,ye){this._overlay=o,this._defaultOptions=p,this._scrollStrategy=D,this._parentDialog=q,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new k.x,this._afterOpenedAtThisLevel=new k.x,this.dialogConfigClass=Ni,this.afterAllClosed=ns(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,O.O)(void 0))),this._dialog=c.get(rs),this._dialogRefConstructor=It,this._dialogContainerType=cs,this._dialogDataToken=L}open(o,c){let u;(c={...this._defaultOptions||new Ni,...c}).id=c.id||"mat-mdc-dialog-"+Ft++,c.scrollStrategy=c.scrollStrategy||this._scrollStrategy();const p=this._dialog.open(o,{...c,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:c},{provide:ho,useValue:c}]},templateContext:()=>({dialogRef:u}),providers:(D,q,fe)=>(u=new this._dialogRefConstructor(D,c,fe),u.updatePosition(c?.position),[{provide:this._dialogContainerType,useValue:fe},{provide:this._dialogDataToken,useValue:q.data},{provide:this._dialogRefConstructor,useValue:u}])});return u.componentRef=p.componentRef,u.componentInstance=p.componentInstance,this.openDialogs.push(u),this.afterOpened.next(u),u.afterClosed().subscribe(()=>{const D=this.openDialogs.indexOf(u);D>-1&&(this.openDialogs.splice(D,1),this.openDialogs.length||this._getAfterAllClosed().next())}),u}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(o){return this.openDialogs.find(c=>c.id===o)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(o){let c=o.length;for(;c--;)o[c].close()}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(Pn),i.LFG(i.zs3),i.LFG(T.Ye,8),i.LFG(x,8),i.LFG(ee),i.LFG(h,12),i.LFG(Ri),i.LFG(i.QbO,8))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Lt=0,Ji=(()=>{class h{constructor(o,c,u){this.dialogRef=o,this._elementRef=c,this._dialog=u,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=ar(this._elementRef,this._dialog.openDialogs))}ngOnChanges(o){const c=o._matDialogClose||o._matDialogCloseResult;c&&(this.dialogResult=c.currentValue)}_onButtonClick(o){P(this.dialogRef,0===o.screenX&&0===o.screenY?"keyboard":"mouse",this.dialogResult)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(It,8),i.Y36(i.SBq),i.Y36(Sn))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(c,u){1&c&&i.NdJ("click",function(D){return u._onButtonClick(D)}),2&c&&i.uIk("aria-label",u.ariaLabel||null)("type",u.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],standalone:!0,features:[i.TTD]})}return h})(),Ja=(()=>{class h{constructor(o,c,u){this._dialogRef=o,this._elementRef=c,this._dialog=u,this.id="mat-mdc-dialog-title-"+Lt++}ngOnInit(){this._dialogRef||(this._dialogRef=ar(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._dialogRef._containerInstance?._ariaLabelledByQueue?.push(this.id)})}ngOnDestroy(){const o=this._dialogRef?._containerInstance?._ariaLabelledByQueue;o&&Promise.resolve().then(()=>{const c=o.indexOf(this.id);c>-1&&o.splice(c,1)})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(It,8),i.Y36(i.SBq),i.Y36(Sn))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(c,u){2&c&&i.Ikx("id",u.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],standalone:!0})}return h})();function ar(h,l){let o=h.nativeElement.parentElement;for(;o&&!o.classList.contains("mat-mdc-dialog-container");)o=o.parentElement;return o?l.find(c=>c.id===o.id):null}let mo=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[Sn],imports:[Hn,Rn,on.eL,S.BQ,cs,S.BQ]})}return h})();var _i=b(1238),kr=b(4453),po=b(6589),Bt=b(9925),ds=b(4049),cr=b(2829),Li=b(1952),Fr=b(8412),lr=b(5123);function Zn(h,l){return l?o=>(0,Bt.z)(l.pipe((0,A.q)(1),function Rr(){return(0,ds.e)((h,l)=>{h.subscribe((0,cr.x)(l,Li.Z))})}()),o.pipe(Zn(h))):(0,lr.z)((o,c)=>(0,Zs.Xf)(h(o,c)).pipe((0,A.q)(1),function Nn(h){return(0,Fr.U)(()=>h)}(o)))}var qn=b(5117);function Xs(h,l=po.z){const o=(0,qn.H)(h,l);return Zn(()=>o)}const dr=["mat-menu-item",""];function ea(h,l){1&h&&(i.O4$(),i.TgZ(0,"svg",3),i._UZ(1,"polygon",4),i.qZA())}const Qi=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Xa=["mat-icon, [matMenuItemIcon]","*"];function xl(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"div",0),i.NdJ("keydown",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p._handleKeydown(u))})("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.closed.emit("click"))})("@transformMenu.start",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p._onAnimationStart(u))})("@transformMenu.done",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p._onAnimationDone(u))}),i.TgZ(1,"div",1),i.Hsn(2),i.qZA()()}if(2&h){const o=i.oxw();i.Q6J("id",o.panelId)("ngClass",o._classList)("@transformMenu",o._panelAnimationState),i.uIk("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null)("aria-describedby",o.ariaDescribedby||null)}}const du=["*"],Nr=new i.OlP("MAT_MENU_PANEL");let Lr=(()=>{class h{constructor(o,c,u,p,D){this._elementRef=o,this._document=c,this._focusMonitor=u,this._parentMenu=p,this._changeDetectorRef=D,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new k.x,this._focused=new k.x,this._highlighted=!1,this._triggersSubmenu=!1,p?.addItem?.(this)}focus(o,c){this._focusMonitor&&o?this._focusMonitor.focusVia(this._getHostElement(),o,c):this._getHostElement().focus(c),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(o){this.disabled&&(o.preventDefault(),o.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){const o=this._elementRef.nativeElement.cloneNode(!0),c=o.querySelectorAll("mat-icon, .material-icons");for(let u=0;u<c.length;u++)c[u].remove();return o.textContent?.trim()||""}_setHighlighted(o){this._highlighted=o,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(o){this._triggersSubmenu=o,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(T.K0),i.Y36(N.tE),i.Y36(Nr,8),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(c,u){1&c&&i.NdJ("click",function(D){return u._checkDisabled(D)})("mouseenter",function(){return u._handleMouseEnter()}),2&c&&(i.uIk("role",u.role)("tabindex",u._getTabIndex())("aria-disabled",u.disabled)("disabled",u.disabled||null),i.ekj("mat-mdc-menu-item-highlighted",u._highlighted)("mat-mdc-menu-item-submenu-trigger",u._triggersSubmenu))},inputs:{role:"role",disabled:["disabled","disabled",i.VuI],disableRipple:["disableRipple","disableRipple",i.VuI]},exportAs:["matMenuItem"],features:[i.Xq5],attrs:dr,ngContentSelectors:Xa,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-mdc-menu-submenu-icon","viewBox","0 0 5 10","focusable","false","aria-hidden","true"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(c,u){1&c&&(i.F$t(Qi),i.Hsn(0),i.TgZ(1,"span",0),i.Hsn(2,1),i.qZA(),i._UZ(3,"div",1),i.YNc(4,ea,2,0,":svg:svg",2)),2&c&&(i.xp6(3),i.Q6J("matRippleDisabled",u.disableRipple||u.disabled)("matRippleTrigger",u._getHostElement()),i.xp6(1),i.um2(4,u._triggersSubmenu?4:-1))},dependencies:[S.wG],encapsulation:2,changeDetection:0})}return h})();const Ff=new i.OlP("MatMenuContent"),ec={transformMenu:(0,ce.X$)("transformMenu",[(0,ce.SB)("void",(0,ce.oB)({opacity:0,transform:"scale(0.8)"})),(0,ce.eR)("void => enter",(0,ce.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ce.oB)({opacity:1,transform:"scale(1)"}))),(0,ce.eR)("* => void",(0,ce.jt)("100ms 25ms linear",(0,ce.oB)({opacity:0})))]),fadeInItems:(0,ce.X$)("fadeInItems",[(0,ce.SB)("showing",(0,ce.oB)({opacity:1})),(0,ce.eR)("void => *",[(0,ce.oB)({opacity:0}),(0,ce.jt)("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Nf=0;const Lf=new i.OlP("mat-menu-default-options",{providedIn:"root",factory:function ta(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}});let na=(()=>{class h{get xPosition(){return this._xPosition}set xPosition(o){this._xPosition=o,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(o){this._yPosition=o,this.setPositionClasses()}set panelClass(o){const c=this._previousPanelClass;c&&c.length&&c.split(" ").forEach(u=>{this._classList[u]=!1}),this._previousPanelClass=o,o&&o.length&&(o.split(" ").forEach(u=>{this._classList[u]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(o){this.panelClass=o}constructor(o,c,u,p){this._elementRef=o,this._ngZone=c,this._changeDetectorRef=p,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new i.n_E,this._classList={},this._panelAnimationState="void",this._animationDone=new k.x,this.closed=new i.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+Nf++,this.overlayPanelClass=u.overlayPanelClass||"",this._xPosition=u.xPosition,this._yPosition=u.yPosition,this.backdropClass=u.backdropClass,this.overlapTrigger=u.overlapTrigger,this.hasBackdrop=u.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new N.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,O.O)(this._directDescendantItems),(0,R.w)(o=>(0,W.T)(...o.map(c=>c._focused)))).subscribe(o=>this._keyManager.updateActiveItem(o)),this._directDescendantItems.changes.subscribe(o=>{const c=this._keyManager;if("enter"===this._panelAnimationState&&c.activeItem?._hasFocus()){const u=o.toArray(),p=Math.max(0,Math.min(u.length-1,c.activeItemIndex||0));u[p]&&!u[p].disabled?c.setActiveItem(p):c.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe((0,O.O)(this._directDescendantItems),(0,R.w)(c=>(0,W.T)(...c.map(u=>u._hovered))))}addItem(o){}removeItem(o){}_handleKeydown(o){const c=o.keyCode,u=this._keyManager;switch(c){case ie.hY:(0,ie.Vb)(o)||(o.preventDefault(),this.closed.emit("keydown"));break;case ie.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case ie.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(c===ie.LH||c===ie.JH)&&u.setFocusOrigin("keyboard"),void u.onKeydown(o)}o.stopPropagation()}focusFirstItem(o="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe((0,A.q)(1)).subscribe(()=>{let c=null;if(this._directDescendantItems.length&&(c=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!c||!c.contains(document.activeElement)){const u=this._keyManager;u.setFocusOrigin(o).setFirstItemActive(),!u.activeItem&&c&&c.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(o){const c=Math.min(this._baseElevation+o,24),u=`${this._elevationPrefix}${c}`,p=Object.keys(this._classList).find(D=>D.startsWith(this._elevationPrefix));(!p||p===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[u]=!0,this._previousElevation=u)}setPositionClasses(o=this.xPosition,c=this.yPosition){const u=this._classList;u["mat-menu-before"]="before"===o,u["mat-menu-after"]="after"===o,u["mat-menu-above"]="above"===c,u["mat-menu-below"]="below"===c,this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(o){this._animationDone.next(o),this._isAnimating=!1}_onAnimationStart(o){this._isAnimating=!0,"enter"===o.toState&&0===this._keyManager.activeItemIndex&&(o.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,O.O)(this._allItems)).subscribe(o=>{this._directDescendantItems.reset(o.filter(c=>c._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.SBq),i.Y36(i.R0b),i.Y36(Lf),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-menu"]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,Ff,5),i.Suo(p,Lr,5),i.Suo(p,Lr,4)),2&c){let D;i.iGM(D=i.CRH())&&(u.lazyContent=D.first),i.iGM(D=i.CRH())&&(u._allItems=D),i.iGM(D=i.CRH())&&(u.items=D)}},viewQuery:function(c,u){if(1&c&&i.Gf(i.Rgc,5),2&c){let p;i.iGM(p=i.CRH())&&(u.templateRef=p.first)}},hostAttrs:["ngSkipHydration",""],hostVars:3,hostBindings:function(c,u){2&c&&i.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:["overlapTrigger","overlapTrigger",i.VuI],hasBackdrop:["hasBackdrop","hasBackdrop",o=>null==o?null:(0,i.VuI)(o)],panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[i._Bn([{provide:Nr,useExisting:h}]),i.Xq5],ngContentSelectors:du,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"id","ngClass","keydown","click"],[1,"mat-mdc-menu-content"]],template:function(c,u){1&c&&(i.F$t(),i.YNc(0,xl,3,6,"ng-template"))},dependencies:[T.mk],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:16px;padding-right:16px;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:16px;padding-right:16px}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:16px}.mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:32px}[dir=rtl] .mat-mdc-menu-item.mat-mdc-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-mdc-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[ec.transformMenu,ec.fadeInItems]},changeDetection:0})}return h})();const _=new i.OlP("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(Pn);return()=>h.scrollStrategies.reposition()}}),E={provide:_,deps:[Pn],useFactory:function Y(h){return()=>h.scrollStrategies.reposition()}},V=(0,pn.i$)({passive:!0});let je=(()=>{class h{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(o){this.menu=o}get menu(){return this._menu}set menu(o){o!==this._menu&&(this._menu=o,this._menuCloseSubscription.unsubscribe(),o&&(this._menuCloseSubscription=o.close.subscribe(c=>{this._destroyMenu(c),("click"===c||"tab"===c)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(c)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(o,c,u,p,D,q,fe,ye,Le){this._overlay=o,this._element=c,this._viewContainerRef=u,this._menuItemInstance=q,this._dir=fe,this._focusMonitor=ye,this._ngZone=Le,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=ti.w0.EMPTY,this._hoverSubscription=ti.w0.EMPTY,this._menuCloseSubscription=ti.w0.EMPTY,this._changeDetectorRef=(0,i.f3M)(i.sBO),this._handleTouchStart=Ye=>{(0,N.yG)(Ye)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new i.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new i.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=p,this._parentMaterialMenu=D instanceof na?D:void 0,c.nativeElement.addEventListener("touchstart",this._handleTouchStart,V)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,V),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&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){const o=this.menu;if(this._menuOpen||!o)return;const c=this._createOverlay(o),u=c.getConfig(),p=u.positionStrategy;this._setPosition(o,p),u.hasBackdrop=null==o.hasBackdrop?!this.triggersSubmenu():o.hasBackdrop,c.attach(this._getPortal(o)),o.lazyContent&&o.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(o),o instanceof na&&(o._startAnimation(),o._directDescendantItems.changes.pipe((0,C.R)(o.close)).subscribe(()=>{p.withLockedPosition(!1).reapplyLastPosition(),p.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(o,c){this._focusMonitor&&o?this._focusMonitor.focusVia(this._element,o,c):this._element.nativeElement.focus(c)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(o){if(!this._overlayRef||!this.menuOpen)return;const c=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===o||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,c instanceof na?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe((0,ei.h)(u=>"void"===u.toState),(0,A.q)(1),(0,C.R)(c.lazyContent._attached)).subscribe({next:()=>c.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),c?.lazyContent?.detach())}_initMenu(o){o.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,o.direction=this.dir,this._setMenuElevation(o),o.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(o){if(o.setElevation){let c=0,u=o.parentMenu;for(;u;)c++,u=u.parentMenu;o.setElevation(c)}}_setIsMenuOpen(o){o!==this._menuOpen&&(this._menuOpen=o,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(o),this._changeDetectorRef.markForCheck())}_createOverlay(o){if(!this._overlayRef){const c=this._getOverlayConfig(o);this._subscribeToPositions(o,c.positionStrategy),this._overlayRef=this._overlay.create(c),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(o){return new xo({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:o.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:o.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(o,c){o.setPositionClasses&&c.positionChanges.subscribe(u=>{const p="start"===u.connectionPair.overlayX?"after":"before",D="top"===u.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>o.setPositionClasses(p,D)):o.setPositionClasses(p,D)})}_setPosition(o,c){let[u,p]="before"===o.xPosition?["end","start"]:["start","end"],[D,q]="above"===o.yPosition?["bottom","top"]:["top","bottom"],[fe,ye]=[D,q],[Le,Ye]=[u,p],ut=0;if(this.triggersSubmenu()){if(Ye=u="before"===o.xPosition?"start":"end",p=Le="end"===u?"start":"end",this._parentMaterialMenu){if(null==this._parentInnerPadding){const pt=this._parentMaterialMenu.items.first;this._parentInnerPadding=pt?pt._getHostElement().offsetTop:0}ut="bottom"===D?this._parentInnerPadding:-this._parentInnerPadding}}else o.overlapTrigger||(fe="top"===D?"bottom":"top",ye="top"===q?"bottom":"top");c.withPositions([{originX:u,originY:fe,overlayX:Le,overlayY:D,offsetY:ut},{originX:p,originY:fe,overlayX:Ye,overlayY:D,offsetY:ut},{originX:u,originY:ye,overlayX:Le,overlayY:q,offsetY:-ut},{originX:p,originY:ye,overlayX:Ye,overlayY:q,offsetY:-ut}])}_menuClosingActions(){const o=this._overlayRef.backdropClick(),c=this._overlayRef.detachments(),u=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,zo.of)(),p=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,ei.h)(D=>D!==this._menuItemInstance),(0,ei.h)(()=>this._menuOpen)):(0,zo.of)();return(0,W.T)(o,u,p,c)}_handleMousedown(o){(0,N.X6)(o)||(this._openedBy=0===o.button?"mouse":void 0,this.triggersSubmenu()&&o.preventDefault())}_handleKeydown(o){const c=o.keyCode;(c===ie.K5||c===ie.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(c===ie.SV&&"ltr"===this.dir||c===ie.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(o){this.triggersSubmenu()?(o.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,ei.h)(o=>o===this._menuItemInstance&&!o.disabled),Xs(0,kr.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof na&&this.menu._isAnimating?this.menu._animationDone.pipe((0,A.q)(1),Xs(0,kr.E),(0,C.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(o){return(!this._portal||this._portal.templateRef!==o.templateRef)&&(this._portal=new on.UE(o.templateRef,this._viewContainerRef)),this._portal}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Pn),i.Y36(i.SBq),i.Y36(i.s_b),i.Y36(_),i.Y36(Nr,8),i.Y36(Lr,10),i.Y36(J.Is,8),i.Y36(N.tE),i.Y36(i.R0b))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(c,u){1&c&&i.NdJ("click",function(D){return u._handleClick(D)})("mousedown",function(D){return u._handleMousedown(D)})("keydown",function(D){return u._handleKeydown(D)}),2&c&&i.uIk("aria-haspopup",u.menu?"menu":null)("aria-expanded",u.menuOpen)("aria-controls",u.menuOpen?u.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return h})(),tt=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[E],imports:[T.ez,S.si,S.BQ,Rn,Zt.ZD,S.BQ]})}return h})();class hn extends sr.y{constructor(l,o){super(),this.source=l,this.subjectFactory=o,this._subject=null,this._refCount=0,this._connection=null,(0,ds.A)(l)&&(this.lift=l.lift)}_subscribe(l){return this.getSubject().subscribe(l)}getSubject(){const l=this._subject;return(!l||l.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:l}=this;this._subject=this._connection=null,l?.unsubscribe()}connect(){let l=this._connection;if(!l){l=this._connection=new ti.w0;const o=this.getSubject();l.add(this.source.subscribe((0,cr.x)(o,void 0,()=>{this._teardown(),o.complete()},c=>{this._teardown(),o.error(c)},()=>this._teardown()))),l.closed&&(this._connection=null,l=ti.w0.EMPTY)}return l}refCount(){return function vt(){return(0,ds.e)((h,l)=>{let o=null;h._refCount++;const c=(0,cr.x)(l,void 0,void 0,void 0,()=>{if(!h||h._refCount<=0||0<--h._refCount)return void(o=null);const u=h._connection,p=o;o=null,u&&(!p||u===p)&&u.unsubscribe(),l.unsubscribe()});h.subscribe(c),c.closed||(o=h.connect())})}()(this)}}function fn(h){return h&&"function"==typeof h.connect&&!(h instanceof hn)}class An{applyChanges(l,o,c,u,p){l.forEachOperation((D,q,fe)=>{let ye,Le;if(null==D.previousIndex){const Ye=c(D,q,fe);ye=o.createEmbeddedView(Ye.templateRef,Ye.context,Ye.index),Le=1}else null==fe?(o.remove(q),Le=3):(ye=o.get(q),o.move(ye,fe),Le=2);p&&p({context:ye?.context,operation:Le,record:D})})}detach(){}}const Si=new i.OlP("_ViewRepeater");var Eo=b(107),ni=b(1625),Xi=b(3276);const us=[[["caption"]],[["colgroup"],["col"]]],Bf=["caption","colgroup, col"];function ia(h){return class extends h{get sticky(){return this._sticky}set sticky(l){const o=this._sticky;this._sticky=(0,y.Ig)(l),this._hasStickyChanged=o!==this._sticky}hasStickyChanged(){const l=this._hasStickyChanged;return this._hasStickyChanged=!1,l}resetStickyChanged(){this._hasStickyChanged=!1}constructor(...l){super(...l),this._sticky=!1,this._hasStickyChanged=!1}}}const Mo=new i.OlP("CDK_TABLE");let hs=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkCellDef",""]]})}return h})(),So=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkHeaderCellDef",""]]})}return h})(),Yo=(()=>{class h{constructor(o){this.template=o}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkFooterCellDef",""]]})}return h})();class Bi{}const Vf=ia(Bi);let _o=(()=>{class h extends Vf{get name(){return this._name}set name(o){this._setNameInput(o)}get stickyEnd(){return this._stickyEnd}set stickyEnd(o){o!==this._stickyEnd&&(this._stickyEnd=o,this._hasStickyChanged=!0)}constructor(o){super(),this._table=o,this._stickyEnd=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(o){o&&(this._name=o,this.cssClassFriendlyName=o.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Mo,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkColumnDef",""]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,hs,5),i.Suo(p,So,5),i.Suo(p,Yo,5)),2&c){let D;i.iGM(D=i.CRH())&&(u.cell=D.first),i.iGM(D=i.CRH())&&(u.headerCell=D.first),i.iGM(D=i.CRH())&&(u.footerCell=D.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:["stickyEnd","stickyEnd",i.VuI]},features:[i._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:h}]),i.Xq5,i.qOj]})}return h})();class Tl{constructor(l,o){o.nativeElement.classList.add(...l._columnCssClassName)}}let eo=(()=>{class h extends Tl{constructor(o,c){super(o,c)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(_o),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[i.qOj]})}return h})(),Ml=(()=>{class h extends Tl{constructor(o,c){if(super(o,c),1===o._table?._elementRef.nativeElement.nodeType){const u=o._table._elementRef.nativeElement.getAttribute("role");c.nativeElement.setAttribute("role","grid"===u||"treegrid"===u?"gridcell":"cell")}}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(_o),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[i.qOj]})}return h})();class Sl{constructor(){this.tasks=[],this.endTasks=[]}}const tc=new i.OlP("_COALESCED_STYLE_SCHEDULER");let nc=(()=>{class h{constructor(o){this._ngZone=o,this._currentSchedule=null,this._destroyed=new k.x}schedule(o){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(o)}scheduleEnd(o){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(o)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new Sl,this._getScheduleObservable().pipe((0,C.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const o=this._currentSchedule;this._currentSchedule=new Sl;for(const c of o.tasks)c();for(const c of o.endTasks)c()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,Eo.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,A.q)(1))}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(i.R0b))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac})}return h})(),fs=(()=>{class h{constructor(o,c){this.template=o,this._differs=c}ngOnChanges(o){if(!this._columnsDiffer){const c=o.columns&&o.columns.currentValue||[];this._columnsDiffer=this._differs.find(c).create(),this._columnsDiffer.diff(c)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(o){return this instanceof ms?o.headerCell.template:this instanceof oa?o.footerCell.template:o.cell.template}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4))};static#t=this.\u0275dir=i.lG2({type:h,features:[i.TTD]})}return h})();class Al extends fs{}const Ut=ia(Al);let ms=(()=>{class h extends Ut{constructor(o,c,u){super(o,c),this._table=u}ngOnChanges(o){super.ngOnChanges(o)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Mo,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[i.qOj,i.TTD]})}return h})();class C_ extends fs{}const $f=ia(C_);let oa=(()=>{class h extends $f{constructor(o,c,u){super(o,c),this._table=u}ngOnChanges(o){super.ngOnChanges(o)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Mo,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[i.qOj,i.TTD]})}return h})(),oc=(()=>{class h extends fs{constructor(o,c,u){super(o,c),this._table=u}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc),i.Y36(i.ZZ4),i.Y36(Mo,8))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[i.qOj]})}return h})(),Ao=(()=>{class h{static#e=this.mostRecentCellOutlet=null;constructor(o){this._viewContainer=o,h.mostRecentCellOutlet=this}ngOnDestroy(){h.mostRecentCellOutlet===this&&(h.mostRecentCellOutlet=null)}static#t=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b))};static#n=this.\u0275dir=i.lG2({type:h,selectors:[["","cdkCellOutlet",""]]})}return h})(),ur=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Ao],encapsulation:2})}return h})(),Ol=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Ao],encapsulation:2})}return h})(),rc=(()=>{class h{constructor(o){this.templateRef=o,this._contentClassName="cdk-no-data-row"}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["ng-template","cdkNoDataRow",""]]})}return h})();const uu=["top","bottom","left","right"];class Hf{constructor(l,o,c,u,p=!0,D=!0,q){this._isNativeHtmlTable=l,this._stickCellCss=o,this.direction=c,this._coalescedStyleScheduler=u,this._isBrowser=p,this._needsPositionStickyOnElement=D,this._positionListener=q,this._cachedCellWidths=[],this._borderCellCss={top:`${o}-border-elem-top`,bottom:`${o}-border-elem-bottom`,left:`${o}-border-elem-left`,right:`${o}-border-elem-right`}}clearStickyPositioning(l,o){const c=[];for(const u of l)if(u.nodeType===u.ELEMENT_NODE){c.push(u);for(let p=0;p<u.children.length;p++)c.push(u.children[p])}this._coalescedStyleScheduler.schedule(()=>{for(const u of c)this._removeStickyStyle(u,o)})}updateStickyColumns(l,o,c,u=!0){if(!l.length||!this._isBrowser||!o.some(ut=>ut)&&!c.some(ut=>ut))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const p=l[0],D=p.children.length,q=this._getCellWidths(p,u),fe=this._getStickyStartColumnPositions(q,o),ye=this._getStickyEndColumnPositions(q,c),Le=o.lastIndexOf(!0),Ye=c.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const ut="rtl"===this.direction,pt=ut?"right":"left",_t=ut?"left":"right";for(const Dt of l)for(let Gt=0;Gt<D;Gt++){const Fn=Dt.children[Gt];o[Gt]&&this._addStickyStyle(Fn,pt,fe[Gt],Gt===Le),c[Gt]&&this._addStickyStyle(Fn,_t,ye[Gt],Gt===Ye)}this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:-1===Le?[]:q.slice(0,Le+1).map((Dt,Gt)=>o[Gt]?Dt:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Ye?[]:q.slice(Ye).map((Dt,Gt)=>c[Gt+Ye]?Dt:null).reverse()}))})}stickRows(l,o,c){if(!this._isBrowser)return;const u="bottom"===c?l.slice().reverse():l,p="bottom"===c?o.slice().reverse():o,D=[],q=[],fe=[];for(let Le=0,Ye=0;Le<u.length;Le++){if(!p[Le])continue;D[Le]=Ye;const ut=u[Le];fe[Le]=this._isNativeHtmlTable?Array.from(ut.children):[ut];const pt=ut.getBoundingClientRect().height;Ye+=pt,q[Le]=pt}const ye=p.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{for(let Le=0;Le<u.length;Le++){if(!p[Le])continue;const Ye=D[Le],ut=Le===ye;for(const pt of fe[Le])this._addStickyStyle(pt,c,Ye,ut)}"top"===c?this._positionListener?.stickyHeaderRowsUpdated({sizes:q,offsets:D,elements:fe}):this._positionListener?.stickyFooterRowsUpdated({sizes:q,offsets:D,elements:fe})})}updateStickyFooterContainer(l,o){if(!this._isNativeHtmlTable)return;const c=l.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{o.some(u=>!u)?this._removeStickyStyle(c,["bottom"]):this._addStickyStyle(c,"bottom",0,!1)})}_removeStickyStyle(l,o){for(const u of o)l.style[u]="",l.classList.remove(this._borderCellCss[u]);uu.some(u=>-1===o.indexOf(u)&&l.style[u])?l.style.zIndex=this._getCalculatedZIndex(l):(l.style.zIndex="",this._needsPositionStickyOnElement&&(l.style.position=""),l.classList.remove(this._stickCellCss))}_addStickyStyle(l,o,c,u){l.classList.add(this._stickCellCss),u&&l.classList.add(this._borderCellCss[o]),l.style[o]=`${c}px`,l.style.zIndex=this._getCalculatedZIndex(l),this._needsPositionStickyOnElement&&(l.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(l){const o={top:100,bottom:10,left:1,right:1};let c=0;for(const u of uu)l.style[u]&&(c+=o[u]);return c?`${c}`:""}_getCellWidths(l,o=!0){if(!o&&this._cachedCellWidths.length)return this._cachedCellWidths;const c=[],u=l.children;for(let p=0;p<u.length;p++)c.push(u[p].getBoundingClientRect().width);return this._cachedCellWidths=c,c}_getStickyStartColumnPositions(l,o){const c=[];let u=0;for(let p=0;p<l.length;p++)o[p]&&(c[p]=u,u+=l[p]);return c}_getStickyEndColumnPositions(l,o){const c=[];let u=0;for(let p=l.length;p>0;p--)o[p]&&(c[p]=u,u+=l[p]);return c}}const ra=new i.OlP("CDK_SPL");let ac=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","rowOutlet",""]]})}return h})(),kl=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","headerRowOutlet",""]]})}return h})(),sa=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","footerRowOutlet",""]]})}return h})(),ii=(()=>{class h{constructor(o,c){this.viewContainer=o,this.elementRef=c}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.s_b),i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","noDataRowOutlet",""]]})}return h})(),Vi=(()=>{class h{get trackBy(){return this._trackByFn}set trackBy(o){this._trackByFn=o}get dataSource(){return this._dataSource}set dataSource(o){this._dataSource!==o&&this._switchDataSource(o)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(o){this._multiTemplateDataRows=o,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(o){this._fixedLayout=o,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}constructor(o,c,u,p,D,q,fe,ye,Le,Ye,ut,pt){this._differs=o,this._changeDetectorRef=c,this._elementRef=u,this._dir=D,this._platform=fe,this._viewRepeater=ye,this._coalescedStyleScheduler=Le,this._viewportRuler=Ye,this._stickyPositioningListener=ut,this._ngZone=pt,this._onDestroy=new k.x,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.contentChanged=new i.vpe,this.viewChange=new ni.X({start:0,end:Number.MAX_VALUE}),p||this._elementRef.nativeElement.setAttribute("role","table"),this._document=q,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((o,c)=>this.trackBy?this.trackBy(c.dataIndex,c.data):c),this._viewportRuler.change().pipe((0,C.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const c=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||c,this._forceRecalculateCellWidths=c,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}ngOnDestroy(){[this._rowOutlet.viewContainer,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(o=>{o.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),fn(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const o=this._dataDiffer.diff(this._renderRows);if(!o)return this._updateNoDataRow(),void this.contentChanged.next();const c=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(o,c,(u,p,D)=>this._getEmbeddedViewArgs(u.item,D),u=>u.item.data,u=>{1===u.operation&&u.context&&this._renderCellTemplateForItem(u.record.item.rowDef,u.context)}),this._updateRowIndexContext(),o.forEachIdentityChange(u=>{c.get(u.currentIndex).context.$implicit=u.item.data}),this._updateNoDataRow(),this._ngZone&&i.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,A.q)(1),(0,C.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(o){this._customColumnDefs.add(o)}removeColumnDef(o){this._customColumnDefs.delete(o)}addRowDef(o){this._customRowDefs.add(o)}removeRowDef(o){this._customRowDefs.delete(o)}addHeaderRowDef(o){this._customHeaderRowDefs.add(o),this._headerRowDefChanged=!0}removeHeaderRowDef(o){this._customHeaderRowDefs.delete(o),this._headerRowDefChanged=!0}addFooterRowDef(o){this._customFooterRowDefs.add(o),this._footerRowDefChanged=!0}removeFooterRowDef(o){this._customFooterRowDefs.delete(o),this._footerRowDefChanged=!0}setNoDataRow(o){this._customNoDataRow=o}updateStickyHeaderRowStyles(){const o=this._getRenderedRows(this._headerRowOutlet),u=this._elementRef.nativeElement.querySelector("thead");u&&(u.style.display=o.length?"":"none");const p=this._headerRowDefs.map(D=>D.sticky);this._stickyStyler.clearStickyPositioning(o,["top"]),this._stickyStyler.stickRows(o,p,"top"),this._headerRowDefs.forEach(D=>D.resetStickyChanged())}updateStickyFooterRowStyles(){const o=this._getRenderedRows(this._footerRowOutlet),u=this._elementRef.nativeElement.querySelector("tfoot");u&&(u.style.display=o.length?"":"none");const p=this._footerRowDefs.map(D=>D.sticky);this._stickyStyler.clearStickyPositioning(o,["bottom"]),this._stickyStyler.stickRows(o,p,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,p),this._footerRowDefs.forEach(D=>D.resetStickyChanged())}updateStickyColumnStyles(){const o=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),u=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...o,...c,...u],["left","right"]),this._stickyColumnStylesNeedReset=!1),o.forEach((p,D)=>{this._addStickyColumnStyles([p],this._headerRowDefs[D])}),this._rowDefs.forEach(p=>{const D=[];for(let q=0;q<c.length;q++)this._renderRows[q].rowDef===p&&D.push(c[q]);this._addStickyColumnStyles(D,p)}),u.forEach((p,D)=>{this._addStickyColumnStyles([p],this._footerRowDefs[D])}),Array.from(this._columnDefsByName.values()).forEach(p=>p.resetStickyChanged())}_getAllRenderRows(){const o=[],c=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let u=0;u<this._data.length;u++){let p=this._data[u];const D=this._getRenderRowsForData(p,u,c.get(p));this._cachedRenderRowsMap.has(p)||this._cachedRenderRowsMap.set(p,new WeakMap);for(let q=0;q<D.length;q++){let fe=D[q];const ye=this._cachedRenderRowsMap.get(fe.data);ye.has(fe.rowDef)?ye.get(fe.rowDef).push(fe):ye.set(fe.rowDef,[fe]),o.push(fe)}}return o}_getRenderRowsForData(o,c,u){return this._getRowDefs(o,c).map(D=>{const q=u&&u.has(D)?u.get(D):[];if(q.length){const fe=q.shift();return fe.dataIndex=c,fe}return{data:o,rowDef:D,dataIndex:c}})}_cacheColumnDefs(){this._columnDefsByName.clear(),to(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(c=>{this._columnDefsByName.has(c.name),this._columnDefsByName.set(c.name,c)})}_cacheRowDefs(){this._headerRowDefs=to(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=to(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=to(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const o=this._rowDefs.filter(c=>!c.when);this._defaultRowDef=o[0]}_renderUpdatedColumns(){const o=(D,q)=>D||!!q.getColumnsDiff(),c=this._rowDefs.reduce(o,!1);c&&this._forceRenderDataRows();const u=this._headerRowDefs.reduce(o,!1);u&&this._forceRenderHeaderRows();const p=this._footerRowDefs.reduce(o,!1);return p&&this._forceRenderFooterRows(),c||u||p}_switchDataSource(o){this._data=[],fn(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),o||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=o}_observeRenderChanges(){if(!this.dataSource)return;let o;fn(this.dataSource)?o=this.dataSource.connect(this):function Wo(h){return!!h&&(h instanceof sr.y||(0,Xi.m)(h.lift)&&(0,Xi.m)(h.subscribe))}(this.dataSource)?o=this.dataSource:Array.isArray(this.dataSource)&&(o=(0,zo.of)(this.dataSource)),this._renderChangeSubscription=o.pipe((0,C.R)(this._onDestroy)).subscribe(c=>{this._data=c||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((o,c)=>this._renderRow(this._headerRowOutlet,o,c)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((o,c)=>this._renderRow(this._footerRowOutlet,o,c)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(o,c){const u=Array.from(c.columns||[]).map(q=>this._columnDefsByName.get(q)),p=u.map(q=>q.sticky),D=u.map(q=>q.stickyEnd);this._stickyStyler.updateStickyColumns(o,p,D,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(o){const c=[];for(let u=0;u<o.viewContainer.length;u++){const p=o.viewContainer.get(u);c.push(p.rootNodes[0])}return c}_getRowDefs(o,c){if(1==this._rowDefs.length)return[this._rowDefs[0]];let u=[];if(this.multiTemplateDataRows)u=this._rowDefs.filter(p=>!p.when||p.when(c,o));else{let p=this._rowDefs.find(D=>D.when&&D.when(c,o))||this._defaultRowDef;p&&u.push(p)}return u}_getEmbeddedViewArgs(o,c){return{templateRef:o.rowDef.template,context:{$implicit:o.data},index:c}}_renderRow(o,c,u,p={}){const D=o.viewContainer.createEmbeddedView(c.template,p,u);return this._renderCellTemplateForItem(c,p),D}_renderCellTemplateForItem(o,c){for(let u of this._getCellTemplates(o))Ao.mostRecentCellOutlet&&Ao.mostRecentCellOutlet._viewContainer.createEmbeddedView(u,c);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const o=this._rowOutlet.viewContainer;for(let c=0,u=o.length;c<u;c++){const D=o.get(c).context;D.count=u,D.first=0===c,D.last=c===u-1,D.even=c%2==0,D.odd=!D.even,this.multiTemplateDataRows?(D.dataIndex=this._renderRows[c].dataIndex,D.renderIndex=c):D.index=this._renderRows[c].dataIndex}}_getCellTemplates(o){return o&&o.columns?Array.from(o.columns,c=>{const u=this._columnDefsByName.get(c);return o.extractCellTemplate(u)}):[]}_applyNativeTableSections(){const o=this._document.createDocumentFragment(),c=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const u of c){const p=this._document.createElement(u.tag);p.setAttribute("role","rowgroup");for(const D of u.outlets)p.appendChild(D.elementRef.nativeElement);o.appendChild(p)}this._elementRef.nativeElement.appendChild(o)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const o=(c,u)=>c||u.hasStickyChanged();this._headerRowDefs.reduce(o,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(o,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(o,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Hf(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,zo.of)()).pipe((0,C.R)(this._onDestroy)).subscribe(c=>{this._stickyStyler.direction=c,this.updateStickyColumnStyles()})}_getOwnDefs(o){return o.filter(c=>!c._table||c._table===this)}_updateNoDataRow(){const o=this._customNoDataRow||this._noDataRow;if(!o)return;const c=0===this._rowOutlet.viewContainer.length;if(c===this._isShowingNoDataRow)return;const u=this._noDataRowOutlet.viewContainer;if(c){const p=u.createEmbeddedView(o.templateRef),D=p.rootNodes[0];1===p.rootNodes.length&&D?.nodeType===this._document.ELEMENT_NODE&&(D.setAttribute("role","row"),D.classList.add(o._contentClassName))}else u.clear();this._isShowingNoDataRow=c,this._changeDetectorRef.markForCheck()}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.ZZ4),i.Y36(i.sBO),i.Y36(i.SBq),i.$8M("role"),i.Y36(J.Is,8),i.Y36(T.K0),i.Y36(pn.t4),i.Y36(Si),i.Y36(tc),i.Y36(Zt.rL),i.Y36(ra,12),i.Y36(i.R0b,8))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(c,u,p){if(1&c&&(i.Suo(p,rc,5),i.Suo(p,_o,5),i.Suo(p,oc,5),i.Suo(p,ms,5),i.Suo(p,oa,5)),2&c){let D;i.iGM(D=i.CRH())&&(u._noDataRow=D.first),i.iGM(D=i.CRH())&&(u._contentColumnDefs=D),i.iGM(D=i.CRH())&&(u._contentRowDefs=D),i.iGM(D=i.CRH())&&(u._contentHeaderRowDefs=D),i.iGM(D=i.CRH())&&(u._contentFooterRowDefs=D)}},viewQuery:function(c,u){if(1&c&&(i.Gf(ac,7),i.Gf(kl,7),i.Gf(sa,7),i.Gf(ii,7)),2&c){let p;i.iGM(p=i.CRH())&&(u._rowOutlet=p.first),i.iGM(p=i.CRH())&&(u._headerRowOutlet=p.first),i.iGM(p=i.CRH())&&(u._footerRowOutlet=p.first),i.iGM(p=i.CRH())&&(u._noDataRowOutlet=p.first)}},hostAttrs:["ngSkipHydration","",1,"cdk-table"],hostVars:2,hostBindings:function(c,u){2&c&&i.ekj("cdk-table-fixed-layout",u.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:["multiTemplateDataRows","multiTemplateDataRows",i.VuI],fixedLayout:["fixedLayout","fixedLayout",i.VuI]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[i._Bn([{provide:Mo,useExisting:h},{provide:Si,useClass:An},{provide:tc,useClass:nc},{provide:ra,useValue:null}]),i.Xq5],ngContentSelectors:Bf,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(c,u){1&c&&(i.F$t(us),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ac,kl,sa,ii],styles:[".cdk-table-fixed-layout{table-layout:fixed}"],encapsulation:2})}return h})();function to(h,l){return h.concat(Array.from(l))}let Yf=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({imports:[Zt.Cl]})}return h})();const Kf=[[["caption"]],[["colgroup"],["col"]]],Rl=["caption","colgroup, col"];let Ll=(()=>{class h extends Vi{constructor(){super(...arguments),this.stickyCssClass="mat-mdc-table-sticky",this.needsPositionStickyOnElement=!1}ngOnInit(){super.ngOnInit(),this._isNativeHtmlTable&&this._elementRef.nativeElement.querySelector("tbody").classList.add("mdc-data-table__content")}static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:["ngSkipHydration","",1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(c,u){2&c&&i.ekj("mdc-table-fixed-layout",u.fixedLayout)},exportAs:["matTable"],features:[i._Bn([{provide:Vi,useExisting:h},{provide:Mo,useExisting:h},{provide:tc,useClass:nc},{provide:Si,useClass:An},{provide:ra,useValue:null}]),i.qOj],ngContentSelectors:Rl,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(c,u){1&c&&(i.F$t(Kf),i.Hsn(0),i.Hsn(1,1),i.GkF(2,0)(3,1)(4,2)(5,3))},dependencies:[ac,kl,sa,ii],styles:[".mat-mdc-table-sticky{position:sticky !important}.mdc-data-table{-webkit-overflow-scrolling:touch;display:inline-flex;flex-direction:column;box-sizing:border-box;position:relative}.mdc-data-table__table-container{-webkit-overflow-scrolling:touch;overflow-x:auto;width:100%}.mdc-data-table__table{min-width:100%;border:0;white-space:nowrap;border-spacing:0;table-layout:fixed}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell,.mdc-data-table__cell[dir=rtl]{text-align:right}.mdc-data-table__cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__cell--numeric,.mdc-data-table__cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell{box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mdc-data-table__header-cell,.mdc-data-table__header-cell[dir=rtl]{text-align:right}.mdc-data-table__header-cell--numeric{text-align:right}[dir=rtl] .mdc-data-table__header-cell--numeric,.mdc-data-table__header-cell--numeric[dir=rtl]{text-align:left}.mdc-data-table__header-cell-wrapper{align-items:center;display:inline-flex;vertical-align:middle}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px 0 16px}.mdc-data-table__header-cell--checkbox,.mdc-data-table__cell--checkbox{padding-left:4px;padding-right:0}[dir=rtl] .mdc-data-table__header-cell--checkbox,[dir=rtl] .mdc-data-table__cell--checkbox,.mdc-data-table__header-cell--checkbox[dir=rtl],.mdc-data-table__cell--checkbox[dir=rtl]{padding-left:0;padding-right:4px}mat-table{display:block}mat-header-row{min-height:56px}mat-row,mat-footer-row{min-height:48px}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color)}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-header-headline-font, Roboto, sans-serif);line-height:var(--mat-table-header-headline-line-height);font-size:var(--mat-table-header-headline-size, 14px);font-weight:var(--mat-table-header-headline-weight, 500)}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, Roboto, sans-serif);line-height:var(--mat-table-row-item-label-text-line-height);font-size:var(--mat-table-row-item-label-text-size, 14px);font-weight:var(--mat-table-row-item-label-text-weight)}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, rgba(0, 0, 0, 0.87));font-family:var(--mat-table-footer-supporting-text-font, Roboto, sans-serif);line-height:var(--mat-table-footer-supporting-text-line-height);font-size:var(--mat-table-footer-supporting-text-size, 14px);font-weight:var(--mat-table-footer-supporting-text-weight);letter-spacing:var(--mat-table-footer-supporting-text-tracking)}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking);font-weight:inherit;line-height:inherit}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, rgba(0, 0, 0, 0.12));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking);line-height:inherit}.mdc-data-table__row:last-child .mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking)}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}"],encapsulation:2})}return h})(),aa=(()=>{class h extends hs{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matCellDef",""]],features:[i._Bn([{provide:hs,useExisting:h}]),i.qOj]})}return h})(),ps=(()=>{class h extends So{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matHeaderCellDef",""]],features:[i._Bn([{provide:So,useExisting:h}]),i.qOj]})}return h})(),ca=(()=>{class h extends _o{get name(){return this._name}set name(o){this._setNameInput(o)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[i._Bn([{provide:_o,useExisting:h},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:h}]),i.qOj]})}return h})(),la=(()=>{class h extends eo{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[i.qOj]})}return h})(),gs=(()=>{class h extends Ml{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[i.qOj]})}return h})(),oi=(()=>{class h extends ms{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[i._Bn([{provide:ms,useExisting:h}]),i.qOj]})}return h})(),xn=(()=>{class h extends oc{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[i._Bn([{provide:oc,useExisting:h}]),i.qOj]})}return h})(),cc=(()=>{class h extends ur{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[i._Bn([{provide:ur,useExisting:h}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Ao],encapsulation:2})}return h})(),Bl=(()=>{class h extends Ol{static#e=this.\u0275fac=(()=>{let o;return function(u){return(o||(o=i.n5z(h)))(u||h)}})();static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[i._Bn([{provide:Ol,useExisting:h}]),i.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(c,u){1&c&&i.GkF(0,0)},dependencies:[Ao],encapsulation:2})}return h})(),lc=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({imports:[S.BQ,Yf,S.BQ]})}return h})();var Io=b(7361);const dc=["tooltip"],Vl=new i.OlP("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{const h=(0,i.f3M)(Pn);return()=>h.scrollStrategies.reposition({scrollThrottle:20})}}),Qf={provide:Vl,deps:[Pn],useFactory:function _u(h){return()=>h.scrollStrategies.reposition({scrollThrottle:20})}},ua=new i.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function _s(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),uc="tooltip-panel",bu=(0,pn.i$)({passive:!0});let Vr=(()=>{class h{get position(){return this._position}set position(o){o!==this._position&&(this._position=o,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(o){this._positionAtOrigin=(0,y.Ig)(o),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(o){this._disabled=(0,y.Ig)(o),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(o){this._showDelay=(0,y.su)(o)}get hideDelay(){return this._hideDelay}set hideDelay(o){this._hideDelay=(0,y.su)(o),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(o){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=o?String(o).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(o){this._tooltipClass=o,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}constructor(o,c,u,p,D,q,fe,ye,Le,Ye,ut,pt){this._overlay=o,this._elementRef=c,this._scrollDispatcher=u,this._viewContainerRef=p,this._ngZone=D,this._platform=q,this._ariaDescriber=fe,this._focusMonitor=ye,this._dir=Ye,this._defaultOptions=ut,this._position="below",this._positionAtOrigin=!1,this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._tooltipComponent=tm,this._viewportMargin=8,this._cssClassPrefix="mat-mdc",this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new k.x,this._scrollStrategy=Le,this._document=pt,ut&&(this._showDelay=ut.showDelay,this._hideDelay=ut.hideDelay,ut.position&&(this.position=ut.position),ut.positionAtOrigin&&(this.positionAtOrigin=ut.positionAtOrigin),ut.touchGestures&&(this.touchGestures=ut.touchGestures)),Ye.change.pipe((0,C.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)}),this._viewportMargin=8}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,C.R)(this._destroyed)).subscribe(o=>{o?"keyboard"===o&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const o=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([c,u])=>{o.removeEventListener(c,u,bu)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(o,this.message,"tooltip"),this._focusMonitor.stopMonitoring(o)}show(o=this.showDelay,c){if(this.disabled||!this.message||this._isTooltipVisible())return void this._tooltipInstance?._cancelPendingAnimations();const u=this._createOverlay(c);this._detach(),this._portal=this._portal||new on.C5(this._tooltipComponent,this._viewContainerRef);const p=this._tooltipInstance=u.attach(this._portal).instance;p._triggerElement=this._elementRef.nativeElement,p._mouseLeaveHideDelay=this._hideDelay,p.afterHidden().pipe((0,C.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),p.show(o)}hide(o=this.hideDelay){const c=this._tooltipInstance;c&&(c.isVisible()?c.hide(o):(c._cancelPendingAnimations(),this._detach()))}toggle(o){this._isTooltipVisible()?this.hide():this.show(void 0,o)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(o){if(this._overlayRef){const p=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!o)&&p._origin instanceof i.SBq)return this._overlayRef;this._detach()}const c=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),u=this._overlay.position().flexibleConnectedTo(this.positionAtOrigin&&o||this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(c);return u.positionChanges.pipe((0,C.R)(this._destroyed)).subscribe(p=>{this._updateCurrentPositionClass(p.connectionPair),this._tooltipInstance&&p.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:u,panelClass:`${this._cssClassPrefix}-${uc}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,C.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,C.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,C.R)(this._destroyed)).subscribe(p=>{this._isTooltipVisible()&&p.keyCode===ie.hY&&!(0,ie.Vb)(p)&&(p.preventDefault(),p.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(o){const c=o.getConfig().positionStrategy,u=this._getOrigin(),p=this._getOverlayPosition();c.withPositions([this._addOffset({...u.main,...p.main}),this._addOffset({...u.fallback,...p.fallback})])}_addOffset(o){const u=!this._dir||"ltr"==this._dir.value;return"top"===o.originY?o.offsetY=-8:"bottom"===o.originY?o.offsetY=8:"start"===o.originX?o.offsetX=u?-8:8:"end"===o.originX&&(o.offsetX=u?8:-8),o}_getOrigin(){const o=!this._dir||"ltr"==this._dir.value,c=this.position;let u;"above"==c||"below"==c?u={originX:"center",originY:"above"==c?"top":"bottom"}:"before"==c||"left"==c&&o||"right"==c&&!o?u={originX:"start",originY:"center"}:("after"==c||"right"==c&&o||"left"==c&&!o)&&(u={originX:"end",originY:"center"});const{x:p,y:D}=this._invertPosition(u.originX,u.originY);return{main:u,fallback:{originX:p,originY:D}}}_getOverlayPosition(){const o=!this._dir||"ltr"==this._dir.value,c=this.position;let u;"above"==c?u={overlayX:"center",overlayY:"bottom"}:"below"==c?u={overlayX:"center",overlayY:"top"}:"before"==c||"left"==c&&o||"right"==c&&!o?u={overlayX:"end",overlayY:"center"}:("after"==c||"right"==c&&o||"left"==c&&!o)&&(u={overlayX:"start",overlayY:"center"});const{x:p,y:D}=this._invertPosition(u.overlayX,u.overlayY);return{main:u,fallback:{overlayX:p,overlayY:D}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,A.q)(1),(0,C.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(o){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=o,this._tooltipInstance._markForCheck())}_invertPosition(o,c){return"above"===this.position||"below"===this.position?"top"===c?c="bottom":"bottom"===c&&(c="top"):"end"===o?o="start":"start"===o&&(o="end"),{x:o,y:c}}_updateCurrentPositionClass(o){const{overlayY:c,originX:u,originY:p}=o;let D;if(D="center"===c?this._dir&&"rtl"===this._dir.value?"end"===u?"left":"right":"start"===u?"left":"right":"bottom"===c&&"top"===p?"above":"below",D!==this._currentPosition){const q=this._overlayRef;if(q){const fe=`${this._cssClassPrefix}-${uc}-`;q.removePanelClass(fe+this._currentPosition),q.addPanelClass(fe+D)}this._currentPosition=D}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",o=>{let c;this._setupPointerExitEventsIfNeeded(),void 0!==o.x&&void 0!==o.y&&(c=o),this.show(void 0,c)}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",o=>{const c=o.targetTouches?.[0],u=c?{x:c.clientX,y:c.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(void 0,u),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const o=[];if(this._platformSupportsMouseEvents())o.push(["mouseleave",c=>{const u=c.relatedTarget;(!u||!this._overlayRef?.overlayElement.contains(u))&&this.hide()}],["wheel",c=>this._wheelListener(c)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const c=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};o.push(["touchend",c],["touchcancel",c])}this._addListeners(o),this._passiveListeners.push(...o)}_addListeners(o){o.forEach(([c,u])=>{this._elementRef.nativeElement.addEventListener(c,u,bu)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(o){if(this._isTooltipVisible()){const c=this._document.elementFromPoint(o.clientX,o.clientY),u=this._elementRef.nativeElement;c!==u&&!u.contains(c)&&this.hide()}}_disableNativeGesturesIfNecessary(){const o=this.touchGestures;if("off"!==o){const c=this._elementRef.nativeElement,u=c.style;("on"===o||"INPUT"!==c.nodeName&&"TEXTAREA"!==c.nodeName)&&(u.userSelect=u.msUserSelect=u.webkitUserSelect=u.MozUserSelect="none"),("on"===o||!c.draggable)&&(u.webkitUserDrag="none"),u.touchAction="none",u.webkitTapHighlightColor="transparent"}}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Pn),i.Y36(i.SBq),i.Y36(Zt.mF),i.Y36(i.s_b),i.Y36(i.R0b),i.Y36(pn.t4),i.Y36(N.$s),i.Y36(N.tE),i.Y36(Vl),i.Y36(J.Is),i.Y36(ua,8),i.Y36(T.K0))};static#t=this.\u0275dir=i.lG2({type:h,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(c,u){2&c&&i.ekj("mat-mdc-tooltip-disabled",u.disabled)},inputs:{position:["matTooltipPosition","position"],positionAtOrigin:["matTooltipPositionAtOrigin","positionAtOrigin"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return h})(),tm=(()=>{class h{constructor(o,c,u){this._changeDetectorRef=o,this._elementRef=c,this._isMultiline=!1,this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new k.x,this._showAnimation="mat-mdc-tooltip-show",this._hideAnimation="mat-mdc-tooltip-hide",this._animationsDisabled="NoopAnimations"===u}show(o){null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},o)}hide(o){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},o)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:o}){(!o||!this._triggerElement.contains(o))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){const o=this._elementRef.nativeElement.getBoundingClientRect();return o.height>24&&o.width>=200}_handleAnimationEnd({animationName:o}){(o===this._showAnimation||o===this._hideAnimation)&&this._finalizeAnimation(o===this._showAnimation)}_cancelPendingAnimations(){null!=this._showTimeoutId&&clearTimeout(this._showTimeoutId),null!=this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(o){o?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(o){const c=this._tooltip.nativeElement,u=this._showAnimation,p=this._hideAnimation;if(c.classList.remove(o?p:u),c.classList.add(o?u:p),this._isVisible=o,o&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const D=getComputedStyle(c);("0s"===D.getPropertyValue("animation-duration")||"none"===D.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}o&&this._onShow(),this._animationsDisabled&&(c.classList.add("_mat-animation-noopable"),this._finalizeAnimation(o))}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(i.sBO),i.Y36(i.SBq),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["mat-tooltip-component"]],viewQuery:function(c,u){if(1&c&&i.Gf(dc,7),2&c){let p;i.iGM(p=i.CRH())&&(u._tooltip=p.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(c,u){1&c&&i.NdJ("mouseleave",function(D){return u._handleMouseLeave(D)}),2&c&&i.Udp("zoom",u.isVisible()?1:null)},decls:4,vars:4,consts:[[1,"mdc-tooltip","mdc-tooltip--shown","mat-mdc-tooltip",3,"ngClass","animationend"],["tooltip",""],[1,"mdc-tooltip__surface","mdc-tooltip__surface-animation"]],template:function(c,u){1&c&&(i.TgZ(0,"div",0,1),i.NdJ("animationend",function(D){return u._handleAnimationEnd(D)}),i.TgZ(2,"div",2),i._uU(3),i.qZA()()),2&c&&(i.ekj("mdc-tooltip--multiline",u._isMultiline),i.Q6J("ngClass",u.tooltipClass),i.xp6(3),i.Oqu(u.message))},dependencies:[T.mk],styles:['.mdc-tooltip__surface{word-break:break-all;word-break:var(--mdc-tooltip-word-break, normal);overflow-wrap:anywhere}.mdc-tooltip--showing-transition .mdc-tooltip__surface-animation{transition:opacity 150ms 0ms cubic-bezier(0, 0, 0.2, 1),transform 150ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-tooltip--hide-transition .mdc-tooltip__surface-animation{transition:opacity 75ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-tooltip{position:fixed;display:none;z-index:9}.mdc-tooltip-wrapper--rich{position:relative}.mdc-tooltip--shown,.mdc-tooltip--showing,.mdc-tooltip--hide{display:inline-flex}.mdc-tooltip--shown.mdc-tooltip--rich,.mdc-tooltip--showing.mdc-tooltip--rich,.mdc-tooltip--hide.mdc-tooltip--rich{display:inline-block;left:-320px;position:absolute}.mdc-tooltip__surface{line-height:16px;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center}.mdc-tooltip__surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-tooltip__surface::before{border-color:CanvasText}}.mdc-tooltip--rich .mdc-tooltip__surface{align-items:flex-start;display:flex;flex-direction:column;min-height:24px;min-width:40px;max-width:320px;position:relative}.mdc-tooltip--multiline .mdc-tooltip__surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mdc-tooltip__surface,.mdc-tooltip--multiline .mdc-tooltip__surface[dir=rtl]{text-align:right}.mdc-tooltip__surface .mdc-tooltip__title{margin:0 8px}.mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(200px - 2*8px);margin:8px;text-align:left}[dir=rtl] .mdc-tooltip__surface .mdc-tooltip__content,.mdc-tooltip__surface .mdc-tooltip__content[dir=rtl]{text-align:right}.mdc-tooltip--rich .mdc-tooltip__surface .mdc-tooltip__content{max-width:calc(320px - 2*8px);align-self:stretch}.mdc-tooltip__surface .mdc-tooltip__content-link{text-decoration:none}.mdc-tooltip--rich-actions,.mdc-tooltip__content,.mdc-tooltip__title{z-index:1}.mdc-tooltip__surface-animation{opacity:0;transform:scale(0.8);will-change:transform,opacity}.mdc-tooltip--shown .mdc-tooltip__surface-animation{transform:scale(1);opacity:1}.mdc-tooltip--hide .mdc-tooltip__surface-animation{transform:scale(1)}.mdc-tooltip__caret-surface-top,.mdc-tooltip__caret-surface-bottom{position:absolute;height:24px;width:24px;transform:rotate(35deg) skewY(20deg) scaleX(0.9396926208)}.mdc-tooltip__caret-surface-top .mdc-elevation-overlay,.mdc-tooltip__caret-surface-bottom .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-tooltip__caret-surface-bottom{box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);outline:1px solid rgba(0,0,0,0);z-index:-1}@media screen and (forced-colors: active){.mdc-tooltip__caret-surface-bottom{outline-color:CanvasText}}.mat-mdc-tooltip .mdc-tooltip__surface{background-color:var(--mdc-plain-tooltip-container-color)}.mat-mdc-tooltip .mdc-tooltip__surface{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__caret-surface-top,.mat-mdc-tooltip .mdc-tooltip__caret-surface-bottom{border-radius:var(--mdc-plain-tooltip-container-shape)}.mat-mdc-tooltip .mdc-tooltip__surface{color:var(--mdc-plain-tooltip-supporting-text-color)}.mat-mdc-tooltip .mdc-tooltip__surface{font-family:var(--mdc-plain-tooltip-supporting-text-font);line-height:var(--mdc-plain-tooltip-supporting-text-line-height);font-size:var(--mdc-plain-tooltip-supporting-text-size);font-weight:var(--mdc-plain-tooltip-supporting-text-weight);letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking)}.mat-mdc-tooltip{position:relative;transform:scale(0)}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}'],encapsulation:2,changeDetection:0})}return h})(),Hl=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:[Qf],imports:[N.rt,T.ez,Rn,S.BQ,S.BQ,Zt.ZD]})}return h})();function nm(h){return new i.vHH(3e3,!1)}function Hr(h){switch(h.length){case 0:return new ce.ZN;case 1:return h[0];default:return new ce.ZE(h)}}function Iu(h,l,o=new Map,c=new Map){const u=[],p=[];let D=-1,q=null;if(l.forEach(fe=>{const ye=fe.get("offset"),Le=ye==D,Ye=Le&&q||new Map;fe.forEach((ut,pt)=>{let _t=pt,Dt=ut;if("offset"!==pt)switch(_t=h.normalizePropertyName(_t,u),Dt){case ce.k1:Dt=o.get(pt);break;case ce.l3:Dt=c.get(pt);break;default:Dt=h.normalizeStyleValue(pt,_t,Dt,u)}Ye.set(_t,Dt)}),Le||p.push(Ye),q=Ye,D=ye}),u.length)throw function Jn(h){return new i.vHH(3502,!1)}();return p}function Ou(h,l,o,c){switch(l){case"start":h.onStart(()=>c(o&&Pu(o,"start",h)));break;case"done":h.onDone(()=>c(o&&Pu(o,"done",h)));break;case"destroy":h.onDestroy(()=>c(o&&Pu(o,"destroy",h)))}}function Pu(h,l,o){const p=ku(h.element,h.triggerName,h.fromState,h.toState,l||h.phaseName,o.totalTime??h.totalTime,!!o.disabled),D=h._data;return null!=D&&(p._data=D),p}function ku(h,l,o,c,u="",p=0,D){return{element:h,triggerName:l,fromState:o,toState:c,phaseName:u,totalTime:p,disabled:!!D}}function no(h,l,o){let c=h.get(l);return c||h.set(l,c=o),c}function dm(h){const l=h.indexOf(":");return[h.substring(1,l),h.slice(l+1)]}const I_=(()=>typeof document>"u"?null:document.documentElement)();function mr(h){const l=h.parentNode||h.host||null;return l===I_?null:l}let jr=null,Wn=!1;function Di(h,l){for(;l;){if(l===h)return!0;l=mr(l)}return!1}function Ur(h,l,o){if(o)return Array.from(h.querySelectorAll(l));const c=h.querySelector(l);return c?[c]:[]}let Ds=(()=>{class h{validateStyleProperty(o){return function hm(h){jr||(jr=function fm(){return typeof document<"u"?document.body:null}()||{},Wn=!!jr.style&&"WebkitAppearance"in jr.style);let l=!0;return jr.style&&!function um(h){return"ebkit"==h.substring(1,6)}(h)&&(l=h in jr.style,!l&&Wn&&(l="Webkit"+h.charAt(0).toUpperCase()+h.slice(1)in jr.style)),l}(o)}matchesElement(o,c){return!1}containsElement(o,c){return Di(o,c)}getParentElement(o){return mr(o)}query(o,c,u){return Ur(o,c,u)}computeStyle(o,c,u){return u||""}animate(o,c,u,p,D,q=[],fe){return new ce.ZN(u,p)}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac})}return h})(),zr=(()=>{class h{static#e=this.NOOP=new Ds}return h})();class ha{}const Ru=1e3,fa="ng-enter",Zo="ng-leave",Kl="ng-trigger",ma=".ng-trigger",Fu="ng-animating",Zl=".ng-animating";function qo(h){if("number"==typeof h)return h;const l=h.match(/^(-?[\.\d]+)(m?s)/);return!l||l.length<2?0:ql(parseFloat(l[1]),l[2])}function ql(h,l){return"s"===l?h*Ru:h}function _c(h,l,o){return h.hasOwnProperty("duration")?h:function gm(h,l,o){let u,p=0,D="";if("string"==typeof h){const q=h.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===q)return l.push(nm()),{duration:0,delay:0,easing:""};u=ql(parseFloat(q[1]),q[2]);const fe=q[3];null!=fe&&(p=ql(parseFloat(fe),q[4]));const ye=q[5];ye&&(D=ye)}else u=h;if(!o){let q=!1,fe=l.length;u<0&&(l.push(function vu(){return new i.vHH(3100,!1)}()),q=!0),p<0&&(l.push(function yu(){return new i.vHH(3101,!1)}()),q=!0),q&&l.splice(fe,0,nm())}return{duration:u,delay:p,easing:D}}(h,l,o)}function Gr(h,l={}){return Object.keys(h).forEach(o=>{l[o]=h[o]}),l}function pa(h){const l=new Map;return Object.keys(h).forEach(o=>{l.set(o,h[o])}),l}function pr(h,l=new Map,o){if(o)for(let[c,u]of o)l.set(c,u);for(let[c,u]of h)l.set(c,u);return l}function Hi(h,l,o){l.forEach((c,u)=>{const p=Yr(u);o&&!o.has(u)&&o.set(u,h.style[p]),h.style[p]=c})}function Wr(h,l){l.forEach((o,c)=>{const u=Yr(c);h.style[u]=""})}function Ts(h){return Array.isArray(h)?1==h.length?h[0]:(0,ce.vP)(h):h}const Es=new RegExp("{{\\s*(.+?)\\s*}}","g");function Ql(h){let l=[];if("string"==typeof h){let o;for(;o=Es.exec(h);)l.push(o[1]);Es.lastIndex=0}return l}function _a(h,l,o){const c=h.toString(),u=c.replace(Es,(p,D)=>{let q=l[D];return null==q&&(o.push(function Oo(h){return new i.vHH(3003,!1)}()),q=""),q.toString()});return u==c?h:u}function bc(h){const l=[];let o=h.next();for(;!o.done;)l.push(o.value),o=h.next();return l}const Ms=/-+([a-z0-9])/g;function Yr(h){return h.replace(Ms,(...l)=>l[1].toUpperCase())}function ji(h,l,o){switch(l.type){case 7:return h.visitTrigger(l,o);case 0:return h.visitState(l,o);case 1:return h.visitTransition(l,o);case 2:return h.visitSequence(l,o);case 3:return h.visitGroup(l,o);case 4:return h.visitAnimate(l,o);case 5:return h.visitKeyframes(l,o);case 6:return h.visitStyle(l,o);case 8:return h.visitReference(l,o);case 9:return h.visitAnimateChild(l,o);case 10:return h.visitAnimateRef(l,o);case 11:return h.visitQuery(l,o);case 12:return h.visitStagger(l,o);default:throw function om(h){return new i.vHH(3004,!1)}()}}function bm(h,l){return window.getComputedStyle(h)[l]}const vm=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Lu extends ha{normalizePropertyName(l,o){return Yr(l)}normalizeStyleValue(l,o,c,u){let p="";const D=c.toString().trim();if(vm.has(o)&&0!==c&&"0"!==c)if("number"==typeof c)p="px";else{const q=c.match(/^[+-]?[\d\.]+([a-z]*)$/);q&&0==q[1].length&&u.push(function fc(h,l){return new i.vHH(3005,!1)}())}return D+p}}const vc="*";function $u(h,l){const o=[];return"string"==typeof h?h.split(/\s*,\s*/).forEach(c=>function Hu(h,l,o){if(":"==h[0]){const fe=function yc(h,l){switch(h){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(o,c)=>parseFloat(c)>parseFloat(o);case":decrement":return(o,c)=>parseFloat(c)<parseFloat(o);default:return l.push(function Eu(h){return new i.vHH(3016,!1)}()),"* => *"}}(h,o);if("function"==typeof fe)return void l.push(fe);h=fe}const c=h.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==c||c.length<4)return o.push(function sm(h){return new i.vHH(3015,!1)}()),l;const u=c[1],p=c[2],D=c[3];l.push(ju(u,D));"<"==p[0]&&!(u==vc&&D==vc)&&l.push(ju(D,u))}(c,o,l)):o.push(h),o}const ed=new Set(["true","1"]),Ss=new Set(["false","0"]);function ju(h,l){const o=ed.has(h)||Ss.has(h),c=ed.has(l)||Ss.has(l);return(u,p)=>{let D=h==vc||h==u,q=l==vc||l==p;return!D&&o&&"boolean"==typeof u&&(D=u?ed.has(h):Ss.has(h)),!q&&c&&"boolean"==typeof p&&(q=p?ed.has(l):Ss.has(l)),D&&q}}const Uu=new RegExp("s*:selfs*,?","g");function Cc(h,l,o,c){return new wm(h).build(l,o,c)}class wm{constructor(l){this._driver=l}build(l,o,c){const u=new Cm(o);return this._resetContextStyleTimingState(u),ji(this,Ts(l),u)}_resetContextStyleTimingState(l){l.currentQuerySelector="",l.collectedStyles=new Map,l.collectedStyles.set("",new Map),l.currentTime=0}visitTrigger(l,o){let c=o.queryCount=0,u=o.depCount=0;const p=[],D=[];return"@"==l.name.charAt(0)&&o.errors.push(function Ul(){return new i.vHH(3006,!1)}()),l.definitions.forEach(q=>{if(this._resetContextStyleTimingState(o),0==q.type){const fe=q,ye=fe.name;ye.toString().split(/\s*,\s*/).forEach(Le=>{fe.name=Le,p.push(this.visitState(fe,o))}),fe.name=ye}else if(1==q.type){const fe=this.visitTransition(q,o);c+=fe.queryCount,u+=fe.depCount,D.push(fe)}else o.errors.push(function wu(){return new i.vHH(3007,!1)}())}),{type:7,name:l.name,states:p,transitions:D,queryCount:c,depCount:u,options:null}}visitState(l,o){const c=this.visitStyle(l.styles,o),u=l.options&&l.options.params||null;if(c.containsDynamicStyles){const p=new Set,D=u||{};c.styles.forEach(q=>{q instanceof Map&&q.forEach(fe=>{Ql(fe).forEach(ye=>{D.hasOwnProperty(ye)||p.add(ye)})})}),p.size&&(bc(p.values()),o.errors.push(function mc(h,l){return new i.vHH(3008,!1)}()))}return{type:0,name:l.name,style:c,options:u?{params:u}:null}}visitTransition(l,o){o.queryCount=0,o.depCount=0;const c=ji(this,Ts(l.animation),o);return{type:1,matchers:$u(l.expr,o.errors),animation:c,queryCount:o.queryCount,depCount:o.depCount,options:bi(l.options)}}visitSequence(l,o){return{type:2,steps:l.steps.map(c=>ji(this,c,o)),options:bi(l.options)}}visitGroup(l,o){const c=o.currentTime;let u=0;const p=l.steps.map(D=>{o.currentTime=c;const q=ji(this,D,o);return u=Math.max(u,o.currentTime),q});return o.currentTime=u,{type:3,steps:p,options:bi(l.options)}}visitAnimate(l,o){const c=function Dc(h,l){if(h.hasOwnProperty("duration"))return h;if("number"==typeof h)return _r(_c(h,l).duration,0,"");const o=h;if(o.split(/\s+/).some(p=>"{"==p.charAt(0)&&"{"==p.charAt(1))){const p=_r(0,0,"");return p.dynamic=!0,p.strValue=o,p}const u=_c(o,l);return _r(u.duration,u.delay,u.easing)}(l.timings,o.errors);o.currentAnimateTimings=c;let u,p=l.styles?l.styles:(0,ce.oB)({});if(5==p.type)u=this.visitKeyframes(p,o);else{let D=l.styles,q=!1;if(!D){q=!0;const ye={};c.easing&&(ye.easing=c.easing),D=(0,ce.oB)(ye)}o.currentTime+=c.duration+c.delay;const fe=this.visitStyle(D,o);fe.isEmptyStep=q,u=fe}return o.currentAnimateTimings=null,{type:4,timings:c,style:u,options:null}}visitStyle(l,o){const c=this._makeStyleAst(l,o);return this._validateStyleAst(c,o),c}_makeStyleAst(l,o){const c=[],u=Array.isArray(l.styles)?l.styles:[l.styles];for(let q of u)"string"==typeof q?q===ce.l3?c.push(q):o.errors.push(new i.vHH(3002,!1)):c.push(pa(q));let p=!1,D=null;return c.forEach(q=>{if(q instanceof Map&&(q.has("easing")&&(D=q.get("easing"),q.delete("easing")),!p))for(let fe of q.values())if(fe.toString().indexOf("{{")>=0){p=!0;break}}),{type:6,styles:c,easing:D,offset:l.offset,containsDynamicStyles:p,options:null}}_validateStyleAst(l,o){const c=o.currentAnimateTimings;let u=o.currentTime,p=o.currentTime;c&&p>0&&(p-=c.duration+c.delay),l.styles.forEach(D=>{"string"!=typeof D&&D.forEach((q,fe)=>{const ye=o.collectedStyles.get(o.currentQuerySelector),Le=ye.get(fe);let Ye=!0;Le&&(p!=u&&p>=Le.startTime&&u<=Le.endTime&&(o.errors.push(function Cu(h,l,o,c,u){return new i.vHH(3010,!1)}()),Ye=!1),p=Le.startTime),Ye&&ye.set(fe,{startTime:p,endTime:u}),o.options&&function Jl(h,l,o){const c=l.params||{},u=Ql(h);u.length&&u.forEach(p=>{c.hasOwnProperty(p)||o.push(function im(h){return new i.vHH(3001,!1)}())})}(q,o.options,o.errors)})})}visitKeyframes(l,o){const c={type:5,styles:[],options:null};if(!o.currentAnimateTimings)return o.errors.push(function xu(){return new i.vHH(3011,!1)}()),c;let p=0;const D=[];let q=!1,fe=!1,ye=0;const Le=l.steps.map(Fn=>{const ri=this._makeStyleAst(Fn,o);let Ti=null!=ri.offset?ri.offset:function nd(h){if("string"==typeof h)return null;let l=null;if(Array.isArray(h))h.forEach(o=>{if(o instanceof Map&&o.has("offset")){const c=o;l=parseFloat(c.get("offset")),c.delete("offset")}});else if(h instanceof Map&&h.has("offset")){const o=h;l=parseFloat(o.get("offset")),o.delete("offset")}return l}(ri.styles),fi=0;return null!=Ti&&(p++,fi=ri.offset=Ti),fe=fe||fi<0||fi>1,q=q||fi<ye,ye=fi,D.push(fi),ri});fe&&o.errors.push(function Du(){return new i.vHH(3012,!1)}()),q&&o.errors.push(function Tu(){return new i.vHH(3200,!1)}());const Ye=l.steps.length;let ut=0;p>0&&p<Ye?o.errors.push(function rm(){return new i.vHH(3202,!1)}()):0==p&&(ut=1/(Ye-1));const pt=Ye-1,_t=o.currentTime,Dt=o.currentAnimateTimings,Gt=Dt.duration;return Le.forEach((Fn,ri)=>{const Ti=ut>0?ri==pt?1:ut*ri:D[ri],fi=Ti*Gt;o.currentTime=_t+Dt.delay+fi,Dt.duration=fi,this._validateStyleAst(Fn,o),Fn.offset=Ti,c.styles.push(Fn)}),c}visitReference(l,o){return{type:8,animation:ji(this,Ts(l.animation),o),options:bi(l.options)}}visitAnimateChild(l,o){return o.depCount++,{type:9,options:bi(l.options)}}visitAnimateRef(l,o){return{type:10,animation:this.visitReference(l.animation,o),options:bi(l.options)}}visitQuery(l,o){const c=o.currentQuerySelector,u=l.options||{};o.queryCount++,o.currentQuery=l;const[p,D]=function td(h){const l=!!h.split(/\s*,\s*/).find(o=>":self"==o);return l&&(h=h.replace(Uu,"")),h=h.replace(/@\*/g,ma).replace(/@\w+/g,o=>ma+"-"+o.slice(1)).replace(/:animating/g,Zl),[h,l]}(l.selector);o.currentQuerySelector=c.length?c+" "+p:p,no(o.collectedStyles,o.currentQuerySelector,new Map);const q=ji(this,Ts(l.animation),o);return o.currentQuery=null,o.currentQuerySelector=c,{type:11,selector:p,limit:u.limit||0,optional:!!u.optional,includeSelf:D,animation:q,originalSelector:l.selector,options:bi(l.options)}}visitStagger(l,o){o.currentQuery||o.errors.push(function pc(){return new i.vHH(3013,!1)}());const c="full"===l.timings?{duration:0,delay:0,easing:"full"}:_c(l.timings,o.errors,!0);return{type:12,animation:ji(this,Ts(l.animation),o),timings:c,options:null}}}class Cm{constructor(l){this.errors=l,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function bi(h){return h?(h=Gr(h)).params&&(h.params=function xc(h){return h?Gr(h):null}(h.params)):h={},h}function _r(h,l,o){return{duration:h,delay:l,easing:o}}function va(h,l,o,c,u,p,D=null,q=!1){return{type:1,element:h,keyframes:l,preStyleProps:o,postStyleProps:c,duration:u,delay:p,totalTime:u+p,easing:D,subTimeline:q}}class Tc{constructor(){this._map=new Map}get(l){return this._map.get(l)||[]}append(l,o){let c=this._map.get(l);c||this._map.set(l,c=[]),c.push(...o)}has(l){return this._map.has(l)}clear(){this._map.clear()}}const As=new RegExp(":enter","g"),Tm=new RegExp(":leave","g");function id(h,l,o,c,u,p=new Map,D=new Map,q,fe,ye=[]){return(new od).buildKeyframes(h,l,o,c,u,p,D,q,fe,ye)}class od{buildKeyframes(l,o,c,u,p,D,q,fe,ye,Le=[]){ye=ye||new Tc;const Ye=new ya(l,o,ye,u,p,Le,[]);Ye.options=fe;const ut=fe.delay?qo(fe.delay):0;Ye.currentTimeline.delayNextStep(ut),Ye.currentTimeline.setStyles([D],null,Ye.errors,fe),ji(this,c,Ye);const pt=Ye.timelines.filter(_t=>_t.containsAnimation());if(pt.length&&q.size){let _t;for(let Dt=pt.length-1;Dt>=0;Dt--){const Gt=pt[Dt];if(Gt.element===o){_t=Gt;break}}_t&&!_t.allowOnlyTimelineStyles()&&_t.setStyles([q],null,Ye.errors,fe)}return pt.length?pt.map(_t=>_t.buildKeyframes()):[va(o,[],[],[],0,ut,"",!1)]}visitTrigger(l,o){}visitState(l,o){}visitTransition(l,o){}visitAnimateChild(l,o){const c=o.subInstructions.get(o.element);if(c){const u=o.createSubContext(l.options),p=o.currentTimeline.currentTime,D=this._visitSubInstructions(c,u,u.options);p!=D&&o.transformIntoNewTimeline(D)}o.previousNode=l}visitAnimateRef(l,o){const c=o.createSubContext(l.options);c.transformIntoNewTimeline(),this._applyAnimationRefDelays([l.options,l.animation.options],o,c),this.visitReference(l.animation,c),o.transformIntoNewTimeline(c.currentTimeline.currentTime),o.previousNode=l}_applyAnimationRefDelays(l,o,c){for(const u of l){const p=u?.delay;if(p){const D="number"==typeof p?p:qo(_a(p,u?.params??{},o.errors));c.delayNextStep(D)}}}_visitSubInstructions(l,o,c){let p=o.currentTimeline.currentTime;const D=null!=c.duration?qo(c.duration):null,q=null!=c.delay?qo(c.delay):null;return 0!==D&&l.forEach(fe=>{const ye=o.appendInstructionToTimeline(fe,D,q);p=Math.max(p,ye.duration+ye.delay)}),p}visitReference(l,o){o.updateOptions(l.options,!0),ji(this,l.animation,o),o.previousNode=l}visitSequence(l,o){const c=o.subContextCount;let u=o;const p=l.options;if(p&&(p.params||p.delay)&&(u=o.createSubContext(p),u.transformIntoNewTimeline(),null!=p.delay)){6==u.previousNode.type&&(u.currentTimeline.snapshotCurrentStyles(),u.previousNode=Ec);const D=qo(p.delay);u.delayNextStep(D)}l.steps.length&&(l.steps.forEach(D=>ji(this,D,u)),u.currentTimeline.applyStylesToKeyframe(),u.subContextCount>c&&u.transformIntoNewTimeline()),o.previousNode=l}visitGroup(l,o){const c=[];let u=o.currentTimeline.currentTime;const p=l.options&&l.options.delay?qo(l.options.delay):0;l.steps.forEach(D=>{const q=o.createSubContext(l.options);p&&q.delayNextStep(p),ji(this,D,q),u=Math.max(u,q.currentTimeline.currentTime),c.push(q.currentTimeline)}),c.forEach(D=>o.currentTimeline.mergeTimelineCollectedStyles(D)),o.transformIntoNewTimeline(u),o.previousNode=l}_visitTiming(l,o){if(l.dynamic){const c=l.strValue;return _c(o.params?_a(c,o.params,o.errors):c,o.errors)}return{duration:l.duration,delay:l.delay,easing:l.easing}}visitAnimate(l,o){const c=o.currentAnimateTimings=this._visitTiming(l.timings,o),u=o.currentTimeline;c.delay&&(o.incrementTime(c.delay),u.snapshotCurrentStyles());const p=l.style;5==p.type?this.visitKeyframes(p,o):(o.incrementTime(c.duration),this.visitStyle(p,o),u.applyStylesToKeyframe()),o.currentAnimateTimings=null,o.previousNode=l}visitStyle(l,o){const c=o.currentTimeline,u=o.currentAnimateTimings;!u&&c.hasCurrentStyleProperties()&&c.forwardFrame();const p=u&&u.easing||l.easing;l.isEmptyStep?c.applyEmptyStep(p):c.setStyles(l.styles,p,o.errors,o.options),o.previousNode=l}visitKeyframes(l,o){const c=o.currentAnimateTimings,u=o.currentTimeline.duration,p=c.duration,q=o.createSubContext().currentTimeline;q.easing=c.easing,l.styles.forEach(fe=>{q.forwardTime((fe.offset||0)*p),q.setStyles(fe.styles,fe.easing,o.errors,o.options),q.applyStylesToKeyframe()}),o.currentTimeline.mergeTimelineCollectedStyles(q),o.transformIntoNewTimeline(u+p),o.previousNode=l}visitQuery(l,o){const c=o.currentTimeline.currentTime,u=l.options||{},p=u.delay?qo(u.delay):0;p&&(6===o.previousNode.type||0==c&&o.currentTimeline.hasCurrentStyleProperties())&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=Ec);let D=c;const q=o.invokeQuery(l.selector,l.originalSelector,l.limit,l.includeSelf,!!u.optional,o.errors);o.currentQueryTotal=q.length;let fe=null;q.forEach((ye,Le)=>{o.currentQueryIndex=Le;const Ye=o.createSubContext(l.options,ye);p&&Ye.delayNextStep(p),ye===o.element&&(fe=Ye.currentTimeline),ji(this,l.animation,Ye),Ye.currentTimeline.applyStylesToKeyframe(),D=Math.max(D,Ye.currentTimeline.currentTime)}),o.currentQueryIndex=0,o.currentQueryTotal=0,o.transformIntoNewTimeline(D),fe&&(o.currentTimeline.mergeTimelineCollectedStyles(fe),o.currentTimeline.snapshotCurrentStyles()),o.previousNode=l}visitStagger(l,o){const c=o.parentContext,u=o.currentTimeline,p=l.timings,D=Math.abs(p.duration),q=D*(o.currentQueryTotal-1);let fe=D*o.currentQueryIndex;switch(p.duration<0?"reverse":p.easing){case"reverse":fe=q-fe;break;case"full":fe=c.currentStaggerTime}const Le=o.currentTimeline;fe&&Le.delayNextStep(fe);const Ye=Le.currentTime;ji(this,l.animation,o),o.previousNode=l,c.currentStaggerTime=u.currentTime-Ye+(u.startTime-c.currentTimeline.startTime)}}const Ec={};class ya{constructor(l,o,c,u,p,D,q,fe){this._driver=l,this.element=o,this.subInstructions=c,this._enterClassName=u,this._leaveClassName=p,this.errors=D,this.timelines=q,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ec,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=fe||new wa(this._driver,o,0),q.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(l,o){if(!l)return;const c=l;let u=this.options;null!=c.duration&&(u.duration=qo(c.duration)),null!=c.delay&&(u.delay=qo(c.delay));const p=c.params;if(p){let D=u.params;D||(D=this.options.params={}),Object.keys(p).forEach(q=>{(!o||!D.hasOwnProperty(q))&&(D[q]=_a(p[q],D,this.errors))})}}_copyOptions(){const l={};if(this.options){const o=this.options.params;if(o){const c=l.params={};Object.keys(o).forEach(u=>{c[u]=o[u]})}}return l}createSubContext(l=null,o,c){const u=o||this.element,p=new ya(this._driver,u,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(u,c||0));return p.previousNode=this.previousNode,p.currentAnimateTimings=this.currentAnimateTimings,p.options=this._copyOptions(),p.updateOptions(l),p.currentQueryIndex=this.currentQueryIndex,p.currentQueryTotal=this.currentQueryTotal,p.parentContext=this,this.subContextCount++,p}transformIntoNewTimeline(l){return this.previousNode=Ec,this.currentTimeline=this.currentTimeline.fork(this.element,l),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(l,o,c){const u={duration:o??l.duration,delay:this.currentTimeline.currentTime+(c??0)+l.delay,easing:""},p=new Em(this._driver,l.element,l.keyframes,l.preStyleProps,l.postStyleProps,u,l.stretchStartingKeyframe);return this.timelines.push(p),u}incrementTime(l){this.currentTimeline.forwardTime(this.currentTimeline.duration+l)}delayNextStep(l){l>0&&this.currentTimeline.delayNextStep(l)}invokeQuery(l,o,c,u,p,D){let q=[];if(u&&q.push(this.element),l.length>0){l=(l=l.replace(As,"."+this._enterClassName)).replace(Tm,"."+this._leaveClassName);let ye=this._driver.query(this.element,l,1!=c);0!==c&&(ye=c<0?ye.slice(ye.length+c,ye.length):ye.slice(0,c)),q.push(...ye)}return!p&&0==q.length&&D.push(function $r(h){return new i.vHH(3014,!1)}()),q}}class wa{constructor(l,o,c,u){this._driver=l,this.element=o,this.startTime=c,this._elementTimelineStylesLookup=u,this.duration=0,this.easing=null,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(o),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(o,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(l){const o=1===this._keyframes.size&&this._pendingStyles.size;this.duration||o?(this.forwardTime(this.currentTime+l),o&&this.snapshotCurrentStyles()):this.startTime+=l}fork(l,o){return this.applyStylesToKeyframe(),new wa(this._driver,l,o||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(l){this.applyStylesToKeyframe(),this.duration=l,this._loadKeyframe()}_updateStyle(l,o){this._localTimelineStyles.set(l,o),this._globalTimelineStyles.set(l,o),this._styleSummary.set(l,{time:this.currentTime,value:o})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(l){l&&this._previousKeyframe.set("easing",l);for(let[o,c]of this._globalTimelineStyles)this._backFill.set(o,c||ce.l3),this._currentKeyframe.set(o,ce.l3);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(l,o,c,u){o&&this._previousKeyframe.set("easing",o);const p=u&&u.params||{},D=function Wu(h,l){const o=new Map;let c;return h.forEach(u=>{if("*"===u){c=c||l.keys();for(let p of c)o.set(p,ce.l3)}else pr(u,o)}),o}(l,this._globalTimelineStyles);for(let[q,fe]of D){const ye=_a(fe,p,c);this._pendingStyles.set(q,ye),this._localTimelineStyles.has(q)||this._backFill.set(q,this._globalTimelineStyles.get(q)??ce.l3),this._updateStyle(q,ye)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((l,o)=>{this._currentKeyframe.set(o,l)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((l,o)=>{this._currentKeyframe.has(o)||this._currentKeyframe.set(o,l)}))}snapshotCurrentStyles(){for(let[l,o]of this._localTimelineStyles)this._pendingStyles.set(l,o),this._updateStyle(l,o)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const l=[];for(let o in this._currentKeyframe)l.push(o);return l}mergeTimelineCollectedStyles(l){l._styleSummary.forEach((o,c)=>{const u=this._styleSummary.get(c);(!u||o.time>u.time)&&this._updateStyle(c,o.value)})}buildKeyframes(){this.applyStylesToKeyframe();const l=new Set,o=new Set,c=1===this._keyframes.size&&0===this.duration;let u=[];this._keyframes.forEach((q,fe)=>{const ye=pr(q,new Map,this._backFill);ye.forEach((Le,Ye)=>{Le===ce.k1?l.add(Ye):Le===ce.l3&&o.add(Ye)}),c||ye.set("offset",fe/this.duration),u.push(ye)});const p=l.size?bc(l.values()):[],D=o.size?bc(o.values()):[];if(c){const q=u[0],fe=new Map(q);q.set("offset",0),fe.set("offset",1),u=[q,fe]}return va(this.element,u,p,D,this.duration,this.startTime,this.easing,!1)}}class Em extends wa{constructor(l,o,c,u,p,D,q=!1){super(l,o,D.delay),this.keyframes=c,this.preStyleProps=u,this.postStyleProps=p,this._stretchStartingKeyframe=q,this.timings={duration:D.duration,delay:D.delay,easing:D.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let l=this.keyframes,{delay:o,duration:c,easing:u}=this.timings;if(this._stretchStartingKeyframe&&o){const p=[],D=c+o,q=o/D,fe=pr(l[0]);fe.set("offset",0),p.push(fe);const ye=pr(l[0]);ye.set("offset",Gu(q)),p.push(ye);const Le=l.length-1;for(let Ye=1;Ye<=Le;Ye++){let ut=pr(l[Ye]);const pt=ut.get("offset");ut.set("offset",Gu((o+pt*c)/D)),p.push(ut)}c=D,o=0,u="",l=p}return va(this.element,l,this.preStyleProps,this.postStyleProps,c,o,u,!0)}}function Gu(h,l=3){const o=Math.pow(10,l-1);return Math.round(h*o)/o}function Yu(h,l,o,c,u,p,D,q,fe,ye,Le,Ye,ut){return{type:0,element:h,triggerName:l,isRemovalTransition:u,fromState:o,fromStyles:p,toState:c,toStyles:D,timelines:q,queriedElements:fe,preStyleProps:ye,postStyleProps:Le,totalTime:Ye,errors:ut}}const Mc={};class Ku{constructor(l,o,c){this._triggerName=l,this.ast=o,this._stateStyles=c}match(l,o,c,u){return function N_(h,l,o,c,u){return h.some(p=>p(l,o,c,u))}(this.ast.matchers,l,o,c,u)}buildStyles(l,o,c){let u=this._stateStyles.get("*");return void 0!==l&&(u=this._stateStyles.get(l?.toString())||u),u?u.buildStyles(o,c):new Map}build(l,o,c,u,p,D,q,fe,ye,Le){const Ye=[],ut=this.ast.options&&this.ast.options.params||Mc,_t=this.buildStyles(c,q&&q.params||Mc,Ye),Dt=fe&&fe.params||Mc,Gt=this.buildStyles(u,Dt,Ye),Fn=new Set,ri=new Map,Ti=new Map,fi="void"===u,Ns={params:Zu(Dt,ut),delay:this.ast.options?.delay},Ro=Le?[]:id(l,o,this.ast.animation,p,D,_t,Gt,Ns,ye,Ye);let Ii=0;if(Ro.forEach(Ui=>{Ii=Math.max(Ui.duration+Ui.delay,Ii)}),Ye.length)return Yu(o,this._triggerName,c,u,fi,_t,Gt,[],[],ri,Ti,Ii,Ye);Ro.forEach(Ui=>{const er=Ui.element,Sp=no(ri,er,new Set);Ui.preStyleProps.forEach(Fo=>Sp.add(Fo));const Gc=no(Ti,er,new Set);Ui.postStyleProps.forEach(Fo=>Gc.add(Fo)),er!==o&&Fn.add(er)});const yr=bc(Fn.values());return Yu(o,this._triggerName,c,u,fi,_t,Gt,Ro,yr,ri,Ti,Ii)}}function Zu(h,l){const o=Gr(l);for(const c in h)h.hasOwnProperty(c)&&null!=h[c]&&(o[c]=h[c]);return o}class qu{constructor(l,o,c){this.styles=l,this.defaultParams=o,this.normalizer=c}buildStyles(l,o){const c=new Map,u=Gr(this.defaultParams);return Object.keys(l).forEach(p=>{const D=l[p];null!==D&&(u[p]=D)}),this.styles.styles.forEach(p=>{"string"!=typeof p&&p.forEach((D,q)=>{D&&(D=_a(D,u,o));const fe=this.normalizer.normalizePropertyName(q,o);D=this.normalizer.normalizeStyleValue(q,fe,D,o),c.set(q,D)})}),c}}class rd{constructor(l,o,c){this.name=l,this.ast=o,this._normalizer=c,this.transitionFactories=[],this.states=new Map,o.states.forEach(u=>{this.states.set(u.name,new qu(u.style,u.options&&u.options.params||{},c))}),Ca(this.states,"true","1"),Ca(this.states,"false","0"),o.transitions.forEach(u=>{this.transitionFactories.push(new Ku(l,u,this.states))}),this.fallbackTransition=function Kr(h,l,o){return new Ku(h,{type:1,animation:{type:2,steps:[],options:null},matchers:[(D,q)=>!0],options:null,queryCount:0,depCount:0},l)}(l,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(l,o,c,u){return this.transitionFactories.find(D=>D.match(l,o,c,u))||null}matchStyles(l,o,c){return this.fallbackTransition.buildStyles(l,o,c)}}function Ca(h,l,o){h.has(l)?h.has(o)||h.set(o,h.get(l)):h.has(o)&&h.set(l,h.get(o))}const Ju=new Tc;class xa{constructor(l,o,c){this.bodyNode=l,this._driver=o,this._normalizer=c,this._animations=new Map,this._playersById=new Map,this.players=[]}register(l,o){const c=[],p=Cc(this._driver,o,c,[]);if(c.length)throw function am(h){return new i.vHH(3503,!1)}();this._animations.set(l,p)}_buildPlayer(l,o,c){const u=l.element,p=Iu(this._normalizer,l.keyframes,o,c);return this._driver.animate(u,p,l.duration,l.delay,l.easing,[],!0)}create(l,o,c={}){const u=[],p=this._animations.get(l);let D;const q=new Map;if(p?(D=id(this._driver,o,p,fa,Zo,new Map,new Map,c,Ju,u),D.forEach(Le=>{const Ye=no(q,Le.element,new Map);Le.postStyleProps.forEach(ut=>Ye.set(ut,null))})):(u.push(function Su(){return new i.vHH(3300,!1)}()),D=[]),u.length)throw function Gl(h){return new i.vHH(3504,!1)}();q.forEach((Le,Ye)=>{Le.forEach((ut,pt)=>{Le.set(pt,this._driver.computeStyle(Ye,pt,ce.l3))})});const ye=Hr(D.map(Le=>{const Ye=q.get(Le.element);return this._buildPlayer(Le,new Map,Ye)}));return this._playersById.set(l,ye),ye.onDestroy(()=>this.destroy(l)),this.players.push(ye),ye}destroy(l){const o=this._getPlayer(l);o.destroy(),this._playersById.delete(l);const c=this.players.indexOf(o);c>=0&&this.players.splice(c,1)}_getPlayer(l){const o=this._playersById.get(l);if(!o)throw function cm(h){return new i.vHH(3301,!1)}();return o}listen(l,o,c,u){const p=ku(o,"","","");return Ou(this._getPlayer(l),c,p,u),()=>{}}command(l,o,c,u){if("register"==c)return void this.register(l,u[0]);if("create"==c)return void this.create(l,o,u[0]||{});const p=this._getPlayer(l);switch(c){case"play":p.play();break;case"pause":p.pause();break;case"reset":p.reset();break;case"restart":p.restart();break;case"finish":p.finish();break;case"init":p.init();break;case"setPosition":p.setPosition(parseFloat(u[0]));break;case"destroy":this.destroy(l)}}}const Qu="ng-animate-queued",Da="ng-animate-disabled",Am=[],sd={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ad={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Po="__ng_removed";class cd{get params(){return this.options.params}constructor(l,o=""){this.namespaceId=o;const c=l&&l.hasOwnProperty("value");if(this.value=function Is(h){return h??null}(c?l.value:l),c){const p=Gr(l);delete p.value,this.options=p}else this.options={};this.options.params||(this.options.params={})}absorbOptions(l){const o=l.params;if(o){const c=this.options.params;Object.keys(o).forEach(u=>{null==c[u]&&(c[u]=o[u])})}}}const Ta="void",ld=new cd(Ta);class Im{constructor(l,o,c){this.id=l,this.hostElement=o,this._engine=c,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+l,yi(o,this._hostClassName)}listen(l,o,c,u){if(!this._triggers.has(o))throw function Au(h,l){return new i.vHH(3302,!1)}();if(null==c||0==c.length)throw function Wl(h){return new i.vHH(3303,!1)}();if(!function vr(h){return"start"==h||"done"==h}(c))throw function ys(h,l){return new i.vHH(3400,!1)}();const p=no(this._elementListeners,l,[]),D={name:o,phase:c,callback:u};p.push(D);const q=no(this._engine.statesByElement,l,new Map);return q.has(o)||(yi(l,Kl),yi(l,Kl+"-"+o),q.set(o,ld)),()=>{this._engine.afterFlush(()=>{const fe=p.indexOf(D);fe>=0&&p.splice(fe,1),this._triggers.has(o)||q.delete(o)})}}register(l,o){return!this._triggers.has(l)&&(this._triggers.set(l,o),!0)}_getTrigger(l){const o=this._triggers.get(l);if(!o)throw function ws(h){return new i.vHH(3401,!1)}();return o}trigger(l,o,c,u=!0){const p=this._getTrigger(o),D=new dd(this.id,o,l);let q=this._engine.statesByElement.get(l);q||(yi(l,Kl),yi(l,Kl+"-"+o),this._engine.statesByElement.set(l,q=new Map));let fe=q.get(o);const ye=new cd(c,this.id);if(!(c&&c.hasOwnProperty("value"))&&fe&&ye.absorbOptions(fe.options),q.set(o,ye),fe||(fe=ld),ye.value!==Ta&&fe.value===ye.value){if(!function ih(h,l){const o=Object.keys(h),c=Object.keys(l);if(o.length!=c.length)return!1;for(let u=0;u<o.length;u++){const p=o[u];if(!l.hasOwnProperty(p)||h[p]!==l[p])return!1}return!0}(fe.params,ye.params)){const Dt=[],Gt=p.matchStyles(fe.value,fe.params,Dt),Fn=p.matchStyles(ye.value,ye.params,Dt);Dt.length?this._engine.reportError(Dt):this._engine.afterFlush(()=>{Wr(l,Gt),Hi(l,Fn)})}return}const ut=no(this._engine.playersByElement,l,[]);ut.forEach(Dt=>{Dt.namespaceId==this.id&&Dt.triggerName==o&&Dt.queued&&Dt.destroy()});let pt=p.matchTransition(fe.value,ye.value,l,ye.params),_t=!1;if(!pt){if(!u)return;pt=p.fallbackTransition,_t=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:o,transition:pt,fromState:fe,toState:ye,player:D,isFallbackTransition:_t}),_t||(yi(l,Qu),D.onStart(()=>{Ea(l,Qu)})),D.onDone(()=>{let Dt=this.players.indexOf(D);Dt>=0&&this.players.splice(Dt,1);const Gt=this._engine.playersByElement.get(l);if(Gt){let Fn=Gt.indexOf(D);Fn>=0&&Gt.splice(Fn,1)}}),this.players.push(D),ut.push(D),D}deregister(l){this._triggers.delete(l),this._engine.statesByElement.forEach(o=>o.delete(l)),this._elementListeners.forEach((o,c)=>{this._elementListeners.set(c,o.filter(u=>u.name!=l))})}clearElementCache(l){this._engine.statesByElement.delete(l),this._elementListeners.delete(l);const o=this._engine.playersByElement.get(l);o&&(o.forEach(c=>c.destroy()),this._engine.playersByElement.delete(l))}_signalRemovalForInnerTriggers(l,o){const c=this._engine.driver.query(l,ma,!0);c.forEach(u=>{if(u[Po])return;const p=this._engine.fetchNamespacesByElement(u);p.size?p.forEach(D=>D.triggerLeaveAnimation(u,o,!1,!0)):this.clearElementCache(u)}),this._engine.afterFlushAnimationsDone(()=>c.forEach(u=>this.clearElementCache(u)))}triggerLeaveAnimation(l,o,c,u){const p=this._engine.statesByElement.get(l),D=new Map;if(p){const q=[];if(p.forEach((fe,ye)=>{if(D.set(ye,fe.value),this._triggers.has(ye)){const Le=this.trigger(l,ye,Ta,u);Le&&q.push(Le)}}),q.length)return this._engine.markElementAsRemoved(this.id,l,!0,o,D),c&&Hr(q).onDone(()=>this._engine.processLeaveNode(l)),!0}return!1}prepareLeaveAnimationListeners(l){const o=this._elementListeners.get(l),c=this._engine.statesByElement.get(l);if(o&&c){const u=new Set;o.forEach(p=>{const D=p.name;if(u.has(D))return;u.add(D);const fe=this._triggers.get(D).fallbackTransition,ye=c.get(D)||ld,Le=new cd(Ta),Ye=new dd(this.id,D,l);this._engine.totalQueuedPlayers++,this._queue.push({element:l,triggerName:D,transition:fe,fromState:ye,toState:Le,player:Ye,isFallbackTransition:!0})})}}removeNode(l,o){const c=this._engine;if(l.childElementCount&&this._signalRemovalForInnerTriggers(l,o),this.triggerLeaveAnimation(l,o,!0))return;let u=!1;if(c.totalAnimations){const p=c.players.length?c.playersByQueriedElement.get(l):[];if(p&&p.length)u=!0;else{let D=l;for(;D=D.parentNode;)if(c.statesByElement.get(D)){u=!0;break}}}if(this.prepareLeaveAnimationListeners(l),u)c.markElementAsRemoved(this.id,l,!1,o);else{const p=l[Po];(!p||p===sd)&&(c.afterFlush(()=>this.clearElementCache(l)),c.destroyInnerAnimations(l),c._onRemovalComplete(l,o))}}insertNode(l,o){yi(l,this._hostClassName)}drainQueuedTransitions(l){const o=[];return this._queue.forEach(c=>{const u=c.player;if(u.destroyed)return;const p=c.element,D=this._elementListeners.get(p);D&&D.forEach(q=>{if(q.name==c.triggerName){const fe=ku(p,c.triggerName,c.fromState.value,c.toState.value);fe._data=l,Ou(c.player,q.phase,fe,q.callback)}}),u.markedForDestroy?this._engine.afterFlush(()=>{u.destroy()}):o.push(c)}),this._queue=[],o.sort((c,u)=>{const p=c.transition.ast.depCount,D=u.transition.ast.depCount;return 0==p||0==D?p-D:this._engine.driver.containsElement(c.element,u.element)?1:-1})}destroy(l){this.players.forEach(o=>o.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,l)}}class Om{_onRemovalComplete(l,o){this.onRemovalComplete(l,o)}constructor(l,o,c){this.bodyNode=l,this.driver=o,this._normalizer=c,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(u,p)=>{}}get queuedPlayers(){const l=[];return this._namespaceList.forEach(o=>{o.players.forEach(c=>{c.queued&&l.push(c)})}),l}createNamespace(l,o){const c=new Im(l,o,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,o)?this._balanceNamespaceList(c,o):(this.newHostElements.set(o,c),this.collectEnterElement(o)),this._namespaceLookup[l]=c}_balanceNamespaceList(l,o){const c=this._namespaceList,u=this.namespacesByHostElement;if(c.length-1>=0){let D=!1,q=this.driver.getParentElement(o);for(;q;){const fe=u.get(q);if(fe){const ye=c.indexOf(fe);c.splice(ye+1,0,l),D=!0;break}q=this.driver.getParentElement(q)}D||c.unshift(l)}else c.push(l);return u.set(o,l),l}register(l,o){let c=this._namespaceLookup[l];return c||(c=this.createNamespace(l,o)),c}registerTrigger(l,o,c){let u=this._namespaceLookup[l];u&&u.register(o,c)&&this.totalAnimations++}destroy(l,o){l&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{const c=this._fetchNamespace(l);this.namespacesByHostElement.delete(c.hostElement);const u=this._namespaceList.indexOf(c);u>=0&&this._namespaceList.splice(u,1),c.destroy(o),delete this._namespaceLookup[l]}))}_fetchNamespace(l){return this._namespaceLookup[l]}fetchNamespacesByElement(l){const o=new Set,c=this.statesByElement.get(l);if(c)for(let u of c.values())if(u.namespaceId){const p=this._fetchNamespace(u.namespaceId);p&&o.add(p)}return o}trigger(l,o,c,u){if(vi(o)){const p=this._fetchNamespace(l);if(p)return p.trigger(o,c,u),!0}return!1}insertNode(l,o,c,u){if(!vi(o))return;const p=o[Po];if(p&&p.setForRemoval){p.setForRemoval=!1,p.setForMove=!0;const D=this.collectedLeaveElements.indexOf(o);D>=0&&this.collectedLeaveElements.splice(D,1)}if(l){const D=this._fetchNamespace(l);D&&D.insertNode(o,c)}u&&this.collectEnterElement(o)}collectEnterElement(l){this.collectedEnterElements.push(l)}markElementAsDisabled(l,o){o?this.disabledNodes.has(l)||(this.disabledNodes.add(l),yi(l,Da)):this.disabledNodes.has(l)&&(this.disabledNodes.delete(l),Ea(l,Da))}removeNode(l,o,c){if(vi(o)){const u=l?this._fetchNamespace(l):null;u?u.removeNode(o,c):this.markElementAsRemoved(l,o,!1,c);const p=this.namespacesByHostElement.get(o);p&&p.id!==l&&p.removeNode(o,c)}else this._onRemovalComplete(o,c)}markElementAsRemoved(l,o,c,u,p){this.collectedLeaveElements.push(o),o[Po]={namespaceId:l,setForRemoval:u,hasAnimation:c,removedBeforeQueried:!1,previousTriggersValues:p}}listen(l,o,c,u,p){return vi(o)?this._fetchNamespace(l).listen(o,c,u,p):()=>{}}_buildInstruction(l,o,c,u,p){return l.transition.build(this.driver,l.element,l.fromState.value,l.toState.value,c,u,l.fromState.options,l.toState.options,o,p)}destroyInnerAnimations(l){let o=this.driver.query(l,ma,!0);o.forEach(c=>this.destroyActiveAnimationsForElement(c)),0!=this.playersByQueriedElement.size&&(o=this.driver.query(l,Zl,!0),o.forEach(c=>this.finishActiveQueriedAnimationOnElement(c)))}destroyActiveAnimationsForElement(l){const o=this.playersByElement.get(l);o&&o.forEach(c=>{c.queued?c.markedForDestroy=!0:c.destroy()})}finishActiveQueriedAnimationOnElement(l){const o=this.playersByQueriedElement.get(l);o&&o.forEach(c=>c.finish())}whenRenderingDone(){return new Promise(l=>{if(this.players.length)return Hr(this.players).onDone(()=>l());l()})}processLeaveNode(l){const o=l[Po];if(o&&o.setForRemoval){if(l[Po]=sd,o.namespaceId){this.destroyInnerAnimations(l);const c=this._fetchNamespace(o.namespaceId);c&&c.clearElementCache(l)}this._onRemovalComplete(l,o.setForRemoval)}l.classList?.contains(Da)&&this.markElementAsDisabled(l,!1),this.driver.query(l,".ng-animate-disabled",!0).forEach(c=>{this.markElementAsDisabled(c,!1)})}flush(l=-1){let o=[];if(this.newHostElements.size&&(this.newHostElements.forEach((c,u)=>this._balanceNamespaceList(c,u)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let c=0;c<this.collectedEnterElements.length;c++)yi(this.collectedEnterElements[c],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const c=[];try{o=this._flushAnimations(c,l)}finally{for(let u=0;u<c.length;u++)c[u]()}}else for(let c=0;c<this.collectedLeaveElements.length;c++)this.processLeaveNode(this.collectedLeaveElements[c]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(c=>c()),this._flushFns=[],this._whenQuietFns.length){const c=this._whenQuietFns;this._whenQuietFns=[],o.length?Hr(o).onDone(()=>{c.forEach(u=>u())}):c.forEach(u=>u())}}reportError(l){throw function Cs(h){return new i.vHH(3402,!1)}()}_flushAnimations(l,o){const c=new Tc,u=[],p=new Map,D=[],q=new Map,fe=new Map,ye=new Map,Le=new Set;this.disabledNodes.forEach(Mt=>{Le.add(Mt);const Pt=this.driver.query(Mt,".ng-animate-queued",!0);for(let Vt=0;Vt<Pt.length;Vt++)Le.add(Pt[Vt])});const Ye=this.bodyNode,ut=Array.from(this.statesByElement.keys()),pt=Jo(ut,this.collectedEnterElements),_t=new Map;let Dt=0;pt.forEach((Mt,Pt)=>{const Vt=fa+Dt++;_t.set(Pt,Vt),Mt.forEach(sn=>yi(sn,Vt))});const Gt=[],Fn=new Set,ri=new Set;for(let Mt=0;Mt<this.collectedLeaveElements.length;Mt++){const Pt=this.collectedLeaveElements[Mt],Vt=Pt[Po];Vt&&Vt.setForRemoval&&(Gt.push(Pt),Fn.add(Pt),Vt.hasAnimation?this.driver.query(Pt,".ng-star-inserted",!0).forEach(sn=>Fn.add(sn)):ri.add(Pt))}const Ti=new Map,fi=Jo(ut,Array.from(Fn));fi.forEach((Mt,Pt)=>{const Vt=Zo+Dt++;Ti.set(Pt,Vt),Mt.forEach(sn=>yi(sn,Vt))}),l.push(()=>{pt.forEach((Mt,Pt)=>{const Vt=_t.get(Pt);Mt.forEach(sn=>Ea(sn,Vt))}),fi.forEach((Mt,Pt)=>{const Vt=Ti.get(Pt);Mt.forEach(sn=>Ea(sn,Vt))}),Gt.forEach(Mt=>{this.processLeaveNode(Mt)})});const Ns=[],Ro=[];for(let Mt=this._namespaceList.length-1;Mt>=0;Mt--)this._namespaceList[Mt].drainQueuedTransitions(o).forEach(Vt=>{const sn=Vt.player,Ln=Vt.element;if(Ns.push(sn),this.collectedEnterElements.length){const ai=Ln[Po];if(ai&&ai.setForMove){if(ai.previousTriggersValues&&ai.previousTriggersValues.has(Vt.triggerName)){const bo=ai.previousTriggersValues.get(Vt.triggerName),oo=this.statesByElement.get(Vt.element);if(oo&&oo.has(Vt.triggerName)){const Ba=oo.get(Vt.triggerName);Ba.value=bo,oo.set(Vt.triggerName,Ba)}}return void sn.destroy()}}const zi=!Ye||!this.driver.containsElement(Ye,Ln),si=Ti.get(Ln),No=_t.get(Ln),In=this._buildInstruction(Vt,c,No,si,zi);if(In.errors&&In.errors.length)return void Ro.push(In);if(zi)return sn.onStart(()=>Wr(Ln,In.fromStyles)),sn.onDestroy(()=>Hi(Ln,In.toStyles)),void u.push(sn);if(Vt.isFallbackTransition)return sn.onStart(()=>Wr(Ln,In.fromStyles)),sn.onDestroy(()=>Hi(Ln,In.toStyles)),void u.push(sn);const La=[];In.timelines.forEach(ai=>{ai.stretchStartingKeyframe=!0,this.disabledNodes.has(ai.element)||La.push(ai)}),In.timelines=La,c.append(Ln,In.timelines),D.push({instruction:In,player:sn,element:Ln}),In.queriedElements.forEach(ai=>no(q,ai,[]).push(sn)),In.preStyleProps.forEach((ai,bo)=>{if(ai.size){let oo=fe.get(bo);oo||fe.set(bo,oo=new Set),ai.forEach((Ba,kd)=>oo.add(kd))}}),In.postStyleProps.forEach((ai,bo)=>{let oo=ye.get(bo);oo||ye.set(bo,oo=new Set),ai.forEach((Ba,kd)=>oo.add(kd))})});if(Ro.length){const Mt=[];Ro.forEach(Pt=>{Mt.push(function Yl(h,l){return new i.vHH(3505,!1)}())}),Ns.forEach(Pt=>Pt.destroy()),this.reportError(Mt)}const Ii=new Map,yr=new Map;D.forEach(Mt=>{const Pt=Mt.element;c.has(Pt)&&(yr.set(Pt,Pt),this._beforeAnimationBuild(Mt.player.namespaceId,Mt.instruction,Ii))}),u.forEach(Mt=>{const Pt=Mt.element;this._getPreviousPlayers(Pt,!1,Mt.namespaceId,Mt.triggerName,null).forEach(sn=>{no(Ii,Pt,[]).push(sn),sn.destroy()})});const Ui=Gt.filter(Mt=>Pm(Mt,fe,ye)),er=new Map;ud(er,this.driver,ri,ye,ce.l3).forEach(Mt=>{Pm(Mt,fe,ye)&&Ui.push(Mt)});const Gc=new Map;pt.forEach((Mt,Pt)=>{ud(Gc,this.driver,new Set(Mt),fe,ce.k1)}),Ui.forEach(Mt=>{const Pt=er.get(Mt),Vt=Gc.get(Mt);er.set(Mt,new Map([...Pt?.entries()??[],...Vt?.entries()??[]]))});const Fo=[],Nh=[],Wc={};D.forEach(Mt=>{const{element:Pt,player:Vt,instruction:sn}=Mt;if(c.has(Pt)){if(Le.has(Pt))return Vt.onDestroy(()=>Hi(Pt,sn.toStyles)),Vt.disabled=!0,Vt.overrideTotalTime(sn.totalTime),void u.push(Vt);let Ln=Wc;if(yr.size>1){let si=Pt;const No=[];for(;si=si.parentNode;){const In=yr.get(si);if(In){Ln=In;break}No.push(si)}No.forEach(In=>yr.set(In,Ln))}const zi=this._buildAnimation(Vt.namespaceId,sn,Ii,p,Gc,er);if(Vt.setRealPlayer(zi),Ln===Wc)Fo.push(Vt);else{const si=this.playersByElement.get(Ln);si&&si.length&&(Vt.parentPlayer=Hr(si)),u.push(Vt)}}else Wr(Pt,sn.fromStyles),Vt.onDestroy(()=>Hi(Pt,sn.toStyles)),Nh.push(Vt),Le.has(Pt)&&u.push(Vt)}),Nh.forEach(Mt=>{const Pt=p.get(Mt.element);if(Pt&&Pt.length){const Vt=Hr(Pt);Mt.setRealPlayer(Vt)}}),u.forEach(Mt=>{Mt.parentPlayer?Mt.syncPlayerEvents(Mt.parentPlayer):Mt.destroy()});for(let Mt=0;Mt<Gt.length;Mt++){const Pt=Gt[Mt],Vt=Pt[Po];if(Ea(Pt,Zo),Vt&&Vt.hasAnimation)continue;let sn=[];if(q.size){let zi=q.get(Pt);zi&&zi.length&&sn.push(...zi);let si=this.driver.query(Pt,Zl,!0);for(let No=0;No<si.length;No++){let In=q.get(si[No]);In&&In.length&&sn.push(...In)}}const Ln=sn.filter(zi=>!zi.destroyed);Ln.length?Ac(this,Pt,Ln):this.processLeaveNode(Pt)}return Gt.length=0,Fo.forEach(Mt=>{this.players.push(Mt),Mt.onDone(()=>{Mt.destroy();const Pt=this.players.indexOf(Mt);this.players.splice(Pt,1)}),Mt.play()}),Fo}afterFlush(l){this._flushFns.push(l)}afterFlushAnimationsDone(l){this._whenQuietFns.push(l)}_getPreviousPlayers(l,o,c,u,p){let D=[];if(o){const q=this.playersByQueriedElement.get(l);q&&(D=q)}else{const q=this.playersByElement.get(l);if(q){const fe=!p||p==Ta;q.forEach(ye=>{ye.queued||!fe&&ye.triggerName!=u||D.push(ye)})}}return(c||u)&&(D=D.filter(q=>!(c&&c!=q.namespaceId||u&&u!=q.triggerName))),D}_beforeAnimationBuild(l,o,c){const p=o.element,D=o.isRemovalTransition?void 0:l,q=o.isRemovalTransition?void 0:o.triggerName;for(const fe of o.timelines){const ye=fe.element,Le=ye!==p,Ye=no(c,ye,[]);this._getPreviousPlayers(ye,Le,D,q,o.toState).forEach(pt=>{const _t=pt.getRealPlayer();_t.beforeDestroy&&_t.beforeDestroy(),pt.destroy(),Ye.push(pt)})}Wr(p,o.fromStyles)}_buildAnimation(l,o,c,u,p,D){const q=o.triggerName,fe=o.element,ye=[],Le=new Set,Ye=new Set,ut=o.timelines.map(_t=>{const Dt=_t.element;Le.add(Dt);const Gt=Dt[Po];if(Gt&&Gt.removedBeforeQueried)return new ce.ZN(_t.duration,_t.delay);const Fn=Dt!==fe,ri=function th(h){const l=[];return nh(h,l),l}((c.get(Dt)||Am).map(Ii=>Ii.getRealPlayer())).filter(Ii=>!!Ii.element&&Ii.element===Dt),Ti=p.get(Dt),fi=D.get(Dt),Ns=Iu(this._normalizer,_t.keyframes,Ti,fi),Ro=this._buildPlayer(_t,Ns,ri);if(_t.subTimeline&&u&&Ye.add(Dt),Fn){const Ii=new dd(l,q,Dt);Ii.setRealPlayer(Ro),ye.push(Ii)}return Ro});ye.forEach(_t=>{no(this.playersByQueriedElement,_t.element,[]).push(_t),_t.onDone(()=>function eh(h,l,o){let c=h.get(l);if(c){if(c.length){const u=c.indexOf(o);c.splice(u,1)}0==c.length&&h.delete(l)}return c}(this.playersByQueriedElement,_t.element,_t))}),Le.forEach(_t=>yi(_t,Fu));const pt=Hr(ut);return pt.onDestroy(()=>{Le.forEach(_t=>Ea(_t,Fu)),Hi(fe,o.toStyles)}),Ye.forEach(_t=>{no(u,_t,[]).push(pt)}),pt}_buildPlayer(l,o,c){return o.length>0?this.driver.animate(l.element,o,l.duration,l.delay,l.easing,c):new ce.ZN(l.duration,l.delay)}}class dd{constructor(l,o,c){this.namespaceId=l,this.triggerName=o,this.element=c,this._player=new ce.ZN,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.parentPlayer=null,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(l){this._containsRealPlayer||(this._player=l,this._queuedCallbacks.forEach((o,c)=>{o.forEach(u=>Ou(l,c,void 0,u))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(l.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(l){this.totalTime=l}syncPlayerEvents(l){const o=this._player;o.triggerCallback&&l.onStart(()=>o.triggerCallback("start")),l.onDone(()=>this.finish()),l.onDestroy(()=>this.destroy())}_queueEvent(l,o){no(this._queuedCallbacks,l,[]).push(o)}onDone(l){this.queued&&this._queueEvent("done",l),this._player.onDone(l)}onStart(l){this.queued&&this._queueEvent("start",l),this._player.onStart(l)}onDestroy(l){this.queued&&this._queueEvent("destroy",l),this._player.onDestroy(l)}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(l){this.queued||this._player.setPosition(l)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(l){const o=this._player;o.triggerCallback&&o.triggerCallback(l)}}function vi(h){return h&&1===h.nodeType}function Sc(h,l){const o=h.style.display;return h.style.display=l??"none",o}function ud(h,l,o,c,u){const p=[];o.forEach(fe=>p.push(Sc(fe)));const D=[];c.forEach((fe,ye)=>{const Le=new Map;fe.forEach(Ye=>{const ut=l.computeStyle(ye,Ye,u);Le.set(Ye,ut),(!ut||0==ut.length)&&(ye[Po]=ad,D.push(ye))}),h.set(ye,Le)});let q=0;return o.forEach(fe=>Sc(fe,p[q++])),D}function Jo(h,l){const o=new Map;if(h.forEach(q=>o.set(q,[])),0==l.length)return o;const u=new Set(l),p=new Map;function D(q){if(!q)return 1;let fe=p.get(q);if(fe)return fe;const ye=q.parentNode;return fe=o.has(ye)?ye:u.has(ye)?1:D(ye),p.set(q,fe),fe}return l.forEach(q=>{const fe=D(q);1!==fe&&o.get(fe).push(q)}),o}function yi(h,l){h.classList?.add(l)}function Ea(h,l){h.classList?.remove(l)}function Ac(h,l,o){Hr(o).onDone(()=>h.processLeaveNode(l))}function nh(h,l){for(let o=0;o<h.length;o++){const c=h[o];c instanceof ce.ZE?nh(c.players,l):l.push(c)}}function Pm(h,l,o){const c=o.get(h);if(!c)return!1;let u=l.get(h);return u?c.forEach(p=>u.add(p)):l.set(h,c),o.delete(h),!0}class Os{constructor(l,o,c){this._driver=o,this._normalizer=c,this._triggerCache={},this.onRemovalComplete=(u,p)=>{},this._transitionEngine=new Om(l.body,o,c),this._timelineEngine=new xa(l.body,o,c),this._transitionEngine.onRemovalComplete=(u,p)=>this.onRemovalComplete(u,p)}registerTrigger(l,o,c,u,p){const D=l+"-"+u;let q=this._triggerCache[D];if(!q){const fe=[],Le=Cc(this._driver,p,fe,[]);if(fe.length)throw function vs(h,l){return new i.vHH(3404,!1)}();q=function io(h,l,o){return new rd(h,l,o)}(u,Le,this._normalizer),this._triggerCache[D]=q}this._transitionEngine.registerTrigger(o,u,q)}register(l,o){this._transitionEngine.register(l,o)}destroy(l,o){this._transitionEngine.destroy(l,o)}onInsert(l,o,c,u){this._transitionEngine.insertNode(l,o,c,u)}onRemove(l,o,c){this._transitionEngine.removeNode(l,o,c)}disableAnimations(l,o){this._transitionEngine.markElementAsDisabled(l,o)}process(l,o,c,u){if("@"==c.charAt(0)){const[p,D]=dm(c);this._timelineEngine.command(p,o,D,u)}else this._transitionEngine.trigger(l,o,c,u)}listen(l,o,c,u,p){if("@"==c.charAt(0)){const[D,q]=dm(c);return this._timelineEngine.listen(D,o,q,p)}return this._transitionEngine.listen(l,o,c,u,p)}flush(l=-1){this._transitionEngine.flush(l)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(l){this._transitionEngine.afterFlushAnimationsDone(l)}}let km=(()=>{class h{static#e=this.initialStylesByElement=new WeakMap;constructor(o,c,u){this._element=o,this._startStyles=c,this._endStyles=u,this._state=0;let p=h.initialStylesByElement.get(o);p||h.initialStylesByElement.set(o,p=new Map),this._initialStyles=p}start(){this._state<1&&(this._startStyles&&Hi(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Hi(this._element,this._initialStyles),this._endStyles&&(Hi(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(h.initialStylesByElement.delete(this._element),this._startStyles&&(Wr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Wr(this._element,this._endStyles),this._endStyles=null),Hi(this._element,this._initialStyles),this._state=3)}}return h})();function hd(h){let l=null;return h.forEach((o,c)=>{(function fd(h){return"display"===h||"position"===h})(c)&&(l=l||new Map,l.set(c,o))}),l}class Rm{constructor(l,o,c,u){this.element=l,this.keyframes=o,this.options=c,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=c.duration,this._delay=c.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(l=>l()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const l=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,l,this.options),this._finalKeyframe=l.length?l[l.length-1]:new Map;const o=()=>this._onFinish();this.domPlayer.addEventListener("finish",o),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",o)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(l){const o=[];return l.forEach(c=>{o.push(Object.fromEntries(c))}),o}_triggerWebAnimation(l,o,c){return l.animate(this._convertKeyframesToObject(o),c)}onStart(l){this._originalOnStartFns.push(l),this._onStartFns.push(l)}onDone(l){this._originalOnDoneFns.push(l),this._onDoneFns.push(l)}onDestroy(l){this._onDestroyFns.push(l)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(l=>l()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(l=>l()),this._onDestroyFns=[])}setPosition(l){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=l*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const l=new Map;this.hasStarted()&&this._finalKeyframe.forEach((c,u)=>{"offset"!==u&&l.set(u,this._finished?c:bm(this.element,u))}),this.currentSnapshot=l}triggerCallback(l){const o="start"===l?this._onStartFns:this._onDoneFns;o.forEach(c=>c()),o.length=0}}class Fm{validateStyleProperty(l){return!0}validateAnimatableStyleProperty(l){return!0}matchesElement(l,o){return!1}containsElement(l,o){return Di(l,o)}getParentElement(l){return mr(l)}query(l,o,c){return Ur(l,o,c)}computeStyle(l,o,c){return window.getComputedStyle(l)[o]}animate(l,o,c,u,p,D=[]){const fe={duration:c,delay:u,fill:0==u?"both":"forwards"};p&&(fe.easing=p);const ye=new Map,Le=D.filter(pt=>pt instanceof Rm);(function k_(h,l){return 0===h||0===l})(c,u)&&Le.forEach(pt=>{pt.currentSnapshot.forEach((_t,Dt)=>ye.set(Dt,_t))});let Ye=function _m(h){return h.length?h[0]instanceof Map?h:h.map(l=>pa(l)):[]}(o).map(pt=>pr(pt));Ye=function Nu(h,l,o){if(o.size&&l.length){let c=l[0],u=[];if(o.forEach((p,D)=>{c.has(D)||u.push(D),c.set(D,p)}),u.length)for(let p=1;p<l.length;p++){let D=l[p];u.forEach(q=>D.set(q,bm(h,q)))}}return l}(l,Ye,ye);const ut=function L_(h,l){let o=null,c=null;return Array.isArray(l)&&l.length?(o=hd(l[0]),l.length>1&&(c=hd(l[l.length-1]))):l instanceof Map&&(o=hd(l)),o||c?new km(h,o,c):null}(l,Ye);return new Rm(l,Ye,fe,ut)}}const Nm="@.disabled";class Lm{constructor(l,o,c,u){this.namespaceId=l,this.delegate=o,this.engine=c,this._onDestroy=u,this.\u0275type=0}get data(){return this.delegate.data}destroyNode(l){this.delegate.destroyNode?.(l)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(l,o){return this.delegate.createElement(l,o)}createComment(l){return this.delegate.createComment(l)}createText(l){return this.delegate.createText(l)}appendChild(l,o){this.delegate.appendChild(l,o),this.engine.onInsert(this.namespaceId,o,l,!1)}insertBefore(l,o,c,u=!0){this.delegate.insertBefore(l,o,c),this.engine.onInsert(this.namespaceId,o,l,u)}removeChild(l,o,c){this.engine.onRemove(this.namespaceId,o,this.delegate)}selectRootElement(l,o){return this.delegate.selectRootElement(l,o)}parentNode(l){return this.delegate.parentNode(l)}nextSibling(l){return this.delegate.nextSibling(l)}setAttribute(l,o,c,u){this.delegate.setAttribute(l,o,c,u)}removeAttribute(l,o,c){this.delegate.removeAttribute(l,o,c)}addClass(l,o){this.delegate.addClass(l,o)}removeClass(l,o){this.delegate.removeClass(l,o)}setStyle(l,o,c,u){this.delegate.setStyle(l,o,c,u)}removeStyle(l,o,c){this.delegate.removeStyle(l,o,c)}setProperty(l,o,c){"@"==o.charAt(0)&&o==Nm?this.disableAnimations(l,!!c):this.delegate.setProperty(l,o,c)}setValue(l,o){this.delegate.setValue(l,o)}listen(l,o,c){return this.delegate.listen(l,o,c)}disableAnimations(l,o){this.engine.disableAnimations(l,o)}}class B_ extends Lm{constructor(l,o,c,u,p){super(o,c,u,p),this.factory=l,this.namespaceId=o}setProperty(l,o,c){"@"==o.charAt(0)?"."==o.charAt(1)&&o==Nm?this.disableAnimations(l,c=void 0===c||!!c):this.engine.process(this.namespaceId,l,o.slice(1),c):this.delegate.setProperty(l,o,c)}listen(l,o,c){if("@"==o.charAt(0)){const u=function Bm(h){switch(h){case"body":return document.body;case"document":return document;case"window":return window;default:return h}}(l);let p=o.slice(1),D="";return"@"!=p.charAt(0)&&([p,D]=function Ic(h){const l=h.indexOf(".");return[h.substring(0,l),h.slice(l+1)]}(p)),this.engine.listen(this.namespaceId,u,p,D,q=>{this.factory.scheduleListenerCallback(q._data||-1,c,q)})}return this.delegate.listen(l,o,c)}}class Oc{constructor(l,o,c){this.delegate=l,this.engine=o,this._zone=c,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,o.onRemovalComplete=(u,p)=>{const D=p?.parentNode(u);D&&p.removeChild(D,u)}}createRenderer(l,o){const u=this.delegate.createRenderer(l,o);if(!l||!o?.data?.animation){const ye=this._rendererCache;let Le=ye.get(u);return Le||(Le=new Lm("",u,this.engine,()=>ye.delete(u)),ye.set(u,Le)),Le}const p=o.id,D=o.id+"-"+this._currentId;this._currentId++,this.engine.register(D,l);const q=ye=>{Array.isArray(ye)?ye.forEach(q):this.engine.registerTrigger(p,D,l,ye.name,ye)};return o.data.animation.forEach(q),new B_(this,D,u,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(l,o,c){if(l>=0&&l<this._microtaskId)return void this._zone.run(()=>o(c));const u=this._animationCallbacksBuffer;0==u.length&&queueMicrotask(()=>{this._zone.run(()=>{u.forEach(p=>{const[D,q]=p;D(q)}),this._animationCallbacksBuffer=[]})}),u.push([o,c])}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()}}const Ps=[{provide:ha,useFactory:function rh(){return new Lu}},{provide:Os,useClass:(()=>{class h extends Os{constructor(o,c,u,p){super(o,c,u)}ngOnDestroy(){this.flush()}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(T.K0),i.LFG(zr),i.LFG(ha),i.LFG(i.z2F))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac})}return h})()},{provide:i.FYo,useFactory:function sh(h,l,o){return new Oc(h,l,o)},deps:[a.se,Os,i.R0b]}],gd=[{provide:zr,useFactory:()=>new Fm},{provide:i.QbO,useValue:"BrowserAnimations"},...Ps],_d=[{provide:zr,useClass:Ds},{provide:i.QbO,useValue:"NoopAnimations"},...Ps];let ah=(()=>{class h{static withConfig(o){return{ngModule:h,providers:o.disableAnimations?_d:gd}}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h});static#n=this.\u0275inj=i.cJS({providers:gd,imports:[a.b2]})}return h})();var Pc=b(9309),wd=b(534),Vm=b(6086);const Cd=["toast-component",""];function xd(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"button",5),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.remove())}),i.TgZ(1,"span",6),i._uU(2,"\xd7"),i.qZA()()}}function $m(h,l){if(1&h&&(i.ynx(0),i._uU(1),i.BQk()),2&h){const o=i.oxw(2);i.xp6(1),i.hij("[",o.duplicatesCount+1,"]")}}function Hm(h,l){if(1&h&&(i.TgZ(0,"div"),i._uU(1),i.YNc(2,$m,2,1,"ng-container",4),i.qZA()),2&h){const o=i.oxw();i.Tol(o.options.titleClass),i.uIk("aria-label",o.title),i.xp6(1),i.hij(" ",o.title," "),i.xp6(1),i.Q6J("ngIf",o.duplicatesCount)}}function jm(h,l){if(1&h&&i._UZ(0,"div",7),2&h){const o=i.oxw();i.Tol(o.options.messageClass),i.Q6J("innerHTML",o.message,i.oJD)}}function ch(h,l){if(1&h&&(i.TgZ(0,"div",8),i._uU(1),i.qZA()),2&h){const o=i.oxw();i.Tol(o.options.messageClass),i.uIk("aria-label",o.message),i.xp6(1),i.hij(" ",o.message," ")}}function Um(h,l){if(1&h&&(i.TgZ(0,"div"),i._UZ(1,"div",9),i.qZA()),2&h){const o=i.oxw();i.xp6(1),i.Udp("width",o.width+"%")}}class dh{_attachedHost;component;viewContainerRef;injector;constructor(l,o){this.component=l,this.injector=o}attach(l,o){return this._attachedHost=l,l.attach(this,o)}detach(){const l=this._attachedHost;if(l)return this._attachedHost=void 0,l.detach()}get isAttached(){return null!=this._attachedHost}setAttachedHost(l){this._attachedHost=l}}class uh{_attachedPortal;_disposeFn;attach(l,o){return this._attachedPortal=l,this.attachComponentPortal(l,o)}detach(){this._attachedPortal&&this._attachedPortal.setAttachedHost(),this._attachedPortal=void 0,this._disposeFn&&(this._disposeFn(),this._disposeFn=void 0)}setDisposeFn(l){this._disposeFn=l}}class Gm{_overlayRef;componentInstance;duplicatesCount=0;_afterClosed=new k.x;_activate=new k.x;_manualClose=new k.x;_resetTimeout=new k.x;_countDuplicate=new k.x;constructor(l){this._overlayRef=l}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(l,o){l&&this._resetTimeout.next(),o&&this._countDuplicate.next(++this.duplicatesCount)}}class Ma{toastId;config;message;title;toastType;toastRef;_onTap=new k.x;_onAction=new k.x;constructor(l,o,c,u,p,D){this.toastId=l,this.config=o,this.message=c,this.title=u,this.toastType=p,this.toastRef=D,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(l){this._onAction.next(l)}onAction(){return this._onAction.asObservable()}}const Ed=new i.OlP("ToastConfig");class Wm extends uh{_hostDomElement;_componentFactoryResolver;_appRef;constructor(l,o,c){super(),this._hostDomElement=l,this._componentFactoryResolver=o,this._appRef=c}attachComponentPortal(l,o){const c=this._componentFactoryResolver.resolveComponentFactory(l.component);let u;return u=c.create(l.injector),this._appRef.attachView(u.hostView),this.setDisposeFn(()=>{this._appRef.detachView(u.hostView),u.destroy()}),o?this._hostDomElement.insertBefore(this._getComponentRootNode(u),this._hostDomElement.firstChild):this._hostDomElement.appendChild(this._getComponentRootNode(u)),u}_getComponentRootNode(l){return l.hostView.rootNodes[0]}}let fh=(()=>{class h{_document=(0,i.f3M)(T.K0);_containerElement;ngOnDestroy(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const o=this._document.createElement("div");o.classList.add("overlay-container"),o.setAttribute("aria-live","polite"),this._document.body.appendChild(o),this._containerElement=o}static \u0275fac=function(c){return new(c||h)};static \u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();class Ym{_portalHost;constructor(l){this._portalHost=l}attach(l,o=!0){return this._portalHost.attach(l,o)}detach(){return this._portalHost.detach()}}let Km=(()=>{class h{_overlayContainer=(0,i.f3M)(fh);_componentFactoryResolver=(0,i.f3M)(i._Vd);_appRef=(0,i.f3M)(i.z2F);_document=(0,i.f3M)(T.K0);_paneElements=new Map;create(o,c){return this._createOverlayRef(this.getPaneElement(o,c))}getPaneElement(o="",c){return this._paneElements.get(c)||this._paneElements.set(c,{}),this._paneElements.get(c)[o]||(this._paneElements.get(c)[o]=this._createPaneElement(o,c)),this._paneElements.get(c)[o]}_createPaneElement(o,c){const u=this._document.createElement("div");return u.id="toast-container",u.classList.add(o),u.classList.add("toast-container"),c?c.getContainerElement().appendChild(u):this._overlayContainer.getContainerElement().appendChild(u),u}_createPortalHost(o){return new Wm(o,this._componentFactoryResolver,this._appRef)}_createOverlayRef(o){return new Ym(this._createPortalHost(o))}static \u0275fac=function(c){return new(c||h)};static \u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),Sa=(()=>{class h{overlay;_injector;sanitizer;ngZone;toastrConfig;currentlyActive=0;toasts=[];overlayContainer;previousToastMessage;index=0;constructor(o,c,u,p,D){this.overlay=c,this._injector=u,this.sanitizer=p,this.ngZone=D,this.toastrConfig={...o.default,...o.config},o.config.iconClasses&&(this.toastrConfig.iconClasses={...o.default.iconClasses,...o.config.iconClasses})}show(o,c,u={},p=""){return this._preBuildNotification(p,o,c,this.applyConfig(u))}success(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.success||"",o,c,this.applyConfig(u))}error(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.error||"",o,c,this.applyConfig(u))}info(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.info||"",o,c,this.applyConfig(u))}warning(o,c,u={}){return this._preBuildNotification(this.toastrConfig.iconClasses.warning||"",o,c,this.applyConfig(u))}clear(o){for(const c of this.toasts)if(void 0!==o){if(c.toastId===o)return void c.toastRef.manualClose()}else c.toastRef.manualClose()}remove(o){const c=this._findToast(o);if(!c||(c.activeToast.toastRef.close(),this.toasts.splice(c.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 u=this.toasts[this.currentlyActive].toastRef;u.isInactive()||(this.currentlyActive=this.currentlyActive+1,u.activate())}return!0}findDuplicate(o="",c="",u,p){const{includeTitleDuplicates:D}=this.toastrConfig;for(const q of this.toasts)if((!D||D&&q.title===o)&&q.message===c)return q.toastRef.onDuplicate(u,p),q;return null}applyConfig(o={}){return{...this.toastrConfig,...o}}_findToast(o){for(let c=0;c<this.toasts.length;c++)if(this.toasts[c].toastId===o)return{index:c,activeToast:this.toasts[c]};return null}_preBuildNotification(o,c,u,p){return p.onActivateTick?this.ngZone.run(()=>this._buildNotification(o,c,u,p)):this._buildNotification(o,c,u,p)}_buildNotification(o,c,u,p){if(!p.toastComponent)throw new Error("toastComponent required");const D=this.findDuplicate(u,c,this.toastrConfig.resetTimeoutOnDuplicate&&p.timeOut>0,this.toastrConfig.countDuplicates);if((this.toastrConfig.includeTitleDuplicates&&u||c)&&this.toastrConfig.preventDuplicates&&null!==D)return D;this.previousToastMessage=c;let q=!1;this.toastrConfig.maxOpened&&this.currentlyActive>=this.toastrConfig.maxOpened&&(q=!0,this.toastrConfig.autoDismiss&&this.clear(this.toasts[0].toastId));const fe=this.overlay.create(p.positionClass,this.overlayContainer);this.index=this.index+1;let ye=c;c&&p.enableHtml&&(ye=this.sanitizer.sanitize(i.q3G.HTML,c));const Le=new Gm(fe),Ye=new Ma(this.index,p,ye,u,o,Le),pt=i.zs3.create({providers:[{provide:Ma,useValue:Ye}],parent:this._injector}),_t=new dh(p.toastComponent,pt),Dt=fe.attach(_t,p.newestOnTop);Le.componentInstance=Dt.instance;const Gt={toastId:this.index,title:u||"",message:c||"",toastRef:Le,onShown:Le.afterActivate(),onHidden:Le.afterClosed(),onTap:Ye.onTap(),onAction:Ye.onAction(),portal:Dt};return q||(this.currentlyActive=this.currentlyActive+1,setTimeout(()=>{Gt.toastRef.activate()})),this.toasts.push(Gt),Gt}static \u0275fac=function(c){return new(c||h)(i.LFG(Ed),i.LFG(Km),i.LFG(i.zs3),i.LFG(a.H7),i.LFG(i.R0b))};static \u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})();const Zm={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",toastComponent:(()=>{class h{toastrService;toastPackage;ngZone;message;title;options;duplicatesCount;originalTimeout;width=-1;toastClasses="";state;get displayStyle(){if("inactive"===this.state.value)return"none"}timeout;intervalId;hideTime;sub;sub1;sub2;sub3;constructor(o,c,u){this.toastrService=o,this.toastPackage=c,this.ngZone=u,this.message=c.message,this.title=c.title,this.options=c.config,this.originalTimeout=c.config.timeOut,this.toastClasses=`${c.toastType} ${c.config.toastClass}`,this.sub=c.toastRef.afterActivate().subscribe(()=>{this.activateToast()}),this.sub1=c.toastRef.manualClosed().subscribe(()=>{this.remove()}),this.sub2=c.toastRef.timeoutReset().subscribe(()=>{this.resetTimeout()}),this.sub3=c.toastRef.countDuplicate().subscribe(p=>{this.duplicatesCount=p}),this.state={value:"inactive",params:{easeTime:this.toastPackage.config.easeTime,easing:"ease-in"}}}ngOnDestroy(){this.sub.unsubscribe(),this.sub1.unsubscribe(),this.sub2.unsubscribe(),this.sub3.unsubscribe(),clearInterval(this.intervalId),clearTimeout(this.timeout)}activateToast(){this.state={...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 o=(new Date).getTime();this.width=(this.hideTime-o)/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={...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={...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&&"extendedTimeOut"!==this.options.disableTimeOut&&(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(o,c){this.ngZone?this.ngZone.runOutsideAngular(()=>this.timeout=setTimeout(()=>this.runInsideAngular(o),c)):this.timeout=setTimeout(()=>o(),c)}outsideInterval(o,c){this.ngZone?this.ngZone.runOutsideAngular(()=>this.intervalId=setInterval(()=>this.runInsideAngular(o),c)):this.intervalId=setInterval(()=>o(),c)}runInsideAngular(o){this.ngZone?this.ngZone.run(()=>o()):o()}static \u0275fac=function(c){return new(c||h)(i.Y36(Sa),i.Y36(Ma),i.Y36(i.R0b))};static \u0275cmp=i.Xpm({type:h,selectors:[["","toast-component",""]],hostVars:5,hostBindings:function(c,u){1&c&&i.NdJ("click",function(){return u.tapToast()})("mouseenter",function(){return u.stickAround()})("mouseleave",function(){return u.delayedHideToast()}),2&c&&(i.d8E("@flyInOut",u.state),i.Tol(u.toastClasses),i.Udp("display",u.displayStyle))},standalone:!0,features:[i.jDz],attrs:Cd,decls:5,vars:5,consts:[["type","button","class","toast-close-button","aria-label","Close",3,"click",4,"ngIf"],[3,"class",4,"ngIf"],["role","alert",3,"class","innerHTML",4,"ngIf"],["role","alert",3,"class",4,"ngIf"],[4,"ngIf"],["type","button","aria-label","Close",1,"toast-close-button",3,"click"],["aria-hidden","true"],["role","alert",3,"innerHTML"],["role","alert"],[1,"toast-progress"]],template:function(c,u){1&c&&i.YNc(0,xd,3,0,"button",0)(1,Hm,3,5,"div",1)(2,jm,1,3,"div",2)(3,ch,2,4,"div",3)(4,Um,2,2,"div",4),2&c&&(i.Q6J("ngIf",u.options.closeButton),i.xp6(1),i.Q6J("ngIf",u.title),i.xp6(1),i.Q6J("ngIf",u.message&&u.options.enableHtml),i.xp6(1),i.Q6J("ngIf",u.message&&!u.options.enableHtml),i.xp6(1),i.Q6J("ngIf",u.options.progressBar))},dependencies:[T.O5],encapsulation:2,data:{animation:[(0,ce.X$)("flyInOut",[(0,ce.SB)("inactive",(0,ce.oB)({opacity:0})),(0,ce.SB)("active",(0,ce.oB)({opacity:1})),(0,ce.SB)("removed",(0,ce.oB)({opacity:0})),(0,ce.eR)("inactive => active",(0,ce.jt)("{{ easeTime }}ms {{ easing }}")),(0,ce.eR)("active => removed",(0,ce.jt)("{{ easeTime }}ms {{ easing }}"))])]}})}return h})()},Aa=(h={})=>(0,i.MR2)([{provide:Ed,useValue:{default:Zm,config:h}}]);let qm=(()=>{class h{static forRoot(o={}){return{ngModule:h,providers:[Aa(o)]}}static \u0275fac=function(c){return new(c||h)};static \u0275mod=i.oAB({type:h});static \u0275inj=i.cJS({})}return h})();var ks=b(5626),Rc=b(551),ph=b(8258),Fc=b(5402),Ia=b(3084),Nc=b(5747),ep=b(5046),Oa=b(3855),tp=b(2311),gh=b(5861),ft=b(6068);let Pa=(()=>{class h{constructor(){this.version="0.0.0"}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-dialog-about"]],decls:21,vars:2,consts:[["mat-dialog-title",""],["role","list"],[3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1"],[1,"links"],["href","https://sdkgen.github.io/","rel","external noreferer","target","_blank","mat-stroked-button",""],["href","https://github.com/sdkgen/sdkgen","rel","external noreferer","target","_blank","mat-stroked-button",""],["href","https://github.com/sdkgen/sdkgen/issues/new","rel","external noreferer","target","_blank","mat-stroked-button",""]],template:function(c,u){1&c&&(i.TgZ(0,"header")(1,"h1",0),i._uU(2,"sdkgen Playground"),i.qZA(),i.TgZ(3,"mat-chip-set",1)(4,"mat-chip",2),i._uU(5),i.qZA()(),i._UZ(6,"s"),i.TgZ(7,"button",3)(8,"mat-icon"),i._uU(9,"close"),i.qZA()()(),i.TgZ(10,"p"),i._uU(11,"Ferramenta para explorar e invocar APIs feitas com sdkgen."),i.qZA(),i.TgZ(12,"p"),i._uU(13,"Feito com \u2764\ufe0f no Brasil \u{1f1e7}\u{1f1f7}"),i.qZA(),i.TgZ(14,"div",4)(15,"a",5),i._uU(16,"Documenta\xe7\xe3o"),i.qZA(),i.TgZ(17,"a",6),i._uU(18,"C\xf3digo-fonte"),i.qZA(),i.TgZ(19,"a",7),i._uU(20," Reportar um problema "),i.qZA()()),2&c&&(i.xp6(4),i.Q6J("disableRipple",!0),i.xp6(1),i.Oqu(u.version))},dependencies:[v.zs,v.RK,hi,qe,Ji,Ja,_i.Hw],styles:["header[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid rgba(255,255,255,.2)}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], header[_ngcontent-%COMP%] button[_ngcontent-%COMP%], header[_ngcontent-%COMP%] mat-chip-list[_ngcontent-%COMP%]{display:inline;align-self:center}header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{display:flex;margin:0 10px 0 0;padding:0}header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:20px}a[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}.links[_ngcontent-%COMP%]{display:flex;flex-direction:row}"]})}return h})();function Lc(h,l){1&h&&(i.ynx(0),i.TgZ(1,"mat-icon",6),i._uU(2,"loop"),i.qZA(),i.BQk())}function Md(h,l){1&h&&(i.ynx(0),i.TgZ(1,"mat-icon"),i._uU(2,"arrow_forward"),i.qZA(),i.BQk())}let np=(()=>{class h{constructor(o,c,u){this.sdkgen=o,this.toastr=c,this.dialog=u,this.loading=!1,this.url=new Q.NI("")}ngOnInit(){fetch("/ast.json").then(o=>{o.ok&&(this.url.setValue(`${window.location.protocol}//${window.location.host}`),this.loadUrl())}).catch(()=>{})}loadUrl(o){var c=this;return(0,gh.Z)(function*(){o?.preventDefault();try{c.loading=!0,/^https?:\/\//.test(c.url.value)||c.url.setValue(`https://${c.url.value}`);const u=new URL(c.url.value);u.pathname+=(u.pathname.endsWith("/")?"":"/")+"ast.json";const p=u.toString();console.debug("astUrl",p);const D=yield fetch(p).then(function(){var q=(0,gh.Z)(function*(fe){return fe.ok?fe.json():fe});return function(fe){return q.apply(this,arguments)}}());if(D instanceof Response)throw D instanceof Error?D:new Error(D.statusText);if(!D.errors||!D.functionTable||!D.typeTable)throw new Error("Invalid AST");for(;typeof monaco>"u";)console.log("monaco"),yield new Promise(q=>setTimeout(q,250));console.debug("astJson",D),c.sdkgen.state$.next({astJson:D,astRoot:(0,ft.jsonToAst)(D),url:c.url.value})}catch(u){c.toastr.error(u instanceof Error?u.message:JSON.stringify(u),"Erro ao carregar AST",{positionClass:"toast-bottom-right"})}finally{c.loading=!1}})()}openAbout(){this.dialog.open(Pa)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Oa.G),i.Y36(Sa),i.Y36(Sn))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-tab-nav"]],decls:9,vars:6,consts:[["src","assets/polvinho.png"],[3,"submit"],["placeholder","Digite uma URL aqui para conectar",3,"formControl","readonly"],["mat-ripple","","type","submit",3,"disabled","ngSwitch"],[4,"ngSwitchCase"],["mat-ripple","",1,"about-button",3,"click"],[1,"loader"]],template:function(c,u){1&c&&(i._UZ(0,"img",0),i.TgZ(1,"form",1),i.NdJ("submit",function(D){return u.loadUrl(D)}),i._UZ(2,"input",2),i.TgZ(3,"button",3),i.YNc(4,Lc,3,0,"ng-container",4)(5,Md,3,0,"ng-container",4),i.qZA()(),i.TgZ(6,"button",5),i.NdJ("click",function(){return u.openAbout()}),i.TgZ(7,"mat-icon"),i._uU(8,"info"),i.qZA()()),2&c&&(i.xp6(2),i.Q6J("formControl",u.url)("readonly",u.loading),i.xp6(1),i.Q6J("disabled",u.loading)("ngSwitch",u.loading),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1))},dependencies:[T.RF,T.n9,Q._Y,Q.Fj,Q.JJ,Q.JL,Q.F,Q.oH,_i.Hw,S.wG],styles:["[_nghost-%COMP%]{display:flex;height:42px;background-color:#2b2b2b;box-shadow:0 0 3px #00000080}img[_ngcontent-%COMP%]{padding:5px}form[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-grow:1;box-shadow:0 0 1px #00000080;background:#383838;border:0 none;border-radius:5px;margin:5px 10vw 5px calc(10vw - 42px);overflow:hidden}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex-grow:1;padding:10px 5px;background:transparent;border:0 none;text-align:center;color:#ccc}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background:transparent;color:#bfbfbf;border:0 none;cursor:pointer;line-height:10px}form[_ngcontent-%COMP%] button[_ngcontent-%COMP%] .loader[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_spin 2s linear infinite}button.about-button[_ngcontent-%COMP%]{width:42px;height:42px;border:0;border-radius:0;padding:0;background:transparent;cursor:pointer;color:inherit;line-height:0;text-align:center}@keyframes _ngcontent-%COMP%_spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}"]})}return h})();var ip=b(3101);const Bc={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.",DecimalPrimitiveType:"Um n\xfamero inteiro ou fracionado representado por d\xedgitos decimais e com precis\xe3o din\xe2mica. \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?."},bh={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"],DecimalPrimitiveType:["100","-10.35","0.00498375617834","3864958512342567"],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}']};function ko(h){switch(h.constructor){case ft.StringPrimitiveType:return"StringPrimitiveType";case ft.IntPrimitiveType:return"IntPrimitiveType";case ft.UIntPrimitiveType:return"UIntPrimitiveType";case ft.FloatPrimitiveType:return"FloatPrimitiveType";case ft.BigIntPrimitiveType:return"BigIntPrimitiveType";case ft.MoneyPrimitiveType:return"MoneyPrimitiveType";case ft.DecimalPrimitiveType:return"DecimalPrimitiveType";case ft.DatePrimitiveType:return"DatePrimitiveType";case ft.DateTimePrimitiveType:return"DateTimePrimitiveType";case ft.BoolPrimitiveType:return"BoolPrimitiveType";case ft.VoidPrimitiveType:return"VoidPrimitiveType";case ft.CpfPrimitiveType:return"CpfPrimitiveType";case ft.CnpjPrimitiveType:return"CnpjPrimitiveType";case ft.EmailPrimitiveType:return"EmailPrimitiveType";case ft.UrlPrimitiveType:return"UrlPrimitiveType";case ft.UuidPrimitiveType:return"UuidPrimitiveType";case ft.HexPrimitiveType:return"HexPrimitiveType";case ft.HtmlPrimitiveType:return"HtmlPrimitiveType";case ft.BytesPrimitiveType:return"BytesPrimitiveType";case ft.Base64PrimitiveType:return"Base64PrimitiveType";case ft.XmlPrimitiveType:return"XmlPrimitiveType";case ft.JsonPrimitiveType:return"JsonPrimitiveType";case ft.OptionalType:return"OptionalType";case ft.EnumType:return"EnumType";case ft.ArrayType:return"ArrayType";case ft.StructType:return"StructType";default:return h.constructor.name}}function ka(h){const l=[];switch(h.constructor){case ft.StringPrimitiveType:case ft.IntPrimitiveType:case ft.UIntPrimitiveType:case ft.FloatPrimitiveType:case ft.BigIntPrimitiveType:case ft.MoneyPrimitiveType:case ft.DecimalPrimitiveType:case ft.DatePrimitiveType:case ft.DateTimePrimitiveType:case ft.BoolPrimitiveType:case ft.VoidPrimitiveType:case ft.CpfPrimitiveType:case ft.CnpjPrimitiveType:case ft.EmailPrimitiveType:case ft.UrlPrimitiveType:case ft.UuidPrimitiveType:case ft.HexPrimitiveType:case ft.HtmlPrimitiveType:case ft.BytesPrimitiveType:case ft.Base64PrimitiveType:case ft.XmlPrimitiveType:case ft.JsonPrimitiveType:l.push("Primitivo");break;case ft.OptionalType:l.push("Opcional"),l.push(...ka(h.base));break;case ft.TypeReference:l.push(...ka(h.type));break;case ft.ArrayType:l.push("Array"),l.push(...ka(h.base));break;case ft.EnumType:l.push("Enum");break;default:console.error("No labels for",ko(h))}return l}function Zr(h){switch(h.constructor){case ft.StringPrimitiveType:case ft.IntPrimitiveType:case ft.UIntPrimitiveType:case ft.FloatPrimitiveType:case ft.BigIntPrimitiveType:case ft.MoneyPrimitiveType:case ft.DecimalPrimitiveType:case ft.DatePrimitiveType:case ft.DateTimePrimitiveType:case ft.BoolPrimitiveType:case ft.VoidPrimitiveType:case ft.CpfPrimitiveType:case ft.CnpjPrimitiveType:case ft.EmailPrimitiveType:case ft.UrlPrimitiveType:case ft.UuidPrimitiveType:case ft.HexPrimitiveType:case ft.HtmlPrimitiveType:case ft.BytesPrimitiveType:case ft.Base64PrimitiveType:case ft.XmlPrimitiveType:case ft.JsonPrimitiveType:return{longDescription:Bc[ko(h)],shortDescription:Bc[ko(h)],examples:bh[ko(h)]};case ft.OptionalType:{const u=Zr(h.base);return{...u,longDescription:u.longDescription,shortDescription:`(opcional) ${u.shortDescription}`,examples:["null",...u.examples??[]]}}case ft.TypeReference:return Zr(h.type);case ft.ArrayType:{const u=Zr(h.base);return{...u,longDescription:u.longDescription,shortDescription:`(array) ${u.shortDescription}`,examples:["[]",...u.examples?.map(p=>`[${p}]`)??[]]}}case ft.EnumType:const l=h,o=l.values.slice(0,3),c=o.map(u=>u.struct?`${u.value}: ${JSON.stringify((new Oa.G).buildJsonObject(u.struct.fields),null,2)}`:u.value);return{longDescription:"enum representa um conjunto limitado de possibilidades de valores, similar as enumera\xe7\xf5es em outras linguagens.",shortDescription:`(enum) ${o.map(u=>`${u.value}${u.struct?"(\u2026)":""}`).join(", ")}${o.length>3?"\u2026":""}`,examples:c,isEnum:!0,isStruct:!0,structFields:l.values.map(u=>({name:u.value,type:u.struct,description:u.annotations.find(p=>p instanceof ft.DescriptionAnnotation)?.text,secret:!1}))};case ft.StructType:return{longDescription:"",shortDescription:`(objeto complexo) ${h.fields.slice(0,3).map(u=>u.name).join(", ")}\u2026`,isStruct:!0,structFields:h.fields.map(u=>({name:u.name,description:u.annotations.find(p=>p instanceof ft.DescriptionAnnotation)?.text,type:u.type,secret:u.secret})),examples:[JSON.stringify((new Oa.G).buildJsonObject(h.fields),null,2)]};default:return{longDescription:"BUG: Unknown Type",shortDescription:"BUG: Unknown Type",examples:[]}}}function op(h,l){1&h&&(i.TgZ(0,"button",6)(1,"mat-icon"),i._uU(2,"arrow_back"),i.qZA()())}function $_(h,l){if(1&h&&(i.TgZ(0,"mat-chip",7),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.Q6J("disableRipple",!0),i.xp6(1),i.Oqu(o)}}function Vc(h,l){1&h&&(i.TgZ(0,"button",8)(1,"mat-icon"),i._uU(2,"close"),i.qZA()())}function rp(h,l){if(1&h&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&h){const o=i.oxw();i.xp6(1),i.Oqu(null==o.typeDoc?null:o.typeDoc.longDescription)}}function vh(h,l){1&h&&(i.TgZ(0,"th",20),i._uU(1,"Nome"),i.qZA())}function yh(h,l){if(1&h&&(i.TgZ(0,"td",21),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.name)}}function wh(h,l){1&h&&(i.TgZ(0,"th",20),i._uU(1,"Tipo"),i.qZA())}function Sd(h,l){1&h&&(i.TgZ(0,"span"),i._uU(1,"-"),i.qZA())}function Ch(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"u",25),i.NdJ("click",function(){i.CHM(o);const u=i.oxw().$implicit,p=i.oxw(2);return i.KtG(p.showDocumentation(u.type))}),i._uU(1),i.qZA()}if(2&h){const o=i.oxw().$implicit,c=i.oxw(2);i.Q6J("matTooltip",c.getTooltip(o.type)),i.xp6(1),i.Oqu(o.type.name)}}function $c(h,l){1&h&&(i.TgZ(0,"td",22),i.YNc(1,Sd,2,0,"span",23)(2,Ch,2,2,"u",24),i.qZA()),2&h&&(i.Q6J("ngSwitch",l.$implicit.type),i.xp6(1),i.Q6J("ngSwitchCase",null))}function Ra(h,l){1&h&&(i.TgZ(0,"th",20),i._uU(1,"Descri\xe7\xe3o"),i.qZA())}function xh(h,l){if(1&h&&(i.TgZ(0,"td",26),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.description||"-")}}function Ad(h,l){1&h&&i._UZ(0,"tr",27)}function Hc(h,l){1&h&&i._UZ(0,"tr",28)}const Dh=()=>[];function Id(h,l){if(1&h&&(i.TgZ(0,"section")(1,"div",9)(2,"table",10),i.ynx(3,11),i.YNc(4,vh,2,0,"th",12)(5,yh,2,1,"td",13),i.BQk(),i.ynx(6,14),i.YNc(7,wh,2,0,"th",12)(8,$c,3,2,"td",15),i.BQk(),i.ynx(9,16),i.YNc(10,Ra,2,0,"th",12)(11,xh,2,1,"td",17),i.BQk(),i.YNc(12,Ad,1,0,"tr",18)(13,Hc,1,0,"tr",19),i.qZA()()()),2&h){const o=i.oxw();let c;i.xp6(2),i.Q6J("dataSource",null!==(c=null==o.typeDoc?null:o.typeDoc.structFields)&&void 0!==c?c:i.DdM(3,Dh)),i.xp6(10),i.Q6J("matHeaderRowDef",o.argumentsTableColumns),i.xp6(1),i.Q6J("matRowDefColumns",o.argumentsTableColumns)}}function Fa(h,l){if(1&h&&(i.TgZ(0,"li")(1,"code",1),i._uU(2),i.qZA()()),2&h){const o=l.$implicit;i.xp6(2),i.Oqu(o)}}function sp(h,l){if(1&h&&(i.TgZ(0,"section")(1,"h3"),i._uU(2,"Exemplos"),i.qZA(),i.TgZ(3,"ul"),i.YNc(4,Fa,3,1,"li",29),i.qZA()()),2&h){const o=i.oxw();i.xp6(4),i.Q6J("ngForOf",null==o.typeDoc?null:o.typeDoc.examples)}}let Th=(()=>{class h{constructor(o,c,u){this.dialogRef=o,this.data=c,this.dialog=u,this.labels=[],this.argumentsTableColumns=["name","type","description"]}ngOnInit(){this.labels=ka(this.data.type),this.typeDoc=Zr(this.data.type)}getTooltip(o){return Zr(o).shortDescription}showDocumentation(o){this.dialog.open(h,{position:{right:"0"},data:{type:o,subdialog:!0},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(It),i.Y36(L),i.Y36(Sn))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-type-details"]],decls:10,vars:7,consts:[["class","back-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[1,"mono"],["role","list"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["class","close-button","mat-icon-button","","mat-dialog-close","","tabindex","-1",4,"ngIf"],[4,"ngIf"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"back-button"],["color","primary",3,"disableRipple"],["mat-icon-button","","mat-dialog-close","","tabindex","-1",1,"close-button"],[1,"table-responsive","mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["class","mono","mat-cell","",4,"matCellDef"],["matColumnDef","type"],["class","mono","mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","description"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",1,"mono"],["mat-cell","",1,"mono",3,"ngSwitch"],[4,"ngSwitchCase"],[3,"matTooltip","click",4,"ngSwitchDefault"],[3,"matTooltip","click"],["mat-cell",""],["mat-header-row",""],["mat-row",""],[4,"ngFor","ngForOf"]],template:function(c,u){1&c&&(i.TgZ(0,"h1"),i.YNc(1,op,3,0,"button",0),i.TgZ(2,"span",1),i._uU(3),i.qZA(),i.TgZ(4,"mat-chip-set",2),i.YNc(5,$_,2,2,"mat-chip",3),i.qZA(),i.YNc(6,Vc,3,0,"button",4),i.qZA(),i.YNc(7,rp,2,1,"p",5)(8,Id,14,4,"section",5)(9,sp,5,1,"section",5)),2&c&&(i.xp6(1),i.Q6J("ngIf",u.data.subdialog),i.xp6(2),i.Oqu(u.data.type.name),i.xp6(2),i.Q6J("ngForOf",u.labels),i.xp6(1),i.Q6J("ngIf",!u.data.subdialog),i.xp6(1),i.Q6J("ngIf",null==u.typeDoc?null:u.typeDoc.longDescription),i.xp6(1),i.Q6J("ngIf",(null==u.typeDoc?null:u.typeDoc.isStruct)&&(null==u.typeDoc?null:u.typeDoc.structFields)),i.xp6(1),i.Q6J("ngIf",null==u.typeDoc||null==u.typeDoc.examples?null:u.typeDoc.examples.length))},dependencies:[T.sg,T.O5,T.RF,T.n9,T.ED,v.RK,hi,qe,Ji,_i.Hw,Ll,ps,oi,ca,aa,xn,la,gs,cc,Bl,Vr],styles:["h1[_ngcontent-%COMP%]{font-weight:200;font-size:1.75rem;word-break:break-all;word-wrap:break-word;color:#fff}h1[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%]{display:inline-block;margin-left:10px;-webkit-user-select:none;user-select:none}h1[_ngcontent-%COMP%] mat-chip-set[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{text-transform:uppercase}h1[_ngcontent-%COMP%] mat-chip-set[_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:1rem}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%]{text-decoration-style:dotted;cursor:pointer}"]})}return h})();var ap=b(4515);let cp=(()=>{class h{constructor(o){this.observer=o}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)"])}static#e=this.\u0275fac=function(c){return new(c||h)(i.LFG(ap.Yg))};static#t=this.\u0275prov=i.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})}return h})(),lp=(()=>{class h{transform(o,c){if(!o)return[];if(!c)return o;const u=c.toLocaleLowerCase();return o.filter(p=>JSON.stringify(p).toLocaleLowerCase().includes(u))}static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275pipe=i.Yjl({name:"appFilter",type:h,pure:!0})}return h})();function Eh(h,l){if(1&h&&(i.TgZ(0,"span",8),i._uU(1),i.qZA()),2&h){const o=i.oxw().$implicit;i.xp6(1),i.Oqu(o.description)}}const Mh=h=>({active:h});function jc(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"li",5),i.NdJ("click",function(){const p=i.CHM(o).$implicit,D=i.oxw();return i.KtG(D.selectedFunction=p)}),i.TgZ(1,"span",6),i._uU(2),i.qZA(),i.YNc(3,Eh,2,1,"span",7),i.qZA()}if(2&h){const o=l.$implicit,c=i.oxw();i.Q6J("ngClass",i.VKq(3,Mh,(null==c.selectedFunction?null:c.selectedFunction.name)===o.name)),i.xp6(2),i.Oqu(o.name),i.xp6(1),i.Q6J("ngIf",o.description)}}function Od(h,l){1&h&&i._UZ(0,"span")}function Rs(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"span"),i._UZ(1,"br"),i._uU(2,"\xa0\xa0"),i.TgZ(3,"span",37),i._uU(4),i.qZA(),i.TgZ(5,"span",14),i._uU(6,":"),i.qZA(),i._uU(7,"\xa0"),i.TgZ(8,"u",15),i.NdJ("click",function(){const p=i.CHM(o).$implicit,D=i.oxw(2);return i.KtG(D.showDocumentation(p.rawType))}),i._uU(9),i.qZA(),i.YNc(10,Od,1,0,"span",38),i.qZA()}if(2&h){const o=l.$implicit,c=l.index;i.oxw();const u=i.MAs(18),p=i.MAs(20),D=i.oxw();i.xp6(4),i.Oqu(o.name),i.xp6(4),i.Q6J("matTooltip",D.getTooltip(o.rawType)),i.xp6(1),i.Oqu(o.type),i.xp6(1),i.Q6J("ngIf",c!=D.selectedFunction.args.length-1)("ngIfThen",u)("ngIfElse",p)}}function dp(h,l){1&h&&i._uU(0,",")}function up(h,l){1&h&&i._UZ(0,"br")}function H_(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"u",29),i.NdJ("click",function(){i.CHM(o);const u=i.oxw().$implicit,p=i.oxw(3);return i.KtG(p.showDocumentation(u.dataType))}),i._uU(1),i.qZA()}if(2&h){const o=i.oxw().$implicit,c=i.oxw(3);i.Q6J("matTooltip",c.getTooltip(o.dataType)),i.xp6(1),i.hij("(",o.dataType.name,")")}}function hp(h,l){if(1&h&&(i.TgZ(0,"mat-chip",42)(1,"span",43),i._uU(2),i.qZA(),i._UZ(3,"i"),i.TgZ(4,"span",44),i._uU(5),i.YNc(6,H_,2,2,"u",45),i.qZA()()),2&h){const o=l.$implicit;i.Q6J("disableRipple",!0),i.xp6(2),i.Oqu(o.name),i.xp6(3),i.hij("",o.type," "),i.xp6(1),i.Q6J("ngIf",o.dataType&&"void"!==o.dataType.name)}}function Uc(h,l){if(1&h&&(i.TgZ(0,"section",39)(1,"mat-chip-set",40),i.YNc(2,hp,7,4,"mat-chip",41),i.qZA()()),2&h){const o=i.oxw(2);i.xp6(2),i.Q6J("ngForOf",o.selectedFunction.labels)}}function Pd(h,l){if(1&h&&(i.TgZ(0,"p"),i._uU(1),i.qZA()),2&h){const o=i.oxw(2);i.xp6(1),i.Oqu(o.selectedFunction.description)}}function Sh(h,l){1&h&&(i.TgZ(0,"p",46),i._uU(1,"N\xe3o h\xe1 descri\xe7\xe3o para esta fun\xe7\xe3o."),i.qZA())}function Ah(h,l){1&h&&(i.TgZ(0,"p",46),i._uU(1,"Esta fun\xe7\xe3o n\xe3o possui argumentos."),i.qZA())}function Ih(h,l){1&h&&(i.TgZ(0,"th",56),i._uU(1,"Nome"),i.qZA())}function qr(h,l){if(1&h&&(i.TgZ(0,"td",57),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.name)}}function fp(h,l){1&h&&(i.TgZ(0,"th",56),i._uU(1,"Tipo"),i.qZA())}function mp(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"td",57)(1,"u",29),i.NdJ("click",function(){const p=i.CHM(o).$implicit,D=i.oxw(3);return i.KtG(D.showDocumentation(p.rawType))}),i._uU(2),i.qZA()()}if(2&h){const o=l.$implicit,c=i.oxw(3);i.xp6(1),i.Q6J("matTooltip",c.getTooltip(o.rawType)),i.xp6(1),i.Oqu(o.type)}}function pp(h,l){1&h&&(i.TgZ(0,"th",56),i._uU(1,"Descri\xe7\xe3o"),i.qZA())}function gp(h,l){if(1&h&&(i.TgZ(0,"td",58),i._uU(1),i.qZA()),2&h){const o=l.$implicit;i.xp6(1),i.Oqu(o.description||"-")}}function _p(h,l){1&h&&i._UZ(0,"tr",59)}function Qo(h,l){1&h&&i._UZ(0,"tr",60)}function Fs(h,l){if(1&h&&(i.TgZ(0,"table",47),i.ynx(1,48),i.YNc(2,Ih,2,0,"th",49)(3,qr,2,1,"td",50),i.BQk(),i.ynx(4,51),i.YNc(5,fp,2,0,"th",49)(6,mp,3,2,"td",50),i.BQk(),i.ynx(7,52),i.YNc(8,pp,2,0,"th",49)(9,gp,2,1,"td",53),i.BQk(),i.YNc(10,_p,1,0,"tr",54)(11,Qo,1,0,"tr",55),i.qZA()),2&h){const o=i.oxw(2);i.Q6J("dataSource",o.selectedFunction.args),i.xp6(10),i.Q6J("matHeaderRowDef",o.argumentsTableColumns),i.xp6(1),i.Q6J("matRowDefColumns",o.argumentsTableColumns)}}function bp(h,l){1&h&&(i.TgZ(0,"span",61),i._uU(1,"Dart"),i.qZA())}function vp(h,l){1&h&&(i.TgZ(0,"span",61),i._uU(1,"Swift"),i.qZA())}const yp=()=>({theme:"vs-dark",language:"javascript"}),wp=()=>({theme:"vs-dark",language:"kotlin"}),Cp=()=>({theme:"vs-dark",language:"dart"}),xp=()=>({theme:"vs-dark",language:"swift"});function Oh(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"article")(1,"header")(2,"h1",9)(3,"span",10)(4,"span",11),i._uU(5,"fn"),i.qZA(),i._uU(6,"\xa0"),i.TgZ(7,"span",12),i._uU(8),i.qZA(),i._uU(9,"("),i.YNc(10,Rs,11,6,"span",13),i._uU(11,")"),i.TgZ(12,"span",14),i._uU(13,":"),i.qZA(),i._uU(14,"\xa0"),i.TgZ(15,"u",15),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.showDocumentation(u.selectedFunction.returns.rawType))}),i._uU(16),i.qZA()(),i.YNc(17,dp,1,0,"ng-template",null,16,i.W1O)(19,up,1,0,"ng-template",null,17,i.W1O),i._UZ(21,"s"),i.TgZ(22,"button",18),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.addSimpleCallTab())}),i.TgZ(23,"mat-icon"),i._uU(24,"play_arrow"),i.qZA(),i._uU(25,"\xa0EXECUTAR "),i.qZA()()(),i.YNc(26,Uc,3,1,"section",19),i.TgZ(27,"section",9)(28,"h2",20),i._uU(29,"Descri\xe7\xe3o"),i.qZA(),i.TgZ(30,"div",21),i.YNc(31,Pd,2,1,"p",22)(32,Sh,2,0,"p",23),i.qZA(),i.TgZ(33,"h2",24),i._uU(34,"Par\xe2metros"),i.qZA(),i.TgZ(35,"div",21),i.YNc(36,Ah,2,0,"p",23),i.TgZ(37,"div",25),i.YNc(38,Fs,12,3,"table",26),i.qZA()(),i.TgZ(39,"h2",27),i._uU(40,"Retorno"),i.qZA(),i.TgZ(41,"div")(42,"p",28)(43,"u",29),i.NdJ("click",function(){i.CHM(o);const u=i.oxw();return i.KtG(u.showDocumentation(u.selectedFunction.returns.rawType))}),i._uU(44),i.qZA()()(),i.TgZ(45,"h2",30),i._uU(46,"Exemplo de Requisi\xe7\xe3o"),i.qZA(),i.TgZ(47,"mat-tab-group",31)(48,"mat-tab",32),i._UZ(49,"ngx-monaco-editor",33),i.qZA(),i.TgZ(50,"mat-tab",34),i._UZ(51,"ngx-monaco-editor",33),i.qZA(),i.TgZ(52,"mat-tab",35),i.YNc(53,bp,2,0,"ng-template",36),i._UZ(54,"ngx-monaco-editor",33),i.qZA(),i.TgZ(55,"mat-tab",35),i.YNc(56,vp,2,0,"ng-template",36),i._UZ(57,"ngx-monaco-editor",33),i.qZA()()()()}if(2&h){const o=i.oxw();i.xp6(8),i.Oqu(o.selectedFunction.name),i.xp6(2),i.Q6J("ngForOf",o.selectedFunction.args),i.xp6(5),i.Q6J("matTooltip",o.getTooltip(o.selectedFunction.returns.rawType)),i.xp6(1),i.Oqu(o.selectedFunction.returns.type),i.xp6(10),i.Q6J("ngIf",o.selectedFunction.labels.length>0),i.xp6(4),i.Q6J("ngSwitch",!!o.selectedFunction.description),i.xp6(1),i.Q6J("ngSwitchCase",!0),i.xp6(1),i.Q6J("ngSwitchCase",!1),i.xp6(3),i.Q6J("ngSwitch",o.selectedFunction.args.length),i.xp6(1),i.Q6J("ngSwitchCase",0),i.xp6(7),i.Q6J("matTooltip",o.getTooltip(o.selectedFunction.returns.rawType)),i.xp6(1),i.Oqu(o.selectedFunction.returns.type),i.xp6(5),i.Q6J("options",i.DdM(20,yp))("ngModel",o.selectedFunction.examples.typeScript),i.xp6(2),i.Q6J("options",i.DdM(21,wp))("ngModel",o.selectedFunction.examples.kotlin),i.xp6(3),i.Q6J("options",i.DdM(22,Cp))("ngModel",o.selectedFunction.examples.dart),i.xp6(3),i.Q6J("options",i.DdM(23,xp))("ngModel",o.selectedFunction.examples.swift)}}const Dp=()=>({standalone:!0});let Tp=(()=>{class h{constructor(o,c,u){this.sdkgen=o,this.dialog=c,this.responsive=u,this.isBelowMd=!1,this.runFunction=new i.vpe,this.searchText="",this.argumentsTableColumns=["name","type","description"],this.editorOptions={theme:"vs-dark",language:"javascript"}}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(o=>{o&&(this.selectedFunction=void 0,this.fnTable=o.astRoot.operations.sort((c,u)=>c.name.localeCompare(u.name)).map(c=>{const u=o.astJson.annotations[`fn.${c.name}`],p=this.sdkgen.buildJsonObject(c.args);return u?.find(D=>"hidden"===D.type)?null:{name:c.name,description:u?.find(D=>"description"===D.type)?.value,args:c.args.map(({name:D,type:q})=>{const fe=[...o.astJson.annotations[`type.${q.name}.${D}`]??[],...o.astJson.annotations[`fn.${c.name}.${D}`]??[]];return{name:D,description:fe.find(ye=>"description"===ye.type)?.value,type:q.name,rawType:q}}),argsStr:c.args.map(D=>`${D.name}: ${D.type.name}`).join(", "),argsFields:c.args,returns:{type:c.returnType.name,rawType:c.returnType},labels:u?.filter(D=>["rest","throws"].includes(D.type)).map(D=>"rest"===D.type?{name:"REST",type:`${D.value.method} ${D.value.path}`}:"throws"===D.type?{name:"THROWS",type:D.value,dataType:o.astRoot.errors.find(q=>q.name===D.value)?.dataType}:{name:"?",type:"?"})??[],throws:u?.find(D=>"throws"===D.type)?.value,examples:{typeScript:this.sdkgen.getTypeScriptCode(c.name,p),kotlin:this.sdkgen.getKotlinCode(c.name,c.args),dart:this.sdkgen.getDartCode(c.name,p),swift:this.sdkgen.getSwiftCode(c.name,p)}}}).filter(c=>!!c))})}ngOnDestroy(){this.state$?.unsubscribe(),this.responsive$?.unsubscribe()}ngAfterViewInit(){this.responsive$=this.responsive.isBelowMd().subscribe(o=>{this.isBelowMd=o.matches})}addSimpleCallTab(){this.runFunction.emit(this.selectedFunction?.name)}getTooltip(o){return Zr(o).shortDescription}showDocumentation(o){this.dialog.open(Th,{position:{right:"0",top:"0",bottom:"0"},data:{type:o},height:"100vh",panelClass:["dialog-no-border-radius","dialog-responsive"]})}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Oa.G),i.Y36(Sn),i.Y36(cp))};static#t=this.\u0275cmp=i.Xpm({type:h,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"],["mat-ripple","",3,"ngClass","click",4,"ngFor","ngForOf"],[4,"ngIf"],["mat-ripple","",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"],["role","list"],["color","primary",3,"disableRipple",4,"ngFor","ngForOf"],["color","primary",3,"disableRipple"],[1,"mono","bold"],[1,"mono","selectable"],[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(c,u){1&c&&(i.TgZ(0,"as-split",0)(1,"as-split-area",1)(2,"aside")(3,"nav")(4,"form")(5,"input",2),i.NdJ("ngModelChange",function(D){return u.searchText=D}),i.qZA()(),i.TgZ(6,"ul"),i.YNc(7,jc,4,5,"li",3),i.ALo(8,"appFilter"),i.qZA()()()(),i.TgZ(9,"as-split-area"),i.YNc(10,Oh,58,24,"article",4),i.qZA()()),2&c&&(i.Q6J("direction",u.isBelowMd?"vertical":"horizontal"),i.xp6(1),i.Q6J("size",u.isBelowMd?130:350),i.xp6(4),i.Q6J("ngModel",u.searchText)("ngModelOptions",i.DdM(9,Dp)),i.xp6(2),i.Q6J("ngForOf",i.xi3(8,6,u.fnTable,u.searchText)),i.xp6(3),i.Q6J("ngIf",u.selectedFunction))},dependencies:[T.mk,T.sg,T.O5,T.RF,T.n9,T.ED,Q._Y,Q.Fj,Q.JJ,Q.JL,Q.On,Q.F,Pc.T2,wd.Mq,wd.zE,v.lW,hi,qe,_i.Hw,S.wG,Ll,ps,oi,ca,aa,xn,la,gs,cc,Bl,Io.uD,Io.uX,Io.SP,Vr,lp],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;-webkit-user-select:none;user-select:none}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%]{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;font-size:1.75rem;line-height:36px;white-space:pre}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span.hide-overflow[_ngcontent-%COMP%]{text-overflow:ellipsis;overflow:hidden}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-fn[_ngcontent-%COMP%]{color:#c586c0}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-name[_ngcontent-%COMP%]{color:#dcdcaa}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-arg-name[_ngcontent-%COMP%]{color:#9cdcfe}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-sym[_ngcontent-%COMP%]{color:#d4d4d4}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] .k-type[_ngcontent-%COMP%]{color:#569cd6}article[_ngcontent-%COMP%] header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:130px;align-self:center}article[_ngcontent-%COMP%] section[_ngcontent-%COMP%]{display:block;padding:0 20px 15px}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%]{padding:20px 20px 0}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%]{display:flex;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%] .mat-mdc-chip-action-label{display:flex}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;width:.5px;background:#fff;margin:0 7.5px;border-radius:5px}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] .selectable[_ngcontent-%COMP%]{-webkit-user-select:text;user-select:text}article[_ngcontent-%COMP%] section#labels[_ngcontent-%COMP%] mat-chip[_ngcontent-%COMP%] .bold[_ngcontent-%COMP%]{font-weight:700}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}"]})}return h})();function Ep(h,l){1&h&&(i.ynx(0),i._uU(1,"Editor Avan\xe7ado"),i.BQk())}function Mp(h,l){if(1&h&&(i.ynx(0),i.TgZ(1,"span",21),i._uU(2),i.qZA(),i.BQk()),2&h){const o=i.oxw(2).$implicit;i.xp6(2),i.hij("\u25b6\xa0",o.function,"")}}function zc(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"span",18),i.YNc(1,Ep,2,0,"ng-container",19)(2,Mp,3,1,"ng-container",19),i.qZA(),i.TgZ(3,"button",20),i.NdJ("click",function(){i.CHM(o);const u=i.oxw().$implicit,p=i.oxw(2);return i.KtG(p.closeTab(u))}),i.TgZ(4,"mat-icon"),i._uU(5,"close"),i.qZA()()}if(2&h){const o=i.oxw().$implicit;i.Q6J("ngSwitch",o.type),i.xp6(1),i.Q6J("ngSwitchCase","advanced"),i.xp6(1),i.Q6J("ngSwitchCase","simple")}}function Xo(h,l){1&h&&(i.ynx(0),i._UZ(1,"app-tab-editor"),i.BQk())}function Na(h,l){if(1&h&&(i.ynx(0),i._UZ(1,"app-simple-call",22),i.BQk()),2&h){const o=i.oxw().$implicit;i.xp6(1),i.Q6J("fn",o.function)}}function Ph(h,l){if(1&h&&(i.TgZ(0,"mat-tab"),i.YNc(1,zc,6,3,"ng-template",16),i.ynx(2,18),i.YNc(3,Xo,2,0,"ng-container",19)(4,Na,2,1,"ng-container",19),i.BQk(),i.qZA()),2&h){const o=l.$implicit;i.xp6(2),i.Q6J("ngSwitch",o.type),i.xp6(1),i.Q6J("ngSwitchCase","advanced"),i.xp6(1),i.Q6J("ngSwitchCase","simple")}}function kh(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"button",23),i.NdJ("click",function(){i.CHM(o);const u=i.oxw(2);return i.KtG(u.addAdvancedTab())}),i.TgZ(1,"mat-icon"),i._uU(2,"add_circle"),i.qZA()()}}function Rh(h,l){if(1&h&&(i.TgZ(0,"button",24)(1,"mat-icon"),i._uU(2,"download"),i.qZA()()),2&h){i.oxw(2);const o=i.MAs(5);i.Q6J("matMenuTriggerFor",o)}}function j_(h,l){if(1&h){const o=i.EpF();i.TgZ(0,"mat-tab-group",11),i.NdJ("selectedIndexChange",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p.selected.setValue(u))}),i.TgZ(1,"mat-tab",12)(2,"app-tab-home",13),i.NdJ("runFunction",function(u){i.CHM(o);const p=i.oxw();return i.KtG(p.addSimpleTab(u))}),i.qZA()(),i.YNc(3,Ph,5,3,"mat-tab",14),i.TgZ(4,"mat-tab",15),i.YNc(5,kh,3,0,"ng-template",16),i.qZA(),i.TgZ(6,"mat-tab",17),i.YNc(7,Rh,3,1,"ng-template",16),i.qZA()()}if(2&h){const o=i.oxw();i.Q6J("selectedIndex",o.selected.value),i.xp6(3),i.Q6J("ngForOf",o.tabs)}}let U_=(()=>{class h{constructor(o,c,u){this.sdkgen=o,this.domSanitizer=c,this.matIconRegistry=u,this.selected=new Q.NI(0),this.tabs=[{id:0,type:"advanced"}],this.tabIndex=1;for(const p of["typescript","dot-net","kotlin","swift","dart"])this.matIconRegistry.addSvgIcon(p,this.domSanitizer.bypassSecurityTrustResourceUrl(`assets/${p}.svg`))}ngOnInit(){this.state$=this.sdkgen.state$.subscribe(o=>{this.state=o??void 0})}ngOnDestroy(){this.state$?.unsubscribe()}addSimpleTab(o){this.tabs.push({id:this.tabIndex++,function:o,type:"simple"}),this.selected.setValue(this.tabs.length)}addAdvancedTab(){this.tabs.push({id:this.tabIndex++,type:"advanced"}),this.selected.setValue(this.tabs.length)}closeTab(o){this.tabs.splice(this.tabs.indexOf(o),1),this.selected.setValue(0)}downloadTarget(o){if(!this.state)return;let c,u;switch(o){case"typescript_nodeserver":c=(0,Nc.generateNodeServerSource)(this.state.astRoot),u="node-server.ts";break;case"typescript_nodeclient":c=(0,Nc.generateNodeClientSource)(this.state.astRoot),u="node-client.ts";break;case"typescript_web":c=(0,Nc.generateBrowserClientSource)(this.state.astRoot),u="web-client.ts";break;case"typescript_interfaces":c=(0,Nc.generateTypescriptInterfaces)(this.state.astRoot),u="interfaces.ts";break;case"flutter":c=(0,Rc.generateDartClientSource)(this.state.astRoot),u="flutter-client.dart";break;case"csharp_server":c=(0,ks.generateCSharpServerSource)(this.state.astRoot),u="csharp-server.cs";break;case"fsharp_server":c=(0,ph.generateFSharpServerSource)(this.state.astRoot),u="fsharp-server.fs";break;case"kotlin_android":c=(0,Fc.generateAndroidClientSource)(this.state.astRoot,!0),u="android-client.kt";break;case"kotlin_android_without_callbacks":c=(0,Fc.generateAndroidClientSource)(this.state.astRoot,!1),u="android-client-no-callbacks.kt";break;case"swift_ios":c=(0,Ia.generateSwiftClientSource)(this.state.astRoot,!1),u="ios-client.swift";break;case"rxswift_ios":c=(0,Ia.generateSwiftClientSource)(this.state.astRoot,!0),u="ios-client-rx.swift"}(0,ep.saveAs)(new Blob([c],{type:"application/octet-stream"}),u)}static#e=this.\u0275fac=function(c){return new(c||h)(i.Y36(Oa.G),i.Y36(a.H7),i.Y36(_i.jv))};static#t=this.\u0275cmp=i.Xpm({type:h,selectors:[["app-root"]],decls:46,vars:3,consts:[[2,"width","0","height","0","opacity","0","display","block"],["id","main-tabs","animationDuration","150ms","mat-stretch-tabs","false",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","mat-stretch-tabs","false",3,"selectedIndex","selectedIndexChange"],["label","Documenta\xe7\xe3o"],[3,"runFunction"],[4,"ngFor","ngForOf"],["disabled","","labelClass","action-button"],["mat-tab-label",""],["disabled","","labelClass","right action-button"],[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(c,u){1&c&&(i._UZ(0,"ngx-monaco-editor",0)(1,"app-tab-nav"),i.YNc(2,j_,8,2,"mat-tab-group",1),i.ALo(3,"async"),i.TgZ(4,"mat-menu",null,2),i._UZ(6,"div",3),i.TgZ(7,"button",4),i._uU(8,"Cliente"),i.qZA(),i.TgZ(9,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_nodeclient")}),i._UZ(10,"mat-icon",6),i._uU(11,"Node.js"),i.qZA(),i.TgZ(12,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_web")}),i._UZ(13,"mat-icon",6),i._uU(14,"Web"),i.qZA(),i.TgZ(15,"button",5),i.NdJ("click",function(){return u.downloadTarget("flutter")}),i._UZ(16,"mat-icon",7),i._uU(17,"Flutter"),i.qZA(),i.TgZ(18,"button",5),i.NdJ("click",function(){return u.downloadTarget("kotlin_android")}),i._UZ(19,"mat-icon",8),i._uU(20,"Android"),i.qZA(),i.TgZ(21,"button",5),i.NdJ("click",function(){return u.downloadTarget("kotlin_android_without_callbacks")}),i._UZ(22,"mat-icon",8),i._uU(23,"Android (sem callbacks)"),i.qZA(),i.TgZ(24,"button",5),i.NdJ("click",function(){return u.downloadTarget("swift_ios")}),i._UZ(25,"mat-icon",9),i._uU(26,"iOS"),i.qZA(),i.TgZ(27,"button",5),i.NdJ("click",function(){return u.downloadTarget("rxswift_ios")}),i._UZ(28,"mat-icon",9),i._uU(29,"iOS (Rx)"),i.qZA(),i.TgZ(30,"button",4),i._uU(31,"Servidor"),i.qZA(),i.TgZ(32,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_nodeserver")}),i._UZ(33,"mat-icon",6),i._uU(34,"Node.js"),i.qZA(),i.TgZ(35,"button",5),i.NdJ("click",function(){return u.downloadTarget("csharp_server")}),i._UZ(36,"mat-icon",10),i._uU(37,"C#"),i.qZA(),i.TgZ(38,"button",5),i.NdJ("click",function(){return u.downloadTarget("fsharp_server")}),i._UZ(39,"mat-icon",10),i._uU(40,"F#"),i.qZA(),i.TgZ(41,"button",4),i._uU(42,"Outros"),i.qZA(),i.TgZ(43,"button",5),i.NdJ("click",function(){return u.downloadTarget("typescript_interfaces")}),i._UZ(44,"mat-icon",6),i._uU(45,"Interfaces"),i.qZA()()),2&c&&(i.xp6(2),i.Q6J("ngIf",i.lcZ(3,1,u.sdkgen.state$)))},dependencies:[T.sg,T.O5,T.RF,T.n9,Pc.T2,v.RK,_i.Hw,na,Lr,je,Io.uD,Io.uX,Io.SP,Vr,tp.Z,np,ip.I,Tp,T.Ov],styles:["[_nghost-%COMP%]{display:block;width:100%;height:100%} app-root mat-tab-group#main-tabs>mat-tab-header{border-bottom:1px solid rgba(255,255,255,.1215686275)} app-root mat-tab-group#main-tabs .mat-mdc-tab{--mat-tab-header-active-label-text-color: #fff;--mat-tab-header-active-focus-label-text-color: #fff;--mat-tab-header-active-hover-label-text-color: #fff;text-decoration:none;transition:all .2s ease;min-width:0;text-transform:uppercase;-webkit-user-select:none;user-select:none;letter-spacing:normal} app-root mat-tab-group#main-tabs .mat-mdc-tab.right{margin-left:auto} app-root mat-tab-group#main-tabs .mat-mdc-tab .mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:0} app-root mat-tab-group#main-tabs .mat-mdc-tab:hover .mdc-tab__ripple:before{opacity:0} app-root mat-tab-group#main-tabs .mat-mdc-tab:not(#mat-tab-label-0-0){padding-right:16px} app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button{padding:0;padding-right:0!important;opacity:1;pointer-events:auto} app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button .mdc-tab__content, app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button .mat-mdc-tab-ripple, app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button .mdc-tab__ripple:before{pointer-events:all} app-root mat-tab-group#main-tabs .mat-mdc-tab.action-button button{border-radius:0} app-root mat-tab-group#main-tabs .mat-mdc-tab:not(.mat-mdc-tab-disabled) button{border-radius:0;display:inline-block;margin-left:10px;padding:0;width:30px;height:30px;line-height:30px} app-root mat-tab-group#main-tabs .mat-mdc-tab:not(.mat-mdc-tab-disabled) button .mat-icon{width:20px;height:20px;font-size:20px;line-height:20px} app-root mat-tab-group#main-tabs .mat-mdc-tab .tab-icon svg, app-root mat-tab-group#main-tabs .mat-mdc-tab .tab-icon img, app-root mat-tab-group#main-tabs .mat-mdc-tab .tab-add-icon{display:flex;align-items:center;justify-content:center;width:1rem;margin-right:.5rem} app-root mat-tab-group#main-tabs .mat-mdc-tab-body-wrapper{flex-grow:1} app-root mat-tab-group#main-tabs .mat-mdc-tab-body-wrapper mat-tab-body mat-tab-body{flex-grow:1;overflow:hidden} #download-menu-size-flow{width:185px;display:block;max-width:90vw}"]})}return h})(),z_=(()=>{class h{static#e=this.\u0275fac=function(c){return new(c||h)};static#t=this.\u0275mod=i.oAB({type:h,bootstrap:[U_]});static#n=this.\u0275inj=i.cJS({providers:[{provide:Pc.F_,useValue:"assets/vs"}],imports:[a.b2,Q.u5,Q.UX,Pc.nm,ah,Vm.s,qm.forRoot(),wd.fX,te.JF,v.ot,en,mo,_i.Ps,tt,S.si,lc,Io.Nh,Hl]})}return h})();(0,i.G48)(),a.q6().bootstrapModule(z_).catch(h=>console.error(h))},1505:function(Ee,w,b){var a;!function(i){"use strict";var A,te=1e9,Q={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},v=!0,y="[DecimalError] ",T=y+"Invalid argument: ",S=y+"Exponent out of range: ",N=Math.floor,k=Math.pow,W=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,C=1e7,O=7,R=9007199254740991,ie=N(R/O),J={};function ce(le,re){var G,$,F,U,H,Z,de,ge,Ne=le.constructor,Be=Ne.precision;if(!le.s||!re.s)return re.s||(re=new Ne(le)),v?He(re,Be):re;if(ge=re.d,H=le.e,F=re.e,de=(de=le.d).slice(),U=H-F){for(U<0?($=de,U=-U,Z=ge.length):($=ge,F=H,Z=de.length),U>(Z=(H=Math.ceil(Be/O))>Z?H+1:Z+1)&&(U=Z,$.length=1),$.reverse();U--;)$.push(0);$.reverse()}for((Z=de.length)-(U=ge.length)<0&&(U=Z,$=ge,ge=de,de=$),G=0;U;)G=(de[--U]=de[U]+ge[U]+G)/C|0,de[U]%=C;for(G&&(de.unshift(G),++F),Z=de.length;0==de[--Z];)de.pop();return re.d=de,re.e=F,v?He(re,Be):re}function Fe(le,re,G){if(le!==~~le||le<re||le>G)throw Error(T+le)}function ze(le){var re,G,$,F=le.length-1,U="",H=le[0];if(F>0){for(U+=H,re=1;re<F;re++)(G=O-($=le[re]+"").length)&&(U+=ke(G)),U+=$;(G=O-($=(H=le[re])+"").length)&&(U+=ke(G))}else if(0===H)return"0";for(;H%10==0;)H/=10;return U+H}J.absoluteValue=J.abs=function(){var le=new this.constructor(this);return le.s&&(le.s=1),le},J.comparedTo=J.cmp=function(le){var re,G,$,F,U=this;if(le=new U.constructor(le),U.s!==le.s)return U.s||-le.s;if(U.e!==le.e)return U.e>le.e^U.s<0?1:-1;for(re=0,G=($=U.d.length)<(F=le.d.length)?$:F;re<G;++re)if(U.d[re]!==le.d[re])return U.d[re]>le.d[re]^U.s<0?1:-1;return $===F?0:$>F^U.s<0?1:-1},J.decimalPlaces=J.dp=function(){var re=this.d.length-1,G=(re-this.e)*O;if(re=this.d[re])for(;re%10==0;re/=10)G--;return G<0?0:G},J.dividedBy=J.div=function(le){return Ve(this,new this.constructor(le))},J.dividedToIntegerBy=J.idiv=function(le){var G=this.constructor;return He(Ve(this,new G(le),0,1),G.precision)},J.equals=J.eq=function(le){return!this.cmp(le)},J.exponent=function(){return Oe(this)},J.greaterThan=J.gt=function(le){return this.cmp(le)>0},J.greaterThanOrEqualTo=J.gte=function(le){return this.cmp(le)>=0},J.isInteger=J.isint=function(){return this.e>this.d.length-2},J.isNegative=J.isneg=function(){return this.s<0},J.isPositive=J.ispos=function(){return this.s>0},J.isZero=function(){return 0===this.s},J.lessThan=J.lt=function(le){return this.cmp(le)<0},J.lessThanOrEqualTo=J.lte=function(le){return this.cmp(le)<1},J.logarithm=J.log=function(le){var re,G=this,$=G.constructor,F=$.precision,U=F+5;if(void 0===le)le=new $(10);else if((le=new $(le)).s<1||le.eq(A))throw Error(y+"NaN");if(G.s<1)throw Error(y+(G.s?"NaN":"-Infinity"));return G.eq(A)?new $(0):(v=!1,re=Ve(Ce(G,U),Ce(le,U),U),v=!0,He(re,F))},J.minus=J.sub=function(le){return le=new this.constructor(le),this.s==le.s?lt(this,le):ce(this,(le.s=-le.s,le))},J.modulo=J.mod=function(le){var re,G=this,$=G.constructor,F=$.precision;if(!(le=new $(le)).s)throw Error(y+"NaN");return G.s?(v=!1,re=Ve(G,le,0,1).times(le),v=!0,G.minus(re)):He(new $(G),F)},J.naturalExponential=J.exp=function(){return Se(this)},J.naturalLogarithm=J.ln=function(){return Ce(this)},J.negated=J.neg=function(){var le=new this.constructor(this);return le.s=-le.s||0,le},J.plus=J.add=function(le){return le=new this.constructor(le),this.s==le.s?ce(this,le):lt(this,(le.s=-le.s,le))},J.precision=J.sd=function(le){var re,G,$,F=this;if(void 0!==le&&le!==!!le&&1!==le&&0!==le)throw Error(T+le);if(re=Oe(F)+1,G=($=F.d.length-1)*O+1,$=F.d[$]){for(;$%10==0;$/=10)G--;for($=F.d[0];$>=10;$/=10)G++}return le&&re>G?re:G},J.squareRoot=J.sqrt=function(){var le,re,G,$,F,U,H,Z=this,de=Z.constructor;if(Z.s<1){if(!Z.s)return new de(0);throw Error(y+"NaN")}for(le=Oe(Z),v=!1,0==(F=Math.sqrt(+Z))||F==1/0?(((re=ze(Z.d)).length+le)%2==0&&(re+="0"),F=Math.sqrt(re),le=N((le+1)/2)-(le<0||le%2),$=new de(re=F==1/0?"5e"+le:(re=F.toExponential()).slice(0,re.indexOf("e")+1)+le)):$=new de(F.toString()),F=H=(G=de.precision)+3;;)if($=(U=$).plus(Ve(Z,U,H+2)).times(.5),ze(U.d).slice(0,H)===(re=ze($.d)).slice(0,H)){if(re=re.slice(H-3,H+1),F==H&&"4999"==re){if(He(U,G+1,0),U.times(U).eq(Z)){$=U;break}}else if("9999"!=re)break;H+=4}return v=!0,He($,G)},J.times=J.mul=function(le){var re,G,$,F,U,H,Z,de,ge,Ne=this,Be=Ne.constructor,Xe=Ne.d,Ke=(le=new Be(le)).d;if(!Ne.s||!le.s)return new Be(0);for(le.s*=Ne.s,G=Ne.e+le.e,(de=Xe.length)<(ge=Ke.length)&&(U=Xe,Xe=Ke,Ke=U,H=de,de=ge,ge=H),U=[],$=H=de+ge;$--;)U.push(0);for($=ge;--$>=0;){for(re=0,F=de+$;F>$;)Z=U[F]+Ke[$]*Xe[F-$-1]+re,U[F--]=Z%C|0,re=Z/C|0;U[F]=(U[F]+re)%C|0}for(;!U[--H];)U.pop();return re?++G:U.shift(),le.d=U,le.e=G,v?He(le,Be.precision):le},J.toDecimalPlaces=J.todp=function(le,re){var G=this,$=G.constructor;return G=new $(G),void 0===le?G:(Fe(le,0,te),void 0===re?re=$.rounding:Fe(re,0,8),He(G,le+Oe(G)+1,re))},J.toExponential=function(le,re){var G,$=this,F=$.constructor;return void 0===le?G=Ct($,!0):(Fe(le,0,te),void 0===re?re=F.rounding:Fe(re,0,8),G=Ct($=He(new F($),le+1,re),!0,le+1)),G},J.toFixed=function(le,re){var G,$,F=this,U=F.constructor;return void 0===le?Ct(F):(Fe(le,0,te),void 0===re?re=U.rounding:Fe(re,0,8),G=Ct(($=He(new U(F),le+Oe(F)+1,re)).abs(),!1,le+Oe($)+1),F.isneg()&&!F.isZero()?"-"+G:G)},J.toInteger=J.toint=function(){var re=this.constructor;return He(new re(this),Oe(this)+1,re.rounding)},J.toNumber=function(){return+this},J.toPower=J.pow=function(le){var re,G,$,F,U,Z=this,de=Z.constructor,Ne=+(le=new de(le));if(!le.s)return new de(A);if(!(Z=new de(Z)).s){if(le.s<1)throw Error(y+"Infinity");return Z}if(Z.eq(A))return Z;if($=de.precision,le.eq(A))return He(Z,$);if(U=Z.s,(re=le.e)>=(G=le.d.length-1)){if((G=Ne<0?-Ne:Ne)<=R){for(F=new de(A),re=Math.ceil($/O+4),v=!1;G%2&&zt((F=F.times(Z)).d,re),0!==(G=N(G/2));)zt((Z=Z.times(Z)).d,re);return v=!0,le.s<0?new de(A).div(F):He(F,$)}}else if(U<0)throw Error(y+"NaN");return U=U<0&&1&le.d[Math.max(re,G)]?-1:1,Z.s=1,v=!1,F=le.times(Ce(Z,$+12)),v=!0,(F=Se(F)).s=U,F},J.toPrecision=function(le,re){var G,$,F=this,U=F.constructor;return void 0===le?$=Ct(F,(G=Oe(F))<=U.toExpNeg||G>=U.toExpPos):(Fe(le,1,te),void 0===re?re=U.rounding:Fe(re,0,8),$=Ct(F=He(new U(F),le,re),le<=(G=Oe(F))||G<=U.toExpNeg,le)),$},J.toSignificantDigits=J.tosd=function(le,re){var $=this.constructor;return void 0===le?(le=$.precision,re=$.rounding):(Fe(le,1,te),void 0===re?re=$.rounding:Fe(re,0,8)),He(new $(this),le,re)},J.toString=J.valueOf=J.val=J.toJSON=function(){var re=Oe(this),G=this.constructor;return Ct(this,re<=G.toExpNeg||re>=G.toExpPos)};var Ve=function(){function le($,F){var U,H=0,Z=$.length;for($=$.slice();Z--;)$[Z]=(U=$[Z]*F+H)%C|0,H=U/C|0;return H&&$.unshift(H),$}function re($,F,U,H){var Z,de;if(U!=H)de=U>H?1:-1;else for(Z=de=0;Z<U;Z++)if($[Z]!=F[Z]){de=$[Z]>F[Z]?1:-1;break}return de}function G($,F,U){for(var H=0;U--;)$[U]-=H,$[U]=(H=$[U]<F[U]?1:0)*C+$[U]-F[U];for(;!$[0]&&$.length>1;)$.shift()}return function($,F,U,H){var Z,de,ge,Ne,Be,Xe,Ke,mt,Ae,Ge,ne,se,Te,$e,it,bt,gt,Nt,dt=$.constructor,kt=$.s==F.s?1:-1,wt=$.d,nn=F.d;if(!$.s)return new dt($);if(!F.s)throw Error(y+"Division by zero");for(de=$.e-F.e,gt=nn.length,it=wt.length,mt=(Ke=new dt(kt)).d=[],ge=0;nn[ge]==(wt[ge]||0);)++ge;if(nn[ge]>(wt[ge]||0)&&--de,(se=null==U?U=dt.precision:H?U+(Oe($)-Oe(F))+1:U)<0)return new dt(0);if(se=se/O+2|0,ge=0,1==gt)for(Ne=0,nn=nn[0],se++;(ge<it||Ne)&&se--;ge++)mt[ge]=(Te=Ne*C+(wt[ge]||0))/nn|0,Ne=Te%nn|0;else{for((Ne=C/(nn[0]+1)|0)>1&&(nn=le(nn,Ne),wt=le(wt,Ne),gt=nn.length,it=wt.length),$e=gt,Ge=(Ae=wt.slice(0,gt)).length;Ge<gt;)Ae[Ge++]=0;(Nt=nn.slice()).unshift(0),bt=nn[0],nn[1]>=C/2&&++bt;do{Ne=0,(Z=re(nn,Ae,gt,Ge))<0?(ne=Ae[0],gt!=Ge&&(ne=ne*C+(Ae[1]||0)),(Ne=ne/bt|0)>1?(Ne>=C&&(Ne=C-1),1==(Z=re(Be=le(nn,Ne),Ae,Xe=Be.length,Ge=Ae.length))&&(Ne--,G(Be,gt<Xe?Nt:nn,Xe))):(0==Ne&&(Z=Ne=1),Be=nn.slice()),(Xe=Be.length)<Ge&&Be.unshift(0),G(Ae,Be,Ge),-1==Z&&(Z=re(nn,Ae,gt,Ge=Ae.length))<1&&(Ne++,G(Ae,gt<Ge?Nt:nn,Ge)),Ge=Ae.length):0===Z&&(Ne++,Ae=[0]),mt[ge++]=Ne,Z&&Ae[0]?Ae[Ge++]=wt[$e]||0:(Ae=[wt[$e]],Ge=1)}while(($e++<it||void 0!==Ae[0])&&se--)}return mt[0]||mt.shift(),Ke.e=de,He(Ke,H?U+Oe(Ke)+1:U)}}();function Se(le,re){var G,F,U,H,Z,de=0,ge=0,Ne=le.constructor,Be=Ne.precision;if(Oe(le)>16)throw Error(S+Oe(le));if(!le.s)return new Ne(A);for(null==re?(v=!1,Z=Be):Z=re,H=new Ne(.03125);le.abs().gte(.1);)le=le.times(H),ge+=5;for(Z+=Math.log(k(2,ge))/Math.LN10*2+5|0,G=F=U=new Ne(A),Ne.precision=Z;;){if(F=He(F.times(le),Z),G=G.times(++de),ze((H=U.plus(Ve(F,G,Z))).d).slice(0,Z)===ze(U.d).slice(0,Z)){for(;ge--;)U=He(U.times(U),Z);return Ne.precision=Be,null==re?(v=!0,He(U,Be)):U}U=H}}function Oe(le){for(var re=le.e*O,G=le.d[0];G>=10;G/=10)re++;return re}function Me(le,re,G){if(re>le.LN10.sd())throw v=!0,G&&(le.precision=G),Error(y+"LN10 precision limit exceeded");return He(new le(le.LN10),re)}function ke(le){for(var re="";le--;)re+="0";return re}function Ce(le,re){var G,$,F,U,H,Z,de,ge,Ne,Be=1,Ke=le,mt=Ke.d,Ae=Ke.constructor,Ge=Ae.precision;if(Ke.s<1)throw Error(y+(Ke.s?"NaN":"-Infinity"));if(Ke.eq(A))return new Ae(0);if(null==re?(v=!1,ge=Ge):ge=re,Ke.eq(10))return null==re&&(v=!0),Me(Ae,ge);if(Ae.precision=ge+=10,$=(G=ze(mt)).charAt(0),U=Oe(Ke),!(Math.abs(U)<15e14))return de=Me(Ae,ge+2,Ge).times(U+""),Ke=Ce(new Ae($+"."+G.slice(1)),ge-10).plus(de),Ae.precision=Ge,null==re?(v=!0,He(Ke,Ge)):Ke;for(;$<7&&1!=$||1==$&&G.charAt(1)>3;)$=(G=ze((Ke=Ke.times(le)).d)).charAt(0),Be++;for(U=Oe(Ke),$>1?(Ke=new Ae("0."+G),U++):Ke=new Ae($+"."+G.slice(1)),Z=H=Ke=Ve(Ke.minus(A),Ke.plus(A),ge),Ne=He(Ke.times(Ke),ge),F=3;;){if(H=He(H.times(Ne),ge),ze((de=Z.plus(Ve(H,new Ae(F),ge))).d).slice(0,ge)===ze(Z.d).slice(0,ge))return Z=Z.times(2),0!==U&&(Z=Z.plus(Me(Ae,ge+2,Ge).times(U+""))),Z=Ve(Z,new Ae(Be),ge),Ae.precision=Ge,null==re?(v=!0,He(Z,Ge)):Z;Z=de,F+=2}}function De(le,re){var G,$,F;for((G=re.indexOf("."))>-1&&(re=re.replace(".","")),($=re.search(/e/i))>0?(G<0&&(G=$),G+=+re.slice($+1),re=re.substring(0,$)):G<0&&(G=re.length),$=0;48===re.charCodeAt($);)++$;for(F=re.length;48===re.charCodeAt(F-1);)--F;if(re=re.slice($,F)){if(F-=$,le.e=N((G=G-$-1)/O),le.d=[],$=(G+1)%O,G<0&&($+=O),$<F){for($&&le.d.push(+re.slice(0,$)),F-=O;$<F;)le.d.push(+re.slice($,$+=O));re=re.slice($),$=O-re.length}else $-=F;for(;$--;)re+="0";if(le.d.push(+re),v&&(le.e>ie||le.e<-ie))throw Error(S+G)}else le.s=0,le.e=0,le.d=[0];return le}function He(le,re,G){var $,F,U,H,Z,de,ge,Ne,Be=le.d;for(H=1,U=Be[0];U>=10;U/=10)H++;if(($=re-H)<0)$+=O,F=re,ge=Be[Ne=0];else{if((Ne=Math.ceil(($+1)/O))>=(U=Be.length))return le;for(ge=U=Be[Ne],H=1;U>=10;U/=10)H++;F=($%=O)-O+H}if(void 0!==G&&(Z=ge/(U=k(10,H-F-1))%10|0,de=re<0||void 0!==Be[Ne+1]||ge%U,de=G<4?(Z||de)&&(0==G||G==(le.s<0?3:2)):Z>5||5==Z&&(4==G||de||6==G&&($>0?F>0?ge/k(10,H-F):0:Be[Ne-1])%10&1||G==(le.s<0?8:7))),re<1||!Be[0])return de?(U=Oe(le),Be.length=1,Be[0]=k(10,(O-(re=re-U-1)%O)%O),le.e=N(-re/O)||0):(Be.length=1,Be[0]=le.e=le.s=0),le;if(0==$?(Be.length=Ne,U=1,Ne--):(Be.length=Ne+1,U=k(10,O-$),Be[Ne]=F>0?(ge/k(10,H-F)%k(10,F)|0)*U:0),de)for(;;){if(0==Ne){(Be[0]+=U)==C&&(Be[0]=1,++le.e);break}if(Be[Ne]+=U,Be[Ne]!=C)break;Be[Ne--]=0,U=1}for($=Be.length;0===Be[--$];)Be.pop();if(v&&(le.e>ie||le.e<-ie))throw Error(S+Oe(le));return le}function lt(le,re){var G,$,F,U,H,Z,de,ge,Ne,Be,Xe=le.constructor,Ke=Xe.precision;if(!le.s||!re.s)return re.s?re.s=-re.s:re=new Xe(le),v?He(re,Ke):re;if(Be=re.d,$=re.e,ge=le.e,de=(de=le.d).slice(),H=ge-$){for((Ne=H<0)?(G=de,H=-H,Z=Be.length):(G=Be,$=ge,Z=de.length),H>(F=Math.max(Math.ceil(Ke/O),Z)+2)&&(H=F,G.length=1),G.reverse(),F=H;F--;)G.push(0);G.reverse()}else{for((Ne=(F=de.length)<(Z=Be.length))&&(Z=F),F=0;F<Z;F++)if(de[F]!=Be[F]){Ne=de[F]<Be[F];break}H=0}for(Ne&&(G=de,de=Be,Be=G,re.s=-re.s),F=Be.length-(Z=de.length);F>0;--F)de[Z++]=0;for(F=Be.length;F>H;){if(de[--F]<Be[F]){for(U=F;U&&0===de[--U];)de[U]=C-1;--de[U],de[F]+=C}de[F]-=Be[F]}for(;0===de[--Z];)de.pop();for(;0===de[0];de.shift())--$;return de[0]?(re.d=de,re.e=$,v?He(re,Ke):re):new Xe(0)}function Ct(le,re,G){var $,F=Oe(le),U=ze(le.d),H=U.length;return re?(G&&($=G-H)>0?U=U.charAt(0)+"."+U.slice(1)+ke($):H>1&&(U=U.charAt(0)+"."+U.slice(1)),U=U+(F<0?"e":"e+")+F):F<0?(U="0."+ke(-F-1)+U,G&&($=G-H)>0&&(U+=ke($))):F>=H?(U+=ke(F+1-H),G&&($=G-F-1)>0&&(U=U+"."+ke($))):(($=F+1)<H&&(U=U.slice(0,$)+"."+U.slice($)),G&&($=G-H)>0&&(F+1===H&&(U+="."),U+=ke($))),le.s<0?"-"+U:U}function zt(le,re){if(le.length>re)return le.length=re,!0}function Je(le){if(!le||"object"!=typeof le)throw Error(y+"Object expected");var re,G,$,F=["precision",1,te,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(re=0;re<F.length;re+=3)if(void 0!==($=le[G=F[re]])){if(!(N($)===$&&$>=F[re+1]&&$<=F[re+2]))throw Error(T+G+": "+$);this[G]=$}if(void 0!==($=le[G="LN10"])){if($!=Math.LN10)throw Error(T+G+": "+$);this[G]=new this($)}return this}(Q=function Wt(le){var re,G,$;function F(U){var H=this;if(!(H instanceof F))return new F(U);if(H.constructor=F,U instanceof F)return H.s=U.s,H.e=U.e,void(H.d=(U=U.d)?U.slice():U);if("number"==typeof U){if(0*U!=0)throw Error(T+U);if(U>0)H.s=1;else{if(!(U<0))return H.s=0,H.e=0,void(H.d=[0]);U=-U,H.s=-1}return U===~~U&&U<1e7?(H.e=0,void(H.d=[U])):De(H,U.toString())}if("string"!=typeof U)throw Error(T+U);if(45===U.charCodeAt(0)?(U=U.slice(1),H.s=-1):H.s=1,!W.test(U))throw Error(T+U);De(H,U)}if(F.prototype=J,F.ROUND_UP=0,F.ROUND_DOWN=1,F.ROUND_CEIL=2,F.ROUND_FLOOR=3,F.ROUND_HALF_UP=4,F.ROUND_HALF_DOWN=5,F.ROUND_HALF_EVEN=6,F.ROUND_HALF_CEIL=7,F.ROUND_HALF_FLOOR=8,F.clone=Wt,F.config=F.set=Je,void 0===le&&(le={}),le)for($=["precision","rounding","toExpNeg","toExpPos","LN10"],re=0;re<$.length;)le.hasOwnProperty(G=$[re++])||(le[G]=this[G]);return F.config(le),F}(Q)).default=Q.Decimal=Q,A=new Q(1),void 0!==(a=function(){return Q}.call(w,b,w,Ee))&&(Ee.exports=a)}()},5046:function(Ee,w){var b,i;void 0!==(i="function"==typeof(b=function(){"use strict";function Q(k,W,A){var C=new XMLHttpRequest;C.open("GET",k),C.responseType="blob",C.onload=function(){N(C.response,W,A)},C.onerror=function(){console.error("could not download file")},C.send()}function v(k){var W=new XMLHttpRequest;W.open("HEAD",k,!1);try{W.send()}catch{}return 200<=W.status&&299>=W.status}function y(k){try{k.dispatchEvent(new MouseEvent("click"))}catch{var W=document.createEvent("MouseEvents");W.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),k.dispatchEvent(W)}}var T="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,S=T.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),N=T.saveAs||("object"!=typeof window||window!==T?function(){}:"download"in HTMLAnchorElement.prototype&&!S?function(k,W,A){var C=T.URL||T.webkitURL,O=document.createElement("a");O.download=W=W||k.name||"download",O.rel="noopener","string"==typeof k?(O.href=k,O.origin===location.origin?y(O):v(O.href)?Q(k,W,A):y(O,O.target="_blank")):(O.href=C.createObjectURL(k),setTimeout(function(){C.revokeObjectURL(O.href)},4e4),setTimeout(function(){y(O)},0))}:"msSaveOrOpenBlob"in navigator?function(k,W,A){if(W=W||k.name||"download","string"!=typeof k)navigator.msSaveOrOpenBlob(function te(k,W){return typeof W>"u"?W={autoBom:!1}:"object"!=typeof W&&(console.warn("Deprecated: Expected third argument to be a object"),W={autoBom:!W}),W.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(k.type)?new Blob(["\ufeff",k],{type:k.type}):k}(k,A),W);else if(v(k))Q(k,W,A);else{var C=document.createElement("a");C.href=k,C.target="_blank",setTimeout(function(){y(C)})}}:function(k,W,A,C){if((C=C||open("","_blank"))&&(C.document.title=C.document.body.innerText="downloading..."),"string"==typeof k)return Q(k,W,A);var O="application/octet-stream"===k.type,R=/constructor/i.test(T.HTMLElement)||T.safari,ie=/CriOS\/[\d]+/.test(navigator.userAgent);if((ie||O&&R||S)&&typeof FileReader<"u"){var J=new FileReader;J.onloadend=function(){var ze=J.result;ze=ie?ze:ze.replace(/^data:[^;]*;/,"data:attachment/file;"),C?C.location.href=ze:location=ze,C=null},J.readAsDataURL(k)}else{var ce=T.URL||T.webkitURL,Fe=ce.createObjectURL(k);C?C.location=Fe:location.href=Fe,C=null,setTimeout(function(){ce.revokeObjectURL(Fe)},4e4)}});T.saveAs=N.saveAs=N,Ee.exports=N})?b.apply(w,[]):b)&&(Ee.exports=i)},1625:(Ee,w,b)=>{"use strict";b.d(w,{X:()=>i});var a=b(9453);class i extends a.x{constructor(Q){super(),this._value=Q}get value(){return this.getValue()}_subscribe(Q){const v=super._subscribe(Q);return!v.closed&&Q.next(this._value),v}getValue(){const{hasError:Q,thrownError:v,_value:y}=this;if(Q)throw v;return this._throwIfClosed(),y}next(Q){super.next(this._value=Q)}}},7371:(Ee,w,b)=>{"use strict";b.d(w,{y:()=>k});var a=b(9224),i=b(9592),te=b(7878),Q=b(2390);var T=b(6786),S=b(3276),N=b(1685);let k=(()=>{class O{constructor(ie){ie&&(this._subscribe=ie)}lift(ie){const J=new O;return J.source=this,J.operator=ie,J}subscribe(ie,J,ce){const Fe=function C(O){return O&&O instanceof a.Lv||function A(O){return O&&(0,S.m)(O.next)&&(0,S.m)(O.error)&&(0,S.m)(O.complete)}(O)&&(0,i.Nn)(O)}(ie)?ie:new a.Hp(ie,J,ce);return(0,N.x)(()=>{const{operator:ze,source:Ve}=this;Fe.add(ze?ze.call(Fe,Ve):Ve?this._subscribe(Fe):this._trySubscribe(Fe))}),Fe}_trySubscribe(ie){try{return this._subscribe(ie)}catch(J){ie.error(J)}}forEach(ie,J){return new(J=W(J))((ce,Fe)=>{const ze=new a.Hp({next:Ve=>{try{ie(Ve)}catch(Se){Fe(Se),ze.unsubscribe()}},error:Fe,complete:ce});this.subscribe(ze)})}_subscribe(ie){var J;return null===(J=this.source)||void 0===J?void 0:J.subscribe(ie)}[te.L](){return this}pipe(...ie){return function y(O){return 0===O.length?Q.y:1===O.length?O[0]:function(ie){return O.reduce((J,ce)=>ce(J),ie)}}(ie)(this)}toPromise(ie){return new(ie=W(ie))((J,ce)=>{let Fe;this.subscribe(ze=>Fe=ze,ze=>ce(ze),()=>J(Fe))})}}return O.create=R=>new O(R),O})();function W(O){var R;return null!==(R=O??T.config.Promise)&&void 0!==R?R:Promise}},9453:(Ee,w,b)=>{"use strict";b.d(w,{x:()=>T});var a=b(7371),i=b(9592);const Q=(0,b(3374).d)(N=>function(){N(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var v=b(7352),y=b(1685);let T=(()=>{class N extends a.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(W){const A=new S(this,this);return A.operator=W,A}_throwIfClosed(){if(this.closed)throw new Q}next(W){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const A of this.currentObservers)A.next(W)}})}error(W){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=W;const{observers:A}=this;for(;A.length;)A.shift().error(W)}})}complete(){(0,y.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:W}=this;for(;W.length;)W.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var W;return(null===(W=this.observers)||void 0===W?void 0:W.length)>0}_trySubscribe(W){return this._throwIfClosed(),super._trySubscribe(W)}_subscribe(W){return this._throwIfClosed(),this._checkFinalizedStatuses(W),this._innerSubscribe(W)}_innerSubscribe(W){const{hasError:A,isStopped:C,observers:O}=this;return A||C?i.Lc:(this.currentObservers=null,O.push(W),new i.w0(()=>{this.currentObservers=null,(0,v.P)(O,W)}))}_checkFinalizedStatuses(W){const{hasError:A,thrownError:C,isStopped:O}=this;A?W.error(C):O&&W.complete()}asObservable(){const W=new a.y;return W.source=this,W}}return N.create=(k,W)=>new S(k,W),N})();class S extends T{constructor(k,W){super(),this.destination=k,this.source=W}next(k){var W,A;null===(A=null===(W=this.destination)||void 0===W?void 0:W.next)||void 0===A||A.call(W,k)}error(k){var W,A;null===(A=null===(W=this.destination)||void 0===W?void 0:W.error)||void 0===A||A.call(W,k)}complete(){var k,W;null===(W=null===(k=this.destination)||void 0===k?void 0:k.complete)||void 0===W||W.call(k)}_subscribe(k){var W,A;return null!==(A=null===(W=this.source)||void 0===W?void 0:W.subscribe(k))&&void 0!==A?A:i.Lc}}},9224:(Ee,w,b)=>{"use strict";b.d(w,{Hp:()=>ie,Lv:()=>A});var a=b(3276),i=b(9592),te=b(6786),Q=b(5625),v=b(1952);const y=N("C",void 0,void 0);function N(Ve,Se,Oe){return{kind:Ve,value:Se,error:Oe}}var k=b(1296),W=b(1685);class A extends i.w0{constructor(Se){super(),this.isStopped=!1,Se?(this.destination=Se,(0,i.Nn)(Se)&&Se.add(this)):this.destination=ze}static create(Se,Oe,Me){return new ie(Se,Oe,Me)}next(Se){this.isStopped?Fe(function S(Ve){return N("N",Ve,void 0)}(Se),this):this._next(Se)}error(Se){this.isStopped?Fe(function T(Ve){return N("E",void 0,Ve)}(Se),this):(this.isStopped=!0,this._error(Se))}complete(){this.isStopped?Fe(y,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Se){this.destination.next(Se)}_error(Se){try{this.destination.error(Se)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const C=Function.prototype.bind;function O(Ve,Se){return C.call(Ve,Se)}class R{constructor(Se){this.partialObserver=Se}next(Se){const{partialObserver:Oe}=this;if(Oe.next)try{Oe.next(Se)}catch(Me){J(Me)}}error(Se){const{partialObserver:Oe}=this;if(Oe.error)try{Oe.error(Se)}catch(Me){J(Me)}else J(Se)}complete(){const{partialObserver:Se}=this;if(Se.complete)try{Se.complete()}catch(Oe){J(Oe)}}}class ie extends A{constructor(Se,Oe,Me){let ke;if(super(),(0,a.m)(Se)||!Se)ke={next:Se??void 0,error:Oe??void 0,complete:Me??void 0};else{let Ce;this&&te.config.useDeprecatedNextContext?(Ce=Object.create(Se),Ce.unsubscribe=()=>this.unsubscribe(),ke={next:Se.next&&O(Se.next,Ce),error:Se.error&&O(Se.error,Ce),complete:Se.complete&&O(Se.complete,Ce)}):ke=Se}this.destination=new R(ke)}}function J(Ve){te.config.useDeprecatedSynchronousErrorHandling?(0,W.O)(Ve):(0,Q.h)(Ve)}function Fe(Ve,Se){const{onStoppedNotification:Oe}=te.config;Oe&&k.z.setTimeout(()=>Oe(Ve,Se))}const ze={closed:!0,next:v.Z,error:function ce(Ve){throw Ve},complete:v.Z}},9592:(Ee,w,b)=>{"use strict";b.d(w,{Lc:()=>y,w0:()=>v,Nn:()=>T});var a=b(3276);const te=(0,b(3374).d)(N=>function(W){N(this),this.message=W?`${W.length} errors occurred during unsubscription:\n${W.map((A,C)=>`${C+1}) ${A.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=W});var Q=b(7352);class v{constructor(k){this.initialTeardown=k,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let k;if(!this.closed){this.closed=!0;const{_parentage:W}=this;if(W)if(this._parentage=null,Array.isArray(W))for(const O of W)O.remove(this);else W.remove(this);const{initialTeardown:A}=this;if((0,a.m)(A))try{A()}catch(O){k=O instanceof te?O.errors:[O]}const{_finalizers:C}=this;if(C){this._finalizers=null;for(const O of C)try{S(O)}catch(R){k=k??[],R instanceof te?k=[...k,...R.errors]:k.push(R)}}if(k)throw new te(k)}}add(k){var W;if(k&&k!==this)if(this.closed)S(k);else{if(k instanceof v){if(k.closed||k._hasParent(this))return;k._addParent(this)}(this._finalizers=null!==(W=this._finalizers)&&void 0!==W?W:[]).push(k)}}_hasParent(k){const{_parentage:W}=this;return W===k||Array.isArray(W)&&W.includes(k)}_addParent(k){const{_parentage:W}=this;this._parentage=Array.isArray(W)?(W.push(k),W):W?[W,k]:k}_removeParent(k){const{_parentage:W}=this;W===k?this._parentage=null:Array.isArray(W)&&(0,Q.P)(W,k)}remove(k){const{_finalizers:W}=this;W&&(0,Q.P)(W,k),k instanceof v&&k._removeParent(this)}}v.EMPTY=(()=>{const N=new v;return N.closed=!0,N})();const y=v.EMPTY;function T(N){return N instanceof v||N&&"closed"in N&&(0,a.m)(N.remove)&&(0,a.m)(N.add)&&(0,a.m)(N.unsubscribe)}function S(N){(0,a.m)(N)?N():N.unsubscribe()}},6786:(Ee,w,b)=>{"use strict";b.d(w,{config:()=>a});const a={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9925:(Ee,w,b)=>{"use strict";b.d(w,{z:()=>v});var a=b(5326),te=b(177),Q=b(107);function v(...y){return function i(){return(0,a.J)(1)}()((0,Q.D)(y,(0,te.yG)(y)))}},8025:(Ee,w,b)=>{"use strict";b.d(w,{E:()=>i});const i=new(b(7371).y)(v=>v.complete())},6312:(Ee,w,b)=>{"use strict";b.d(w,{D:()=>S});var a=b(7371),i=b(1003),te=b(8299),Q=b(177),v=b(2829),y=b(4574),T=b(5017);function S(...N){const k=(0,Q.jO)(N),{args:W,keys:A}=(0,i.D)(N),C=new a.y(O=>{const{length:R}=W;if(!R)return void O.complete();const ie=new Array(R);let J=R,ce=R;for(let Fe=0;Fe<R;Fe++){let ze=!1;(0,te.Xf)(W[Fe]).subscribe((0,v.x)(O,Ve=>{ze||(ze=!0,ce--),ie[Fe]=Ve},()=>J--,void 0,()=>{(!J||!ze)&&(ce||O.next(A?(0,T.n)(A,ie):ie),O.complete())}))}});return k?C.pipe((0,y.Z)(k)):C}},107:(Ee,w,b)=>{"use strict";b.d(w,{D:()=>Me});var a=b(8299),i=b(8382),te=b(4049),Q=b(2829);function v(ke,Ce=0){return(0,te.e)((De,He)=>{De.subscribe((0,Q.x)(He,lt=>(0,i.f)(He,ke,()=>He.next(lt),Ce),()=>(0,i.f)(He,ke,()=>He.complete(),Ce),lt=>(0,i.f)(He,ke,()=>He.error(lt),Ce)))})}function y(ke,Ce=0){return(0,te.e)((De,He)=>{He.add(ke.schedule(()=>De.subscribe(He),Ce))})}var N=b(7371),W=b(8279),A=b(3276);function O(ke,Ce){if(!ke)throw new Error("Iterable cannot be null");return new N.y(De=>{(0,i.f)(De,Ce,()=>{const He=ke[Symbol.asyncIterator]();(0,i.f)(De,Ce,()=>{He.next().then(lt=>{lt.done?De.complete():De.next(lt.value)})},0,!0)})})}var R=b(8620),ie=b(2753),J=b(4936),ce=b(5074),Fe=b(5e3),ze=b(1380),Ve=b(3130);function Me(ke,Ce){return Ce?function Oe(ke,Ce){if(null!=ke){if((0,R.c)(ke))return function T(ke,Ce){return(0,a.Xf)(ke).pipe(y(Ce),v(Ce))}(ke,Ce);if((0,J.z)(ke))return function k(ke,Ce){return new N.y(De=>{let He=0;return Ce.schedule(function(){He===ke.length?De.complete():(De.next(ke[He++]),De.closed||this.schedule())})})}(ke,Ce);if((0,ie.t)(ke))return function S(ke,Ce){return(0,a.Xf)(ke).pipe(y(Ce),v(Ce))}(ke,Ce);if((0,Fe.D)(ke))return O(ke,Ce);if((0,ce.T)(ke))return function C(ke,Ce){return new N.y(De=>{let He;return(0,i.f)(De,Ce,()=>{He=ke[W.h](),(0,i.f)(De,Ce,()=>{let lt,Ct;try{({value:lt,done:Ct}=He.next())}catch(zt){return void De.error(zt)}Ct?De.complete():De.next(lt)},0,!0)}),()=>(0,A.m)(He?.return)&&He.return()})}(ke,Ce);if((0,Ve.L)(ke))return function Se(ke,Ce){return O((0,Ve.Q)(ke),Ce)}(ke,Ce)}throw(0,ze.z)(ke)}(ke,Ce):(0,a.Xf)(ke)}},6058:(Ee,w,b)=>{"use strict";b.d(w,{R:()=>k});var a=b(8299),i=b(7371),te=b(5123),Q=b(4936),v=b(3276),y=b(4574);const T=["addListener","removeListener"],S=["addEventListener","removeEventListener"],N=["on","off"];function k(R,ie,J,ce){if((0,v.m)(J)&&(ce=J,J=void 0),ce)return k(R,ie,J).pipe((0,y.Z)(ce));const[Fe,ze]=function O(R){return(0,v.m)(R.addEventListener)&&(0,v.m)(R.removeEventListener)}(R)?S.map(Ve=>Se=>R[Ve](ie,Se,J)):function A(R){return(0,v.m)(R.addListener)&&(0,v.m)(R.removeListener)}(R)?T.map(W(R,ie)):function C(R){return(0,v.m)(R.on)&&(0,v.m)(R.off)}(R)?N.map(W(R,ie)):[];if(!Fe&&(0,Q.z)(R))return(0,te.z)(Ve=>k(Ve,ie,J))((0,a.Xf)(R));if(!Fe)throw new TypeError("Invalid event target");return new i.y(Ve=>{const Se=(...Oe)=>Ve.next(1<Oe.length?Oe:Oe[0]);return Fe(Se),()=>ze(Se)})}function W(R,ie){return J=>ce=>R[J](ie,ce)}},8299:(Ee,w,b)=>{"use strict";b.d(w,{Xf:()=>C});var a=b(2970),i=b(4936),te=b(2753),Q=b(7371),v=b(8620),y=b(5e3),T=b(1380),S=b(5074),N=b(3130),k=b(3276),W=b(5625),A=b(7878);function C(Ve){if(Ve instanceof Q.y)return Ve;if(null!=Ve){if((0,v.c)(Ve))return function O(Ve){return new Q.y(Se=>{const Oe=Ve[A.L]();if((0,k.m)(Oe.subscribe))return Oe.subscribe(Se);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(Ve);if((0,i.z)(Ve))return function R(Ve){return new Q.y(Se=>{for(let Oe=0;Oe<Ve.length&&!Se.closed;Oe++)Se.next(Ve[Oe]);Se.complete()})}(Ve);if((0,te.t)(Ve))return function ie(Ve){return new Q.y(Se=>{Ve.then(Oe=>{Se.closed||(Se.next(Oe),Se.complete())},Oe=>Se.error(Oe)).then(null,W.h)})}(Ve);if((0,y.D)(Ve))return ce(Ve);if((0,S.T)(Ve))return function J(Ve){return new Q.y(Se=>{for(const Oe of Ve)if(Se.next(Oe),Se.closed)return;Se.complete()})}(Ve);if((0,N.L)(Ve))return function Fe(Ve){return ce((0,N.Q)(Ve))}(Ve)}throw(0,T.z)(Ve)}function ce(Ve){return new Q.y(Se=>{(function ze(Ve,Se){var Oe,Me,ke,Ce;return(0,a.__awaiter)(this,void 0,void 0,function*(){try{for(Oe=(0,a.__asyncValues)(Ve);!(Me=yield Oe.next()).done;)if(Se.next(Me.value),Se.closed)return}catch(De){ke={error:De}}finally{try{Me&&!Me.done&&(Ce=Oe.return)&&(yield Ce.call(Oe))}finally{if(ke)throw ke.error}}Se.complete()})})(Ve,Se).catch(Oe=>Se.error(Oe))})}},4991:(Ee,w,b)=>{"use strict";b.d(w,{T:()=>y});var a=b(5326),i=b(8299),te=b(8025),Q=b(177),v=b(107);function y(...T){const S=(0,Q.yG)(T),N=(0,Q._6)(T,1/0),k=T;return k.length?1===k.length?(0,i.Xf)(k[0]):(0,a.J)(N)((0,v.D)(k,S)):te.E}},9627:(Ee,w,b)=>{"use strict";b.d(w,{of:()=>te});var a=b(177),i=b(107);function te(...Q){const v=(0,a.yG)(Q);return(0,i.D)(Q,v)}},5117:(Ee,w,b)=>{"use strict";b.d(w,{H:()=>v});var a=b(7371),i=b(6589),te=b(3946);function v(y=0,T,S=i.P){let N=-1;return null!=T&&((0,te.K)(T)?S=T:N=T),new a.y(k=>{let W=function Q(y){return y instanceof Date&&!isNaN(y)}(y)?+y-S.now():y;W<0&&(W=0);let A=0;return S.schedule(function(){k.closed||(k.next(A++),0<=N?this.schedule(void 0,N):k.complete())},W)})}},2829:(Ee,w,b)=>{"use strict";b.d(w,{x:()=>i});var a=b(9224);function i(Q,v,y,T,S){return new te(Q,v,y,T,S)}class te extends a.Lv{constructor(v,y,T,S,N,k){super(v),this.onFinalize=N,this.shouldUnsubscribe=k,this._next=y?function(W){try{y(W)}catch(A){v.error(A)}}:super._next,this._error=S?function(W){try{S(W)}catch(A){v.error(A)}finally{this.unsubscribe()}}:super._error,this._complete=T?function(){try{T()}catch(W){v.error(W)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var v;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:y}=this;super.unsubscribe(),!y&&(null===(v=this.onFinalize)||void 0===v||v.call(this))}}}},2067:(Ee,w,b)=>{"use strict";b.d(w,{b:()=>Q});var a=b(6589),i=b(4049),te=b(2829);function Q(v,y=a.z){return(0,i.e)((T,S)=>{let N=null,k=null,W=null;const A=()=>{if(N){N.unsubscribe(),N=null;const O=k;k=null,S.next(O)}};function C(){const O=W+v,R=y.now();if(R<O)return N=this.schedule(void 0,O-R),void S.add(N);A()}T.subscribe((0,te.x)(S,O=>{k=O,W=y.now(),N||(N=y.schedule(C,v),S.add(N))},()=>{A(),S.complete()},void 0,()=>{k=N=null}))})}},4263:(Ee,w,b)=>{"use strict";b.d(w,{x:()=>Q});var a=b(2390),i=b(4049),te=b(2829);function Q(y,T=a.y){return y=y??v,(0,i.e)((S,N)=>{let k,W=!0;S.subscribe((0,te.x)(N,A=>{const C=T(A);(W||!y(k,C))&&(W=!1,k=C,N.next(A))}))})}function v(y,T){return y===T}},1497:(Ee,w,b)=>{"use strict";b.d(w,{h:()=>te});var a=b(4049),i=b(2829);function te(Q,v){return(0,a.e)((y,T)=>{let S=0;y.subscribe((0,i.x)(T,N=>Q.call(v,N,S++)&&T.next(N)))})}},1927:(Ee,w,b)=>{"use strict";b.d(w,{x:()=>i});var a=b(4049);function i(te){return(0,a.e)((Q,v)=>{try{Q.subscribe(v)}finally{v.add(te)}})}},8412:(Ee,w,b)=>{"use strict";b.d(w,{U:()=>te});var a=b(4049),i=b(2829);function te(Q,v){return(0,a.e)((y,T)=>{let S=0;y.subscribe((0,i.x)(T,N=>{T.next(Q.call(v,N,S++))}))})}},5326:(Ee,w,b)=>{"use strict";b.d(w,{J:()=>te});var a=b(5123),i=b(2390);function te(Q=1/0){return(0,a.z)(i.y,Q)}},5123:(Ee,w,b)=>{"use strict";b.d(w,{z:()=>S});var a=b(8412),i=b(8299),te=b(4049),Q=b(8382),v=b(2829),T=b(3276);function S(N,k,W=1/0){return(0,T.m)(k)?S((A,C)=>(0,a.U)((O,R)=>k(A,O,C,R))((0,i.Xf)(N(A,C))),W):("number"==typeof k&&(W=k),(0,te.e)((A,C)=>function y(N,k,W,A,C,O,R,ie){const J=[];let ce=0,Fe=0,ze=!1;const Ve=()=>{ze&&!J.length&&!ce&&k.complete()},Se=Me=>ce<A?Oe(Me):J.push(Me),Oe=Me=>{O&&k.next(Me),ce++;let ke=!1;(0,i.Xf)(W(Me,Fe++)).subscribe((0,v.x)(k,Ce=>{C?.(Ce),O?Se(Ce):k.next(Ce)},()=>{ke=!0},void 0,()=>{if(ke)try{for(ce--;J.length&&ce<A;){const Ce=J.shift();R?(0,Q.f)(k,R,()=>Oe(Ce)):Oe(Ce)}Ve()}catch(Ce){k.error(Ce)}}))};return N.subscribe((0,v.x)(k,Se,()=>{ze=!0,Ve()})),()=>{ie?.()}}(A,C,N,W)))}},1800:(Ee,w,b)=>{"use strict";b.d(w,{T:()=>i});var a=b(1497);function i(te){return(0,a.h)((Q,v)=>te<=v)}},19:(Ee,w,b)=>{"use strict";b.d(w,{O:()=>Q});var a=b(9925),i=b(177),te=b(4049);function Q(...v){const y=(0,i.yG)(v);return(0,te.e)((T,S)=>{(y?(0,a.z)(v,T,y):(0,a.z)(v,T)).subscribe(S)})}},2835:(Ee,w,b)=>{"use strict";b.d(w,{w:()=>Q});var a=b(8299),i=b(4049),te=b(2829);function Q(v,y){return(0,i.e)((T,S)=>{let N=null,k=0,W=!1;const A=()=>W&&!N&&S.complete();T.subscribe((0,te.x)(S,C=>{N?.unsubscribe();let O=0;const R=k++;(0,a.Xf)(v(C,R)).subscribe(N=(0,te.x)(S,ie=>S.next(y?y(C,ie,R,O++):ie),()=>{N=null,A()}))},()=>{W=!0,A()}))})}},3581:(Ee,w,b)=>{"use strict";b.d(w,{q:()=>Q});var a=b(8025),i=b(4049),te=b(2829);function Q(v){return v<=0?()=>a.E:(0,i.e)((y,T)=>{let S=0;y.subscribe((0,te.x)(T,N=>{++S<=v&&(T.next(N),v<=S&&T.complete())}))})}},5779:(Ee,w,b)=>{"use strict";b.d(w,{R:()=>v});var a=b(4049),i=b(2829),te=b(8299),Q=b(1952);function v(y){return(0,a.e)((T,S)=>{(0,te.Xf)(y).subscribe((0,i.x)(S,()=>S.complete(),Q.Z)),!S.closed&&T.subscribe(S)})}},4104:(Ee,w,b)=>{"use strict";b.d(w,{b:()=>v});var a=b(3276),i=b(4049),te=b(2829),Q=b(2390);function v(y,T,S){const N=(0,a.m)(y)||T||S?{next:y,error:T,complete:S}:y;return N?(0,i.e)((k,W)=>{var A;null===(A=N.subscribe)||void 0===A||A.call(N);let C=!0;k.subscribe((0,te.x)(W,O=>{var R;null===(R=N.next)||void 0===R||R.call(N,O),W.next(O)},()=>{var O;C=!1,null===(O=N.complete)||void 0===O||O.call(N),W.complete()},O=>{var R;C=!1,null===(R=N.error)||void 0===R||R.call(N,O),W.error(O)},()=>{var O,R;C&&(null===(O=N.unsubscribe)||void 0===O||O.call(N)),null===(R=N.finalize)||void 0===R||R.call(N)}))}):Q.y}},2290:(Ee,w,b)=>{"use strict";b.d(w,{o:()=>v});var a=b(9592);class i extends a.w0{constructor(T,S){super()}schedule(T,S=0){return this}}const te={setInterval(y,T,...S){const{delegate:N}=te;return N?.setInterval?N.setInterval(y,T,...S):setInterval(y,T,...S)},clearInterval(y){const{delegate:T}=te;return(T?.clearInterval||clearInterval)(y)},delegate:void 0};var Q=b(7352);class v extends i{constructor(T,S){super(T,S),this.scheduler=T,this.work=S,this.pending=!1}schedule(T,S=0){var N;if(this.closed)return this;this.state=T;const k=this.id,W=this.scheduler;return null!=k&&(this.id=this.recycleAsyncId(W,k,S)),this.pending=!0,this.delay=S,this.id=null!==(N=this.id)&&void 0!==N?N:this.requestAsyncId(W,this.id,S),this}requestAsyncId(T,S,N=0){return te.setInterval(T.flush.bind(T,this),N)}recycleAsyncId(T,S,N=0){if(null!=N&&this.delay===N&&!1===this.pending)return S;null!=S&&te.clearInterval(S)}execute(T,S){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const N=this._execute(T,S);if(N)return N;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(T,S){let k,N=!1;try{this.work(T)}catch(W){N=!0,k=W||new Error("Scheduled action threw falsy error")}if(N)return this.unsubscribe(),k}unsubscribe(){if(!this.closed){const{id:T,scheduler:S}=this,{actions:N}=S;this.work=this.state=this.scheduler=null,this.pending=!1,(0,Q.P)(N,this),null!=T&&(this.id=this.recycleAsyncId(S,T,null)),this.delay=null,super.unsubscribe()}}}},5349:(Ee,w,b)=>{"use strict";b.d(w,{v:()=>te});const a={now:()=>(a.delegate||Date).now(),delegate:void 0};class i{constructor(v,y=i.now){this.schedulerActionCtor=v,this.now=y}schedule(v,y=0,T){return new this.schedulerActionCtor(this,v).schedule(T,y)}}i.now=a.now;class te extends i{constructor(v,y=i.now){super(v,y),this.actions=[],this._active=!1}flush(v){const{actions:y}=this;if(this._active)return void y.push(v);let T;this._active=!0;do{if(T=v.execute(v.state,v.delay))break}while(v=y.shift());if(this._active=!1,T){for(;v=y.shift();)v.unsubscribe();throw T}}}},4453:(Ee,w,b)=>{"use strict";b.d(w,{E:()=>O});var a=b(2290);let te,i=1;const Q={};function v(ie){return ie in Q&&(delete Q[ie],!0)}const y={setImmediate(ie){const J=i++;return Q[J]=!0,te||(te=Promise.resolve()),te.then(()=>v(J)&&ie()),J},clearImmediate(ie){v(ie)}},{setImmediate:S,clearImmediate:N}=y,k={setImmediate(...ie){const{delegate:J}=k;return(J?.setImmediate||S)(...ie)},clearImmediate(ie){const{delegate:J}=k;return(J?.clearImmediate||N)(ie)},delegate:void 0};var A=b(5349);const O=new class C extends A.v{flush(J){this._active=!0;const ce=this._scheduled;this._scheduled=void 0;const{actions:Fe}=this;let ze;J=J||Fe.shift();do{if(ze=J.execute(J.state,J.delay))break}while((J=Fe[0])&&J.id===ce&&Fe.shift());if(this._active=!1,ze){for(;(J=Fe[0])&&J.id===ce&&Fe.shift();)J.unsubscribe();throw ze}}}(class W extends a.o{constructor(J,ce){super(J,ce),this.scheduler=J,this.work=ce}requestAsyncId(J,ce,Fe=0){return null!==Fe&&Fe>0?super.requestAsyncId(J,ce,Fe):(J.actions.push(this),J._scheduled||(J._scheduled=k.setImmediate(J.flush.bind(J,void 0))))}recycleAsyncId(J,ce,Fe=0){var ze;if(null!=Fe?Fe>0:this.delay>0)return super.recycleAsyncId(J,ce,Fe);const{actions:Ve}=J;null!=ce&&(null===(ze=Ve[Ve.length-1])||void 0===ze?void 0:ze.id)!==ce&&(k.clearImmediate(ce),J._scheduled===ce&&(J._scheduled=void 0))}})},6589:(Ee,w,b)=>{"use strict";b.d(w,{P:()=>Q,z:()=>te});var a=b(2290);const te=new(b(5349).v)(a.o),Q=te},1296:(Ee,w,b)=>{"use strict";b.d(w,{z:()=>a});const a={setTimeout(i,te,...Q){const{delegate:v}=a;return v?.setTimeout?v.setTimeout(i,te,...Q):setTimeout(i,te,...Q)},clearTimeout(i){const{delegate:te}=a;return(te?.clearTimeout||clearTimeout)(i)},delegate:void 0}},8279:(Ee,w,b)=>{"use strict";b.d(w,{h:()=>i});const i=function a(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},7878:(Ee,w,b)=>{"use strict";b.d(w,{L:()=>a});const a="function"==typeof Symbol&&Symbol.observable||"@@observable"},177:(Ee,w,b)=>{"use strict";b.d(w,{_6:()=>y,jO:()=>Q,yG:()=>v});var a=b(3276),i=b(3946);function te(T){return T[T.length-1]}function Q(T){return(0,a.m)(te(T))?T.pop():void 0}function v(T){return(0,i.K)(te(T))?T.pop():void 0}function y(T,S){return"number"==typeof te(T)?T.pop():S}},1003:(Ee,w,b)=>{"use strict";b.d(w,{D:()=>v});const{isArray:a}=Array,{getPrototypeOf:i,prototype:te,keys:Q}=Object;function v(T){if(1===T.length){const S=T[0];if(a(S))return{args:S,keys:null};if(function y(T){return T&&"object"==typeof T&&i(T)===te}(S)){const N=Q(S);return{args:N.map(k=>S[k]),keys:N}}}return{args:T,keys:null}}},7352:(Ee,w,b)=>{"use strict";function a(i,te){if(i){const Q=i.indexOf(te);0<=Q&&i.splice(Q,1)}}b.d(w,{P:()=>a})},3374:(Ee,w,b)=>{"use strict";function a(i){const Q=i(v=>{Error.call(v),v.stack=(new Error).stack});return Q.prototype=Object.create(Error.prototype),Q.prototype.constructor=Q,Q}b.d(w,{d:()=>a})},5017:(Ee,w,b)=>{"use strict";function a(i,te){return i.reduce((Q,v,y)=>(Q[v]=te[y],Q),{})}b.d(w,{n:()=>a})},1685:(Ee,w,b)=>{"use strict";b.d(w,{O:()=>Q,x:()=>te});var a=b(6786);let i=null;function te(v){if(a.config.useDeprecatedSynchronousErrorHandling){const y=!i;if(y&&(i={errorThrown:!1,error:null}),v(),y){const{errorThrown:T,error:S}=i;if(i=null,T)throw S}}else v()}function Q(v){a.config.useDeprecatedSynchronousErrorHandling&&i&&(i.errorThrown=!0,i.error=v)}},8382:(Ee,w,b)=>{"use strict";function a(i,te,Q,v=0,y=!1){const T=te.schedule(function(){Q(),y?i.add(this.schedule(null,v)):this.unsubscribe()},v);if(i.add(T),!y)return T}b.d(w,{f:()=>a})},2390:(Ee,w,b)=>{"use strict";function a(i){return i}b.d(w,{y:()=>a})},4936:(Ee,w,b)=>{"use strict";b.d(w,{z:()=>a});const a=i=>i&&"number"==typeof i.length&&"function"!=typeof i},5e3:(Ee,w,b)=>{"use strict";b.d(w,{D:()=>i});var a=b(3276);function i(te){return Symbol.asyncIterator&&(0,a.m)(te?.[Symbol.asyncIterator])}},3276:(Ee,w,b)=>{"use strict";function a(i){return"function"==typeof i}b.d(w,{m:()=>a})},8620:(Ee,w,b)=>{"use strict";b.d(w,{c:()=>te});var a=b(7878),i=b(3276);function te(Q){return(0,i.m)(Q[a.L])}},5074:(Ee,w,b)=>{"use strict";b.d(w,{T:()=>te});var a=b(8279),i=b(3276);function te(Q){return(0,i.m)(Q?.[a.h])}},2753:(Ee,w,b)=>{"use strict";b.d(w,{t:()=>i});var a=b(3276);function i(te){return(0,a.m)(te?.then)}},3130:(Ee,w,b)=>{"use strict";b.d(w,{L:()=>Q,Q:()=>te});var a=b(2970),i=b(3276);function te(v){return(0,a.__asyncGenerator)(this,arguments,function*(){const T=v.getReader();try{for(;;){const{value:S,done:N}=yield(0,a.__await)(T.read());if(N)return yield(0,a.__await)(void 0);yield yield(0,a.__await)(S)}}finally{T.releaseLock()}})}function Q(v){return(0,i.m)(v?.getReader)}},3946:(Ee,w,b)=>{"use strict";b.d(w,{K:()=>i});var a=b(3276);function i(te){return te&&(0,a.m)(te.schedule)}},4049:(Ee,w,b)=>{"use strict";b.d(w,{A:()=>i,e:()=>te});var a=b(3276);function i(Q){return(0,a.m)(Q?.lift)}function te(Q){return v=>{if(i(v))return v.lift(function(y){try{return Q(y,this)}catch(T){this.error(T)}});throw new TypeError("Unable to lift unknown Observable type")}}},4574:(Ee,w,b)=>{"use strict";b.d(w,{Z:()=>Q});var a=b(8412);const{isArray:i}=Array;function Q(v){return(0,a.U)(y=>function te(v,y){return i(y)?v(...y):v(y)}(v,y))}},1952:(Ee,w,b)=>{"use strict";function a(){}b.d(w,{Z:()=>a})},5625:(Ee,w,b)=>{"use strict";b.d(w,{h:()=>te});var a=b(6786),i=b(1296);function te(Q){i.z.setTimeout(()=>{const{onUnhandledError:v}=a.config;if(!v)throw Q;v(Q)})}},1380:(Ee,w,b)=>{"use strict";function a(i){return new TypeError(`You provided ${null!==i&&"object"==typeof i?"an invalid object":`'${i}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}b.d(w,{z:()=>a})},1106:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.decode=w.encode=void 0;const i=b(2970).__importDefault(b(1505)),te=["string","email","phone","html","xml"],Q=["json","bool","url","int","uint","float","money","hex","uuid","base64","void",...te];class y extends Error{constructor(C,O,R){let ie;try{ie=JSON.stringify(R)}catch{ie=String(R)}super(`Invalid type at '${C}', expected ${String(O)}, got ${ie}`)}}function T(A,C,O){if("json"===C)return null==O?null:JSON.parse(JSON.stringify(O));if("bool"===C){if("boolean"!=typeof O)throw new y(A,C,O);return O}if(te.indexOf(C)>=0){if("string"!=typeof O)throw new y(A,C,O);return O}if("hex"===C){if("string"!=typeof O||!/^(?:[A-Fa-f0-9]{2})*$/u.test(O))throw new y(A,C,O);return O.toLowerCase()}if("uuid"===C){if("string"!=typeof O||!/^[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(O))throw new y(A,C,O);return O.toLowerCase()}if("base64"===C){let R=!0;try{atob(O)}catch{R=!1}if("string"!=typeof O||!R||Buffer.from(O,"base64").toString("base64")!==O)throw new y(A,C,O);return O}if("int"===C){if("number"!=typeof O||(0|O)!==O)throw new y(A,C,O);return O}if("uint"===C){if("number"!=typeof O||(0|O)!==O||O<0)throw new y(A,C,O);return O}if("float"===C){if("number"!=typeof O)throw new y(A,C,O);return O}if("money"===C){if("number"!=typeof O||!Number.isInteger(O))throw new y(A,C,O);return O}if("url"===C){let R;if("string"==typeof O)try{R=new URL(O)}catch{}if(!R)throw new y(A,C,O);return R.toString()}if("void"===C)return null;throw new Error(`Unknown type '${C}' at '${A}'`)}function S(A){return typeof Buffer<"u"&&A instanceof Buffer}w.encode=function k(A,C,O,R){if("string"==typeof O&&!O.endsWith("?")&&"void"!==O&&null==R)throw new Error(`Invalid type at '${C}', cannot be null`);if(Array.isArray(O)){for(const ie of O){if(ie===R)return R;if(Array.isArray(R)&&2===R.length&&ie===R[0])return R[0];if(Array.isArray(ie)&&2===ie.length){if(ie[0]===R)return[R,k(A,`${C}.${ie[0]}`,ie[1],{})];if(Array.isArray(R)&&2===R.length&&ie[0]===R[0])return[R[0],k(A,`${C}.${ie[0]}`,ie[1],R[1])]}}throw new y(C,O,R)}if("object"==typeof O){if("object"!=typeof R)throw new y(C,O,R);const ie={};for(const J of Object.keys(O))ie[J]=k(A,`${C}.${J}`,O[J],R[J]);return ie}if(O.endsWith("?"))return null==R?null:k(A,C,O.slice(0,O.length-1),R);if(O.endsWith("[]")){if(!Array.isArray(R))throw new y(C,O,R);return R.map((ie,J)=>k(A,`${C}[${J}]`,O.slice(0,O.length-2),ie))}if(Q.indexOf(O)>=0)return T(C,O,R);if("bytes"===O){if(!(R instanceof ArrayBuffer||R instanceof Uint8Array||S(R)))throw new y(C,O,R);return S(R)?R.toString("base64"):function N(A){const C=A instanceof Uint8Array?A:new Uint8Array(A),O=C,{toBase64:R}=O;if("function"==typeof R)return R.call(C);const ie=[];for(let J=0;J<C.length;J+=32768)ie.push(String.fromCharCode(...Array.from(C.subarray(J,J+32768))));return btoa(ie.join(""))}(R)}if("bigint"===O){if("bigint"!=typeof R)throw new y(C,O,R);return R.toString()}if("cpf"===O){if("string"!=typeof R)throw new y(C,O,R);return R}if("cnpj"===O){if("string"!=typeof R)throw new y(C,O,R);return R}if("date"===O){if((!(R instanceof Date)||isNaN(R.getTime()))&&("string"!=typeof R||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(R)))throw new y(C,O,R);const ie=R instanceof Date?R:new Date(R);return`${ie.getFullYear().toString().padStart(4,"0")}-${(ie.getMonth()+1).toString().padStart(2,"0")}-${ie.getDate().toString().padStart(2,"0")}`}if("datetime"===O){if((!(R instanceof Date)||isNaN(R.getTime()))&&("string"!=typeof R||!/^[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(R)))throw new y(C,O,R);return("string"==typeof R?new Date(R):R).toISOString().replace("Z","")}if("decimal"===O){if(!("number"==typeof R||"string"==typeof R&&/^-?[0-9]+(?:\.[0-9]+)?$/u.test(R)||R instanceof i.default))throw new y(C,O,R);return new i.default(R).toString()}{const ie=A[O];if(ie)return k(A,C,ie,R);throw new Error(`Unknown type '${O}' at '${C}'`)}},w.decode=function W(A,C,O,R){if("string"==typeof O&&!O.endsWith("?")&&"void"!==O&&null==R)throw new Error(`Invalid type at '${C}', cannot be null`);if(Array.isArray(O)){for(const ie of O){if(ie===R)return R;if(Array.isArray(R)&&2===R.length&&ie===R[0])return R[0];if(Array.isArray(ie)&&2===ie.length){if(ie[0]===R)return[R,W(A,`${C}.${ie[0]}`,ie[1],{})];if(Array.isArray(R)&&2===R.length&&ie[0]===R[0])return[R[0],W(A,`${C}.${ie[0]}`,ie[1],R[1])]}}throw new y(C,O,R)}if("object"==typeof O){if("object"!=typeof R)throw new y(C,O,R);const ie={};for(const J of Object.keys(O))ie[J]=W(A,`${C}.${J}`,O[J],R[J]);return ie}if(O.endsWith("?"))return null==R?null:W(A,C,O.slice(0,O.length-1),R);if(O.endsWith("[]")){if(!Array.isArray(R))throw new y(C,O,R);return R.map((ie,J)=>W(A,`${C}[${J}]`,O.slice(0,O.length-2),ie))}if(Q.indexOf(O)>=0)return T(C,O,R);if("bytes"!==O){if("bigint"===O){if("number"!=typeof R&&("string"!=typeof R||!/^-?[0-9]+$/u.test(R)))throw new y(C,O,R);return BigInt(R)}if("cpf"===O){if("string"!=typeof R)throw new y(C,O,R);return R}if("cnpj"===O){if("string"!=typeof R)throw new y(C,O,R);return R}if("date"===O){if("string"!=typeof R||!/^[0-9]{4}-[01][0-9]-[0123][0-9]$/u.test(R))throw new y(C,O,R);const ie=parseInt(R.split("-")[2],10),J=parseInt(R.split("-")[1],10)-1,ce=parseInt(R.split("-")[0],10),Fe=new Date(ce,J,ie);if(Fe.getFullYear()!==ce||Fe.getMonth()!==J||Fe.getDate()!==ie)throw new y(C,O,R);return Fe}if("datetime"===O){if("string"!=typeof R||!/^[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(R))throw new y(C,O,R);return new Date(`${R.endsWith("Z")?R:R.concat("Z")}`)}if("decimal"===O){if("number"!=typeof R&&("string"!=typeof R||!/^-?[0-9]+(?:\.[0-9]+)?$/u.test(R)))throw new y(C,O,R);return new i.default(R)}{const ie=A[O];if(ie)return W(A,C,ie,R);throw new Error(`Unknown type '${O}' at '${C}'`)}}if("string"!=typeof R)throw new y(C,`${O} (base 64)`,R);try{return Uint8Array.from(atob(R),ie=>ie.charCodeAt(0))}catch{const ie=Buffer.from(R,"base64");if(ie.toString("base64")!==R)throw new y(C,`${O} (base 64)`,R);return ie}}},6373:(Ee,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.SdkgenErrorWithData=w.SdkgenError=void 0;class b extends Error{get type(){return this.constructor.name}toJSON(){return{message:this.message,type:this.type}}}w.SdkgenError=b,w.SdkgenErrorWithData=class a extends b{constructor(te,Q){super(te),this.data=Q}toJSON(){return{data:this.data,message:this.message,type:this.type}}}},6463:(Ee,w,b)=>{"use strict";var a=b(7156).default;Object.defineProperty(w,"__esModule",{value:!0}),w.SdkgenHttpClient=void 0;const i=b(1106);function te(S){let N="";for(let k=0;k<2*S;++k)N+="0123456789abcdef"[Math.floor(16*Math.random())];return N}const Q=te(20);function v(){try{let S=localStorage.getItem("deviceId");return S||(S=Q,localStorage.setItem("deviceId",S)),S}catch{return Q}}function y(S,N){return N in S}w.SdkgenHttpClient=class T{constructor(N,k,W){this.baseUrl=N,this.astJson=k,this.errClasses=W,this.extra=new Map,this.successHook=()=>{},this.errorHook=()=>{}}makeRequest(N,k){var W=this;return a(function*(){const A=W.astJson.functionTable[N];if(!A)throw new Error(`Unknown function ${N}`);const C={};W.extra.forEach((J,ce)=>{C[ce]=J});const O={args:(0,i.encode)(W.astJson.typeTable,`${N}.args`,A.args,k),deviceInfo:{id:v(),language:navigator.language,platform:{browserUserAgent:navigator.userAgent},timezone:"object"==typeof Intl?Intl.DateTimeFormat().resolvedOptions().timeZone:null,type:"web",version:document.currentScript?.getAttribute("src")??""},extra:C,name:N,requestId:te(16),version:3},R=yield new Promise((J,ce)=>{const Fe=new XMLHttpRequest;Fe.open("POST",`${W.baseUrl}/${N}`),Fe.setRequestHeader("Content-Type","application/sdkgen"),Fe.onreadystatechange=()=>{if(4===Fe.readyState)try{const ze=JSON.parse(Fe.responseText);try{y(ze,"error")&&ze.error?ce(ze.error):J(y(ze,"result")?ze.result:null)}catch(Ve){ce({message:`${Ve}`,type:"Fatal"})}}catch{ce({message:"Falha de conex\xe3o com o servidor",type:"Fatal"})}},Fe.send(JSON.stringify(O))}).catch(J=>{if(W.errorHook(J,N,k),y(J,"type")&&y(J,"message")&&"string"==typeof J.type&&"string"==typeof J.message){const ce=J.type in W.errClasses?J.type:"Fatal",Fe=W.errClasses[ce],ze=W.astJson.errors.find(Se=>Array.isArray(Se)?Se[0]===ce:Se===ce);let Ve;throw Ve=ze&&Array.isArray(ze)&&y(J,"data")?new Fe(J.message,(0,i.decode)(W.astJson.typeTable,`${ce}.data`,ze[1],J.data)):new Fe(J.message,void 0),Ve.type=ce,Ve}throw J}),ie=(0,i.decode)(W.astJson.typeTable,`${N}.ret`,A.ret,R);return W.successHook(ie,N,k),ie})()}}},1611:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});const a=b(2970);a.__exportStar(b(6373),w),a.__exportStar(b(6463),w)},8520:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateCSharpServerSource=void 0;const a=b(6068),i=b(3245);w.generateCSharpServerSource=function te(Q){let v="using System;\nusing System.Collections.Generic;\nusing System.Globalization;\nusing System.Numerics;\nusing System.Text.Json;\nusing System.Threading.Tasks;\nusing static Sdkgen.Runtime;\nusing static Sdkgen.Context;\nusing static Sdkgen.Helpers;\n\nnamespace SdkgenGenerated\n{\n public abstract class Api : BaseApi\n {";for(const y of Q.operations){const T=y.returnType instanceof a.VoidPrimitiveType?"":`<${(0,i.generateTypeName)(y.returnType)}>`;v+=`\n public virtual Task${T} ${(0,i.capitalize)(y.name)}(${["Context ctx",...y.args.map(S=>`${(0,i.generateTypeName)(S.type)} ${(0,i.ident)(S.name)}`)].join(", ")})\n {\n return Task.FromException${T}(new FatalException("Function '${y.name}' not implemented."));\n }\n`}v+="\n public async Task ExecuteFunction(Context context_, Utf8JsonWriter resultWriter_)\n {\n switch (context_.Name)\n {";for(const y of Q.operations){v+=`\n case ${JSON.stringify(y.name)}:\n {`;for(const T of y.args)v+=`\n JsonElement ${T.name}Json_;\n if (!context_.Args.TryGetValue(${JSON.stringify(T.name)}, out ${T.name}Json_))\n {\n ${T.type instanceof a.OptionalType?`${T.name}Json_ = new JsonElement();`:`throw new FatalException("'${y.name}().args.${T.name}' must be set to a value of type ${T.type.name}.");`}\n }\n ${(0,i.generateTypeName)(T.type)} ${(0,i.ident)(T.name)};\n ${(0,i.decodeType)(T.type,`${T.name}Json_`,`"${y.name}().args.${T.name}"`,(0,i.ident)(T.name)).replace(/\n/gu,"\n ")}`;v+=y.returnType instanceof a.VoidPrimitiveType?`\n await ${(0,i.capitalize)(y.name)}(${["context_",...y.args.map(T=>(0,i.ident)(T.name))].join(", ")});\n resultWriter_.WriteNullValue();`:`\n var result_ = await ${(0,i.capitalize)(y.name)}(${["context_",...y.args.map(T=>(0,i.ident)(T.name))].join(", ")});\n ${(0,i.encodeType)(y.returnType,"result_",`"${y.name}().ret"`).replace(/\n/gu,"\n ")}`,v+="\n return;\n }"}v+="\n default:\n {\n throw new FatalException($\"Unknown function '{context_.Name}'.\");\n }\n }\n }\n";for(const y of Q.structTypes)v+=(0,i.generateStruct)(y);for(const y of Q.enumTypes)v+=(0,i.generateEnum)(y);v+=`\n public string GetAstJson() => @"${JSON.stringify((0,a.astToJson)(Q),null,4).replace(/"/gu,'""').replace(/\n/gu,"\n ")}";\n }\n`;for(const y of Q.errors)v+=`\n public class ${y.name}Exception : SdkgenException\n {\n public ${y.name}Exception(string message, Exception? inner = null) : base("${y.name}", message, inner) { }\n }\n`;return v+="\n}\n",v}},3245:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateEnum=w.generateStruct=w.encodeType=w.decodeType=w.generateTypeName=w.capitalize=w.ident=void 0;const a=b(6068),i=["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"],te=[a.StringPrimitiveType,a.HtmlPrimitiveType,a.CpfPrimitiveType,a.CnpjPrimitiveType,a.BytesPrimitiveType,a.EmailPrimitiveType,a.UrlPrimitiveType,a.UuidPrimitiveType,a.HexPrimitiveType,a.Base64PrimitiveType,a.XmlPrimitiveType,a.StructType,a.ArrayType],Q=[a.BigIntPrimitiveType,a.DatePrimitiveType,a.DateTimePrimitiveType,a.FloatPrimitiveType,a.IntPrimitiveType,a.MoneyPrimitiveType,a.DecimalPrimitiveType,a.UIntPrimitiveType];function v(A){return i.includes(A)?`@${A}`:A}function y(A){return A[0].toUpperCase()+A.slice(1)}function T(A){switch(A.constructor){case a.StringPrimitiveType:return"string";case a.IntPrimitiveType:return"int";case a.UIntPrimitiveType:return"uint";case a.FloatPrimitiveType:return"double";case a.BigIntPrimitiveType:return"BigInteger";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"DateTime";case a.BoolPrimitiveType:return"bool";case a.BytesPrimitiveType:return"byte[]";case a.MoneyPrimitiveType:case a.DecimalPrimitiveType:return"decimal";case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"string";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"JsonElement";case a.OptionalType:return`${T(A.base)}?`;case a.ArrayType:return`List<${T(A.base)}>`;case a.StructType:case a.EnumType:return A.name;case a.TypeReference:return T(A.type);default:throw new Error(`BUG: generateTypeName with ${A.constructor.name}`)}}function S(A,C,O,R,ie=1,J=!0){switch(A.constructor){case a.IntPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.Number || !${C}.TryGetInt32(out ${R}))\n {\n throw new FatalException($"'{${O}}' must be an integer");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.UIntPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.Number || !${C}.TryGetUInt32(out ${R}))\n {\n throw new FatalException($"'{${O}}' must be an unsigned integer.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.DecimalPrimitiveType:case a.MoneyPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.Number || !${C}.TryGetDecimal(out ${R}) || ${R} % 1 != 0)\n {\n throw new FatalException($"'{${O}}' must be an integer amount of cents.");\n }\n ${R} /= 100;\n `.replace(/\n {16}/gu,"\n").trim();case a.FloatPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.Number || !${C}.TryGetDouble(out ${R}))\n {\n throw new FatalException($"'{${O}}' must be a floating-point number.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.BigIntPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String || !BigInteger.TryParse(${C}.GetString(), out ${R}))\n {\n throw new FatalException($"'{${O}}' must be an arbitrarily large integer in a string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.StringPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${O}}' must be a string.");\n }\n ${R} = ${C}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.HtmlPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${O}}' must be a valid HTML string.");\n }\n ${R} = ${C}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.CpfPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${O}}' must be a valid CPF string.");\n }\n ${R} = ${C}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.CnpjPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${O}}' must be a valid CNPJ string.");\n }\n ${R} = ${C}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.EmailPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${O}}' must be a valid email.");\n }\n ${R} = ${C}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.UrlPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${O}}' must be a valid URL string.");\n }\n ${R} = ${C}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.UuidPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${O}}' must be a valid UUID.");\n }\n ${R} = ${C}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.HexPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${O}}' must be a valid hex string.");\n }\n ${R} = ${C}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.Base64PrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${O}}' must be a base64 string.");\n }\n ${R} = ${C}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.XmlPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${O}}' must be a XML string.");\n }\n ${R} = ${C}.GetString();\n `.replace(/\n {16}/gu,"\n").trim();case a.BoolPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.True && ${C}.ValueKind != JsonValueKind.False)\n {\n throw new FatalException($"'{${O}}' must be either true or false.");\n }\n ${R} = ${C}.GetBoolean();\n `.replace(/\n {16}/gu,"\n").trim();case a.BytesPrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String)\n {\n throw new FatalException($"'{${O}}' must be a string.");\n }\n try\n {\n ${R} = Convert.FromBase64String(${C}.GetString());\n }\n catch (FormatException)\n {\n throw new FatalException($"'{${O}}' must be a base64 string.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.TypeReference:return S(A.type,C,O,R,ie);case a.OptionalType:if(Q.includes(A.base.constructor)){const ce=`${R.replace(/[^0-9a-zA-Z]/gu,"")}Tmp`;return`\n if (${C}.ValueKind == JsonValueKind.Null || ${C}.ValueKind == JsonValueKind.Undefined)\n {\n ${R} = null;\n }\n else\n {\n ${T(A.base)} ${ce};\n ${S(A.base,C,O,ce,ie,!1).replace(/\n/gu,"\n ")}\n ${R} = ${ce};\n }\n `.replace(/\n {20}/gu,"\n").trim()}return`\n if (${C}.ValueKind == JsonValueKind.Null || ${C}.ValueKind == JsonValueKind.Undefined)\n {\n ${R} = null;\n }\n else\n {\n ${S(A.base,C,O,R,ie,!1).replace(/\n/gu,"\n ")}\n }\n `.replace(/\n {20}/gu,"\n").trim();case a.EnumType:case a.StructType:return`${R} = Decode${A.name}(${C}, ${O});`;case a.JsonPrimitiveType:return J?`\n if (${C}.ValueKind == JsonValueKind.Null || ${C}.ValueKind == JsonValueKind.Undefined)\n {\n throw new FatalException($"'{${O}}' can't be null.");\n }\n ${R} = ${C};\n `.replace(/\n {16}/gu,"\n").trim():`${R} = ${C};`;case a.DateTimePrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${C}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${R}) || DateTime.TryParseExact(${C}.GetString(), "yyyy-MM-ddTHH:mm:ss.FFFFFFF'Z'", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${R})))\n {\n throw new FatalException($"'{${O}}' must be a datetime.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.DatePrimitiveType:return`\n if (${C}.ValueKind != JsonValueKind.String || !(DateTime.TryParseExact(${C}.GetString(), "yyyy-MM-dd", CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal | DateTimeStyles.AssumeUniversal, out ${R})))\n {\n throw new FatalException($"'{${O}}' must be a date.");\n }\n `.replace(/\n {16}/gu,"\n").trim();case a.ArrayType:return`\n if (${C}.ValueKind != JsonValueKind.Array)\n {\n throw new FatalException($"'{${O}}' must be a date.");\n }\n ${R} = new ${T(A)}();\n for (var i${ie} = 0; i${ie} < ${C}.GetArrayLength(); ++i${ie})\n {\n ${T(A.base)} element${ie};\n ${S(A.base,`${C}[i${ie}]`,`$"{${O}}[{i${ie}}]"`,`element${ie}`,ie+1).replace(/\n/gu,"\n ")}\n ${R}.Add(element${ie});\n }\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${A.constructor.name}`)}}function N(A,C,O,R=1){switch(A.constructor){case a.StringPrimitiveType:return`resultWriter_.WriteStringValue(${C});`;case a.FloatPrimitiveType:case a.UIntPrimitiveType:case a.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${C});`;case a.DecimalPrimitiveType:case a.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(Math.Round(${C} * 100));`;case a.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${C}.ToString());`;case a.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${C});`;case a.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${C}));`;case a.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${C}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"));`;case a.DatePrimitiveType:return`resultWriter_.WriteStringValue(${C}.ToString("yyyy-MM-dd"));`;case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.Base64PrimitiveType:case a.HexPrimitiveType:case a.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${C});`;case a.OptionalType:{let ie=A.base;for(;ie instanceof a.TypeReference;)ie=ie.type;return`\n if (${C} == null)\n {\n resultWriter_.WriteNullValue();\n }\n else\n {\n ${N(ie,te.includes(ie.constructor)?C:`${C}.Value`,O,R).replace(/\n/gu,"\n ")}\n }`.replace(/\n {16}/gu,"\n").trim()}case a.TypeReference:return N(A.type,C,O,R);case a.EnumType:case a.StructType:return`Encode${A.name}(${C}, resultWriter_, ${O});`;case a.JsonPrimitiveType:return`${C}.WriteTo(resultWriter_);`;case a.ArrayType:return`\n resultWriter_.WriteStartArray();\n for (var i${R} = 0; i${R} < ${C}.Count; ++i${R})\n {\n ${N(A.base,`${C}[i${R}]`,`$"{${O}}[{i${R}}]"`,R+1).replace(/\n/gu,"\n ")}\n }\n resultWriter_.WriteEndArray();\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${A.constructor.name}`)}}w.ident=v,w.capitalize=y,w.generateTypeName=T,w.decodeType=S,w.encodeType=N,w.generateStruct=function k(A){return`\n public class ${A.name}\n {${A.fields.map(C=>`\n public ${T(C.type)} ${y(C.name)};`).join("")}\n public ${A.name}(${A.fields.map(C=>`${T(C.type)} ${v(C.name)}`).join(", ")})\n {${A.fields.map(C=>`\n ${y(C.name)} = ${v(C.name)};`).join("")}\n }\n }\n\n ${A.name} Decode${A.name}(JsonElement json_, string path_)\n {\n if (json_.ValueKind != JsonValueKind.Object)\n {\n throw new FatalException($"'{path_}' must be an object.");\n }\n${A.fields.map(C=>` JsonElement ${C.name}Json_;\n if (!json_.TryGetProperty(${JSON.stringify(C.name)}, out ${C.name}Json_))\n {\n ${C.type instanceof a.OptionalType?`${C.name}Json_ = new JsonElement();`:`throw new FatalException($"'{path_}.${C.name}' must be set to a value of type ${C.type.name}.");`}\n }\n ${T(C.type)} ${v(C.name)};\n ${S(C.type,`${C.name}Json_`,`$"{path_}.${C.name}"`,v(C.name)).replace(/\n/gu,"\n ")}`).join("\n")}\n return new ${A.name}(${A.fields.map(C=>v(C.name)).join(", ")});\n }\n\n void Encode${A.name}(${A.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {\n resultWriter_.WriteStartObject();\n ${A.fields.map(C=>`resultWriter_.WritePropertyName(${JSON.stringify(C.name)});\n ${N(C.type,`obj_.${y(C.name)}`,`$"{path_}.${C.name}"`).replace(/\n/gu,"\n ")}`).join("\n ")}\n resultWriter_.WriteEndObject();\n }\n`},w.generateEnum=function W(A){return`\n public enum ${A.name}\n {${A.values.map(({value:C})=>`\n ${y(C)}`).join(",\n ")}\n }\n\n ${A.name} Decode${A.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();${A.values.map(({value:C})=>`\n if (value == "${C}")\n {\n return ${A.name}.${y(C)};\n }`).join("")}\n throw new FatalException($"'{path_}' must be one of: (${A.values.map(({value:C})=>`'${C}'`).join(", ")}).");\n }\n\n void Encode${A.name}(${A.name} obj_, Utf8JsonWriter resultWriter_, string path_)\n {${A.values.map(({value:C})=>`\n if (obj_ == ${A.name}.${y(C)})\n {\n resultWriter_.WriteStringValue("${C}");\n }`).join("")}\n }\n`}},5626:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),b(2970).__exportStar(b(8520),w)},6249:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateDartClientSource=void 0;const a=b(6068),i=b(7812);w.generateDartClientSource=function te(Q){let v="";v+="// ignore_for_file: constant_identifier_names\n",(0,a.hasType)(Q,a.BytesPrimitiveType)&&(v+="import 'dart:typed_data';\n"),(0,a.hasType)(Q,a.DecimalPrimitiveType)&&(v+="import 'package:decimal/decimal.dart';\n"),v+="import 'package:http/http.dart' as http;\nimport 'package:sdkgen_runtime/types.dart';\nimport 'package:sdkgen_runtime/http_client.dart';\n";for(const y of Q.enumTypes)v+=(0,i.generateEnum)(y),v+="\n";for(const y of Q.structTypes)v+=(0,i.generateClass)(y),v+="\n";for(const y of Q.errors)v+=(0,i.generateErrorClass)(y),v+="\n";v+=`class ApiClient extends SdkgenHttpClient {\n ApiClient(String baseUrl, [http.Client? client]) : super(baseUrl, client, _typeTable, _fnTable, _errTable);\n${Q.operations.filter(y=>y.annotations.every(T=>!(T instanceof a.HiddenAnnotation))).map(y=>`\n ${y.returnType instanceof a.VoidPrimitiveType?"Future<void> ":`Future<${(0,i.generateTypeName)(y.returnType)}> `}${y.name}(${0===y.args.length?"":`{${y.args.map(T=>`${T.type instanceof a.OptionalType?"":"required "}${(0,i.generateTypeName)(T.type)} ${(0,i.mangle)(T.name)}`).join(", ")}}`}) async { ${y.returnType instanceof a.VoidPrimitiveType?"":"final result = "}await makeRequest('${y.name}', {${y.args.map(T=>`'${T.name}': ${(0,i.mangle)(T.name)}`).join(", ")}});${y.returnType instanceof a.VoidPrimitiveType?"":` return ${(0,i.cast)("result",y.returnType)};`}}`).join("")}\n}\n\n`,v+="var _typeTable = {\n";for(const y of Q.structTypes){v+=` '${y.name}': StructTypeDescription(\n`,v+=` ${y.name},\n`,v+=" {\n";for(const T of y.fields)v+=` '${T.name}': '${T.type.name}',\n`;v+=" },\n",v+=` (Map fields) => ${y.name}(\n`;for(const T of y.fields)v+=` ${(0,i.mangle)(T.name)}: ${(0,i.cast)(`fields['${T.name}']`,T.type)},\n`;v+=" ),\n",v+=` (${y.name} obj) => ({\n`;for(const T of y.fields)v+=` '${T.name}': obj.${(0,i.mangle)(T.name)},\n`;v+=" }),\n",v+=" ),\n"}for(const y of Q.enumTypes)v+=` '${y.name}': EnumTypeDescription(${y.name}, ${y.name}.values, [\n ${y.values.map(T=>`'${T.value}'`).join(",\n ")}\n ]),\n`;v+="};\n\n",v+="var _fnTable = {\n";for(const y of Q.operations){v+=` '${y.name}': FunctionDescription('${y.returnType.name}', {\n`;for(const T of y.args)v+=` '${T.name}': '${T.type.name}',\n`;v+=" }),\n"}v+="};\n\n",v+="var _errTable = {\n";for(const y of Q.errors)v+=` '${y.name}': SdkgenErrorDescription('${y.dataType.name}', (msg, req, data) => ${y.name}(msg, req${y.dataType instanceof a.VoidPrimitiveType?"":", data"})),\n`;return v+="};\n",v}},7812:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateClass=w.cast=w.generateErrorClass=w.generateTypeName=w.generateEnum=w.mangle=void 0;const a=b(6068);function i(A){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(A)?`$${A}`:A}function Q(A){switch(A.constructor){case a.StringPrimitiveType:return"String";case a.IntPrimitiveType:case a.UIntPrimitiveType:return"int";case a.FloatPrimitiveType:return"double";case a.BigIntPrimitiveType:return"BigInt";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"DateTime";case a.BoolPrimitiveType:return"bool";case a.BytesPrimitiveType:return"Uint8List";case a.MoneyPrimitiveType:return"int";case a.DecimalPrimitiveType:return"Decimal";case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"String";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"dynamic";case a.OptionalType:return`${Q(A.base)}?`;case a.ArrayType:return`List<${Q(A.base)}>`;case a.StructType:case a.EnumType:return A.name;case a.TypeReference:return Q(A.type);default:throw new Error(`BUG: generateTypeName with ${A.constructor.name}`)}}w.mangle=i,w.generateEnum=function te(A){return`enum ${A.name} {\n ${A.values.map(C=>C.value).join(",\n ")}\n}\n`},w.generateTypeName=Q,w.generateErrorClass=function v(A){if(A.dataType instanceof a.VoidPrimitiveType)return`class ${A.name} extends SdkgenError {\n ${A.name}(super.msg, super.request);\n}\n`;const C=Q(A.dataType);return`class ${A.name} extends SdkgenErrorWithData<${C}> {\n ${A.name}(super.msg, super.request, super.data);\n}\n`},w.cast=function y(A,C){return C instanceof a.OptionalType?`${A} == null ? null : ${y(A,C.base)}`:C instanceof a.ArrayType?`(${A} as List).map((e) => ${y("e",C.base)}).toList()`:C instanceof a.VoidPrimitiveType?A:C instanceof a.FloatPrimitiveType?`(${A} as num).toDouble()`:C instanceof a.MoneyPrimitiveType?`${A} as int`:`${A} as ${Q(C)}`},w.generateClass=function W(A){return`class ${A.name} {\n ${A.fields.map(C=>`final ${Q(C.type)} ${i(C.name)};`).join("\n ")}\n\n${function T(A){let C=` ${A.name}({\n`;for(const O of A.fields)C+=O.type instanceof a.OptionalType?" ":" required ",C+=`this.${i(O.name)},\n`;return C+=" });\n",C}(A)}\n${function S(A){let C=" @override\n bool operator ==(other){\n";return C+=" if (identical(this, other)) return true;\n",C+=` return ${[`other is ${A.name}`,...A.fields.map(O=>`${i(O.name)} == other.${i(O.name)}`)].join(" && ")};\n`,C+=" }\n",C}(A)}\n${function N(A){return` @override\n int get hashCode => Object.hashAllUnordered([${A.fields.map(C=>i(C.name)).join(", ")}]);\n`}(A)}\n${function k(A){return` @override\n String toString() {\n return '${A.name} { ${A.fields.map(C=>`${C.name}: $${i(C.name).startsWith("$")?`{${i(C.name)}}`:i(C.name)}`).join(", ")} }';\n }\n`}(A)}}\n`}},551:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),b(2970).__exportStar(b(6249),w)},4155:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateFSharpServerSource=void 0;const a=b(6068),i=b(3882);w.generateFSharpServerSource=function te(Q){let v="module rec SdkgenGenerated\nopen Sdkgen.Runtime\nopen Sdkgen.Helpers\nopen Sdkgen.Context\nopen System.Threading.Tasks\nopen System.Text.Json\nopen System\nopen System.Globalization\n#if NET5_0\n// To use tasks as computation expression in .NET 5 install https://www.nuget.org/packages/TaskBuilder.fs/\nopen FSharp.Control.Tasks.V2.ContextInsensitive\n#endif\n";for(const y of Q.errors)v+=`\ntype ${y.name}Exception =\n inherit SdkgenException\n\n new(message: string) = {\n inherit SdkgenException("${y.name}", message, null)\n }\n\n new(message: string, inner: Exception) = {\n inherit SdkgenException("${y.name}", message, inner)\n }\n`;for(const y of Q.enumTypes)v+=`\n${(0,i.generateEnum)(y)}\n`;for(const y of Q.structTypes)v+=`\n${(0,i.generateStruct)(y)}\n`;v+="\ntype Api() =";for(const y of Q.operations){const T=y.returnType instanceof a.VoidPrimitiveType?"":`<${(0,i.generateTypeName)(y.returnType)}>`,S=y.args.length>0?`{| ${y.args.map(N=>`${N.name}: ${(0,i.generateTypeName)(N.type)};`).join("")} |} ->`:"";v+=`\n member val ${(0,i.capitalize)(y.name)}: Context -> ${S} Task${T} =\n fun _ -> (raise (FatalException("Function '${y.name}' not implemented.")))\n with get, set\n `}v+="\n interface BaseApi with\n member __.ExecuteFunction(context_: Context, resultWriter_: Utf8JsonWriter) : Task =\n task {\n match context_.Name with";for(const y of Q.operations){v+=`\n | ${JSON.stringify(y.name)} ->`;for(const T of y.args)v+=`\n let ${T.name}Json_ =\n match context_.Args.TryGetValue(${JSON.stringify(T.name)}) with\n | true, v -> v\n | _ -> raise (FatalException("'${y.name}().args.${T.name}' must be set to a value of type ${T.type.name}."))\n\n let ${(0,i.ident)(T.name)} =\n ${(0,i.decodeType)(T.type,`${T.name}Json_`,`"${y.name}().args.${T.name}"`,(0,i.ident)(T.name)).replace(/\n/gu,"\n ")}`;v+=y.returnType instanceof a.VoidPrimitiveType?`\n\n do! (__.${(0,i.capitalize)(y.name)} context_ ${y.args.length>0?"{|":""} ${y.args.map(T=>`${T.name} = ${(0,i.ident)(T.name)}`).join("; ")} ${y.args.length>0?"|}":""})\n `:`\n\n let! result_ = (__.${(0,i.capitalize)(y.name)} context_ ${y.args.length>0?"{|":""} ${y.args.map(T=>`${T.name} = ${(0,i.ident)(T.name)}`).join("; ")} ${y.args.length>0?"|}":""})\n ${(0,i.encodeType)(y.returnType,"result_",`"${y.name}().ret"`,1,!1).replace(/\n/gu,"\n ")}`}return v+="\n\n | _ -> raise (FatalException($\"Unknown function '{context_.Name}'.\"))\n } :> Task",v+=`\n member __.GetAstJson() = """${JSON.stringify((0,a.astToJson)(Q),null,4).replace(/\n/gu,"\n ")}""";`,v}},3882:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateEnum=w.generateStruct=w.encodeType=w.decodeType=w.generateTypeName=w.capitalize=w.ident=void 0;const a=b(6068),i=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","using","static","virtual","void","volatile","while","type","end","id"],Q=[a.BigIntPrimitiveType,a.DatePrimitiveType,a.DateTimePrimitiveType,a.FloatPrimitiveType,a.IntPrimitiveType,a.MoneyPrimitiveType,a.UIntPrimitiveType,a.ArrayType];function v(A){return i.includes(A)?`${A}'`:A}function y(A){return A[0].toUpperCase()+A.slice(1)}function T(A){switch(A.constructor){case a.StringPrimitiveType:return"string";case a.IntPrimitiveType:return"int";case a.UIntPrimitiveType:return"uint";case a.FloatPrimitiveType:return"double";case a.BigIntPrimitiveType:return"bigint";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"DateTime";case a.BoolPrimitiveType:return"bool";case a.BytesPrimitiveType:return"byte[]";case a.MoneyPrimitiveType:return"decimal";case a.UuidPrimitiveType:return"Guid";case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"string";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"JsonElement";case a.OptionalType:return`${T(A.base)} option`;case a.ArrayType:return`${T(A.base)} list`;case a.StructType:case a.EnumType:return A.name;case a.TypeReference:return T(A.type);default:throw new Error(`BUG: generateTypeName with ${A.constructor.name}`)}}function S(A,C,O,R,ie=1,J=!0){switch(A.constructor){case a.IntPrimitiveType:return`\n decodeInt32 ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.UIntPrimitiveType:return`\n decodeUInt32 ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.MoneyPrimitiveType:return`\n (decodeMoney ${C} ${O}) / 100m\n `.replace(/\n {16}/gu,"\n").trim();case a.FloatPrimitiveType:return`\n decodeFloat ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.BigIntPrimitiveType:return`\n decodeBigInt ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.StringPrimitiveType:return`\n decodeString ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.HtmlPrimitiveType:return`\n decodeHtml ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.CpfPrimitiveType:return`\n decodeCpf ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.CnpjPrimitiveType:return`\n decodeCnpj ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.EmailPrimitiveType:return`\n decodeEmail ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.UrlPrimitiveType:return`\n decodeUrl ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.UuidPrimitiveType:return`\n decodeUuid ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.HexPrimitiveType:return`\n decodeHex ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.Base64PrimitiveType:return`\n decodeBase64 ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.XmlPrimitiveType:return`\n decodeXml ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.BoolPrimitiveType:return`\n decodeBool ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.BytesPrimitiveType:return`\n decodeBytes ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.TypeReference:return S(A.type,C,O,R,ie);case a.OptionalType:return Q.includes(A.base.constructor)?`match ${C}.ValueKind with\n | JsonValueKind.Null | JsonValueKind.Undefined -> None\n | _ ->\n (${S(A.base,C,O,R,ie,!1).replace(/\n/gu,"\n ")}) |> Some\n `.replace(/\n {16}/gu,"\n").trim():A.base instanceof a.OptionalType||A.base instanceof a.ArrayType?`\n (>.>) decodeOptional ${S(A.base,C,O,R,ie,!1)}\n `.replace(/\n {16}/gu,"\n").trim():`\n decodeOptional ${S(A.base,C,O,R,ie,!1)}\n `.replace(/\n {16}/gu,"\n").trim();case a.EnumType:case a.StructType:return`Decode${A.name} ${C} ${O}`;case a.JsonPrimitiveType:return J?`\n ${C}\n `.replace(/\n {16}/gu,"\n").trim():`${R} <- ${C}`;case a.DateTimePrimitiveType:return`\n decodeDateTime ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.DatePrimitiveType:return`\n decodeDate ${C} ${O}\n `.replace(/\n {16}/gu,"\n").trim();case a.ArrayType:return`\n match ${C}.ValueKind with\n | JsonValueKind.Array ->\n let mutable list_ = List.empty\n for i1 in 0 .. (${C}.GetArrayLength() - 1) do\n let item = ${C}.[i1]\n let partialResult =\n ${S(A.base,`${C}.[i1]`,`${O.slice(0,-1)}.{i1}"`,R,ie,!1).replace(/\n/gu,"\n ")}\n list_ <- list_ |> List.append [ partialResult ]\n list_\n | _ -> raise (FatalException(${O.slice(0,-1)} must be an array."))\n `.replace(/\n {16}/gu,"\n").trim();default:throw new Error(`BUG: decodeType with ${A.constructor.name}`)}}function N(A,C,O,R=1,ie=!0){switch(A.constructor){case a.StringPrimitiveType:return`resultWriter_.WriteStringValue(${C})`;case a.FloatPrimitiveType:case a.UIntPrimitiveType:case a.IntPrimitiveType:return`resultWriter_.WriteNumberValue(${C})`;case a.MoneyPrimitiveType:return`resultWriter_.WriteNumberValue(int (Math.Round(${C} * 100m)))`;case a.BigIntPrimitiveType:return`resultWriter_.WriteStringValue(${C}.ToString())`;case a.BoolPrimitiveType:return`resultWriter_.WriteBooleanValue(${C})`;case a.BytesPrimitiveType:return`resultWriter_.WriteStringValue(Convert.ToBase64String(${C}))`;case a.DateTimePrimitiveType:return`resultWriter_.WriteStringValue(${C}.ToString("yyyy-MM-ddTHH:mm:ss.FFFFFF'Z'"))`;case a.DatePrimitiveType:return`resultWriter_.WriteStringValue(${C}.ToString("yyyy-MM-dd"))`;case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.Base64PrimitiveType:case a.HexPrimitiveType:case a.XmlPrimitiveType:return`resultWriter_.WriteStringValue(${C})`;case a.OptionalType:{let J=A.base;for(;J instanceof a.TypeReference;)J=J.type;return`\n if (${C}.IsNone) then\n resultWriter_.WriteNullValue()\n else\n ${N(J,`${C}.Value`,O,R,ie)}\n `.replace(/\n {14}/gu,"\n").trim()}case a.TypeReference:return N(A.type,C,O,R,ie);case a.EnumType:case a.StructType:return`Encode${A.name} ${C} resultWriter_ ${O}`;case a.JsonPrimitiveType:return`${C}.WriteTo(resultWriter_)`;case a.ArrayType:return`\n resultWriter_.WriteStartArray()\n for i${R} in 0..${C}.Length - 1 do\n ${N(A.base,`${C}.[i${R}]`,`${O}`,R+1).replace(/\n/gu,"\n ")}\n resultWriter_.WriteEndArray()\n `.replace(/\n {14}/gu,"\n").trim();default:throw new Error(`BUG: encodeType with ${A.constructor.name}`)}}w.ident=v,w.capitalize=y,w.generateTypeName=T,w.decodeType=S,w.encodeType=N,w.generateStruct=function k(A){return`\ntype ${A.name} = {\n ${A.fields.map(C=>`${y(C.name)}: ${T(C.type)}`).join(";\n ")}\n} with\n static member Create (${A.fields.map(C=>`${v(C.name)}: ${T(C.type)}`).join(", ")}): ${A.name} =\n { ${A.fields.map(C=>`${y(C.name)} = ${v(C.name)}`).join("; ")} }\n\nlet Decode${A.name} (json_: JsonElement) (path_: string): ${A.name} =\n if (json_.ValueKind <> JsonValueKind.Object) then raise (FatalException($"'{path_}' must be an object."))\n ${A.fields.map(C=>`\n let ${C.name}Json_ = decodeJsonElementStrict ${JSON.stringify(C.name)} json_ $"{path_}.${C.name}"\n let ${v(C.name)} =\n ${S(C.type,`${C.name}Json_`,`$"{path_}.${C.name}"`,v(C.name)).replace(/\n/gu,"\n ")}\n `).join("")}\n { ${A.fields.map(C=>`${y(C.name)} = ${v(C.name)}`).join("; ")} }\n\nlet Encode${A.name} (obj_: ${A.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n resultWriter_.WriteStartObject()\n ${A.fields.map(C=>`\n resultWriter_.WritePropertyName(${JSON.stringify(C.name)})\n ${N(C.type,`obj_.${y(C.name)}`,`$"{path_}.${C.name}"`).replace(/\n/gu,"\n ")}`).join("\n")}\n resultWriter_.WriteEndObject()`},w.generateEnum=function W(A){return`\ntype ${A.name} =\n ${A.values.map(({value:C})=>`| ${y(C)}`).join("\n ")}\n\nlet Decode${A.name} (json_: JsonElement) (path_: string): ${A.name} =\n if (json_.ValueKind <> JsonValueKind.String) then raise (FatalException($"'{path_}' must be a string."))\n match json_.GetString() with\n ${A.values.map(({value:C})=>`| "${C}" -> ${A.name}.${y(C)}`).join("\n ")}\n | _ -> raise (FatalException($"'{path_}' must be one of: (${A.values.map(({value:C})=>`'${C}'`).join(", ")})."))\n\nlet Encode${A.name} (obj_: ${A.name}) (resultWriter_: Utf8JsonWriter) (path_: string) =\n match obj_ with\n ${A.values.map(({value:C})=>`| ${A.name}.${y(C)} -> resultWriter_.WriteStringValue("${C}")`).join("\n ")}\n\n`}},8258:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),b(2970).__exportStar(b(4155),w)},8336:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateAndroidClientSource=void 0;const a=b(6068),i=b(5507);w.generateAndroidClientSource=function te(Q,v){let y='@file:Suppress("UNNECESSARY_SAFE_CALL")\n\nimport android.os.Parcelable\nimport kotlinx.parcelize.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 kotlinx.parcelize.RawValue\nimport java.util.*\nimport okhttp3.Interceptor\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 fingerprint: String? = null,\n httpInterceptor: Interceptor? = null,\n httpNetworkInterceptor: Interceptor? = null\n) : SdkgenHttpClient(baseUrl, applicationContext, defaultTimeoutMillis, fingerprint, httpInterceptor, httpNetworkInterceptor) {\n\n private val gson = GsonBuilder()\n .registerTypeAdapter(object : TypeToken<ByteArray>() {}.type, ByteArrayDeserializer())\n .create()\n\n';for(const N of Q.enumTypes)y+=` ${(0,i.generateEnum)(N)}`,y+="\n";y+=" open class Error(val message: String? = null)\n",y+=" data class Response<T>(val error: Error?, val data: T?, val stats: CallStats?)\n\n";for(const N of Q.structTypes)y+=` ${(0,i.generateClass)(N)}\n`;const T=[],S=new a.ErrorNode("Connection",new a.VoidPrimitiveType);T.push(S.name),y+=` ${(0,i.generateErrorClass)(S)}`;for(const N of Q.errors)y+=` ${(0,i.generateErrorClass)(N)}`,T.push(N.name);return T.length>0&&(y+=`\n enum class ErrorType {\n ${T.join(",\n ")};\n\n fun type(): Class<out ApiClient.Error> {\n return when (this) {\n ${T.map(N=>`${N} -> ApiClient.${N}::class.java`).join("\n ")}\n else -> ApiClient.Error::class.java\n }\n }\n }\n\n`),y+=" private val sdkgenIOScope = CoroutineScope(IO + SupervisorJob())\n\n",y+=Q.operations.filter(N=>N.annotations.every(k=>!(k instanceof a.HiddenAnnotation))).map(N=>{let k="";const W=[];W.push("timeoutMillis: Long? = null"),v&&W.push(`callback: ((response: Response<${(0,i.generateKotlinTypeName)(N.returnType)}>) -> Unit)? = null`);const A=N.args.map(C=>`${(0,i.mangle)(C.name)}: ${(0,i.generateKotlinTypeName)(C.type)}`).concat(W);return k+=` fun ${(0,i.mangle)(N.name)}(\n ${A.join(",\n ")}\n ): Deferred<Response<out ${(0,i.generateKotlinTypeName)(N.returnType)}>> = sdkgenIOScope.async {\n`,N.args.length>0?(k+=" val bodyArgs = JsonObject().apply {\n",k+=N.args.map(C=>` ${(0,i.generateJsonAddRepresentation)(C.type,C.name)}`).join("\n"),k+="\n }\n"):k+=" val bodyArgs: JsonObject? = null",k+="\n",k+=` val call = makeRequest("${N.name}", bodyArgs, timeoutMillis)\n`,k+=` val response: Response<${(0,i.generateKotlinTypeName)(N.returnType)}> = handleCallResponse(call)\n`,v&&(k+=" withContext(Dispatchers.Main) { callback?.invoke(response) } \n"),k+=" return@async response\n",k+=" }\n",k}).join("\n"),y+='\n private inline fun <reified T> handleCallResponse(callResponse: InternalResponse): Response<T> {\n try {\n val data = if (callResponse.result?.get("result") != null)\n gson.fromJson<T>(callResponse.result?.get("result")!!)\n else null\n\n val error = if (callResponse.error != null) {\n val errorType = try {\n ErrorType.valueOf(callResponse.error?.get("type")?.asString ?: "")\n } catch (e: Exception) {\n ErrorType.Fatal\n }\n\n gson.fromJson(callResponse.error, errorType.type())\n } else null\n\n return Response(error, data, callResponse.stats)\n } catch(e: Exception) {\n return Response(Fatal(applicationContext.getString(io.sdkgen.runtime.R.string.sdkgen_error_serialization)), null, callResponse.stats)\n }\n }\n',y+="}\n",y}},5507:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateErrorClass=w.generateClass=w.getAnnotation=w.generateEnum=w.generateJsonAddRepresentation=w.mangle=w.generateKotlinTypeName=void 0;const a=b(6068);function i(N){switch(N.constructor){case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:return"Int";case a.FloatPrimitiveType:return"Double";case a.BigIntPrimitiveType:return"BigInt";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"Calendar";case a.BoolPrimitiveType:return"Boolean";case a.BytesPrimitiveType:return"ByteArray";case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"String";case a.VoidPrimitiveType:return"Unit";case a.JsonPrimitiveType:return"@RawValue JsonElement";case a.OptionalType:return`${i(N.base)}?`;case a.ArrayType:return`ArrayList<${i(N.base)}>`;case a.StructType:case a.EnumType:return N.name;case a.TypeReference:return i(N.type);default:throw new Error(`BUG: generateKotlinTypeName with ${N.constructor.name}`)}}function te(N){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(N)?`_${N}`:N}function y(N,k){let W="";switch(k&&k!==te(k)&&(W+=` @SerializedName("${k}")\n`),N.constructor){case a.DatePrimitiveType:W+=" @JsonAdapter(DateAdapter::class)\n";break;case a.DateTimePrimitiveType:W+=" @JsonAdapter(DateTimeAdapter::class)\n";break;case a.ArrayType:case a.OptionalType:W+=y(N.base)}return W}w.generateKotlinTypeName=i,w.mangle=te,w.generateJsonAddRepresentation=function Q(N,k){switch(N.constructor){case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:case a.FloatPrimitiveType:case a.BoolPrimitiveType:return`addProperty("${k}", ${te(k)})`;case a.OptionalType:return Q(N.base,k);case a.DatePrimitiveType:return`addProperty("${k}", ${te(k)}?.let { DateAdapter.sdf.format(it.time)}) `;case a.DateTimePrimitiveType:return`addProperty("${k}", ${te(k)}?.let { DateTimeAdapter.sdf.format(it.time)})`;case a.ArrayType:case a.StructType:case a.EnumType:case a.TypeReference:case a.JsonPrimitiveType:return`add("${k}", gson.toJsonTree(${te(k)}))`;case a.VoidPrimitiveType:return"";case a.BytesPrimitiveType:return`addProperty("${k}", Base64.encodeToString(${te(k)}, Base64.NO_WRAP))`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${N.constructor.name}`)}},w.generateEnum=function v(N){let k="@Parcelize \n";return k+=` enum class ${N.name} : Parcelable { ${N.values.map(W=>te(W.value)).join(", ")} }\n`,k},w.getAnnotation=y,w.generateClass=function T(N){let k="@Parcelize\n";return k+=` data class ${N.name}(\n${N.fields.map(W=>{let A=y(W.type,W.name);return A+=` var ${te(W.name)}: ${i(W.type)}${W.type.constructor===a.OptionalType?" = null":""}`,A}).join(",\n")}\n ) : Parcelable\n`,k},w.generateErrorClass=function S(N){return`class ${N.name}(message: String) : Error(message)\n`}},5402:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),b(2970).__exportStar(b(8336),w)},194:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.AstRoot=w.FunctionOperation=w.TypeDefinition=w.StructType=w.TypeReference=w.Spread=w.Field=w.EnumType=w.EnumValue=w.ArrayType=w.OptionalType=w.JsonPrimitiveType=w.XmlPrimitiveType=w.Base64PrimitiveType=w.HtmlPrimitiveType=w.HexPrimitiveType=w.UuidPrimitiveType=w.UrlPrimitiveType=w.EmailPrimitiveType=w.CnpjPrimitiveType=w.CpfPrimitiveType=w.DecimalPrimitiveType=w.MoneyPrimitiveType=w.VoidPrimitiveType=w.BytesPrimitiveType=w.BoolPrimitiveType=w.DateTimePrimitiveType=w.DatePrimitiveType=w.BigIntPrimitiveType=w.FloatPrimitiveType=w.UIntPrimitiveType=w.IntPrimitiveType=w.StringPrimitiveType=w.PrimitiveType=w.StatusCodeAnnotation=w.HiddenAnnotation=w.RestAnnotation=w.ArgDescriptionAnnotation=w.ThrowsAnnotation=w.DescriptionAnnotation=w.Annotation=w.ErrorNode=w.Type=w.AstNode=void 0;const a=b(2188);class i{constructor(){this.location=new a.TokenLocation,Object.defineProperty(this,"location",{enumerable:!1})}at(Ke){return this.location=Ke.location,this}atLocation(Ke){return this.location=Ke,this}}w.AstNode=i;class te extends i{toJSON(){const{name:Ke,...mt}={...this};return mt}}w.Type=te,w.ErrorNode=class Q extends i{constructor(Ke,mt){super(),this.name=Ke,this.dataType=mt,this.annotations=[]}};class v extends i{}w.Annotation=v,w.DescriptionAnnotation=class y extends v{constructor(Ke){super(),this.text=Ke}},w.ThrowsAnnotation=class T extends v{constructor(Ke){super(),this.error=Ke}},w.ArgDescriptionAnnotation=class S extends v{constructor(Ke,mt){super(),this.argName=Ke,this.text=mt}},w.RestAnnotation=class N extends v{constructor(Ke,mt,Ae,Ge,ne,se){super(),this.method=Ke,this.path=mt,this.pathVariables=Ae,this.queryVariables=Ge,this.headers=ne,this.bodyVariable=se}},w.HiddenAnnotation=class k extends v{},w.StatusCodeAnnotation=class W extends v{constructor(Ke){super(),this.statusCode=Ke}};class A extends te{toJSON(){return this.name}}w.PrimitiveType=A,w.StringPrimitiveType=class C extends A{constructor(){super(...arguments),this.name="string"}},w.IntPrimitiveType=class O extends A{constructor(){super(...arguments),this.name="int"}},w.UIntPrimitiveType=class R extends A{constructor(){super(...arguments),this.name="uint"}},w.FloatPrimitiveType=class ie extends A{constructor(){super(...arguments),this.name="float"}},w.BigIntPrimitiveType=class J extends A{constructor(){super(...arguments),this.name="bigint"}},w.DatePrimitiveType=class ce extends A{constructor(){super(...arguments),this.name="date"}},w.DateTimePrimitiveType=class Fe extends A{constructor(){super(...arguments),this.name="datetime"}},w.BoolPrimitiveType=class ze extends A{constructor(){super(...arguments),this.name="bool"}},w.BytesPrimitiveType=class Ve extends A{constructor(){super(...arguments),this.name="bytes"}},w.VoidPrimitiveType=class Se extends A{constructor(){super(...arguments),this.name="void"}},w.MoneyPrimitiveType=class Oe extends A{constructor(){super(...arguments),this.name="money"}},w.DecimalPrimitiveType=class Me extends A{constructor(){super(...arguments),this.name="decimal"}},w.CpfPrimitiveType=class ke extends A{constructor(){super(...arguments),this.name="cpf"}},w.CnpjPrimitiveType=class Ce extends A{constructor(){super(...arguments),this.name="cnpj"}},w.EmailPrimitiveType=class De extends A{constructor(){super(...arguments),this.name="email"}},w.UrlPrimitiveType=class He extends A{constructor(){super(...arguments),this.name="url"}},w.UuidPrimitiveType=class lt extends A{constructor(){super(...arguments),this.name="uuid"}},w.HexPrimitiveType=class Ct extends A{constructor(){super(...arguments),this.name="hex"}},w.HtmlPrimitiveType=class zt extends A{constructor(){super(...arguments),this.name="html"}},w.Base64PrimitiveType=class Wt extends A{constructor(){super(...arguments),this.name="base64"}},w.XmlPrimitiveType=class Je extends A{constructor(){super(...arguments),this.name="xml"}},w.JsonPrimitiveType=class le extends A{constructor(){super(...arguments),this.name="json"}},w.OptionalType=class re extends te{constructor(Ke){super(),this.base=Ke}get name(){return`${this.base.name}?`}},w.ArrayType=class G extends te{constructor(Ke){super(),this.base=Ke}get name(){return`${this.base.name}[]`}},w.EnumValue=class $ extends i{constructor(Ke){super(),this.value=Ke,this.annotations=[],this.struct=null}},w.EnumType=class F extends te{constructor(Ke){super(),this.values=Ke}get hasStructValues(){return this.values.some(Ke=>null!==Ke.struct)}},w.Field=class U extends i{constructor(Ke,mt,Ae=!1){super(),this.name=Ke,this.type=mt,this.secret=Ae,this.annotations=[]}},w.Spread=class H extends i{constructor(Ke){super(),this.typeReference=Ke}},w.TypeReference=class Z extends te{constructor(Ke){super(),this.name=Ke}},w.StructType=class de extends te{constructor(Ke){super(),this.fieldsAndSpreads=Ke,this.fields=[]}},w.TypeDefinition=class ge extends i{constructor(Ke,mt){super(),this.name=Ke,this.type=mt,this.annotations=[]}},w.FunctionOperation=class Ne extends i{constructor(Ke,mt,Ae){super(),this.name=Ke,this.fieldsAndSpreads=mt,this.returnType=Ae,this.annotations=[],this.args=[]}},w.AstRoot=class Be{constructor(Ke=[],mt=[],Ae=[]){this.typeDefinitions=Ke,this.operations=mt,this.errors=Ae,this.structTypes=[],this.enumTypes=[],this.warnings=[]}}},4294:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.compatibilityIssues=void 0;const a=b(194);function i(v,y,T,S){if(T instanceof a.TypeReference)i(v,y,T.type,S);else if(S instanceof a.TypeReference)i(v,y,T,S.type);else if(T instanceof a.OptionalType||!(S instanceof a.OptionalType))if(T instanceof a.OptionalType&&S instanceof a.OptionalType)i(v,y,T.base,S.base);else{if(T instanceof a.OptionalType&&!(S instanceof a.OptionalType))return y.push(`${v} was optional, but now it isn't. If the client sends a null, it will be invalid. Add the optional annotation back.`),void i(v,y,T.base,S);if(T instanceof a.ArrayType&&S instanceof a.ArrayType)i(v,y,T.base,S.base);else if(T instanceof a.StructType&&S instanceof a.StructType)for(const N of S.fields){const k=T.fields.find(W=>W.name===N.name);if(k)i(`${v}.${k.name}`,y,k.type,N.type);else{if(N.type instanceof a.OptionalType)continue;y.push(`${v}.${N.name} didn't exist before and isn't optional. Make it optional.`)}}else if(!(T instanceof a.UIntPrimitiveType&&S instanceof a.IntPrimitiveType||T instanceof a.IntPrimitiveType&&S instanceof a.FloatPrimitiveType||T instanceof a.MoneyPrimitiveType&&S instanceof a.IntPrimitiveType||T instanceof a.MoneyPrimitiveType&&S instanceof a.UIntPrimitiveType||T instanceof a.UIntPrimitiveType&&S instanceof a.BigIntPrimitiveType||T instanceof a.IntPrimitiveType&&S instanceof a.BigIntPrimitiveType||T instanceof a.MoneyPrimitiveType&&S instanceof a.BigIntPrimitiveType||T instanceof a.BigIntPrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.UuidPrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.XmlPrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.DatePrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.DateTimePrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.CpfPrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.CnpjPrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.HexPrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.HtmlPrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.Base64PrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.BytesPrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.BytesPrimitiveType&&S instanceof a.Base64PrimitiveType||T instanceof a.UrlPrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.EmailPrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.DecimalPrimitiveType&&S instanceof a.StringPrimitiveType||T instanceof a.EnumType&&S instanceof a.StringPrimitiveType)){if(T instanceof a.EnumType&&S instanceof a.EnumType){for(const N of T.values){const k=S.values.find(W=>W.value===N.value);k?i(`${v}.${N.value}`,y,N.struct??new a.StructType([]),k.struct??new a.StructType([])):y.push(`The enum at ${v} used to accept the value "${N.value}" that doesn't exist now. Clients that send it will fail.`)}return}T.constructor.name!==S.constructor.name&&y.push(`${v} was ${T.name} and now it is ${S.name}. They are not compatible.`)}}else i(v,y,T,S.base)}function te(v,y,T,S){if(T instanceof a.TypeReference)te(v,y,T.type,S);else if(S instanceof a.TypeReference)te(v,y,T,S.type);else if(!(T instanceof a.OptionalType)||S instanceof a.OptionalType)if(T instanceof a.OptionalType&&S instanceof a.OptionalType)te(v,y,T.base,S.base);else{if(!(T instanceof a.OptionalType)&&S instanceof a.OptionalType)return y.push(`${v} wasn't optional, but now it is. If the client receives a null, it will crash. Remove the optional annotation.`),void te(v,y,T,S.base);if(T instanceof a.ArrayType&&S instanceof a.ArrayType)te(v,y,T.base,S.base);else if(T instanceof a.StructType&&S instanceof a.StructType)for(const N of T.fields){const k=S.fields.find(W=>W.name===N.name);if(k)te(`${v}.${N.name}`,y,N.type,k.type);else{if(N.type instanceof a.OptionalType)continue;y.push(`${v}.${N.name} used to exist with type ${N.type.name}, but it's now missing. Add it back.`)}}else if(!(T instanceof a.IntPrimitiveType&&S instanceof a.UIntPrimitiveType||T instanceof a.FloatPrimitiveType&&S instanceof a.IntPrimitiveType||T instanceof a.IntPrimitiveType&&S instanceof a.MoneyPrimitiveType||T instanceof a.UIntPrimitiveType&&S instanceof a.MoneyPrimitiveType||T instanceof a.BigIntPrimitiveType&&S instanceof a.UIntPrimitiveType||T instanceof a.BigIntPrimitiveType&&S instanceof a.IntPrimitiveType||T instanceof a.BigIntPrimitiveType&&S instanceof a.MoneyPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.BigIntPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.UuidPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.XmlPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.DatePrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.DateTimePrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.CpfPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.CnpjPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.HexPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.HtmlPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.Base64PrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.BytesPrimitiveType||T instanceof a.Base64PrimitiveType&&S instanceof a.BytesPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.UrlPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.EmailPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.DecimalPrimitiveType||T instanceof a.StringPrimitiveType&&S instanceof a.EnumType)){if(T instanceof a.EnumType&&S instanceof a.EnumType){for(const N of S.values){const k=T.values.find(W=>W.value===N.value);k?te(`${v}.${N.value}`,y,k.struct??new a.StructType([]),N.struct??new a.StructType([])):y.push(`The enum at ${v} now has the value "${N.value}" that didn't exist before. Client will crash if it receives it`)}return}T.constructor.name!==S.constructor.name&&y.push(`${v} was ${T.name} and now it is ${S.name}. They are not compatible.`)}}else te(v,y,T.base,S)}w.compatibilityIssues=function Q(v,y){const T=[];for(const S of v.operations){const N=y.operations.find(k=>k.name===S.name);if(N){te(`${S.name}.ret`,T,S.returnType,N.returnType);for(const k of N.args){const W=S.args.find(A=>A.name===k.name);if(W)i(`${S.name}.args.${W.name}`,T,W.type,k.type);else{if(k.type instanceof a.OptionalType)continue;T.push(`${S.name}.args.${k.name} didn't exist before and isn't optional. Make it optional.`)}}}else T.push(`function ${S.name} used to exist, but it's now missing. Add it back.`)}for(const S of v.errors){const N=y.errors.find(k=>k.name===S.name);N&&te(`${S.name}.data`,T,S.dataType,N.dataType)}return T}},5029:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.hasType=void 0;const a=b(967);class i extends a.Visitor{constructor(v,y){super(v),this.type=y,this.found=!1}visit(v){v.constructor===this.type&&(this.found=!0),super.visit(v)}}w.hasType=function te(Q,v){const y=new i(Q,v);return y.process(),y.found}},6068:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.hasType=w.Visitor=w.jsonToAst=w.astToJson=void 0;const a=b(2970);a.__exportStar(b(194),w),a.__exportStar(b(4294),w);var i=b(4059);Object.defineProperty(w,"astToJson",{enumerable:!0,get:function(){return i.astToJson}}),Object.defineProperty(w,"jsonToAst",{enumerable:!0,get:function(){return i.jsonToAst}}),a.__exportStar(b(3390),w),a.__exportStar(b(5014),w),a.__exportStar(b(2188),w);var te=b(967);Object.defineProperty(w,"Visitor",{enumerable:!0,get:function(){return te.Visitor}});var Q=b(5029);Object.defineProperty(w,"hasType",{enumerable:!0,get:function(){return Q.hasType}})},4059:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.jsonToAst=w.astToJson=void 0;const a=b(194),i=b(3835),te=b(5127);function Q(S){if(S instanceof a.DescriptionAnnotation)return{type:"description",value:S.text};if(S instanceof a.ThrowsAnnotation)return{type:"throws",value:S.error};if(S instanceof a.RestAnnotation)return{type:"rest",value:{bodyVariable:S.bodyVariable,headers:[...S.headers.entries()].sort(([N],[k])=>N.localeCompare(k)),method:S.method,path:S.path,pathVariables:S.pathVariables,queryVariables:[...S.queryVariables].sort((N,k)=>N.localeCompare(k))}};if(S instanceof a.HiddenAnnotation)return{type:"hidden",value:null};if(S instanceof a.StatusCodeAnnotation)return{type:"statusCode",value:S.statusCode};throw new Error(`BUG: annotationToJson with ${S.constructor.name}`)}function v(S){switch(S.type){case"description":return new a.DescriptionAnnotation(S.value);case"throws":return new a.ThrowsAnnotation(S.value);case"rest":{const{method:N,path:k,pathVariables:W,queryVariables:A,headers:C,bodyVariable:O}=S.value;return new a.RestAnnotation(N,k,W,A,new Map(C),O)}case"hidden":return new a.HiddenAnnotation;case"statusCode":return new a.StatusCodeAnnotation(S.value);default:throw new Error(`BUG: annotationFromJson with ${S.type}`)}}w.astToJson=function y(S){const N={},k={};function W(O){return O instanceof a.ArrayType?`${W(O.base)}[]`:O instanceof a.OptionalType?`${W(O.base)}?`:O.name}for(const{name:O,fields:R}of S.structTypes){if(O in k)throw new Error(`Duplicate struct type ${O}`);k[O]={};const ie=k[O];for(const J of R){ie[J.name]=W(J.type);for(const ce of J.annotations)if(ce instanceof a.DescriptionAnnotation){const Fe=`type.${O}.${J.name}`;N[Fe]??=[],N[Fe].push(Q(ce))}}}for(const{name:O,values:R}of S.enumTypes){if(O in k)throw new Error(`Duplicate enum type ${O}`);k[O]=R.map(ie=>ie.struct?[ie.value,ie.struct.name]:ie.value)}for(const{name:O,type:R}of S.typeDefinitions)R instanceof a.StructType||R instanceof a.EnumType||(k[O]=W(R));const A={};for(const O of S.operations){const R={};for(const ie of O.args){R[ie.name]=W(ie.type);for(const J of ie.annotations)if(J instanceof a.DescriptionAnnotation){const ce=`fn.${O.name}.${ie.name}`;N[ce]??=[],N[ce].push(Q(J))}}A[O.name]={args:R,ret:W(O.returnType)};for(const ie of O.annotations){const J=`fn.${O.name}`;N[J]??=[],N[J].push(Q(ie))}}const C=S.errors.map(O=>O.dataType instanceof a.VoidPrimitiveType?O.name:[O.name,O.dataType.name]);for(const O of S.errors)for(const R of O.annotations){const ie=`error.${O.name}`;N[ie]??=[],N[ie].push(Q(R))}return{annotations:N,errors:C,functionTable:A,typeTable:k}},w.jsonToAst=function T(S){const N=[],k=[],W=[];function A(R,ie){if("string"==typeof R){const ce=te.primitiveToAstClass.get(R);return ce?new ce:R.endsWith("?")?new a.OptionalType(A(R.slice(0,R.length-1))):R.endsWith("[]")?new a.ArrayType(A(R.slice(0,R.length-2))):new a.TypeReference(R)}if(Array.isArray(R))return new a.EnumType(R.map(ce=>{if(Array.isArray(ce)){const[Fe,ze]=ce,Ve=new a.EnumValue(Fe);return W.push([Ve,ze]),Ve}return new a.EnumValue(ce)}));const J=[];for(const ce of Object.keys(R)){const Fe=new a.Field(ce,A(R[ce]));if(ie){const ze=`type.${ie}.${ce}`;for(const Ve of S.annotations[ze]??[])Fe.annotations.push(v(Ve))}J.push(Fe)}return new a.StructType(J)}for(const[R,ie]of Object.entries(S.typeTable)){const J=A(ie,R);k.push(new a.TypeDefinition(R,J))}for(const[R,ie]of Object.entries(S.functionTable)){const J=Object.keys(ie.args).map(ze=>{const Ve=new a.Field(ze,A(ie.args[ze])),Se=`fn.${R}.${ze}`;for(const Oe of S.annotations[Se]??[])Ve.annotations.push(v(Oe));return Ve}),ce=new a.FunctionOperation(R,J,A(ie.ret)),Fe=`fn.${R}`;for(const ze of S.annotations[Fe]??[])ce.annotations.push(v(ze));N.push(ce)}for(const[R,ie]of W){const J=k.find(ce=>ce.name===ie)?.type;J instanceof a.StructType&&(R.struct=J)}const C=S.errors.map(R=>{let ie;if(Array.isArray(R)){const[ce,Fe]=R;ie=new a.ErrorNode(ce,A(Fe))}else ie=new a.ErrorNode(R,new a.VoidPrimitiveType);const J=`error.${ie.name}`;for(const ce of S.annotations[J]??[])ie.annotations.push(v(ce));return ie}),O=new a.AstRoot(k,N,C);return(0,i.analyse)(O),O}},3390:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.Lexer=w.LexerError=void 0;const a=b(2188);class i extends Error{}w.LexerError=i;class te{static#e=this.PRIMITIVES=new Set(["bool","int","uint","float","bigint","string","date","datetime","bytes","money","decimal","cpf","cnpj","email","html","url","uuid","hex","base64","xml","void","json"]);static#t=this.KEYWORDS=new Set([...te.PRIMITIVES,"error","enum","type","import","get","function","fn","true","false"]);constructor(v,y="-"){this.source=v,this.filename=y,this.startPos=0,this.startLine=1,this.startColumn=1,this.pos=0,this.line=1,this.column=1}currentChar(){return this.source[this.pos]||"\0"}nextChar(){return this.column++,this.source[++this.pos]||"\0"}nextToken(){this.startPos=this.pos,this.startLine=this.line,this.startColumn=this.column;let v=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(),v=new a.CurlyOpenSymbolToken;break;case"}":this.nextChar(),v=new a.CurlyCloseSymbolToken;break;case"(":this.nextChar(),v=new a.ParensOpenSymbolToken;break;case")":this.nextChar(),v=new a.ParensCloseSymbolToken;break;case"?":this.nextChar(),v=new a.OptionalSymbolToken;break;case":":this.nextChar(),v=new a.ColonSymbolToken;break;case"=":this.nextChar(),v=new a.EqualSymbolToken;break;case"!":this.nextChar(),v=new a.ExclamationMarkSymbolToken;break;case",":this.nextChar(),v=new a.CommaSymbolToken;break;case"[":"]"===this.nextChar()&&(this.nextChar(),v=new a.ArraySymbolToken);break;case".":"."===this.nextChar()&&"."===this.nextChar()&&(this.nextChar(),v=new a.SpreadSymbolToken);break;case"@":{let y="\\",T=this.startPos+1;for(;y.endsWith("\\");){for(y=y.slice(0,y.length-1).trim();!["\0","\n"].includes(this.nextChar()););y=`${y} ${this.source.substring(T,this.pos).trim()}`.trim(),T=this.pos+1}v=new a.AnnotationToken(y.trim());break}case'"':{const y=[];e:for(;;)switch(this.nextChar()){case"\0":break e;case"\\":switch(this.nextChar()){case"\0":break e;case"n":y.push("\n");break;case"t":y.push("\t");break;default:y.push(this.currentChar())}break;case'"':this.nextChar(),v=new a.StringLiteralToken(y.join(""));break e;default:y.push(this.currentChar())}break}default:if(/[a-zA-Z_]/u.test(this.currentChar())){for(;/[a-zA-Z0-9_]/u.test(this.nextChar()););const y=this.source.substring(this.startPos,this.pos);switch(y){case"error":v=new a.ErrorKeywordToken;break;case"enum":v=new a.EnumKeywordToken;break;case"type":v=new a.TypeKeywordToken;break;case"import":v=new a.ImportKeywordToken;break;case"fn":v=new a.FnKeywordToken;break;case"true":v=new a.TrueKeywordToken;break;case"false":v=new a.FalseKeywordToken;break;default:v=te.PRIMITIVES.has(y)?new a.PrimitiveTypeToken(y):new a.IdentifierToken(y)}}}if(null!==v)return v.location.filename=this.filename,v.location.line=this.startLine,v.location.column=this.startColumn,v;throw"\0"===this.currentChar()?new i(`Unexpected end of file at ${this.filename}`):new i(`Unexpected character ${JSON.stringify(this.currentChar())} at ${this.filename}:${this.line}:${this.column}`)}}w.Lexer=te},5014:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.Parser=w.ParserError=void 0;const a=b(194),i=b(3390),te=b(5219),Q=b(3835),v=b(2188),y=b(5127);class T extends Error{}w.ParserError=T,w.Parser=class S{constructor(k){this.token=null,this.annotations=[],this.warnings=[],this.readFileSync=()=>{throw"Not implemented"};try{this.readFileSync=Object(function(){var C=new Error("Cannot find module 'fs'");throw C.code="MODULE_NOT_FOUND",C}())}catch{}const W=Array.isArray(k)?[...k].reverse():[k];this.lexers=W.map(A=>A instanceof i.Lexer?A:new i.Lexer(this.readFileSync(A).toString(),A)),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(k){if(!this.token)throw new T(`Expected ${Object.keys(k).map(A=>A.replace("Token","")).join(" or ")}, but found end of file`);const W=this.token.constructor.name;if(W in k)return k[W](this.token);if(k.IdentifierToken){const A=this.token.maybeAsIdentifier();if(A instanceof v.IdentifierToken)return k.IdentifierToken(A)}throw new T(`Expected ${Object.keys(k).map(A=>A.replace("Token","")).join(" or ")} at ${this.token.location}, but found ${this.token}`)}expect(k){if(null===this.token)throw new T(`Expected ${k.name.replace("Token","")}, but found end of file`);if(this.token instanceof k)return this.token;if(k===v.IdentifierToken){const W=this.token.maybeAsIdentifier();if(W instanceof v.IdentifierToken)return W}throw new T(`Expected ${k.name.replace("Token","")} at ${this.token.location}, but found ${this.token}`)}parse(){const k=[],W=[],A=[];for(this.warnings=[];this.token;)this.acceptAnnotations(),this.multiExpect({ErrorKeywordToken:()=>{A.push(this.parseError())},FnKeywordToken:()=>{k.push(this.parseOperation())},ImportKeywordToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const O=this.expect(v.StringLiteralToken),R=O.location.filename.replace(/[^/\\]+$/u,`${O.value}.sdkgen`);this.lexers.push(new i.Lexer(this.readFileSync(R).toString(),R)),this.nextToken()},TypeKeywordToken:()=>{W.push(this.parseTypeDefinition())}});const C=new a.AstRoot(W,k,A);return C.warnings=this.warnings,(0,Q.analyse)(C),C}acceptAnnotations(){for(;this.token instanceof v.AnnotationToken;){const k=this.token.value.split(" "),W=this.token.value.slice(k[0].length).trim();switch(k[0]){case"description":this.annotations.push(new a.DescriptionAnnotation(W).at(this.token));break;case"arg":this.annotations.push(new a.ArgDescriptionAnnotation(k[1],this.token.value.slice(k[0].length+1+k[1].length).trim()).at(this.token));break;case"throws":this.annotations.push(new a.ThrowsAnnotation(W).at(this.token));break;case"rest":try{this.annotations.push((0,te.parseRestAnnotation)(W).at(this.token))}catch(A){throw new T(`${A instanceof Error?A.message:A} at ${this.token.location}`)}break;case"hidden":if(""!==W)throw new T("@hidden annotation doesn't take any argument");this.annotations.push((new a.HiddenAnnotation).at(this.token));break;case"statusCode":{const A=parseInt(W,10);if(A.toString()!==W.trim())throw new T("@statusCode annotation takes an integer as argument");this.annotations.push(new a.StatusCodeAnnotation(A).at(this.token));break}default:throw new T(`Unknown annotation '${k[0]}' at ${this.token.location}`)}this.nextToken()}}checkCannotHaveAnnotationsHere(){if(this.annotations.length>0)throw new T(`Cannot have annotations at ${this.annotations[0].location}`)}parseTypeDefinition(){const k=this.expect(v.TypeKeywordToken);this.nextToken();const W=this.expect(v.IdentifierToken),A=W.value;if(!/[A-Z]/u.test(A[0]))throw new T(`The custom type name must start with an uppercase letter, but found ${JSON.stringify(A)} at ${W.location}`);this.nextToken();const{annotations:C}=this;this.annotations=[];const O=this.parseType(),R=new a.TypeDefinition(A,O).at(k);return R.annotations=C,R}parseError(){const k=this.expect(v.ErrorKeywordToken);this.nextToken();const W=this.expect(v.IdentifierToken),A=W.value;if(!/[A-Z]/u.test(A[0]))throw new T(`Error name must start with an uppercase letter, but found ${JSON.stringify(A)} at ${W.location}`);this.nextToken();let C=new a.VoidPrimitiveType;(this.token instanceof v.CurlyOpenSymbolToken||this.token instanceof v.EnumKeywordToken||this.token instanceof v.IdentifierToken||this.token instanceof v.PrimitiveTypeToken)&&(C=this.parseType());const O=new a.ErrorNode(A,C).at(k);return O.annotations=this.annotations,this.annotations=[],O}parseOperation(){let{annotations:k}=this;this.annotations=[],this.expect(v.FnKeywordToken),this.nextToken();const W=this.expect(v.IdentifierToken).value;this.nextToken(),this.expect(v.ParensOpenSymbolToken),this.nextToken();const A=new Set,C=[];let R,O=!1;for(;!O;)this.acceptAnnotations(),this.multiExpect({ParensCloseSymbolToken:ce=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),O=!0,R=ce},IdentifierToken:()=>{const ce=this.parseField();if(A.has(ce.name))throw new T(`Cannot redeclare argument '${ce.name}'`);A.add(ce.name),C.push(ce),this.multiExpect({ParensCloseSymbolToken:Fe=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),O=!0,R=Fe},CommaSymbolToken:()=>this.nextToken()})},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const ce=this.expect(v.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(ce.value[0]))throw new T(`Expected a type but found ${JSON.stringify(ce.value)} at ${ce.location}`);C.push(new a.Spread(new a.TypeReference(ce.value).at(ce)).at(ce)),this.multiExpect({ParensCloseSymbolToken:Fe=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),O=!0,R=Fe},CommaSymbolToken:()=>this.nextToken()})}});for(const ce of k)if(ce instanceof a.ArgDescriptionAnnotation){const Fe=C.find(ze=>ze instanceof a.Field&&ze.name===ce.argName);if(!Fe)throw new T(`Argument '${ce.argName}' not found, at ${ce.location}`);Fe.annotations.push(new a.DescriptionAnnotation(ce.text).atLocation(ce.location))}k=k.filter(ce=>!(ce instanceof a.ArgDescriptionAnnotation));let ie=(new a.VoidPrimitiveType).at(R);this.token instanceof v.ColonSymbolToken&&(this.nextToken(),ie=this.parseType());const J=new a.FunctionOperation(W,C,ie);return J.annotations=k,J}parseEnum(){this.checkCannotHaveAnnotationsHere();const k=this.expect(v.EnumKeywordToken);this.nextToken(),this.expect(v.CurlyOpenSymbolToken),this.nextToken();const W=new a.EnumType([]).at(k);let A=!1;for(;!A;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),A=!0},IdentifierToken:C=>{const O=new a.EnumValue(C.value).at(C);if(O.annotations=this.annotations,this.annotations=[],W.values.push(O),this.nextToken(),!(this.token instanceof v.ParensOpenSymbolToken))return;this.nextToken();const R=new Set,ie=[];for(;this.token&&this.token.maybeAsIdentifier()instanceof v.IdentifierToken;){const J=this.parseField();if("tag"===J.name&&(J.name="_tag"),R.has(J.name))throw new T(`Cannot redeclare argument '${J.name}'`);if(R.add(J.name),ie.push(J),!(this.token instanceof v.CommaSymbolToken))break;this.nextToken()}O.struct=new a.StructType(ie).atLocation(O.location),this.expect(v.ParensCloseSymbolToken),this.nextToken()}});return W}parseField(){const k=this.expect(v.IdentifierToken);this.nextToken(),this.expect(v.ColonSymbolToken),this.nextToken();const{annotations:W}=this;this.annotations=[];const A=this.parseType(),C=new a.Field(k.value,A).at(k);for(C.annotations=W;this.token instanceof v.ExclamationMarkSymbolToken;){if("secret"!==(this.nextToken(),this.expect(v.IdentifierToken).value))throw new T(`Unknown field mark !${this.token.value} at ${this.token.location}`);C.secret=!0,this.nextToken()}return C}parseStruct(){const k=this.expect(v.CurlyOpenSymbolToken);this.nextToken();const W=[],A=new Set;let C=!1;for(;!C;)this.acceptAnnotations(),this.multiExpect({CurlyCloseSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken(),C=!0},IdentifierToken:()=>{const O=this.parseField();if(A.has(O.name))throw new T(`Cannot redeclare field '${O.name}'`);A.add(O.name),W.push(O)},SpreadSymbolToken:()=>{this.checkCannotHaveAnnotationsHere(),this.nextToken();const O=this.expect(v.IdentifierToken);if(this.nextToken(),!/[A-Z]/u.test(O.value[0]))throw new T(`Expected a type but found ${JSON.stringify(O.value)} at ${O.location}`);W.push(new a.Spread(new a.TypeReference(O.value).at(O)).at(O))}});return new a.StructType(W).at(k)}parseType(){this.checkCannotHaveAnnotationsHere();let k=this.multiExpect({CurlyOpenSymbolToken:()=>this.parseStruct(),EnumKeywordToken:()=>this.parseEnum(),IdentifierToken:W=>{if(this.nextToken(),!/[A-Z]/u.test(W.value[0]))throw new T(`Expected a type but found ${JSON.stringify(W.value)} at ${W.location}`);return new a.TypeReference(W.value).at(W)},PrimitiveTypeToken:W=>{this.nextToken();const A=y.primitiveToAstClass.get(W.value);if(A)return(new A).at(W);throw new T(`BUG! Should handle primitive ${W.value}`)}});for(;this.token instanceof v.ArraySymbolToken||this.token instanceof v.OptionalSymbolToken;)this.multiExpect({ArraySymbolToken:W=>k=new a.ArrayType(k).at(W),OptionalSymbolToken:W=>k=new a.OptionalType(k).at(W)}),this.nextToken();return k}}},5219:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.parseRestAnnotation=void 0;const a=b(194);function Q(y){const T=/\{(?<name>\w+)\}/gu,S=[];let N;for(;null!==(N=T.exec(y));)N.groups?.name&&S.push(N.groups.name);return S}w.parseRestAnnotation=function v(y){const T=y.split(" "),S=T[0].toUpperCase();if(!["GET","POST","PUT","DELETE","PATCH"].includes(S))throw new Error(`Unsupported method '${S}'`);let N=T[1];if(!N.startsWith("/"))throw new Error("Invalid path");let k=[];if(N.includes("?")){const[R,...ie]=N.split("?");N=R;const J=ie.join("?");if(!/^\{\w+\}(?:&\{\w+\})*$/u.test(J))throw new Error("Invalid querystring on path");k=Q(J)}const W=Q(N),A=T.slice(2).join(" "),C=function i(y){const T=/\[header (?<header>[^()<>@,;:\\"/[\]?={}\s\t]+): \{(?<name>\w+)\}\]/gu,S=new Map;let N;for(;null!==(N=T.exec(y));)N.groups?.header&&N.groups.name&&S.set(N.groups.header.toLowerCase(),N.groups.name);return S}(A),O=function te(y){const T=/\[body \{(?<name>\w+)\}\]/u.exec(y);return T?.groups?.name?T.groups.name:null}(A);return new a.RestAnnotation(S,N,W,k,C,O)}},3733:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.CheckMultipleDeclarationVisitor=void 0;const a=b(967),i=b(194);w.CheckMultipleDeclarationVisitor=class te extends a.Visitor{constructor(){super(...arguments),this.nameToType=new Map}visit(v){if(v instanceof i.TypeDefinition){const y=this.nameToType.get(v.name);if(y&&JSON.stringify(y)!==JSON.stringify(v.type))throw new a.SemanticError(`Type '${v.name}' at ${v.location} is defined multiple times (also at ${y.location})`);this.nameToType.set(v.name,v.type)}super.visit(v)}}},3367:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.GiveStructAndEnumNamesTransformer=void 0;const a=b(5417),i=b(967),te=b(194);w.GiveStructAndEnumNamesTransformer=class Q extends a.Transformer{constructor(){super(...arguments),this.path=[],this.names=new Map}transform(y){if(y instanceof te.TypeDefinition)return this.path=[y.name],super.transform(y);if(y instanceof te.ErrorNode)return this.path=[`${y.name}Data`],super.transform(y);if(y instanceof te.FunctionOperation)return this.path=[y.name],super.transform(y);if(y instanceof te.Field)try{return this.path.push(y.name),super.transform(y)}finally{this.path.pop()}else{if(!(y instanceof te.EnumValue)){if(y instanceof te.StructType||y instanceof te.EnumType){y.name=this.path.map(S=>S[0].toUpperCase()+S.slice(1)).join("");const T=this.names.get(y.name);if(T){if(T.type.constructor!==y.constructor||JSON.stringify(T.type)!==JSON.stringify(y))throw new i.SemanticError(`The name of the type '${this.path.join(".")}' at ${y.location} will conflict with '${T.path.join(".")}' at ${T.type.location}`);return T.type}return this.names.set(y.name,{path:[...this.path],type:y}),super.transform(y)}return super.transform(y)}try{return this.path.push(y.value),super.transform(y)}finally{this.path.pop()}}}}},1489:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.MatchTypeDefinitionsVisitor=void 0;const a=b(967),i=b(194);w.MatchTypeDefinitionsVisitor=class te extends a.Visitor{visit(v){if(v instanceof i.TypeReference){const y=this.root.typeDefinitions.find(T=>T.name===v.name);if(void 0===y)throw new a.SemanticError(`Could not find type '${v.name}' at ${v.location}`);v.type=y.type}super.visit(v)}}},458:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.CheckDontReturnSecretVisitor=void 0;const a=b(967),i=b(194);w.CheckDontReturnSecretVisitor=class te extends a.Visitor{constructor(){super(...arguments),this.isInReturn=!1,this.path=[],this.visited=new Set}visit(v){if(!this.visited.has(v))if(this.visited.add(v),v instanceof i.FunctionOperation)this.isInReturn=!0,this.visited.clear(),this.path.push(`${v.name}(...)`),this.visit(v.returnType),this.path.pop(),this.isInReturn=!1;else if(v instanceof i.TypeReference)this.visit(v.type);else if(v instanceof i.Field){if(this.path.push(v.name),this.isInReturn&&v.secret)throw new a.SemanticError(`Can't return a secret value at ${this.path.join(".")} at ${v.location}`);super.visit(v),this.path.pop()}else super.visit(v)}}},9623:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.ExpandSpreadsVisitor=void 0;const a=b(967),i=b(194);w.ExpandSpreadsVisitor=class te extends a.Visitor{constructor(){super(...arguments),this.processed=new Set}expandSpread(v,y){const T=new Map;for(const S of y){let N;if(S instanceof i.Field)N=[S];else{const k=S.typeReference.type;if(!(k instanceof i.StructType))throw new a.SemanticError(`A spread operator can't refer to something that is not a struct, in '${S.typeReference.name}' at ${S.location}.`);this.visit(k),N=k.fields}for(const k of N){const W=T.get(k.name);W?v[W]=k:(T.set(k.name,v.length),v.push(k))}}}visit(v){if(v instanceof i.StructType){if(this.processed.has(v))return;this.processed.add(v)}super.visit(v),v instanceof i.StructType?(this.expandSpread(v.fields,v.fieldsAndSpreads),v.fieldsAndSpreads=[]):v instanceof i.FunctionOperation&&(this.expandSpread(v.args,v.fieldsAndSpreads),v.fieldsAndSpreads=[])}}},1763:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.CheckEmptyStructOrEnumVisitor=void 0;const a=b(967),i=b(194);w.CheckEmptyStructOrEnumVisitor=class te extends a.Visitor{visit(v){if(super.visit(v),v instanceof i.EnumType&&0===v.values.length)throw new a.SemanticError(`Enum '${v.name}' at ${v.location} is empty`);if(v instanceof i.StructType&&0===v.fields.length)throw new a.SemanticError(`Struct '${v.name}' at ${v.location} is empty`)}}},2910:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.ValidateRecursiveTypes=void 0;const a=b(967),i=b(194);w.ValidateRecursiveTypes=class te extends a.Visitor{visit(v){if(super.visit(v),v instanceof i.TypeDefinition&&this.isRecursiveType(v,v.type)){if(!(v.type instanceof i.StructType||v.type instanceof i.EnumType))throw new a.SemanticError(`Type '${v.name}' at ${v.location} is recursive but is not an struct`);if(this.isInfinitelyRecursiveType(v,v.type))throw new a.SemanticError(`Type '${v.name}' at ${v.location} is infinitely recursive`)}}isRecursiveType(v,y){return y instanceof i.TypeReference?v.name===y.name:y instanceof i.ArrayType||y instanceof i.OptionalType?this.isRecursiveType(v,y.base):y instanceof i.StructType?y.fields.some(T=>this.isRecursiveType(v,T.type)):y instanceof i.EnumType&&y.values.some(T=>T.struct&&this.isRecursiveType(v,T.struct))}isInfinitelyRecursiveType(v,y){return y instanceof i.TypeReference?y.name===v.name:y instanceof i.StructType?y.fields.some(T=>this.isInfinitelyRecursiveType(v,T.type)):y instanceof i.EnumType&&y.values.every(T=>T.struct&&this.isInfinitelyRecursiveType(v,T.struct))}}},3605:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.CollectStructAndEnumTypesVisitor=void 0;const a=b(967),i=b(194);w.CollectStructAndEnumTypesVisitor=class te extends a.Visitor{constructor(){super(...arguments),this.visited=new Set}visit(v){super.visit(v),!this.visited.has(v)&&(this.visited.add(v),v instanceof i.StructType?this.root.structTypes.push(v):v instanceof i.EnumType&&this.root.enumTypes.push(v))}}},4749:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.ValidateAnnotationsVisitor=void 0;const a=b(967),i=b(194);function Q(y){return y instanceof i.TypeReference?Q(y.type):y}w.ValidateAnnotationsVisitor=class v extends a.Visitor{visit(T){if(T instanceof i.EnumValue){for(const S of T.annotations)if(!(S instanceof i.DescriptionAnnotation))throw new a.SemanticError(`Cannot have @${S.constructor.name.replace("Annotation","").toLowerCase()} at ${S.location}`)}else if(T instanceof i.TypeDefinition){for(const S of T.annotations)if(!(S instanceof i.DescriptionAnnotation))throw new a.SemanticError(`Cannot have @${S.constructor.name.replace("Annotation","").toLowerCase()} at ${S.location}`)}else if(T instanceof i.Field){for(const S of T.annotations)if(!(S instanceof i.DescriptionAnnotation))throw new a.SemanticError(`Cannot have @${S.constructor.name.replace("Annotation","").toLowerCase()} at ${S.location}`)}else if(T instanceof i.FunctionOperation){for(const S of T.annotations)if(!(S instanceof i.DescriptionAnnotation))if(S instanceof i.ThrowsAnnotation){if(!this.root.errors.some(N=>N.name===S.error))throw new a.SemanticError(`Unknown error type '${S.error}' at ${S.location}`)}else if(S instanceof i.RestAnnotation){const N=[...S.pathVariables,...S.queryVariables,...S.headers.values()];if(N.length!==new Set(N).size)throw new a.SemanticError(`Arguments must appear only once for rest annotation at ${S.location}`);for(const k of N){const W=T.args.find(C=>C.name===k);if(!W)throw new a.SemanticError(`Argument '${k}' not found at ${S.location}`);if(S.pathVariables.includes(k)&&W.type instanceof i.OptionalType)throw new a.SemanticError(`The path argument '${k}' can't be nullable at ${S.location}`);if(!((y=Q(W.type instanceof i.OptionalType?W.type.base:W.type))instanceof i.BoolPrimitiveType||y instanceof i.IntPrimitiveType||y instanceof i.UIntPrimitiveType||y instanceof i.BigIntPrimitiveType||y instanceof i.FloatPrimitiveType||y instanceof i.StringPrimitiveType||y instanceof i.DatePrimitiveType||y instanceof i.DateTimePrimitiveType||y instanceof i.MoneyPrimitiveType||y instanceof i.DecimalPrimitiveType||y instanceof i.CpfPrimitiveType||y instanceof i.CnpjPrimitiveType||y instanceof i.UuidPrimitiveType||y instanceof i.HexPrimitiveType||y instanceof i.Base64PrimitiveType||y instanceof i.EnumType))throw new a.SemanticError(`Argument '${k}' can't have type '${W.type.name}' for rest annotation at ${S.location}`)}for(const k of T.args){if(!N.includes(k.name)&&S.bodyVariable!==k.name)throw new a.SemanticError(`Argument '${k.name}' is missing from the rest annotation at ${S.location}`);const W=[...S.pathVariables,...S.queryVariables];if("GET"===S.method&&W.includes(k.name)&&k.secret)throw new a.SemanticError(`Argument marked as secret cannot be used in the path or query parts of a GET endpoint at ${S.location}`)}if("GET"===S.method&&T.returnType instanceof i.VoidPrimitiveType)throw new a.SemanticError(`A GET rest endpoint must return something at ${S.location}`)}else if(!(S instanceof i.HiddenAnnotation))throw new a.SemanticError(`Cannot have @${S.constructor.name.replace("Annotation","").toLowerCase()} at ${S.location}`)}else if(T instanceof i.ErrorNode){for(const S of T.annotations){if(!(S instanceof i.StatusCodeAnnotation))throw new a.SemanticError(`Cannot have @${S.constructor.name.replace("Annotation","").toLowerCase()} at ${S.location}`);if(S.statusCode<400||S.statusCode>599)throw new a.SemanticError(`Error status code can only be 4xx or 5xx at ${S.location}`)}if(T.annotations.filter(S=>S instanceof i.StatusCodeAnnotation).length>1)throw new a.SemanticError(`Can't provide more than one status code at ${T.location}`)}var y}}},2971:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.CheckDuplicatedMembersOnEnumVisitor=void 0;const a=b(967),i=b(194);w.CheckDuplicatedMembersOnEnumVisitor=class te extends a.Visitor{visit(v){if(super.visit(v),v instanceof i.EnumType&&v.values.length!==new Set(v.values.map(y=>y.value)).size)throw new a.SemanticError(`Enum '${v.name}' at ${v.location} has duplicated members`)}}},3835:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.analyse=void 0;const a=b(3733),i=b(3367),te=b(1489),Q=b(458),v=b(9623),y=b(1763),T=b(2910),S=b(3605),N=b(4749),k=b(2971),W=b(194);w.analyse=function A(C){C.errors.some(O=>"Fatal"===O.name)||C.errors.push(new W.ErrorNode("Fatal",new W.VoidPrimitiveType)),new a.CheckMultipleDeclarationVisitor(C).process(),new i.GiveStructAndEnumNamesTransformer(C).process(),new te.MatchTypeDefinitionsVisitor(C).process(),new Q.CheckDontReturnSecretVisitor(C).process(),new v.ExpandSpreadsVisitor(C).process(),new y.CheckEmptyStructOrEnumVisitor(C).process(),new T.ValidateRecursiveTypes(C).process(),new S.CollectStructAndEnumTypesVisitor(C).process(),new N.ValidateAnnotationsVisitor(C).process(),new k.CheckDuplicatedMembersOnEnumVisitor(C).process()}},5417:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.Transformer=w.SemanticError=void 0;const a=b(194);class i extends Error{}w.SemanticError=i,w.Transformer=class te{constructor(v){this.root=v}process(){this.root.errors=this.root.errors.map(v=>this.transform(v)),this.root.typeDefinitions=this.root.typeDefinitions.map(v=>this.transform(v)),this.root.operations=this.root.operations.map(v=>this.transform(v))}transform(v){return v instanceof a.FunctionOperation?(v.args=v.args.map(y=>this.transform(y)),v.fieldsAndSpreads=v.fieldsAndSpreads.map(y=>this.transform(y)),v.returnType=this.transform(v.returnType)):v instanceof a.Field||v instanceof a.TypeDefinition?v.type=this.transform(v.type):v instanceof a.StructType?(v.fields=v.fields.map(y=>this.transform(y)),v.fieldsAndSpreads=v.fieldsAndSpreads.map(y=>this.transform(y))):v instanceof a.EnumType?v.values=v.values.map(y=>this.transform(y)):v instanceof a.EnumValue?v.struct&&(v.struct=this.transform(v.struct)):v instanceof a.ArrayType||v instanceof a.OptionalType?v.base=this.transform(v.base):v instanceof a.ErrorNode?v.dataType=this.transform(v.dataType):v instanceof a.Spread&&(v.typeReference=this.transform(v.typeReference)),v}}},967:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.Visitor=w.SemanticError=void 0;const a=b(194);class i extends Error{}w.SemanticError=i,w.Visitor=class te{constructor(v){this.root=v}process(){for(const v of this.root.errors)this.visit(v);for(const v of this.root.typeDefinitions)this.visit(v);for(const v of this.root.operations)this.visit(v)}visit(v){if(v instanceof a.FunctionOperation){for(const y of v.args)this.visit(y);for(const y of v.fieldsAndSpreads)this.visit(y);this.visit(v.returnType)}else if(v instanceof a.Field||v instanceof a.TypeDefinition)this.visit(v.type);else if(v instanceof a.StructType){for(const y of v.fields)this.visit(y);for(const y of v.fieldsAndSpreads)this.visit(y)}else if(v instanceof a.EnumType)for(const y of v.values)this.visit(y);else v instanceof a.EnumValue?v.struct&&this.visit(v.struct):v instanceof a.ArrayType||v instanceof a.OptionalType?this.visit(v.base):v instanceof a.ErrorNode?this.visit(v.dataType):v instanceof a.Spread&&this.visit(v.typeReference)}}},2188:(Ee,w)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.PrimitiveTypeToken=w.FalseKeywordToken=w.TrueKeywordToken=w.ErrorKeywordToken=w.FnKeywordToken=w.EnumKeywordToken=w.TypeKeywordToken=w.ImportKeywordToken=w.AnnotationToken=w.SpreadSymbolToken=w.CommaSymbolToken=w.ArraySymbolToken=w.OptionalSymbolToken=w.ColonSymbolToken=w.ParensCloseSymbolToken=w.ParensOpenSymbolToken=w.CurlyCloseSymbolToken=w.CurlyOpenSymbolToken=w.ExclamationMarkSymbolToken=w.EqualSymbolToken=w.StringLiteralToken=w.IdentifierToken=w.Token=w.TokenLocation=void 0;class b{constructor(){this.filename="?",this.line=0,this.column=0}toString(){return`${this.filename}:${this.line}:${this.column}`}}w.TokenLocation=b;class a{constructor(ke=""){this.value=ke,this.location=new b,Object.defineProperty(this,"location",{enumerable:!1})}maybeAsIdentifier(){return this}toString(){const ke=this.constructor.name.replace("Token","");return""===this.value?ke:`${ke}(${JSON.stringify(this.value)})`}}w.Token=a;class i extends a{}w.IdentifierToken=i,w.StringLiteralToken=class te extends a{},w.EqualSymbolToken=class Q extends a{},w.ExclamationMarkSymbolToken=class v extends a{},w.CurlyOpenSymbolToken=class y extends a{},w.CurlyCloseSymbolToken=class T extends a{},w.ParensOpenSymbolToken=class S extends a{},w.ParensCloseSymbolToken=class N extends a{},w.ColonSymbolToken=class k extends a{},w.OptionalSymbolToken=class W extends a{},w.ArraySymbolToken=class A extends a{},w.CommaSymbolToken=class C extends a{},w.SpreadSymbolToken=class O extends a{},w.AnnotationToken=class R extends a{},w.ImportKeywordToken=class ie extends a{maybeAsIdentifier(){return new i("import")}},w.TypeKeywordToken=class J extends a{maybeAsIdentifier(){return new i("type")}},w.EnumKeywordToken=class ce extends a{maybeAsIdentifier(){return new i("enum")}},w.FnKeywordToken=class Fe extends a{maybeAsIdentifier(){return new i("fn")}},w.ErrorKeywordToken=class ze extends a{maybeAsIdentifier(){return new i("error")}},w.TrueKeywordToken=class Ve extends a{maybeAsIdentifier(){return new i("true")}},w.FalseKeywordToken=class Se extends a{maybeAsIdentifier(){return new i("false")}},w.PrimitiveTypeToken=class Oe extends a{maybeAsIdentifier(){return new i(this.value)}}},5127:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.primitiveToAstClass=void 0;const a=b(194);w.primitiveToAstClass=new Map,w.primitiveToAstClass.set("string",a.StringPrimitiveType),w.primitiveToAstClass.set("int",a.IntPrimitiveType),w.primitiveToAstClass.set("uint",a.UIntPrimitiveType),w.primitiveToAstClass.set("date",a.DatePrimitiveType),w.primitiveToAstClass.set("datetime",a.DateTimePrimitiveType),w.primitiveToAstClass.set("float",a.FloatPrimitiveType),w.primitiveToAstClass.set("bigint",a.BigIntPrimitiveType),w.primitiveToAstClass.set("bool",a.BoolPrimitiveType),w.primitiveToAstClass.set("bytes",a.BytesPrimitiveType),w.primitiveToAstClass.set("money",a.MoneyPrimitiveType),w.primitiveToAstClass.set("decimal",a.DecimalPrimitiveType),w.primitiveToAstClass.set("cpf",a.CpfPrimitiveType),w.primitiveToAstClass.set("cnpj",a.CnpjPrimitiveType),w.primitiveToAstClass.set("email",a.EmailPrimitiveType),w.primitiveToAstClass.set("html",a.HtmlPrimitiveType),w.primitiveToAstClass.set("url",a.UrlPrimitiveType),w.primitiveToAstClass.set("uuid",a.UuidPrimitiveType),w.primitiveToAstClass.set("hex",a.HexPrimitiveType),w.primitiveToAstClass.set("base64",a.Base64PrimitiveType),w.primitiveToAstClass.set("xml",a.XmlPrimitiveType),w.primitiveToAstClass.set("json",a.JsonPrimitiveType),w.primitiveToAstClass.set("void",a.VoidPrimitiveType)},7667:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateRxMethod=w.generateMethodSignature=w.generateErrorClass=w.generateClass=w.generateErrorType=w.generateEnum=w.generateJsonRepresentation=w.mangle=w.generateSwiftTypeName=void 0;const a=b(6068);function i(C){switch(C.constructor){case a.IntPrimitiveType:return"Int";case a.UIntPrimitiveType:return"UInt";case a.MoneyPrimitiveType:return"Int64";case a.FloatPrimitiveType:return"Double";case a.BigIntPrimitiveType:return"Decimal";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"Date";case a.BoolPrimitiveType:return"Bool";case a.BytesPrimitiveType:return"Data";case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.UrlPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"String";case a.VoidPrimitiveType:return"Void";case a.JsonPrimitiveType:return"AnyCodable";case a.OptionalType:return`${i(C.base)}?`;case a.ArrayType:return`[${i(C.base)}]`;case a.StructType:case a.EnumType:return`API.${C.name}`;case a.TypeReference:return i(C.type);default:throw new Error(`BUG: generateSwiftTypeName with ${C.constructor.name}`)}}function te(C){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(C)?`_${C}`:C}function Q(C,O){switch(C.constructor){case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:case a.FloatPrimitiveType:case a.BoolPrimitiveType:return`${O}`;case a.OptionalType:return`${O} == nil ? nil : ${Q(C.base,`${O}!`)}`;case a.DatePrimitiveType:return`SdkgenHelper.encodeDate(date: ${O})`;case a.DateTimePrimitiveType:return`SdkgenHelper.encodeDateTime(date: ${O})`;case a.EnumType:return`${O}.rawValue`;case a.TypeReference:return`${Q(C.type,`${O}`)}`;case a.StructType:return`${O}.toJSON()`;case a.ArrayType:return`${O}.map({ return ${Q(C.base,"$0")} })`;case a.JsonPrimitiveType:return`try? ${O}.toJson()`;case a.VoidPrimitiveType:return"nil";case a.BytesPrimitiveType:return`${O}.base64EncodedString()`;default:throw new Error(`BUG: No result found for generateJsonRepresentation with ${C.constructor.name}`)}}w.generateSwiftTypeName=i,w.mangle=te,w.generateJsonRepresentation=Q,w.generateEnum=function v(C){let O=` public enum ${C.name}: String, Codable {\n`;return O+=C.values.map(R=>` case ${te(R.value)} = "${R.value}"`).join("\n"),O+="\n }\n",O},w.generateErrorType=function y(C){let O=" public enum ErrorType: String, Codable {\n";return O+=C.map(R=>` case ${te(R)} = "${R}"`).join("\n"),O+="\n }\n",O},w.generateClass=function N(C){return` public struct ${C.name}: Codable {\n${C.fields.map(O=>` var ${te(O.name)}: ${i(O.type)}`).join("\n")}\n\n${function T(C){let O=" init(";return O+=C.fields.map(R=>`${te(R.name)}: ${i(R.type)}`).join(", "),O+=") {\n",O+=C.fields.map(R=>` self.${te(R.name)} = ${te(R.name)}`).join("\n"),O+="\n }\n",O}(C)}\n${function S(C){let O=" func toJSON() -> [String: Any] {\n";return O+=" var json = [String: Any]()\n",O+=C.fields.map(R=>` json["${te(R.name)}"] = ${Q(R.type,R.name)}`).join("\n"),O+="\n return json",O+="\n }\n",O}(C)}\n }\n`},w.generateErrorClass=function k(){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"},w.generateMethodSignature=function W(C){const O=C.args.map(R=>`${te(R.name)}: ${i(R.type)}`).concat(["timeoutSeconds: Double?",`callback: ((_ result: ${C.returnType instanceof a.VoidPrimitiveType?"API.Result<API.NoReply>":`API.Result<${i(C.returnType)}>`}) -> Void)?`]);return` func ${te(C.name)}(${O.join(", ")})`},w.generateRxMethod=function A(C){const O=C.args.map(ie=>`${te(ie.name)}: ${i(ie.type)}`).concat(["timeoutSeconds: Double? = nil"]);let R=` static func ${te(C.name)}(${O.join(", ")}) -> ${C.returnType instanceof a.VoidPrimitiveType?"Observable<API.Result<API.NoReply>>":`Observable<API.Result<${i(C.returnType)}>>`} {\n`;return R+=" return Observable.create { observer -> Disposable in\n",R+=` API.calls.${te(C.name)}(${C.args.map(ie=>`${te(ie.name)}: ${te(ie.name)}`).concat(["timeoutSeconds: timeoutSeconds"]).join(", ")}) { result in \n`,R+=" observer.on(.next(result))\n",R+=" observer.on(.completed)\n",R+=" }\n",R+=" return Disposables.create()\n",R+=" }\n",R+=" }\n",R}},3084:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),b(2970).__exportStar(b(8280),w)},8280:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateSwiftClientSource=void 0;const a=b(6068),i=b(7667);w.generateSwiftClientSource=function te(Q,v){let y="import Foundation\nimport SdkgenRuntime\n";y+=v?"import RxSwift\nimport RxCocoa\n\n":"\n",y+="protocol APICallsProtocol {\n",y+=Q.operations.filter(N=>N.annotations.every(k=>!(k instanceof a.HiddenAnnotation))).map(N=>`${(0,i.generateMethodSignature)(N)}`).join("\n"),y+="\n}\n\n",y+='class API: SdkgenResponse {\n\n static var calls = 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 N of Q.enumTypes)y+=(0,i.generateEnum)(N),y+="\n";for(const N of Q.structTypes)y+=(0,i.generateClass)(N),y+="\n";const T=[],S=new a.ErrorNode("Connection",new a.VoidPrimitiveType);T.push(S.name);for(const N of Q.errors)T.push(N.name);return T.length>0&&(y+=(0,i.generateErrorType)(T),y+="\n"),y+=(0,i.generateErrorClass)(),y+="\n",y+=" public enum Result<T> {\n case success(T)\n case failure(Failure)\n }\n\n",y+=" public class Calls: SdkgenHttpClient, APICallsProtocol {\n\n override init(baseUrl: String) {\n super.init(baseUrl: baseUrl)\n }\n\n",y+=Q.operations.filter(N=>N.annotations.every(k=>!(k instanceof a.HiddenAnnotation))).map(N=>{let k="";return k+=` ${(0,i.generateMethodSignature)(N)} {\n`,N.args.length>0?(k+=" var jsonArgs = [String: Any]()\n",k+=N.args.map(W=>` jsonArgs["${(0,i.mangle)(W.name)}"] = ${(0,i.generateJsonRepresentation)(W.type,(0,i.mangle)(W.name))}`).join("\n")):k+=" let jsonArgs = [String: Any]()",k+="\n\n",k+=` makeRequest("${N.name}", jsonArgs, timeoutSeconds, completion: { (value: ${N.returnType instanceof a.VoidPrimitiveType?"API.NoReply":(0,i.generateSwiftTypeName)(N.returnType)}) in\n`,k+=" callback?(API.Result.success(value))\n",k+=" }, onError: { error in\n",k+=" callback?(API.Result.failure(API.Failure(message: error.message, code: error.code, type: error.type)))\n",k+=" })",k+="\n }\n",k}).join("\n"),y+=" }\n",y+="}\n",v&&(y+="\n",y+="extension API: ReactiveCompatible {}\n\n",y+="extension Reactive where Base: API {\n",y+=Q.operations.filter(N=>N.annotations.every(k=>!(k instanceof a.HiddenAnnotation))).map(N=>`${(0,i.generateRxMethod)(N)}`).join("\n"),y+="}\n"),y}},486:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateBrowserClientSource=void 0;const a=b(6068),i=b(7661);w.generateBrowserClientSource=function te(Q){let v="";v+=`/* eslint-disable */\nimport { SdkgenError${Q.errors.some(T=>!(T.dataType instanceof a.VoidPrimitiveType))?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/browser-runtime";\n`,(0,a.hasType)(Q,a.DecimalPrimitiveType)&&(v+='import { Decimal } from "decimal.js-light";\n'),v+="\n";for(const T of Q.enumTypes)v+=(0,i.generateTypescriptEnum)(T),v+="\n";for(const T of Q.structTypes)v+=(0,i.generateTypescriptInterface)(T,!0),v+="\n";for(const T of Q.errors)v+=(0,i.generateTypescriptErrorClass)(T,!0),v+="\n";return v+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${Q.operations.filter(T=>T.annotations.every(S=>!(S instanceof a.HiddenAnnotation))).map(T=>`\n ${T.name}(args${0===T.args.length?"?":""}: {${T.args.map(S=>`${S.name}${S.type.name.endsWith("?")?"?":""}: ${(0,i.generateTypescriptTypeName)(S.type,!0)}`).join(", ")}}): Promise<${(0,i.generateTypescriptTypeName)(T.returnType,!0)}> { return this.makeRequest("${T.name}", args || {}); }`).join("")}\n}\n\n`,v+=`const errClasses = {\n${Q.errors.map(T=>` ${T.name}`).join(",\n")}\n};\n\n`,v+=`const astJson = ${JSON.stringify((0,a.astToJson)(Q),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,v}},7661:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.clearForLogging=w.generateTypescriptErrorClass=w.generateTypescriptEnum=w.generateTypescriptInterface=w.generateTypescriptTypeName=void 0;const a=b(6068);function i(T,S){switch(T.constructor){case a.IntPrimitiveType:case a.UIntPrimitiveType:case a.MoneyPrimitiveType:case a.FloatPrimitiveType:return"number";case a.BigIntPrimitiveType:return"bigint";case a.DecimalPrimitiveType:return"Decimal";case a.DatePrimitiveType:case a.DateTimePrimitiveType:return"Date";case a.BoolPrimitiveType:return"boolean";case a.BytesPrimitiveType:return S?"ArrayBuffer":"Buffer";case a.StringPrimitiveType:case a.CpfPrimitiveType:case a.CnpjPrimitiveType:case a.EmailPrimitiveType:case a.HtmlPrimitiveType:case a.UrlPrimitiveType:case a.UuidPrimitiveType:case a.HexPrimitiveType:case a.Base64PrimitiveType:case a.XmlPrimitiveType:return"string";case a.VoidPrimitiveType:return"void";case a.JsonPrimitiveType:return"any";case a.OptionalType:return`${i(T.base,S)} | null`;case a.ArrayType:{const{base:N}=T,k=i(N,S);return N instanceof a.OptionalType?`(${k})[]`:`${k}[]`}case a.StructType:case a.EnumType:return T.name;case a.TypeReference:return i(T.type,S);default:throw new Error(`BUG: generateTypescriptTypeName with ${T.constructor.name}`)}}w.generateTypescriptTypeName=i,w.generateTypescriptInterface=function te(T,S){return`export interface ${T.name} {\n${T.fields.map(N=>` ${N.name}: ${i(N.type,S)}`).join("\n")}\n}\n`},w.generateTypescriptEnum=function Q(T){return T.hasStructValues?`export type ${T.name} = ${T.values.map(S=>S.struct?`({tag: "${S.value}"} & ${S.struct.name})`:`{tag: "${S.value}"}`).join(" | ")};\n`:`export type ${T.name} = ${T.values.map(S=>`"${S.value}"`).join(" | ")};\n`},w.generateTypescriptErrorClass=function v(T,S){return`export class ${T.name} extends ${T.dataType instanceof a.VoidPrimitiveType?"SdkgenError":`SdkgenErrorWithData<${i(T.dataType,S)}>`} {}\n`},w.clearForLogging=function y(T,S){switch(S.constructor){case a.TypeReference:return y(T,S.type);case a.OptionalType:{const N=y(T,S.base);return N?`if (${T} !== null && ${T} !== undefined) { ${N} }`:""}case a.ArrayType:{const N=y("el",S.base);return N?`for (const el of ${T}) { ${N} }`:""}case a.StructType:{const N=[];for(const k of S.fields)if(k.secret)N.push(`${T}.${k.name} = "<secret>";`);else{const W=y(`${T}.${k.name}`,k.type);W&&N.push(W)}return N.join(" ")}default:return""}}},5747:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});const a=b(2970);a.__exportStar(b(486),w),a.__exportStar(b(2301),w),a.__exportStar(b(9664),w),a.__exportStar(b(9966),w)},2301:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateTypescriptInterfaces=void 0;const a=b(7661);w.generateTypescriptInterfaces=function i(te){let Q="";for(const v of te.enumTypes)Q+=(0,a.generateTypescriptEnum)(v);Q+="\n";for(const v of te.structTypes)Q+=(0,a.generateTypescriptInterface)(v,!1),Q+="\n";return Q}},9664:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateNodeClientSource=void 0;const a=b(6068),i=b(7661);w.generateNodeClientSource=function te(Q){let v="";const y=Q.errors.some(S=>!(S.dataType instanceof a.VoidPrimitiveType));v+=`/* eslint-disable */\nimport { Context, Fatal${Q.errors.filter(S=>"Fatal"!==S.name).some(S=>S.dataType instanceof a.VoidPrimitiveType)?", SdkgenError":""}${y?", SdkgenErrorWithData":""}, SdkgenHttpClient } from "@sdkgen/node-runtime";\nimport { PartialDeep } from "type-fest";\nexport { Fatal } from "@sdkgen/node-runtime";\n`,(0,a.hasType)(Q,a.DecimalPrimitiveType)&&(v+='import { Decimal } from "decimal.js";\n'),v+="\n";for(const S of Q.enumTypes)v+=(0,i.generateTypescriptEnum)(S),v+="\n";for(const S of Q.structTypes)v+=(0,i.generateTypescriptInterface)(S,!1),v+="\n";for(const S of Q.errors)"Fatal"!==S.name&&(v+=(0,i.generateTypescriptErrorClass)(S,!1),v+="\n");return v+=`export class ApiClient extends SdkgenHttpClient {\n constructor(baseUrl: string) {\n super(baseUrl, astJson, errClasses);\n }\n${Q.operations.filter(S=>S.annotations.every(N=>!(N instanceof a.HiddenAnnotation))).map(S=>`\n ${S.name}(ctx: PartialDeep<Context> | null, args: {${S.args.map(N=>`${N.name}${N.type.name.endsWith("?")?"?":""}: ${(0,i.generateTypescriptTypeName)(N.type,!1)}`).join(", ")}}): Promise<${(0,i.generateTypescriptTypeName)(S.returnType,!1)}> { return this.makeRequest(ctx, "${S.name}", args); }`).join("")}\n}\n\n`,v+=`const errClasses = {\n${Q.errors.map(S=>` ${S.name}`).join(",\n")}\n};\n\n`,v+=`const astJson = ${JSON.stringify((0,a.astToJson)(Q),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:")} as const;\n`,v}},9966:(Ee,w,b)=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0}),w.generateNodeServerSource=void 0;const a=b(6068),i=b(7661);w.generateNodeServerSource=function te(Q){let v="";const y=Q.errors.some(S=>!(S.dataType instanceof a.VoidPrimitiveType));v+=`/* eslint-disable */\nimport { BaseApiConfig, type Context${Q.errors.filter(S=>"Fatal"!==S.name).some(S=>S.dataType instanceof a.VoidPrimitiveType)?", SdkgenError":""}${y?", SdkgenErrorWithData":""} } from "@sdkgen/node-runtime";\nexport { Fatal } from "@sdkgen/node-runtime";\n`,(0,a.hasType)(Q,a.DecimalPrimitiveType)&&(v+='import { Decimal } from "decimal.js";\n'),v+="\n";for(const S of Q.enumTypes)v+=(0,i.generateTypescriptEnum)(S),v+="\n";for(const S of Q.structTypes)v+=(0,i.generateTypescriptInterface)(S,!1),v+="\n";for(const S of Q.errors)"Fatal"!==S.name&&(v+=(0,i.generateTypescriptErrorClass)(S,!1),v+="\n");return v+=`export class ApiConfig<ExtraContextT> extends BaseApiConfig<ExtraContextT> {\n declare fn: {${Q.operations.map(S=>`\n ${S.name}: (ctx: Context & ExtraContextT, args: {${S.args.map(N=>`${N.name}: ${(0,i.generateTypescriptTypeName)(N.type,!1)}`).join(", ")}}) => Promise<${(0,i.generateTypescriptTypeName)(S.returnType,!1)}>`).join("")}\n }\n\n astJson = ${JSON.stringify((0,a.astToJson)(Q),null,4).replace(/"(?<key>\w+)":/gu,"$<key>:").replace(/\n/gu,"\n ")} as const\n}\n\nexport const api = new ApiConfig<{}>();\n`,v}},7156:Ee=>{function w(a,i,te,Q,v,y,T){try{var S=a[y](T),N=S.value}catch(k){return void te(k)}S.done?i(N):Promise.resolve(N).then(Q,v)}Ee.exports=function b(a){return function(){var i=this,te=arguments;return new Promise(function(Q,v){var y=a.apply(i,te);function T(N){w(y,Q,v,T,S,"next",N)}function S(N){w(y,Q,v,T,S,"throw",N)}T(void 0)})}},Ee.exports.__esModule=!0,Ee.exports.default=Ee.exports},2970:(Ee,w,b)=>{"use strict";b.r(w),b.d(w,{__addDisposableResource:()=>Wt,__assign:()=>te,__asyncDelegator:()=>Oe,__asyncGenerator:()=>Se,__asyncValues:()=>Me,__await:()=>Ve,__awaiter:()=>A,__classPrivateFieldGet:()=>lt,__classPrivateFieldIn:()=>zt,__classPrivateFieldSet:()=>Ct,__createBinding:()=>O,__decorate:()=>v,__disposeResources:()=>le,__esDecorate:()=>T,__exportStar:()=>R,__extends:()=>i,__generator:()=>C,__importDefault:()=>He,__importStar:()=>De,__makeTemplateObject:()=>ke,__metadata:()=>W,__param:()=>y,__propKey:()=>N,__read:()=>J,__rest:()=>Q,__runInitializers:()=>S,__setFunctionName:()=>k,__spread:()=>ce,__spreadArray:()=>ze,__spreadArrays:()=>Fe,__values:()=>ie,default:()=>re});var a=function(G,$){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(F,U){F.__proto__=U}||function(F,U){for(var H in U)Object.prototype.hasOwnProperty.call(U,H)&&(F[H]=U[H])})(G,$)};function i(G,$){if("function"!=typeof $&&null!==$)throw new TypeError("Class extends value "+String($)+" is not a constructor or null");function F(){this.constructor=G}a(G,$),G.prototype=null===$?Object.create($):(F.prototype=$.prototype,new F)}var te=function(){return te=Object.assign||function($){for(var F,U=1,H=arguments.length;U<H;U++)for(var Z in F=arguments[U])Object.prototype.hasOwnProperty.call(F,Z)&&($[Z]=F[Z]);return $},te.apply(this,arguments)};function Q(G,$){var F={};for(var U in G)Object.prototype.hasOwnProperty.call(G,U)&&$.indexOf(U)<0&&(F[U]=G[U]);if(null!=G&&"function"==typeof Object.getOwnPropertySymbols){var H=0;for(U=Object.getOwnPropertySymbols(G);H<U.length;H++)$.indexOf(U[H])<0&&Object.prototype.propertyIsEnumerable.call(G,U[H])&&(F[U[H]]=G[U[H]])}return F}function v(G,$,F,U){var de,H=arguments.length,Z=H<3?$:null===U?U=Object.getOwnPropertyDescriptor($,F):U;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)Z=Reflect.decorate(G,$,F,U);else for(var ge=G.length-1;ge>=0;ge--)(de=G[ge])&&(Z=(H<3?de(Z):H>3?de($,F,Z):de($,F))||Z);return H>3&&Z&&Object.defineProperty($,F,Z),Z}function y(G,$){return function(F,U){$(F,U,G)}}function T(G,$,F,U,H,Z){function de(Te){if(void 0!==Te&&"function"!=typeof Te)throw new TypeError("Function expected");return Te}for(var Ke,ge=U.kind,Ne="getter"===ge?"get":"setter"===ge?"set":"value",Be=!$&&G?U.static?G:G.prototype:null,Xe=$||(Be?Object.getOwnPropertyDescriptor(Be,U.name):{}),mt=!1,Ae=F.length-1;Ae>=0;Ae--){var Ge={};for(var ne in U)Ge[ne]="access"===ne?{}:U[ne];for(var ne in U.access)Ge.access[ne]=U.access[ne];Ge.addInitializer=function(Te){if(mt)throw new TypeError("Cannot add initializers after decoration has completed");Z.push(de(Te||null))};var se=(0,F[Ae])("accessor"===ge?{get:Xe.get,set:Xe.set}:Xe[Ne],Ge);if("accessor"===ge){if(void 0===se)continue;if(null===se||"object"!=typeof se)throw new TypeError("Object expected");(Ke=de(se.get))&&(Xe.get=Ke),(Ke=de(se.set))&&(Xe.set=Ke),(Ke=de(se.init))&&H.unshift(Ke)}else(Ke=de(se))&&("field"===ge?H.unshift(Ke):Xe[Ne]=Ke)}Be&&Object.defineProperty(Be,U.name,Xe),mt=!0}function S(G,$,F){for(var U=arguments.length>2,H=0;H<$.length;H++)F=U?$[H].call(G,F):$[H].call(G);return U?F:void 0}function N(G){return"symbol"==typeof G?G:"".concat(G)}function k(G,$,F){return"symbol"==typeof $&&($=$.description?"[".concat($.description,"]"):""),Object.defineProperty(G,"name",{configurable:!0,value:F?"".concat(F," ",$):$})}function W(G,$){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(G,$)}function A(G,$,F,U){return new(F||(F=Promise))(function(Z,de){function ge(Xe){try{Be(U.next(Xe))}catch(Ke){de(Ke)}}function Ne(Xe){try{Be(U.throw(Xe))}catch(Ke){de(Ke)}}function Be(Xe){Xe.done?Z(Xe.value):function H(Z){return Z instanceof F?Z:new F(function(de){de(Z)})}(Xe.value).then(ge,Ne)}Be((U=U.apply(G,$||[])).next())})}function C(G,$){var U,H,Z,de,F={label:0,sent:function(){if(1&Z[0])throw Z[1];return Z[1]},trys:[],ops:[]};return de={next:ge(0),throw:ge(1),return:ge(2)},"function"==typeof Symbol&&(de[Symbol.iterator]=function(){return this}),de;function ge(Be){return function(Xe){return function Ne(Be){if(U)throw new TypeError("Generator is already executing.");for(;de&&(de=0,Be[0]&&(F=0)),F;)try{if(U=1,H&&(Z=2&Be[0]?H.return:Be[0]?H.throw||((Z=H.return)&&Z.call(H),0):H.next)&&!(Z=Z.call(H,Be[1])).done)return Z;switch(H=0,Z&&(Be=[2&Be[0],Z.value]),Be[0]){case 0:case 1:Z=Be;break;case 4:return F.label++,{value:Be[1],done:!1};case 5:F.label++,H=Be[1],Be=[0];continue;case 7:Be=F.ops.pop(),F.trys.pop();continue;default:if(!(Z=(Z=F.trys).length>0&&Z[Z.length-1])&&(6===Be[0]||2===Be[0])){F=0;continue}if(3===Be[0]&&(!Z||Be[1]>Z[0]&&Be[1]<Z[3])){F.label=Be[1];break}if(6===Be[0]&&F.label<Z[1]){F.label=Z[1],Z=Be;break}if(Z&&F.label<Z[2]){F.label=Z[2],F.ops.push(Be);break}Z[2]&&F.ops.pop(),F.trys.pop();continue}Be=$.call(G,F)}catch(Xe){Be=[6,Xe],H=0}finally{U=Z=0}if(5&Be[0])throw Be[1];return{value:Be[0]?Be[1]:void 0,done:!0}}([Be,Xe])}}}var O=Object.create?function(G,$,F,U){void 0===U&&(U=F);var H=Object.getOwnPropertyDescriptor($,F);(!H||("get"in H?!$.__esModule:H.writable||H.configurable))&&(H={enumerable:!0,get:function(){return $[F]}}),Object.defineProperty(G,U,H)}:function(G,$,F,U){void 0===U&&(U=F),G[U]=$[F]};function R(G,$){for(var F in G)"default"!==F&&!Object.prototype.hasOwnProperty.call($,F)&&O($,G,F)}function ie(G){var $="function"==typeof Symbol&&Symbol.iterator,F=$&&G[$],U=0;if(F)return F.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&U>=G.length&&(G=void 0),{value:G&&G[U++],done:!G}}};throw new TypeError($?"Object is not iterable.":"Symbol.iterator is not defined.")}function J(G,$){var F="function"==typeof Symbol&&G[Symbol.iterator];if(!F)return G;var H,de,U=F.call(G),Z=[];try{for(;(void 0===$||$-- >0)&&!(H=U.next()).done;)Z.push(H.value)}catch(ge){de={error:ge}}finally{try{H&&!H.done&&(F=U.return)&&F.call(U)}finally{if(de)throw de.error}}return Z}function ce(){for(var G=[],$=0;$<arguments.length;$++)G=G.concat(J(arguments[$]));return G}function Fe(){for(var G=0,$=0,F=arguments.length;$<F;$++)G+=arguments[$].length;var U=Array(G),H=0;for($=0;$<F;$++)for(var Z=arguments[$],de=0,ge=Z.length;de<ge;de++,H++)U[H]=Z[de];return U}function ze(G,$,F){if(F||2===arguments.length)for(var Z,U=0,H=$.length;U<H;U++)(Z||!(U in $))&&(Z||(Z=Array.prototype.slice.call($,0,U)),Z[U]=$[U]);return G.concat(Z||Array.prototype.slice.call($))}function Ve(G){return this instanceof Ve?(this.v=G,this):new Ve(G)}function Se(G,$,F){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var H,U=F.apply(G,$||[]),Z=[];return H={},de("next"),de("throw"),de("return"),H[Symbol.asyncIterator]=function(){return this},H;function de(mt){U[mt]&&(H[mt]=function(Ae){return new Promise(function(Ge,ne){Z.push([mt,Ae,Ge,ne])>1||ge(mt,Ae)})})}function ge(mt,Ae){try{!function Ne(mt){mt.value instanceof Ve?Promise.resolve(mt.value.v).then(Be,Xe):Ke(Z[0][2],mt)}(U[mt](Ae))}catch(Ge){Ke(Z[0][3],Ge)}}function Be(mt){ge("next",mt)}function Xe(mt){ge("throw",mt)}function Ke(mt,Ae){mt(Ae),Z.shift(),Z.length&&ge(Z[0][0],Z[0][1])}}function Oe(G){var $,F;return $={},U("next"),U("throw",function(H){throw H}),U("return"),$[Symbol.iterator]=function(){return this},$;function U(H,Z){$[H]=G[H]?function(de){return(F=!F)?{value:Ve(G[H](de)),done:!1}:Z?Z(de):de}:Z}}function Me(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var F,$=G[Symbol.asyncIterator];return $?$.call(G):(G=ie(G),F={},U("next"),U("throw"),U("return"),F[Symbol.asyncIterator]=function(){return this},F);function U(Z){F[Z]=G[Z]&&function(de){return new Promise(function(ge,Ne){!function H(Z,de,ge,Ne){Promise.resolve(Ne).then(function(Be){Z({value:Be,done:ge})},de)}(ge,Ne,(de=G[Z](de)).done,de.value)})}}}function ke(G,$){return Object.defineProperty?Object.defineProperty(G,"raw",{value:$}):G.raw=$,G}var Ce=Object.create?function(G,$){Object.defineProperty(G,"default",{enumerable:!0,value:$})}:function(G,$){G.default=$};function De(G){if(G&&G.__esModule)return G;var $={};if(null!=G)for(var F in G)"default"!==F&&Object.prototype.hasOwnProperty.call(G,F)&&O($,G,F);return Ce($,G),$}function He(G){return G&&G.__esModule?G:{default:G}}function lt(G,$,F,U){if("a"===F&&!U)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof $?G!==$||!U:!$.has(G))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===F?U:"a"===F?U.call(G):U?U.value:$.get(G)}function Ct(G,$,F,U,H){if("m"===U)throw new TypeError("Private method is not writable");if("a"===U&&!H)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof $?G!==$||!H:!$.has(G))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===U?H.call(G,F):H?H.value=F:$.set(G,F),F}function zt(G,$){if(null===$||"object"!=typeof $&&"function"!=typeof $)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof G?$===G:G.has($)}function Wt(G,$,F){if(null!=$){if("object"!=typeof $&&"function"!=typeof $)throw new TypeError("Object expected.");var U;if(F){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");U=$[Symbol.asyncDispose]}if(void 0===U){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");U=$[Symbol.dispose]}if("function"!=typeof U)throw new TypeError("Object not disposable.");G.stack.push({value:$,dispose:U,async:F})}else F&&G.stack.push({async:!0});return $}var Je="function"==typeof SuppressedError?SuppressedError:function(G,$,F){var U=new Error(F);return U.name="SuppressedError",U.error=G,U.suppressed=$,U};function le(G){function $(U){G.error=G.hasError?new Je(U,G.error,"An error was suppressed during disposal."):U,G.hasError=!0}return function F(){for(;G.stack.length;){var U=G.stack.pop();try{var H=U.dispose&&U.dispose.call(U.value);if(U.async)return Promise.resolve(H).then(F,function(Z){return $(Z),F()})}catch(Z){$(Z)}}if(G.hasError)throw G.error}()}const re={__extends:i,__assign:te,__rest:Q,__decorate:v,__param:y,__metadata:W,__awaiter:A,__generator:C,__createBinding:O,__exportStar:R,__values:ie,__read:J,__spread:ce,__spreadArrays:Fe,__spreadArray:ze,__await:Ve,__asyncGenerator:Se,__asyncDelegator:Oe,__asyncValues:Me,__makeTemplateObject:ke,__importStar:De,__importDefault:He,__classPrivateFieldGet:lt,__classPrivateFieldSet:Ct,__classPrivateFieldIn:zt,__addDisposableResource:Wt,__disposeResources:le}},6e3:(Ee,w,b)=>{"use strict";b.d(w,{IO:()=>C,SB:()=>T,X$:()=>i,ZE:()=>Me,ZN:()=>Oe,eR:()=>N,jt:()=>te,k1:()=>ke,l3:()=>a,oB:()=>y,pV:()=>W,ru:()=>Q,vP:()=>v});const a="*";function i(Ce,De){return{type:7,name:Ce,definitions:De,options:{}}}function te(Ce,De=null){return{type:4,styles:De,timings:Ce}}function Q(Ce,De=null){return{type:3,steps:Ce,options:De}}function v(Ce,De=null){return{type:2,steps:Ce,options:De}}function y(Ce){return{type:6,styles:Ce,offset:null}}function T(Ce,De,He){return{type:0,name:Ce,styles:De,options:He}}function N(Ce,De,He=null){return{type:1,expr:Ce,animation:De,options:He}}function W(Ce=null){return{type:9,options:Ce}}function C(Ce,De,He=null){return{type:11,selector:Ce,animation:De,options:He}}class Oe{constructor(De=0,He=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=De+He}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(De=>De()),this._onDoneFns=[])}onStart(De){this._originalOnStartFns.push(De),this._onStartFns.push(De)}onDone(De){this._originalOnDoneFns.push(De),this._onDoneFns.push(De)}onDestroy(De){this._onDestroyFns.push(De)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(De=>De()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(De=>De()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(De){this._position=this.totalTime?De*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(De){const He="start"==De?this._onStartFns:this._onDoneFns;He.forEach(lt=>lt()),He.length=0}}class Me{constructor(De){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=De;let He=0,lt=0,Ct=0;const zt=this.players.length;0==zt?queueMicrotask(()=>this._onFinish()):this.players.forEach(Wt=>{Wt.onDone(()=>{++He==zt&&this._onFinish()}),Wt.onDestroy(()=>{++lt==zt&&this._onDestroy()}),Wt.onStart(()=>{++Ct==zt&&this._onStart()})}),this.totalTime=this.players.reduce((Wt,Je)=>Math.max(Wt,Je.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(De=>De()),this._onDoneFns=[])}init(){this.players.forEach(De=>De.init())}onStart(De){this._onStartFns.push(De)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(De=>De()),this._onStartFns=[])}onDone(De){this._onDoneFns.push(De)}onDestroy(De){this._onDestroyFns.push(De)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(De=>De.play())}pause(){this.players.forEach(De=>De.pause())}restart(){this.players.forEach(De=>De.restart())}finish(){this._onFinish(),this.players.forEach(De=>De.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(De=>De.destroy()),this._onDestroyFns.forEach(De=>De()),this._onDestroyFns=[])}reset(){this.players.forEach(De=>De.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(De){const He=De*this.totalTime;this.players.forEach(lt=>{const Ct=lt.totalTime?Math.min(1,He/lt.totalTime):1;lt.setPosition(Ct)})}getPosition(){const De=this.players.reduce((He,lt)=>null===He||lt.totalTime>He.totalTime?lt:He,null);return null!=De?De.getPosition():0}beforeDestroy(){this.players.forEach(De=>{De.beforeDestroy&&De.beforeDestroy()})}triggerCallback(De){const He="start"==De?this._onStartFns:this._onDoneFns;He.forEach(lt=>lt()),He.length=0}}const ke="!"},8654:(Ee,w,b)=>{"use strict";b.d(w,{$s:()=>He,Em:()=>Je,X6:()=>bt,ic:()=>re,kH:()=>wn,qV:()=>Ae,qm:()=>Bn,rt:()=>Vn,tE:()=>Xn,yG:()=>gt});var a=b(9462),i=b(1322),te=b(3844),Q=b(9453),v=b(9592),y=b(1625),T=b(9627),S=b(7605),N=b(4104),k=b(2067),W=b(1497),A=b(8412),C=b(3581),O=b(1800),R=b(4263),ie=b(5779),J=b(8267),ce=b(5988),Fe=b(4515);function Oe(We,me){return(We.getAttribute(me)||"").match(/\S+/g)||[]}const ke="cdk-describedby-message",Ce="cdk-describedby-host";let De=0,He=(()=>{class We{constructor(z,B){this._platform=B,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+De++,this._document=z,this._id=(0,i.f3M)(i.AFp)+"-"+De++}describe(z,B,ae){if(!this._canBeDescribed(z,B))return;const X=lt(B,ae);"string"!=typeof B?(Ct(B,this._id),this._messageRegistry.set(X,{messageElement:B,referenceCount:0})):this._messageRegistry.has(X)||this._createMessageElement(B,ae),this._isElementDescribedByMessage(z,X)||this._addMessageReference(z,X)}removeDescription(z,B,ae){if(!B||!this._isElementNode(z))return;const X=lt(B,ae);if(this._isElementDescribedByMessage(z,X)&&this._removeMessageReference(z,X),"string"==typeof B){const he=this._messageRegistry.get(X);he&&0===he.referenceCount&&this._deleteMessageElement(X)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const z=this._document.querySelectorAll(`[${Ce}="${this._id}"]`);for(let B=0;B<z.length;B++)this._removeCdkDescribedByReferenceIds(z[B]),z[B].removeAttribute(Ce);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(z,B){const ae=this._document.createElement("div");Ct(ae,this._id),ae.textContent=z,B&&ae.setAttribute("role",B),this._createMessagesContainer(),this._messagesContainer.appendChild(ae),this._messageRegistry.set(lt(z,B),{messageElement:ae,referenceCount:0})}_deleteMessageElement(z){this._messageRegistry.get(z)?.messageElement?.remove(),this._messageRegistry.delete(z)}_createMessagesContainer(){if(this._messagesContainer)return;const z="cdk-describedby-message-container",B=this._document.querySelectorAll(`.${z}[platform="server"]`);for(let X=0;X<B.length;X++)B[X].remove();const ae=this._document.createElement("div");ae.style.visibility="hidden",ae.classList.add(z),ae.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&ae.setAttribute("platform","server"),this._document.body.appendChild(ae),this._messagesContainer=ae}_removeCdkDescribedByReferenceIds(z){const B=Oe(z,"aria-describedby").filter(ae=>0!=ae.indexOf(ke));z.setAttribute("aria-describedby",B.join(" "))}_addMessageReference(z,B){const ae=this._messageRegistry.get(B);(function Ve(We,me,z){const B=Oe(We,me);B.some(ae=>ae.trim()==z.trim())||(B.push(z.trim()),We.setAttribute(me,B.join(" ")))})(z,"aria-describedby",ae.messageElement.id),z.setAttribute(Ce,this._id),ae.referenceCount++}_removeMessageReference(z,B){const ae=this._messageRegistry.get(B);ae.referenceCount--,function Se(We,me,z){const ae=Oe(We,me).filter(X=>X!=z.trim());ae.length?We.setAttribute(me,ae.join(" ")):We.removeAttribute(me)}(z,"aria-describedby",ae.messageElement.id),z.removeAttribute(Ce)}_isElementDescribedByMessage(z,B){const ae=Oe(z,"aria-describedby"),X=this._messageRegistry.get(B),he=X&&X.messageElement.id;return!!he&&-1!=ae.indexOf(he)}_canBeDescribed(z,B){if(!this._isElementNode(z))return!1;if(B&&"object"==typeof B)return!0;const ae=null==B?"":`${B}`.trim(),X=z.getAttribute("aria-label");return!(!ae||X&&X.trim()===ae)}_isElementNode(z){return z.nodeType===this._document.ELEMENT_NODE}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(a.K0),i.LFG(te.t4))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function lt(We,me){return"string"==typeof We?`${me||""}/${We}`:We}function Ct(We,me){We.id||(We.id=`${ke}-${me}-${De++}`)}class zt{constructor(me){this._items=me,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Q.x,this._typeaheadSubscription=v.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._pageUpAndDown={enabled:!1,delta:10},this._skipPredicateFn=z=>z.disabled,this._pressedLetters=[],this.tabOut=new Q.x,this.change=new Q.x,me instanceof i.n_E&&(this._itemChangesSubscription=me.changes.subscribe(z=>{if(this._activeItem){const ae=z.toArray().indexOf(this._activeItem);ae>-1&&ae!==this._activeItemIndex&&(this._activeItemIndex=ae)}}))}skipPredicate(me){return this._skipPredicateFn=me,this}withWrap(me=!0){return this._wrap=me,this}withVerticalOrientation(me=!0){return this._vertical=me,this}withHorizontalOrientation(me){return this._horizontal=me,this}withAllowedModifierKeys(me){return this._allowedModifierKeys=me,this}withTypeAhead(me=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,N.b)(z=>this._pressedLetters.push(z)),(0,k.b)(me),(0,W.h)(()=>this._pressedLetters.length>0),(0,A.U)(()=>this._pressedLetters.join(""))).subscribe(z=>{const B=this._getItemsArray();for(let ae=1;ae<B.length+1;ae++){const X=(this._activeItemIndex+ae)%B.length,he=B[X];if(!this._skipPredicateFn(he)&&0===he.getLabel().toUpperCase().trim().indexOf(z)){this.setActiveItem(X);break}}this._pressedLetters=[]}),this}cancelTypeahead(){return this._pressedLetters=[],this}withHomeAndEnd(me=!0){return this._homeAndEnd=me,this}withPageUpDown(me=!0,z=10){return this._pageUpAndDown={enabled:me,delta:z},this}setActiveItem(me){const z=this._activeItem;this.updateActiveItem(me),this._activeItem!==z&&this.change.next(this._activeItemIndex)}onKeydown(me){const z=me.keyCode,ae=["altKey","ctrlKey","metaKey","shiftKey"].every(X=>!me[X]||this._allowedModifierKeys.indexOf(X)>-1);switch(z){case S.Mf:return void this.tabOut.next();case S.JH:if(this._vertical&&ae){this.setNextItemActive();break}return;case S.LH:if(this._vertical&&ae){this.setPreviousItemActive();break}return;case S.SV:if(this._horizontal&&ae){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case S.oh:if(this._horizontal&&ae){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case S.Sd:if(this._homeAndEnd&&ae){this.setFirstItemActive();break}return;case S.uR:if(this._homeAndEnd&&ae){this.setLastItemActive();break}return;case S.Ku:if(this._pageUpAndDown.enabled&&ae){const X=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(X>0?X:0,1);break}return;case S.VM:if(this._pageUpAndDown.enabled&&ae){const X=this._activeItemIndex+this._pageUpAndDown.delta,he=this._getItemsArray().length;this._setActiveItemByIndex(X<he?X:he-1,-1);break}return;default:return void((ae||(0,S.Vb)(me,"shiftKey"))&&(me.key&&1===me.key.length?this._letterKeyStream.next(me.key.toLocaleUpperCase()):(z>=S.A&&z<=S.Z||z>=S.xE&&z<=S.aO)&&this._letterKeyStream.next(String.fromCharCode(z))))}this._pressedLetters=[],me.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(me){const z=this._getItemsArray(),B="number"==typeof me?me:z.indexOf(me);this._activeItem=z[B]??null,this._activeItemIndex=B}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._letterKeyStream.complete(),this.tabOut.complete(),this.change.complete(),this._pressedLetters=[]}_setActiveItemByDelta(me){this._wrap?this._setActiveInWrapMode(me):this._setActiveInDefaultMode(me)}_setActiveInWrapMode(me){const z=this._getItemsArray();for(let B=1;B<=z.length;B++){const ae=(this._activeItemIndex+me*B+z.length)%z.length;if(!this._skipPredicateFn(z[ae]))return void this.setActiveItem(ae)}}_setActiveInDefaultMode(me){this._setActiveItemByIndex(this._activeItemIndex+me,me)}_setActiveItemByIndex(me,z){const B=this._getItemsArray();if(B[me]){for(;this._skipPredicateFn(B[me]);)if(!B[me+=z])return;this.setActiveItem(me)}}_getItemsArray(){return this._items instanceof i.n_E?this._items.toArray():this._items}}class Je extends zt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(me){return this._origin=me,this}setActiveItem(me){super.setActiveItem(me),this.activeItem&&this.activeItem.focus(this._origin)}}let re=(()=>{class We{constructor(z){this._platform=z}isDisabled(z){return z.hasAttribute("disabled")}isVisible(z){return function $(We){return!!(We.offsetWidth||We.offsetHeight||"function"==typeof We.getClientRects&&We.getClientRects().length)}(z)&&"visible"===getComputedStyle(z).visibility}isTabbable(z){if(!this._platform.isBrowser)return!1;const B=function G(We){try{return We.frameElement}catch{return null}}(function Ke(We){return We.ownerDocument&&We.ownerDocument.defaultView||window}(z));if(B&&(-1===Ne(B)||!this.isVisible(B)))return!1;let ae=z.nodeName.toLowerCase(),X=Ne(z);return z.hasAttribute("contenteditable")?-1!==X:!("iframe"===ae||"object"===ae||this._platform.WEBKIT&&this._platform.IOS&&!function Be(We){let me=We.nodeName.toLowerCase(),z="input"===me&&We.type;return"text"===z||"password"===z||"select"===me||"textarea"===me}(z))&&("audio"===ae?!!z.hasAttribute("controls")&&-1!==X:"video"===ae?-1!==X&&(null!==X||this._platform.FIREFOX||z.hasAttribute("controls")):z.tabIndex>=0)}isFocusable(z,B){return function Xe(We){return!function U(We){return function Z(We){return"input"==We.nodeName.toLowerCase()}(We)&&"hidden"==We.type}(We)&&(function F(We){let me=We.nodeName.toLowerCase();return"input"===me||"select"===me||"button"===me||"textarea"===me}(We)||function H(We){return function de(We){return"a"==We.nodeName.toLowerCase()}(We)&&We.hasAttribute("href")}(We)||We.hasAttribute("contenteditable")||ge(We))}(z)&&!this.isDisabled(z)&&(B?.ignoreVisibility||this.isVisible(z))}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(te.t4))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function ge(We){if(!We.hasAttribute("tabindex")||void 0===We.tabIndex)return!1;let me=We.getAttribute("tabindex");return!(!me||isNaN(parseInt(me,10)))}function Ne(We){if(!ge(We))return null;const me=parseInt(We.getAttribute("tabindex")||"",10);return isNaN(me)?-1:me}class mt{get enabled(){return this._enabled}set enabled(me){this._enabled=me,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(me,this._startAnchor),this._toggleAnchorTabIndex(me,this._endAnchor))}constructor(me,z,B,ae,X=!1){this._element=me,this._checker=z,this._ngZone=B,this._document=ae,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,X||this.attachAnchors()}destroy(){const me=this._startAnchor,z=this._endAnchor;me&&(me.removeEventListener("focus",this.startAnchorListener),me.remove()),z&&(z.removeEventListener("focus",this.endAnchorListener),z.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(me){return new Promise(z=>{this._executeOnStable(()=>z(this.focusInitialElement(me)))})}focusFirstTabbableElementWhenReady(me){return new Promise(z=>{this._executeOnStable(()=>z(this.focusFirstTabbableElement(me)))})}focusLastTabbableElementWhenReady(me){return new Promise(z=>{this._executeOnStable(()=>z(this.focusLastTabbableElement(me)))})}_getRegionBoundary(me){const z=this._element.querySelectorAll(`[cdk-focus-region-${me}], [cdkFocusRegion${me}], [cdk-focus-${me}]`);return"start"==me?z.length?z[0]:this._getFirstTabbableElement(this._element):z.length?z[z.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(me){const z=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(z){if(!this._checker.isFocusable(z)){const B=this._getFirstTabbableElement(z);return B?.focus(me),!!B}return z.focus(me),!0}return this.focusFirstTabbableElement(me)}focusFirstTabbableElement(me){const z=this._getRegionBoundary("start");return z&&z.focus(me),!!z}focusLastTabbableElement(me){const z=this._getRegionBoundary("end");return z&&z.focus(me),!!z}hasAttached(){return this._hasAttached}_getFirstTabbableElement(me){if(this._checker.isFocusable(me)&&this._checker.isTabbable(me))return me;const z=me.children;for(let B=0;B<z.length;B++){const ae=z[B].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(z[B]):null;if(ae)return ae}return null}_getLastTabbableElement(me){if(this._checker.isFocusable(me)&&this._checker.isTabbable(me))return me;const z=me.children;for(let B=z.length-1;B>=0;B--){const ae=z[B].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(z[B]):null;if(ae)return ae}return null}_createAnchor(){const me=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,me),me.classList.add("cdk-visually-hidden"),me.classList.add("cdk-focus-trap-anchor"),me.setAttribute("aria-hidden","true"),me}_toggleAnchorTabIndex(me,z){me?z.setAttribute("tabindex","0"):z.removeAttribute("tabindex")}toggleAnchors(me){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(me,this._startAnchor),this._toggleAnchorTabIndex(me,this._endAnchor))}_executeOnStable(me){this._ngZone.isStable?me():this._ngZone.onStable.pipe((0,C.q)(1)).subscribe(me)}}let Ae=(()=>{class We{constructor(z,B,ae){this._checker=z,this._ngZone=B,this._document=ae}create(z,B=!1){return new mt(z,this._checker,this._ngZone,this._document,B)}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(re),i.LFG(i.R0b),i.LFG(a.K0))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();function bt(We){return 0===We.buttons||0===We.detail}function gt(We){const me=We.touches&&We.touches[0]||We.changedTouches&&We.changedTouches[0];return!(!me||-1!==me.identifier||null!=me.radiusX&&1!==me.radiusX||null!=me.radiusY&&1!==me.radiusY)}const Nt=new i.OlP("cdk-input-modality-detector-options"),dt={ignoreKeys:[S.zL,S.jx,S.b2,S.MW,S.JU]},wt=(0,te.i$)({passive:!0,capture:!0});let nn=(()=>{class We{get mostRecentModality(){return this._modality.value}constructor(z,B,ae,X){this._platform=z,this._mostRecentTarget=null,this._modality=new y.X(null),this._lastTouchMs=0,this._onKeydown=he=>{this._options?.ignoreKeys?.some(M=>M===he.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,te.sA)(he))},this._onMousedown=he=>{Date.now()-this._lastTouchMs<650||(this._modality.next(bt(he)?"keyboard":"mouse"),this._mostRecentTarget=(0,te.sA)(he))},this._onTouchstart=he=>{gt(he)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,te.sA)(he))},this._options={...dt,...X},this.modalityDetected=this._modality.pipe((0,O.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,R.x)()),z.isBrowser&&B.runOutsideAngular(()=>{ae.addEventListener("keydown",this._onKeydown,wt),ae.addEventListener("mousedown",this._onMousedown,wt),ae.addEventListener("touchstart",this._onTouchstart,wt)})}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,wt),document.removeEventListener("mousedown",this._onMousedown,wt),document.removeEventListener("touchstart",this._onTouchstart,wt))}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(te.t4),i.LFG(i.R0b),i.LFG(a.K0),i.LFG(Nt,8))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})();const Pi=new i.OlP("cdk-focus-monitor-default-options"),jt=(0,te.i$)({passive:!0,capture:!0});let Xn=(()=>{class We{constructor(z,B,ae,X,he){this._ngZone=z,this._platform=B,this._inputModalityDetector=ae,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new Q.x,this._rootNodeFocusAndBlurListener=M=>{for(let ue=(0,te.sA)(M);ue;ue=ue.parentElement)"focus"===M.type?this._onFocus(M,ue):this._onBlur(M,ue)},this._document=X,this._detectionMode=he?.detectionMode||0}monitor(z,B=!1){const ae=(0,ce.fI)(z);if(!this._platform.isBrowser||1!==ae.nodeType)return(0,T.of)();const X=(0,te.kV)(ae)||this._getDocument(),he=this._elementInfo.get(ae);if(he)return B&&(he.checkChildren=!0),he.subject;const M={checkChildren:B,subject:new Q.x,rootNode:X};return this._elementInfo.set(ae,M),this._registerGlobalListeners(M),M.subject}stopMonitoring(z){const B=(0,ce.fI)(z),ae=this._elementInfo.get(B);ae&&(ae.subject.complete(),this._setClasses(B),this._elementInfo.delete(B),this._removeGlobalListeners(ae))}focusVia(z,B,ae){const X=(0,ce.fI)(z);X===this._getDocument().activeElement?this._getClosestElementsInfo(X).forEach(([M,K])=>this._originChanged(M,B,K)):(this._setOrigin(B),"function"==typeof X.focus&&X.focus(ae))}ngOnDestroy(){this._elementInfo.forEach((z,B)=>this.stopMonitoring(B))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(z){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(z)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:z&&this._isLastInteractionFromInputLabel(z)?"mouse":"program"}_shouldBeAttributedToTouch(z){return 1===this._detectionMode||!!z?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(z,B){z.classList.toggle("cdk-focused",!!B),z.classList.toggle("cdk-touch-focused","touch"===B),z.classList.toggle("cdk-keyboard-focused","keyboard"===B),z.classList.toggle("cdk-mouse-focused","mouse"===B),z.classList.toggle("cdk-program-focused","program"===B)}_setOrigin(z,B=!1){this._ngZone.runOutsideAngular(()=>{this._origin=z,this._originFromTouchInteraction="touch"===z&&B,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(z,B){const ae=this._elementInfo.get(B),X=(0,te.sA)(z);!ae||!ae.checkChildren&&B!==X||this._originChanged(B,this._getFocusOrigin(X),ae)}_onBlur(z,B){const ae=this._elementInfo.get(B);!ae||ae.checkChildren&&z.relatedTarget instanceof Node&&B.contains(z.relatedTarget)||(this._setClasses(B),this._emitOrigin(ae,null))}_emitOrigin(z,B){z.subject.observers.length&&this._ngZone.run(()=>z.subject.next(B))}_registerGlobalListeners(z){if(!this._platform.isBrowser)return;const B=z.rootNode,ae=this._rootNodeFocusListenerCount.get(B)||0;ae||this._ngZone.runOutsideAngular(()=>{B.addEventListener("focus",this._rootNodeFocusAndBlurListener,jt),B.addEventListener("blur",this._rootNodeFocusAndBlurListener,jt)}),this._rootNodeFocusListenerCount.set(B,ae+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,ie.R)(this._stopInputModalityDetector)).subscribe(X=>{this._setOrigin(X,!0)}))}_removeGlobalListeners(z){const B=z.rootNode;if(this._rootNodeFocusListenerCount.has(B)){const ae=this._rootNodeFocusListenerCount.get(B);ae>1?this._rootNodeFocusListenerCount.set(B,ae-1):(B.removeEventListener("focus",this._rootNodeFocusAndBlurListener,jt),B.removeEventListener("blur",this._rootNodeFocusAndBlurListener,jt),this._rootNodeFocusListenerCount.delete(B))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(z,B,ae){this._setClasses(z,B),this._emitOrigin(ae,B),this._lastFocusOrigin=B}_getClosestElementsInfo(z){const B=[];return this._elementInfo.forEach((ae,X)=>{(X===z||ae.checkChildren&&X.contains(z))&&B.push([X,ae])}),B}_isLastInteractionFromInputLabel(z){const{_mostRecentTarget:B,mostRecentModality:ae}=this._inputModalityDetector;if("mouse"!==ae||!B||B===z||"INPUT"!==z.nodeName&&"TEXTAREA"!==z.nodeName||z.disabled)return!1;const X=z.labels;if(X)for(let he=0;he<X.length;he++)if(X[he].contains(B))return!0;return!1}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(i.R0b),i.LFG(te.t4),i.LFG(nn),i.LFG(a.K0,8),i.LFG(Pi,8))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})(),wn=(()=>{class We{constructor(z,B){this._elementRef=z,this._focusMonitor=B,this._focusOrigin=null,this.cdkFocusChange=new i.vpe}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){const z=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(z,1===z.nodeType&&z.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(B=>{this._focusOrigin=B,this.cdkFocusChange.emit(B)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static#e=this.\u0275fac=function(B){return new(B||We)(i.Y36(i.SBq),i.Y36(Xn))};static#t=this.\u0275dir=i.lG2({type:We,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return We})();const Et="cdk-high-contrast-black-on-white",Ot="cdk-high-contrast-white-on-black",On="cdk-high-contrast-active";let Bn=(()=>{class We{constructor(z,B){this._platform=z,this._document=B,this._breakpointSubscription=(0,i.f3M)(Fe.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const z=this._document.createElement("div");z.style.backgroundColor="rgb(1,2,3)",z.style.position="absolute",this._document.body.appendChild(z);const B=this._document.defaultView||window,ae=B&&B.getComputedStyle?B.getComputedStyle(z):null,X=(ae&&ae.backgroundColor||"").replace(/ /g,"");switch(z.remove(),X){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const z=this._document.body.classList;z.remove(On,Et,Ot),this._hasCheckedHighContrastMode=!0;const B=this.getHighContrastMode();1===B?z.add(On,Et):2===B&&z.add(On,Ot)}}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(te.t4),i.LFG(a.K0))};static#t=this.\u0275prov=i.Yz7({token:We,factory:We.\u0275fac,providedIn:"root"})}return We})(),Vn=(()=>{class We{constructor(z){z._applyBodyHighContrastModeCssClasses()}static#e=this.\u0275fac=function(B){return new(B||We)(i.LFG(Bn))};static#t=this.\u0275mod=i.oAB({type:We});static#n=this.\u0275inj=i.cJS({imports:[J.Q8]})}return We})()},4877:(Ee,w,b)=>{"use strict";b.d(w,{Is:()=>T,vT:()=>N});var a=b(1322),i=b(9462);const te=new a.OlP("cdk-dir-doc",{providedIn:"root",factory:function Q(){return(0,a.f3M)(i.K0)}}),v=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let T=(()=>{class k{constructor(A){this.value="ltr",this.change=new a.vpe,A&&(this.value=function y(k){const W=k?.toLowerCase()||"";return"auto"===W&&typeof navigator<"u"&&navigator?.language?v.test(navigator.language)?"rtl":"ltr":"rtl"===W?"rtl":"ltr"}((A.body?A.body.dir:null)||(A.documentElement?A.documentElement.dir:null)||"ltr"))}ngOnDestroy(){this.change.complete()}static#e=this.\u0275fac=function(C){return new(C||k)(a.LFG(te,8))};static#t=this.\u0275prov=a.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),N=(()=>{class k{static#e=this.\u0275fac=function(C){return new(C||k)};static#t=this.\u0275mod=a.oAB({type:k});static#n=this.\u0275inj=a.cJS({})}return k})()},5988:(Ee,w,b)=>{"use strict";b.d(w,{Eq:()=>v,HM:()=>y,Ig:()=>i,fI:()=>T,su:()=>te});var a=b(1322);function i(N){return null!=N&&"false"!=`${N}`}function te(N,k=0){return function Q(N){return!isNaN(parseFloat(N))&&!isNaN(Number(N))}(N)?Number(N):k}function v(N){return Array.isArray(N)?N:[N]}function y(N){return null==N?"":"string"==typeof N?N:`${N}px`}function T(N){return N instanceof a.SBq?N.nativeElement:N}},7605:(Ee,w,b)=>{"use strict";b.d(w,{A:()=>U,JH:()=>ze,JU:()=>y,K5:()=>v,Ku:()=>C,LH:()=>ce,L_:()=>A,MW:()=>Dn,Mf:()=>te,SV:()=>Fe,Sd:()=>ie,VM:()=>O,Vb:()=>vn,Z:()=>rt,ZH:()=>i,aO:()=>le,b2:()=>_n,hY:()=>W,jx:()=>T,oh:()=>J,uR:()=>R,xE:()=>ke,yY:()=>Me,zL:()=>S});const i=8,te=9,v=13,y=16,T=17,S=18,W=27,A=32,C=33,O=34,R=35,ie=36,J=37,ce=38,Fe=39,ze=40,Me=46,ke=48,le=57,U=65,rt=90,Dn=91,_n=224;function vn(yt,...Ei){return Ei.length?Ei.some(Tn=>yt[Tn]):yt.altKey||yt.shiftKey||yt.ctrlKey||yt.metaKey}},4515:(Ee,w,b)=>{"use strict";b.d(w,{Yg:()=>Ct});var a=b(1322),i=b(5988),te=b(9453),Q=b(7371),v=b(1003),y=b(107),T=b(2390),S=b(4574),N=b(177),k=b(5017),W=b(2829),A=b(8382);function R(Je,le,re){Je?(0,A.f)(re,Je,le):le()}var ie=b(9925),J=b(3581),ce=b(1800),Fe=b(2067),ze=b(8412),Ve=b(19),Se=b(5779),Oe=b(3844);const ke=new Set;let Ce,De=(()=>{class Je{constructor(re,G){this._platform=re,this._nonce=G,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):lt}matchMedia(re){return(this._platform.WEBKIT||this._platform.BLINK)&&function He(Je,le){if(!ke.has(Je))try{Ce||(Ce=document.createElement("style"),le&&(Ce.nonce=le),Ce.setAttribute("type","text/css"),document.head.appendChild(Ce)),Ce.sheet&&(Ce.sheet.insertRule(`@media ${Je} {body{ }}`,0),ke.add(Je))}catch(re){console.error(re)}}(re,this._nonce),this._matchMedia(re)}static#e=this.\u0275fac=function(G){return new(G||Je)(a.LFG(Oe.t4),a.LFG(a.Ojb,8))};static#t=this.\u0275prov=a.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"})}return Je})();function lt(Je){return{matches:"all"===Je||""===Je,media:Je,addListener:()=>{},removeListener:()=>{}}}let Ct=(()=>{class Je{constructor(re,G){this._mediaMatcher=re,this._zone=G,this._queries=new Map,this._destroySubject=new te.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(re){return zt((0,i.Eq)(re)).some($=>this._registerQuery($).mql.matches)}observe(re){let F=function C(...Je){const le=(0,N.yG)(Je),re=(0,N.jO)(Je),{args:G,keys:$}=(0,v.D)(Je);if(0===G.length)return(0,y.D)([],le);const F=new Q.y(function O(Je,le,re=T.y){return G=>{R(le,()=>{const{length:$}=Je,F=new Array($);let U=$,H=$;for(let Z=0;Z<$;Z++)R(le,()=>{const de=(0,y.D)(Je[Z],le);let ge=!1;de.subscribe((0,W.x)(G,Ne=>{F[Z]=Ne,ge||(ge=!0,H--),H||G.next(re(F.slice()))},()=>{--U||G.complete()}))},G)},G)}}(G,le,$?U=>(0,k.n)($,U):T.y));return re?F.pipe((0,S.Z)(re)):F}(zt((0,i.Eq)(re)).map(U=>this._registerQuery(U).observable));return F=(0,ie.z)(F.pipe((0,J.q)(1)),F.pipe((0,ce.T)(1),(0,Fe.b)(0))),F.pipe((0,ze.U)(U=>{const H={matches:!1,breakpoints:{}};return U.forEach(({matches:Z,query:de})=>{H.matches=H.matches||Z,H.breakpoints[de]=Z}),H}))}_registerQuery(re){if(this._queries.has(re))return this._queries.get(re);const G=this._mediaMatcher.matchMedia(re),F={observable:new Q.y(U=>{const H=Z=>this._zone.run(()=>U.next(Z));return G.addListener(H),()=>{G.removeListener(H)}}).pipe((0,Ve.O)(G),(0,ze.U)(({matches:U})=>({query:re,matches:U})),(0,Se.R)(this._destroySubject)),mql:G};return this._queries.set(re,F),F}static#e=this.\u0275fac=function(G){return new(G||Je)(a.LFG(De),a.LFG(a.R0b))};static#t=this.\u0275prov=a.Yz7({token:Je,factory:Je.\u0275fac,providedIn:"root"})}return Je})();function zt(Je){return Je.map(le=>le.split(",")).reduce((le,re)=>le.concat(re)).map(le=>le.trim())}},8267:(Ee,w,b)=>{"use strict";b.d(w,{Q8:()=>N,wD:()=>S});var a=b(5988),i=b(1322),te=b(7371),Q=b(9453),v=b(2067);let y=(()=>{class k{create(A){return typeof MutationObserver>"u"?null:new MutationObserver(A)}static#e=this.\u0275fac=function(C){return new(C||k)};static#t=this.\u0275prov=i.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),T=(()=>{class k{constructor(A){this._mutationObserverFactory=A,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((A,C)=>this._cleanupObserver(C))}observe(A){const C=(0,a.fI)(A);return new te.y(O=>{const ie=this._observeElement(C).subscribe(O);return()=>{ie.unsubscribe(),this._unobserveElement(C)}})}_observeElement(A){if(this._observedElements.has(A))this._observedElements.get(A).count++;else{const C=new Q.x,O=this._mutationObserverFactory.create(R=>C.next(R));O&&O.observe(A,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(A,{observer:O,stream:C,count:1})}return this._observedElements.get(A).stream}_unobserveElement(A){this._observedElements.has(A)&&(this._observedElements.get(A).count--,this._observedElements.get(A).count||this._cleanupObserver(A))}_cleanupObserver(A){if(this._observedElements.has(A)){const{observer:C,stream:O}=this._observedElements.get(A);C&&C.disconnect(),O.complete(),this._observedElements.delete(A)}}static#e=this.\u0275fac=function(C){return new(C||k)(i.LFG(y))};static#t=this.\u0275prov=i.Yz7({token:k,factory:k.\u0275fac,providedIn:"root"})}return k})(),S=(()=>{class k{get disabled(){return this._disabled}set disabled(A){this._disabled=A,this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(A){this._debounce=(0,a.su)(A),this._subscribe()}constructor(A,C,O){this._contentObserver=A,this._elementRef=C,this._ngZone=O,this.event=new i.vpe,this._disabled=!1,this._currentSubscription=null}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const A=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?A.pipe((0,v.b)(this.debounce)):A).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}static#e=this.\u0275fac=function(C){return new(C||k)(i.Y36(T),i.Y36(i.SBq),i.Y36(i.R0b))};static#t=this.\u0275dir=i.lG2({type:k,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled",i.VuI],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"],features:[i.Xq5]})}return k})(),N=(()=>{class k{static#e=this.\u0275fac=function(C){return new(C||k)};static#t=this.\u0275mod=i.oAB({type:k});static#n=this.\u0275inj=i.cJS({providers:[y]})}return k})()},3844:(Ee,w,b)=>{"use strict";b.d(w,{Mq:()=>O,Oy:()=>Ve,ht:()=>Fe,i$:()=>W,kV:()=>ce,sA:()=>ze,t4:()=>Q});var a=b(1322),i=b(9462);let te;try{te=typeof Intl<"u"&&Intl.v8BreakIterator}catch{te=!1}let N,C,ie,Q=(()=>{class Se{constructor(Me){this._platformId=Me,this.isBrowser=this._platformId?(0,i.NF)(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&&!te)&&typeof CSS<"u"&&!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}static#e=this.\u0275fac=function(ke){return new(ke||Se)(a.LFG(a.Lbi))};static#t=this.\u0275prov=a.Yz7({token:Se,factory:Se.\u0275fac,providedIn:"root"})}return Se})();function W(Se){return function k(){if(null==N&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>N=!0}))}finally{N=N||!1}return N}()?Se:!!Se.capture}function O(){if(null==C){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return C=!1,C;if("scrollBehavior"in document.documentElement.style)C=!0;else{const Se=Element.prototype.scrollTo;C=!!Se&&!/\{\s*\[native code\]\s*\}/.test(Se.toString())}}return C}function ce(Se){if(function J(){if(null==ie){const Se=typeof document<"u"?document.head:null;ie=!(!Se||!Se.createShadowRoot&&!Se.attachShadow)}return ie}()){const Oe=Se.getRootNode?Se.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&Oe instanceof ShadowRoot)return Oe}return null}function Fe(){let Se=typeof document<"u"&&document?document.activeElement:null;for(;Se&&Se.shadowRoot;){const Oe=Se.shadowRoot.activeElement;if(Oe===Se)break;Se=Oe}return Se}function ze(Se){return Se.composedPath?Se.composedPath()[0]:Se.target}function Ve(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},6512:(Ee,w,b)=>{"use strict";b.d(w,{C5:()=>k,Pl:()=>Fe,UE:()=>W,eL:()=>Ve,en:()=>C,ig:()=>J,u0:()=>R});var a=b(1322),i=b(9462);class N{attach(Me){return this._attachedHost=Me,Me.attach(this)}detach(){let Me=this._attachedHost;null!=Me&&(this._attachedHost=null,Me.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(Me){this._attachedHost=Me}}class k extends N{constructor(Me,ke,Ce,De,He){super(),this.component=Me,this.viewContainerRef=ke,this.injector=Ce,this.componentFactoryResolver=De,this.projectableNodes=He}}class W extends N{constructor(Me,ke,Ce,De){super(),this.templateRef=Me,this.viewContainerRef=ke,this.context=Ce,this.injector=De}get origin(){return this.templateRef.elementRef}attach(Me,ke=this.context){return this.context=ke,super.attach(Me)}detach(){return this.context=void 0,super.detach()}}class A extends N{constructor(Me){super(),this.element=Me instanceof a.SBq?Me.nativeElement:Me}}class C{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(Me){return Me instanceof k?(this._attachedPortal=Me,this.attachComponentPortal(Me)):Me instanceof W?(this._attachedPortal=Me,this.attachTemplatePortal(Me)):this.attachDomPortal&&Me instanceof A?(this._attachedPortal=Me,this.attachDomPortal(Me)):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(Me){this._disposeFn=Me}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class R extends C{constructor(Me,ke,Ce,De,He){super(),this.outletElement=Me,this._componentFactoryResolver=ke,this._appRef=Ce,this._defaultInjector=De,this.attachDomPortal=lt=>{const Ct=lt.element,zt=this._document.createComment("dom-portal");Ct.parentNode.insertBefore(zt,Ct),this.outletElement.appendChild(Ct),this._attachedPortal=lt,super.setDisposeFn(()=>{zt.parentNode&&zt.parentNode.replaceChild(Ct,zt)})},this._document=He}attachComponentPortal(Me){const Ce=(Me.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(Me.component);let De;return Me.viewContainerRef?(De=Me.viewContainerRef.createComponent(Ce,Me.viewContainerRef.length,Me.injector||Me.viewContainerRef.injector,Me.projectableNodes||void 0),this.setDisposeFn(()=>De.destroy())):(De=Ce.create(Me.injector||this._defaultInjector||a.zs3.NULL),this._appRef.attachView(De.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(De.hostView),De.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(De)),this._attachedPortal=Me,De}attachTemplatePortal(Me){let ke=Me.viewContainerRef,Ce=ke.createEmbeddedView(Me.templateRef,Me.context,{injector:Me.injector});return Ce.rootNodes.forEach(De=>this.outletElement.appendChild(De)),Ce.detectChanges(),this.setDisposeFn(()=>{let De=ke.indexOf(Ce);-1!==De&&ke.remove(De)}),this._attachedPortal=Me,Ce}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(Me){return Me.hostView.rootNodes[0]}}let J=(()=>{class Oe extends W{constructor(ke,Ce){super(ke,Ce)}static#e=this.\u0275fac=function(Ce){return new(Ce||Oe)(a.Y36(a.Rgc),a.Y36(a.s_b))};static#t=this.\u0275dir=a.lG2({type:Oe,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[a.qOj]})}return Oe})(),Fe=(()=>{class Oe extends C{constructor(ke,Ce,De){super(),this._componentFactoryResolver=ke,this._viewContainerRef=Ce,this._isInitialized=!1,this.attached=new a.vpe,this.attachDomPortal=He=>{const lt=He.element,Ct=this._document.createComment("dom-portal");He.setAttachedHost(this),lt.parentNode.insertBefore(Ct,lt),this._getRootNode().appendChild(lt),this._attachedPortal=He,super.setDisposeFn(()=>{Ct.parentNode&&Ct.parentNode.replaceChild(lt,Ct)})},this._document=De}get portal(){return this._attachedPortal}set portal(ke){this.hasAttached()&&!ke&&!this._isInitialized||(this.hasAttached()&&super.detach(),ke&&super.attach(ke),this._attachedPortal=ke||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(ke){ke.setAttachedHost(this);const Ce=null!=ke.viewContainerRef?ke.viewContainerRef:this._viewContainerRef,He=(ke.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ke.component),lt=Ce.createComponent(He,Ce.length,ke.injector||Ce.injector,ke.projectableNodes||void 0);return Ce!==this._viewContainerRef&&this._getRootNode().appendChild(lt.hostView.rootNodes[0]),super.setDisposeFn(()=>lt.destroy()),this._attachedPortal=ke,this._attachedRef=lt,this.attached.emit(lt),lt}attachTemplatePortal(ke){ke.setAttachedHost(this);const Ce=this._viewContainerRef.createEmbeddedView(ke.templateRef,ke.context,{injector:ke.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=ke,this._attachedRef=Ce,this.attached.emit(Ce),Ce}_getRootNode(){const ke=this._viewContainerRef.element.nativeElement;return ke.nodeType===ke.ELEMENT_NODE?ke:ke.parentNode}static#e=this.\u0275fac=function(Ce){return new(Ce||Oe)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36(i.K0))};static#t=this.\u0275dir=a.lG2({type:Oe,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[a.qOj]})}return Oe})(),Ve=(()=>{class Oe{static#e=this.\u0275fac=function(Ce){return new(Ce||Oe)};static#t=this.\u0275mod=a.oAB({type:Oe});static#n=this.\u0275inj=a.cJS({})}return Oe})()},9467:(Ee,w,b)=>{"use strict";b.d(w,{ZD:()=>Ke,mF:()=>le,Cl:()=>mt,rL:()=>$});var a=b(5988),i=b(1322),te=b(9453),Q=b(9627),v=b(7371),y=b(6058),T=b(2290),S=b(9592);const N={schedule(Ae){let Ge=requestAnimationFrame,ne=cancelAnimationFrame;const{delegate:se}=N;se&&(Ge=se.requestAnimationFrame,ne=se.cancelAnimationFrame);const Te=Ge($e=>{ne=void 0,Ae($e)});return new S.w0(()=>ne?.(Te))},requestAnimationFrame(...Ae){const{delegate:Ge}=N;return(Ge?.requestAnimationFrame||requestAnimationFrame)(...Ae)},cancelAnimationFrame(...Ae){const{delegate:Ge}=N;return(Ge?.cancelAnimationFrame||cancelAnimationFrame)(...Ae)},delegate:void 0};var W=b(5349);new class A extends W.v{flush(Ge){this._active=!0;const ne=this._scheduled;this._scheduled=void 0;const{actions:se}=this;let Te;Ge=Ge||se.shift();do{if(Te=Ge.execute(Ge.state,Ge.delay))break}while((Ge=se[0])&&Ge.id===ne&&se.shift());if(this._active=!1,Te){for(;(Ge=se[0])&&Ge.id===ne&&se.shift();)Ge.unsubscribe();throw Te}}}(class k extends T.o{constructor(Ge,ne){super(Ge,ne),this.scheduler=Ge,this.work=ne}requestAsyncId(Ge,ne,se=0){return null!==se&&se>0?super.requestAsyncId(Ge,ne,se):(Ge.actions.push(this),Ge._scheduled||(Ge._scheduled=N.requestAnimationFrame(()=>Ge.flush(void 0))))}recycleAsyncId(Ge,ne,se=0){var Te;if(null!=se?se>0:this.delay>0)return super.recycleAsyncId(Ge,ne,se);const{actions:$e}=Ge;null!=ne&&(null===(Te=$e[$e.length-1])||void 0===Te?void 0:Te.id)!==ne&&(N.cancelAnimationFrame(ne),Ge._scheduled=void 0)}});b(4453);var ie=b(6589),J=b(4049),ce=b(8299),Fe=b(2829),Ve=b(5117);function Se(Ae,Ge=ie.z){return function ze(Ae){return(0,J.e)((Ge,ne)=>{let se=!1,Te=null,$e=null,it=!1;const bt=()=>{if($e?.unsubscribe(),$e=null,se){se=!1;const Nt=Te;Te=null,ne.next(Nt)}it&&ne.complete()},gt=()=>{$e=null,it&&ne.complete()};Ge.subscribe((0,Fe.x)(ne,Nt=>{se=!0,Te=Nt,$e||(0,ce.Xf)(Ae(Nt)).subscribe($e=(0,Fe.x)(ne,bt,gt))},()=>{it=!0,(!se||!$e||$e.closed)&&ne.complete()}))})}(()=>(0,Ve.H)(Ae,Ge))}var Oe=b(1497),Me=b(3844),ke=b(9462),Ce=b(4877);let le=(()=>{class Ae{constructor(ne,se,Te){this._ngZone=ne,this._platform=se,this._scrolled=new te.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Te}register(ne){this.scrollContainers.has(ne)||this.scrollContainers.set(ne,ne.elementScrolled().subscribe(()=>this._scrolled.next(ne)))}deregister(ne){const se=this.scrollContainers.get(ne);se&&(se.unsubscribe(),this.scrollContainers.delete(ne))}scrolled(ne=20){return this._platform.isBrowser?new v.y(se=>{this._globalSubscription||this._addGlobalListener();const Te=ne>0?this._scrolled.pipe(Se(ne)).subscribe(se):this._scrolled.subscribe(se);return this._scrolledCount++,()=>{Te.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,Q.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((ne,se)=>this.deregister(se)),this._scrolled.complete()}ancestorScrolled(ne,se){const Te=this.getAncestorScrollContainers(ne);return this.scrolled(se).pipe((0,Oe.h)($e=>!$e||Te.indexOf($e)>-1))}getAncestorScrollContainers(ne){const se=[];return this.scrollContainers.forEach((Te,$e)=>{this._scrollableContainsElement($e,ne)&&se.push($e)}),se}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(ne,se){let Te=(0,a.fI)(se),$e=ne.getElementRef().nativeElement;do{if(Te==$e)return!0}while(Te=Te.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const ne=this._getWindow();return(0,y.R)(ne.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}static#e=this.\u0275fac=function(se){return new(se||Ae)(i.LFG(i.R0b),i.LFG(Me.t4),i.LFG(ke.K0,8))};static#t=this.\u0275prov=i.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})(),$=(()=>{class Ae{constructor(ne,se,Te){this._platform=ne,this._change=new te.x,this._changeListener=$e=>{this._change.next($e)},this._document=Te,se.runOutsideAngular(()=>{if(ne.isBrowser){const $e=this._getWindow();$e.addEventListener("resize",this._changeListener),$e.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const ne=this._getWindow();ne.removeEventListener("resize",this._changeListener),ne.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const ne={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),ne}getViewportRect(){const ne=this.getViewportScrollPosition(),{width:se,height:Te}=this.getViewportSize();return{top:ne.top,left:ne.left,bottom:ne.top+Te,right:ne.left+se,height:Te,width:se}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const ne=this._document,se=this._getWindow(),Te=ne.documentElement,$e=Te.getBoundingClientRect();return{top:-$e.top||ne.body.scrollTop||se.scrollY||Te.scrollTop||0,left:-$e.left||ne.body.scrollLeft||se.scrollX||Te.scrollLeft||0}}change(ne=20){return ne>0?this._change.pipe(Se(ne)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const ne=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:ne.innerWidth,height:ne.innerHeight}:{width:0,height:0}}static#e=this.\u0275fac=function(se){return new(se||Ae)(i.LFG(Me.t4),i.LFG(i.R0b),i.LFG(ke.K0,8))};static#t=this.\u0275prov=i.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})(),Ke=(()=>{class Ae{static#e=this.\u0275fac=function(se){return new(se||Ae)};static#t=this.\u0275mod=i.oAB({type:Ae});static#n=this.\u0275inj=i.cJS({})}return Ae})(),mt=(()=>{class Ae{static#e=this.\u0275fac=function(se){return new(se||Ae)};static#t=this.\u0275mod=i.oAB({type:Ae});static#n=this.\u0275inj=i.cJS({imports:[Ce.vT,Ke,Ce.vT,Ke]})}return Ae})()},9462:(Ee,w,b)=>{"use strict";b.d(w,{ED:()=>pn,HT:()=>Q,JF:()=>ho,K0:()=>y,Mx:()=>Ie,NF:()=>es,O5:()=>_n,Ov:()=>xo,PM:()=>ts,RF:()=>en,Ye:()=>J,bD:()=>Qr,ez:()=>Pn,mk:()=>Re,n9:()=>Zt,q:()=>te,sg:()=>Ht,tP:()=>Ho,w_:()=>v});var a=b(1322);let i=null;function te(){return i}function Q(_){i||(i=_)}class v{}const y=new a.OlP("DocumentToken");let T=(()=>{class _{historyGo(E){throw new Error("Not implemented")}static#e=this.\u0275fac=function(V){return new(V||_)};static#t=this.\u0275prov=a.Yz7({token:_,factory:()=>(0,a.f3M)(N),providedIn:"platform"})}return _})(),N=(()=>{class _ extends T{constructor(){super(),this._doc=(0,a.f3M)(y),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return te().getBaseHref(this._doc)}onPopState(E){const V=te().getGlobalEventTarget(this._doc,"window");return V.addEventListener("popstate",E,!1),()=>V.removeEventListener("popstate",E)}onHashChange(E){const V=te().getGlobalEventTarget(this._doc,"window");return V.addEventListener("hashchange",E,!1),()=>V.removeEventListener("hashchange",E)}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(E){this._location.pathname=E}pushState(E,V,pe){this._history.pushState(E,V,pe)}replaceState(E,V,pe){this._history.replaceState(E,V,pe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(E=0){this._history.go(E)}getState(){return this._history.state}static#e=this.\u0275fac=function(V){return new(V||_)};static#t=this.\u0275prov=a.Yz7({token:_,factory:()=>new _,providedIn:"platform"})}return _})();function k(_,Y){if(0==_.length)return Y;if(0==Y.length)return _;let E=0;return _.endsWith("/")&&E++,Y.startsWith("/")&&E++,2==E?_+Y.substring(1):1==E?_+Y:_+"/"+Y}function W(_){const Y=_.match(/#|\?|$/),E=Y&&Y.index||_.length;return _.slice(0,E-("/"===_[E-1]?1:0))+_.slice(E)}function A(_){return _&&"?"!==_[0]?"?"+_:_}let C=(()=>{class _{historyGo(E){throw new Error("Not implemented")}static#e=this.\u0275fac=function(V){return new(V||_)};static#t=this.\u0275prov=a.Yz7({token:_,factory:()=>(0,a.f3M)(R),providedIn:"root"})}return _})();const O=new a.OlP("appBaseHref");let R=(()=>{class _ extends C{constructor(E,V){super(),this._platformLocation=E,this._removeListenerFns=[],this._baseHref=V??this._platformLocation.getBaseHrefFromDOM()??(0,a.f3M)(y).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(E){this._removeListenerFns.push(this._platformLocation.onPopState(E),this._platformLocation.onHashChange(E))}getBaseHref(){return this._baseHref}prepareExternalUrl(E){return k(this._baseHref,E)}path(E=!1){const V=this._platformLocation.pathname+A(this._platformLocation.search),pe=this._platformLocation.hash;return pe&&E?`${V}${pe}`:V}pushState(E,V,pe,je){const tt=this.prepareExternalUrl(pe+A(je));this._platformLocation.pushState(E,V,tt)}replaceState(E,V,pe,je){const tt=this.prepareExternalUrl(pe+A(je));this._platformLocation.replaceState(E,V,tt)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(E=0){this._platformLocation.historyGo?.(E)}static#e=this.\u0275fac=function(V){return new(V||_)(a.LFG(T),a.LFG(O,8))};static#t=this.\u0275prov=a.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"})}return _})(),J=(()=>{class _{constructor(E){this._subject=new a.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=E;const V=this._locationStrategy.getBaseHref();this._basePath=function Ve(_){if(new RegExp("^(https?:)?//").test(_)){const[,E]=_.split(/\/\/[^\/]+/);return E}return _}(W(ze(V))),this._locationStrategy.onPopState(pe=>{this._subject.emit({url:this.path(!0),pop:!0,state:pe.state,type:pe.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(E=!1){return this.normalize(this._locationStrategy.path(E))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(E,V=""){return this.path()==this.normalize(E+A(V))}normalize(E){return _.stripTrailingSlash(function Fe(_,Y){if(!_||!Y.startsWith(_))return Y;const E=Y.substring(_.length);return""===E||["/",";","?","#"].includes(E[0])?E:Y}(this._basePath,ze(E)))}prepareExternalUrl(E){return E&&"/"!==E[0]&&(E="/"+E),this._locationStrategy.prepareExternalUrl(E)}go(E,V="",pe=null){this._locationStrategy.pushState(pe,"",E,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(E+A(V)),pe)}replaceState(E,V="",pe=null){this._locationStrategy.replaceState(pe,"",E,V),this._notifyUrlChangeListeners(this.prepareExternalUrl(E+A(V)),pe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(E=0){this._locationStrategy.historyGo?.(E)}onUrlChange(E){return this._urlChangeListeners.push(E),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(V=>{this._notifyUrlChangeListeners(V.url,V.state)})),()=>{const V=this._urlChangeListeners.indexOf(E);this._urlChangeListeners.splice(V,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(E="",V){this._urlChangeListeners.forEach(pe=>pe(E,V))}subscribe(E,V,pe){return this._subject.subscribe({next:E,error:V,complete:pe})}static#e=this.normalizeQueryParams=A;static#t=this.joinWithSlash=k;static#n=this.stripTrailingSlash=W;static#i=this.\u0275fac=function(V){return new(V||_)(a.LFG(C))};static#o=this.\u0275prov=a.Yz7({token:_,factory:()=>function ce(){return new J((0,a.LFG)(C))}(),providedIn:"root"})}return _})();function ze(_){return _.replace(/\/index.html$/,"")}function Ie(_,Y){Y=encodeURIComponent(Y);for(const E of _.split(";")){const V=E.indexOf("="),[pe,je]=-1==V?[E,""]:[E.slice(0,V),E.slice(V+1)];if(pe.trim()===Y)return decodeURIComponent(je)}return null}const _e=/\s+/,ve=[];let Re=(()=>{class _{constructor(E,V,pe,je){this._iterableDiffers=E,this._keyValueDiffers=V,this._ngEl=pe,this._renderer=je,this.initialClasses=ve,this.stateMap=new Map}set klass(E){this.initialClasses=null!=E?E.trim().split(_e):ve}set ngClass(E){this.rawClass="string"==typeof E?E.trim().split(_e):E}ngDoCheck(){for(const V of this.initialClasses)this._updateState(V,!0);const E=this.rawClass;if(Array.isArray(E)||E instanceof Set)for(const V of E)this._updateState(V,!0);else if(null!=E)for(const V of Object.keys(E))this._updateState(V,!!E[V]);this._applyStateDiff()}_updateState(E,V){const pe=this.stateMap.get(E);void 0!==pe?(pe.enabled!==V&&(pe.changed=!0,pe.enabled=V),pe.touched=!0):this.stateMap.set(E,{enabled:V,changed:!0,touched:!0})}_applyStateDiff(){for(const E of this.stateMap){const V=E[0],pe=E[1];pe.changed?(this._toggleClass(V,pe.enabled),pe.changed=!1):pe.touched||(pe.enabled&&this._toggleClass(V,!1),this.stateMap.delete(V)),pe.touched=!1}}_toggleClass(E,V){(E=E.trim()).length>0&&E.split(_e).forEach(pe=>{V?this._renderer.addClass(this._ngEl.nativeElement,pe):this._renderer.removeClass(this._ngEl.nativeElement,pe)})}static#e=this.\u0275fac=function(V){return new(V||_)(a.Y36(a.ZZ4),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Qsj))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0})}return _})();class st{constructor(Y,E,V,pe){this.$implicit=Y,this.ngForOf=E,this.index=V,this.count=pe}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 Ht=(()=>{class _{set ngForOf(E){this._ngForOf=E,this._ngForOfDirty=!0}set ngForTrackBy(E){this._trackByFn=E}get ngForTrackBy(){return this._trackByFn}constructor(E,V,pe){this._viewContainer=E,this._template=V,this._differs=pe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(E){E&&(this._template=E)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const E=this._ngForOf;!this._differ&&E&&(this._differ=this._differs.find(E).create(this.ngForTrackBy))}if(this._differ){const E=this._differ.diff(this._ngForOf);E&&this._applyChanges(E)}}_applyChanges(E){const V=this._viewContainer;E.forEachOperation((pe,je,tt)=>{if(null==pe.previousIndex)V.createEmbeddedView(this._template,new st(pe.item,this._ngForOf,-1,-1),null===tt?void 0:tt);else if(null==tt)V.remove(null===je?void 0:je);else if(null!==je){const vt=V.get(je);V.move(vt,tt),At(vt,pe)}});for(let pe=0,je=V.length;pe<je;pe++){const vt=V.get(pe).context;vt.index=pe,vt.count=je,vt.ngForOf=this._ngForOf}E.forEachIdentityChange(pe=>{At(V.get(pe.currentIndex),pe)})}static ngTemplateContextGuard(E,V){return!0}static#e=this.\u0275fac=function(V){return new(V||_)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(a.ZZ4))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}return _})();function At(_,Y){_.context.$implicit=Y.item}let _n=(()=>{class _{constructor(E,V){this._viewContainer=E,this._context=new vn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=V}set ngIf(E){this._context.$implicit=this._context.ngIf=E,this._updateView()}set ngIfThen(E){yt("ngIfThen",E),this._thenTemplateRef=E,this._thenViewRef=null,this._updateView()}set ngIfElse(E){yt("ngIfElse",E),this._elseTemplateRef=E,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(E,V){return!0}static#e=this.\u0275fac=function(V){return new(V||_)(a.Y36(a.s_b),a.Y36(a.Rgc))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}return _})();class vn{constructor(){this.$implicit=null,this.ngIf=null}}function yt(_,Y){if(Y&&!Y.createEmbeddedView)throw new Error(`${_} must be a TemplateRef, but received '${(0,a.AaK)(Y)}'.`)}class Tn{constructor(Y,E){this._viewContainerRef=Y,this._templateRef=E,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Y){Y&&!this._created?this.create():!Y&&this._created&&this.destroy()}}let en=(()=>{class _{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(E){this._ngSwitch=E,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(E){this._defaultViews.push(E)}_matchCase(E){const V=E===this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||V,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),V}_updateDefaultCases(E){if(this._defaultViews.length>0&&E!==this._defaultUsed){this._defaultUsed=E;for(const V of this._defaultViews)V.enforceState(E)}}static#e=this.\u0275fac=function(V){return new(V||_)};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0})}return _})(),Zt=(()=>{class _{constructor(E,V,pe){this.ngSwitch=pe,pe._addCase(),this._view=new Tn(E,V)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static#e=this.\u0275fac=function(V){return new(V||_)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(en,9))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0})}return _})(),pn=(()=>{class _{constructor(E,V,pe){pe._addDefault(new Tn(E,V))}static#e=this.\u0275fac=function(V){return new(V||_)(a.Y36(a.s_b),a.Y36(a.Rgc),a.Y36(en,9))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngSwitchDefault",""]],standalone:!0})}return _})(),Ho=(()=>{class _{constructor(E){this._viewContainerRef=E,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(E){if(this._shouldRecreateView(E)){const V=this._viewContainerRef;if(this._viewRef&&V.remove(V.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const pe=this._createContextForwardProxy();this._viewRef=V.createEmbeddedView(this.ngTemplateOutlet,pe,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(E){return!!E.ngTemplateOutlet||!!E.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(E,V,pe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,V,pe),get:(E,V,pe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,V,pe)}})}static#e=this.\u0275fac=function(V){return new(V||_)(a.Y36(a.s_b))};static#t=this.\u0275dir=a.lG2({type:_,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[a.TTD]})}return _})();class Co{createSubscription(Y,E){return(0,a.rg0)(()=>Y.subscribe({next:E,error:V=>{throw V}}))}dispose(Y){(0,a.rg0)(()=>Y.unsubscribe())}}class Er{createSubscription(Y,E){return Y.then(E,V=>{throw V})}dispose(Y){}}const Hs=new Er,Ya=new Co;let xo=(()=>{class _{constructor(E){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=E}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(E){return this._obj?E!==this._obj?(this._dispose(),this.transform(E)):this._latestValue:(E&&this._subscribe(E),this._latestValue)}_subscribe(E){this._obj=E,this._strategy=this._selectStrategy(E),this._subscription=this._strategy.createSubscription(E,V=>this._updateLatestValue(E,V))}_selectStrategy(E){if((0,a.QGY)(E))return Hs;if((0,a.F4k)(E))return Ya;throw function Kn(_,Y){return new a.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(E,V){E===this._obj&&(this._latestValue=V,this._ref.markForCheck())}static#e=this.\u0275fac=function(V){return new(V||_)(a.Y36(a.sBO,16))};static#t=this.\u0275pipe=a.Yjl({name:"async",type:_,pure:!1,standalone:!0})}return _})(),Pn=(()=>{class _{static#e=this.\u0275fac=function(V){return new(V||_)};static#t=this.\u0275mod=a.oAB({type:_});static#n=this.\u0275inj=a.cJS({})}return _})();const Qr="browser",Ys="server";function es(_){return _===Qr}function ts(_){return _===Ys}class ho{}},9272:(Ee,w,b)=>{"use strict";b.d(w,{eN:()=>U,JF:()=>gn}),b(5861);var i=b(1322),te=b(9627),Q=b(7371),v=b(107),y=b(5123),T=b(3276),N=b(1497),k=b(8412),W=b(1927),A=b(2835),C=b(9462);class O{}class R{}class ie{constructor(_e){this.normalizedNames=new Map,this.lazyUpdate=null,_e?"string"==typeof _e?this.lazyInit=()=>{this.headers=new Map,_e.split("\n").forEach(ve=>{const Re=ve.indexOf(":");if(Re>0){const qe=ve.slice(0,Re),ct=qe.toLowerCase(),st=ve.slice(Re+1).trim();this.maybeSetNormalizedName(qe,ct),this.headers.has(ct)?this.headers.get(ct).push(st):this.headers.set(ct,[st])}})}:typeof Headers<"u"&&_e instanceof Headers?(this.headers=new Map,_e.forEach((ve,Re)=>{this.setHeaderEntries(Re,ve)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(_e).forEach(([ve,Re])=>{this.setHeaderEntries(ve,Re)})}:this.headers=new Map}has(_e){return this.init(),this.headers.has(_e.toLowerCase())}get(_e){this.init();const ve=this.headers.get(_e.toLowerCase());return ve&&ve.length>0?ve[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(_e){return this.init(),this.headers.get(_e.toLowerCase())||null}append(_e,ve){return this.clone({name:_e,value:ve,op:"a"})}set(_e,ve){return this.clone({name:_e,value:ve,op:"s"})}delete(_e,ve){return this.clone({name:_e,value:ve,op:"d"})}maybeSetNormalizedName(_e,ve){this.normalizedNames.has(ve)||this.normalizedNames.set(ve,_e)}init(){this.lazyInit&&(this.lazyInit instanceof ie?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(_e=>this.applyUpdate(_e)),this.lazyUpdate=null))}copyFrom(_e){_e.init(),Array.from(_e.headers.keys()).forEach(ve=>{this.headers.set(ve,_e.headers.get(ve)),this.normalizedNames.set(ve,_e.normalizedNames.get(ve))})}clone(_e){const ve=new ie;return ve.lazyInit=this.lazyInit&&this.lazyInit instanceof ie?this.lazyInit:this,ve.lazyUpdate=(this.lazyUpdate||[]).concat([_e]),ve}applyUpdate(_e){const ve=_e.name.toLowerCase();switch(_e.op){case"a":case"s":let Re=_e.value;if("string"==typeof Re&&(Re=[Re]),0===Re.length)return;this.maybeSetNormalizedName(_e.name,ve);const qe=("a"===_e.op?this.headers.get(ve):void 0)||[];qe.push(...Re),this.headers.set(ve,qe);break;case"d":const ct=_e.value;if(ct){let st=this.headers.get(ve);if(!st)return;st=st.filter(Ht=>-1===ct.indexOf(Ht)),0===st.length?(this.headers.delete(ve),this.normalizedNames.delete(ve)):this.headers.set(ve,st)}else this.headers.delete(ve),this.normalizedNames.delete(ve)}}setHeaderEntries(_e,ve){const Re=(Array.isArray(ve)?ve:[ve]).map(ct=>ct.toString()),qe=_e.toLowerCase();this.headers.set(qe,Re),this.maybeSetNormalizedName(_e,qe)}forEach(_e){this.init(),Array.from(this.normalizedNames.keys()).forEach(ve=>_e(this.normalizedNames.get(ve),this.headers.get(ve)))}}class ce{encodeKey(_e){return Se(_e)}encodeValue(_e){return Se(_e)}decodeKey(_e){return decodeURIComponent(_e)}decodeValue(_e){return decodeURIComponent(_e)}}const ze=/%(\d[a-f0-9])/gi,Ve={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Se(Ie){return encodeURIComponent(Ie).replace(ze,(_e,ve)=>Ve[ve]??_e)}function Oe(Ie){return`${Ie}`}class Me{constructor(_e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=_e.encoder||new ce,_e.fromString){if(_e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function Fe(Ie,_e){const ve=new Map;return Ie.length>0&&Ie.replace(/^\?/,"").split("&").forEach(qe=>{const ct=qe.indexOf("="),[st,Ht]=-1==ct?[_e.decodeKey(qe),""]:[_e.decodeKey(qe.slice(0,ct)),_e.decodeValue(qe.slice(ct+1))],At=ve.get(st)||[];At.push(Ht),ve.set(st,At)}),ve}(_e.fromString,this.encoder)}else _e.fromObject?(this.map=new Map,Object.keys(_e.fromObject).forEach(ve=>{const Re=_e.fromObject[ve],qe=Array.isArray(Re)?Re.map(Oe):[Oe(Re)];this.map.set(ve,qe)})):this.map=null}has(_e){return this.init(),this.map.has(_e)}get(_e){this.init();const ve=this.map.get(_e);return ve?ve[0]:null}getAll(_e){return this.init(),this.map.get(_e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(_e,ve){return this.clone({param:_e,value:ve,op:"a"})}appendAll(_e){const ve=[];return Object.keys(_e).forEach(Re=>{const qe=_e[Re];Array.isArray(qe)?qe.forEach(ct=>{ve.push({param:Re,value:ct,op:"a"})}):ve.push({param:Re,value:qe,op:"a"})}),this.clone(ve)}set(_e,ve){return this.clone({param:_e,value:ve,op:"s"})}delete(_e,ve){return this.clone({param:_e,value:ve,op:"d"})}toString(){return this.init(),this.keys().map(_e=>{const ve=this.encoder.encodeKey(_e);return this.map.get(_e).map(Re=>ve+"="+this.encoder.encodeValue(Re)).join("&")}).filter(_e=>""!==_e).join("&")}clone(_e){const ve=new Me({encoder:this.encoder});return ve.cloneFrom=this.cloneFrom||this,ve.updates=(this.updates||[]).concat(_e),ve}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(_e=>this.map.set(_e,this.cloneFrom.map.get(_e))),this.updates.forEach(_e=>{switch(_e.op){case"a":case"s":const ve=("a"===_e.op?this.map.get(_e.param):void 0)||[];ve.push(Oe(_e.value)),this.map.set(_e.param,ve);break;case"d":if(void 0===_e.value){this.map.delete(_e.param);break}{let Re=this.map.get(_e.param)||[];const qe=Re.indexOf(Oe(_e.value));-1!==qe&&Re.splice(qe,1),Re.length>0?this.map.set(_e.param,Re):this.map.delete(_e.param)}}}),this.cloneFrom=this.updates=null)}}class Ce{constructor(){this.map=new Map}set(_e,ve){return this.map.set(_e,ve),this}get(_e){return this.map.has(_e)||this.map.set(_e,_e.defaultValue()),this.map.get(_e)}delete(_e){return this.map.delete(_e),this}has(_e){return this.map.has(_e)}keys(){return this.map.keys()}}function He(Ie){return typeof ArrayBuffer<"u"&&Ie instanceof ArrayBuffer}function lt(Ie){return typeof Blob<"u"&&Ie instanceof Blob}function Ct(Ie){return typeof FormData<"u"&&Ie instanceof FormData}class Wt{constructor(_e,ve,Re,qe){let ct;if(this.url=ve,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=_e.toUpperCase(),function De(Ie){switch(Ie){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||qe?(this.body=void 0!==Re?Re:null,ct=qe):ct=Re,ct&&(this.reportProgress=!!ct.reportProgress,this.withCredentials=!!ct.withCredentials,ct.responseType&&(this.responseType=ct.responseType),ct.headers&&(this.headers=ct.headers),ct.context&&(this.context=ct.context),ct.params&&(this.params=ct.params),this.transferCache=ct.transferCache),this.headers||(this.headers=new ie),this.context||(this.context=new Ce),this.params){const st=this.params.toString();if(0===st.length)this.urlWithParams=ve;else{const Ht=ve.indexOf("?");this.urlWithParams=ve+(-1===Ht?"?":Ht<ve.length-1?"&":"")+st}}else this.params=new Me,this.urlWithParams=ve}serializeBody(){return null===this.body?null:He(this.body)||lt(this.body)||Ct(this.body)||function zt(Ie){return typeof URLSearchParams<"u"&&Ie instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Me?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||Ct(this.body)?null:lt(this.body)?this.body.type||null:He(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Me?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(_e={}){const ve=_e.method||this.method,Re=_e.url||this.url,qe=_e.responseType||this.responseType,ct=void 0!==_e.body?_e.body:this.body,st=void 0!==_e.withCredentials?_e.withCredentials:this.withCredentials,Ht=void 0!==_e.reportProgress?_e.reportProgress:this.reportProgress;let At=_e.headers||this.headers,$t=_e.params||this.params;const _n=_e.context??this.context;return void 0!==_e.setHeaders&&(At=Object.keys(_e.setHeaders).reduce((vn,yt)=>vn.set(yt,_e.setHeaders[yt]),At)),_e.setParams&&($t=Object.keys(_e.setParams).reduce((vn,yt)=>vn.set(yt,_e.setParams[yt]),$t)),new Wt(ve,Re,ct,{params:$t,headers:At,context:_n,reportProgress:Ht,responseType:qe,withCredentials:st})}}var Je=function(Ie){return Ie[Ie.Sent=0]="Sent",Ie[Ie.UploadProgress=1]="UploadProgress",Ie[Ie.ResponseHeader=2]="ResponseHeader",Ie[Ie.DownloadProgress=3]="DownloadProgress",Ie[Ie.Response=4]="Response",Ie[Ie.User=5]="User",Ie}(Je||{});class le{constructor(_e,ve=200,Re="OK"){this.headers=_e.headers||new ie,this.status=void 0!==_e.status?_e.status:ve,this.statusText=_e.statusText||Re,this.url=_e.url||null,this.ok=this.status>=200&&this.status<300}}class re extends le{constructor(_e={}){super(_e),this.type=Je.ResponseHeader}clone(_e={}){return new re({headers:_e.headers||this.headers,status:void 0!==_e.status?_e.status:this.status,statusText:_e.statusText||this.statusText,url:_e.url||this.url||void 0})}}class G extends le{constructor(_e={}){super(_e),this.type=Je.Response,this.body=void 0!==_e.body?_e.body:null}clone(_e={}){return new G({body:void 0!==_e.body?_e.body:this.body,headers:_e.headers||this.headers,status:void 0!==_e.status?_e.status:this.status,statusText:_e.statusText||this.statusText,url:_e.url||this.url||void 0})}}class $ extends le{constructor(_e){super(_e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${_e.url||"(unknown url)"}`:`Http failure response for ${_e.url||"(unknown url)"}: ${_e.status} ${_e.statusText}`,this.error=_e.error||null}}function F(Ie,_e){return{body:_e,headers:Ie.headers,context:Ie.context,observe:Ie.observe,params:Ie.params,reportProgress:Ie.reportProgress,responseType:Ie.responseType,withCredentials:Ie.withCredentials,transferCache:Ie.transferCache}}let U=(()=>{class Ie{constructor(ve){this.handler=ve}request(ve,Re,qe={}){let ct;if(ve instanceof Wt)ct=ve;else{let At,$t;At=qe.headers instanceof ie?qe.headers:new ie(qe.headers),qe.params&&($t=qe.params instanceof Me?qe.params:new Me({fromObject:qe.params})),ct=new Wt(ve,Re,void 0!==qe.body?qe.body:null,{headers:At,context:qe.context,params:$t,reportProgress:qe.reportProgress,responseType:qe.responseType||"json",withCredentials:qe.withCredentials,transferCache:qe.transferCache})}const st=(0,te.of)(ct).pipe(function S(Ie,_e){return(0,T.m)(_e)?(0,y.z)(Ie,_e,1):(0,y.z)(Ie,1)}(At=>this.handler.handle(At)));if(ve instanceof Wt||"events"===qe.observe)return st;const Ht=st.pipe((0,N.h)(At=>At instanceof G));switch(qe.observe||"body"){case"body":switch(ct.responseType){case"arraybuffer":return Ht.pipe((0,k.U)(At=>{if(null!==At.body&&!(At.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return At.body}));case"blob":return Ht.pipe((0,k.U)(At=>{if(null!==At.body&&!(At.body instanceof Blob))throw new Error("Response is not a Blob.");return At.body}));case"text":return Ht.pipe((0,k.U)(At=>{if(null!==At.body&&"string"!=typeof At.body)throw new Error("Response is not a string.");return At.body}));default:return Ht.pipe((0,k.U)(At=>At.body))}case"response":return Ht;default:throw new Error(`Unreachable: unhandled observe type ${qe.observe}}`)}}delete(ve,Re={}){return this.request("DELETE",ve,Re)}get(ve,Re={}){return this.request("GET",ve,Re)}head(ve,Re={}){return this.request("HEAD",ve,Re)}jsonp(ve,Re){return this.request("JSONP",ve,{params:(new Me).append(Re,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(ve,Re={}){return this.request("OPTIONS",ve,Re)}patch(ve,Re,qe={}){return this.request("PATCH",ve,F(qe,Re))}post(ve,Re,qe={}){return this.request("POST",ve,F(qe,Re))}put(ve,Re,qe={}){return this.request("PUT",ve,F(qe,Re))}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(O))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();function Ke(Ie,_e){return _e(Ie)}function mt(Ie,_e){return(ve,Re)=>_e.intercept(ve,{handle:qe=>Ie(qe,Re)})}const Ge=new i.OlP(""),ne=new i.OlP(""),se=new i.OlP(""),Te=new i.OlP("");function $e(){let Ie=null;return(_e,ve)=>{null===Ie&&(Ie=((0,i.f3M)(Ge,{optional:!0})??[]).reduceRight(mt,Ke));const Re=(0,i.f3M)(i.I6F),qe=Re.add();return Ie(_e,ve).pipe((0,W.x)(()=>Re.remove(qe)))}}let gt=(()=>{class Ie extends O{constructor(ve,Re){super(),this.backend=ve,this.injector=Re,this.chain=null,this.pendingTasks=(0,i.f3M)(i.I6F);const qe=(0,i.f3M)(Te,{optional:!0});this.backend=qe??ve}handle(ve){if(null===this.chain){const qe=Array.from(new Set([...this.injector.get(ne),...this.injector.get(se,[])]));this.chain=qe.reduceRight((ct,st)=>function Ae(Ie,_e,ve){return(Re,qe)=>(0,i.r_H)(ve,()=>_e(Re,ct=>Ie(ct,qe)))}(ct,st,this.injector),Ke)}const Re=this.pendingTasks.add();return this.chain(ve,qe=>this.backend.handle(qe)).pipe((0,W.x)(()=>this.pendingTasks.remove(Re)))}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(R),i.LFG(i.lqb))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();const Pi=/^\)\]\}',?\n/;let Xn=(()=>{class Ie{constructor(ve){this.xhrFactory=ve}handle(ve){if("JSONP"===ve.method)throw new i.vHH(-2800,!1);const Re=this.xhrFactory;return(Re.\u0275loadImpl?(0,v.D)(Re.\u0275loadImpl()):(0,te.of)(null)).pipe((0,A.w)(()=>new Q.y(ct=>{const st=Re.build();if(st.open(ve.method,ve.urlWithParams),ve.withCredentials&&(st.withCredentials=!0),ve.headers.forEach((en,Zt)=>st.setRequestHeader(en,Zt.join(","))),ve.headers.has("Accept")||st.setRequestHeader("Accept","application/json, text/plain, */*"),!ve.headers.has("Content-Type")){const en=ve.detectContentTypeHeader();null!==en&&st.setRequestHeader("Content-Type",en)}if(ve.responseType){const en=ve.responseType.toLowerCase();st.responseType="json"!==en?en:"text"}const Ht=ve.serializeBody();let At=null;const $t=()=>{if(null!==At)return At;const en=st.statusText||"OK",Zt=new ie(st.getAllResponseHeaders()),pn=function jt(Ie){return"responseURL"in Ie&&Ie.responseURL?Ie.responseURL:/^X-Request-URL:/m.test(Ie.getAllResponseHeaders())?Ie.getResponseHeader("X-Request-URL"):null}(st)||ve.url;return At=new re({headers:Zt,status:st.status,statusText:en,url:pn}),At},_n=()=>{let{headers:en,status:Zt,statusText:pn,url:ei}=$t(),on=null;204!==Zt&&(on=typeof st.response>"u"?st.responseText:st.response),0===Zt&&(Zt=on?200:0);let ti=Zt>=200&&Zt<300;if("json"===ve.responseType&&"string"==typeof on){const wo=on;on=on.replace(Pi,"");try{on=""!==on?JSON.parse(on):null}catch(Ki){on=wo,ti&&(ti=!1,on={error:Ki,text:on})}}ti?(ct.next(new G({body:on,headers:en,status:Zt,statusText:pn,url:ei||void 0})),ct.complete()):ct.error(new $({error:on,headers:en,status:Zt,statusText:pn,url:ei||void 0}))},vn=en=>{const{url:Zt}=$t(),pn=new $({error:en,status:st.status||0,statusText:st.statusText||"Unknown Error",url:Zt||void 0});ct.error(pn)};let yt=!1;const Ei=en=>{yt||(ct.next($t()),yt=!0);let Zt={type:Je.DownloadProgress,loaded:en.loaded};en.lengthComputable&&(Zt.total=en.total),"text"===ve.responseType&&st.responseText&&(Zt.partialText=st.responseText),ct.next(Zt)},Tn=en=>{let Zt={type:Je.UploadProgress,loaded:en.loaded};en.lengthComputable&&(Zt.total=en.total),ct.next(Zt)};return st.addEventListener("load",_n),st.addEventListener("error",vn),st.addEventListener("timeout",vn),st.addEventListener("abort",vn),ve.reportProgress&&(st.addEventListener("progress",Ei),null!==Ht&&st.upload&&st.upload.addEventListener("progress",Tn)),st.send(Ht),ct.next({type:Je.Sent}),()=>{st.removeEventListener("error",vn),st.removeEventListener("abort",vn),st.removeEventListener("load",_n),st.removeEventListener("timeout",vn),ve.reportProgress&&(st.removeEventListener("progress",Ei),null!==Ht&&st.upload&&st.upload.removeEventListener("progress",Tn)),st.readyState!==st.DONE&&st.abort()}})))}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(C.JF))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();const wn=new i.OlP("XSRF_ENABLED"),Ot=new i.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Bn=new i.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Vn{}let We=(()=>{class Ie{constructor(ve,Re,qe){this.doc=ve,this.platform=Re,this.cookieName=qe,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const ve=this.doc.cookie||"";return ve!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,C.Mx)(ve,this.cookieName),this.lastCookieString=ve),this.lastToken}static#e=this.\u0275fac=function(Re){return new(Re||Ie)(i.LFG(C.K0),i.LFG(i.Lbi),i.LFG(Ot))};static#t=this.\u0275prov=i.Yz7({token:Ie,factory:Ie.\u0275fac})}return Ie})();function me(Ie,_e){const ve=Ie.url.toLowerCase();if(!(0,i.f3M)(wn)||"GET"===Ie.method||"HEAD"===Ie.method||ve.startsWith("http://")||ve.startsWith("https://"))return _e(Ie);const Re=(0,i.f3M)(Vn).getToken(),qe=(0,i.f3M)(Bn);return null!=Re&&!Ie.headers.has(qe)&&(Ie=Ie.clone({headers:Ie.headers.set(qe,Re)})),_e(Ie)}var B=function(Ie){return Ie[Ie.Interceptors=0]="Interceptors",Ie[Ie.LegacyInterceptors=1]="LegacyInterceptors",Ie[Ie.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ie[Ie.NoXsrfProtection=3]="NoXsrfProtection",Ie[Ie.JsonpSupport=4]="JsonpSupport",Ie[Ie.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ie[Ie.Fetch=6]="Fetch",Ie}(B||{});function X(...Ie){const _e=[U,Xn,gt,{provide:O,useExisting:gt},{provide:R,useExisting:Xn},{provide:ne,useValue:me,multi:!0},{provide:wn,useValue:!0},{provide:Vn,useClass:We}];for(const ve of Ie)_e.push(...ve.\u0275providers);return(0,i.MR2)(_e)}const M=new i.OlP("LEGACY_INTERCEPTOR_FN");function K(){return function ae(Ie,_e){return{\u0275kind:Ie,\u0275providers:_e}}(B.LegacyInterceptors,[{provide:M,useFactory:$e},{provide:ne,useExisting:M,multi:!0}])}let gn=(()=>{class Ie{static#e=this.\u0275fac=function(Re){return new(Re||Ie)};static#t=this.\u0275mod=i.oAB({type:Ie});static#n=this.\u0275inj=i.cJS({providers:[X(K())]})}return Ie})()},1322:(Ee,w,b)=>{"use strict";b.d(w,{QbO:()=>cd,AFp:()=>Xu,hGG:()=>cA,z2F:()=>yl,Ojb:()=>Ta,sBO:()=>Ob,_Vd:()=>Rd,EJc:()=>JS,SBq:()=>Fd,lqb:()=>bi,qLn:()=>Ls,vpe:()=>Cr,OlP:()=>yt,zs3:()=>io,ZZ4:()=>Rp,aQg:()=>Fp,soG:()=>Tf,h0i:()=>Ga,R0b:()=>ci,FiY:()=>ga,Lbi:()=>ad,g9A:()=>sd,n_E:()=>vf,Qsj:()=>mC,FYo:()=>q_,JOm:()=>yd,q3G:()=>pt,tp0:()=>Hi,Rgc:()=>ru,dDg:()=>$S,eoX:()=>Cw,GfV:()=>mw,s_b:()=>ef,ifc:()=>Mi,VuI:()=>kA,Lck:()=>mM,eFA:()=>Pw,G48:()=>nA,Gpc:()=>Nt,f3M:()=>tn,MR2:()=>Vu,Cb_:()=>RA,_c5:()=>aA,r_H:()=>Ec,rg0:()=>bC,c2e:()=>pw,zSh:()=>td,wAp:()=>gl,I6F:()=>i_,vHH:()=>rt,lri:()=>yw,rWj:()=>ww,JZr:()=>ui,EiD:()=>Le,mCW:()=>zc,qzn:()=>Fs,JVY:()=>vp,pB0:()=>xp,eBb:()=>wp,L6k:()=>yp,LAX:()=>Cp,cg1:()=>Rg,kuF:()=>Dn,kL8:()=>ly,dqk:()=>$t,QGY:()=>Lg,F4k:()=>Ny,RDi:()=>Sm,AaK:()=>$e,z3N:()=>Qo,qOj:()=>eg,Xq5:()=>Wb,TTD:()=>fn,_Bn:()=>w0,jDz:()=>x0,xp6:()=>hb,uIk:()=>tg,Tol:()=>lv,ekj:()=>cg,um2:()=>Rv,Suo:()=>Y0,Xpm:()=>Ir,lG2:()=>os,Yz7:()=>Qt,cJS:()=>co,oAB:()=>fo,Yjl:()=>rs,Y36:()=>Kc,_UZ:()=>Ig,GkF:()=>Og,BQk:()=>uf,ynx:()=>df,qZA:()=>lf,TgZ:()=>cf,EpF:()=>cy,n5z:()=>Su,Ikx:()=>Pg,LFG:()=>$n,$8M:()=>Wl,$Z:()=>mb,NdJ:()=>Bg,CRH:()=>K0,O4$:()=>cc,oxw:()=>Hy,ALo:()=>$0,lcZ:()=>H0,xi3:()=>j0,Hsn:()=>Uy,F$t:()=>jy,Q6J:()=>rg,DdM:()=>O0,VKq:()=>P0,WLB:()=>k0,HTZ:()=>R0,iGM:()=>G0,MAs:()=>Xy,wJu:()=>Lv,SjG:()=>Nv,x6l:()=>Fv,KtG:()=>Uf,CHM:()=>jf,oJD:()=>_t,Udp:()=>ag,d8E:()=>kg,YNc:()=>cl,W1O:()=>Q0,_uU:()=>d0,Oqu:()=>$g,hij:()=>gf,Gf:()=>W0});let i=null,Q=1;function y(e){const t=i;return i=e,t}function C(e){if((!Oe(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==Q)){if(!e.producerMustRecompute(e)&&!Fe(e))return e.dirty=!1,void(e.lastCleanEpoch=Q);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=Q}}function Fe(e){Me(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(C(n),r!==n.version))return!0}return!1}function Se(e,t){if(function ke(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}(e),Me(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)Se(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],s=e.liveConsumerNode[t];Me(s),s.producerIndexOfThis[r]=t}}function Oe(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Me(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let Wt=null;var mt=b(9453),Ae=b(9592),Ge=b(1625),ne=b(8412);function se(e){for(let t in e)if(e[t]===se)return t;throw Error("Could not find renamed property on target object.")}function Te(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function $e(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map($e).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 it(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const gt=se({__forward_ref__:se});function Nt(e){return e.__forward_ref__=Nt,e.toString=function(){return $e(this())},e}function dt(e){return kt(e)?e():e}function kt(e){return"function"==typeof e&&e.hasOwnProperty(gt)&&e.__forward_ref__===Nt}function wt(e){return e&&!!e.\u0275providers}const ui="https://g.co/ng/security#xss";class rt extends Error{constructor(t,n){super(Dn(t,n)),this.code=t}}function Dn(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const dn=se({\u0275cmp:se}),Yn=se({\u0275dir:se}),un=se({\u0275pipe:se}),Pi=se({\u0275mod:se}),jt=se({\u0275fac:se}),Xn=se({__NG_ELEMENT_ID__:se}),wn=se({__NG_ENV_ID__:se});function Et(e){return"string"==typeof e?e:null==e?"":String(e)}function z(e,t){throw new rt(-201,!1)}function qt(e,t){null==e&&function xt(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function Qt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function co(e){return{providers:e.providers||[],imports:e.imports||[]}}function Yi(e){return yo(e,$o)||yo(e,_e)}function yo(e,t){return e.hasOwnProperty(t)?e[t]:null}function lo(e){return e&&(e.hasOwnProperty(Ie)||e.hasOwnProperty(ve))?e[Ie]:null}const $o=se({\u0275prov:se}),Ie=se({\u0275inj:se}),_e=se({ngInjectableDef:se}),ve=se({ngInjectorDef:se});var Re=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Re||{});let qe;function st(e){const t=qe;return qe=e,t}function Ht(e,t,n){const r=Yi(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Re.Optional?null:void 0!==t?t:void z($e(e))}const $t=globalThis;class yt{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=Qt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const ki={},Kn="__NG_DI_FLAG__",Co="ngTempTokenPath",Hs=/\n/gm,xo="__source";let jo;function Zi(e){const t=jo;return jo=e,t}function Us(e,t=Re.Default){if(void 0===jo)throw new rt(-203,!1);return null===jo?Ht(e,void 0,t):jo.get(e,t&Re.Optional?null:void 0,t)}function $n(e,t=Re.Default){return(function ct(){return qe}()||Us)(dt(e),t)}function tn(e,t=Re.Default){return $n(e,or(t))}function or(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ri(e){const t=[];for(let n=0;n<e.length;n++){const r=dt(e[n]);if(Array.isArray(r)){if(0===r.length)throw new rt(900,!1);let s,d=Re.Default;for(let f=0;f<r.length;f++){const m=r[f],g=rr(m);"number"==typeof g?-1===g?s=m.token:d|=g:s=m}t.push($n(s,d))}else t.push($n(r))}return t}function qi(e,t){return e[Kn]=t,e.prototype[Kn]=t,e}function rr(e){return e[Kn]}function zn(e){return{toString:e}.toString()}var Do=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Do||{}),Mi=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(Mi||{});const Fi={},rn=[];function Uo(e,t,n){let r=e.length;for(;;){const s=e.indexOf(t,n);if(-1===s)return s;if(0===s||e.charCodeAt(s-1)<=32){const d=t.length;if(s+d===r||e.charCodeAt(s+d)<=32)return s}n=s+1}}function uo(e,t,n){let r=0;for(;r<n.length;){const s=n[r];if("number"==typeof s){if(0!==s)break;r++;const d=n[r++],f=n[r++],m=n[r++];e.setAttribute(t,f,m,d)}else{const d=s,f=n[++r];Ws(d)?e.setProperty(t,d,f):e.setAttribute(t,d,f),r++}}return r}function Gs(e){return 3===e||4===e||6===e}function Ws(e){return 64===e.charCodeAt(0)}function Pn(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const s=t[r];"number"==typeof s?n=s:0===n||Qr(e,n,s,null,-1===n||2===n?t[++r]:null)}}return e}function Qr(e,t,n,r,s){let d=0,f=e.length;if(-1===t)f=-1;else for(;d<e.length;){const m=e[d++];if("number"==typeof m){if(m===t){f=-1;break}if(m>t){f=d-1;break}}}for(;d<e.length;){const m=e[d];if("number"==typeof m)break;if(m===n){if(null===r)return void(null!==s&&(e[d+1]=s));if(r===e[d+1])return void(e[d+2]=s)}d++,null!==r&&d++,null!==s&&d++}-1!==f&&(e.splice(f,0,t),d=f+1),e.splice(d++,0,n),null!==r&&e.splice(d++,0,r),null!==s&&e.splice(d++,0,s)}const Ys="ng-template";function Xr(e,t,n){let r=0,s=!0;for(;r<e.length;){let d=e[r++];if("string"==typeof d&&s){const f=e[r++];if(n&&"class"===d&&-1!==Uo(f.toLowerCase(),t,0))return!0}else{if(1===d){for(;r<e.length&&"string"==typeof(d=e[r++]);)if(d.toLowerCase()===t)return!0;return!1}"number"==typeof d&&(s=!1)}}return!1}function Ks(e){return 4===e.type&&e.value!==Ys}function es(e,t,n){return t===(4!==e.type||n?e.value:Ys)}function ts(e,t,n){let r=4;const s=e.attrs||[],d=function ns(e){for(let t=0;t<e.length;t++)if(Gs(e[t]))return t;return e.length}(s);let f=!1;for(let m=0;m<t.length;m++){const g=t[m];if("number"!=typeof g){if(!f)if(4&r){if(r=2|1&r,""!==g&&!es(e,g,n)||""===g&&1===t.length){if(Rn(r))return!1;f=!0}}else{const I=8&r?g:t[++m];if(8&r&&null!==e.attrs){if(!Xr(e.attrs,I,n)){if(Rn(r))return!1;f=!0}continue}const oe=Cl(8&r?"class":g,s,Ks(e),n);if(-1===oe){if(Rn(r))return!1;f=!0;continue}if(""!==I){let be;be=oe>d?"":s[oe+1].toLowerCase();const xe=8&r?be:null;if(xe&&-1!==Uo(xe,I,0)||2&r&&I!==be){if(Rn(r))return!1;f=!0}}}}else{if(!f&&!Rn(r)&&!Rn(g))return!1;if(f&&Rn(g))continue;f=!1,r=g|1&r}}return Rn(r)||f}function Rn(e){return 0==(1&e)}function Cl(e,t,n,r){if(null===t)return-1;let s=0;if(r||!n){let d=!1;for(;s<t.length;){const f=t[s];if(f===e)return s;if(3===f||6===f)d=!0;else{if(1===f||2===f){let m=t[++s];for(;"string"==typeof m;)m=t[++s];continue}if(4===f)break;if(0===f){s+=4;continue}}s+=d?1:2}return-1}return function zo(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function sr(e,t,n=!1){for(let r=0;r<t.length;r++)if(ts(e,t[r],n))return!0;return!1}function Ka(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let s=0;s<e.length;s++)if(e[s]!==r[s])continue e;return!0}}return!1}function ho(e,t){return e?":not("+t.trim()+")":t}function Za(e){let t=e[0],n=1,r=2,s="",d=!1;for(;n<e.length;){let f=e[n];if("string"==typeof f)if(2&r){const m=e[++n];s+="["+f+(m.length>0?'="'+m+'"':"")+"]"}else 8&r?s+="."+f:4&r&&(s+=" "+f);else""!==s&&!Rn(f)&&(t+=ho(d,s),s=""),r=f,d=d||!Rn(r);n++}return""!==s&&(t+=ho(d,s)),t}function Ir(e){return zn(()=>{const t=ss(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Do.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||Mi.Emulated,styles:e.styles||rn,_:null,schemas:e.schemas||null,tView:null,id:""};Qs(n);const r=e.dependencies;return n.directiveDefs=as(r,!1),n.pipeDefs=as(r,!0),n.id=function cs(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const s of n)t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function is(e){return Yt(e)||Hn(e)}function qs(e){return null!==e}function fo(e){return zn(()=>({type:e.type,bootstrap:e.bootstrap||rn,declarations:e.declarations||rn,imports:e.imports||rn,exports:e.exports||rn,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Js(e,t){if(null==e)return Fi;const n={};for(const r in e)if(e.hasOwnProperty(r)){let s=e[r],d=s;Array.isArray(s)&&(d=s[1],s=s[0]),n[s]=r,t&&(t[s]=d)}return n}function os(e){return zn(()=>{const t=ss(e);return Qs(t),t})}function rs(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Yt(e){return e[dn]||null}function Hn(e){return e[Yn]||null}function jn(e){return e[un]||null}function ss(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Fi,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||rn,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Js(e.inputs,t),outputs:Js(e.outputs),debugInfo:null}}function Qs(e){e.features?.forEach(t=>t(e))}function as(e,t){if(!e)return null;const n=t?jn:is;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(qs)}const En=0,at=1,It=2,P=3,L=4,x=5,ee=6,we=7,ot=8,Ft=9,Sn=10,Lt=11,Ji=12,Ja=13,Or=14,kn=15,ar=16,ls=17,mo=18,Pr=19,Qa=20,_i=21,kr=22,po=23,Bt=25,ds=1,Li=7,Fr=9,Nn=10;var lr=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e[e.HasChildViewsToRefresh=4]="HasChildViewsToRefresh",e}(lr||{});function Zn(e){return Array.isArray(e)&&"object"==typeof e[ds]}function qn(e){return Array.isArray(e)&&!0===e[ds]}function Xs(e){return 0!=(4&e.flags)}function dr(e){return e.componentOffset>-1}function ea(e){return 1==(1&e.flags)}function Qi(e){return!!e.template}function Xa(e){return 0!=(512&e[It])}function hn(e,t){return e.hasOwnProperty(jt)?e[jt]:null}class yn{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function fn(){return Xt}function Xt(e){return e.type.prototype.ngOnChanges&&(e.setInput=bn),An}function An(){const e=To(this),t=e?.current;if(t){const n=e.previous;if(n===Fi)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function bn(e,t,n,r){const s=this.declaredInputs[n],d=To(e)||function go(e,t){return e[Gn]=t}(e,{previous:Fi,current:null}),f=d.current||(d.current={}),m=d.previous,g=m[s];f[s]=new yn(g&&g.currentValue,t,m===Fi),e[r]=t}fn.ngInherit=!0;const Gn="__ngSimpleChanges__";function To(e){return e[Gn]||null}const ni=function(e,t,n){},Xi="svg";let us=!1;function Mn(e){for(;Array.isArray(e);)e=e[En];return e}function Mo(e,t){return Mn(t[e])}function xi(e,t){return Mn(t[e.index])}function So(e,t){return e.data[t]}function Yo(e,t){return e[t]}function Bi(e,t){const n=t[e];return Zn(n)?n:n[En]}function _o(e){return 128==(128&e[It])}function eo(e,t){return null==t?null:e[t]}function El(e){e[ls]=0}function Ml(e){1024&e[It]||(e[It]|=1024,_o(e)&&ic(e))}function tc(e){return 9216&e[It]||e[po]?.dirty}function nc(e){tc(e)?ic(e):64&e[It]&&(function Bf(){return us}()?(e[It]|=1024,ic(e)):e[Sn].changeDetectionScheduler?.notify())}function ic(e){e[Sn].changeDetectionScheduler?.notify();let t=e[P];for(;null!==t&&!(qn(t)&&t[It]&lr.HasChildViewsToRefresh||Zn(t)&&8192&t[It]);){if(qn(t))t[It]|=lr.HasChildViewsToRefresh;else if(t[It]|=8192,!_o(t))break;t=t[P]}}const Ut={lFrame:ca(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ao(){return Ut.bindingsEnabled}function ur(){return null!==Ut.skipHydrationRootTNode}function Ze(){return Ut.lFrame.lView}function ln(){return Ut.lFrame.tView}function jf(e){return Ut.lFrame.contextLView=e,e[ot]}function Uf(e){return Ut.lFrame.contextLView=null,e}function Cn(){let e=zf();for(;null!==e&&64===e.type;)e=e.parent;return e}function zf(){return Ut.lFrame.currentTNode}function Ko(e,t){const n=Ut.lFrame;n.currentTNode=e,n.isParent=t}function ra(){return Ut.lFrame.isParent}function Pl(){Ut.lFrame.isParent=!1}function ii(){const e=Ut.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Vi(){return Ut.lFrame.bindingIndex++}function to(e){const t=Ut.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Yf(e,t){const n=Ut.lFrame;n.bindingIndex=n.bindingRootIndex=e,Rl(t)}function Rl(e){Ut.lFrame.currentDirectiveIndex=e}function Fl(e){const t=Ut.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}function fu(){return Ut.lFrame.currentQueryIndex}function Nl(e){Ut.lFrame.currentQueryIndex=e}function Ll(e){const t=e[at];return 2===t.type?t.declTNode:1===t.type?e[x]:null}function aa(e,t,n){if(n&Re.SkipSelf){let s=t,d=e;for(;!(s=s.parent,null!==s||n&Re.Host||(s=Ll(d),null===s||(d=d[Or],10&s.type))););if(null===s)return!1;t=s,e=d}const r=Ut.lFrame=mu();return r.currentTNode=t,r.lView=e,!0}function ps(e){const t=mu(),n=e[at];Ut.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function mu(){const e=Ut.lFrame,t=null===e?null:e.child;return null===t?ca(e):t}function ca(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 la(){const e=Ut.lFrame;return Ut.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const pu=la;function gs(){const e=la();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 oi(){return Ut.lFrame.selectedIndex}function Br(e){Ut.lFrame.selectedIndex=e}function xn(){const e=Ut.lFrame;return So(e.tView,e.selectedIndex)}function cc(){Ut.lFrame.currentNamespace=Xi}let Jf=!0;function lc(){return Jf}function fr(e){Jf=e}function Io(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const d=e.data[n].type.prototype,{ngAfterContentInit:f,ngAfterContentChecked:m,ngAfterViewInit:g,ngAfterViewChecked:I,ngOnDestroy:j}=d;f&&(e.contentHooks??=[]).push(-n,f),m&&((e.contentHooks??=[]).push(n,m),(e.contentCheckHooks??=[]).push(n,m)),g&&(e.viewHooks??=[]).push(-n,g),I&&((e.viewHooks??=[]).push(n,I),(e.viewCheckHooks??=[]).push(n,I)),null!=j&&(e.destroyHooks??=[]).push(n,j)}}function dc(e,t,n){Vl(e,t,3,n)}function da(e,t,n,r){(3&e[It])===n&&Vl(e,t,n,r)}function gu(e,t){let n=e[It];(3&n)===t&&(n&=16383,n+=1,e[It]=n)}function Vl(e,t,n,r){const d=r??-1,f=t.length-1;let m=0;for(let g=void 0!==r?65535&e[ls]:0;g<f;g++)if("number"==typeof t[g+1]){if(m=t[g],null!=r&&m>=r)break}else t[g]<0&&(e[ls]+=65536),(m<d||-1==d)&&(Qf(e,n,t,g),e[ls]=(4294901760&e[ls])+g+2),g++}function _u(e,t){ni(4,e,t);const n=y(null);try{t.call(e)}finally{y(n),ni(5,e,t)}}function Qf(e,t,n,r){const s=n[r]<0,d=n[r+1],m=e[s?-n[r]:n[r]];s?e[It]>>14<e[ls]>>16&&(3&e[It])===t&&(e[It]+=16384,_u(m,d)):_u(m,d)}const _s=-1;class ua{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function $l(e){return e!==_s}function Vr(e){return 32767&e}function hc(e,t){let n=function tm(e){return e>>16}(e),r=t;for(;n>0;)r=r[Or],n--;return r}let Hl=!0;function jl(e){const t=Hl;return Hl=e,t}const vu=255,yu=5;let im=0;const Oo={};function fc(e,t){const n=wu(e,t);if(-1!==n)return n;const r=t[at];r.firstCreatePass&&(e.injectorIndex=t.length,Ul(r.data,e),Ul(t,null),Ul(r.blueprint,null));const s=mc(e,t),d=e.injectorIndex;if($l(s)){const f=Vr(s),m=hc(s,t),g=m[at].data;for(let I=0;I<8;I++)t[d+I]=m[f+I]|g[f+I]}return t[d+8]=s,d}function Ul(e,t){e.push(0,0,0,0,0,0,0,0,t)}function wu(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function mc(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,s=t;for(;null!==s;){if(r=Au(s),null===r)return _s;if(n++,s=s[Or],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return _s}function zl(e,t,n){!function om(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Xn)&&(r=n[Xn]),null==r&&(r=n[Xn]=im++);const s=r&vu;t.data[e+(s>>yu)]|=1<<s}(e,t,n)}function Cu(e,t,n){if(n&Re.Optional||void 0!==e)return e;z()}function xu(e,t,n,r){if(n&Re.Optional&&void 0===r&&(r=null),!(n&(Re.Self|Re.Host))){const s=e[Ft],d=st(void 0);try{return s?s.get(t,r,n&Re.Optional):Ht(t,r,n&Re.Optional)}finally{st(d)}}return Cu(r,0,n)}function Du(e,t,n,r=Re.Default,s){if(null!==e){if(2048&t[It]&&!(r&Re.Self)){const f=function cm(e,t,n,r,s){let d=e,f=t;for(;null!==d&&null!==f&&2048&f[It]&&!(512&f[It]);){const m=Tu(d,f,n,r|Re.Self,Oo);if(m!==Oo)return m;let g=d.parent;if(!g){const I=f[Qa];if(I){const j=I.get(n,Oo,r);if(j!==Oo)return j}g=Au(f),f=f[Or]}d=g}return s}(e,t,n,r,Oo);if(f!==Oo)return f}const d=Tu(e,t,n,r,Oo);if(d!==Oo)return d}return xu(t,n,r,s)}function Tu(e,t,n,r,s){const d=function sm(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Xn)?e[Xn]:void 0;return"number"==typeof t?t>=0?t&vu:am:t}(n);if("function"==typeof d){if(!aa(t,e,r))return r&Re.Host?Cu(s,0,r):xu(t,n,r,s);try{let f;if(f=d(r),null!=f||r&Re.Optional)return f;z()}finally{pu()}}else if("number"==typeof d){let f=null,m=wu(e,t),g=_s,I=r&Re.Host?t[kn][x]:null;for((-1===m||r&Re.SkipSelf)&&(g=-1===m?mc(e,t):t[m+8],g!==_s&&Mu(r,!1)?(f=t[at],m=Vr(g),t=hc(g,t)):m=-1);-1!==m;){const j=t[at];if(Eu(d,m,j.data)){const oe=rm(m,t,n,f,r,I);if(oe!==Oo)return oe}g=t[m+8],g!==_s&&Mu(r,t[at].data[m+8]===I)&&Eu(d,m,t)?(f=j,m=Vr(g),t=hc(g,t)):m=-1}}return s}function rm(e,t,n,r,s,d){const f=t[at],m=f.data[e+8],j=pc(m,f,n,null==r?dr(m)&&Hl:r!=f&&0!=(3&m.type),s&Re.Host&&d===m);return null!==j?$r(t,f,j,m):Oo}function pc(e,t,n,r,s){const d=e.providerIndexes,f=t.data,m=1048575&d,g=e.directiveStart,j=d>>20,be=s?m+j:e.directiveEnd;for(let xe=r?m:m+j;xe<be;xe++){const Ue=f[xe];if(xe<g&&n===Ue||xe>=g&&Ue.type===n)return xe}if(s){const xe=f[g];if(xe&&Qi(xe)&&xe.type===n)return g}return null}function $r(e,t,n,r){let s=e[n];const d=t.data;if(function E_(e){return e instanceof ua}(s)){const f=s;f.resolving&&function Vn(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new rt(-200,`Circular dependency in DI detected for ${e}${n}`)}(function Ot(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Et(e)}(d[n]));const m=jl(f.canSeeViewProviders);f.resolving=!0;const I=f.injectImpl?st(f.injectImpl):null;aa(e,r,Re.Default);try{s=e[n]=f.factory(void 0,d,e,r),t.firstCreatePass&&n>=r.directiveStart&&function T_(e,t,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:d}=t.type.prototype;if(r){const f=Xt(t);(n.preOrderHooks??=[]).push(e,f),(n.preOrderCheckHooks??=[]).push(e,f)}s&&(n.preOrderHooks??=[]).push(0-e,s),d&&((n.preOrderHooks??=[]).push(e,d),(n.preOrderCheckHooks??=[]).push(e,d))}(n,d[n],t)}finally{null!==I&&st(I),jl(m),f.resolving=!1,pu()}}return s}function Eu(e,t,n){return!!(n[t+(e>>yu)]&1<<e)}function Mu(e,t){return!(e&Re.Self||e&Re.Host&&t)}class Jn{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return Du(this._tNode,this._lView,t,or(r),n)}}function am(){return new Jn(Cn(),Ze())}function Su(e){return zn(()=>{const t=e.prototype.constructor,n=t[jt]||Gl(t),r=Object.prototype;let s=Object.getPrototypeOf(e.prototype).constructor;for(;s&&s!==r;){const d=s[jt]||Gl(s);if(d&&d!==n)return d;s=Object.getPrototypeOf(s)}return d=>new d})}function Gl(e){return kt(e)?()=>{const t=Gl(dt(e));return t&&t()}:hn(e)}function Au(e){const t=e[at],n=t.type;return 2===n?t.declTNode:1===n?e[x]:null}function Wl(e){return function A_(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let s=0;for(;s<r;){const d=n[s];if(Gs(d))break;if(0===d)s+=2;else if("number"==typeof d)for(s++;s<r&&"string"==typeof n[s];)s++;else{if(d===t)return n[s+1];s+=2}}}return null}(Cn(),e)}const ws="__parameters__";function xs(e,t,n){return zn(()=>{const r=function Yl(e){return function(...n){if(e){const r=e(...n);for(const s in r)this[s]=r[s]}}}(t);function s(...d){if(this instanceof s)return r.apply(this,d),this;const f=new s(...d);return m.annotation=f,m;function m(g,I,j){const oe=g.hasOwnProperty(ws)?g[ws]:Object.defineProperty(g,ws,{value:[]})[ws];for(;oe.length<=j;)oe.push(null);return(oe[j]=oe[j]||[]).push(f),g}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=e,s.annotationCls=s,s})}function Ur(e,t){e.forEach(n=>Array.isArray(n)?Ur(n,t):t(n))}function mm(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ds(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function zr(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}function $i(e,t,n){let r=Zo(e,t);return r>=0?e[1|r]=n:(r=~r,function Ru(e,t,n,r){let s=e.length;if(s==t)e.push(n,r);else if(1===s)e.push(r,e[0]),e[0]=n;else{for(s--,e.push(e[s-1],e[s]);s>t;)e[s]=e[s-2],s--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function fa(e,t){const n=Zo(e,t);if(n>=0)return e[1|n]}function Zo(e,t){return function ma(e,t,n){let r=0,s=e.length>>n;for(;s!==r;){const d=r+(s-r>>1),f=e[d<<n];if(t===f)return d<<n;f>t?s=d:r=d+1}return~(s<<n)}(e,t,1)}const ga=qi(xs("Optional"),8),Hi=qi(xs("SkipSelf"),4),ba=new yt("ENVIRONMENT_INITIALIZER"),ym=new yt("INJECTOR",-1),Bu=new yt("INJECTOR_DEF_TYPES");class Xl{get(t,n=ki){if(n===ki){const r=new Error(`NullInjectorError: No provider for ${$e(t)}!`);throw r.name="NullInjectorError",r}return n}}function Vu(e){return{\u0275providers:e}}function vc(...e){return{\u0275providers:$u(0,e),\u0275fromNgModule:!0}}function $u(e,...t){const n=[],r=new Set;let s;const d=f=>{n.push(f)};return Ur(t,f=>{const m=f;yc(m,d,[],r)&&(s||=[],s.push(m))}),void 0!==s&&Hu(s,d),n}function Hu(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:s}=e[n];Ss(s,d=>{t(d,r)})}}function yc(e,t,n,r){if(!(e=dt(e)))return!1;let s=null,d=lo(e);const f=!d&&Yt(e);if(d||f){if(f&&!f.standalone)return!1;s=e}else{const g=e.ngModule;if(d=lo(g),!d)return!1;s=g}const m=r.has(s);if(f){if(m)return!1;if(r.add(s),f.dependencies){const g="function"==typeof f.dependencies?f.dependencies():f.dependencies;for(const I of g)yc(I,t,n,r)}}else{if(!d)return!1;{if(null!=d.imports&&!m){let I;r.add(s);try{Ur(d.imports,j=>{yc(j,t,n,r)&&(I||=[],I.push(j))})}finally{}void 0!==I&&Hu(I,t)}if(!m){const I=hn(s)||(()=>new s);t({provide:s,useFactory:I,deps:rn},s),t({provide:Bu,useValue:s,multi:!0},s),t({provide:ba,useValue:()=>$n(s),multi:!0},s)}const g=d.providers;if(null!=g&&!m){const I=e;Ss(g,j=>{t(j,I)})}}}return s!==e&&void 0!==e.providers}function Ss(e,t){for(let n of e)wt(n)&&(n=n.\u0275providers),Array.isArray(n)?Ss(n,t):t(n)}const ju=se({provide:String,useValue:se});function wc(e){return null!==e&&"object"==typeof e&&ju in e}function gr(e){return"function"==typeof e}const td=new yt("Set Injector scope."),xc={},Cm={};let nd;function Dc(){return void 0===nd&&(nd=new Xl),nd}class bi{}class _r extends bi{get destroyed(){return this._destroyed}constructor(t,n,r,s){super(),this.parent=n,this.source=r,this.scopes=s,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,od(t,f=>this.processProvider(f)),this.records.set(ym,As(void 0,this)),s.has("environment")&&this.records.set(bi,As(void 0,this));const d=this.records.get(td);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Bu,rn,Re.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const n of t)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear()}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Zi(this),r=st(void 0);try{return t()}finally{Zi(n),st(r)}}get(t,n=ki,r=Re.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(wn))return t[wn](this);r=or(r);const d=Zi(this),f=st(void 0);try{if(!(r&Re.SkipSelf)){let g=this.records.get(t);if(void 0===g){const I=function id(e){return"function"==typeof e||"object"==typeof e&&e instanceof yt}(t)&&Yi(t);g=I&&this.injectableDefInScope(I)?As(va(t),xc):null,this.records.set(t,g)}if(null!=g)return this.hydrate(t,g)}return(r&Re.Self?Dc():this.parent).get(t,n=r&Re.Optional&&n===ki?null:n)}catch(m){if("NullInjectorError"===m.name){if((m[Co]=m[Co]||[]).unshift($e(t)),d)throw m;return function zs(e,t,n,r){const s=e[Co];throw t[xo]&&s.unshift(t[xo]),e.message=function Sr(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let s=$e(t);if(Array.isArray(t))s=t.map($e).join(" -> ");else if("object"==typeof t){let d=[];for(let f in t)if(t.hasOwnProperty(f)){let m=t[f];d.push(f+":"+("string"==typeof m?JSON.stringify(m):$e(m)))}s=`{${d.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${e.replace(Hs,"\n ")}`}("\n"+e.message,s,n,r),e.ngTokenPath=s,e[Co]=null,e}(m,t,"R3InjectorError",this.source)}throw m}finally{st(f),Zi(d)}}resolveInjectorInitializers(){const t=Zi(this),n=st(void 0);try{const s=this.get(ba,rn,Re.Self);for(const d of s)d()}finally{Zi(t),st(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push($e(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new rt(205,!1)}processProvider(t){let n=gr(t=dt(t))?t:dt(t&&t.provide);const r=function xm(e){return wc(e)?As(void 0,e.useValue):As(zu(e),xc)}(t);if(gr(t)||!0!==t.multi)this.records.get(n);else{let s=this.records.get(n);s||(s=As(void 0,xc,!0),s.factory=()=>Ri(s.multi),this.records.set(n,s)),n=t,s.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===xc&&(n.value=Cm,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Tm(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=dt(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function va(e){const t=Yi(e),n=null!==t?t.factory:hn(e);if(null!==n)return n;if(e instanceof yt)throw new rt(204,!1);if(e instanceof Function)return function Tc(e){const t=e.length;if(t>0)throw zr(t,"?"),new rt(204,!1);const n=function hi(e){return e&&(e[$o]||e[_e])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new rt(204,!1)}function zu(e,t,n){let r;if(gr(e)){const s=dt(e);return hn(s)||va(s)}if(wc(e))r=()=>dt(e.useValue);else if(function Cc(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Ri(e.deps||[]));else if(function Uu(e){return!(!e||!e.useExisting)}(e))r=()=>$n(dt(e.useExisting));else{const s=dt(e&&(e.useClass||e.provide));if(!function Dm(e){return!!e.deps}(e))return hn(s)||va(s);r=()=>new s(...Ri(e.deps))}return r}function As(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function od(e,t){for(const n of e)Array.isArray(n)?od(n,t):n&&wt(n)?od(n.\u0275providers,t):t(n)}function Ec(e,t){e instanceof _r&&e.assertNotDestroyed();const r=Zi(e),s=st(void 0);try{return t()}finally{Zi(r),st(s)}}function Zu(e,t=null,n=null,r){const s=qu(e,t,n,r);return s.resolveInjectorInitializers(),s}function qu(e,t=null,n=null,r,s=new Set){const d=[n||rn,vc(e)];return r=r||("object"==typeof e?void 0:$e(e)),new _r(d,t||Dc(),r||null,s)}let Da,io=(()=>{class e{static#e=this.THROW_IF_NOT_FOUND=ki;static#t=this.NULL=new Xl;static create(n,r){if(Array.isArray(n))return Zu({name:""},r,n,"");{const s=n.name??"";return Zu({name:s},n.parent,n.providers,s)}}static#n=this.\u0275prov=Qt({token:e,providedIn:"any",factory:()=>$n(ym)});static#i=this.__NG_ELEMENT_ID__=-1}return e})();function Sm(e){Da=e}function br(){if(void 0!==Da)return Da;if(typeof document<"u")return document;throw new rt(210,!1)}const Xu=new yt("AppId",{providedIn:"root",factory:()=>Am}),Am="ng",sd=new yt("Platform Initializer"),ad=new yt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),cd=new yt("AnimationModuleType"),Ta=new yt("CSP nonce",{providedIn:"root",factory:()=>br().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function bd(e){return 128==(128&e.flags)}var yd=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(yd||{});const Pc=/^>|^->|<!--|-->|--!>|<!-$/g,wd=/(<|>)/g,Vm="\u200b$1\u200b";const xd=new Map;let $m=0;const Td="__ngContext__";function wi(e,t){Zn(t)?(e[Td]=t[Pr],function jm(e){xd.set(e[Pr],e)}(t)):e[Td]=t}let Sa;function mh(e,t){return Sa(e,t)}function Aa(e){const t=e[P];return qn(t)?t[P]:t}function Jm(e){return Xm(e[Ji])}function Qm(e){return Xm(e[L])}function Xm(e){for(;null!==e&&!qn(e);)e=e[L];return e}function ks(e,t,n,r,s){if(null!=r){let d,f=!1;qn(r)?d=r:Zn(r)&&(f=!0,r=r[En]);const m=Mn(r);0===e&&null!==n?null==s?ka(t,n,m):ko(t,n,m,s||null,!0):1===e&&null!==n?ko(t,n,m,s||null,!0):2===e?function Hc(e,t,n){const r=Vc(e,t);r&&function op(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,m,f):3===e&&t.destroyNode(m),null!=d&&function ap(e,t,n,r,s){const d=n[Li];d!==Mn(n)&&ks(t,e,r,d,s);for(let m=Nn;m<n.length;m++){const g=n[m];Fa(g[at],g,e,t,r,d)}}(t,e,d,n,s)}}function Fc(e,t){return e.createComment(function Cd(e){return e.replace(Pc,t=>t.replace(wd,Vm))}(t))}function Ia(e,t,n){return e.createElement(t,n)}function _h(e,t){const n=e[Fr],r=n.indexOf(t);n.splice(r,1)}function Pa(e,t){if(e.length<=Nn)return;const n=Nn+t,r=e[n];if(r){const s=r[ar];null!==s&&s!==e&&_h(s,r),t>0&&(e[n-1][L]=r[L]);const d=Ds(e,Nn+t);!function Nc(e,t){Fa(e,t,t[Lt],2,null,null),t[En]=null,t[x]=null}(r[at],r);const f=d[mo];null!==f&&f.detachView(d[at]),r[P]=null,r[L]=null,r[It]&=-129}return r}function Lc(e,t){if(!(256&t[It])){const n=t[Lt];n.destroyNode&&Fa(e,t,n,3,null,null),function tp(e){let t=e[Ji];if(!t)return Md(e[at],e);for(;t;){let n=null;if(Zn(t))n=t[Ji];else{const r=t[Nn];r&&(n=r)}if(!n){for(;t&&!t[L]&&t!==e;)Zn(t)&&Md(t[at],t),t=t[P];null===t&&(t=e),Zn(t)&&Md(t[at],t),n=t&&t[L]}t=n}}(t)}}function Md(e,t){if(!(256&t[It])){t[It]&=-129,t[It]|=256,t[po]&&function ze(e){if(Me(e),Oe(e))for(let t=0;t<e.producerNode.length;t++)Se(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}(t[po]),function ip(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const s=t[n[r]];if(!(s instanceof ua)){const d=n[r+1];if(Array.isArray(d))for(let f=0;f<d.length;f+=2){const m=s[d[f]],g=d[f+1];ni(4,m,g);try{g.call(m)}finally{ni(5,m,g)}}else{ni(4,s,d);try{d.call(s)}finally{ni(5,s,d)}}}}}(e,t),function np(e,t){const n=e.cleanup,r=t[we];if(null!==n)for(let d=0;d<n.length-1;d+=2)if("string"==typeof n[d]){const f=n[d+3];f>=0?r[f]():r[-f].unsubscribe(),d+=2}else n[d].call(r[n[d+1]]);null!==r&&(t[we]=null);const s=t[_i];if(null!==s){t[_i]=null;for(let d=0;d<s.length;d++)(0,s[d])()}}(e,t),1===t[at].type&&t[Lt].destroy();const n=t[ar];if(null!==n&&qn(t[P])){n!==t[P]&&_h(n,t);const r=t[mo];null!==r&&r.detachView(e)}!function Um(e){xd.delete(e[Pr])}(t)}}function Bc(e,t,n){return function bh(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[En];{const{componentOffset:s}=r;if(s>-1){const{encapsulation:d}=e.data[r.directiveStart+s];if(d===Mi.None||d===Mi.Emulated)return null}return xi(r,n)}}(e,t.parent,n)}function ko(e,t,n,r,s){e.insertBefore(t,n,r,s)}function ka(e,t,n){e.appendChild(t,n)}function Zr(e,t,n,r,s){null!==r?ko(e,t,n,r,s):ka(e,t,n)}function Vc(e,t){return e.parentNode(t)}function vh(e,t,n){return wh(e,t,n)}let Sd,jc,Uc,wh=function yh(e,t,n){return 40&e.type?xi(e,n):null};function $c(e,t,n,r){const s=Bc(e,r,t),d=t[Lt],m=vh(r.parent||t[x],r,t);if(null!=s)if(Array.isArray(n))for(let g=0;g<n.length;g++)Zr(d,s,n[g],m,!1);else Zr(d,s,n,m,!1);void 0!==Sd&&Sd(d,r,t,n,s)}function Ra(e,t){if(null!==t){const n=t.type;if(3&n)return xi(t,e);if(4&n)return Ad(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Ra(e,r);{const s=e[t.index];return qn(s)?Ad(-1,s):Mn(s)}}if(32&n)return mh(t,e)()||Mn(e[t.index]);{const r=xh(e,t);return null!==r?Array.isArray(r)?r[0]:Ra(Aa(e[kn]),r):Ra(e,t.next)}}return null}function xh(e,t){return null!==t?e[kn][x].projection[t.projection]:null}function Ad(e,t){const n=Nn+e+1;if(n<t.length){const r=t[n],s=r[at].firstChild;if(null!==s)return Ra(r,s)}return t[Li]}function Id(e,t,n,r,s,d,f){for(;null!=n;){const m=r[n.index],g=n.type;if(f&&0===t&&(m&&wi(Mn(m),r),n.flags|=2),32!=(32&n.flags))if(8&g)Id(e,t,n.child,r,s,d,!1),ks(t,e,s,m,d);else if(32&g){const I=mh(n,r);let j;for(;j=I();)ks(t,e,s,j,d);ks(t,e,s,m,d)}else 16&g?Th(e,t,r,n,s,d):ks(t,e,s,m,d);n=f?n.projectionNext:n.next}}function Fa(e,t,n,r,s,d){Id(n,r,e.firstChild,t,s,d,!1)}function Th(e,t,n,r,s,d){const f=n[kn],g=f[x].projection[r.projection];if(Array.isArray(g))for(let I=0;I<g.length;I++)ks(t,e,s,g[I],d);else{let I=g;const j=f[P];bd(r)&&(I.flags|=128),Id(e,t,I,j,s,d,!0)}}function Eh(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Mh(e,t,n){const{mergedAttrs:r,classes:s,styles:d}=n;null!==r&&uo(e,t,r),null!==s&&Eh(e,t,s),null!==d&&function lp(e,t,n){e.setAttribute(t,"style",n)}(e,t,d)}function Rs(e){return function Od(){if(void 0===jc&&(jc=null,$t.trustedTypes))try{jc=$t.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return jc}()?.createHTML(e)||e}function Sh(e){return function Pd(){if(void 0===Uc&&(Uc=null,$t.trustedTypes))try{Uc=$t.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Uc}()?.createHTML(e)||e}class qr{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${ui})`}}class fp extends qr{getTypeName(){return"HTML"}}class mp extends qr{getTypeName(){return"Style"}}class pp extends qr{getTypeName(){return"Script"}}class gp extends qr{getTypeName(){return"URL"}}class _p extends qr{getTypeName(){return"ResourceURL"}}function Qo(e){return e instanceof qr?e.changingThisBreaksApplicationSecurity:e}function Fs(e,t){const n=function bp(e){return e instanceof qr&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${ui})`)}return n===t}function vp(e){return new fp(e)}function yp(e){return new mp(e)}function wp(e){return new pp(e)}function Cp(e){return new gp(e)}function xp(e){return new _p(e)}class Dp{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Rs(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class Tp{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Rs(t),n}}const Mp=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function zc(e){return(e=String(e)).match(Mp)?e:"unsafe:"+e}function Xo(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Na(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Ph=Xo("area,br,col,hr,img,wbr"),kh=Xo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Rh=Xo("rp,rt"),Fh=Na(Ph,Na(kh,Xo("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")),Na(Rh,Xo("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")),Na(Rh,kh)),h=Xo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),c=Na(h,Xo("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Xo("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")),u=Xo("script,style,template");class p{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let s=this.checkClobberedElement(n,n.nextSibling);if(s){n=s;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Fh.hasOwnProperty(n))return this.sanitizedSomething=!0,!u.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let s=0;s<r.length;s++){const d=r.item(s),f=d.name,m=f.toLowerCase();if(!c.hasOwnProperty(m)){this.sanitizedSomething=!0;continue}let g=d.value;h[m]&&(g=zc(g)),this.buf.push(" ",f,'="',fe(g),'"')}return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Fh.hasOwnProperty(n)&&!Ph.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(fe(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 D=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,q=/([^\#-~ |!])/g;function fe(e){return e.replace(/&/g,"&amp;").replace(D,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(q,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let ye;function Le(e,t){let n=null;try{ye=ye||function Oh(e){const t=new Tp(e);return function Ep(){try{return!!(new window.DOMParser).parseFromString(Rs(""),"text/html")}catch{return!1}}()?new Dp(t):t}(e);let r=t?String(t):"";n=ye.getInertBodyElement(r);let s=5,d=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=d,d=n.innerHTML,n=ye.getInertBodyElement(r)}while(r!==d);return Rs((new p).sanitizeChildren(Ye(n)||n))}finally{if(n){const r=Ye(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ye(e){return"content"in e&&function ut(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var pt=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(pt||{});function _t(e){const t=function Ui(){const e=Ze();return e&&e[Sn].sanitizer}();return t?Sh(t.sanitize(pt.HTML,e)||""):Fs(e,"HTML")?Sh(Qo(e)):Le(br(),Et(e))}class er{}let Ba=(e,t,n)=>null;function Ap(e,t,n=!1){return Ba(e,t,n)}class lC{}class K_{}class uC{resolveComponentFactory(t){throw function dC(e){const t=Error(`No component factory found for ${$e(e)}.`);return t.ngComponent=e,t}(t)}}let Rd=(()=>{class e{static#e=this.NULL=new uC}return e})();function hC(){return Yc(Cn(),Ze())}function Yc(e,t){return new Fd(xi(e,t))}let Fd=(()=>{class e{constructor(n){this.nativeElement=n}static#e=this.__NG_ELEMENT_ID__=hC}return e})();function fC(e){return e instanceof Fd?e.nativeElement:e}class q_{}let mC=(()=>{class e{constructor(){this.destroyNode=null}static#e=this.__NG_ELEMENT_ID__=()=>function pC(){const e=Ze(),n=Bi(Cn().index,e);return(Zn(n)?n:e)[Lt]}()}return e})(),gC=(()=>{class e{static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:()=>null})}return e})();const Pp={};function bC(e){const t=y(null);try{return e()}finally{y(t)}}function Vh(e){return!!kp(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function kp(e){return null!==e&&("function"==typeof e||"object"==typeof e)}class J_{constructor(){}supports(t){return Vh(t)}create(t){return new CC(t)}}const wC=(e,t)=>t;class CC{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||wC}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,s=0,d=null;for(;n||r;){const f=!r||n&&n.currentIndex<X_(r,s,d)?n:r,m=X_(f,s,d),g=f.currentIndex;if(f===r)s--,r=r._nextRemoved;else if(n=n._next,null==f.previousIndex)s++;else{d||(d=[]);const I=m-s,j=g-s;if(I!=j){for(let be=0;be<I;be++){const xe=be<d.length?d[be]:d[be]=0,Ue=xe+be;j<=Ue&&Ue<I&&(d[be]=xe+1)}d[f.previousIndex]=j-I}}m!==g&&t(f,m,g)}}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=[]),!Vh(t))throw new rt(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let s,d,f,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let m=0;m<this.length;m++)d=t[m],f=this._trackByFn(m,d),null!==n&&Object.is(n.trackById,f)?(r&&(n=this._verifyReinsertion(n,d,f,m)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,f,m),r=!0),n=n._next}else s=0,function yC(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,m=>{f=this._trackByFn(s,m),null!==n&&Object.is(n.trackById,f)?(r&&(n=this._verifyReinsertion(n,m,f,s)),Object.is(n.item,m)||this._addIdentityChange(n,m)):(n=this._mismatch(n,m,f,s),r=!0),n=n._next,s++}),this.length=s;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,s){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,d,s)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,s))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,d,s)):t=this._addAfter(new xC(n,r),d,s),t}_verifyReinsertion(t,n,r,s){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==d?t=this._reinsertAfter(d,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,d=t._nextRemoved;return null===s?this._removalsHead=d:s._nextRemoved=d,null===d?this._removalsTail=s:d._prevRemoved=s,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const s=null===n?this._itHead:n._next;return t._next=s,t._prev=n,null===s?this._itTail=t:s._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Q_),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Q_),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 xC{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 DC{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Q_{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new DC,this.map.set(n,r)),r.add(t)}get(t,n){const s=this.map.get(t);return s?s.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 X_(e,t,n){const r=e.previousIndex;if(null===r)return r;let s=0;return n&&r<n.length&&(s=n[r]),r+t+s}class eb{constructor(){}supports(t){return t instanceof Map||kp(t)}create(){return new TC}}class TC{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||kp(t)))throw new rt(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,s)=>{if(n&&n.key===s)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const d=this._getOrCreateRecordForKey(s,r);n=this._insertBeforeOrAppend(n,d)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const s=this._records.get(t);this._maybeAddToChanges(s,n);const d=s._prev,f=s._next;return d&&(d._next=f),f&&(f._prev=d),s._next=null,s._prev=null,s}const r=new EC(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class EC{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 tb(){return new Rp([new J_])}let Rp=(()=>{class e{static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:tb});constructor(n){this.factories=n}static create(n,r){if(null!=r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||tb()),deps:[[e,new Hi,new ga]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(null!=r)return r;throw new rt(901,!1)}}return e})();function nb(){return new Fp([new eb])}let Fp=(()=>{class e{static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:nb});constructor(n){this.factories=n}static create(n,r){if(r){const s=r.factories.slice();n=n.concat(s)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||nb()),deps:[[e,new Hi,new ga]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(r)return r;throw new rt(901,!1)}}return e})();function Nd(e,t,n,r,s=!1){for(;null!==n;){const d=t[n.index];null!==d&&r.push(Mn(d)),qn(d)&&ib(d,r);const f=n.type;if(8&f)Nd(e,t,n.child,r);else if(32&f){const m=mh(n,t);let g;for(;g=m();)r.push(g)}else if(16&f){const m=xh(t,n);if(Array.isArray(m))r.push(...m);else{const g=Aa(t[kn]);Nd(g[at],g,m,r,!0)}}n=s?n.projectionNext:n.next}return r}function ib(e,t){for(let n=Nn;n<e.length;n++){const r=e[n],s=r[at].firstChild;null!==s&&Nd(r[at],r,s,t)}e[Li]!==e[En]&&t.push(e[Li])}let ob=[];const OC={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{ic(e.lView)},consumerOnSignalRead(){this.lView[po]=this}};function Np(e){return e.ngOriginalError}class Ls{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Np(t);for(;n&&Np(n);)n=Np(n);return n||null}}const sb=new yt("",{providedIn:"root",factory:()=>tn(Ls).handleError.bind(void 0)}),cb=new yt("",{providedIn:"root",factory:()=>!1}),Jt={};function hb(e){fb(ln(),Ze(),oi()+e,!1)}function fb(e,t,n,r){if(!r)if(3==(3&t[It])){const d=e.preOrderCheckHooks;null!==d&&dc(t,d,n)}else{const d=e.preOrderHooks;null!==d&&da(t,d,0,n)}Br(n)}function Kc(e,t=Re.Default){const n=Ze();return null===n?$n(e,t):Du(Cn(),n,dt(e),t)}function mb(){throw new Error("invalid")}function Hh(e,t,n,r,s,d,f,m,g,I,j){const oe=t.blueprint.slice();return oe[En]=s,oe[It]=204|r,(null!==I||e&&2048&e[It])&&(oe[It]|=2048),El(oe),oe[P]=oe[Or]=e,oe[ot]=n,oe[Sn]=f||e&&e[Sn],oe[Lt]=m||e&&e[Lt],oe[Ft]=g||e&&e[Ft]||null,oe[x]=d,oe[Pr]=function Hm(){return $m++}(),oe[ee]=j,oe[Qa]=I,oe[kn]=2==t.type?e[kn]:oe,oe}function Zc(e,t,n,r,s){let d=e.data[t];if(null===d)d=function Lp(e,t,n,r,s){const d=zf(),f=ra(),g=e.data[t]=function zC(e,t,n,r,s,d){let f=t?t.injectorIndex:-1,m=0;return ur()&&(m|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:f,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:m,providerIndexes:0,value:s,attrs:d,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev: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,f?d:d&&d.parent,n,t,r,s);return null===e.firstChild&&(e.firstChild=g),null!==d&&(f?null==d.child&&null!==g.parent&&(d.child=g):null===d.next&&(d.next=g,g.prev=d)),g}(e,t,n,r,s),function hu(){return Ut.lFrame.inI18n}()&&(d.flags|=32);else if(64&d.type){d.type=n,d.value=r,d.attrs=s;const f=function sc(){const e=Ut.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();d.injectorIndex=null===f?-1:f.injectorIndex}return Ko(d,!0),d}function Ld(e,t,n,r){if(0===n)return-1;const s=t.length;for(let d=0;d<n;d++)t.push(r),e.blueprint.push(r),e.data.push(null);return s}function pb(e,t,n,r,s){const d=oi(),f=2&r;try{Br(-1),f&&t.length>Bt&&fb(e,t,Bt,!1),ni(f?2:0,s),n(r,s)}finally{Br(d),ni(f?3:1,s)}}function Bp(e,t,n){if(Xs(t)){const r=y(null);try{const d=t.directiveEnd;for(let f=t.directiveStart;f<d;f++){const m=e.data[f];m.contentQueries&&m.contentQueries(1,n[f],f)}}finally{y(r)}}}function Vp(e,t,n){Ao()&&(function JC(e,t,n,r){const s=n.directiveStart,d=n.directiveEnd;dr(n)&&function ox(e,t,n){const r=xi(t,e),s=gb(n);let f=16;n.signals?f=4096:n.onPush&&(f=64);const m=jh(e,Hh(e,s,null,f,r,t,null,e[Sn].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=m}(t,n,e.data[s+n.componentOffset]),e.firstCreatePass||fc(n,t),wi(r,t);const f=n.initialInputs;for(let m=s;m<d;m++){const g=e.data[m],I=$r(t,e,m,n);wi(I,t),null!==f&&rx(0,m-s,I,g,0,f),Qi(g)&&(Bi(n.index,t)[ot]=$r(t,e,m,n))}}(e,t,n,xi(n,t)),64==(64&n.flags)&&wb(e,t,n))}function $p(e,t,n=xi){const r=t.localNames;if(null!==r){let s=t.index+1;for(let d=0;d<r.length;d+=2){const f=r[d+1],m=-1===f?n(t,e):e[f];e[s++]=m}}}function gb(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Hp(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Hp(e,t,n,r,s,d,f,m,g,I,j){const oe=Bt+r,be=oe+s,xe=function BC(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Jt);return n}(oe,be),Ue="function"==typeof I?I():I;return xe[at]={type:e,blueprint:xe,template:n,queries:null,viewQuery:m,declTNode:t,data:xe.slice().fill(null,oe),bindingStartIndex:oe,expandoStartIndex:be,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 d?d():d,pipeRegistry:"function"==typeof f?f():f,firstChild:null,schemas:g,consts:Ue,incompleteFirstPass:!1,ssrId:j}}let _b=e=>null;function bb(e,t,n,r){for(let s in e)if(e.hasOwnProperty(s)){n=null===n?{}:n;const d=e[s];null===r?vb(n,t,s,d):r.hasOwnProperty(s)&&vb(n,t,r[s],d)}return n}function vb(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function vo(e,t,n,r,s,d,f,m){const g=xi(t,n);let j,I=t.inputs;!m&&null!=I&&(j=I[r])?(Wp(e,n,j,r,s),dr(t)&&function YC(e,t){const n=Bi(t,e);16&n[It]||(n[It]|=64)}(n,t.index)):3&t.type&&(r=function WC(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),s=null!=f?f(s,t.value||"",r):s,d.setProperty(g,r,s))}function jp(e,t,n,r){if(Ao()){const s=null===r?null:{"":-1},d=function XC(e,t){const n=e.directiveRegistry;let r=null,s=null;if(n)for(let d=0;d<n.length;d++){const f=n[d];if(sr(t,f.selectors,!1))if(r||(r=[]),Qi(f))if(null!==f.findHostDirectiveDefs){const m=[];s=s||new Map,f.findHostDirectiveDefs(f,m,s),r.unshift(...m,f),Up(e,t,m.length)}else r.unshift(f),Up(e,t,0);else s=s||new Map,f.findHostDirectiveDefs?.(f,r,s),r.push(f)}return null===r?null:[r,s]}(e,n);let f,m;null===d?f=m=null:[f,m]=d,null!==f&&yb(e,t,n,f,s,m),s&&function ex(e,t,n){if(t){const r=e.localNames=[];for(let s=0;s<t.length;s+=2){const d=n[t[s+1]];if(null==d)throw new rt(-301,!1);r.push(t[s],d)}}}(n,r,s)}n.mergedAttrs=Pn(n.mergedAttrs,n.attrs)}function yb(e,t,n,r,s,d){for(let I=0;I<r.length;I++)zl(fc(n,t),e,r[I].type);!function nx(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let I=0;I<r.length;I++){const j=r[I];j.providersResolver&&j.providersResolver(j)}let f=!1,m=!1,g=Ld(e,t,r.length,null);for(let I=0;I<r.length;I++){const j=r[I];n.mergedAttrs=Pn(n.mergedAttrs,j.hostAttrs),ix(e,n,t,g,j),tx(g,j,s),null!==j.contentQueries&&(n.flags|=4),(null!==j.hostBindings||null!==j.hostAttrs||0!==j.hostVars)&&(n.flags|=64);const oe=j.type.prototype;!f&&(oe.ngOnChanges||oe.ngOnInit||oe.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),f=!0),!m&&(oe.ngOnChanges||oe.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),m=!0),g++}!function GC(e,t,n){const s=t.directiveEnd,d=e.data,f=t.attrs,m=[];let g=null,I=null;for(let j=t.directiveStart;j<s;j++){const oe=d[j],be=n?n.get(oe):null,Ue=be?be.outputs:null;g=bb(oe.inputs,j,g,be?be.inputs:null),I=bb(oe.outputs,j,I,Ue);const nt=null===g||null===f||Ks(t)?null:sx(g,j,f);m.push(nt)}null!==g&&(g.hasOwnProperty("class")&&(t.flags|=8),g.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=m,t.inputs=g,t.outputs=I}(e,n,d)}function wb(e,t,n){const r=n.directiveStart,s=n.directiveEnd,d=n.index,f=function Kf(){return Ut.lFrame.currentDirectiveIndex}();try{Br(d);for(let m=r;m<s;m++){const g=e.data[m],I=t[m];Rl(m),(null!==g.hostBindings||0!==g.hostVars||null!==g.hostAttrs)&&QC(g,I)}}finally{Br(-1),Rl(f)}}function QC(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Up(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function tx(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Qi(t)&&(n[""]=e)}}function ix(e,t,n,r,s){e.data[r]=s;const d=s.factory||(s.factory=hn(s.type)),f=new ua(d,Qi(s),Kc);e.blueprint[r]=f,n[r]=f,function ZC(e,t,n,r,s){const d=s.hostBindings;if(d){let f=e.hostBindingOpCodes;null===f&&(f=e.hostBindingOpCodes=[]);const m=~t.index;(function qC(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(f)!=m&&f.push(m),f.push(n,r,d)}}(e,t,r,Ld(e,n,s.hostVars,Jt),s)}function wr(e,t,n,r,s,d){const f=xi(e,t);!function zp(e,t,n,r,s,d,f){if(null==d)e.removeAttribute(t,s,n);else{const m=null==f?Et(d):f(d,r||"",s);e.setAttribute(t,s,m,n)}}(t[Lt],f,d,e.value,n,r,s)}function rx(e,t,n,r,s,d){const f=d[t];if(null!==f)for(let m=0;m<f.length;)Cb(r,n,f[m++],f[m++],f[m++])}function Cb(e,t,n,r,s){const d=y(null);try{const f=e.inputTransforms;null!==f&&f.hasOwnProperty(r)&&(s=f[r].call(t,s)),null!==e.setInput?e.setInput(t,s,n,r):t[r]=s}finally{y(d)}}function sx(e,t,n){let r=null,s=0;for(;s<n.length;){const d=n[s];if(0!==d)if(5!==d){if("number"==typeof d)break;if(e.hasOwnProperty(d)){null===r&&(r=[]);const f=e[d];for(let m=0;m<f.length;m+=2)if(f[m]===t){r.push(d,f[m+1],n[s+1]);break}}s+=2}else s+=2;else s+=4}return r}function xb(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Db(e,t){const n=e.contentQueries;if(null!==n){const r=y(null);try{for(let s=0;s<n.length;s+=2){const f=n[s+1];if(-1!==f){const m=e.data[f];Nl(n[s]),m.contentQueries(2,t[f],f)}}}finally{y(r)}}}function jh(e,t){return e[Ji]?e[Ja][L]=t:e[Ji]=t,e[Ja]=t,t}function Gp(e,t,n){Nl(0);const r=y(null);try{t(e,n)}finally{y(r)}}function Tb(e){return e[we]||(e[we]=[])}function Eb(e){return e.cleanup||(e.cleanup=[])}function Mb(e,t,n){return(null===e||Qi(e))&&(n=function ia(e){for(;Array.isArray(e);){if("object"==typeof e[ds])return e;e=e[En]}return null}(n[t.index])),n[Lt]}function Uh(e,t){const n=e[Ft],r=n?n.get(Ls,null):null;r&&r.handleError(t)}function Wp(e,t,n,r,s){for(let d=0;d<n.length;){const f=n[d++],m=n[d++];Cb(e.data[f],t[f],r,m,s)}}function lx(e,t,n,r){const s=t[It];if(256==(256&s))return;t[Sn].inlineEffectRunner?.flush(),ps(t);let f=null,m=null;(function dx(e){return 2!==e.type})(e)&&(m=function SC(e){return e[po]??function AC(e){const t=ob.pop()??Object.create(OC);return t.lView=e,t}(e)}(t),f=function J(e){return e&&(e.nextProducerIndex=0),y(e)}(m));try{El(t),function Gf(e){return Ut.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&pb(e,t,n,2,r);const g=3==(3&s);if(g){const oe=e.preOrderCheckHooks;null!==oe&&dc(t,oe,null)}else{const oe=e.preOrderHooks;null!==oe&&da(t,oe,0,null),gu(t,0)}if(function ux(e){for(let t=Jm(e);null!==t;t=Qm(t)){if(!(t[It]&lr.HasTransplantedViews))continue;const n=t[Fr];for(let r=0;r<n.length;r++){Ml(n[r])}}}(t),Sb(t,0),null!==e.contentQueries&&Db(e,t),g){const oe=e.contentCheckHooks;null!==oe&&dc(t,oe)}else{const oe=e.contentHooks;null!==oe&&da(t,oe,1),gu(t,1)}!function LC(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const s=n[r];if(s<0)Br(~s);else{const d=s,f=n[++r],m=n[++r];Yf(f,d),m(2,t[d])}}}finally{Br(-1)}}(e,t);const I=e.components;null!==I&&Ib(t,I,0);const j=e.viewQuery;if(null!==j&&Gp(2,j,r),g){const oe=e.viewCheckHooks;null!==oe&&dc(t,oe)}else{const oe=e.viewHooks;null!==oe&&da(t,oe,2),gu(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[kr]){for(const oe of t[kr])oe();t[kr]=null}t[It]&=-73}catch(g){throw ic(t),g}finally{null!==m&&(function ce(e,t){if(y(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Oe(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)Se(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(m,f),function IC(e){e.lView[po]!==e&&(e.lView=null,ob.push(e))}(m)),gs()}}function Sb(e,t){for(let n=Jm(e);null!==n;n=Qm(n)){n[It]&=~lr.HasChildViewsToRefresh;for(let r=Nn;r<n.length;r++)Ab(n[r],t)}}function hx(e,t,n){Ab(Bi(t,e),n)}function Ab(e,t){_o(e)&&Kp(e,t)}function Kp(e,t){const r=e[at],s=e[It],d=e[po];let f=!!(0===t&&16&s);if(f||=!!(64&s&&0===t),f||=!!(1024&s),f||=!(!d?.dirty||!Fe(d)),d&&(d.dirty=!1),e[It]&=-9217,f)lx(r,e,r.template,e[ot]);else if(8192&s){Sb(e,1);const m=r.components;null!==m&&Ib(e,m,1)}}function Ib(e,t,n){for(let r=0;r<t.length;r++)hx(e,t[r],n)}function Bd(e){for(e[Sn].changeDetectionScheduler?.notify();e;){e[It]|=64;const t=Aa(e);if(Xa(e)&&!t)return e;e=t}return null}class Vd{get rootNodes(){const t=this._lView,n=t[at];return Nd(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[ot]}set context(t){this._lView[ot]=t}get destroyed(){return 256==(256&this._lView[It])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[P];if(qn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Pa(t,r),Ds(n,r))}this._attachedToViewContainer=!1}Lc(this._lView[at],this._lView)}onDestroy(t){!function fs(e,t){if(256==(256&e[It]))throw new rt(911,!1);null===e[_i]&&(e[_i]=[]),e[_i].push(t)}(this._lView,t)}markForCheck(){Bd(this._cdRefInjectingView||this._lView)}detach(){this._lView[It]&=-129}reattach(){nc(this._lView),this._lView[It]|=128}detectChanges(){this._lView[It]|=1024,function Yp(e,t=!0){const n=e[Sn],r=n.rendererFactory,s=n.afterRenderEventManager;r.begin?.(),s?.begin();try{!function cx(e){Kp(e,0);let t=0;for(;tc(e);){if(100===t)throw new rt(103,!1);t++,Kp(e,1)}}(e)}catch(f){throw t&&Uh(e,f),f}finally{r.end?.(),n.inlineEffectRunner?.flush(),s?.end()}}(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new rt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Oa(e,t){Fa(e,t,t[Lt],2,null,null)}(this._lView[at],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new rt(902,!1);this._appRef=t,nc(this._lView)}}let Ob=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=fx}return e})();function fx(e){return function mx(e,t,n){if(dr(e)&&!n){const r=Bi(e.index,t);return new Vd(r,r)}return 47&e.type?new Vd(t[kn],t):null}(Cn(),Ze(),16==(16&e))}const Pb=new Set;function Va(e){Pb.has(e)||(Pb.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function qp(e){return t=>{setTimeout(e,void 0,t)}}const Cr=class Dx extends mt.x{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let s=t,d=n||(()=>null),f=r;if(t&&"object"==typeof t){const g=t;s=g.next?.bind(g),d=g.error?.bind(g),f=g.complete?.bind(g)}this.__isAsync&&(d=qp(d),s&&(s=qp(s)),f&&(f=qp(f)));const m=super.subscribe({next:s,error:d,complete:f});return t instanceof Ae.w0&&t.add(m),m}};function kb(...e){}class ci{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Cr(!1),this.onMicrotaskEmpty=new Cr(!1),this.onStable=new Cr(!1),this.onError=new Cr(!1),typeof Zone>"u")throw new rt(908,!1);Zone.assertZonePatched();const s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!r&&n,s.shouldCoalesceRunChangeDetection=r,s.lastRequestAnimationFrameId=-1,s.nativeRequestAnimationFrame=function Tx(){const e="function"==typeof $t.requestAnimationFrame;let t=$t[e?"requestAnimationFrame":"setTimeout"],n=$t[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const s=n[Zone.__symbol__("OriginalDelegate")];s&&(n=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Sx(e){const t=()=>{!function Mx(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call($t,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Qp(e),e.isCheckStableRunning=!0,Jp(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Qp(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,s,d,f,m)=>{if(function Ix(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(m))return n.invokeTask(s,d,f,m);try{return Rb(e),n.invokeTask(s,d,f,m)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Fb(e)}},onInvoke:(n,r,s,d,f,m,g)=>{try{return Rb(e),n.invoke(s,d,f,m,g)}finally{e.shouldCoalesceRunChangeDetection&&t(),Fb(e)}},onHasTask:(n,r,s,d)=>{n.hasTask(s,d),r===s&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,Qp(e),Jp(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(n,r,s,d)=>(n.handleError(s,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ci.isInAngularZone())throw new rt(909,!1)}static assertNotInAngularZone(){if(ci.isInAngularZone())throw new rt(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,s){const d=this._inner,f=d.scheduleEventTask("NgZoneEvent: "+s,t,Ex,kb,kb);try{return d.runTask(f,n,r)}finally{d.cancelTask(f)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Ex={};function Jp(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 Qp(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function Rb(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Fb(e){e._nesting--,Jp(e)}class Ax{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Cr,this.onMicrotaskEmpty=new Cr,this.onStable=new Cr,this.onError=new Cr}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,s){return t.apply(n,r)}}let zh=(()=>{class e{constructor(){this.renderDepth=0,this.handler=null,this.internalCallbacks=[]}begin(){this.handler?.validateBegin(),this.renderDepth++}end(){if(this.renderDepth--,0===this.renderDepth){for(const n of this.internalCallbacks)n();this.internalCallbacks.length=0,this.handler?.execute()}}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static#e=this.\u0275prov=Qt({token:e,providedIn:"root",factory:()=>new e})}return e})();function Rx(e,t){const n=Bi(t,e),r=n[at];!function Fx(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const s=n[En];null!==s&&null===n[ee]&&(n[ee]=Ap(s,n[Ft])),Xp(r,n,n[ot])}function Xp(e,t,n){ps(t);try{const r=e.viewQuery;null!==r&&Gp(1,r,n);const s=e.template;null!==s&&pb(e,t,s,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Db(e,t),e.staticViewQueries&&Gp(2,e.viewQuery,n);const d=e.components;null!==d&&function Nx(e,t){for(let n=0;n<t.length;n++)Rx(e,t[n])}(t,d)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[It]&=-5,gs()}}function Gh(e,t,n){let r=n?e.styles:null,s=n?e.classes:null,d=0;if(null!==t)for(let f=0;f<t.length;f++){const m=t[f];"number"==typeof m?d=m:1==d?s=it(s,m):2==d&&(r=it(r,m+": "+t[++f]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=s:e.classesWithoutHost=s}class $b extends Rd{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Yt(t);return new $d(n,this.ngModule)}}function Hb(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Bx{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=or(r);const s=this.injector.get(t,Pp,r);return s!==Pp||n===Pp?s:this.parentInjector.get(t,n,r)}}class $d extends K_{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=Hb(t.inputs);if(null!==n)for(const s of r)n.hasOwnProperty(s.propName)&&(s.transform=n[s.propName]);return r}get outputs(){return Hb(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Go(e){return e.map(Za).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,s){let d=(s=s||this.ngModule)instanceof bi?s:s?.injector;d&&null!==this.componentDef.getStandaloneInjector&&(d=this.componentDef.getStandaloneInjector(d)||d);const f=d?new Bx(t,d):t,m=f.get(q_,null);if(null===m)throw new rt(407,!1);const oe={rendererFactory:m,sanitizer:f.get(gC,null),inlineEffectRunner:null,afterRenderEventManager:f.get(zh,null),changeDetectionScheduler:f.get(er,null)},be=m.createRenderer(null,this.componentDef),xe=this.componentDef.selectors[0][0]||"div",Ue=r?function VC(e,t,n,r){const d=r.get(cb,!1)||n===Mi.ShadowDom,f=e.selectRootElement(t,d);return function $C(e){_b(e)}(f),f}(be,r,this.componentDef.encapsulation,f):Ia(be,xe,function Lx(e){const t=e.toLowerCase();return"svg"===t?Xi:"math"===t?"math":null}(xe));let nt=512;this.componentDef.signals?nt|=4096:this.componentDef.onPush||(nt|=16);let ht=null;null!==Ue&&(ht=Ap(Ue,f,!0));const Tt=Hp(0,null,null,1,0,null,null,null,null,null,null),et=Hh(null,Tt,null,nt,null,null,oe,be,f,null,ht);let Kt,an;ps(et);try{const mn=this.componentDef;let Oi,kf=null;mn.findHostDirectiveDefs?(Oi=[],kf=new Map,mn.findHostDirectiveDefs(mn,Oi,kf),Oi.push(mn)):Oi=[mn];const NA=function $x(e,t){const n=e[at],r=Bt;return e[r]=t,Zc(n,r,2,"#host",null)}(et,Ue),LA=function Hx(e,t,n,r,s,d,f){const m=s[at];!function jx(e,t,n,r){for(const s of e)t.mergedAttrs=Pn(t.mergedAttrs,s.hostAttrs);null!==t.mergedAttrs&&(Gh(t,t.mergedAttrs,!0),null!==n&&Mh(r,n,t))}(r,e,t,f);let g=null;null!==t&&(g=Ap(t,s[Ft]));const I=d.rendererFactory.createRenderer(t,n);let j=16;n.signals?j=4096:n.onPush&&(j=64);const oe=Hh(s,gb(n),null,j,s[e.index],e,d,I,null,null,g);return m.firstCreatePass&&Up(m,e,r.length-1),jh(s,oe),s[e.index]=oe}(NA,Ue,mn,Oi,et,oe,be);an=So(Tt,Bt),Ue&&function zx(e,t,n,r){if(r)uo(e,n,["ng-version","17.0.8"]);else{const{attrs:s,classes:d}=function Ar(e){const t=[],n=[];let r=1,s=2;for(;r<e.length;){let d=e[r];if("string"==typeof d)2===s?""!==d&&t.push(d,e[++r]):8===s&&n.push(d);else{if(!Rn(s))break;s=d}r++}return{attrs:t,classes:n}}(t.selectors[0]);s&&uo(e,n,s),d&&d.length>0&&Eh(e,n,d.join(" "))}}(be,mn,Ue,r),void 0!==n&&function Gx(e,t,n){const r=e.projection=[];for(let s=0;s<t.length;s++){const d=n[s];r.push(null!=d?Array.from(d):null)}}(an,this.ngContentSelectors,n),Kt=function Ux(e,t,n,r,s,d){const f=Cn(),m=s[at],g=xi(f,s);yb(m,s,f,n,null,r);for(let j=0;j<n.length;j++)wi($r(s,m,f.directiveStart+j,f),s);wb(m,s,f),g&&wi(g,s);const I=$r(s,m,f.directiveStart+f.componentOffset,f);if(e[ot]=s[ot]=I,null!==d)for(const j of d)j(I,t);return Bp(m,f,e),I}(LA,mn,Oi,kf,et,[Wx]),Xp(Tt,et,null)}finally{gs()}return new Vx(this.componentType,Kt,Yc(an,et),et,an)}}class Vx extends lC{constructor(t,n,r,s,d){super(),this.location=r,this._rootLView=s,this._tNode=d,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new Vd(s,void 0,!1),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let s;if(null!==r&&(s=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const d=this._rootLView;Wp(d[at],d,s,t,n),this.previousInputValues.set(t,n),Bd(Bi(this._tNode.index,d))}}get injector(){return new Jn(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function Wx(){const e=Cn();Io(Ze()[at],e)}function eg(e){let t=function jb(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let s;if(Qi(e))s=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new rt(903,!1);s=t.\u0275dir}if(s){if(n){r.push(s);const f=e;f.inputs=Wh(e.inputs),f.inputTransforms=Wh(e.inputTransforms),f.declaredInputs=Wh(e.declaredInputs),f.outputs=Wh(e.outputs);const m=s.hostBindings;m&&qx(e,m);const g=s.viewQuery,I=s.contentQueries;if(g&&Kx(e,g),I&&Zx(e,I),Te(e.inputs,s.inputs),Te(e.declaredInputs,s.declaredInputs),Te(e.outputs,s.outputs),null!==s.inputTransforms&&(null===f.inputTransforms&&(f.inputTransforms={}),Te(f.inputTransforms,s.inputTransforms)),Qi(s)&&s.data.animation){const j=e.data;j.animation=(j.animation||[]).concat(s.data.animation)}}const d=s.features;if(d)for(let f=0;f<d.length;f++){const m=d[f];m&&m.ngInherit&&m(e),m===eg&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Yx(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const s=e[r];s.hostVars=t+=s.hostVars,s.hostAttrs=Pn(s.hostAttrs,n=Pn(n,s.hostAttrs))}}(r)}function Wh(e){return e===Fi?{}:e===rn?[]:e}function Kx(e,t){const n=e.viewQuery;e.viewQuery=n?(r,s)=>{t(r,s),n(r,s)}:t}function Zx(e,t){const n=e.contentQueries;e.contentQueries=n?(r,s,d)=>{t(r,s,d),n(r,s,d)}:t}function qx(e,t){const n=e.hostBindings;e.hostBindings=n?(r,s)=>{t(r,s),n(r,s)}:t}function Wb(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const s=t[r];Array.isArray(s)&&s[2]&&(n[r]=s[2])}e.inputTransforms=n}function xr(e,t,n){return e[t]=n}function Hd(e,t){return e[t]}function li(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Ha(e,t,n,r){const s=li(e,t,n);return li(e,t+1,r)||s}function tg(e,t,n,r){const s=Ze();return li(s,Vi(),t)&&(ln(),wr(xn(),s,e,t,n,r)),tg}function Kh(e,t){return e<<17|t<<2}function Bs(e){return e>>17&32767}function ng(e){return 2|e}function ja(e){return(131068&e)>>2}function ig(e,t){return-131069&e|t<<2}function og(e){return 1|e}function nv(e,t,n,r,s){const d=e[n+1],f=null===t;let m=r?Bs(d):ja(d),g=!1;for(;0!==m&&(!1===g||f);){const j=e[m+1];aD(e[m],t)&&(g=!0,e[m+1]=r?og(j):ng(j)),m=r?Bs(j):ja(j)}g&&(e[n+1]=r?ng(d):og(d))}function aD(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Zo(e,t)>=0}const mi={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function iv(e){return e.substring(mi.key,mi.keyEnd)}function ov(e,t){const n=mi.textEnd;return n===t?-1:(t=mi.keyEnd=function uD(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,mi.key=t,n),rl(e,t,n))}function rl(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function rg(e,t,n){const r=Ze();return li(r,Vi(),t)&&vo(ln(),xn(),r,e,t,r[Lt],n,!1),rg}function sg(e,t,n,r,s){const f=s?"class":"style";Wp(e,n,t.inputs[f],f,r)}function ag(e,t,n){return tr(e,t,n,!1),ag}function cg(e,t){return tr(e,t,null,!0),cg}function lv(e){!function nr(e,t,n,r){const s=ln(),d=to(2);s.firstUpdatePass&&uv(s,null,d,r);const f=Ze();if(n!==Jt&&li(f,d,n)){const m=s.data[oi()];if(pv(m,r)&&!dv(s,d)){let g=r?m.classesWithoutHost:m.stylesWithoutHost;null!==g&&(n=it(g,n||"")),sg(s,m,f,n,r)}else!function wD(e,t,n,r,s,d,f,m){s===Jt&&(s=rn);let g=0,I=0,j=0<s.length?s[0]:null,oe=0<d.length?d[0]:null;for(;null!==j||null!==oe;){const be=g<s.length?s[g+1]:void 0,xe=I<d.length?d[I+1]:void 0;let nt,Ue=null;j===oe?(g+=2,I+=2,be!==xe&&(Ue=oe,nt=xe)):null===oe||null!==j&&j<oe?(g+=2,Ue=j):(I+=2,Ue=oe,nt=xe),null!==Ue&&fv(e,t,n,r,Ue,nt,f,m),j=g<s.length?s[g]:null,oe=I<d.length?d[I]:null}}(s,m,f,f[Lt],f[d+1],f[d+1]=function vD(e,t,n){if(null==n||""===n)return rn;const r=[],s=Qo(n);if(Array.isArray(s))for(let d=0;d<s.length;d++)e(r,s[d],!0);else if("object"==typeof s)for(const d in s)s.hasOwnProperty(d)&&e(r,d,s[d]);else"string"==typeof s&&t(r,s);return r}(e,t,n),r,d)}}(yD,Tr,e,!0)}function Tr(e,t){for(let n=function lD(e){return function sv(e){mi.key=0,mi.keyEnd=0,mi.value=0,mi.valueEnd=0,mi.textEnd=e.length}(e),ov(e,rl(e,0,mi.textEnd))}(t);n>=0;n=ov(t,n))$i(e,iv(t),!0)}function tr(e,t,n,r){const s=Ze(),d=ln(),f=to(2);d.firstUpdatePass&&uv(d,e,f,r),t!==Jt&&li(s,f,t)&&fv(d,d.data[oi()],s,s[Lt],e,s[f+1]=function CD(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=$e(Qo(e)))),e}(t,n),r,f)}function dv(e,t){return t>=e.expandoStartIndex}function uv(e,t,n,r){const s=e.data;if(null===s[n+1]){const d=s[oi()],f=dv(e,n);pv(d,r)&&null===t&&!f&&(t=!1),t=function pD(e,t,n,r){const s=Fl(e);let d=r?t.residualClasses:t.residualStyles;if(null===s)0===(r?t.classBindings:t.styleBindings)&&(n=jd(n=lg(null,e,t,n,r),t.attrs,r),d=null);else{const f=t.directiveStylingLast;if(-1===f||e[f]!==s)if(n=lg(s,e,t,n,r),null===d){let g=function gD(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==ja(r))return e[Bs(r)]}(e,t,r);void 0!==g&&Array.isArray(g)&&(g=lg(null,e,t,g[1],r),g=jd(g,t.attrs,r),function _D(e,t,n,r){e[Bs(n?t.classBindings:t.styleBindings)]=r}(e,t,r,g))}else d=function bD(e,t,n){let r;const s=t.directiveEnd;for(let d=1+t.directiveStylingLast;d<s;d++)r=jd(r,e[d].hostAttrs,n);return jd(r,t.attrs,n)}(e,t,r)}return void 0!==d&&(r?t.residualClasses=d:t.residualStyles=d),n}(s,d,t,r),function rD(e,t,n,r,s,d){let f=d?t.classBindings:t.styleBindings,m=Bs(f),g=ja(f);e[r]=n;let j,I=!1;if(Array.isArray(n)?(j=n[1],(null===j||Zo(n,j)>0)&&(I=!0)):j=n,s)if(0!==g){const be=Bs(e[m+1]);e[r+1]=Kh(be,m),0!==be&&(e[be+1]=ig(e[be+1],r)),e[m+1]=function iD(e,t){return 131071&e|t<<17}(e[m+1],r)}else e[r+1]=Kh(m,0),0!==m&&(e[m+1]=ig(e[m+1],r)),m=r;else e[r+1]=Kh(g,0),0===m?m=r:e[g+1]=ig(e[g+1],r),g=r;I&&(e[r+1]=ng(e[r+1])),nv(e,j,r,!0),nv(e,j,r,!1),function sD(e,t,n,r,s){const d=s?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&Zo(d,t)>=0&&(n[r+1]=og(n[r+1]))}(t,j,e,r,d),f=Kh(m,g),d?t.classBindings=f:t.styleBindings=f}(s,d,t,n,f,r)}}function lg(e,t,n,r,s){let d=null;const f=n.directiveEnd;let m=n.directiveStylingLast;for(-1===m?m=n.directiveStart:m++;m<f&&(d=t[m],r=jd(r,d.hostAttrs,s),d!==e);)m++;return null!==e&&(n.directiveStylingLast=m),r}function jd(e,t,n){const r=n?1:2;let s=-1;if(null!==t)for(let d=0;d<t.length;d++){const f=t[d];"number"==typeof f?s=f:s===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),$i(e,f,!!n||t[++d]))}return void 0===e?null:e}function yD(e,t,n){const r=String(t);""!==r&&!r.includes(" ")&&$i(e,r,n)}function fv(e,t,n,r,s,d,f,m){if(!(3&t.type))return;const g=e.data,I=g[m+1],j=function oD(e){return 1==(1&e)}(I)?mv(g,t,n,s,ja(I),f):void 0;Zh(j)||(Zh(d)||function nD(e){return 2==(2&e)}(I)&&(d=mv(g,null,n,s,m,f)),function cp(e,t,n,r,s){if(t)s?e.addClass(n,r):e.removeClass(n,r);else{let d=-1===r.indexOf("-")?void 0:yd.DashCase;null==s?e.removeStyle(n,r,d):("string"==typeof s&&s.endsWith("!important")&&(s=s.slice(0,-10),d|=yd.Important),e.setStyle(n,r,s,d))}}(r,f,Mo(oi(),n),s,d))}function mv(e,t,n,r,s,d){const f=null===t;let m;for(;s>0;){const g=e[s],I=Array.isArray(g),j=I?g[1]:g,oe=null===j;let be=n[s+1];be===Jt&&(be=oe?rn:void 0);let xe=oe?fa(be,r):j===r?be:void 0;if(I&&!Zh(xe)&&(xe=fa(g,r)),Zh(xe)&&(m=xe,f))return m;const Ue=e[s+1];s=f?Bs(Ue):ja(Ue)}if(null!==t){let g=d?t.residualClasses:t.residualStyles;null!=g&&(m=fa(g,r))}return m}function Zh(e){return void 0!==e}function pv(e,t){return 0!=(e.flags&(t?8:16))}let wv=(e,t)=>null;function sl(e,t){return wv(e,t)}class eT{destroy(t){}updateValue(t,n){}swap(t,n){const r=Math.min(t,n),s=Math.max(t,n),d=this.detach(s);if(s-r>1){const f=this.detach(r);this.attach(r,d),this.attach(s,f)}else this.attach(r,d)}move(t,n){this.attach(n,this.detach(t))}}function pg(e,t,n,r,s){return e===n&&Object.is(t,r)?1:Object.is(s(e,t),s(n,r))?-1:0}function gg(e,t,n,r){return!(void 0===t||!t.has(r)||(e.attach(n,t.get(r)),t.delete(r),0))}function Cv(e,t,n,r,s){if(gg(e,t,r,n(r,s)))e.updateValue(r,s);else{const d=e.create(r,s);e.attach(r,d)}}function xv(e,t,n,r){const s=new Set;for(let d=t;d<=n;d++)s.add(r(d,e.at(d)));return s}class Dv{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const n=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const s=this._vMap;for(;s.has(r);)r=s.get(r);s.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),void 0!==this._vMap){const s=this._vMap;for(;s.has(r);)r=s.get(r),t(r,n)}}}function Yd(e,t,n,r){const s=t.tView,m=Hh(e,s,n,4096&e[It]?4096:16,null,t,null,null,null,r?.injector??null,r?.dehydratedView??null);m[ar]=e[t.index];const I=e[mo];return null!==I&&(m[mo]=I.createEmbeddedView(s)),Xp(s,m,n),m}function Tv(e,t){const n=Nn+t;if(n<e.length)return e[n]}function al(e,t){return!t||null===t.firstChild||bd(e)}function Kd(e,t,n,r=!0){const s=t[at];if(function gh(e,t,n,r){const s=Nn+r,d=n.length;r>0&&(n[s-1][L]=t),r<d-Nn?(t[L]=n[s],mm(n,Nn+r,t)):(n.push(t),t[L]=null),t[P]=n;const f=t[ar];null!==f&&n!==f&&function ft(e,t){const n=e[Fr];t[kn]!==t[P][P][kn]&&(e[It]|=lr.HasTransplantedViews),null===n?e[Fr]=[t]:n.push(t)}(f,t);const m=t[mo];null!==m&&m.insertView(e),nc(t),t[It]|=128}(s,t,e,n),r){const f=Ad(n,e),m=t[Lt],g=Vc(m,e[Li]);null!==g&&function ep(e,t,n,r,s,d){r[En]=s,r[x]=t,Fa(e,r,n,1,s,d)}(s,e[x],m,t,g,f)}const d=t[ee];null!==d&&null!==d.firstChild&&(d.firstChild=null)}function _g(e,t){const n=Pa(e,t);return void 0!==n&&Lc(n[at],n),n}let ef=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=nT}return e})();function nT(){return Sv(Cn(),Ze())}const iT=ef,Ev=class extends iT{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Yc(this._hostTNode,this._hostLView)}get injector(){return new Jn(this._hostTNode,this._hostLView)}get parentInjector(){const t=mc(this._hostTNode,this._hostLView);if($l(t)){const n=hc(t,this._hostLView),r=Vr(t);return new Jn(n[at].data[r+8],n)}return new Jn(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Mv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Nn}createEmbeddedView(t,n,r){let s,d;"number"==typeof r?s=r:null!=r&&(s=r.index,d=r.injector);const f=sl(this._lContainer,t.ssrId),m=t.createEmbeddedViewImpl(n||{},d,f);return this.insertImpl(m,s,al(this._hostTNode,f)),m}createComponent(t,n,r,s,d){const f=t&&!function gc(e){return"function"==typeof e}(t);let m;if(f)m=n;else{const Ue=n||{};m=Ue.index,r=Ue.injector,s=Ue.projectableNodes,d=Ue.environmentInjector||Ue.ngModuleRef}const g=f?t:new $d(Yt(t)),I=r||this.parentInjector;if(!d&&null==g.ngModule){const nt=(f?I:this.parentInjector).get(bi,null);nt&&(d=nt)}const j=Yt(g.componentType??{}),oe=sl(this._lContainer,j?.id??null),xe=g.create(I,s,oe?.firstChild??null,d);return this.insertImpl(xe.hostView,m,al(this._hostTNode,oe)),xe}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const s=t._lView;if(function Tl(e){return qn(e[P])}(s)){const m=this.indexOf(t);if(-1!==m)this.detach(m);else{const g=s[P],I=new Ev(g,g[x],g[P]);I.detach(I.indexOf(t))}}const d=this._adjustIndex(n),f=this._lContainer;return Kd(f,s,d,r),t.attachToViewContainerRef(),mm(bg(f),d,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Mv(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Pa(this._lContainer,n);r&&(Ds(bg(this._lContainer),n),Lc(r[at],r))}detach(t){const n=this._adjustIndex(t,-1),r=Pa(this._lContainer,n);return r&&null!=Ds(bg(this._lContainer),n)?new Vd(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function Mv(e){return e[8]}function bg(e){return e[8]||(e[8]=[])}function Sv(e,t){let n;const r=t[e.index];return qn(r)?n=r:(n=xb(r,t,null,e),t[e.index]=n,jh(t,n)),Av(n,t,e,r),new Ev(n,e,t)}let Av=function Ov(e,t,n,r){if(e[Li])return;let s;s=8&n.type?Mn(r):function oT(e,t){const n=e[Lt],r=n.createComment(""),s=xi(t,e);return ko(n,Vc(n,s),r,function rp(e,t){return e.nextSibling(t)}(n,s),!1),r}(t,n),e[Li]=s},vg=(e,t,n)=>!1;function cl(e,t,n,r,s,d,f,m){const g=Ze(),I=ln(),j=e+Bt,oe=I.firstCreatePass?function cT(e,t,n,r,s,d,f,m,g){const I=t.consts,j=Zc(t,e,4,f||null,eo(I,m));jp(t,n,j,eo(I,g)),Io(t,j);const oe=j.tView=Hp(2,j,r,s,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,I,null);return null!==t.queries&&(t.queries.template(t,j),oe.queries=t.queries.embeddedTView(j)),j}(j,I,g,t,n,r,s,d,f):I.data[j];Ko(oe,!1);const be=Pv(I,g,oe,e);lc()&&$c(I,g,be,oe),wi(be,g);const xe=xb(be,g,be,oe);return g[j]=xe,jh(g,xe),function Iv(e,t,n){return vg(e,t,n)}(xe,oe,g),ea(oe)&&Vp(I,g,oe),null!=f&&$p(g,oe,m),cl}let Pv=function kv(e,t,n,r){return fr(!0),t[Lt].createComment("")};function Rv(e,t,n){Va("NgControlFlow");const r=Ze(),s=Vi(),d=yg(r,Bt+e);if(li(r,s,t)){const m=y(null);try{if(_g(d,0),-1!==t){const g=wg(r[at],Bt+t),I=sl(d,g.tView.ssrId);Kd(d,Yd(r,g,n,{dehydratedView:I}),0,al(g,I))}}finally{y(m)}}else{const m=Tv(d,0);void 0!==m&&(m[ot]=n)}}class uT{constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-Nn}}function Fv(e,t){return t}class fT{constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}}function Nv(e,t,n,r,s,d,f,m,g,I,j){Va("NgControlFlow");const oe=void 0!==g,be=Ze(),xe=m?f.bind(be[kn][ot]):f,Ue=new fT(oe,xe);be[Bt+e]=Ue,cl(e+1,t,n,r,s,d),oe&&cl(e+2,g,I,j)}class mT extends eT{constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-Nn}at(t){return this.getLView(t)[ot].$implicit}attach(t,n){const r=n[ee];this.needsIndexUpdate||=t!==this.length,Kd(this.lContainer,n,t,al(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,function pT(e,t){return Pa(e,t)}(this.lContainer,t)}create(t,n){const r=sl(this.lContainer,this.templateTNode.tView.ssrId);return Yd(this.hostLView,this.templateTNode,new uT(this.lContainer,n,t),{dehydratedView:r})}destroy(t){Lc(t[at],t)}updateValue(t,n){this.getLView(t)[ot].$implicit=n}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t<this.length;t++)this.getLView(t)[ot].$index=t}getLView(t){return function gT(e,t){return Tv(e,t)}(this.lContainer,t)}}function Lv(e){const t=y(null),n=oi();try{const r=Ze(),s=r[at],d=r[n];if(void 0===d.liveCollection){const m=n+1,g=yg(r,m),I=wg(s,m);d.liveCollection=new mT(g,r,I)}else d.liveCollection.reset();const f=d.liveCollection;if(function tT(e,t,n){let r,s,d=0,f=e.length-1;if(Array.isArray(t)){let m=t.length-1;for(;d<=f&&d<=m;){const g=e.at(d),I=t[d],j=pg(d,g,d,I,n);if(0!==j){j<0&&e.updateValue(d,I),d++;continue}const oe=e.at(f),be=t[m],xe=pg(f,oe,m,be,n);if(0!==xe){xe<0&&e.updateValue(f,be),f--,m--;continue}const Ue=n(d,g),nt=n(f,oe),ht=n(d,I);if(Object.is(ht,nt)){const Tt=n(m,be);Object.is(Tt,Ue)?(e.swap(d,f),e.updateValue(f,be),m--,f--):e.move(f,d),e.updateValue(d,I),d++}else if(r??=new Dv,s??=xv(e,d,f,n),gg(e,r,d,ht))e.updateValue(d,I),d++,f++;else if(s.has(ht))r.set(Ue,e.detach(d)),f--;else{const Tt=e.create(d,t[d]);e.attach(d,Tt),d++,f++}}for(;d<=m;)Cv(e,r,n,d,t[d]),d++}else if(null!=t){const m=t[Symbol.iterator]();let g=m.next();for(;!g.done&&d<=f;){const I=e.at(d),j=g.value,oe=pg(d,I,d,j,n);if(0!==oe)oe<0&&e.updateValue(d,j),d++,g=m.next();else{r??=new Dv,s??=xv(e,d,f,n);const be=n(d,j);if(gg(e,r,d,be))e.updateValue(d,j),d++,f++,g=m.next();else if(s.has(be)){const xe=n(d,I);r.set(xe,e.detach(d)),f--}else e.attach(d,e.create(d,j)),d++,f++,g=m.next()}}for(;!g.done;)Cv(e,r,n,e.length,g.value),g=m.next()}for(;d<=f;)e.destroy(e.detach(f--));r?.forEach(m=>{e.destroy(m)})}(f,e,d.trackByFn),f.updateIndexes(),d.hasEmptyBlock){const m=Vi(),g=0===f.length;if(li(r,m,g)){const I=n+2,j=yg(r,I);if(g){const oe=wg(s,I),be=sl(j,oe.tView.ssrId);Kd(j,Yd(r,oe,void 0,{dehydratedView:be}),0,al(oe,be))}else _g(j,0)}}}finally{y(t)}}function yg(e,t){return e[t]}function wg(e,t){return So(e,t)}function cf(e,t,n,r){const s=Ze(),d=ln(),f=Bt+e,m=s[Lt],g=d.firstCreatePass?function YT(e,t,n,r,s,d){const f=t.consts,g=Zc(t,e,2,r,eo(f,s));return jp(t,n,g,eo(f,d)),null!==g.attrs&&Gh(g,g.attrs,!1),null!==g.mergedAttrs&&Gh(g,g.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,g),g}(f,d,s,t,n,r):d.data[f],I=sy(d,s,g,m,t,e);s[f]=I;const j=ea(g);return Ko(g,!0),Mh(m,I,g),32!=(32&g.flags)&&lc()&&$c(d,s,I,g),0===function $f(){return Ut.lFrame.elementDepthCount}()&&wi(I,s),function oa(){Ut.lFrame.elementDepthCount++}(),j&&(Vp(d,s,g),Bp(d,g,s)),null!==r&&$p(s,g),cf}function lf(){let e=Cn();ra()?Pl():(e=e.parent,Ko(e,!1));const t=e;(function Il(e){return Ut.skipHydrationRootTNode===e})(t)&&function Hf(){Ut.skipHydrationRootTNode=null}(),function oc(){Ut.lFrame.elementDepthCount--}();const n=ln();return n.firstCreatePass&&(Io(n,e),Xs(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function Xf(e){return 0!=(8&e.flags)}(t)&&sg(n,t,Ze(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function em(e){return 0!=(16&e.flags)}(t)&&sg(n,t,Ze(),t.stylesWithoutHost,!1),lf}function Ig(e,t,n,r){return cf(e,t,n,r),lf(),Ig}let sy=(e,t,n,r,s,d)=>(fr(!0),Ia(r,s,function qf(){return Ut.lFrame.currentNamespace}()));function df(e,t,n){const r=Ze(),s=ln(),d=e+Bt,f=s.firstCreatePass?function qT(e,t,n,r,s){const d=t.consts,f=eo(d,r),m=Zc(t,e,8,"ng-container",f);return null!==f&&Gh(m,f,!0),jp(t,n,m,eo(d,s)),null!==t.queries&&t.queries.elementStart(t,m),m}(d,s,r,t,n):s.data[d];Ko(f,!0);const m=ay(s,r,f,e);return r[d]=m,lc()&&$c(s,r,m,f),wi(m,r),ea(f)&&(Vp(s,r,f),Bp(s,f,r)),null!=n&&$p(r,f),df}function uf(){let e=Cn();const t=ln();return ra()?Pl():(e=e.parent,Ko(e,!1)),t.firstCreatePass&&(Io(t,e),Xs(e)&&t.queries.elementEnd(e)),uf}function Og(e,t,n){return df(e,t,n),uf(),Og}let ay=(e,t,n,r)=>(fr(!0),Fc(t[Lt],""));function cy(){return Ze()}function Pg(e,t,n){const r=Ze();return li(r,Vi(),t)&&vo(ln(),xn(),r,e,t,r[Lt],n,!0),Pg}function kg(e,t,n){const r=Ze();if(li(r,Vi(),t)){const d=ln(),f=xn();vo(d,f,r,e,t,Mb(Fl(d.data),f,r),n,!0)}return kg}const za=void 0;var eE=["en",[["a","p"],["AM","PM"],za],[["AM","PM"],za,za],[["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"]],za,[["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"]],za,[["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}",za,"{1} 'at' {0}",za],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function XT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let pl={};function Rg(e){const t=function tE(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=dy(t);if(n)return n;const r=t.split("-")[0];if(n=dy(r),n)return n;if("en"===r)return eE;throw new rt(701,!1)}function ly(e){return Rg(e)[gl.PluralCase]}function dy(e){return e in pl||(pl[e]=$t.ng&&$t.ng.common&&$t.ng.common.locales&&$t.ng.common.locales[e]),pl[e]}var gl=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(gl||{});const _l="en-US";let uy=_l;function Lg(e){return!!e&&"function"==typeof e.then}function Ny(e){return!!e&&"function"==typeof e.subscribe}function Bg(e,t,n,r){const s=Ze(),d=ln(),f=Cn();return function By(e,t,n,r,s,d,f){const m=ea(r),I=e.firstCreatePass&&Eb(e),j=t[ot],oe=Tb(t);let be=!0;if(3&r.type||f){const nt=xi(r,t),ht=f?f(nt):nt,Tt=oe.length,et=f?an=>f(Mn(an[r.index])):r.index;let Kt=null;if(!f&&m&&(Kt=function ZE(e,t,n,r){const s=e.cleanup;if(null!=s)for(let d=0;d<s.length-1;d+=2){const f=s[d];if(f===n&&s[d+1]===r){const m=t[we],g=s[d+2];return m.length>g?m[g]:null}"string"==typeof f&&(d+=2)}return null}(e,t,s,r.index)),null!==Kt)(Kt.__ngLastListenerFn__||Kt).__ngNextListenerFn__=d,Kt.__ngLastListenerFn__=d,be=!1;else{d=$y(r,t,j,d,!1);const an=n.listen(ht,s,d);oe.push(d,an),I&&I.push(s,et,Tt,Tt+1)}}else d=$y(r,t,j,d,!1);const xe=r.outputs;let Ue;if(be&&null!==xe&&(Ue=xe[s])){const nt=Ue.length;if(nt)for(let ht=0;ht<nt;ht+=2){const mn=t[Ue[ht]][Ue[ht+1]].subscribe(d),Oi=oe.length;oe.push(d,mn),I&&I.push(s,r.index,Oi,-(Oi+1))}}}(d,s,s[Lt],f,e,t,r),Bg}function Vy(e,t,n,r){try{return ni(6,t,n),!1!==n(r)}catch(s){return Uh(e,s),!1}finally{ni(7,t,n)}}function $y(e,t,n,r,s){return function d(f){if(f===Function)return r;Bd(e.componentOffset>-1?Bi(e.index,t):t);let g=Vy(t,n,r,f),I=d.__ngNextListenerFn__;for(;I;)g=Vy(t,n,I,f)&&g,I=I.__ngNextListenerFn__;return s&&!1===g&&f.preventDefault(),g}}function Hy(e=1){return function x_(e){return(Ut.lFrame.contextLView=function Sl(e,t){for(;e>0;)t=t[Or],e--;return t}(e,Ut.lFrame.contextLView))[ot]}(e)}function qE(e,t){let n=null;const r=function Zs(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let s=0;s<t.length;s++){const d=t[s];if("*"!==d){if(null===r?sr(e,d,!0):Ka(r,d))return s}else n=s}return n}function jy(e){const t=Ze()[kn][x];if(!t.projection){const r=t.projection=zr(e?e.length:1,null),s=r.slice();let d=t.child;for(;null!==d;){const f=e?qE(d,e):0;null!==f&&(s[f]?s[f].projectionNext=d:r[f]=d,s[f]=d),d=d.next}}}function Uy(e,t=0,n){const r=Ze(),s=ln(),d=Zc(s,Bt+e,16,null,n||null);null===d.projection&&(d.projection=t),Pl(),(!r[ee]||ur())&&32!=(32&d.flags)&&function sp(e,t,n){Th(t[Lt],0,t,n,Bc(e,n,t),vh(n.parent||t[x],n,t))}(s,r,d)}function Xy(e){return Yo(function ac(){return Ut.lFrame.contextLView}(),Bt+e)}function d0(e,t=""){const n=Ze(),r=ln(),s=e+Bt,d=r.firstCreatePass?Zc(r,s,1,t,null):r.data[s],f=u0(r,n,d,t,e);n[s]=f,lc()&&$c(r,n,f,d),Ko(d,!1)}let u0=(e,t,n,r,s)=>(fr(!0),function Rc(e,t){return e.createText(t)}(t[Lt],r));function $g(e){return gf("",e,""),$g}function gf(e,t,n){const r=Ze(),s=function Jc(e,t,n,r){return li(e,Vi(),n)?t+Et(n)+r:Jt}(r,e,t,n);return s!==Jt&&function Jr(e,t,n){const r=Mo(t,e);!function ph(e,t,n){e.setValue(t,n)}(e[Lt],r,n)}(r,oi(),s),gf}function Hg(e,t,n,r,s){if(e=dt(e),Array.isArray(e))for(let d=0;d<e.length;d++)Hg(e[d],t,n,r,s);else{const d=ln(),f=Ze(),m=Cn();let g=gr(e)?e:dt(e.provide);const I=zu(e),j=1048575&m.providerIndexes,oe=m.directiveStart,be=m.providerIndexes>>20;if(gr(e)||!e.multi){const xe=new ua(I,s,Kc),Ue=Ug(g,t,s?j:j+be,oe);-1===Ue?(zl(fc(m,f),d,g),jg(d,e,t.length),t.push(g),m.directiveStart++,m.directiveEnd++,s&&(m.providerIndexes+=1048576),n.push(xe),f.push(xe)):(n[Ue]=xe,f[Ue]=xe)}else{const xe=Ug(g,t,j+be,oe),Ue=Ug(g,t,j,j+be),ht=Ue>=0&&n[Ue];if(s&&!ht||!s&&!(xe>=0&&n[xe])){zl(fc(m,f),d,g);const Tt=function hM(e,t,n,r,s){const d=new ua(e,n,Kc);return d.multi=[],d.index=t,d.componentProviders=0,y0(d,s,r&&!n),d}(s?uM:dM,n.length,s,r,I);!s&&ht&&(n[Ue].providerFactory=Tt),jg(d,e,t.length,0),t.push(g),m.directiveStart++,m.directiveEnd++,s&&(m.providerIndexes+=1048576),n.push(Tt),f.push(Tt)}else jg(d,e,xe>-1?xe:Ue,y0(n[s?Ue:xe],I,!s&&r));!s&&r&&ht&&n[Ue].componentProviders++}}}function jg(e,t,n,r){const s=gr(t),d=function wm(e){return!!e.useClass}(t);if(s||d){const g=(d?dt(t.useClass):t).prototype.ngOnDestroy;if(g){const I=e.destroyHooks||(e.destroyHooks=[]);if(!s&&t.multi){const j=I.indexOf(n);-1===j?I.push(n,[r,g]):I[j+1].push(r,g)}else I.push(n,g)}}}function y0(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Ug(e,t,n,r){for(let s=n;s<r;s++)if(t[s]===e)return s;return-1}function dM(e,t,n,r){return zg(this.multi,[])}function uM(e,t,n,r){const s=this.multi;let d;if(this.providerFactory){const f=this.providerFactory.componentProviders,m=$r(n,n[at],this.providerFactory.index,r);d=m.slice(0,f),zg(s,d);for(let g=f;g<m.length;g++)d.push(m[g])}else d=[],zg(s,d);return d}function zg(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function w0(e,t=[]){return n=>{n.providersResolver=(r,s)=>function lM(e,t,n){const r=ln();if(r.firstCreatePass){const s=Qi(e);Hg(n,r.data,r.blueprint,s,!0),Hg(t,r.data,r.blueprint,s,!1)}}(r,s?s(e):e,t)}}class Ga{}class fM{}function mM(e,t){return new Gg(e,t??null,[])}class Gg extends Ga{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new $b(this);const s=function Un(e,t){const n=e[Pi]||null;if(!n&&!0===t)throw new Error(`Type ${$e(e)} does not have '\u0275mod' property.`);return n}(t);this._bootstrapComponents=function vi(e){return e instanceof Function?e():e}(s.bootstrap),this._r3Injector=qu(t,n,[{provide:Ga,useValue:this},{provide:Rd,useValue:this.componentFactoryResolver},...r],$e(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Wg extends fM{constructor(t){super(),this.moduleType=t}create(t){return new Gg(this.moduleType,t,[])}}class C0 extends Ga{constructor(t){super(),this.componentFactoryResolver=new $b(this),this.instance=null;const n=new _r([...t.providers,{provide:Ga,useValue:this},{provide:Rd,useValue:this.componentFactoryResolver}],t.parent||Dc(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let _M=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=$u(0,n.type),s=r.length>0?function gM(e,t,n=null){return new C0({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static#e=this.\u0275prov=Qt({token:e,providedIn:"environment",factory:()=>new e($n(bi))})}return e})();function x0(e){Va("NgStandalone"),e.getStandaloneInjector=t=>t.get(_M).getOrCreateStandaloneInjector(e)}function O0(e,t,n){const r=ii()+e,s=Ze();return s[r]===Jt?xr(s,r,n?t.call(n):t()):Hd(s,r)}function P0(e,t,n,r){return F0(Ze(),ii(),e,t,n,r)}function k0(e,t,n,r,s){return N0(Ze(),ii(),e,t,n,r,s)}function R0(e,t,n,r,s,d,f,m,g){const I=ii()+e,j=Ze(),oe=function Lo(e,t,n,r,s,d){const f=Ha(e,t,n,r);return Ha(e,t+2,s,d)||f}(j,I,n,r,s,d);return Ha(j,I+4,f,m)||oe?xr(j,I+6,g?t.call(g,n,r,s,d,f,m):t(n,r,s,d,f,m)):Hd(j,I+6)}function iu(e,t){const n=e[t];return n===Jt?void 0:n}function F0(e,t,n,r,s,d){const f=t+n;return li(e,f,s)?xr(e,f+1,d?r.call(d,s):r(s)):iu(e,f+1)}function N0(e,t,n,r,s,d,f){const m=t+n;return Ha(e,m,s,d)?xr(e,m+2,f?r.call(f,s,d):r(s,d)):iu(e,m+2)}function $0(e,t){const n=ln();let r;const s=e+Bt;n.firstCreatePass?(r=function RM(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks??=[]).push(s,r.onDestroy)):r=n.data[s];const d=r.factory||(r.factory=hn(r.type)),m=st(Kc);try{const g=jl(!1),I=d();return jl(g),function JE(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Ze(),s,I),I}finally{st(m)}}function H0(e,t,n){const r=e+Bt,s=Ze(),d=Yo(s,r);return ou(s,r)?F0(s,ii(),t,d.transform,n,d):d.transform(n)}function j0(e,t,n,r){const s=e+Bt,d=Ze(),f=Yo(d,s);return ou(d,s)?N0(d,ii(),t,f.transform,n,r,f):f.transform(n,r)}function ou(e,t){return e[at].data[t].pure}function BM(){return this._results[Symbol.iterator]()}class vf{static#e=Symbol.iterator;get changes(){return this._changes??=new Cr}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=vf.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=BM)}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){this.dirty=!1;const r=function Di(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function fm(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let s=e[r],d=t[r];if(n&&(s=n(s),d=n(d)),d!==s)return!1}return!0}(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}let ru=(()=>{class e{static#e=this.__NG_ELEMENT_ID__=HM}return e})();const VM=ru,$M=class extends VM{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const s=Yd(this._declarationLView,this._declarationTContainer,t,{injector:n,dehydratedView:r});return new Vd(s)}};function HM(){return yf(Cn(),Ze())}function yf(e,t){return 4&e.type?new $M(t,e,Yc(e,t)):null}class Kg{constructor(t){this.queryList=t,this.matches=null}clone(){return new Kg(this.queryList)}setDirty(){this.queryList.setDirty()}}class Zg{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,s=[];for(let d=0;d<r;d++){const f=n.getByIndex(d);s.push(this.queries[f.indexInDeclarationView].clone())}return new Zg(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==J0(t,n).matches&&this.queries[n].setDirty()}}class U0{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class qg{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const s=null!==n?n.length:0,d=this.getByIndex(r).embeddedTView(t,s);d&&(d.indexInDeclarationView=r,null!==n?n.push(d):n=[d])}return null!==n?new qg(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Jg{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 Jg(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let s=0;s<r.length;s++){const d=r[s];this.matchTNodeWithReadOption(t,n,jM(n,d)),this.matchTNodeWithReadOption(t,n,pc(n,t,d,!1,!1))}else r===ru?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,pc(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const s=this.metadata.read;if(null!==s)if(s===Fd||s===ef||s===ru&&4&n.type)this.addMatch(n.index,-2);else{const d=pc(n,t,s,!1,!1);null!==d&&this.addMatch(n.index,d)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function jM(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function zM(e,t,n,r){return-1===n?function UM(e,t){return 11&e.type?Yc(e,t):4&e.type?yf(e,t):null}(t,e):-2===n?function GM(e,t,n){return n===Fd?Yc(t,e):n===ru?yf(t,e):n===ef?Sv(t,e):void 0}(e,t,r):$r(e,e[at],n,t)}function z0(e,t,n,r){const s=t[mo].queries[r];if(null===s.matches){const d=e.data,f=n.matches,m=[];for(let g=0;g<f.length;g+=2){const I=f[g];m.push(I<0?null:zM(t,d[I],f[g+1],n.metadata.read))}s.matches=m}return s.matches}function Qg(e,t,n,r){const s=e.queries.getByIndex(n),d=s.matches;if(null!==d){const f=z0(e,t,s,n);for(let m=0;m<d.length;m+=2){const g=d[m];if(g>0)r.push(f[m/2]);else{const I=d[m+1],j=t[-g];for(let oe=Nn;oe<j.length;oe++){const be=j[oe];be[ar]===be[P]&&Qg(be[at],be,I,r)}if(null!==j[Fr]){const oe=j[Fr];for(let be=0;be<oe.length;be++){const xe=oe[be];Qg(xe[at],xe,I,r)}}}}}return r}function G0(e){const t=Ze(),n=ln(),r=fu();Nl(r+1);const s=J0(n,r);if(e.dirty&&function Vf(e){return 4==(4&e[It])}(t)===(2==(2&s.metadata.flags))){if(null===s.matches)e.reset([]);else{const d=s.crossesNgTemplate?Qg(n,t,r,[]):z0(n,t,s,r);e.reset(d,fC),e.notifyOnChanges()}return!0}return!1}function W0(e,t,n){const r=ln();r.firstCreatePass&&(q0(r,new U0(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Z0(r,Ze(),t)}function Y0(e,t,n,r){const s=ln();if(s.firstCreatePass){const d=Cn();q0(s,new U0(t,n,r),d.index),function YM(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(s,e),2==(2&n)&&(s.staticContentQueries=!0)}Z0(s,Ze(),n)}function K0(){return function WM(e,t){return e[mo].queries[t].queryList}(Ze(),fu())}function Z0(e,t,n){const r=new vf(4==(4&n));(function UC(e,t,n,r){const s=Tb(t);s.push(n),e.firstCreatePass&&Eb(e).push(r,s.length-1)})(e,t,r,r.destroy),null===t[mo]&&(t[mo]=new Zg),t[mo].queries.push(new Kg(r))}function q0(e,t,n){null===e.queries&&(e.queries=new qg),e.queries.track(new Jg(t,n))}function J0(e,t){return e.queries.getByIndex(t)}function Q0(e,t){return yf(e,t)}class mw{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let pw=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),i_=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Ge.X(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const yw=new yt(""),ww=new yt("");let r_,$S=(()=>{class e{constructor(n,r,s){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,r_||(function HS(e){r_=e}(s),s.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?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:()=>{ci.assertNotInAngularZone(),queueMicrotask(()=>{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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,s){let d=-1;r&&r>0&&(d=setTimeout(()=>{this._callbacks=this._callbacks.filter(f=>f.timeoutId!==d),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:d,updateCb:s})}whenStable(n,r,s){if(s&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,s),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,s){return[]}static#e=this.\u0275fac=function(r){return new(r||e)($n(ci),$n(Cw),$n(ww))};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac})}return e})(),Cw=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return r_?.findTestabilityInTree(this,n,r)??null}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();const jS=new yt("Application Initializer");let s_=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=tn(jS,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const s of this.appInits){const d=s();if(Lg(d))n.push(d);else if(Ny(d)){const f=new Promise((m,g)=>{d.subscribe({complete:m,error:g})});n.push(f)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(s=>{this.reject(s)}),0===n.length&&r(),this.initialized=!0}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const xw=new yt("appBootstrapListener");function Ew(e,t){return Array.isArray(t)?t.reduce(Ew,e):{...e,...t}}let yl=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=tn(sb),this.componentTypes=[],this.components=[],this.isStable=tn(i_).hasPendingTasks.pipe((0,ne.U)(n=>!n)),this._injector=tn(bi)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const s=n instanceof K_;if(!this._injector.get(s_).done)throw!s&&function Ni(e){const t=Yt(e)||Hn(e)||jn(e);return null!==t&&t.standalone}(n),new rt(405,!1);let f;f=s?n:this._injector.get(Rd).resolveComponentFactory(n),this.componentTypes.push(f.componentType);const m=function zS(e){return e.isBoundToModule}(f)?void 0:this._injector.get(Ga),I=f.create(io.NULL,[],r||f.selector,m),j=I.location.nativeElement,oe=I.injector.get(yw,null);return oe?.registerApplication(j),I.onDestroy(()=>{this.detachView(I.hostView),xf(this.components,I),oe?.unregisterApplication(j)}),this._loadComponent(I),I}tick(){if(this._runningTick)throw new rt(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;xf(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(xw,[]);[...this._bootstrapListeners,...r].forEach(s=>s(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>xf(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new rt(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function xf(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let WS=(()=>{class e{constructor(){this.zone=tn(ci),this.applicationRef=tn(yl)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function YS(){const e=tn(ci),t=tn(Ls);return n=>e.runOutsideAngular(()=>t.handleError(n))}let ZS=(()=>{class e{constructor(){this.subscription=new Ae.w0,this.initialized=!1,this.zone=tn(ci),this.pendingTasks=tn(i_)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ci.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ci.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static#e=this.\u0275fac=function(r){return new(r||e)};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const Tf=new yt("LocaleId",{providedIn:"root",factory:()=>tn(Tf,Re.Optional|Re.SkipSelf)||function qS(){return typeof $localize<"u"&&$localize.locale||_l}()}),JS=new yt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"}),a_=new yt("PlatformDestroyListeners");let Iw=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const s=function Ox(e="zone.js",t){return"noop"===e?new Ax:"zone.js"===e?new ci(t):e}(r?.ngZone,function Aw(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return s.run(()=>{const d=function pM(e,t,n){return new Gg(e,t,n)}(n.moduleType,this.injector,function Sw(e){return[{provide:ci,useFactory:e},{provide:ba,multi:!0,useFactory:()=>{const t=tn(WS,{optional:!0});return()=>t.initialize()}},{provide:ba,multi:!0,useFactory:()=>{const t=tn(ZS);return()=>{t.initialize()}}},{provide:sb,useFactory:YS}]}(()=>s)),f=d.injector.get(Ls,null);return s.runOutsideAngular(()=>{const m=s.onError.subscribe({next:g=>{f.handleError(g)}});d.onDestroy(()=>{xf(this._modules,d),m.unsubscribe()})}),function Tw(e,t,n){try{const r=n();return Lg(r)?r.catch(s=>{throw t.runOutsideAngular(()=>e.handleError(s)),s}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(f,s,()=>{const m=d.injector.get(s_);return m.runInitializers(),m.donePromise.then(()=>(function hy(e){qt(e,"Expected localeId to be defined"),"string"==typeof e&&(uy=e.toLowerCase().replace(/_/g,"-"))}(d.injector.get(Tf,_l)||_l),this._moduleDoBootstrap(d),d))})})}bootstrapModule(n,r=[]){const s=Ew({},r);return function US(e,t,n){const r=new Wg(n);return Promise.resolve(r)}(0,0,n).then(d=>this.bootstrapModuleFactory(d,s))}_moduleDoBootstrap(n){const r=n.injector.get(yl);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(s=>r.bootstrap(s));else{if(!n.instance.ngDoBootstrap)throw new rt(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new rt(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(a_,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static#e=this.\u0275fac=function(r){return new(r||e)($n(io))};static#t=this.\u0275prov=Qt({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),$s=null;const Ow=new yt("AllowMultipleToken");function Pw(e,t,n=[]){const r=`Platform: ${t}`,s=new yt(r);return(d=[])=>{let f=c_();if(!f||f.injector.get(Ow,!1)){const m=[...n,...d,{provide:s,useValue:!0}];e?e(m):function XS(e){if($s&&!$s.get(Ow,!1))throw new rt(400,!1);(function Dw(){!function le(e){Wt=e}(()=>{throw new rt(600,!1)})})(),$s=e;const t=e.get(Iw);(function Rw(e){e.get(sd,null)?.forEach(n=>n())})(e)}(function kw(e=[],t){return io.create({name:t,providers:[{provide:td,useValue:"platform"},{provide:a_,useValue:new Set([()=>$s=null])},...e]})}(m,r))}return function eA(e){const t=c_();if(!t)throw new rt(401,!1);return t}()}}function c_(){return $s?.get(Iw)??null}function nA(){}const aA=Pw(null,"core",[]);let cA=(()=>{class e{constructor(n){}static#e=this.\u0275fac=function(r){return new(r||e)($n(yl))};static#t=this.\u0275mod=fo({type:e});static#n=this.\u0275inj=co({})}return e})();function kA(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RA(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}},8832:(Ee,w,b)=>{"use strict";b.d(w,{Cf:()=>J,F:()=>$t,Fj:()=>O,JJ:()=>Te,JL:()=>$e,JU:()=>S,NI:()=>yt,On:()=>ki,UX:()=>It,_Y:()=>Kn,a5:()=>Ae,kI:()=>ze,oH:()=>tn,sg:()=>Ri,u5:()=>at});var a=b(1322),i=b(9462),te=b(107),Q=b(6312),v=b(8412);let y=(()=>{class P{constructor(x,ee){this._renderer=x,this._elementRef=ee,this.onChange=we=>{},this.onTouched=()=>{}}setProperty(x,ee){this._renderer.setProperty(this._elementRef.nativeElement,x,ee)}registerOnTouched(x){this.onTouched=x}registerOnChange(x){this.onChange=x}setDisabledState(x){this.setProperty("disabled",x)}static#e=this.\u0275fac=function(ee){return new(ee||P)(a.Y36(a.Qsj),a.Y36(a.SBq))};static#t=this.\u0275dir=a.lG2({type:P})}return P})(),T=(()=>{class P extends y{static#e=this.\u0275fac=(()=>{let x;return function(we){return(x||(x=a.n5z(P)))(we||P)}})();static#t=this.\u0275dir=a.lG2({type:P,features:[a.qOj]})}return P})();const S=new a.OlP("NgValueAccessor"),W={provide:S,useExisting:(0,a.Gpc)(()=>O),multi:!0},C=new a.OlP("CompositionEventMode");let O=(()=>{class P extends y{constructor(x,ee,we){super(x,ee),this._compositionMode=we,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function A(){const P=(0,i.q)()?(0,i.q)().getUserAgent():"";return/android (\d+)/.test(P.toLowerCase())}())}writeValue(x){this.setProperty("value",x??"")}_handleInput(x){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(x)}_compositionStart(){this._composing=!0}_compositionEnd(x){this._composing=!1,this._compositionMode&&this.onChange(x)}static#e=this.\u0275fac=function(ee){return new(ee||P)(a.Y36(a.Qsj),a.Y36(a.SBq),a.Y36(C,8))};static#t=this.\u0275dir=a.lG2({type:P,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(ee,we){1&ee&&a.NdJ("input",function(Ft){return we._handleInput(Ft.target.value)})("blur",function(){return we.onTouched()})("compositionstart",function(){return we._compositionStart()})("compositionend",function(Ft){return we._compositionEnd(Ft.target.value)})},features:[a._Bn([W]),a.qOj]})}return P})();function R(P){return null==P||("string"==typeof P||Array.isArray(P))&&0===P.length}function ie(P){return null!=P&&"number"==typeof P.length}const J=new a.OlP("NgValidators"),ce=new a.OlP("NgAsyncValidators"),Fe=/^(?=.{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 ze{static min(L){return function Ve(P){return L=>{if(R(L.value)||R(P))return null;const x=parseFloat(L.value);return!isNaN(x)&&x<P?{min:{min:P,actual:L.value}}:null}}(L)}static max(L){return function Se(P){return L=>{if(R(L.value)||R(P))return null;const x=parseFloat(L.value);return!isNaN(x)&&x>P?{max:{max:P,actual:L.value}}:null}}(L)}static required(L){return function Oe(P){return R(P.value)?{required:!0}:null}(L)}static requiredTrue(L){return function Me(P){return!0===P.value?null:{required:!0}}(L)}static email(L){return function ke(P){return R(P.value)||Fe.test(P.value)?null:{email:!0}}(L)}static minLength(L){return function Ce(P){return L=>R(L.value)||!ie(L.value)?null:L.value.length<P?{minlength:{requiredLength:P,actualLength:L.value.length}}:null}(L)}static maxLength(L){return function De(P){return L=>ie(L.value)&&L.value.length>P?{maxlength:{requiredLength:P,actualLength:L.value.length}}:null}(L)}static pattern(L){return function He(P){if(!P)return lt;let L,x;return"string"==typeof P?(x="","^"!==P.charAt(0)&&(x+="^"),x+=P,"$"!==P.charAt(P.length-1)&&(x+="$"),L=new RegExp(x)):(x=P.toString(),L=P),ee=>{if(R(ee.value))return null;const we=ee.value;return L.test(we)?null:{pattern:{requiredPattern:x,actualValue:we}}}}(L)}static nullValidator(L){return null}static compose(L){return G(L)}static composeAsync(L){return F(L)}}function lt(P){return null}function Ct(P){return null!=P}function zt(P){return(0,a.QGY)(P)?(0,te.D)(P):P}function Wt(P){let L={};return P.forEach(x=>{L=null!=x?{...L,...x}:L}),0===Object.keys(L).length?null:L}function Je(P,L){return L.map(x=>x(P))}function re(P){return P.map(L=>function le(P){return!P.validate}(L)?L:x=>L.validate(x))}function G(P){if(!P)return null;const L=P.filter(Ct);return 0==L.length?null:function(x){return Wt(Je(x,L))}}function $(P){return null!=P?G(re(P)):null}function F(P){if(!P)return null;const L=P.filter(Ct);return 0==L.length?null:function(x){const ee=Je(x,L).map(zt);return(0,Q.D)(ee).pipe((0,v.U)(Wt))}}function U(P){return null!=P?F(re(P)):null}function H(P,L){return null===P?[L]:Array.isArray(P)?[...P,L]:[P,L]}function Z(P){return P._rawValidators}function de(P){return P._rawAsyncValidators}function ge(P){return P?Array.isArray(P)?P:[P]:[]}function Ne(P,L){return Array.isArray(P)?P.includes(L):P===L}function Be(P,L){const x=ge(L);return ge(P).forEach(we=>{Ne(x,we)||x.push(we)}),x}function Xe(P,L){return ge(L).filter(x=>!Ne(P,x))}class Ke{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(L){this._rawValidators=L||[],this._composedValidatorFn=$(this._rawValidators)}_setAsyncValidators(L){this._rawAsyncValidators=L||[],this._composedAsyncValidatorFn=U(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(L){this._onDestroyCallbacks.push(L)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(L=>L()),this._onDestroyCallbacks=[]}reset(L=void 0){this.control&&this.control.reset(L)}hasError(L,x){return!!this.control&&this.control.hasError(L,x)}getError(L,x){return this.control?this.control.getError(L,x):null}}class mt extends Ke{get formDirective(){return null}get path(){return null}}class Ae extends Ke{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Ge{constructor(L){this._cd=L}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Te=(()=>{class P extends Ge{constructor(x){super(x)}static#e=this.\u0275fac=function(ee){return new(ee||P)(a.Y36(Ae,2))};static#t=this.\u0275dir=a.lG2({type:P,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(ee,we){2&ee&&a.ekj("ng-untouched",we.isUntouched)("ng-touched",we.isTouched)("ng-pristine",we.isPristine)("ng-dirty",we.isDirty)("ng-valid",we.isValid)("ng-invalid",we.isInvalid)("ng-pending",we.isPending)},features:[a.qOj]})}return P})(),$e=(()=>{class P extends Ge{constructor(x){super(x)}static#e=this.\u0275fac=function(ee){return new(ee||P)(a.Y36(mt,10))};static#t=this.\u0275dir=a.lG2({type:P,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(ee,we){2&ee&&a.ekj("ng-untouched",we.isUntouched)("ng-touched",we.isTouched)("ng-pristine",we.isPristine)("ng-dirty",we.isDirty)("ng-valid",we.isValid)("ng-invalid",we.isInvalid)("ng-pending",we.isPending)("ng-submitted",we.isSubmitted)},features:[a.qOj]})}return P})();const wn="VALID",Et="INVALID",Ot="PENDING",On="DISABLED";function Bn(P){return(z(P)?P.validators:P)||null}function We(P,L){return(z(L)?L.asyncValidators:P)||null}function z(P){return null!=P&&!Array.isArray(P)&&"object"==typeof P}class X{constructor(L,x){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(L),this._assignAsyncValidators(x)}get validator(){return this._composedValidatorFn}set validator(L){this._rawValidators=this._composedValidatorFn=L}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(L){this._rawAsyncValidators=this._composedAsyncValidatorFn=L}get parent(){return this._parent}get valid(){return this.status===wn}get invalid(){return this.status===Et}get pending(){return this.status==Ot}get disabled(){return this.status===On}get enabled(){return this.status!==On}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(L){this._assignValidators(L)}setAsyncValidators(L){this._assignAsyncValidators(L)}addValidators(L){this.setValidators(Be(L,this._rawValidators))}addAsyncValidators(L){this.setAsyncValidators(Be(L,this._rawAsyncValidators))}removeValidators(L){this.setValidators(Xe(L,this._rawValidators))}removeAsyncValidators(L){this.setAsyncValidators(Xe(L,this._rawAsyncValidators))}hasValidator(L){return Ne(this._rawValidators,L)}hasAsyncValidator(L){return Ne(this._rawAsyncValidators,L)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(L={}){this.touched=!0,this._parent&&!L.onlySelf&&this._parent.markAsTouched(L)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(L=>L.markAllAsTouched())}markAsUntouched(L={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(x=>{x.markAsUntouched({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}markAsDirty(L={}){this.pristine=!1,this._parent&&!L.onlySelf&&this._parent.markAsDirty(L)}markAsPristine(L={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(x=>{x.markAsPristine({onlySelf:!0})}),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}markAsPending(L={}){this.status=Ot,!1!==L.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!L.onlySelf&&this._parent.markAsPending(L)}disable(L={}){const x=this._parentMarkedDirty(L.onlySelf);this.status=On,this.errors=null,this._forEachChild(ee=>{ee.disable({...L,onlySelf:!0})}),this._updateValue(),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...L,skipPristineCheck:x}),this._onDisabledChange.forEach(ee=>ee(!0))}enable(L={}){const x=this._parentMarkedDirty(L.onlySelf);this.status=wn,this._forEachChild(ee=>{ee.enable({...L,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent}),this._updateAncestors({...L,skipPristineCheck:x}),this._onDisabledChange.forEach(ee=>ee(!1))}_updateAncestors(L){this._parent&&!L.onlySelf&&(this._parent.updateValueAndValidity(L),L.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(L){this._parent=L}getRawValue(){return this.value}updateValueAndValidity(L={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===wn||this.status===Ot)&&this._runAsyncValidator(L.emitEvent)),!1!==L.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!L.onlySelf&&this._parent.updateValueAndValidity(L)}_updateTreeValidity(L={emitEvent:!0}){this._forEachChild(x=>x._updateTreeValidity(L)),this.updateValueAndValidity({onlySelf:!0,emitEvent:L.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?On:wn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(L){if(this.asyncValidator){this.status=Ot,this._hasOwnPendingAsyncValidator=!0;const x=zt(this.asyncValidator(this));this._asyncValidationSubscription=x.subscribe(ee=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(ee,{emitEvent:L})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(L,x={}){this.errors=L,this._updateControlsErrors(!1!==x.emitEvent)}get(L){let x=L;return null==x||(Array.isArray(x)||(x=x.split(".")),0===x.length)?null:x.reduce((ee,we)=>ee&&ee._find(we),this)}getError(L,x){const ee=x?this.get(x):this;return ee&&ee.errors?ee.errors[L]:null}hasError(L,x){return!!this.getError(L,x)}get root(){let L=this;for(;L._parent;)L=L._parent;return L}_updateControlsErrors(L){this.status=this._calculateStatus(),L&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(L)}_initObservables(){this.valueChanges=new a.vpe,this.statusChanges=new a.vpe}_calculateStatus(){return this._allControlsDisabled()?On:this.errors?Et:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ot)?Ot:this._anyControlsHaveStatus(Et)?Et:wn}_anyControlsHaveStatus(L){return this._anyControls(x=>x.status===L)}_anyControlsDirty(){return this._anyControls(L=>L.dirty)}_anyControlsTouched(){return this._anyControls(L=>L.touched)}_updatePristine(L={}){this.pristine=!this._anyControlsDirty(),this._parent&&!L.onlySelf&&this._parent._updatePristine(L)}_updateTouched(L={}){this.touched=this._anyControlsTouched(),this._parent&&!L.onlySelf&&this._parent._updateTouched(L)}_registerOnCollectionChange(L){this._onCollectionChange=L}_setUpdateStrategy(L){z(L)&&null!=L.updateOn&&(this._updateOn=L.updateOn)}_parentMarkedDirty(L){return!L&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(L){return null}_assignValidators(L){this._rawValidators=Array.isArray(L)?L.slice():L,this._composedValidatorFn=function Vn(P){return Array.isArray(P)?$(P):P||null}(this._rawValidators)}_assignAsyncValidators(L){this._rawAsyncValidators=Array.isArray(L)?L.slice():L,this._composedAsyncValidatorFn=function me(P){return Array.isArray(P)?U(P):P||null}(this._rawAsyncValidators)}}class he extends X{constructor(L,x,ee){super(Bn(x),We(ee,x)),this.controls=L,this._initObservables(),this._setUpdateStrategy(x),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(L,x){return this.controls[L]?this.controls[L]:(this.controls[L]=x,x.setParent(this),x._registerOnCollectionChange(this._onCollectionChange),x)}addControl(L,x,ee={}){this.registerControl(L,x),this.updateValueAndValidity({emitEvent:ee.emitEvent}),this._onCollectionChange()}removeControl(L,x={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],this.updateValueAndValidity({emitEvent:x.emitEvent}),this._onCollectionChange()}setControl(L,x,ee={}){this.controls[L]&&this.controls[L]._registerOnCollectionChange(()=>{}),delete this.controls[L],x&&this.registerControl(L,x),this.updateValueAndValidity({emitEvent:ee.emitEvent}),this._onCollectionChange()}contains(L){return this.controls.hasOwnProperty(L)&&this.controls[L].enabled}setValue(L,x={}){(function ae(P,L,x){P._forEachChild((ee,we)=>{if(void 0===x[we])throw new a.vHH(1002,"")})})(this,0,L),Object.keys(L).forEach(ee=>{(function B(P,L,x){const ee=P.controls;if(!(L?Object.keys(ee):ee).length)throw new a.vHH(1e3,"");if(!ee[x])throw new a.vHH(1001,"")})(this,!0,ee),this.controls[ee].setValue(L[ee],{onlySelf:!0,emitEvent:x.emitEvent})}),this.updateValueAndValidity(x)}patchValue(L,x={}){null!=L&&(Object.keys(L).forEach(ee=>{const we=this.controls[ee];we&&we.patchValue(L[ee],{onlySelf:!0,emitEvent:x.emitEvent})}),this.updateValueAndValidity(x))}reset(L={},x={}){this._forEachChild((ee,we)=>{ee.reset(L?L[we]:null,{onlySelf:!0,emitEvent:x.emitEvent})}),this._updatePristine(x),this._updateTouched(x),this.updateValueAndValidity(x)}getRawValue(){return this._reduceChildren({},(L,x,ee)=>(L[ee]=x.getRawValue(),L))}_syncPendingControls(){let L=this._reduceChildren(!1,(x,ee)=>!!ee._syncPendingControls()||x);return L&&this.updateValueAndValidity({onlySelf:!0}),L}_forEachChild(L){Object.keys(this.controls).forEach(x=>{const ee=this.controls[x];ee&&L(ee,x)})}_setUpControls(){this._forEachChild(L=>{L.setParent(this),L._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(L){for(const[x,ee]of Object.entries(this.controls))if(this.contains(x)&&L(ee))return!0;return!1}_reduceValue(){return this._reduceChildren({},(x,ee,we)=>((ee.enabled||this.disabled)&&(x[we]=ee.value),x))}_reduceChildren(L,x){let ee=L;return this._forEachChild((we,ot)=>{ee=x(ee,we,ot)}),ee}_allControlsDisabled(){for(const L of Object.keys(this.controls))if(this.controls[L].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(L){return this.controls.hasOwnProperty(L)?this.controls[L]:null}}const St=new a.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Rt}),Rt="always";function gn(P,L,x=Rt){gi(P,L),L.valueAccessor.writeValue(P.value),(P.disabled||"always"===x)&&L.valueAccessor.setDisabledState?.(P.disabled),function ir(P,L){L.valueAccessor.registerOnChange(x=>{P._pendingValue=x,P._pendingChange=!0,P._pendingDirty=!0,"change"===P.updateOn&&ao(P,L)})}(P,L),function co(P,L){const x=(ee,we)=>{L.valueAccessor.writeValue(ee),we&&L.viewToModelUpdate(ee)};P.registerOnChange(x),L._registerOnDestroy(()=>{P._unregisterOnChange(x)})}(P,L),function Qt(P,L){L.valueAccessor.registerOnTouched(()=>{P._pendingTouched=!0,"blur"===P.updateOn&&P._pendingChange&&ao(P,L),"submit"!==P.updateOn&&P.markAsTouched()})}(P,L),function Ci(P,L){if(L.valueAccessor.setDisabledState){const x=ee=>{L.valueAccessor.setDisabledState(ee)};P.registerOnDisabledChange(x),L._registerOnDestroy(()=>{P._unregisterOnDisabledChange(x)})}}(P,L)}function qt(P,L,x=!0){const ee=()=>{};L.valueAccessor&&(L.valueAccessor.registerOnChange(ee),L.valueAccessor.registerOnTouched(ee)),so(P,L),P&&(L._invokeOnDestroyCallbacks(),P._registerOnCollectionChange(()=>{}))}function xt(P,L){P.forEach(x=>{x.registerOnValidatorChange&&x.registerOnValidatorChange(L)})}function gi(P,L){const x=Z(P);null!==L.validator?P.setValidators(H(x,L.validator)):"function"==typeof x&&P.setValidators([x]);const ee=de(P);null!==L.asyncValidator?P.setAsyncValidators(H(ee,L.asyncValidator)):"function"==typeof ee&&P.setAsyncValidators([ee]);const we=()=>P.updateValueAndValidity();xt(L._rawValidators,we),xt(L._rawAsyncValidators,we)}function so(P,L){let x=!1;if(null!==P){if(null!==L.validator){const we=Z(P);if(Array.isArray(we)&&we.length>0){const ot=we.filter(Ft=>Ft!==L.validator);ot.length!==we.length&&(x=!0,P.setValidators(ot))}}if(null!==L.asyncValidator){const we=de(P);if(Array.isArray(we)&&we.length>0){const ot=we.filter(Ft=>Ft!==L.asyncValidator);ot.length!==we.length&&(x=!0,P.setAsyncValidators(ot))}}}const ee=()=>{};return xt(L._rawValidators,ee),xt(L._rawAsyncValidators,ee),x}function ao(P,L){P._pendingDirty&&P.markAsDirty(),P.setValue(P._pendingValue,{emitModelToViewChange:!1}),L.viewToModelUpdate(P._pendingValue),P._pendingChange=!1}function Yi(P,L){gi(P,L)}function _e(P,L){if(!P.hasOwnProperty("model"))return!1;const x=P.model;return!!x.isFirstChange()||!Object.is(L,x.currentValue)}function Re(P,L){P._syncPendingControls(),L.forEach(x=>{const ee=x.control;"submit"===ee.updateOn&&ee._pendingChange&&(x.viewToModelUpdate(ee._pendingValue),ee._pendingChange=!1)})}function qe(P,L){if(!L)return null;let x,ee,we;return Array.isArray(L),L.forEach(ot=>{ot.constructor===O?x=ot:function ve(P){return Object.getPrototypeOf(P.constructor)===T}(ot)?ee=ot:we=ot}),we||ee||x||null}const Ht={provide:mt,useExisting:(0,a.Gpc)(()=>$t)},At=(()=>Promise.resolve())();let $t=(()=>{class P extends mt{constructor(x,ee,we){super(),this.callSetDisabledState=we,this.submitted=!1,this._directives=new Set,this.ngSubmit=new a.vpe,this.form=new he({},$(x),U(ee))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(x){At.then(()=>{const ee=this._findContainer(x.path);x.control=ee.registerControl(x.name,x.control),gn(x.control,x,this.callSetDisabledState),x.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(x)})}getControl(x){return this.form.get(x.path)}removeControl(x){At.then(()=>{const ee=this._findContainer(x.path);ee&&ee.removeControl(x.name),this._directives.delete(x)})}addFormGroup(x){At.then(()=>{const ee=this._findContainer(x.path),we=new he({});Yi(we,x),ee.registerControl(x.name,we),we.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(x){At.then(()=>{const ee=this._findContainer(x.path);ee&&ee.removeControl(x.name)})}getFormGroup(x){return this.form.get(x.path)}updateModel(x,ee){At.then(()=>{this.form.get(x.path).setValue(ee)})}setValue(x){this.control.setValue(x)}onSubmit(x){return this.submitted=!0,Re(this.form,this._directives),this.ngSubmit.emit(x),"dialog"===x?.target?.method}onReset(){this.resetForm()}resetForm(x=void 0){this.form.reset(x),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(x){return x.pop(),x.length?this.form.get(x):this.form}static#e=this.\u0275fac=function(ee){return new(ee||P)(a.Y36(J,10),a.Y36(ce,10),a.Y36(St,8))};static#t=this.\u0275dir=a.lG2({type:P,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(ee,we){1&ee&&a.NdJ("submit",function(Ft){return we.onSubmit(Ft)})("reset",function(){return we.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([Ht]),a.qOj]})}return P})();function _n(P,L){const x=P.indexOf(L);x>-1&&P.splice(x,1)}function vn(P){return"object"==typeof P&&null!==P&&2===Object.keys(P).length&&"value"in P&&"disabled"in P}const yt=class extends X{constructor(L=null,x,ee){super(Bn(x),We(ee,x)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(L),this._setUpdateStrategy(x),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),z(x)&&(x.nonNullable||x.initialValueIsDefault)&&(this.defaultValue=vn(L)?L.value:L)}setValue(L,x={}){this.value=this._pendingValue=L,this._onChange.length&&!1!==x.emitModelToViewChange&&this._onChange.forEach(ee=>ee(this.value,!1!==x.emitViewToModelChange)),this.updateValueAndValidity(x)}patchValue(L,x={}){this.setValue(L,x)}reset(L=this.defaultValue,x={}){this._applyFormState(L),this.markAsPristine(x),this.markAsUntouched(x),this.setValue(this.value,x),this._pendingChange=!1}_updateValue(){}_anyControls(L){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(L){this._onChange.push(L)}_unregisterOnChange(L){_n(this._onChange,L)}registerOnDisabledChange(L){this._onDisabledChange.push(L)}_unregisterOnDisabledChange(L){_n(this._onDisabledChange,L)}_forEachChild(L){}_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(L){vn(L)?(this.value=this._pendingValue=L.value,L.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=L}},Ki={provide:Ae,useExisting:(0,a.Gpc)(()=>ki)},Ho=(()=>Promise.resolve())();let ki=(()=>{class P extends Ae{constructor(x,ee,we,ot,Ft,Sn){super(),this._changeDetectorRef=Ft,this.callSetDisabledState=Sn,this.control=new yt,this._registered=!1,this.name="",this.update=new a.vpe,this._parent=x,this._setValidators(ee),this._setAsyncValidators(we),this.valueAccessor=qe(0,ot)}ngOnChanges(x){if(this._checkForErrors(),!this._registered||"name"in x){if(this._registered&&(this._checkName(),this.formDirective)){const ee=x.name.previousValue;this.formDirective.removeControl({name:ee,path:this._getPath(ee)})}this._setUpControl()}"isDisabled"in x&&this._updateDisabled(x),_e(x,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(x){this.viewModel=x,this.update.emit(x)}_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(){gn(this.control,this,this.callSetDisabledState),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(x){Ho.then(()=>{this.control.setValue(x,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(x){const ee=x.isDisabled.currentValue,we=0!==ee&&(0,a.VuI)(ee);Ho.then(()=>{we&&!this.control.disabled?this.control.disable():!we&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(x){return this._parent?function cn(P,L){return[...L.path,P]}(x,this._parent):[x]}static#e=this.\u0275fac=function(ee){return new(ee||P)(a.Y36(mt,9),a.Y36(J,10),a.Y36(ce,10),a.Y36(S,10),a.Y36(a.sBO,8),a.Y36(St,8))};static#t=this.\u0275dir=a.lG2({type:P,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[a._Bn([Ki]),a.qOj,a.TTD]})}return P})(),Kn=(()=>{class P{static#e=this.\u0275fac=function(ee){return new(ee||P)};static#t=this.\u0275dir=a.lG2({type:P,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}return P})(),xo=(()=>{class P{static#e=this.\u0275fac=function(ee){return new(ee||P)};static#t=this.\u0275mod=a.oAB({type:P});static#n=this.\u0275inj=a.cJS({})}return P})();const $n=new a.OlP("NgModelWithFormControlWarning"),Mr={provide:Ae,useExisting:(0,a.Gpc)(()=>tn)};let tn=(()=>{class P extends Ae{set isDisabled(x){}static#e=this._ngModelWarningSentOnce=!1;constructor(x,ee,we,ot,Ft){super(),this._ngModelWarningConfig=ot,this.callSetDisabledState=Ft,this.update=new a.vpe,this._ngModelWarningSent=!1,this._setValidators(x),this._setAsyncValidators(ee),this.valueAccessor=qe(0,we)}ngOnChanges(x){if(this._isControlChanged(x)){const ee=x.form.previousValue;ee&&qt(ee,this,!1),gn(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}_e(x,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&qt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(x){this.viewModel=x,this.update.emit(x)}_isControlChanged(x){return x.hasOwnProperty("form")}static#t=this.\u0275fac=function(ee){return new(ee||P)(a.Y36(J,10),a.Y36(ce,10),a.Y36(S,10),a.Y36($n,8),a.Y36(St,8))};static#n=this.\u0275dir=a.lG2({type:P,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[a._Bn([Mr]),a.qOj,a.TTD]})}return P})();const or={provide:mt,useExisting:(0,a.Gpc)(()=>Ri)};let Ri=(()=>{class P extends mt{constructor(x,ee,we){super(),this.callSetDisabledState=we,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new a.vpe,this._setValidators(x),this._setAsyncValidators(ee)}ngOnChanges(x){this._checkFormPresent(),x.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(so(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(x){const ee=this.form.get(x.path);return gn(ee,x,this.callSetDisabledState),ee.updateValueAndValidity({emitEvent:!1}),this.directives.push(x),ee}getControl(x){return this.form.get(x.path)}removeControl(x){qt(x.control||null,x,!1),function ct(P,L){const x=P.indexOf(L);x>-1&&P.splice(x,1)}(this.directives,x)}addFormGroup(x){this._setUpFormContainer(x)}removeFormGroup(x){this._cleanUpFormContainer(x)}getFormGroup(x){return this.form.get(x.path)}addFormArray(x){this._setUpFormContainer(x)}removeFormArray(x){this._cleanUpFormContainer(x)}getFormArray(x){return this.form.get(x.path)}updateModel(x,ee){this.form.get(x.path).setValue(ee)}onSubmit(x){return this.submitted=!0,Re(this.form,this.directives),this.ngSubmit.emit(x),"dialog"===x?.target?.method}onReset(){this.resetForm()}resetForm(x=void 0){this.form.reset(x),this.submitted=!1}_updateDomValue(){this.directives.forEach(x=>{const ee=x.control,we=this.form.get(x.path);ee!==we&&(qt(ee||null,x),(P=>P instanceof yt)(we)&&(gn(we,x,this.callSetDisabledState),x.control=we))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(x){const ee=this.form.get(x.path);Yi(ee,x),ee.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(x){if(this.form){const ee=this.form.get(x.path);ee&&function Vo(P,L){return so(P,L)}(ee,x)&&ee.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){gi(this.form,this),this._oldForm&&so(this._oldForm,this)}_checkFormPresent(){}static#e=this.\u0275fac=function(ee){return new(ee||P)(a.Y36(J,10),a.Y36(ce,10),a.Y36(St,8))};static#t=this.\u0275dir=a.lG2({type:P,selectors:[["","formGroup",""]],hostBindings:function(ee,we){1&ee&&a.NdJ("submit",function(Ft){return we.onSubmit(Ft)})("reset",function(){return we.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[a._Bn([or]),a.qOj,a.TTD]})}return P})(),jn=(()=>{class P{static#e=this.\u0275fac=function(ee){return new(ee||P)};static#t=this.\u0275mod=a.oAB({type:P});static#n=this.\u0275inj=a.cJS({imports:[xo]})}return P})(),at=(()=>{class P{static withConfig(x){return{ngModule:P,providers:[{provide:St,useValue:x.callSetDisabledState??Rt}]}}static#e=this.\u0275fac=function(ee){return new(ee||P)};static#t=this.\u0275mod=a.oAB({type:P});static#n=this.\u0275inj=a.cJS({imports:[jn]})}return P})(),It=(()=>{class P{static withConfig(x){return{ngModule:P,providers:[{provide:$n,useValue:x.warnOnNgModelWithFormControl??"always"},{provide:St,useValue:x.callSetDisabledState??Rt}]}}static#e=this.\u0275fac=function(ee){return new(ee||P)};static#t=this.\u0275mod=a.oAB({type:P});static#n=this.\u0275inj=a.cJS({imports:[jn]})}return P})()},7950:(Ee,w,b)=>{"use strict";b.d(w,{RK:()=>Ct,cs:()=>Ce,lW:()=>Ve,ot:()=>Wt,zs:()=>Se});var a=b(3844),i=b(1322),te=b(8654),Q=b(9021);const v=["mat-button",""],y=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],T=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],N=".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}",k=["mat-fab",""],C=["mat-icon-button",""],O=["*"],J=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}];let ce=(()=>{class Je{get ripple(){return this._rippleLoader?.getRipple(this._elementRef.nativeElement)}set ripple(re){this._rippleLoader?.attachRipple(this._elementRef.nativeElement,re)}get disableRipple(){return this._disableRipple}set disableRipple(re){this._disableRipple=re,this._updateRippleDisabled()}get disabled(){return this._disabled}set disabled(re){this._disabled=re,this._updateRippleDisabled()}constructor(re,G,$,F){this._elementRef=re,this._platform=G,this._ngZone=$,this._animationMode=F,this._focusMonitor=(0,i.f3M)(te.tE),this._rippleLoader=(0,i.f3M)(Q.Fq),this._isFab=!1,this._disableRipple=!1,this._disabled=!1,this._rippleLoader?.configureRipple(this._elementRef.nativeElement,{className:"mat-mdc-button-ripple"});const U=this._elementRef.nativeElement,H=U.classList;for(const{attribute:Z,mdcClasses:de}of J)U.hasAttribute(Z)&&H.add(...de)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(re="program",G){re?this._focusMonitor.focusVia(this._elementRef.nativeElement,re,G):this._elementRef.nativeElement.focus(G)}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static#e=this.\u0275fac=function(G){i.$Z()};static#t=this.\u0275dir=i.lG2({type:Je,inputs:{color:"color",disableRipple:["disableRipple","disableRipple",i.VuI],disabled:["disabled","disabled",i.VuI]},features:[i.Xq5]})}return Je})(),ze=(()=>{class Je extends ce{constructor(re,G,$,F){super(re,G,$,F),this._haltDisabledEvents=U=>{this.disabled&&(U.preventDefault(),U.stopImmediatePropagation())}}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)})}ngOnDestroy(){super.ngOnDestroy(),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}static#e=this.\u0275fac=function(G){i.$Z()};static#t=this.\u0275dir=i.lG2({type:Je,inputs:{tabIndex:["tabIndex","tabIndex",re=>null==re?void 0:(0,i.Cb_)(re)]},features:[i.Xq5,i.qOj]})}return Je})(),Ve=(()=>{class Je extends ce{constructor(re,G,$,F){super(re,G,$,F)}static#e=this.\u0275fac=function(G){return new(G||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:9,hostBindings:function(G,$){2&G&&(i.uIk("disabled",$.disabled||null),i.Tol($.color?"mat-"+$.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===$._animationMode)("mat-unthemed",!$.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.qOj],attrs:v,ngContentSelectors:T,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(G,$){1&G&&(i.F$t(y),i._UZ(0,"span",0),i.Hsn(1),i.TgZ(2,"span",1),i.Hsn(3,1),i.qZA(),i.Hsn(4,2),i._UZ(5,"span",2)(6,"span",3)),2&G&&i.ekj("mdc-button__ripple",!$._isFab)("mdc-fab__ripple",$._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);--mdc-text-button-container-shape:4px;--mdc-text-button-container-height:36px;--mdc-text-button-keep-touch-target:false}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);--mdc-filled-button-container-shape:4px;--mdc-filled-button-container-elevation:0;--mdc-filled-button-disabled-container-elevation:0;--mdc-filled-button-focus-container-elevation:0;--mdc-filled-button-hover-container-elevation:0;--mdc-filled-button-keep-touch-target:false;--mdc-filled-button-pressed-container-elevation:0}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled][disabled]{box-shadow:none}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',".cdk-high-contrast-active .mat-mdc-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-unelevated-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-raised-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-outlined-button:not(.mdc-button--outlined),.cdk-high-contrast-active .mat-mdc-icon-button{outline:solid 1px}"],encapsulation:2,changeDetection:0})}return Je})(),Se=(()=>{class Je extends ze{constructor(re,G,$,F){super(re,G,$,F)}static#e=this.\u0275fac=function(G){return new(G||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostVars:11,hostBindings:function(G,$){2&G&&(i.uIk("disabled",$.disabled||null)("tabindex",$.disabled?-1:$.tabIndex)("aria-disabled",$.disabled.toString()),i.Tol($.color?"mat-"+$.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===$._animationMode)("mat-unthemed",!$.color)("mat-mdc-button-base",!0))},exportAs:["matButton","matAnchor"],features:[i.qOj],attrs:v,ngContentSelectors:T,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(G,$){1&G&&(i.F$t(y),i._UZ(0,"span",0),i.Hsn(1),i.TgZ(2,"span",1),i.Hsn(3,1),i.qZA(),i.Hsn(4,2),i._UZ(5,"span",2)(6,"span",3)),2&G&&i.ekj("mdc-button__ripple",!$._isFab)("mdc-fab__ripple",$._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity, 0);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button{position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0)}.mdc-button .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top}[dir=rtl] .mdc-button .mdc-button__icon,.mdc-button .mdc-button__icon[dir=rtl]{margin-left:8px;margin-right:0}.mdc-button .mdc-button__progress-indicator{font-size:0;position:absolute;transform:translate(-50%, -50%);top:50%;left:50%;line-height:initial}.mdc-button .mdc-button__label{position:relative}.mdc-button .mdc-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px);display:none}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring{border-color:CanvasText}}.mdc-button .mdc-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-button .mdc-button__focus-ring::after{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-button.mdc-ripple-upgraded--background-focused .mdc-button__focus-ring,.mdc-button:not(.mdc-ripple-upgraded):focus .mdc-button__focus-ring{display:block}}.mdc-button .mdc-button__touch{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mdc-button__label+.mdc-button__icon{margin-left:8px;margin-right:0}[dir=rtl] .mdc-button__label+.mdc-button__icon,.mdc-button__label+.mdc-button__icon[dir=rtl]{margin-left:0;margin-right:8px}svg.mdc-button__icon{fill:currentColor}.mdc-button--touch{margin-top:6px;margin-bottom:6px}.mdc-button{padding:0 8px 0 8px}.mdc-button--unelevated{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--unelevated.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--unelevated.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--raised{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);padding:0 16px 0 16px}.mdc-button--raised.mdc-button--icon-trailing{padding:0 12px 0 16px}.mdc-button--raised.mdc-button--icon-leading{padding:0 16px 0 12px}.mdc-button--outlined{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-button--outlined .mdc-button__ripple{border-style:solid;border-color:rgba(0,0,0,0)}.mat-mdc-button{font-family:var(--mdc-text-button-label-text-font);font-size:var(--mdc-text-button-label-text-size);letter-spacing:var(--mdc-text-button-label-text-tracking);font-weight:var(--mdc-text-button-label-text-weight);text-transform:var(--mdc-text-button-label-text-transform);height:var(--mdc-text-button-container-height);border-radius:var(--mdc-text-button-container-shape);--mdc-text-button-container-shape:4px;--mdc-text-button-container-height:36px;--mdc-text-button-keep-touch-target:false}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color)}.mat-mdc-button:disabled{color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color)}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color)}.mat-mdc-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity)}.mat-mdc-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity)}.mat-mdc-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity)}.mat-mdc-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color)}.mat-mdc-unelevated-button{font-family:var(--mdc-filled-button-label-text-font);font-size:var(--mdc-filled-button-label-text-size);letter-spacing:var(--mdc-filled-button-label-text-tracking);font-weight:var(--mdc-filled-button-label-text-weight);text-transform:var(--mdc-filled-button-label-text-transform);height:var(--mdc-filled-button-container-height);border-radius:var(--mdc-filled-button-container-shape);--mdc-filled-button-container-shape:4px;--mdc-filled-button-container-elevation:0;--mdc-filled-button-disabled-container-elevation:0;--mdc-filled-button-focus-container-elevation:0;--mdc-filled-button-hover-container-elevation:0;--mdc-filled-button-keep-touch-target:false;--mdc-filled-button-pressed-container-elevation:0}.mat-mdc-unelevated-button:not(:disabled){background-color:var(--mdc-filled-button-container-color)}.mat-mdc-unelevated-button:disabled{background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color)}.mat-mdc-unelevated-button:disabled{color:var(--mdc-filled-button-disabled-label-text-color)}.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color)}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color)}.mat-mdc-unelevated-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity)}.mat-mdc-unelevated-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity)}.mat-mdc-unelevated-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity)}.mat-mdc-unelevated-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color);background-color:var(--mdc-filled-button-disabled-container-color)}.mat-mdc-raised-button{font-family:var(--mdc-protected-button-label-text-font);font-size:var(--mdc-protected-button-label-text-size);letter-spacing:var(--mdc-protected-button-label-text-tracking);font-weight:var(--mdc-protected-button-label-text-weight);text-transform:var(--mdc-protected-button-label-text-transform);height:var(--mdc-protected-button-container-height);border-radius:var(--mdc-protected-button-container-shape);--mdc-protected-button-container-shape:4px;--mdc-protected-button-keep-touch-target:false}.mat-mdc-raised-button:not(:disabled){background-color:var(--mdc-protected-button-container-color)}.mat-mdc-raised-button:disabled{background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color)}.mat-mdc-raised-button:disabled{color:var(--mdc-protected-button-disabled-label-text-color)}.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color)}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color)}.mat-mdc-raised-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity)}.mat-mdc-raised-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity)}.mat-mdc-raised-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity)}.mat-mdc-raised-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color);background-color:var(--mdc-protected-button-disabled-container-color)}.mat-mdc-raised-button[disabled][disabled]{box-shadow:none}.mat-mdc-outlined-button{font-family:var(--mdc-outlined-button-label-text-font);font-size:var(--mdc-outlined-button-label-text-size);letter-spacing:var(--mdc-outlined-button-label-text-tracking);font-weight:var(--mdc-outlined-button-label-text-weight);text-transform:var(--mdc-outlined-button-label-text-transform);height:var(--mdc-outlined-button-container-height);border-radius:var(--mdc-outlined-button-container-shape);padding:0 15px 0 15px;border-width:var(--mdc-outlined-button-outline-width);--mdc-outlined-button-keep-touch-target:false;--mdc-outlined-button-outline-width:1px;--mdc-outlined-button-container-shape:4px}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color)}.mat-mdc-outlined-button:disabled{color:var(--mdc-outlined-button-disabled-label-text-color)}.mat-mdc-outlined-button .mdc-button__ripple{border-radius:var(--mdc-outlined-button-container-shape)}.mat-mdc-outlined-button:not(:disabled){border-color:var(--mdc-outlined-button-outline-color)}.mat-mdc-outlined-button:disabled{border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-outlined-button.mdc-button--icon-trailing{padding:0 11px 0 15px}.mat-mdc-outlined-button.mdc-button--icon-leading{padding:0 15px 0 11px}.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:var(--mdc-outlined-button-outline-width)}.mat-mdc-outlined-button .mdc-button__touch{left:calc(-1 * var(--mdc-outlined-button-outline-width));width:calc(100% + 2 * var(--mdc-outlined-button-outline-width))}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color)}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color)}.mat-mdc-outlined-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity)}.mat-mdc-outlined-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity)}.mat-mdc-outlined-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity)}.mat-mdc-outlined-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color);border-color:var(--mdc-outlined-button-disabled-outline-color)}.mat-mdc-button-base{text-decoration:none}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-outlined-button .mdc-button__label{z-index:1}.mat-mdc-button .mat-mdc-focus-indicator,.mat-mdc-unelevated-button .mat-mdc-focus-indicator,.mat-mdc-raised-button .mat-mdc-focus-indicator,.mat-mdc-outlined-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-unelevated-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-raised-button:focus .mat-mdc-focus-indicator::before,.mat-mdc-outlined-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-button .mat-mdc-button-touch-target,.mat-mdc-unelevated-button .mat-mdc-button-touch-target,.mat-mdc-raised-button .mat-mdc-button-touch-target,.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%)}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}[dir=rtl] .mat-mdc-button>.mat-icon,.mat-mdc-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}.mat-mdc-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon,.mat-mdc-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:0;margin-right:8px}.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{margin-left:0;margin-right:8px;display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem;margin-left:-4px;margin-right:8px}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:0}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon,[dir=rtl] .mat-mdc-raised-button>.mat-icon,[dir=rtl] .mat-mdc-outlined-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon[dir=rtl],.mat-mdc-raised-button>.mat-icon[dir=rtl],.mat-mdc-outlined-button>.mat-icon[dir=rtl]{margin-left:8px;margin-right:-4px}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon,.mat-mdc-raised-button .mdc-button__label+.mat-icon,.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-left:8px;margin-right:-4px}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon,.mat-mdc-unelevated-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-raised-button .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-outlined-button .mdc-button__label+.mat-icon[dir=rtl]{margin-left:-4px;margin-right:8px}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px;border-width:-1px}.mat-mdc-unelevated-button .mat-mdc-focus-indicator::before,.mat-mdc-raised-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 3px)*-1)}',N],encapsulation:2,changeDetection:0})}return Je})();const Oe=new i.OlP("mat-mdc-fab-default-options",{providedIn:"root",factory:Me});function Me(){return{color:"accent"}}const ke=Me();let Ce=(()=>{class Je extends ce{constructor(re,G,$,F,U){super(re,G,$,F),this._options=U,this._isFab=!0,this._options=this._options||ke,this.color=this._options.color||ke.color}static#e=this.\u0275fac=function(G){return new(G||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8),i.Y36(Oe,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["button","mat-fab",""]],hostVars:13,hostBindings:function(G,$){2&G&&(i.uIk("disabled",$.disabled||null),i.Tol($.color?"mat-"+$.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===$._animationMode)("mat-unthemed",!$.color)("mat-mdc-button-base",!0)("mdc-fab--extended",$.extended)("mat-mdc-extended-fab",$.extended))},inputs:{extended:["extended","extended",i.VuI]},exportAs:["matButton"],features:[i.Xq5,i.qOj],attrs:k,ngContentSelectors:T,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(G,$){1&G&&(i.F$t(y),i._UZ(0,"span",0),i.Hsn(1),i.TgZ(2,"span",1),i.Hsn(3,1),i.qZA(),i.Hsn(4,2),i._UZ(5,"span",2)(6,"span",3)),2&G&&i.ekj("mdc-button__ripple",!$._isFab)("mdc-fab__ripple",$._isFab)},styles:['.mdc-touch-target-wrapper{display:inline}.mdc-elevation-overlay{position:absolute;border-radius:inherit;pointer-events:none;opacity:var(--mdc-elevation-overlay-opacity);transition:opacity 280ms cubic-bezier(0.4, 0, 0.2, 1);background-color:var(--mdc-elevation-overlay-color)}.mdc-fab{position:relative;display:inline-flex;position:relative;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;user-select:none;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1)}.mdc-fab .mdc-elevation-overlay{width:100%;height:100%;top:0;left:0}.mdc-fab[hidden]{display:none}.mdc-fab::-moz-focus-inner{padding:0;border:0}.mdc-fab:hover{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab.mdc-ripple-upgraded--background-focused,.mdc-fab:not(.mdc-ripple-upgraded):focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mdc-fab .mdc-fab__focus-ring{position:absolute}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring{border-color:CanvasText}}.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-fab.mdc-ripple-upgraded--background-focused .mdc-fab__focus-ring::after,.mdc-fab:not(.mdc-ripple-upgraded):focus .mdc-fab__focus-ring::after{border-color:CanvasText}}.mdc-fab:active,.mdc-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mdc-fab:active,.mdc-fab:focus{outline:none}.mdc-fab:hover{cursor:pointer}.mdc-fab>svg{width:100%}.mdc-fab--mini{width:40px;height:40px}.mdc-fab--extended{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mdc-typography-button-font-family);font-size:var(--mdc-typography-button-font-size);line-height:var(--mdc-typography-button-line-height);font-weight:var(--mdc-typography-button-font-weight);letter-spacing:var(--mdc-typography-button-letter-spacing);text-decoration:var(--mdc-typography-button-text-decoration);text-transform:var(--mdc-typography-button-text-transform);border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;height:48px;line-height:normal}.mdc-fab--extended .mdc-fab__ripple{border-radius:24px}.mdc-fab--extended .mdc-fab__icon{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mdc-fab--extended .mdc-fab__icon,.mdc-fab--extended .mdc-fab__icon[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mdc-fab--extended .mdc-fab__label+.mdc-fab__icon,.mdc-fab--extended .mdc-fab__label+.mdc-fab__icon[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mdc-fab--touch{margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-fab--touch .mdc-fab__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-fab::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}@media screen and (forced-colors: active){.mdc-fab::before{border-color:CanvasText}}.mdc-fab__label{justify-content:flex-start;text-overflow:ellipsis;white-space:nowrap;overflow-x:hidden;overflow-y:visible}.mdc-fab__icon{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mdc-fab .mdc-fab__icon{display:inline-flex;align-items:center;justify-content:center}.mdc-fab--exited{transform:scale(0);opacity:0;transition:opacity 15ms linear 150ms,transform 180ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-fab--exited .mdc-fab__icon{transform:scale(0);transition:transform 135ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mat-mdc-fab,.mat-mdc-mini-fab{background-color:var(--mdc-fab-container-color)}.mat-mdc-fab .mdc-fab__icon,.mat-mdc-mini-fab .mdc-fab__icon{width:var(--mdc-fab-icon-size);height:var(--mdc-fab-icon-size);font-size:var(--mdc-fab-icon-size)}.mat-mdc-fab:not(.mdc-fab--extended),.mat-mdc-mini-fab:not(.mdc-fab--extended){border-radius:var(--mdc-fab-container-shape)}.mat-mdc-fab:not(.mdc-fab--extended) .mdc-fab__ripple,.mat-mdc-mini-fab:not(.mdc-fab--extended) .mdc-fab__ripple{border-radius:var(--mdc-fab-container-shape)}.mat-mdc-extended-fab{font-family:var(--mdc-extended-fab-label-text-font);font-size:var(--mdc-extended-fab-label-text-size);font-weight:var(--mdc-extended-fab-label-text-weight);letter-spacing:var(--mdc-extended-fab-label-text-tracking)}.mat-mdc-fab,.mat-mdc-mini-fab{-webkit-tap-highlight-color:rgba(0,0,0,0);box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);flex-shrink:0;color:var(--mat-fab-foreground-color, inherit)}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple,.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab .mat-mdc-button-ripple,.mat-mdc-mini-fab .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab .mdc-button__label,.mat-mdc-mini-fab .mdc-button__label{z-index:1}.mat-mdc-fab .mat-mdc-focus-indicator,.mat-mdc-mini-fab .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab:focus .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-fab .mat-mdc-button-touch-target,.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element,.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color)}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color)}.mat-mdc-fab:hover .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity)}.mat-mdc-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity)}.mat-mdc-fab:active .mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity)}.mat-mdc-fab._mat-animation-noopable,.mat-mdc-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab:hover,.mat-mdc-fab:focus,.mat-mdc-mini-fab:hover,.mat-mdc-mini-fab:focus{box-shadow:0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)}.mat-mdc-fab:active,.mat-mdc-fab:focus:active,.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)}.mat-mdc-fab[disabled],.mat-mdc-mini-fab[disabled]{cursor:default;pointer-events:none;box-shadow:0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);color:var(--mat-fab-disabled-state-foreground-color);background-color:var(--mat-fab-disabled-state-container-color)}.mat-mdc-fab:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-mini-fab:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}.mat-mdc-fab .mat-icon,.mat-mdc-fab .material-icons,.mat-mdc-mini-fab .mat-icon,.mat-mdc-mini-fab .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab .mat-mdc-focus-indicator::before,.mat-mdc-mini-fab .mat-mdc-focus-indicator::before{margin:calc(calc(var(--mat-mdc-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:calc(12px - 20px);margin-right:12px}[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons,.mat-mdc-extended-fab>.mat-icon[dir=rtl],.mat-mdc-extended-fab>.material-icons[dir=rtl]{margin-left:12px;margin-right:calc(12px - 20px)}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons{margin-left:12px;margin-right:calc(12px - 20px)}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab .mdc-button__label+.mat-icon[dir=rtl],.mat-mdc-extended-fab .mdc-button__label+.material-icons[dir=rtl]{margin-left:calc(12px - 20px);margin-right:12px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%}'],encapsulation:2,changeDetection:0})}return Je})(),Ct=(()=>{class Je extends ce{constructor(re,G,$,F){super(re,G,$,F),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static#e=this.\u0275fac=function(G){return new(G||Je)(i.Y36(i.SBq),i.Y36(a.t4),i.Y36(i.R0b),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:Je,selectors:[["button","mat-icon-button",""]],hostVars:9,hostBindings:function(G,$){2&G&&(i.uIk("disabled",$.disabled||null),i.Tol($.color?"mat-"+$.color:""),i.ekj("_mat-animation-noopable","NoopAnimations"===$._animationMode)("mat-unthemed",!$.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[i.qOj],attrs:C,ngContentSelectors:O,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-mdc-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(G,$){1&G&&(i.F$t(),i._UZ(0,"span",0),i.Hsn(1),i._UZ(2,"span",1)(3,"span",2))},styles:['.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block}}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button[hidden]{display:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__focus-ring{pointer-events:none;border:2px solid rgba(0,0,0,0);border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%;display:none}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring{border-color:CanvasText}}.mdc-icon-button__focus-ring::after{content:"";border:2px solid rgba(0,0,0,0);border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}@media screen and (forced-colors: active){.mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mat-mdc-icon-button{height:var(--mdc-icon-button-state-layer-size);width:var(--mdc-icon-button-state-layer-size);color:var(--mdc-icon-button-icon-color);--mdc-icon-button-state-layer-size:48px;--mdc-icon-button-icon-size:24px}.mat-mdc-icon-button .mdc-button__icon{font-size:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button svg,.mat-mdc-icon-button img{width:var(--mdc-icon-button-icon-size);height:var(--mdc-icon-button-icon-size)}.mat-mdc-icon-button:disabled{color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button{padding:12px;border-radius:50%;flex-shrink:0;text-align:center;font-size:var(--mdc-icon-button-icon-size);-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button svg{vertical-align:baseline}.mat-mdc-icon-button[disabled]{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label{z-index:1}.mat-mdc-icon-button .mat-mdc-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-icon-button:focus .mat-mdc-focus-indicator::before{content:""}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color)}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color)}.mat-mdc-icon-button:hover .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity)}.mat-mdc-icon-button.cdk-program-focused .mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity)}.mat-mdc-icon-button:active .mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity)}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}',N],encapsulation:2,changeDetection:0})}return Je})(),Wt=(()=>{class Je{static#e=this.\u0275fac=function(G){return new(G||Je)};static#t=this.\u0275mod=i.oAB({type:Je});static#n=this.\u0275inj=i.cJS({imports:[Q.BQ,Q.si,Q.BQ]})}return Je})()},9021:(Ee,w,b)=>{"use strict";b.d(w,{rD:()=>de,Y2:()=>gt,BQ:()=>Ve,wG:()=>Nt,Fq:()=>We,si:()=>dt,pj:()=>Ce,Kr:()=>De,Id:()=>ke,FD:()=>lt,sb:()=>He});var a=b(1322),i=b(8654),te=b(4877),v=b(9462),y=b(3844),T=b(5988);const ze=new a.OlP("mat-sanity-checks",{providedIn:"root",factory:function Fe(){return!0}});let Ve=(()=>{class me{constructor(B,ae,X){this._sanityChecks=ae,this._document=X,this._hasDoneGlobalChecks=!1,B._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(B){return!(0,y.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[B])}static#e=this.\u0275fac=function(ae){return new(ae||me)(a.LFG(i.qm),a.LFG(ze,8),a.LFG(v.K0))};static#t=this.\u0275mod=a.oAB({type:me});static#n=this.\u0275inj=a.cJS({imports:[te.vT,te.vT]})}return me})();function ke(me){return class extends me{get disabled(){return this._disabled}set disabled(z){this._disabled=(0,T.Ig)(z)}constructor(...z){super(...z),this._disabled=!1}}}function Ce(me,z){return class extends me{get color(){return this._color}set color(B){const ae=B||this.defaultColor;ae!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ae&&this._elementRef.nativeElement.classList.add(`mat-${ae}`),this._color=ae)}constructor(...B){super(...B),this.defaultColor=z,this.color=z}}}function De(me){return class extends me{get disableRipple(){return this._disableRipple}set disableRipple(z){this._disableRipple=(0,T.Ig)(z)}constructor(...z){super(...z),this._disableRipple=!1}}}function He(me,z=0){return class extends me{get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(B){this._tabIndex=null!=B?(0,T.su)(B):this.defaultTabIndex}constructor(...B){super(...B),this._tabIndex=z,this.defaultTabIndex=z}}}function lt(me){return class extends me{updateErrorState(){const z=this.errorState,he=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);he!==z&&(this.errorState=he,this.stateChanges.next())}constructor(...z){super(...z),this.errorState=!1}}}let de=(()=>{class me{isErrorState(B,ae){return!!(B&&B.invalid&&(B.touched||ae&&ae.submitted))}static#e=this.\u0275fac=function(ae){return new(ae||me)};static#t=this.\u0275prov=a.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})();class Ke{constructor(z,B,ae,X=!1){this._renderer=z,this.element=B,this.config=ae,this._animationForciblyDisabledThroughCss=X,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const mt=(0,y.i$)({passive:!0,capture:!0});class Ae{constructor(){this._events=new Map,this._delegateEventHandler=z=>{const B=(0,y.sA)(z);B&&this._events.get(z.type)?.forEach((ae,X)=>{(X===B||X.contains(B))&&ae.forEach(he=>he.handleEvent(z))})}}addHandler(z,B,ae,X){const he=this._events.get(B);if(he){const M=he.get(ae);M?M.add(X):he.set(ae,new Set([X]))}else this._events.set(B,new Map([[ae,new Set([X])]])),z.runOutsideAngular(()=>{document.addEventListener(B,this._delegateEventHandler,mt)})}removeHandler(z,B,ae){const X=this._events.get(z);if(!X)return;const he=X.get(B);he&&(he.delete(ae),0===he.size&&X.delete(B),0===X.size&&(this._events.delete(z),document.removeEventListener(z,this._delegateEventHandler,mt)))}}const Ge={enterDuration:225,exitDuration:150},se=(0,y.i$)({passive:!0,capture:!0}),Te=["mousedown","touchstart"],$e=["mouseup","mouseleave","touchend","touchcancel"];class it{static#e=this._eventManager=new Ae;constructor(z,B,ae,X){this._target=z,this._ngZone=B,this._platform=X,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,X.isBrowser&&(this._containerElement=(0,T.fI)(ae))}fadeInRipple(z,B,ae={}){const X=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),he={...Ge,...ae.animation};ae.centered&&(z=X.left+X.width/2,B=X.top+X.height/2);const M=ae.radius||function bt(me,z,B){const ae=Math.max(Math.abs(me-B.left),Math.abs(me-B.right)),X=Math.max(Math.abs(z-B.top),Math.abs(z-B.bottom));return Math.sqrt(ae*ae+X*X)}(z,B,X),K=z-X.left,ue=B-X.top,Pe=he.enterDuration,Qe=document.createElement("div");Qe.classList.add("mat-ripple-element"),Qe.style.left=K-M+"px",Qe.style.top=ue-M+"px",Qe.style.height=2*M+"px",Qe.style.width=2*M+"px",null!=ae.color&&(Qe.style.backgroundColor=ae.color),Qe.style.transitionDuration=`${Pe}ms`,this._containerElement.appendChild(Qe);const St=window.getComputedStyle(Qe),cn=St.transitionDuration,gn="none"===St.transitionProperty||"0s"===cn||"0s, 0s"===cn||0===X.width&&0===X.height,qt=new Ke(this,Qe,ae,gn);Qe.style.transform="scale3d(1, 1, 1)",qt.state=0,ae.persistent||(this._mostRecentTransientRipple=qt);let xt=null;return!gn&&(Pe||he.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ci=()=>this._finishRippleTransition(qt),gi=()=>this._destroyRipple(qt);Qe.addEventListener("transitionend",Ci),Qe.addEventListener("transitioncancel",gi),xt={onTransitionEnd:Ci,onTransitionCancel:gi}}),this._activeRipples.set(qt,xt),(gn||!Pe)&&this._finishRippleTransition(qt),qt}fadeOutRipple(z){if(2===z.state||3===z.state)return;const B=z.element,ae={...Ge,...z.config.animation};B.style.transitionDuration=`${ae.exitDuration}ms`,B.style.opacity="0",z.state=2,(z._animationForciblyDisabledThroughCss||!ae.exitDuration)&&this._finishRippleTransition(z)}fadeOutAll(){this._getActiveRipples().forEach(z=>z.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(z=>{z.config.persistent||z.fadeOut()})}setupTriggerEvents(z){const B=(0,T.fI)(z);!this._platform.isBrowser||!B||B===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=B,Te.forEach(ae=>{it._eventManager.addHandler(this._ngZone,ae,B,this)}))}handleEvent(z){"mousedown"===z.type?this._onMousedown(z):"touchstart"===z.type?this._onTouchStart(z):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{$e.forEach(B=>{this._triggerElement.addEventListener(B,this,se)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(z){0===z.state?this._startFadeOutTransition(z):2===z.state&&this._destroyRipple(z)}_startFadeOutTransition(z){const B=z===this._mostRecentTransientRipple,{persistent:ae}=z.config;z.state=1,!ae&&(!B||!this._isPointerDown)&&z.fadeOut()}_destroyRipple(z){const B=this._activeRipples.get(z)??null;this._activeRipples.delete(z),this._activeRipples.size||(this._containerRect=null),z===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),z.state=3,null!==B&&(z.element.removeEventListener("transitionend",B.onTransitionEnd),z.element.removeEventListener("transitioncancel",B.onTransitionCancel)),z.element.remove()}_onMousedown(z){const B=(0,i.X6)(z),ae=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!B&&!ae&&(this._isPointerDown=!0,this.fadeInRipple(z.clientX,z.clientY,this._target.rippleConfig))}_onTouchStart(z){if(!this._target.rippleDisabled&&!(0,i.yG)(z)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const B=z.changedTouches;if(B)for(let ae=0;ae<B.length;ae++)this.fadeInRipple(B[ae].clientX,B[ae].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(z=>{!z.config.persistent&&(1===z.state||z.config.terminateOnPointerUp&&0===z.state)&&z.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){const z=this._triggerElement;z&&(Te.forEach(B=>it._eventManager.removeHandler(B,z,this)),this._pointerUpEventsRegistered&&$e.forEach(B=>z.removeEventListener(B,this,se)))}}const gt=new a.OlP("mat-ripple-global-options");let Nt=(()=>{class me{get disabled(){return this._disabled}set disabled(B){B&&this.fadeOutAllNonPersistent(),this._disabled=B,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(B){this._trigger=B,this._setupTriggerEventsIfEnabled()}constructor(B,ae,X,he,M){this._elementRef=B,this._animationMode=M,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=he||{},this._rippleRenderer=new it(this,ae,B,X)}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:{...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(B,ae=0,X){return"number"==typeof B?this._rippleRenderer.fadeInRipple(B,ae,{...this.rippleConfig,...X}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...B})}static#e=this.\u0275fac=function(ae){return new(ae||me)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(y.t4),a.Y36(gt,8),a.Y36(a.QbO,8))};static#t=this.\u0275dir=a.lG2({type:me,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(ae,X){2&ae&&a.ekj("mat-ripple-unbounded",X.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return me})(),dt=(()=>{class me{static#e=this.\u0275fac=function(ae){return new(ae||me)};static#t=this.\u0275mod=a.oAB({type:me});static#n=this.\u0275inj=a.cJS({imports:[Ve,Ve]})}return me})();const wn={capture:!0},Et=["focus","click","mouseenter","touchstart"],Ot="mat-ripple-loader-uninitialized",On="mat-ripple-loader-class-name",Bn="mat-ripple-loader-centered",Vn="mat-ripple-loader-disabled";let We=(()=>{class me{constructor(){this._document=(0,a.f3M)(v.K0,{optional:!0}),this._animationMode=(0,a.f3M)(a.QbO,{optional:!0}),this._globalRippleOptions=(0,a.f3M)(gt,{optional:!0}),this._platform=(0,a.f3M)(y.t4),this._ngZone=(0,a.f3M)(a.R0b),this._hosts=new Map,this._onInteraction=B=>{if(!(B.target instanceof HTMLElement))return;const X=B.target.closest(`[${Ot}]`);X&&this._createRipple(X)},this._ngZone.runOutsideAngular(()=>{for(const B of Et)this._document?.addEventListener(B,this._onInteraction,wn)})}ngOnDestroy(){const B=this._hosts.keys();for(const ae of B)this.destroyRipple(ae);for(const ae of Et)this._document?.removeEventListener(ae,this._onInteraction,wn)}configureRipple(B,ae){B.setAttribute(Ot,""),(ae.className||!B.hasAttribute(On))&&B.setAttribute(On,ae.className||""),ae.centered&&B.setAttribute(Bn,""),ae.disabled&&B.setAttribute(Vn,"")}getRipple(B){return this._hosts.get(B)||this._createRipple(B)}setDisabled(B,ae){const X=this._hosts.get(B);X?X.disabled=ae:ae?B.setAttribute(Vn,""):B.removeAttribute(Vn)}_createRipple(B){if(!this._document)return;const ae=this._hosts.get(B);if(ae)return ae;B.querySelector(".mat-ripple")?.remove();const X=this._document.createElement("span");X.classList.add("mat-ripple",B.getAttribute(On)),B.append(X);const he=new Nt(new a.SBq(X),this._ngZone,this._platform,this._globalRippleOptions?this._globalRippleOptions:void 0,this._animationMode?this._animationMode:void 0);return he._isInitialized=!0,he.trigger=B,he.centered=B.hasAttribute(Bn),he.disabled=B.hasAttribute(Vn),this.attachRipple(B,he),he}attachRipple(B,ae){B.removeAttribute(Ot),this._hosts.set(B,ae)}destroyRipple(B){const ae=this._hosts.get(B);ae&&(ae.ngOnDestroy(),this._hosts.delete(B))}static#e=this.\u0275fac=function(ae){return new(ae||me)};static#t=this.\u0275prov=a.Yz7({token:me,factory:me.\u0275fac,providedIn:"root"})}return me})()},1238:(Ee,w,b)=>{"use strict";b.d(w,{Hw:()=>Ke,Ps:()=>mt,jv:()=>le});var a=b(1322),i=b(9021),te=b(5988),Q=b(9462),v=b(9627),y=b(7371),T=b(3276),N=b(6312),k=b(9592),W=b(4104),A=b(8412),C=b(8299),O=b(2829),R=b(4049);function ie(Ae){return(0,R.e)((Ge,ne)=>{let $e,se=null,Te=!1;se=Ge.subscribe((0,O.x)(ne,void 0,void 0,it=>{$e=(0,C.Xf)(Ae(it,ie(Ae)(Ge))),se?(se.unsubscribe(),se=null,$e.subscribe(ne)):Te=!0})),Te&&(se.unsubscribe(),se=null,$e.subscribe(ne))})}var J=b(1927),ce=b(9453),Fe=b(9224);function Ve(Ae,Ge,...ne){if(!0===Ge)return void Ae();if(!1===Ge)return;const se=new Fe.Hp({next:()=>{se.unsubscribe(),Ae()}});return(0,C.Xf)(Ge(...ne)).subscribe(se)}var Se=b(3581),Oe=b(9272),Me=b(4707);const ke=["*"];let Ce;function He(Ae){return function De(){if(void 0===Ce&&(Ce=null,typeof window<"u")){const Ae=window;void 0!==Ae.trustedTypes&&(Ce=Ae.trustedTypes.createPolicy("angular#components",{createHTML:Ge=>Ge}))}return Ce}()?.createHTML(Ae)||Ae}function lt(Ae){return Error(`Unable to find icon with the name "${Ae}"`)}function zt(Ae){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${Ae}".`)}function Wt(Ae){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${Ae}".`)}class Je{constructor(Ge,ne,se){this.url=Ge,this.svgText=ne,this.options=se}}let le=(()=>{class Ae{constructor(ne,se,Te,$e){this._httpClient=ne,this._sanitizer=se,this._errorHandler=$e,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons","mat-ligature-font"],this._document=Te}addSvgIcon(ne,se,Te){return this.addSvgIconInNamespace("",ne,se,Te)}addSvgIconLiteral(ne,se,Te){return this.addSvgIconLiteralInNamespace("",ne,se,Te)}addSvgIconInNamespace(ne,se,Te,$e){return this._addSvgIconConfig(ne,se,new Je(Te,null,$e))}addSvgIconResolver(ne){return this._resolvers.push(ne),this}addSvgIconLiteralInNamespace(ne,se,Te,$e){const it=this._sanitizer.sanitize(a.q3G.HTML,Te);if(!it)throw Wt(Te);const bt=He(it);return this._addSvgIconConfig(ne,se,new Je("",bt,$e))}addSvgIconSet(ne,se){return this.addSvgIconSetInNamespace("",ne,se)}addSvgIconSetLiteral(ne,se){return this.addSvgIconSetLiteralInNamespace("",ne,se)}addSvgIconSetInNamespace(ne,se,Te){return this._addSvgIconSetConfig(ne,new Je(se,null,Te))}addSvgIconSetLiteralInNamespace(ne,se,Te){const $e=this._sanitizer.sanitize(a.q3G.HTML,se);if(!$e)throw Wt(se);const it=He($e);return this._addSvgIconSetConfig(ne,new Je("",it,Te))}registerFontClassAlias(ne,se=ne){return this._fontCssClassesByAlias.set(ne,se),this}classNameForFontAlias(ne){return this._fontCssClassesByAlias.get(ne)||ne}setDefaultFontSetClass(...ne){return this._defaultFontSetClass=ne,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(ne){const se=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,ne);if(!se)throw zt(ne);const Te=this._cachedIconsByUrl.get(se);return Te?(0,v.of)($(Te)):this._loadSvgIconFromConfig(new Je(ne,null)).pipe((0,W.b)($e=>this._cachedIconsByUrl.set(se,$e)),(0,A.U)($e=>$($e)))}getNamedSvgIcon(ne,se=""){const Te=F(se,ne);let $e=this._svgIconConfigs.get(Te);if($e)return this._getSvgFromConfig($e);if($e=this._getIconConfigFromResolvers(se,ne),$e)return this._svgIconConfigs.set(Te,$e),this._getSvgFromConfig($e);const it=this._iconSetConfigs.get(se);return it?this._getSvgFromIconSetConfigs(ne,it):function S(Ae,Ge){const ne=(0,T.m)(Ae)?Ae:()=>Ae,se=Te=>Te.error(ne());return new y.y(Ge?Te=>Ge.schedule(se,0,Te):se)}(lt(Te))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(ne){return ne.svgText?(0,v.of)($(this._svgElementFromConfig(ne))):this._loadSvgIconFromConfig(ne).pipe((0,A.U)(se=>$(se)))}_getSvgFromIconSetConfigs(ne,se){const Te=this._extractIconWithNameFromAnySet(ne,se);if(Te)return(0,v.of)(Te);const $e=se.filter(it=>!it.svgText).map(it=>this._loadSvgIconSetFromConfig(it).pipe(ie(bt=>{const Nt=`Loading icon set URL: ${this._sanitizer.sanitize(a.q3G.RESOURCE_URL,it.url)} failed: ${bt.message}`;return this._errorHandler.handleError(new Error(Nt)),(0,v.of)(null)})));return(0,N.D)($e).pipe((0,A.U)(()=>{const it=this._extractIconWithNameFromAnySet(ne,se);if(!it)throw lt(ne);return it}))}_extractIconWithNameFromAnySet(ne,se){for(let Te=se.length-1;Te>=0;Te--){const $e=se[Te];if($e.svgText&&$e.svgText.toString().indexOf(ne)>-1){const it=this._svgElementFromConfig($e),bt=this._extractSvgIconFromSet(it,ne,$e.options);if(bt)return bt}}return null}_loadSvgIconFromConfig(ne){return this._fetchIcon(ne).pipe((0,W.b)(se=>ne.svgText=se),(0,A.U)(()=>this._svgElementFromConfig(ne)))}_loadSvgIconSetFromConfig(ne){return ne.svgText?(0,v.of)(null):this._fetchIcon(ne).pipe((0,W.b)(se=>ne.svgText=se))}_extractSvgIconFromSet(ne,se,Te){const $e=ne.querySelector(`[id="${se}"]`);if(!$e)return null;const it=$e.cloneNode(!0);if(it.removeAttribute("id"),"svg"===it.nodeName.toLowerCase())return this._setSvgAttributes(it,Te);if("symbol"===it.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(it),Te);const bt=this._svgElementFromString(He("<svg></svg>"));return bt.appendChild(it),this._setSvgAttributes(bt,Te)}_svgElementFromString(ne){const se=this._document.createElement("DIV");se.innerHTML=ne;const Te=se.querySelector("svg");if(!Te)throw Error("<svg> tag not found");return Te}_toSvgElement(ne){const se=this._svgElementFromString(He("<svg></svg>")),Te=ne.attributes;for(let $e=0;$e<Te.length;$e++){const{name:it,value:bt}=Te[$e];"id"!==it&&se.setAttribute(it,bt)}for(let $e=0;$e<ne.childNodes.length;$e++)ne.childNodes[$e].nodeType===this._document.ELEMENT_NODE&&se.appendChild(ne.childNodes[$e].cloneNode(!0));return se}_setSvgAttributes(ne,se){return ne.setAttribute("fit",""),ne.setAttribute("height","100%"),ne.setAttribute("width","100%"),ne.setAttribute("preserveAspectRatio","xMidYMid meet"),ne.setAttribute("focusable","false"),se&&se.viewBox&&ne.setAttribute("viewBox",se.viewBox),ne}_fetchIcon(ne){const{url:se,options:Te}=ne,$e=Te?.withCredentials??!1;if(!this._httpClient)throw function Ct(){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.")}();if(null==se)throw Error(`Cannot fetch icon from URL "${se}".`);const it=this._sanitizer.sanitize(a.q3G.RESOURCE_URL,se);if(!it)throw zt(se);const bt=this._inProgressUrlFetches.get(it);if(bt)return bt;const gt=this._httpClient.get(it,{responseType:"text",withCredentials:$e}).pipe((0,A.U)(Nt=>He(Nt)),(0,J.x)(()=>this._inProgressUrlFetches.delete(it)),function ze(Ae={}){const{connector:Ge=(()=>new ce.x),resetOnError:ne=!0,resetOnComplete:se=!0,resetOnRefCountZero:Te=!0}=Ae;return $e=>{let it,bt,gt,Nt=0,dt=!1,kt=!1;const wt=()=>{bt?.unsubscribe(),bt=void 0},nn=()=>{wt(),it=gt=void 0,dt=kt=!1},ui=()=>{const rt=it;nn(),rt?.unsubscribe()};return(0,R.e)((rt,Dn)=>{Nt++,!kt&&!dt&&wt();const dn=gt=gt??Ge();Dn.add(()=>{Nt--,0===Nt&&!kt&&!dt&&(bt=Ve(ui,Te))}),dn.subscribe(Dn),!it&&Nt>0&&(it=new Fe.Hp({next:Yn=>dn.next(Yn),error:Yn=>{kt=!0,wt(),bt=Ve(nn,ne,Yn),dn.error(Yn)},complete:()=>{dt=!0,wt(),bt=Ve(nn,se),dn.complete()}}),(0,C.Xf)(rt).subscribe(it))})($e)}}());return this._inProgressUrlFetches.set(it,gt),gt}_addSvgIconConfig(ne,se,Te){return this._svgIconConfigs.set(F(ne,se),Te),this}_addSvgIconSetConfig(ne,se){const Te=this._iconSetConfigs.get(ne);return Te?Te.push(se):this._iconSetConfigs.set(ne,[se]),this}_svgElementFromConfig(ne){if(!ne.svgElement){const se=this._svgElementFromString(ne.svgText);this._setSvgAttributes(se,ne.options),ne.svgElement=se}return ne.svgElement}_getIconConfigFromResolvers(ne,se){for(let Te=0;Te<this._resolvers.length;Te++){const $e=this._resolvers[Te](se,ne);if($e)return U($e)?new Je($e.url,null,$e.options):new Je($e,null)}}static#e=this.\u0275fac=function(se){return new(se||Ae)(a.LFG(Oe.eN,8),a.LFG(Me.H7),a.LFG(Q.K0,8),a.LFG(a.qLn))};static#t=this.\u0275prov=a.Yz7({token:Ae,factory:Ae.\u0275fac,providedIn:"root"})}return Ae})();function $(Ae){return Ae.cloneNode(!0)}function F(Ae,Ge){return Ae+":"+Ge}function U(Ae){return!(!Ae.url||!Ae.options)}const H=(0,i.pj)(class{constructor(Ae){this._elementRef=Ae}}),Z=new a.OlP("MAT_ICON_DEFAULT_OPTIONS"),de=new a.OlP("mat-icon-location",{providedIn:"root",factory:function ge(){const Ae=(0,a.f3M)(Q.K0),Ge=Ae?Ae.location:null;return{getPathname:()=>Ge?Ge.pathname+Ge.search:""}}}),Ne=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Be=Ne.map(Ae=>`[${Ae}]`).join(", "),Xe=/^url\(['"]?#(.*?)['"]?\)$/;let Ke=(()=>{class Ae extends H{get inline(){return this._inline}set inline(ne){this._inline=(0,te.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 se=this._cleanupFontValue(ne);se!==this._fontSet&&(this._fontSet=se,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(ne){const se=this._cleanupFontValue(ne);se!==this._fontIcon&&(this._fontIcon=se,this._updateFontIconClasses())}constructor(ne,se,Te,$e,it,bt){super(ne),this._iconRegistry=se,this._location=$e,this._errorHandler=it,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=k.w0.EMPTY,bt&&(bt.color&&(this.color=this.defaultColor=bt.color),bt.fontSet&&(this.fontSet=bt.fontSet)),Te||ne.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(ne){if(!ne)return["",""];const se=ne.split(":");switch(se.length){case 1:return["",se[0]];case 2:return se;default:throw Error(`Invalid icon name: "${ne}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const ne=this._elementsWithExternalReferences;if(ne&&ne.size){const se=this._location.getPathname();se!==this._previousPath&&(this._previousPath=se,this._prependPathToReferences(se))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(ne){this._clearSvgElement();const se=this._location.getPathname();this._previousPath=se,this._cacheChildrenWithExternalReferences(ne),this._prependPathToReferences(se),this._elementRef.nativeElement.appendChild(ne)}_clearSvgElement(){const ne=this._elementRef.nativeElement;let se=ne.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();se--;){const Te=ne.childNodes[se];(1!==Te.nodeType||"svg"===Te.nodeName.toLowerCase())&&Te.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const ne=this._elementRef.nativeElement,se=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(Te=>Te.length>0);this._previousFontSetClass.forEach(Te=>ne.classList.remove(Te)),se.forEach(Te=>ne.classList.add(Te)),this._previousFontSetClass=se,this.fontIcon!==this._previousFontIconClass&&!se.includes("mat-ligature-font")&&(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 se=this._elementsWithExternalReferences;se&&se.forEach((Te,$e)=>{Te.forEach(it=>{$e.setAttribute(it.name,`url('${ne}#${it.value}')`)})})}_cacheChildrenWithExternalReferences(ne){const se=ne.querySelectorAll(Be),Te=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let $e=0;$e<se.length;$e++)Ne.forEach(it=>{const bt=se[$e],gt=bt.getAttribute(it),Nt=gt?gt.match(Xe):null;if(Nt){let dt=Te.get(bt);dt||(dt=[],Te.set(bt,dt)),dt.push({name:it,value:Nt[1]})}})}_updateSvgIcon(ne){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),ne){const[se,Te]=this._splitIconName(ne);se&&(this._svgNamespace=se),Te&&(this._svgName=Te),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Te,se).pipe((0,Se.q)(1)).subscribe($e=>this._setSvgElement($e),$e=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${se}:${Te}! ${$e.message}`))})}}static#e=this.\u0275fac=function(se){return new(se||Ae)(a.Y36(a.SBq),a.Y36(le),a.$8M("aria-hidden"),a.Y36(de),a.Y36(a.qLn),a.Y36(Z,8))};static#t=this.\u0275cmp=a.Xpm({type:Ae,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:8,hostBindings:function(se,Te){2&se&&(a.uIk("data-mat-icon-type",Te._usingFontIcon()?"font":"svg")("data-mat-icon-name",Te._svgName||Te.fontIcon)("data-mat-icon-namespace",Te._svgNamespace||Te.fontSet)("fontIcon",Te._usingFontIcon()?Te.fontIcon:null),a.ekj("mat-icon-inline",Te.inline)("mat-icon-no-color","primary"!==Te.color&&"accent"!==Te.color&&"warn"!==Te.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[a.qOj],ngContentSelectors:ke,decls:1,vars:0,template:function(se,Te){1&se&&(a.F$t(),a.Hsn(0))},styles:["mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0})}return Ae})(),mt=(()=>{class Ae{static#e=this.\u0275fac=function(se){return new(se||Ae)};static#t=this.\u0275mod=a.oAB({type:Ae});static#n=this.\u0275inj=a.cJS({imports:[i.BQ,i.BQ]})}return Ae})()},7361:(Ee,w,b)=>{"use strict";b.d(w,{Nh:()=>ae,SP:()=>On,uD:()=>$e,uX:()=>Dn});var a=b(9462),i=b(1322),te=b(9021),Q=b(6512),v=b(8267),y=b(8654),T=b(4877),S=b(9592),N=b(9453),k=b(6058),W=b(9627),A=b(4991),C=b(8025),O=b(7371),R=b(5117),ie=b(19),J=b(4263),ce=b(5779),Fe=b(3581),ze=b(2835),Ve=b(1800),Se=b(1497),Oe=b(6e3),Me=b(5988),ke=b(9467),Ce=b(3844),De=b(7605);function He(X,he){}const lt=X=>({animationDuration:X}),Ct=(X,he)=>({value:X,params:he});function zt(X,he){1&X&&i.Hsn(0)}const Wt=["*"],Je=["tabListContainer"],le=["tabList"],re=["tabListInner"],G=["nextPaginator"],$=["previousPaginator"],F=["tabBodyWrapper"],U=["tabHeader"];function H(X,he){}function Z(X,he){if(1&X&&i.YNc(0,H,0,0,"ng-template",10),2&X){const M=i.oxw().$implicit;i.Q6J("cdkPortalOutlet",M.templateLabel)}}function de(X,he){if(1&X&&i._uU(0),2&X){const M=i.oxw().$implicit;i.Oqu(M.textLabel)}}function ge(X,he){if(1&X){const M=i.EpF();i.TgZ(0,"div",4,5),i.NdJ("click",function(){const ue=i.CHM(M),Pe=ue.$implicit,Qe=ue.$index,St=i.oxw(),Rt=i.MAs(1);return i.KtG(St._handleClick(Pe,Rt,Qe))})("cdkFocusChange",function(ue){const Qe=i.CHM(M).$index,St=i.oxw();return i.KtG(St._tabFocusChanged(ue,Qe))}),i._UZ(2,"span",6)(3,"div",7),i.TgZ(4,"span",8)(5,"span",9),i.YNc(6,Z,1,1,null,10)(7,de,1,1),i.qZA()()()}if(2&X){const M=he.$implicit,K=he.$index,ue=i.MAs(1),Pe=i.oxw();i.ekj("mdc-tab--active",Pe.selectedIndex===K),i.Q6J("id",Pe._getTabLabelId(K))("ngClass",M.labelClass)("disabled",M.disabled)("fitInkBarToContent",Pe.fitInkBarToContent),i.uIk("tabIndex",Pe._getTabIndex(K))("aria-posinset",K+1)("aria-setsize",Pe._tabs.length)("aria-controls",Pe._getTabContentId(K))("aria-selected",Pe.selectedIndex===K)("aria-label",M.ariaLabel||null)("aria-labelledby",!M.ariaLabel&&M.ariaLabelledby?M.ariaLabelledby:null),i.xp6(3),i.Q6J("matRippleTrigger",ue)("matRippleDisabled",M.disabled||Pe.disableRipple),i.xp6(3),i.um2(6,M.templateLabel?6:7)}}function Ne(X,he){if(1&X){const M=i.EpF();i.TgZ(0,"mat-tab-body",11),i.NdJ("_onCentered",function(){i.CHM(M);const ue=i.oxw();return i.KtG(ue._removeTabBodyWrapperHeight())})("_onCentering",function(ue){i.CHM(M);const Pe=i.oxw();return i.KtG(Pe._setTabBodyWrapperHeight(ue))}),i.qZA()}if(2&X){const M=he.$implicit,K=he.$index,ue=i.oxw();i.ekj("mat-mdc-tab-body-active",ue.selectedIndex===K),i.Q6J("id",ue._getTabContentId(K))("ngClass",M.bodyClass)("content",M.content)("position",M.position)("origin",M.origin)("animationDuration",ue.animationDuration)("preserveContent",ue.preserveContent),i.uIk("tabindex",null!=ue.contentTabIndex&&ue.selectedIndex===K?ue.contentTabIndex:null)("aria-labelledby",ue._getTabLabelId(K))("aria-hidden",ue.selectedIndex!==K)}}const Ke={translateTab:(0,Oe.X$)("translateTab",[(0,Oe.SB)("center, void, left-origin-center, right-origin-center",(0,Oe.oB)({transform:"none"})),(0,Oe.SB)("left",(0,Oe.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Oe.SB)("right",(0,Oe.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px",visibility:"hidden"})),(0,Oe.eR)("* => left, * => right, left => center, right => center",(0,Oe.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,Oe.eR)("void => left-origin-center",[(0,Oe.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"}),(0,Oe.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,Oe.eR)("void => right-origin-center",[(0,Oe.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"}),(0,Oe.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let mt=(()=>{class X extends Q.Pl{constructor(M,K,ue,Pe){super(M,K,Pe),this._host=ue,this._centeringSub=S.w0.EMPTY,this._leavingSub=S.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,ie.O)(this._host._isCenterPosition(this._host._position))).subscribe(M=>{M&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static#e=this.\u0275fac=function(K){return new(K||X)(i.Y36(i._Vd),i.Y36(i.s_b),i.Y36((0,i.Gpc)(()=>Ae)),i.Y36(a.K0))};static#t=this.\u0275dir=i.lG2({type:X,selectors:[["","matTabBodyHost",""]],features:[i.qOj]})}return X})(),Ae=(()=>{class X{set position(M){this._positionIndex=M,this._computePositionAnimationState()}constructor(M,K,ue){this._elementRef=M,this._dir=K,this._dirChangeSubscription=S.w0.EMPTY,this._translateTabComplete=new N.x,this._onCentering=new i.vpe,this._beforeCentering=new i.vpe,this._afterLeavingCenter=new i.vpe,this._onCentered=new i.vpe(!0),this.animationDuration="500ms",this.preserveContent=!1,K&&(this._dirChangeSubscription=K.change.subscribe(Pe=>{this._computePositionAnimationState(Pe),ue.markForCheck()})),this._translateTabComplete.pipe((0,J.x)((Pe,Qe)=>Pe.fromState===Qe.fromState&&Pe.toState===Qe.toState)).subscribe(Pe=>{this._isCenterPosition(Pe.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(Pe.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(M){const K=this._isCenterPosition(M.toState);this._beforeCentering.emit(K),K&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(M){return"center"==M||"left-origin-center"==M||"right-origin-center"==M}_computePositionAnimationState(M=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==M?"left":"right":this._positionIndex>0?"ltr"==M?"right":"left":"center"}_computePositionFromOrigin(M){const K=this._getLayoutDirection();return"ltr"==K&&M<=0||"rtl"==K&&M>0?"left-origin-center":"right-origin-center"}static#e=this.\u0275fac=function(K){return new(K||X)(i.Y36(i.SBq),i.Y36(T.Is,8),i.Y36(i.sBO))};static#t=this.\u0275cmp=i.Xpm({type:X,selectors:[["mat-tab-body"]],viewQuery:function(K,ue){if(1&K&&i.Gf(Q.Pl,5),2&K){let Pe;i.iGM(Pe=i.CRH())&&(ue._portalHost=Pe.first)}},hostAttrs:[1,"mat-mdc-tab-body"],inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-mdc-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(K,ue){1&K&&(i.TgZ(0,"div",0,1),i.NdJ("@translateTab.start",function(Qe){return ue._onTranslateTabStarted(Qe)})("@translateTab.done",function(Qe){return ue._translateTabComplete.next(Qe)}),i.YNc(2,He,0,0,"ng-template",2),i.qZA()),2&K&&i.Q6J("@translateTab",i.WLB(3,Ct,ue._position,i.VKq(1,lt,ue.animationDuration)))},dependencies:[mt],styles:['.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-mdc-tab-body-content[style*="visibility: hidden"]{display:none}'],encapsulation:2,data:{animation:[Ke.translateTab]}})}return X})();const Ge=new i.OlP("MatTabContent");let ne=(()=>{class X{constructor(M){this.template=M}static#e=this.\u0275fac=function(K){return new(K||X)(i.Y36(i.Rgc))};static#t=this.\u0275dir=i.lG2({type:X,selectors:[["","matTabContent",""]],features:[i._Bn([{provide:Ge,useExisting:X}])]})}return X})();const se=new i.OlP("MatTabLabel"),Te=new i.OlP("MAT_TAB");let $e=(()=>{class X extends Q.ig{constructor(M,K,ue){super(M,K),this._closestTab=ue}static#e=this.\u0275fac=function(K){return new(K||X)(i.Y36(i.Rgc),i.Y36(i.s_b),i.Y36(Te,8))};static#t=this.\u0275dir=i.lG2({type:X,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[i._Bn([{provide:se,useExisting:X}]),i.qOj]})}return X})();const it="mdc-tab-indicator--active",bt="mdc-tab-indicator--no-transition";class gt{constructor(he){this._items=he}hide(){this._items.forEach(he=>he.deactivateInkBar())}alignToElement(he){const M=this._items.find(ue=>ue.elementRef.nativeElement===he),K=this._currentItem;if(M!==K&&(K?.deactivateInkBar(),M)){const ue=K?.elementRef.nativeElement.getBoundingClientRect?.();M.activateInkBar(ue),this._currentItem=M}}}function Nt(X){return class extends X{constructor(...he){super(...he),this._fitToContent=!1}get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(he){const M=(0,Me.Ig)(he);this._fitToContent!==M&&(this._fitToContent=M,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(he){const M=this.elementRef.nativeElement;if(!he||!M.getBoundingClientRect||!this._inkBarContentElement)return void M.classList.add(it);const K=M.getBoundingClientRect(),ue=he.width/K.width,Pe=he.left-K.left;M.classList.add(bt),this._inkBarContentElement.style.setProperty("transform",`translateX(${Pe}px) scaleX(${ue})`),M.getBoundingClientRect(),M.classList.remove(bt),M.classList.add(it),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this.elementRef.nativeElement.classList.remove(it)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){const he=this.elementRef.nativeElement.ownerDocument||document;this._inkBarElement=he.createElement("span"),this._inkBarContentElement=he.createElement("span"),this._inkBarElement.className="mdc-tab-indicator",this._inkBarContentElement.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",this._inkBarElement.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){(this._fitToContent?this.elementRef.nativeElement.querySelector(".mdc-tab__content"):this.elementRef.nativeElement).appendChild(this._inkBarElement)}}}const wt=Nt((0,te.Id)(class{}));let nn=(()=>{class X extends wt{constructor(M){super(),this.elementRef=M}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static#e=this.\u0275fac=function(K){return new(K||X)(i.Y36(i.SBq))};static#t=this.\u0275dir=i.lG2({type:X,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(K,ue){2&K&&(i.uIk("aria-disabled",!!ue.disabled),i.ekj("mat-mdc-tab-disabled",ue.disabled))},inputs:{disabled:"disabled",fitInkBarToContent:"fitInkBarToContent"},features:[i.qOj]})}return X})();const ui=(0,te.Id)(class{}),rt=new i.OlP("MAT_TAB_GROUP");let Dn=(()=>{class X extends ui{get templateLabel(){return this._templateLabel}set templateLabel(M){this._setTemplateLabelInput(M)}get content(){return this._contentPortal}constructor(M,K){super(),this._viewContainerRef=M,this._closestTabGroup=K,this._explicitContent=void 0,this.textLabel="",this._contentPortal=null,this._stateChanges=new N.x,this.position=null,this.origin=null,this.isActive=!1}ngOnChanges(M){(M.hasOwnProperty("textLabel")||M.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Q.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(M){M&&M._closestTab===this&&(this._templateLabel=M)}static#e=this.\u0275fac=function(K){return new(K||X)(i.Y36(i.s_b),i.Y36(rt,8))};static#t=this.\u0275cmp=i.Xpm({type:X,selectors:[["mat-tab"]],contentQueries:function(K,ue,Pe){if(1&K&&(i.Suo(Pe,$e,5),i.Suo(Pe,ne,7,i.Rgc)),2&K){let Qe;i.iGM(Qe=i.CRH())&&(ue.templateLabel=Qe.first),i.iGM(Qe=i.CRH())&&(ue._explicitContent=Qe.first)}},viewQuery:function(K,ue){if(1&K&&i.Gf(i.Rgc,7),2&K){let Pe;i.iGM(Pe=i.CRH())&&(ue._implicitContent=Pe.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[i._Bn([{provide:Te,useExisting:X}]),i.qOj,i.TTD],ngContentSelectors:Wt,decls:1,vars:0,template:function(K,ue){1&K&&(i.F$t(),i.YNc(0,zt,1,0,"ng-template"))},encapsulation:2})}return X})();const dn=(0,Ce.i$)({passive:!0});let Pi=(()=>{class X{get disablePagination(){return this._disablePagination}set disablePagination(M){this._disablePagination=(0,Me.Ig)(M)}get selectedIndex(){return this._selectedIndex}set selectedIndex(M){M=(0,Me.su)(M),this._selectedIndex!=M&&(this._selectedIndexChanged=!0,this._selectedIndex=M,this._keyManager&&this._keyManager.updateActiveItem(M))}constructor(M,K,ue,Pe,Qe,St,Rt){this._elementRef=M,this._changeDetectorRef=K,this._viewportRuler=ue,this._dir=Pe,this._ngZone=Qe,this._platform=St,this._animationMode=Rt,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new N.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new N.x,this._disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new i.vpe,this.indexFocused=new i.vpe,Qe.runOutsideAngular(()=>{(0,k.R)(M.nativeElement,"mouseleave").pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}ngAfterViewInit(){(0,k.R)(this._previousPaginator.nativeElement,"touchstart",dn).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,k.R)(this._nextPaginator.nativeElement,"touchstart",dn).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const M=this._dir?this._dir.change:(0,W.of)("ltr"),K=this._viewportRuler.change(150),ue=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new y.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,Fe.q)(1)).subscribe(ue),(0,A.T)(M,K,this._items.changes,this._itemsResized()).pipe((0,ce.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),ue()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(Pe=>{this.indexFocused.emit(Pe),this._setTabFocus(Pe)})}_itemsResized(){return"function"!=typeof ResizeObserver?C.E:this._items.changes.pipe((0,ie.O)(this._items),(0,ze.w)(M=>new O.y(K=>this._ngZone.runOutsideAngular(()=>{const ue=new ResizeObserver(Pe=>K.next(Pe));return M.forEach(Pe=>ue.observe(Pe.elementRef.nativeElement)),()=>{ue.disconnect()}}))),(0,Ve.T)(1),(0,Se.h)(M=>M.some(K=>K.contentRect.width>0&&K.contentRect.height>0)))}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._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(M){if(!(0,De.Vb)(M))switch(M.keyCode){case De.K5:case De.L_:if(this.focusIndex!==this.selectedIndex){const K=this._items.get(this.focusIndex);K&&!K.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(M))}break;default:this._keyManager.onKeydown(M)}}_onContentChanges(){const M=this._elementRef.nativeElement.textContent;M!==this._currentTextContent&&(this._currentTextContent=M||"",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(M){!this._isValidIndex(M)||this.focusIndex===M||!this._keyManager||this._keyManager.setActiveItem(M)}_isValidIndex(M){return!this._items||!!this._items.toArray()[M]}_setTabFocus(M){if(this._showPaginationControls&&this._scrollToLabel(M),this._items&&this._items.length){this._items.toArray()[M].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 M=this.scrollDistance,K="ltr"===this._getLayoutDirection()?-M:M;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(M){this._scrollTo(M)}_scrollHeader(M){return this._scrollTo(this._scrollDistance+("before"==M?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(M){this._stopInterval(),this._scrollHeader(M)}_scrollToLabel(M){if(this.disablePagination)return;const K=this._items?this._items.toArray()[M]:null;if(!K)return;const ue=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:Pe,offsetWidth:Qe}=K.elementRef.nativeElement;let St,Rt;"ltr"==this._getLayoutDirection()?(St=Pe,Rt=St+Qe):(Rt=this._tabListInner.nativeElement.offsetWidth-Pe,St=Rt-Qe);const cn=this.scrollDistance,gn=this.scrollDistance+ue;St<cn?this.scrollDistance-=cn-St:Rt>gn&&(this.scrollDistance+=Math.min(Rt-gn,St-cn))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const M=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;M||(this.scrollDistance=0),M!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=M}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const M=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,K=M?M.elementRef.nativeElement:null;K?this._inkBar.alignToElement(K):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(M,K){K&&null!=K.button&&0!==K.button||(this._stopInterval(),(0,R.H)(650,100).pipe((0,ce.R)((0,A.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:ue,distance:Pe}=this._scrollHeader(M);(0===Pe||Pe>=ue)&&this._stopInterval()}))}_scrollTo(M){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const K=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(K,M)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:K,distance:this._scrollDistance}}static#e=this.\u0275fac=function(K){return new(K||X)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ke.rL),i.Y36(T.Is,8),i.Y36(i.R0b),i.Y36(Ce.t4),i.Y36(i.QbO,8))};static#t=this.\u0275dir=i.lG2({type:X,inputs:{disablePagination:"disablePagination"}})}return X})(),jt=(()=>{class X extends Pi{get disableRipple(){return this._disableRipple}set disableRipple(M){this._disableRipple=(0,Me.Ig)(M)}constructor(M,K,ue,Pe,Qe,St,Rt){super(M,K,ue,Pe,Qe,St,Rt),this._disableRipple=!1}ngAfterContentInit(){this._inkBar=new gt(this._items),super.ngAfterContentInit()}_itemSelected(M){M.preventDefault()}static#e=this.\u0275fac=function(K){return new(K||X)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(ke.rL),i.Y36(T.Is,8),i.Y36(i.R0b),i.Y36(Ce.t4),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:X,selectors:[["mat-tab-header"]],contentQueries:function(K,ue,Pe){if(1&K&&i.Suo(Pe,nn,4),2&K){let Qe;i.iGM(Qe=i.CRH())&&(ue._items=Qe)}},viewQuery:function(K,ue){if(1&K&&(i.Gf(Je,7),i.Gf(le,7),i.Gf(re,7),i.Gf(G,5),i.Gf($,5)),2&K){let Pe;i.iGM(Pe=i.CRH())&&(ue._tabListContainer=Pe.first),i.iGM(Pe=i.CRH())&&(ue._tabList=Pe.first),i.iGM(Pe=i.CRH())&&(ue._tabListInner=Pe.first),i.iGM(Pe=i.CRH())&&(ue._nextPaginator=Pe.first),i.iGM(Pe=i.CRH())&&(ue._previousPaginator=Pe.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(K,ue){2&K&&i.ekj("mat-mdc-tab-header-pagination-controls-enabled",ue._showPaginationControls)("mat-mdc-tab-header-rtl","rtl"==ue._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[i.qOj],ngContentSelectors:Wt,decls:13,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"matRippleDisabled","disabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-mdc-tab-labels"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(K,ue){1&K&&(i.F$t(),i.TgZ(0,"button",0,1),i.NdJ("click",function(){return ue._handlePaginatorClick("before")})("mousedown",function(Qe){return ue._handlePaginatorPress("before",Qe)})("touchend",function(){return ue._stopInterval()}),i._UZ(2,"div",2),i.qZA(),i.TgZ(3,"div",3,4),i.NdJ("keydown",function(Qe){return ue._handleKeydown(Qe)}),i.TgZ(5,"div",5,6),i.NdJ("cdkObserveContent",function(){return ue._onContentChanges()}),i.TgZ(7,"div",7,8),i.Hsn(9),i.qZA()()(),i.TgZ(10,"button",9,10),i.NdJ("mousedown",function(Qe){return ue._handlePaginatorPress("after",Qe)})("click",function(){return ue._handlePaginatorClick("after")})("touchend",function(){return ue._stopInterval()}),i._UZ(12,"div",2),i.qZA()),2&K&&(i.ekj("mat-mdc-tab-header-pagination-disabled",ue._disableScrollBefore),i.Q6J("matRippleDisabled",ue._disableScrollBefore||ue.disableRipple)("disabled",ue._disableScrollBefore||null),i.xp6(3),i.ekj("_mat-animation-noopable","NoopAnimations"===ue._animationMode),i.xp6(7),i.ekj("mat-mdc-tab-header-pagination-disabled",ue._disableScrollAfter),i.Q6J("matRippleDisabled",ue._disableScrollAfter||ue.disableRipple)("disabled",ue._disableScrollAfter||null))},dependencies:[te.wG,v.wD],styles:[".mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color)}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}._mat-animation-noopable span.mdc-tab-indicator__content,._mat-animation-noopable span.mdc-tab__text-label{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height);border-bottom-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height);border-top-color:var(--mat-tab-header-divider-color)}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.mat-mdc-tab::before{margin:5px}.cdk-high-contrast-active .mat-mdc-tab[aria-disabled=true]{color:GrayText}"],encapsulation:2})}return X})();const Xn=new i.OlP("MAT_TABS_CONFIG");let wn=0;const Et=(0,te.pj)((0,te.Kr)(class{constructor(X){this._elementRef=X}}),"primary");let On=(()=>{class X extends Et{get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(M){this._fitInkBarToContent=(0,Me.Ig)(M),this._changeDetectorRef.markForCheck()}get stretchTabs(){return this._stretchTabs}set stretchTabs(M){this._stretchTabs=(0,Me.Ig)(M)}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(M){this._dynamicHeight=(0,Me.Ig)(M)}get selectedIndex(){return this._selectedIndex}set selectedIndex(M){this._indexToSelect=(0,Me.su)(M,null)}get animationDuration(){return this._animationDuration}set animationDuration(M){this._animationDuration=/^\d+$/.test(M+"")?M+"ms":M}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(M){this._contentTabIndex=(0,Me.su)(M,null)}get disablePagination(){return this._disablePagination}set disablePagination(M){this._disablePagination=(0,Me.Ig)(M)}get preserveContent(){return this._preserveContent}set preserveContent(M){this._preserveContent=(0,Me.Ig)(M)}get backgroundColor(){return this._backgroundColor}set backgroundColor(M){const K=this._elementRef.nativeElement.classList;K.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),M&&K.add("mat-tabs-with-background",`mat-background-${M}`),this._backgroundColor=M}constructor(M,K,ue,Pe){super(M),this._changeDetectorRef=K,this._animationMode=Pe,this._tabs=new i.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=S.w0.EMPTY,this._tabLabelSubscription=S.w0.EMPTY,this._fitInkBarToContent=!1,this._stretchTabs=!0,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this._disablePagination=!1,this._preserveContent=!1,this.selectedIndexChange=new i.vpe,this.focusChange=new i.vpe,this.animationDone=new i.vpe,this.selectedTabChange=new i.vpe(!0),this._groupId=wn++,this.animationDuration=ue&&ue.animationDuration?ue.animationDuration:"500ms",this.disablePagination=!(!ue||null==ue.disablePagination)&&ue.disablePagination,this.dynamicHeight=!(!ue||null==ue.dynamicHeight)&&ue.dynamicHeight,this.contentTabIndex=ue?.contentTabIndex??null,this.preserveContent=!!ue?.preserveContent,this.fitInkBarToContent=!(!ue||null==ue.fitInkBarToContent)&&ue.fitInkBarToContent,this.stretchTabs=!ue||null==ue.stretchTabs||ue.stretchTabs}ngAfterContentChecked(){const M=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=M){const K=null==this._selectedIndex;if(!K){this.selectedTabChange.emit(this._createChangeEvent(M));const ue=this._tabBodyWrapper.nativeElement;ue.style.minHeight=ue.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((ue,Pe)=>ue.isActive=Pe===M),K||(this.selectedIndexChange.emit(M),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((K,ue)=>{K.position=ue-M,null!=this._selectedIndex&&0==K.position&&!K.origin&&(K.origin=M-this._selectedIndex)}),this._selectedIndex!==M&&(this._selectedIndex=M,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const M=this._clampTabIndex(this._indexToSelect);if(M===this._selectedIndex){const K=this._tabs.toArray();let ue;for(let Pe=0;Pe<K.length;Pe++)if(K[Pe].isActive){this._indexToSelect=this._selectedIndex=Pe,this._lastFocusedTabIndex=null,ue=K[Pe];break}!ue&&K[M]&&Promise.resolve().then(()=>{K[M].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(M))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,ie.O)(this._allTabs)).subscribe(M=>{this._tabs.reset(M.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()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(M){const K=this._tabHeader;K&&(K.focusIndex=M)}_focusChanged(M){this._lastFocusedTabIndex=M,this.focusChange.emit(this._createChangeEvent(M))}_createChangeEvent(M){const K=new Bn;return K.index=M,this._tabs&&this._tabs.length&&(K.tab=this._tabs.toArray()[M]),K}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,A.T)(...this._tabs.map(M=>M._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(M){return Math.min(this._tabs.length-1,Math.max(M||0,0))}_getTabLabelId(M){return`mat-tab-label-${this._groupId}-${M}`}_getTabContentId(M){return`mat-tab-content-${this._groupId}-${M}`}_setTabBodyWrapperHeight(M){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const K=this._tabBodyWrapper.nativeElement;K.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(K.style.height=M+"px")}_removeTabBodyWrapperHeight(){const M=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=M.clientHeight,M.style.height="",this.animationDone.emit()}_handleClick(M,K,ue){K.focusIndex=ue,M.disabled||(this.selectedIndex=ue)}_getTabIndex(M){return M===(this._lastFocusedTabIndex??this.selectedIndex)?0:-1}_tabFocusChanged(M,K){M&&"mouse"!==M&&"touch"!==M&&(this._tabHeader.focusIndex=K)}static#e=this.\u0275fac=function(K){return new(K||X)(i.Y36(i.SBq),i.Y36(i.sBO),i.Y36(Xn,8),i.Y36(i.QbO,8))};static#t=this.\u0275cmp=i.Xpm({type:X,selectors:[["mat-tab-group"]],contentQueries:function(K,ue,Pe){if(1&K&&i.Suo(Pe,Dn,5),2&K){let Qe;i.iGM(Qe=i.CRH())&&(ue._allTabs=Qe)}},viewQuery:function(K,ue){if(1&K&&(i.Gf(F,5),i.Gf(U,5)),2&K){let Pe;i.iGM(Pe=i.CRH())&&(ue._tabBodyWrapper=Pe.first),i.iGM(Pe=i.CRH())&&(ue._tabHeader=Pe.first)}},hostAttrs:["ngSkipHydration","",1,"mat-mdc-tab-group"],hostVars:8,hostBindings:function(K,ue){2&K&&(i.Udp("--mat-tab-animation-duration",ue.animationDuration),i.ekj("mat-mdc-tab-group-dynamic-height",ue.dynamicHeight)("mat-mdc-tab-group-inverted-header","below"===ue.headerPosition)("mat-mdc-tab-group-stretch-tabs",ue.stretchTabs))},inputs:{color:"color",disableRipple:"disableRipple",fitInkBarToContent:"fitInkBarToContent",stretchTabs:["mat-stretch-tabs","stretchTabs"],dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",preserveContent:"preserveContent",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[i._Bn([{provide:rt,useExisting:X}]),i.qOj],decls:8,vars:5,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],[1,"mat-mdc-tab-body-wrapper"],["tabBodyWrapper",""],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-mdc-focus-indicator",3,"id","ngClass","disabled","fitInkBarToContent","click","cdkFocusChange"],["tabNode",""],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","preserveContent","_onCentered","_onCentering"],["class","mdc-tab mat-mdc-tab mat-mdc-focus-indicator","role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",3,"id","mdc-tab--active","ngClass","disabled","fitInkBarToContent"],["role","tabpanel",3,"id","mat-mdc-tab-body-active","ngClass","content","position","origin","animationDuration","preserveContent"]],template:function(K,ue){1&K&&(i.TgZ(0,"mat-tab-header",0,1),i.NdJ("indexFocused",function(Qe){return ue._focusChanged(Qe)})("selectFocusedIndex",function(Qe){return ue.selectedIndex=Qe}),i.SjG(2,ge,8,16,"div",12,i.x6l),i.qZA(),i.TgZ(4,"div",2,3),i.SjG(6,Ne,1,12,"mat-tab-body",13,i.x6l),i.qZA()),2&K&&(i.Q6J("selectedIndex",ue.selectedIndex||0)("disableRipple",ue.disableRipple)("disablePagination",ue.disablePagination),i.xp6(2),i.wJu(ue._tabs),i.xp6(2),i.ekj("_mat-animation-noopable","NoopAnimations"===ue._animationMode),i.xp6(2),i.wJu(ue._tabs))},dependencies:[a.mk,Q.Pl,te.wG,y.kH,Ae,nn,jt],styles:['.mdc-tab{min-width:90px;padding-right:24px;padding-left:24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;margin:0;padding-top:0;padding-bottom:0;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;-webkit-appearance:none;z-index:1}.mdc-tab::-moz-focus-inner{padding:0;border:0}.mdc-tab[hidden]{display:none}.mdc-tab--min-width{flex:0 1 auto}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab__icon{transition:150ms color linear;z-index:2}.mdc-tab--stacked .mdc-tab__content{flex-direction:column;align-items:center;justify-content:center}.mdc-tab--stacked .mdc-tab__text-label{padding-top:6px;padding-bottom:4px}.mdc-tab--active .mdc-tab__text-label,.mdc-tab--active .mdc-tab__icon{transition-delay:100ms}.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label{padding-left:8px;padding-right:0}[dir=rtl] .mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label,.mdc-tab:not(.mdc-tab--stacked) .mdc-tab__icon+.mdc-tab__text-label[dir=rtl]{padding-left:0;padding-right:8px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;font-family:var(--mat-tab-header-label-text-font);font-size:var(--mat-tab-header-label-text-size);letter-spacing:var(--mat-tab-header-label-text-tracking);line-height:var(--mat-tab-header-label-text-line-height);font-weight:var(--mat-tab-header-label-text-weight)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-top-width:var(--mdc-tab-indicator-active-indicator-height)}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-radius:var(--mdc-tab-indicator-active-indicator-shape)}.mat-mdc-tab:not(.mdc-tab--stacked){height:var(--mdc-secondary-navigation-tab-container-height)}.mat-mdc-tab:not(:disabled).mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled.mdc-tab--active .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):hover:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):focus:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:not(:disabled):active:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab:disabled:not(.mdc-tab--active) .mdc-tab__icon{fill:currentColor}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color)}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color)}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color)}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color)}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color)}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color);display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color)}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}'],encapsulation:2})}return X})();class Bn{}let ae=(()=>{class X{static#e=this.\u0275fac=function(K){return new(K||X)};static#t=this.\u0275mod=i.oAB({type:X});static#n=this.\u0275inj=i.cJS({imports:[a.ez,te.BQ,Q.eL,te.si,v.Q8,y.rt,te.BQ]})}return X})()},4707:(Ee,w,b)=>{"use strict";b.d(w,{H7:()=>wn,b2:()=>Ge,q6:()=>Xe,se:()=>ke});var a=b(1322),i=b(9462);class te extends i.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Q extends te{static makeCurrent(){(0,i.HT)(new Q)}onAndCancel(he,M,K){return he.addEventListener(M,K),()=>{he.removeEventListener(M,K)}}dispatchEvent(he,M){he.dispatchEvent(M)}remove(he){he.parentNode&&he.parentNode.removeChild(he)}createElement(he,M){return(M=M||this.getDefaultDocument()).createElement(he)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(he){return he.nodeType===Node.ELEMENT_NODE}isShadowRoot(he){return he instanceof DocumentFragment}getGlobalEventTarget(he,M){return"window"===M?window:"document"===M?he:"body"===M?he.body:null}getBaseHref(he){const M=function y(){return v=v||document.querySelector("base"),v?v.getAttribute("href"):null}();return null==M?null:function T(X){return new URL(X,document.baseURI).pathname}(M)}resetBaseElement(){v=null}getUserAgent(){return window.navigator.userAgent}getCookie(he){return(0,i.Mx)(document.cookie,he)}}let v=null,N=(()=>{class X{build(){return new XMLHttpRequest}static#e=this.\u0275fac=function(K){return new(K||X)};static#t=this.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac})}return X})();const k=new a.OlP("EventManagerPlugins");let W=(()=>{class X{constructor(M,K){this._zone=K,this._eventNameToPlugin=new Map,M.forEach(ue=>{ue.manager=this}),this._plugins=M.slice().reverse()}addEventListener(M,K,ue){return this._findPluginFor(K).addEventListener(M,K,ue)}getZone(){return this._zone}_findPluginFor(M){let K=this._eventNameToPlugin.get(M);if(K)return K;if(K=this._plugins.find(Pe=>Pe.supports(M)),!K)throw new a.vHH(5101,!1);return this._eventNameToPlugin.set(M,K),K}static#e=this.\u0275fac=function(K){return new(K||X)(a.LFG(k),a.LFG(a.R0b))};static#t=this.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac})}return X})();class A{constructor(he){this._doc=he}}const C="ng-app-id";let O=(()=>{class X{constructor(M,K,ue,Pe={}){this.doc=M,this.appId=K,this.nonce=ue,this.platformId=Pe,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,i.PM)(Pe),this.resetHostNodes()}addStyles(M){for(const K of M)1===this.changeUsageCount(K,1)&&this.onStyleAdded(K)}removeStyles(M){for(const K of M)this.changeUsageCount(K,-1)<=0&&this.onStyleRemoved(K)}ngOnDestroy(){const M=this.styleNodesInDOM;M&&(M.forEach(K=>K.remove()),M.clear());for(const K of this.getAllStyles())this.onStyleRemoved(K);this.resetHostNodes()}addHost(M){this.hostNodes.add(M);for(const K of this.getAllStyles())this.addStyleToHost(M,K)}removeHost(M){this.hostNodes.delete(M)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(M){for(const K of this.hostNodes)this.addStyleToHost(K,M)}onStyleRemoved(M){const K=this.styleRef;K.get(M)?.elements?.forEach(ue=>ue.remove()),K.delete(M)}collectServerRenderedStyles(){const M=this.doc.head?.querySelectorAll(`style[${C}="${this.appId}"]`);if(M?.length){const K=new Map;return M.forEach(ue=>{null!=ue.textContent&&K.set(ue.textContent,ue)}),K}return null}changeUsageCount(M,K){const ue=this.styleRef;if(ue.has(M)){const Pe=ue.get(M);return Pe.usage+=K,Pe.usage}return ue.set(M,{usage:K,elements:[]}),K}getStyleElement(M,K){const ue=this.styleNodesInDOM,Pe=ue?.get(K);if(Pe?.parentNode===M)return ue.delete(K),Pe.removeAttribute(C),Pe;{const Qe=this.doc.createElement("style");return this.nonce&&Qe.setAttribute("nonce",this.nonce),Qe.textContent=K,this.platformIsServer&&Qe.setAttribute(C,this.appId),M.appendChild(Qe),Qe}}addStyleToHost(M,K){const ue=this.getStyleElement(M,K),Pe=this.styleRef,Qe=Pe.get(K)?.elements;Qe?Qe.push(ue):Pe.set(K,{elements:[ue],usage:1})}resetHostNodes(){const M=this.hostNodes;M.clear(),M.add(this.doc.head)}static#e=this.\u0275fac=function(K){return new(K||X)(a.LFG(i.K0),a.LFG(a.AFp),a.LFG(a.Ojb,8),a.LFG(a.Lbi))};static#t=this.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac})}return X})();const R={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ie=/%COMP%/g,J="%COMP%",ce=`_nghost-${J}`,Fe=`_ngcontent-${J}`,Ve=new a.OlP("RemoveStylesOnCompDestroy",{providedIn:"root",factory:()=>!0});function Me(X,he){return he.map(M=>M.replace(ie,X))}let ke=(()=>{class X{constructor(M,K,ue,Pe,Qe,St,Rt,cn=null){this.eventManager=M,this.sharedStylesHost=K,this.appId=ue,this.removeStylesOnCompDestroy=Pe,this.doc=Qe,this.platformId=St,this.ngZone=Rt,this.nonce=cn,this.rendererByCompId=new Map,this.platformIsServer=(0,i.PM)(St),this.defaultRenderer=new Ce(M,Qe,Rt,this.platformIsServer)}createRenderer(M,K){if(!M||!K)return this.defaultRenderer;this.platformIsServer&&K.encapsulation===a.ifc.ShadowDom&&(K={...K,encapsulation:a.ifc.Emulated});const ue=this.getOrCreateRenderer(M,K);return ue instanceof Wt?ue.applyToHost(M):ue instanceof zt&&ue.applyStyles(),ue}getOrCreateRenderer(M,K){const ue=this.rendererByCompId;let Pe=ue.get(K.id);if(!Pe){const Qe=this.doc,St=this.ngZone,Rt=this.eventManager,cn=this.sharedStylesHost,gn=this.removeStylesOnCompDestroy,qt=this.platformIsServer;switch(K.encapsulation){case a.ifc.Emulated:Pe=new Wt(Rt,cn,K,this.appId,gn,Qe,St,qt);break;case a.ifc.ShadowDom:return new Ct(Rt,cn,M,K,Qe,St,this.nonce,qt);default:Pe=new zt(Rt,cn,K,gn,Qe,St,qt)}ue.set(K.id,Pe)}return Pe}ngOnDestroy(){this.rendererByCompId.clear()}static#e=this.\u0275fac=function(K){return new(K||X)(a.LFG(W),a.LFG(O),a.LFG(a.AFp),a.LFG(Ve),a.LFG(i.K0),a.LFG(a.Lbi),a.LFG(a.R0b),a.LFG(a.Ojb))};static#t=this.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac})}return X})();class Ce{constructor(he,M,K,ue){this.eventManager=he,this.doc=M,this.ngZone=K,this.platformIsServer=ue,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(he,M){return M?this.doc.createElementNS(R[M]||M,he):this.doc.createElement(he)}createComment(he){return this.doc.createComment(he)}createText(he){return this.doc.createTextNode(he)}appendChild(he,M){(lt(he)?he.content:he).appendChild(M)}insertBefore(he,M,K){he&&(lt(he)?he.content:he).insertBefore(M,K)}removeChild(he,M){he&&he.removeChild(M)}selectRootElement(he,M){let K="string"==typeof he?this.doc.querySelector(he):he;if(!K)throw new a.vHH(-5104,!1);return M||(K.textContent=""),K}parentNode(he){return he.parentNode}nextSibling(he){return he.nextSibling}setAttribute(he,M,K,ue){if(ue){M=ue+":"+M;const Pe=R[ue];Pe?he.setAttributeNS(Pe,M,K):he.setAttribute(M,K)}else he.setAttribute(M,K)}removeAttribute(he,M,K){if(K){const ue=R[K];ue?he.removeAttributeNS(ue,M):he.removeAttribute(`${K}:${M}`)}else he.removeAttribute(M)}addClass(he,M){he.classList.add(M)}removeClass(he,M){he.classList.remove(M)}setStyle(he,M,K,ue){ue&(a.JOm.DashCase|a.JOm.Important)?he.style.setProperty(M,K,ue&a.JOm.Important?"important":""):he.style[M]=K}removeStyle(he,M,K){K&a.JOm.DashCase?he.style.removeProperty(M):he.style[M]=""}setProperty(he,M,K){null!=he&&(he[M]=K)}setValue(he,M){he.nodeValue=M}listen(he,M,K){if("string"==typeof he&&!(he=(0,i.q)().getGlobalEventTarget(this.doc,he)))throw new Error(`Unsupported event target ${he} for event ${M}`);return this.eventManager.addEventListener(he,M,this.decoratePreventDefault(K))}decoratePreventDefault(he){return M=>{if("__ngUnwrap__"===M)return he;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>he(M)):he(M))&&M.preventDefault()}}}function lt(X){return"TEMPLATE"===X.tagName&&void 0!==X.content}class Ct extends Ce{constructor(he,M,K,ue,Pe,Qe,St,Rt){super(he,Pe,Qe,Rt),this.sharedStylesHost=M,this.hostEl=K,this.shadowRoot=K.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const cn=Me(ue.id,ue.styles);for(const gn of cn){const qt=document.createElement("style");St&&qt.setAttribute("nonce",St),qt.textContent=gn,this.shadowRoot.appendChild(qt)}}nodeOrShadowRoot(he){return he===this.hostEl?this.shadowRoot:he}appendChild(he,M){return super.appendChild(this.nodeOrShadowRoot(he),M)}insertBefore(he,M,K){return super.insertBefore(this.nodeOrShadowRoot(he),M,K)}removeChild(he,M){return super.removeChild(this.nodeOrShadowRoot(he),M)}parentNode(he){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(he)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class zt extends Ce{constructor(he,M,K,ue,Pe,Qe,St,Rt){super(he,Pe,Qe,St),this.sharedStylesHost=M,this.removeStylesOnCompDestroy=ue,this.styles=Rt?Me(Rt,K.styles):K.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class Wt extends zt{constructor(he,M,K,ue,Pe,Qe,St,Rt){const cn=ue+"-"+K.id;super(he,M,K,Pe,Qe,St,Rt,cn),this.contentAttr=function Se(X){return Fe.replace(ie,X)}(cn),this.hostAttr=function Oe(X){return ce.replace(ie,X)}(cn)}applyToHost(he){this.applyStyles(),this.setAttribute(he,this.hostAttr,"")}createElement(he,M){const K=super.createElement(he,M);return super.setAttribute(K,this.contentAttr,""),K}}let Je=(()=>{class X extends A{constructor(M){super(M)}supports(M){return!0}addEventListener(M,K,ue){return M.addEventListener(K,ue,!1),()=>this.removeEventListener(M,K,ue)}removeEventListener(M,K,ue){return M.removeEventListener(K,ue)}static#e=this.\u0275fac=function(K){return new(K||X)(a.LFG(i.K0))};static#t=this.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac})}return X})();const le=["alt","control","meta","shift"],re={"\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"},G={alt:X=>X.altKey,control:X=>X.ctrlKey,meta:X=>X.metaKey,shift:X=>X.shiftKey};let $=(()=>{class X extends A{constructor(M){super(M)}supports(M){return null!=X.parseEventName(M)}addEventListener(M,K,ue){const Pe=X.parseEventName(K),Qe=X.eventCallback(Pe.fullKey,ue,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,i.q)().onAndCancel(M,Pe.domEventName,Qe))}static parseEventName(M){const K=M.toLowerCase().split("."),ue=K.shift();if(0===K.length||"keydown"!==ue&&"keyup"!==ue)return null;const Pe=X._normalizeKey(K.pop());let Qe="",St=K.indexOf("code");if(St>-1&&(K.splice(St,1),Qe="code."),le.forEach(cn=>{const gn=K.indexOf(cn);gn>-1&&(K.splice(gn,1),Qe+=cn+".")}),Qe+=Pe,0!=K.length||0===Pe.length)return null;const Rt={};return Rt.domEventName=ue,Rt.fullKey=Qe,Rt}static matchEventFullKeyCode(M,K){let ue=re[M.key]||M.key,Pe="";return K.indexOf("code.")>-1&&(ue=M.code,Pe="code."),!(null==ue||!ue)&&(ue=ue.toLowerCase()," "===ue?ue="space":"."===ue&&(ue="dot"),le.forEach(Qe=>{Qe!==ue&&(0,G[Qe])(M)&&(Pe+=Qe+".")}),Pe+=ue,Pe===K)}static eventCallback(M,K,ue){return Pe=>{X.matchEventFullKeyCode(Pe,M)&&ue.runGuarded(()=>K(Pe))}}static _normalizeKey(M){return"esc"===M?"escape":M}static#e=this.\u0275fac=function(K){return new(K||X)(a.LFG(i.K0))};static#t=this.\u0275prov=a.Yz7({token:X,factory:X.\u0275fac})}return X})();const Xe=(0,a.eFA)(a._c5,"browser",[{provide:a.Lbi,useValue:i.bD},{provide:a.g9A,useValue:function de(){Q.makeCurrent()},multi:!0},{provide:i.K0,useFactory:function Ne(){return(0,a.RDi)(document),document},deps:[]}]),Ke=new a.OlP(""),mt=[{provide:a.rWj,useClass:class S{addToWindow(he){a.dqk.getAngularTestability=(K,ue=!0)=>{const Pe=he.findTestabilityInTree(K,ue);if(null==Pe)throw new a.vHH(5103,!1);return Pe},a.dqk.getAllAngularTestabilities=()=>he.getAllTestabilities(),a.dqk.getAllAngularRootElements=()=>he.getAllRootElements(),a.dqk.frameworkStabilizers||(a.dqk.frameworkStabilizers=[]),a.dqk.frameworkStabilizers.push(K=>{const ue=a.dqk.getAllAngularTestabilities();let Pe=ue.length,Qe=!1;const St=function(Rt){Qe=Qe||Rt,Pe--,0==Pe&&K(Qe)};ue.forEach(Rt=>{Rt.whenStable(St)})})}findTestabilityInTree(he,M,K){return null==M?null:he.getTestability(M)??(K?(0,i.q)().isShadowRoot(M)?this.findTestabilityInTree(he,M.host,!0):this.findTestabilityInTree(he,M.parentElement,!0):null)}},deps:[]},{provide:a.lri,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]},{provide:a.dDg,useClass:a.dDg,deps:[a.R0b,a.eoX,a.rWj]}],Ae=[{provide:a.zSh,useValue:"root"},{provide:a.qLn,useFactory:function ge(){return new a.qLn},deps:[]},{provide:k,useClass:Je,multi:!0,deps:[i.K0,a.R0b,a.Lbi]},{provide:k,useClass:$,multi:!0,deps:[i.K0]},ke,O,W,{provide:a.FYo,useExisting:ke},{provide:i.JF,useClass:N,deps:[]},[]];let Ge=(()=>{class X{constructor(M){}static withServerTransition(M){return{ngModule:X,providers:[{provide:a.AFp,useValue:M.appId}]}}static#e=this.\u0275fac=function(K){return new(K||X)(a.LFG(Ke,12))};static#t=this.\u0275mod=a.oAB({type:X});static#n=this.\u0275inj=a.cJS({providers:[...Ae,...mt],imports:[i.ez,a.hGG]})}return X})();typeof window<"u"&&window;let wn=(()=>{class X{static#e=this.\u0275fac=function(K){return new(K||X)};static#t=this.\u0275prov=a.Yz7({token:X,factory:function(K){let ue=null;return ue=K?new(K||X):a.LFG(Ot),ue},providedIn:"root"})}return X})(),Ot=(()=>{class X extends wn{constructor(M){super(),this._doc=M}sanitize(M,K){if(null==K)return null;switch(M){case a.q3G.NONE:return K;case a.q3G.HTML:return(0,a.qzn)(K,"HTML")?(0,a.z3N)(K):(0,a.EiD)(this._doc,String(K)).toString();case a.q3G.STYLE:return(0,a.qzn)(K,"Style")?(0,a.z3N)(K):K;case a.q3G.SCRIPT:if((0,a.qzn)(K,"Script"))return(0,a.z3N)(K);throw new a.vHH(5200,!1);case a.q3G.URL:return(0,a.qzn)(K,"URL")?(0,a.z3N)(K):(0,a.mCW)(String(K));case a.q3G.RESOURCE_URL:if((0,a.qzn)(K,"ResourceURL"))return(0,a.z3N)(K);throw new a.vHH(5201,!1);default:throw new a.vHH(5202,!1)}}bypassSecurityTrustHtml(M){return(0,a.JVY)(M)}bypassSecurityTrustStyle(M){return(0,a.L6k)(M)}bypassSecurityTrustScript(M){return(0,a.eBb)(M)}bypassSecurityTrustUrl(M){return(0,a.LAX)(M)}bypassSecurityTrustResourceUrl(M){return(0,a.pB0)(M)}static#e=this.\u0275fac=function(K){return new(K||X)(a.LFG(i.K0))};static#t=this.\u0275prov=a.Yz7({token:X,factory:function(K){let ue=null;return ue=K?new K:function Et(X){return new Ot(X.get(i.K0))}(a.LFG(a.zs3)),ue},providedIn:"root"})}return X})()},9309:(Ee,w,b)=>{"use strict";b.d(w,{F_:()=>N,T2:()=>A,nm:()=>O});var a=b(1322),i=b(1497),te=b(3581),Q=b(1625),v=b(8832);const y=["editor"],N="MONACO_PATH";let k=(()=>{class R{constructor(J,ce){this.ngZone=J,this.monacoPathConfig=ce,this.isMonacoLoaded$=new Q.X(!1),this._monacoPath="assets/monaco-editor/min/vs",window.monacoEditorAlreadyInitialized?J.run(()=>this.isMonacoLoaded$.next(!0)):(window.monacoEditorAlreadyInitialized=!0,this.monacoPathConfig&&(this.monacoPath=this.monacoPathConfig),this.loadMonaco())}set monacoPath(J){J&&(this._monacoPath=J)}loadMonaco(){const J=()=>{let Ve=this._monacoPath;window.amdRequire=window.require;const Se=!!this.nodeRequire,Oe=Ve.includes("http");Se&&(window.require=this.nodeRequire,Oe||(Ve=window.require("path").resolve(window.__dirname,this._monacoPath))),window.amdRequire.config({paths:{vs:Ve}}),window.amdRequire(["vs/editor/editor.main"],()=>{this.ngZone.run(()=>this.isMonacoLoaded$.next(!0))},Me=>console.error("Error loading monaco-editor: ",Me))};if(window.amdRequire)return J();window.require&&(this.addElectronFixScripts(),this.nodeRequire=window.require);const ze=document.createElement("script");ze.type="text/javascript",ze.src=`${this._monacoPath}/loader.js`,ze.addEventListener("load",J),document.body.appendChild(ze)}addElectronFixScripts(){const J=document.createElement("script"),ce=document.createTextNode("self.module = undefined;"),Fe=document.createTextNode("self.process.browser = true;");J.appendChild(ce),J.appendChild(Fe),document.body.appendChild(J)}}return R.\u0275fac=function(J){return new(J||R)(a.LFG(a.R0b),a.LFG(N,8))},R.\u0275prov=a.Yz7({token:R,factory:R.\u0275fac,providedIn:"root"}),R})(),A=(()=>{class R{constructor(J){this.monacoLoader=J,this.init=new a.vpe,this.onTouched=()=>{},this.onErrorStatusChange=()=>{},this.propagateChange=()=>{}}get model(){return this.editor&&this.editor.getModel()}get modelMarkers(){return this.model&&monaco.editor.getModelMarkers({resource:this.model.uri})}ngOnInit(){this.monacoLoader.isMonacoLoaded$.pipe((0,i.h)(J=>J),(0,te.q)(1)).subscribe(()=>{this.initEditor()})}ngOnChanges(J){if(this.editor&&J.options&&!J.options.firstChange){const{language:ce,theme:Fe,...ze}=J.options.currentValue,{language:Ve,theme:Se}=J.options.previousValue;Ve!==ce&&monaco.editor.setModelLanguage(this.editor.getModel(),this.options&&this.options.language?this.options.language:"text"),Se!==Fe&&monaco.editor.setTheme(Fe),this.editor.updateOptions(ze)}if(this.editor&&J.uri){const ce=J.uri.currentValue,Fe=J.uri.previousValue;if(Fe&&!ce||!Fe&&ce||ce&&Fe&&ce.path!==Fe.path){const ze=this.editor.getValue();let Ve;this.modelUriInstance&&this.modelUriInstance.dispose(),ce&&(Ve=monaco.editor.getModels().find(Se=>Se.uri.path===ce.path)),this.modelUriInstance=Ve||monaco.editor.createModel(ze,this.options.language||"text",this.uri),this.editor.setModel(this.modelUriInstance)}}}writeValue(J){this.value=J,this.editor&&J?this.editor.setValue(J):this.editor&&this.editor.setValue("")}registerOnChange(J){this.propagateChange=J}registerOnTouched(J){this.onTouched=J}validate(){return this.parsedError?{monaco:{value:this.parsedError.split("|")}}:null}registerOnValidatorChange(J){this.onErrorStatusChange=J}initEditor(){const J={value:[this.value].join("\n"),language:"text",automaticLayout:!0,scrollBeyondLastLine:!1,theme:"vc"};this.editor=monaco.editor.create(this.editorContent.nativeElement,this.options?{...J,...this.options}:J),this.registerEditorListeners(),this.init.emit(this.editor)}registerEditorListeners(){this.editor.onDidChangeModelContent(()=>{this.propagateChange(this.editor.getValue())}),this.editor.onDidChangeModelDecorations(()=>{const J=this.modelMarkers.map(({message:Fe})=>Fe).join("|");this.parsedError!==J&&(this.parsedError=J,this.onErrorStatusChange())}),this.editor.onDidBlurEditorText(()=>{this.onTouched()})}ngOnDestroy(){this.editor&&this.editor.dispose()}}return R.\u0275fac=function(J){return new(J||R)(a.Y36(k))},R.\u0275cmp=a.Xpm({type:R,selectors:[["ngx-monaco-editor"]],viewQuery:function(J,ce){if(1&J&&a.Gf(y,7),2&J){let Fe;a.iGM(Fe=a.CRH())&&(ce.editorContent=Fe.first)}},inputs:{options:"options",uri:"uri"},outputs:{init:"init"},features:[a._Bn([{provide:v.JU,useExisting:(0,a.Gpc)(()=>R),multi:!0},{provide:v.Cf,useExisting:(0,a.Gpc)(()=>R),multi:!0}]),a.TTD],decls:4,vars:0,consts:[["fxFlex","",1,"editor-container"],["container",""],[1,"monaco-editor"],["editor",""]],template:function(J,ce){1&J&&(a.TgZ(0,"div",0,1),a._UZ(2,"div",2,3),a.qZA())},styles:[".monaco-editor[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0}.editor-container[_ngcontent-%COMP%]{overflow:hidden;position:relative;display:table;width:100%;height:100%;min-width:0}"],changeDetection:0}),R})(),O=(()=>{class R{}return R.\u0275fac=function(J){return new(J||R)},R.\u0275mod=a.oAB({type:R}),R.\u0275inj=a.cJS({imports:[[]]}),R})()},534:(Ee,w,b)=>{"use strict";b.d(w,{Mq:()=>Je,fX:()=>$,zE:()=>le});var a=b(1322),i=b(9462),te=b(7371),Q=b(9453),v=b(2067);const y=["gutterEls"];function T(F,U){1&F&&a.GkF(0)}const S=(F,U,H,Z,de,ge)=>({areaBefore:F,areaAfter:U,gutterNum:H,first:Z,last:de,isDragged:ge});function N(F,U){if(1&F&&(a.ynx(0),a.YNc(1,T,1,0,"ng-container",7),a.BQk()),2&F){const H=U.$implicit,Z=a.oxw(3),de=Z.$implicit,ge=Z.index,Ne=Z.first,Be=a.oxw();a.xp6(1),a.Q6J("ngTemplateOutlet",Be.customGutter.template)("ngTemplateOutletContext",a.HTZ(3,S,de,Be.displayedAreas[ge+1],ge+1,Ne,ge===Be.displayedAreas.length-2,Be.draggedGutterNum===ge+1))("ngTemplateOutletInjector",H)}}function k(F,U){if(1&F&&(a.ynx(0),a.YNc(1,N,2,10,"ng-container",6),a.BQk()),2&F){const H=a.oxw(2).index;a.xp6(1),a.Q6J("asSplitGutterDynamicInjector",H+1)}}function W(F,U){1&F&&a._UZ(0,"div",8)}function A(F,U){if(1&F){const H=a.EpF();a.TgZ(0,"div",2,3),a.NdJ("keydown",function(de){a.CHM(H);const ge=a.oxw().index,Ne=a.oxw();return a.KtG(Ne.startKeyboardDrag(de,2*ge+1,ge+1))})("mousedown",function(de){a.CHM(H);const ge=a.oxw().index,Ne=a.oxw();return a.KtG(Ne.startMouseDrag(de,2*ge+1,ge+1))})("touchstart",function(de){a.CHM(H);const ge=a.oxw().index,Ne=a.oxw();return a.KtG(Ne.startMouseDrag(de,2*ge+1,ge+1))})("mouseup",function(de){a.CHM(H);const ge=a.oxw().index,Ne=a.oxw();return a.KtG(Ne.clickGutter(de,ge+1))})("touchend",function(de){a.CHM(H);const ge=a.oxw().index,Ne=a.oxw();return a.KtG(Ne.clickGutter(de,ge+1))}),a.YNc(2,k,2,1,"ng-container",4)(3,W,1,0,"ng-template",null,5,a.W1O),a.qZA()}if(2&F){const H=a.MAs(4),Z=a.oxw(),de=Z.index,ge=Z.$implicit,Ne=a.oxw();a.Udp("flex-basis",Ne.gutterSize,"px")("order",2*de+1),a.ekj("as-dragged",Ne.draggedGutterNum===de+1),a.uIk("aria-label",Ne.gutterAriaLabel)("aria-orientation",Ne.direction)("aria-valuemin",ge.minSize)("aria-valuemax",ge.maxSize)("aria-valuenow","*"===ge.size?null:ge.size)("aria-valuetext",Ne.getAriaAreaSizeText(ge.size)),a.xp6(2),a.Q6J("ngIf",null==Ne.customGutter?null:Ne.customGutter.template)("ngIfElse",H)}}function C(F,U){1&F&&a.YNc(0,A,5,14,"div",1),2&F&&a.Q6J("ngIf",!1===U.last)}const O=["*"];function R(F){if(void 0!==F.changedTouches&&F.changedTouches.length>0)return{x:F.changedTouches[0].clientX,y:F.changedTouches[0].clientY};if(void 0!==F.clientX&&void 0!==F.clientY)return{x:F.clientX,y:F.clientY};if(void 0!==F.currentTarget){const U=F.currentTarget;return{x:U.offsetLeft,y:U.offsetTop}}return null}function ie(F,U,H){return Math.abs(F.x-U.x)<=H&&Math.abs(F.y-U.y)<=H}function ce(F,U){const H=F.nativeElement.getBoundingClientRect();return"horizontal"===U?H.width:H.height}function Fe(F){return"boolean"==typeof F?F:"false"!==F}function ze(F,U){return null==F?U:(F=Number(F),!isNaN(F)&&F>=0?F:U)}function Ve(F,U){if("percent"===F){const H=U.reduce((de,ge)=>"*"!==ge?de+ge:de,0),Z=U.filter(de=>"*"===de);return!(Z.length>1)&&(1===Z.length||H>99.9)&&H<100.1}if("pixel"===F)return 1===U.filter(H=>"*"===H).length}function Se(F){return"*"===F.size?null:!0===F.component.lockSize?F.size:null===F.component.minSize?null:F.component.minSize>F.size?F.size:F.component.minSize}function Oe(F){return"*"===F.size?null:!0===F.component.lockSize?F.size:null===F.component.maxSize?null:F.component.maxSize<F.size?F.size:F.component.maxSize}function Me(F,U,H,Z){return U.reduce((de,ge)=>{const Ne=function ke(F,U,H,Z){return 0===H?{areaSnapshot:U,pixelAbsorb:0,percentAfterAbsorption:U.sizePercentAtStart,pixelRemain:0}:0===U.sizePixelAtStart&&H<0?{areaSnapshot:U,pixelAbsorb:0,percentAfterAbsorption:0,pixelRemain:H}:"percent"===F?function Ce(F,U,H){const de=(F.sizePixelAtStart+U)/H*100;if(U>0){if(null!==F.area.maxSize&&de>F.area.maxSize){const ge=F.area.maxSize/100*H;return{areaSnapshot:F,pixelAbsorb:ge,percentAfterAbsorption:F.area.maxSize,pixelRemain:F.sizePixelAtStart+U-ge}}return{areaSnapshot:F,pixelAbsorb:U,percentAfterAbsorption:de>100?100:de,pixelRemain:0}}if(U<0){if(null!==F.area.minSize&&de<F.area.minSize){const ge=F.area.minSize/100*H;return{areaSnapshot:F,pixelAbsorb:ge,percentAfterAbsorption:F.area.minSize,pixelRemain:F.sizePixelAtStart+U-ge}}return de<0?{areaSnapshot:F,pixelAbsorb:-F.sizePixelAtStart,percentAfterAbsorption:0,pixelRemain:U+F.sizePixelAtStart}:{areaSnapshot:F,pixelAbsorb:U,percentAfterAbsorption:de,pixelRemain:0}}}(U,H,Z):"pixel"===F?function De(F,U,H){const Z=F.sizePixelAtStart+U;return U>0?null!==F.area.maxSize&&Z>F.area.maxSize?{areaSnapshot:F,pixelAbsorb:F.area.maxSize-F.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:Z-F.area.maxSize}:{areaSnapshot:F,pixelAbsorb:U,percentAfterAbsorption:-1,pixelRemain:0}:U<0?null!==F.area.minSize&&Z<F.area.minSize?{areaSnapshot:F,pixelAbsorb:F.area.minSize+U-Z,percentAfterAbsorption:-1,pixelRemain:Z-F.area.minSize}:Z<0?{areaSnapshot:F,pixelAbsorb:-F.sizePixelAtStart,percentAfterAbsorption:-1,pixelRemain:U+F.sizePixelAtStart}:{areaSnapshot:F,pixelAbsorb:U,percentAfterAbsorption:-1,pixelRemain:0}:void 0}(U,H):void 0}(F,ge,de.remain,Z);return de.list.push(Ne),de.remain=Ne.pixelRemain,de},{remain:H,list:[]})}function He(F,U){"*"!==U.areaSnapshot.area.size&&("percent"===F?U.areaSnapshot.area.size=U.percentAfterAbsorption:"pixel"===F&&(U.areaSnapshot.area.size=U.areaSnapshot.sizePixelAtStart+U.pixelAbsorb))}const lt=new a.OlP("angular-split-global-config");let Ct=(()=>{class F{constructor(H){this.template=H,this.gutterToHandleElementMap=new Map,this.gutterToExcludeDragElementMap=new Map}canStartDragging(H,Z){return(!this.gutterToExcludeDragElementMap.has(Z)||!this.gutterToExcludeDragElementMap.get(Z).some(ge=>ge.nativeElement.contains(H)))&&(!this.gutterToHandleElementMap.has(Z)||this.gutterToHandleElementMap.get(Z).some(de=>de.nativeElement.contains(H)))}addToMap(H,Z,de){H.has(Z)?H.get(Z).push(de):H.set(Z,[de])}removedFromMap(H,Z,de){const ge=H.get(Z);ge.splice(ge.indexOf(de),1),0===ge.length&&H.delete(Z)}static ngTemplateContextGuard(H,Z){return!0}static#e=this.\u0275fac=function(Z){return new(Z||F)(a.Y36(a.Rgc))};static#t=this.\u0275dir=a.lG2({type:F,selectors:[["","asSplitGutter",""]]})}return F})();const zt=new a.OlP("Gutter num");let Wt=(()=>{class F{set gutterNum(H){this.vcr.clear();const Z=a.zs3.create({providers:[{provide:zt,useValue:H}],parent:this.vcr.injector});this.vcr.createEmbeddedView(this.templateRef,{$implicit:Z})}constructor(H,Z){this.vcr=H,this.templateRef=Z}static ngTemplateContextGuard(H,Z){return!0}static#e=this.\u0275fac=function(Z){return new(Z||F)(a.Y36(a.s_b),a.Y36(a.Rgc))};static#t=this.\u0275dir=a.lG2({type:F,selectors:[["","asSplitGutterDynamicInjector",""]],inputs:{gutterNum:["asSplitGutterDynamicInjector","gutterNum"]}})}return F})(),Je=(()=>{class F{set direction(H){this._direction="vertical"===H?"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(H){this._unit="pixel"===H?"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(H){this._gutterSize=ze(H,11),this.build(!1,!1)}get gutterSize(){return this._gutterSize}set gutterStep(H){this._gutterStep=ze(H,1)}get gutterStep(){return this._gutterStep}set restrictMove(H){this._restrictMove=Fe(H)}get restrictMove(){return this._restrictMove}set useTransition(H){this._useTransition=Fe(H),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(H){this._disabled=Fe(H),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(H){this._dir="rtl"===H?"rtl":"ltr",this.renderer.setAttribute(this.elRef.nativeElement,"dir",this._dir)}get dir(){return this._dir}set gutterDblClickDuration(H){this._gutterDblClickDuration=ze(H,0)}get gutterDblClickDuration(){return this._gutterDblClickDuration}get transitionEnd(){return new te.y(H=>this.transitionEndSubscriber=H).pipe((0,v.b)(20))}constructor(H,Z,de,ge,Ne){this.ngZone=H,this.elRef=Z,this.cdRef=de,this.renderer=ge,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 a.vpe(!1),this.dragEnd=new a.vpe(!1),this.gutterClick=new a.vpe(!1),this.gutterDblClick=new a.vpe(!1),this.dragProgressSubject=new Q.x,this.dragProgress$=this.dragProgressSubject.asObservable(),this.isDragging=!1,this.isWaitingClear=!1,this.isWaitingInitialMove=!1,this.dragListeners=[],this.snapshot=null,this.startPoint=null,this.endPoint=null,this.displayedAreas=[],this.hiddenAreas=[],this._clickTimeout=null,this.draggedGutterNum=void 0,this.direction=this._direction,this._config=Ne?Object.assign(this._config,Ne):this._config,Object.keys(this._config).forEach(Be=>{this[Be]=this._config[Be]})}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(H){const Z={component:H,order:0,size:0,minSize:null,maxSize:null,sizeBeforeCollapse:null,gutterBeforeCollapse:0};!0===H.visible?(this.displayedAreas.push(Z),this.build(!0,!0)):this.hiddenAreas.push(Z)}removeArea(H){if(this.displayedAreas.some(Z=>Z.component===H)){const Z=this.displayedAreas.find(de=>de.component===H);this.displayedAreas.splice(this.displayedAreas.indexOf(Z),1),this.build(!0,!0)}else if(this.hiddenAreas.some(Z=>Z.component===H)){const Z=this.hiddenAreas.find(de=>de.component===H);this.hiddenAreas.splice(this.hiddenAreas.indexOf(Z),1)}}updateArea(H,Z,de){!0===H.visible&&this.build(Z,de)}showArea(H){const Z=this.hiddenAreas.find(ge=>ge.component===H);if(void 0===Z)return;const de=this.hiddenAreas.splice(this.hiddenAreas.indexOf(Z),1);this.displayedAreas.push(...de),this.build(!0,!0)}hideArea(H){const Z=this.displayedAreas.find(ge=>ge.component===H);if(void 0===Z)return;const de=this.displayedAreas.splice(this.displayedAreas.indexOf(Z),1);de.forEach(ge=>{ge.order=0,ge.size=0}),this.hiddenAreas.push(...de),this.build(!0,!0)}getVisibleAreaSizes(){return this.displayedAreas.map(H=>H.size)}setVisibleAreaSizes(H){if(H.length!==this.displayedAreas.length)return!1;const Z=H.map(ge=>ze(ge,"*"));return!1!==Ve(this.unit,Z)&&(this.displayedAreas.forEach((ge,Ne)=>ge.component._size=Z[Ne]),this.build(!1,!0),!0)}build(H,Z){if(this.stopDragging(),!0===H&&(this.displayedAreas.every(de=>null!==de.component.order)&&this.displayedAreas.sort((de,ge)=>de.component.order-ge.component.order),this.displayedAreas.forEach((de,ge)=>{de.order=2*ge,de.component.setStyleOrder(de.order)})),!0===Z){const de=Ve(this.unit,this.displayedAreas.map(ge=>ge.component.size));switch(this.unit){case"percent":{const ge=100/this.displayedAreas.length;this.displayedAreas.forEach(Ne=>{Ne.size=de?Ne.component.size:ge,Ne.minSize=Se(Ne),Ne.maxSize=Oe(Ne)});break}case"pixel":if(de)this.displayedAreas.forEach(ge=>{ge.size=ge.component.size,ge.minSize=Se(ge),ge.maxSize=Oe(ge)});else{const ge=this.displayedAreas.filter(Ne=>"*"===Ne.component.size);if(0===ge.length&&this.displayedAreas.length>0)this.displayedAreas.forEach((Ne,Be)=>{Ne.size=0===Be?"*":Ne.component.size,Ne.minSize=0===Be?null:Se(Ne),Ne.maxSize=0===Be?null:Oe(Ne)});else if(ge.length>1){let Ne=!1;this.displayedAreas.forEach(Be=>{"*"===Be.component.size?!1===Ne?(Be.size="*",Be.minSize=null,Be.maxSize=null,Ne=!0):(Be.size=100,Be.minSize=null,Be.maxSize=null):(Be.size=Be.component.size,Be.minSize=Se(Be),Be.maxSize=Oe(Be))})}}}}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 H=this.getNbGutters()*this.gutterSize;this.displayedAreas.forEach(Z=>{"*"===Z.size?Z.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):Z.component.setStyleFlex(0,0,`calc( ${Z.size}% - ${Z.size/100*H}px )`,null!==Z.minSize&&Z.minSize===Z.size,null!==Z.maxSize&&Z.maxSize===Z.size)})}else"pixel"===this.unit&&this.displayedAreas.forEach(H=>{"*"===H.size?H.component.setStyleFlex(1,1,1===this.displayedAreas.length?"100%":"auto",!1,!1):1===this.displayedAreas.length?H.component.setStyleFlex(0,0,"100%",!1,!1):H.component.setStyleFlex(0,0,`${H.size}px`,null!==H.minSize&&H.minSize===H.size,null!==H.maxSize&&H.maxSize===H.size)})}clickGutter(H,Z){const de=R(H);this.startPoint&&ie(this.startPoint,de,this.gutterClickDeltaPx)&&(!this.isDragging||this.isWaitingInitialMove)&&(null!==this._clickTimeout?(window.clearTimeout(this._clickTimeout),this._clickTimeout=null,this.notify("dblclick",Z),this.stopDragging()):this._clickTimeout=window.setTimeout(()=>{this._clickTimeout=null,this.notify("click",Z),this.stopDragging()},this.gutterDblClickDuration))}startKeyboardDrag(H,Z,de){if(!0===this.disabled||!0===this.isWaitingClear)return;const ge=function J(F,U){if("horizontal"===U)switch(F.key){case"ArrowLeft":case"ArrowRight":case"PageUp":case"PageDown":break;default:return null}if("vertical"===U)switch(F.key){case"ArrowUp":case"ArrowDown":case"PageUp":case"PageDown":break;default:return null}const H=F.currentTarget,Z="PageUp"===F.key||"PageDown"===F.key?500:50;let de=H.offsetLeft,ge=H.offsetTop;switch(F.key){case"ArrowLeft":de-=Z;break;case"ArrowRight":de+=Z;break;case"ArrowUp":ge-=Z;break;case"ArrowDown":ge+=Z;break;case"PageUp":"vertical"===U?ge-=Z:de+=Z;break;case"PageDown":"vertical"===U?ge+=Z:de-=Z;break;default:return null}return{x:de,y:ge}}(H,this.direction);null!==ge&&(this.endPoint=ge,this.startPoint=R(H),H.preventDefault(),H.stopPropagation(),this.setupForDragEvent(Z,de),this.startDragging(),this.drag(),this.stopDragging())}startMouseDrag(H,Z,de){this.customGutter&&!this.customGutter.canStartDragging(H.target,de)||(H.preventDefault(),H.stopPropagation(),this.startPoint=R(H),null!==this.startPoint&&!0!==this.disabled&&!0!==this.isWaitingClear&&(this.setupForDragEvent(Z,de),this.dragListeners.push(this.renderer.listen("document","mouseup",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchend",this.stopDragging.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchcancel",this.stopDragging.bind(this))),this.ngZone.runOutsideAngular(()=>{this.dragListeners.push(this.renderer.listen("document","mousemove",this.mouseDragEvent.bind(this))),this.dragListeners.push(this.renderer.listen("document","touchmove",this.mouseDragEvent.bind(this)))}),this.startDragging()))}setupForDragEvent(H,Z){if(this.snapshot={gutterNum:Z,lastSteppedOffset:0,allAreasSizePixel:ce(this.elRef,this.direction)-this.getNbGutters()*this.gutterSize,allInvolvedAreasSizePercent:100,areasBeforeGutter:[],areasAfterGutter:[]},this.displayedAreas.forEach(de=>{const ge={area:de,sizePixelAtStart:ce(de.component.elRef,this.direction),sizePercentAtStart:"percent"===this.unit?de.size:-1};de.order<H?!0===this.restrictMove?this.snapshot.areasBeforeGutter=[ge]:this.snapshot.areasBeforeGutter.unshift(ge):de.order>H&&(!0===this.restrictMove?0===this.snapshot.areasAfterGutter.length&&(this.snapshot.areasAfterGutter=[ge]):this.snapshot.areasAfterGutter.push(ge))}),this.restrictMove&&"percent"===this.unit){const de=this.snapshot.areasBeforeGutter[0],ge=this.snapshot.areasAfterGutter[0];if("*"===de.area.size||"*"===ge.area.size){const Ne=this.displayedAreas.reduce((Be,Xe)=>de.area!==Xe&&ge.area!==Xe?Be+Xe.size:Be,0);this.snapshot.allInvolvedAreasSizePercent=100-Ne}else this.snapshot.allInvolvedAreasSizePercent=[...this.snapshot.areasBeforeGutter,...this.snapshot.areasAfterGutter].reduce((Ne,Be)=>Ne+Be.sizePercentAtStart,0)}}startDragging(){this.displayedAreas.forEach(H=>H.component.lockEvents()),this.isDragging=!0,this.isWaitingInitialMove=!0}mouseDragEvent(H){H.preventDefault(),H.stopPropagation();const Z=R(H);null!==this._clickTimeout&&!ie(this.startPoint,Z,this.gutterClickDeltaPx)&&(window.clearTimeout(this._clickTimeout),this._clickTimeout=null),!1!==this.isDragging&&(this.endPoint=R(H),null!==this.endPoint&&this.drag())}drag(){if(this.isWaitingInitialMove){if(this.startPoint.x===this.endPoint.x&&this.startPoint.y===this.endPoint.y)return;this.ngZone.run(()=>{this.isWaitingInitialMove=!1,this.renderer.addClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=this.snapshot.gutterNum,this.cdRef.markForCheck(),this.notify("start",this.snapshot.gutterNum)})}let H="horizontal"===this.direction?this.startPoint.x-this.endPoint.x:this.startPoint.y-this.endPoint.y;"rtl"===this.dir&&"horizontal"===this.direction&&(H=-H);const Z=Math.round(H/this.gutterStep)*this.gutterStep;if(Z===this.snapshot.lastSteppedOffset)return;this.snapshot.lastSteppedOffset=Z;let de=Me(this.unit,this.snapshot.areasBeforeGutter,-Z,this.snapshot.allAreasSizePixel),ge=Me(this.unit,this.snapshot.areasAfterGutter,Z,this.snapshot.allAreasSizePixel);if(0!==de.remain&&0!==ge.remain?Math.abs(de.remain)===Math.abs(ge.remain)||(Math.abs(de.remain)>Math.abs(ge.remain)?ge=Me(this.unit,this.snapshot.areasAfterGutter,Z+de.remain,this.snapshot.allAreasSizePixel):de=Me(this.unit,this.snapshot.areasBeforeGutter,-(Z-ge.remain),this.snapshot.allAreasSizePixel)):0!==de.remain?ge=Me(this.unit,this.snapshot.areasAfterGutter,Z+de.remain,this.snapshot.allAreasSizePixel):0!==ge.remain&&(de=Me(this.unit,this.snapshot.areasBeforeGutter,-(Z-ge.remain),this.snapshot.allAreasSizePixel)),"percent"===this.unit){const Ne=[...de.list,...ge.list],Xe=Ne.find(Ke=>"*"==Ke.percentAfterAbsorption)??Ne.find(Ke=>0!==Ke.percentAfterAbsorption&&Ke.percentAfterAbsorption!==Ke.areaSnapshot.area.minSize&&Ke.percentAfterAbsorption!==Ke.areaSnapshot.area.maxSize);Xe&&(Xe.percentAfterAbsorption=this.snapshot.allInvolvedAreasSizePercent-Ne.filter(Ke=>Ke!==Xe).reduce((Ke,mt)=>Ke+mt.percentAfterAbsorption,0))}de.list.forEach(Ne=>He(this.unit,Ne)),ge.list.forEach(Ne=>He(this.unit,Ne)),this.refreshStyleSizes(),this.notify("progress",this.snapshot.gutterNum)}stopDragging(H){if(H&&(H.preventDefault(),H.stopPropagation()),!1!==this.isDragging){for(this.displayedAreas.forEach(Z=>Z.component.unlockEvents());this.dragListeners.length>0;){const Z=this.dragListeners.pop();Z&&Z()}this.isDragging=!1,!1===this.isWaitingInitialMove&&this.notify("end",this.snapshot.gutterNum),this.renderer.removeClass(this.elRef.nativeElement,"as-dragging"),this.draggedGutterNum=void 0,this.cdRef.markForCheck(),this.snapshot=null,this.isWaitingClear=!0,this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.startPoint=null,this.endPoint=null,this.isWaitingClear=!1})})}}notify(H,Z){const de=this.getVisibleAreaSizes();"start"===H?this.dragStart.emit({gutterNum:Z,sizes:de}):"end"===H?this.dragEnd.emit({gutterNum:Z,sizes:de}):"click"===H?this.gutterClick.emit({gutterNum:Z,sizes:de}):"dblclick"===H?this.gutterDblClick.emit({gutterNum:Z,sizes:de}):"transitionEnd"===H?this.transitionEndSubscriber&&this.ngZone.run(()=>this.transitionEndSubscriber.next(de)):"progress"===H&&this.dragProgressSubject.next({gutterNum:Z,sizes:de})}ngOnDestroy(){this.stopDragging()}collapseArea(H,Z,de){const ge=this.displayedAreas.find(Xe=>Xe.component===H);if(void 0===ge)return;const Ne="right"===de?1:-1;ge.sizeBeforeCollapse||(ge.sizeBeforeCollapse=ge.size,ge.gutterBeforeCollapse=Ne),ge.size=Z;const Be=this.gutterEls.find(Xe=>Xe.nativeElement.style.order===`${ge.order+Ne}`);Be&&this.renderer.addClass(Be.nativeElement,"as-split-gutter-collapsed"),this.updateArea(H,!1,!1)}expandArea(H){const Z=this.displayedAreas.find(ge=>ge.component===H);if(void 0===Z||!Z.sizeBeforeCollapse)return;Z.size=Z.sizeBeforeCollapse,Z.sizeBeforeCollapse=null;const de=this.gutterEls.find(ge=>ge.nativeElement.style.order===`${Z.order+Z.gutterBeforeCollapse}`);de&&this.renderer.removeClass(de.nativeElement,"as-split-gutter-collapsed"),this.updateArea(H,!1,!1)}getAriaAreaSizeText(H){return"*"===H?null:H.toFixed(0)+" "+this.unit}static#e=this.\u0275fac=function(Z){return new(Z||F)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(a.Qsj),a.Y36(lt,8))};static#t=this.\u0275cmp=a.Xpm({type:F,selectors:[["as-split"]],contentQueries:function(Z,de,ge){if(1&Z&&a.Suo(ge,Ct,5),2&Z){let Ne;a.iGM(Ne=a.CRH())&&(de.customGutter=Ne.first)}},viewQuery:function(Z,de){if(1&Z&&a.Gf(y,5),2&Z){let ge;a.iGM(ge=a.CRH())&&(de.gutterEls=ge)}},inputs:{direction:"direction",unit:"unit",gutterSize:"gutterSize",gutterStep:"gutterStep",restrictMove:"restrictMove",useTransition:"useTransition",disabled:"disabled",dir:"dir",gutterDblClickDuration:"gutterDblClickDuration",gutterClickDeltaPx:"gutterClickDeltaPx",gutterAriaLabel:"gutterAriaLabel"},outputs:{transitionEnd:"transitionEnd",dragStart:"dragStart",dragEnd:"dragEnd",gutterClick:"gutterClick",gutterDblClick:"gutterDblClick"},exportAs:["asSplit"],ngContentSelectors:O,decls:2,vars:1,consts:[["ngFor","",3,"ngForOf"],["role","separator","tabindex","0","class","as-split-gutter",3,"as-dragged","flex-basis","order","keydown","mousedown","touchstart","mouseup","touchend",4,"ngIf"],["role","separator","tabindex","0",1,"as-split-gutter",3,"keydown","mousedown","touchstart","mouseup","touchend"],["gutterEls",""],[4,"ngIf","ngIfElse"],["defaultGutterTpl",""],[4,"asSplitGutterDynamicInjector"],[4,"ngTemplateOutlet","ngTemplateOutletContext","ngTemplateOutletInjector"],[1,"as-split-gutter-icon"]],template:function(Z,de){1&Z&&(a.F$t(),a.Hsn(0),a.YNc(1,C,1,1,"ng-template",0)),2&Z&&(a.xp6(1),a.Q6J("ngForOf",de.displayedAreas))},dependencies:[i.sg,i.O5,i.tP,Wt],styles:["[_nghost-%COMP%]{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;overflow:hidden;width:100%;height:100%}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%]{border:none;flex-grow:0;flex-shrink:0;background-color:#eee;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%] > .as-split-gutter.as-split-gutter-collapsed[_ngcontent-%COMP%]{flex-basis:1px!important;pointer-events:none}[_nghost-%COMP%] > .as-split-gutter[_ngcontent-%COMP%] > .as-split-gutter-icon[_ngcontent-%COMP%]{width:100%;height:100%;background-position:center center;background-repeat:no-repeat}[_nghost-%COMP%] >.as-split-area{flex-grow:0;flex-shrink:0;overflow-x:hidden;overflow-y:auto}[_nghost-%COMP%] >.as-split-area.as-hidden{flex:0 1 0px!important;overflow-x:hidden;overflow-y:hidden}[_nghost-%COMP%] >.as-split-area .iframe-fix{position:absolute;top:0;left:0;width:100%;height:100%}.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(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==)}.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})}return F})(),le=(()=>{class F{set order(H){this._order=ze(H,null),this.split.updateArea(this,!0,!1)}get order(){return this._order}set size(H){this._size=ze(H,"*"),this.split.updateArea(this,!1,!0)}get size(){return this._size}set minSize(H){this._minSize=ze(H,null),this.split.updateArea(this,!1,!0)}get minSize(){return this._minSize}set maxSize(H){this._maxSize=ze(H,null),this.split.updateArea(this,!1,!0)}get maxSize(){return this._maxSize}set lockSize(H){this._lockSize=Fe(H),this.split.updateArea(this,!1,!0)}get lockSize(){return this._lockSize}set visible(H){this._visible=Fe(H),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}constructor(H,Z,de,ge){this.ngZone=H,this.elRef=Z,this.renderer=de,this.split=ge,this._order=null,this._size="*",this._minSize=null,this._maxSize=null,this._lockSize=!1,this._visible=!0,this.lockListeners=[],this.renderer.addClass(this.elRef.nativeElement,"as-split-area")}ngOnInit(){this.split.addArea(this),this.ngZone.runOutsideAngular(()=>{this.transitionListener=this.renderer.listen(this.elRef.nativeElement,"transitionend",Z=>{"flex-basis"===Z.propertyName&&this.split.notify("transitionEnd",-1)})});const H=this.renderer.createElement("div");this.renderer.addClass(H,"iframe-fix"),this.dragStartSubscription=this.split.dragStart.subscribe(()=>{this.renderer.setStyle(this.elRef.nativeElement,"position","relative"),this.renderer.appendChild(this.elRef.nativeElement,H)}),this.dragEndSubscription=this.split.dragEnd.subscribe(()=>{this.renderer.removeStyle(this.elRef.nativeElement,"position"),this.renderer.removeChild(this.elRef.nativeElement,H)})}setStyleOrder(H){this.renderer.setStyle(this.elRef.nativeElement,"order",H)}setStyleFlex(H,Z,de,ge,Ne){this.renderer.setStyle(this.elRef.nativeElement,"flex-grow",H),this.renderer.setStyle(this.elRef.nativeElement,"flex-shrink",Z),this.renderer.setStyle(this.elRef.nativeElement,"flex-basis",de),!0===ge?this.renderer.addClass(this.elRef.nativeElement,"as-min"):this.renderer.removeClass(this.elRef.nativeElement,"as-min"),!0===Ne?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 H=this.lockListeners.pop();H&&H()}}ngOnDestroy(){this.unlockEvents(),this.transitionListener&&this.transitionListener(),this.dragStartSubscription?.unsubscribe(),this.dragEndSubscription?.unsubscribe(),this.split.removeArea(this)}collapse(H=0,Z="right"){this.split.collapseArea(this,H,Z)}expand(){this.split.expandArea(this)}static#e=this.\u0275fac=function(Z){return new(Z||F)(a.Y36(a.R0b),a.Y36(a.SBq),a.Y36(a.Qsj),a.Y36(Je))};static#t=this.\u0275dir=a.lG2({type:F,selectors:[["as-split-area"],["","as-split-area",""]],inputs:{order:"order",size:"size",minSize:"minSize",maxSize:"maxSize",lockSize:"lockSize",visible:"visible"},exportAs:["asSplitArea"]})}return F})(),$=(()=>{class F{static#e=this.\u0275fac=function(Z){return new(Z||F)};static#t=this.\u0275mod=a.oAB({type:F});static#n=this.\u0275inj=a.cJS({imports:[i.ez]})}return F})()},6086:(Ee,w,b)=>{"use strict";b.d(w,{Y:()=>N,s:()=>k});var a=b(1322),i=b(9462);function te(W,A){1&W&&a._UZ(0,"div",9)}function Q(W,A){if(1&W&&(a.TgZ(0,"span",10),a._uU(1),a.qZA()),2&W){const C=a.oxw().$implicit;a.xp6(1),a.Oqu(C.description)}}function v(W,A){if(1&W&&(a.TgZ(0,"section",11),a._UZ(1,"ngx-json-viewer",12),a.qZA()),2&W){const C=a.oxw().$implicit,O=a.oxw();a.xp6(1),a.Q6J("json",C.value)("expanded",O.expanded)("depth",O.depth)("_currentDepth",O._currentDepth+1)}}const y=W=>["segment",W],T=(W,A)=>({"segment-main":!0,expandable:W,expanded:A});function S(W,A){if(1&W){const C=a.EpF();a.TgZ(0,"section",2)(1,"section",3),a.NdJ("click",function(){const ie=a.CHM(C).$implicit,J=a.oxw();return a.KtG(J.toggle(ie))}),a.YNc(2,te,1,0,"div",4),a.TgZ(3,"span",5),a._uU(4),a.qZA(),a.TgZ(5,"span",6),a._uU(6,": "),a.qZA(),a.YNc(7,Q,2,1,"span",7),a.qZA(),a.YNc(8,v,2,4,"section",8),a.qZA()}if(2&W){const C=A.$implicit,O=a.oxw();a.Q6J("ngClass",a.VKq(6,y,"segment-type-"+C.type)),a.xp6(1),a.Q6J("ngClass",a.WLB(8,T,O.isExpandable(C),C.expanded)),a.xp6(1),a.Q6J("ngIf",O.isExpandable(C)),a.xp6(2),a.Oqu(C.key),a.xp6(3),a.Q6J("ngIf",!C.expanded||!O.isExpandable(C)),a.xp6(1),a.Q6J("ngIf",C.expanded&&O.isExpandable(C))}}let N=(()=>{class W{constructor(){this.expanded=!0,this.depth=-1,this._currentDepth=0,this.segments=[]}ngOnChanges(){this.segments=[],this.json=this.decycle(this.json),"object"==typeof this.json?Object.keys(this.json).forEach(C=>{this.segments.push(this.parseKeyValue(C,this.json[C]))}):this.segments.push(this.parseKeyValue(`(${typeof this.json})`,this.json))}isExpandable(C){return"object"===C.type||"array"===C.type}toggle(C){this.isExpandable(C)&&(C.expanded=!C.expanded)}parseKeyValue(C,O){const R={key:C,value:O,type:void 0,description:""+O,expanded:this.isExpanded()};switch(typeof R.value){case"number":R.type="number";break;case"boolean":R.type="boolean";break;case"function":R.type="function";break;case"string":R.type="string",R.description='"'+R.value+'"';break;case"undefined":R.type="undefined",R.description="undefined";break;case"object":null===R.value?(R.type="null",R.description="null"):Array.isArray(R.value)?(R.type="array",R.description="Array["+R.value.length+"] "+JSON.stringify(R.value)):R.value instanceof Date?R.type="date":(R.type="object",R.description="Object "+JSON.stringify(R.value))}return R}isExpanded(){return this.expanded&&!(this.depth>-1&&this._currentDepth>=this.depth)}decycle(C){const O=new WeakMap;return function R(ie,J){let ce,Fe;return"object"!=typeof ie||null===ie||ie instanceof Boolean||ie instanceof Date||ie instanceof Number||ie instanceof RegExp||ie instanceof String?ie:(ce=O.get(ie),void 0!==ce?{$ref:ce}:(O.set(ie,J),Array.isArray(ie)?(Fe=[],ie.forEach(function(ze,Ve){Fe[Ve]=R(ze,J+"["+Ve+"]")})):(Fe={},Object.keys(ie).forEach(function(ze){Fe[ze]=R(ie[ze],J+"["+JSON.stringify(ze)+"]")})),Fe))}(C,"$")}}return W.\u0275fac=function(C){return new(C||W)},W.\u0275cmp=a.Xpm({type:W,selectors:[["ngx-json-viewer"]],inputs:{json:"json",expanded:"expanded",depth:"depth",_currentDepth:"_currentDepth"},features:[a.TTD],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(C,O){1&C&&(a.TgZ(0,"section",0),a.YNc(1,S,9,11,"section",1),a.qZA()),2&C&&(a.xp6(1),a.Q6J("ngForOf",O.segments))},dependencies:[i.mk,i.sg,i.O5,W],styles:['@charset "UTF-8";.ngx-json-viewer[_ngcontent-%COMP%]{font-family:var(--ngx-json-font-family, monospace);font-size:var(--ngx-json-font-size, 1em);width:100%;height:100%;overflow:hidden;position:relative}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%]{padding:2px;margin:1px 1px 1px 12px}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%]{word-wrap:break-word}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]{position:absolute;margin-left:-14px;margin-top:3px;font-size:.8em;line-height:1.2em;vertical-align:middle;color:var(--ngx-json-toggler, #787878)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .toggler[_ngcontent-%COMP%]:after{display:inline-block;content:"\\25ba";transition:transform .1s ease-in}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-key, #4E187C)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-separator[_ngcontent-%COMP%]{color:var(--ngx-json-separator, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment[_ngcontent-%COMP%] .segment-main[_ngcontent-%COMP%] .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-value, #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:var(--ngx-json-string, #FF6B6B)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-number[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-number, #009688)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-boolean[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-boolean, #B938A4)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-date[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-date, #05668D)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-array, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-object, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-function[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-function, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-null, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{color:var(--ngx-json-undefined, #fff)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-null[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-null-bg, red)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-key[_ngcontent-%COMP%]{color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-undefined[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%] > .segment-value[_ngcontent-%COMP%]{background-color:var(--ngx-json-undefined-key, #999)}.ngx-json-viewer[_ngcontent-%COMP%] .segment-type-object[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .segment-type-array[_ngcontent-%COMP%] > .segment-main[_ngcontent-%COMP%]{white-space:nowrap}.ngx-json-viewer[_ngcontent-%COMP%] .expanded[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]:after{transform:rotate(90deg)}.ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%], .ngx-json-viewer[_ngcontent-%COMP%] .expandable[_ngcontent-%COMP%] > .toggler[_ngcontent-%COMP%]{cursor:pointer}']}),W})(),k=(()=>{class W{}return W.\u0275fac=function(C){return new(C||W)},W.\u0275mod=a.oAB({type:W}),W.\u0275inj=a.cJS({imports:[i.ez]}),W})()},5861:(Ee,w,b)=>{"use strict";function a(te,Q,v,y,T,S,N){try{var k=te[S](N),W=k.value}catch(A){return void v(A)}k.done?Q(W):Promise.resolve(W).then(y,T)}function i(te){return function(){var Q=this,v=arguments;return new Promise(function(y,T){var S=te.apply(Q,v);function N(W){a(S,y,T,N,k,"next",W)}function k(W){a(S,y,T,N,k,"throw",W)}N(void 0)})}}b.d(w,{Z:()=>i})}},Ee=>{Ee(Ee.s=4301)}]);